LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Testing parallel port loop device (https://www.linuxquestions.org/questions/linux-hardware-18/testing-parallel-port-loop-device-614531/)

freeindy 01-18-2008 09:36 AM

Testing parallel port loop device
 
Hi,

I've soldered a parallel port loopback device and want to test it. I tried simple command:
echo hello > /dev/lp0 but it doesn't respond. Can it be done in this way or is there is another way?

Thanks
Indy

michaelk 01-18-2008 12:21 PM

I assume that you are writing to the port via echo and reading the response via the cat command similar to the serial port. The parallel port loop back plug works differently then the serial port loop back. You would set an output data pin high and then check the corresponding input pin to see if it was high. Since not all of the data pins are used sending characters via the echo command will not work.

In the old days I had Norton diagnostics (dos/windows) but I have not used it in many years. It would be easy to write your own c program.

freeindy 01-21-2008 01:49 AM

thanks, I thought so. I'll get a utility to test it.

Thanks,
Indy


All times are GMT -5. The time now is 01:25 PM.