Ticket #9 (closed defect: wontfix)
Opened 4 years ago
Last modified 4 years ago
USBTimeoutException
| Reported by: | abidbodal | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | libusb-1.0 | |
| Keywords: | Reap Timeout | Cc: | |
| Blocked By: | Blocks: |
Description
I am trying to use libusbJava to connect to my USB device. I am using the USB Test Application (http://libusbjava.sourceforge.net/wp/?page_id=5) to test the HiSpeed? USB on my ARM LPC3131 device. I am able to open the device, reset the device and send data to my device. When I click receive, at times I get the following error:
ch.ntb.usb.USBTimeoutException: LibusbJava?.usb_bulk_read: usb_reap: timeout error
Sometimes the receive works and sometimes it doesn't. Once it starts working, it works until I click Reset. Below is my in endpoint details:
Usb_Endpoint_Descriptor
blenght: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x1
bmAttributes: 0x2
wMaxPacketSize: 0x200 (512)
bInterval: 0x0
bRefresh: 0x0
bSynchAddress: 0x0
extralen: 0x0
extra: null
I'm not sure if it's just a timing issue or not. I tried changing the readBulk function to attempt multiple times to receive data with different timeout values, but was unable to resolve the problem. Please advice.
Change History
comment:1 Changed 4 years ago by dsd
- Resolution set to wontfix
- Status changed from new to closed
Your java bindings use libusb-0.1 and this version is no longer maintained. You could try asking for help on the mailing list.