I'm writing a printer controller for an ARM (EP9301) embedded system. This
distro was provided by the chip manufacturer and uses compiled-in drivers.
Switching to modules would be very difficult at this point.

The main task is to "listen" to the printer, capture and parse its status
messages.

eg: @PJL STATUS DEVICE\n CODE=10001\nDISPLAY="ONLINE"\nONLINE=TRUE

and then make the printer status known to other tasks.

Opening /dev/usb/lp0 and polling for characters works fine with most
printers but there are a few (OKIDATA) that seem to run fine for some time
(minutes, hours - it varies) and then just die. I am no longer able to read
or write to the open device. The only cure for this that I have been able to
find (and I have spent a week trying) is to remove and replug the USB cable.

My dumb newbie embarrassing question is: How can I simulate this
disconnect/reconnect from user space software?

The Cirrus EP9301 chip uses an ohci host controller and an internal root
hub. Kernel is 2.4.21-rmk1-crs1

Thanks a lot


Steve

I tried to post this question earlier but I think I made a mistake. -
Forgive me if it turns up more than once.



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to