#50 UsbDisconnectExpection on multiple usb printers

TCK
open
nobody
5
2013-12-13
2013-12-13
Dave
No

I'm trying to use javax.usb to interface to 2 usb printers from the same java program. I can connect and initialize both printers, but when I try to print to either of them one of the two of them will always disconnect even though they both are still physically connected. There is no pattern to which one disconnects. My code works perfectly if I have only one connected. I've tried using different ports, a powered usb hub, a unpowered usb hub all to no avail.

I'm using jsr80-1.2 and libusb-win32 1.2.6.0. This occurs on both windows 7 and windows xp. My java program is an applet. I've tried changing it so that I run multiple applets and one of them will still disconnect the usb printer.

The printers that I'm using are Epson TM-L500A receipt printers.

It's almost as if javax.usb or libusb only allows one printer at a time.

Discussion


Log in to post a comment.