Tone Board - inconsistent USB string descriptors

System: Raspberry Pi 3A+, current raspbian lite, Khadas Tone Board, firmware v1.04

Problem: Taking inventory of the USB endpoints offered by the KTB, I find that there is an inconsistency in the string descriptors for the board. Most but not all instances of “Khadas Tone Control” contain a trailing space in the string.

Demonstration: use lsusb -v to dump device information, grep on “Khadas”, and make trailing spaces more apparent by appending a “$” to the chosen lines.

pi@moode53K:~ $ sudo lsusb -vd20b1:000a|grep Khadas|sed 's\$\$\'
  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 $
      iInterface              4 Khadas Tone Control $

As can be seen, three times there is no trailing space and 10 times there is. This was tripping up a software routine I had which did pattern matching.

1 Like