SuperDave
Joined: 22 May 2008 Posts: 63 Location: Madison, TN
|
USB Descriptor Manufacturer missing |
Posted: Fri Apr 12, 2013 8:06 am |
|
|
This was part of a request by denis_11 back in 2010 which was not answered. He had troubles with the descriptor indexing which was fixed but also asked about the manufacturer not showing. In the code below, 'Test' shows, 'SuperTimer' doesn't. Looking at the device in Control Panel shows Manufacturer as unavailable, Model as Test. Ideas?
Code: |
char USB_STRING_DESC_OFFSET[]={0,4,26};
char const USB_STRING_DESC[]={
//string 0
4, //length of string index
USB_DESC_STRING_TYPE, //descriptor type 0x03 (STRING)
0x09,0x04, //Microsoft Defined for US-English
//string 1
22, //length of string index
USB_DESC_STRING_TYPE, //descriptor type 0x03 (STRING)
'S',0,
'u',0,
'p',0,
'e',0,
'r',0,
'T',0,
'i',0,
'm',0,
'e',0,
'r',0,
//string 2
10, //length of string index
USB_DESC_STRING_TYPE, //descriptor type 0x03 (STRING)
'T',0,
'e',0,
's',0,
't',0
}; |
|
|