CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB Descriptor Manufacturer missing

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
SuperDave



Joined: 22 May 2008
Posts: 63
Location: Madison, TN

View user's profile Send private message Visit poster's website

USB Descriptor Manufacturer missing
PostPosted: Fri Apr 12, 2013 8:06 am     Reply with quote

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
};
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group