Hi All,
Using the LPC1343 with the usbhid_rom example (and several others..), I'm not able to get string descriptors for the device via lsusb. I'm wondering if this is an issue with the device/string descriptors or something going on with my linux distro (Centos 6)...
dmesg shows the following:
usb 6-1: new full speed USB device using uhci_hcd and address 68 usb 6-1: New USB device found, idVendor=1fc9, idProduct=0003 usb 6-1: New USB device strings: Mfr=4, Product=32, SerialNumber=72 usb 6-1: Product: NXP LPC13XX HID usb 6-1: Manufacturer: NXP SEMICOND usb 6-1: SerialNumber: DEMO00000000 usb 6-1: configuration #1 chosen from 1 choice generic-usb 0003:1FC9:0003.0004: hiddev96,hidraw0: USB HID v1.00 Device [NXP SEMICOND NXP LPC13XX HID ] on usb-0000:00:1d.0-1/input0
And cat /proc/bus/usb/devices shows:
... T: Bus=06 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 68 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1fc9 ProdID=0003 Rev= 1.00 S: Manufacturer=NXP SEMICOND S: Product=NXP LPC13XX HID S: SerialNumber=DEMO00000000 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=1ms E: Ad=01(O) Atr=03(Int.) MxPS= 64 Ivl=1ms ...
However, lsusb shows:
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 068: ID 1fc9:0003 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
What's going on, where's the string for device 1fc9:0003? If I insert a mouse or something lsusb shows a sensible descriptor for that...
uname -r 2.6.32-71.29.1.el6.x86_64
Any ideas?
Thanks in advance, Peter
For those interested, it seems lsusb pulls data from /usr/share/hwdata/usb.ids
Apparently on Ubuntu its in /var/lib/usbutils/usb.ids
Hi Tsuneo,
Thanks for the reply. I got the same results (ie no strings) with USBHID, USBCDC, etc... I've also tried this on a Ubuntu box and got the same results so I'm running out of things to try...
Peter
How about USBHID example on this code bundle?
Sample Code Bundle for LPC13xx Peripherals using Keil's MDK-ARM V1.06 (Jun 8, 2011) ics.nxp.com/.../code.bundle.lpc13xx.keil.zip
USBHID processes string descriptors a little differently from USBHID_rom If USBHID puts right string for lsusb, the problem lies in the ROM code on the chip.
Tsuneo
View all questions in Keil forum