Part Number: CC2540
Hello guys,
I have an issue with the CC2540 USB module. The manufacturer string and the product string are not working properly.
I found the file usb_hid_descriptor.s51 has this code:
;; String descriptors
string0Desc: ; Language ID
DB string0DescEnd - string0Desc ; bLength
DB DESC_TYPE_STRING ; bDescriptorType
DW 0409H ; wLangID (English-US)
string0DescEnd:
string1Desc: ; Manufacturer
DB string1DescEnd - string1Desc ; bLength
DB DESC_TYPE_STRING ; bDescriptorType
DB 'T', 0 ; unicode string
DB 'e', 0
DB 'x', 0
DB 'a', 0
DB 's', 0
DB ' ', 0
DB 'I', 0
DB 'n', 0
DB 's', 0
DB 't', 0
DB 'r', 0
DB 'u', 0
DB 'm', 0
DB 'e', 0
DB 'n', 0
DB 't', 0
DB 's', 0
string1DescEnd:
string2Desc: ; Product
DB string2DescEnd - string2Desc ; bLength
DB DESC_TYPE_STRING ; bDescriptorType
DB 'U', 0 ; unicode string
DB 'S', 0
DB 'B', 0
DB ' ', 0
DB 'C', 0
DB 'C', 0
DB '2', 0
DB '5', 0
DB '4', 0
DB '0', 0
DB ' ', 0
DB 'H', 0
DB 'I', 0
DB 'D', 0
string2DescEnd:
; To enable multiple HID dongles to connect to a PC,
; program a unique serial number for each dongle.
string3Desc: ; Serial Number
DB string3DescEnd - string3Desc
DB DESC_TYPE_STRING ; bDescriptorType
DB '0', 0
DB '0', 0
DB '1', 0
string3DescEnd:
usbDescEnd:
But in the file usb_standard_requests.c, about the function usbsrGetDescriptor(void), there is a line in the comment:
INDEX: 0, or language ID for string descriptors (currently not supported)
I am a bit confused, what should I do to make the string work properly? I ran the example of HIDAdvRemoteDongle, the strings didn't work.
Regards