usb4java-javax
usb4java-javax copied to clipboard
javax.usb extension for usb4java
By not re-starting a thread over and over this allows for much faster communications. The primary savings is the lack of random thread locks for hundreds of ms.
Added synchronized blocks around IRP thread control. Without this, several IRP threads can end up being produced while under load in a multi-thread environment. The threads didnt really seem to...
This is a supplement to original PR. It goes a little further, but I think helps solve the initial issues in my first PR, while adding more customization and removing...
### The Issue: Sporadically we run into an issue where `usbDevice.getActiveUsbConfiguration();` returns null. The code was run on a virtual machine. Mostly, this issue occurs when the program is started...
Fixes i've made a while ago but forgot to share. - keep track of each usb interfaces we detached from kernel to properly re-attach them later - Handle bulk transfer...
UsbDeviceDescriptor.bDeviceClass() method not working ! Example code: ``` private String dumpName(final UsbDevice device) throws UnsupportedEncodingException, UsbException { // Read the string descriptor indices from the device descriptor. // If they...