This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Where's the USB product identification string?

Other Parts Discussed in Thread: MSP430F5659, SYSBIOS, MSP430WARE

Hi,

I'm currently using a MSP430F5659 with your USB framework (the USB dev pack).

Having started my code from one of your example, when I connect to a windows machine (before installing the driver) or in dmesg (or lsusb) on a linux host, I see the device identified as "MSP430-USB Example".

Searching inside my sources I cannot find this string!!

Where is this product ID string? How can I change it?

Thank you

  • matteo lucarelli said:
    Searching inside my sources I cannot find this string!!

    Where is this product ID string? How can I change it?

    The string is saved in the .dat files generated by the usblib430\MSP430_USB_Software\MSP430_USB_DescriptorTool\MSP430_USB_Descriptor_Tool.exe program. The strings can be edited as the "Interface String" inside the tool.

    The tool will generate a descriptors.c source file which contains the string in a look-up table one character at a time. E.g. MSP430ware_1_90_00_30\usblib430\MSP430_USB_2Software\MSP430_USB_API\examples\SYSBIOS\CHM3_SWIs\USB_config\descriptors.c contains the encoded string "MSP430-USB Example":

    uint8_t const abromStringDescriptor[] = {
    
        // String index0, language support
        4,        // Length of language descriptor ID
        3,        // LANGID tag
        0x09, 0x04,    // 0x0409 for English
    
        // String index1, Manufacturer
        36,        // Length of this string descriptor
        3,        // bDescriptorType
        'T',0x00,'e',0x00,'x',0x00,'a',0x00,'s',0x00,' ',0x00,
        'I',0x00,'n',0x00,'s',0x00,'t',0x00,'r',0x00,'u',0x00,
        'm',0x00,'e',0x00,'n',0x00,'t',0x00,'s',0x00,
    
        // String index2, Product
        38,        // Length of this string descriptor
        3,        // bDescriptorType
        'M',0x00,'S',0x00,'P',0x00,'4',0x00,'3',0x00,'0',0x00,
        '-',0x00,'U',0x00,'S',0x00,'B',0x00,' ',0x00,'E',0x00,
        'x',0x00,'a',0x00,'m',0x00,'p',0x00,'l',0x00,'e',0x00,

**Attention** This is a public forum