- assigned_to: nobody --> uniederer
Hi there.
Is there a problem with the String descriptors returned on Linux.
How do I test it...
1 - I power on my computer, that has instaled the "Ubuntu 7.10 Linux 2.6.22-14-generic" OS. (this is important because I find that it always fails the first time after a power on - It also fails on other situations)
2 - I plug one "normal" flash disk (Alcor Mass Storage Device) on one of the usb ports.
3 - Test with lsusb (linux command), testlibusb (libusb-0.1.12 test program) and with UsbView (ch.ntb.usb-0.5.6.jar)
Responses:
- lsusb (OK)
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:6331 Alcor Micro Corp.
Bus 001 Device 001: ID 0000:0000
- testlibusb (OK)
Dev #1: Linux 2.6.22-14-generic ohci_hcd - OHCI Host Controller
Dev #1: Linux 2.6.22-14-generic ohci_hcd - OHCI Host Controller
Dev #2: Generic - Mass Storage Device
- UsbView (OK)
...
Usb_Bus 001
Usb_Device 002
Usb_Device_Descriptor idVendor: 0x58f, idProduct: 0x6331
String descriptors
iManufacturer: Generic
iProduct: Mass Storage Device
iSerialNumber: 00147258001
...
4 - Now, I plug one "Apple IPod Player" in another usb port.
5 - Test it again with lsusb (linux command), testlibusb (libusb-0.1.12 test program) and with UsbView (ch.ntb.usb-0.5.6.jar) and...
Responses:
- lsusb (OK)
Bus 002 Device 002: ID 05ac:1209 Apple Computer, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 058f:6331 Alcor Micro Corp.
Bus 001 Device 001: ID 0000:0000
- testlibusb (OK)
Dev #1: Linux 2.6.22-14-generic ohci_hcd - OHCI Host Controller
Dev #2: Apple - iPod
Dev #1: Linux 2.6.22-14-generic ohci_hcd - OHCI Host Controller
Dev #2: Generic - Mass Storage Device
- UsbView (ERROR - BUG) <----------------------------------
...
Usb_Bus 002
Usb_Device 002
Usb_Device_Descriptor idVendor: 0x5ac, idProduct: 0x1209
String descriptors
iManufacturer: Apple
iProduct: iPod
iSerialNumber: 000A270015DF556B
...
Usb_Bus 001
Usb_Device 002
Usb_Device_Descriptor idVendor: 0x58f, idProduct: 0x6331 <----------- ITS OK
String descriptors
iManufacturer: Apple <------------------------- ERROR
iProduct: iPod <------------------------- ERROR
iSerialNumber: 000A270015DF556B <------------------------- ERROR
...
My Conclusion:
OS (Linux) and libusb detects ok the usb devices including the String descriptions, the JavalibusbWrapper detects ok but muddled the String descriptions. This for me is a real problem cause my program depends on the iSerialNumber.
If is there one work around for this "BUG", please tell me. If not maybe the developers of this wrapper cold launch a patch or a new version with the correction.
Many thanks in advance.
Nuno Lima