what are you doing? it looks like you're trying to get/parse the binary descriptors when they're already fetched and parsed for you. See UsbConfiguration.getUsbConfigurationDescriptor() and UsbDevice.getUsbDeviceDescriptor() and so on. Also as far as the endpoints: UsbDevice.getActiveUsbConfiguration.getUsbInterfaces() the for each interface: UsbInterface.getUsbEndpoints() interate through and look for what you want (then getUsbPipe())
And the "port status"? Are you talking to a hub? The format of your variables and headers looks like you're working from a Windoze trace....are you trying to write a javax.usb driver based on a trace or do you actually have the protocol (specification) to your device? On Thu, 22 Apr 2004, Vasilios Anagnostopoulos wrote: >Dear Roger and javax-usb users . I managed to get the required information with > >> "getDescriptor+getConfiguration" >> >> bmRequestType 10000000B >> bRequest GET_DESCRIPTOR >> wvalue 0x0200 /*Configuration*/ >> windex 0 >> wvalue 256 bytes (old was only 9 bytes). > >It returns 32 bytes , 9 for configuration , 9 for interface and 7+7 for >endpoints(which are DATA endpoints) , everything is fine with the specification . The >printer is USB1.1 > >However two problems remain . >The first is that HP1000Laserjet does respond to > >GET_DEVICE_ID , GET_PORT_STATUS class-specific requests > >with > >> "getPortStatus" >> >> bmRequestType 10100001B >> bRequest 0x01 >> wvalue 0x0000 /*Configuration*/ >> windex 1 or 0 >> wvalue 1 byte . > >I get a device busy exception . (maybe I do something wrong , so I will keep trying >for a while) > >The second is that I cannot claim the interface . > >Vasileios Anagnostopoulos -- Dan Streetman [EMAIL PROTECTED] -------------------------------------------------- 186,282 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel