| Hello.
I'm actually using the Java Libusb wrapper from
http://libusbjava.sourceforge.net/wp/ but was referred here from their
forum.
I'm having trouble sending  vendor specific control commands to a DS2490
USB to 1-Wire bridge.  Standard commands, like GET_STATUS, seem to work.
Likewise bulk and interrupt transfers.
The command is vendor specific, from host to device, and the recipient is
the device. bmRequestType should thus be 0x40, right?
This is the exception I get from my code:
ch.ntb.usb.USBTimeoutException: LibusbJava.controlMsg: usb_control_msg:
sending
control message failed, win error: The I/O operation has been aborted
because of
 either a thread exit or an application request.
        at ch.ntb.usb.Device.controlMsg(Device.java:552)
        at USBTest.readStatus(USBTest.java:79)
        at USBTest.main(USBTest.java:45)
Can the reason be that the Java wrapper demands some data and length but the
device's specs says none should be provided? If so I'm screwed...
My thread in the other forum:
http://sourceforge.net/forum/forum.php?thread_id=1858589&forum_id=660151
Thankful for any help/tip you can provide!
-- 
--
Tom
 |