LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   USP Parallel port hanging (https://www.linuxquestions.org/questions/programming-9/usp-parallel-port-hanging-397339/)

blueCommand 12-28-2005 05:02 PM

USP Parallel port hanging
 
Hello!

I'm playing with a USB media hub. It has 1 serial, 1 parallel and 1 USB.
The parallel is "BAY-3U1S1P" and works just fine kernel wise.

But.. When I write ANYTHING to the port, my controller card on the other end (which i know for sure works on non-USB parallelports) lights the correct status leds but then the port is "blocked".

Read on the port will never finish and if I write anything again to it it will be ignored.
If I unplugg the mediahub and then reconnect it and then resend the new data, it will be OK for that data, and go back to it's "locked" state, accepting no inputs/outputs.

I'm using /dev/usb/lp0 as I haven't found any way to use ioperm via base I/O.
I have tried with both echo, open(), fopen(), write(), fwrite() and dd. Same issue

Is this just my media hub or is it a known problem with usb stuff? Have I missed some option or some handshake? Buggy kernel? (2.6.14.4, Gentoo -r4)

Thanks in advance!
P.S Also, how can I controll bidirectional while using fopen/open and not the base I/O+2? D.S


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