How to handle binary Serial numbers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

the STM Discovery module are affordable small boards with an ARM Cortex3
microcontroller, Pins available at break-out headers and another smaller
Cortex3 with USB connection, providing a so called STLINK. The
microcontroller used to implement the STLink has a 96 bit unique device
serial number. It looks like the UBS implementation uses this number as USB
description iSerial. When this binary number is printed as ACSII, garbage
results:

SerialNumber: WÿnIeRUG%#

The SerialNumber changes for different board I have.

As the user may need this serial number to distinguish several adapters
connected devices, a printout of the serial number as hex number would be
needed, as the ASCII printout will not print some byte values.

Is changing the 
drivers/usb/core/hub.c showstring() function 
to check for non printable bytes and then print aout the hex values instead
of chars acceptable?

Thanks
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux