java: No Endpoint found, but python works
问题 I want to try out the java libusb from http://libusbjava.sourceforge.net and cant even connect to my device... I had this python code before: def discover(): my_device = None for bus in usb.busses(): for dev in bus.devices: if dev.idVendor == 0x16c0 and dev.idProduct == 0x05dc: handle = dev.open() which worked really great. now i wanted to build the same in java and made this: Device dev = USB.getDevice((short) 0x16c0, (short) 0x05dc); try { dev.open(1, 0, -1); } catch (USBException e) { }