12-03-2019, 03:04 PM
(12-03-2019, 02:36 PM)TheOldPresbyope Wrote: Good morning.thank you Kent, here the result (I hope it is correct)
You're close but 1) need to run the lsusb command as root so it can open the device to get details and 2) need to make curiosities like trailing spaces and non-printing characters visible.
So, on the command line, take sudo lsusb -v and pipe the output into cat -A. The option on the cat command tell it to show end-of-lines as '$', to show tabs as '^I', and to show non-printing characters in '^' and 'M-' notation.
Here's an example from the beginning of the output from my offending Khadas Tone Board (where I told lsusb the device ID so I could shorten the output a bit; you can get the device ID from the lsusb output). Note the space before the '$' on some lines.
Code:pi@moodeLR:~ $ sudo lsusb -v -d 20b1:000a | cat -A
$
Bus 001 Device 004: ID 20b1:000a XMOS Ltd $
Device Descriptor:$
bLength 18$
bDescriptorType 1$
bcdUSB 2.00$
bDeviceClass 239 Miscellaneous Device$
bDeviceSubClass 2 $
bDeviceProtocol 1 Interface Association$
bMaxPacketSize0 64$
idVendor 0x20b1 XMOS Ltd$
idProduct 0x000a $
bcdDevice 1.04$
iManufacturer 1 XMOS$
iProduct 3 Khadas Tone Control$
iSerial 0 $
...
So try this concatenated pair of commands on your system and post your results.
To illustrate the Khadas-descriptor inconsistency we were wrestling with, here's what I get when I pipe the previous output into grep to look for occurrences of 'Khadas'. Sometimes trailing space; sometimes not. Sigh.
Code:pi@moodeLR:~ $ sudo lsusb -v -d 20b1:000a | cat -A | grep Khadas
iProduct 3 Khadas Tone Control$
iInterface 3 Khadas Tone Control$
iTerminal 6 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
iInterface 3 Khadas Tone Control$
iTerminal 6 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
iInterface 4 Khadas Tone Control $
can't get debug descriptor: Resource temporarily unavailable
iInterface 4 Khadas Tone Control $
Regards,
Kent
sudo lsusb -v -d