<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>version change of usb component in keil</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/34951/version-change-of-usb-component-in-keil</link><description> 
Hi all, 
I need to get version id and product id of usb connected. 

 
i found that for USB Component version 6.10.0 , the library itself
is providing following functions to read usb details 

 
1. uint16_t USBH_Device_GetVID (uint8_t device); 
2. uint16_t</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: version change of usb component in keil</title><link>https://community.arm.com/thread/129352?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 01:29:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d808448e-3905-45a2-982a-950bfc767e5d</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Excellent!&lt;/p&gt;

&lt;p&gt;
Now, please be sure to &lt;b&gt;update &lt;i&gt;all&lt;/i&gt; the other threads you
started on this topic&lt;/b&gt; - so they aren&amp;#39;t left &amp;quot;hanging&amp;quot; when the
solution has already been found ...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: version change of usb component in keil</title><link>https://community.arm.com/thread/121009?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 01:25:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:972fa72f-f7e5-4164-b526-cae0b0a3e7e8</guid><dc:creator>Arun Cyriac</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Cvjetkovic,&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;Thank you very much.&lt;/b&gt;&lt;br /&gt;
It works fine now and i am able to read pid and vid sucessfully.&lt;/p&gt;

&lt;p&gt;
regards&lt;br /&gt;
Arun&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: version change of usb component in keil</title><link>https://community.arm.com/thread/109080?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 22:07:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4a8dfaca-2ab7-4c8a-a83d-f3494d405478</guid><dc:creator>Milorad Cvjetkovic</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Arun,&lt;/p&gt;

&lt;p&gt;
you should take a look at USB Specification Revision 2.0 page 253
(9.4.3) that should explain request GetDescriptor, at pages 262 and
263 (Table 9-8) you can see what Standard Device Descriptor consists
of.&lt;/p&gt;

&lt;p&gt;
You can also see descriptor here: &lt;a href="http://www.keil.com/pack/doc/mw/USB/html/_u_s_b__device__descriptor.html"&gt;
&lt;a href="http://www.keil.com/pack/doc/mw/USB/html/_u_s_b__device__descriptor.html"&gt;www.keil.com/.../_u_s_b__device__descriptor.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: version change of usb component in keil</title><link>https://community.arm.com/thread/83554?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 21:05:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b9f88478-b4d8-42f1-8568-37cf469c75a8</guid><dc:creator>Arun Cyriac</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Cvjetkovic,&lt;/p&gt;

&lt;p&gt;
I am adding some more points.&lt;/p&gt;

&lt;p&gt;
I tried USBH_DeviceRequest_GetDescriptor function and the return
status was sucess.&lt;/p&gt;

&lt;p&gt;
But for pid and vid what should be the descriptor_length. i have
given descriptor_length = 50, and got many fileds filled.&lt;/p&gt;

&lt;p&gt;
I don&amp;#39;t know which will be the pid and vid fields.&lt;/p&gt;

&lt;p&gt;
can you please help me in this.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: version change of usb component in keil</title><link>https://community.arm.com/thread/83551?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 18:56:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0509874f-885d-49be-ac97-2bb458ca35f1</guid><dc:creator>Arun Cyriac</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Cvjetkovic,&lt;/p&gt;

&lt;p&gt;
Thank you very much for your reply.&lt;/p&gt;

&lt;p&gt;
I have gone through the function USBH_DeviceRequest_GetDescriptor
but i am confused with some arguments.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;usbStatus USBH_DeviceRequest_GetDescriptor ( uint8_t
device,&lt;br /&gt;
uint8_t recipient,&lt;br /&gt;
uint8_t descriptor_type,&lt;br /&gt;
uint8_t descriptor_index,&lt;br /&gt;
uint16_t language_id,&lt;br /&gt;
uint8_t * descriptor_data,&lt;br /&gt;
uint16_t descriptor_length&lt;br /&gt;
)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I read the functional overview but its not clearly explained.&lt;br /&gt;
It will be helpful share a sample code or explain those
parameters.&lt;/p&gt;

&lt;p&gt;
Regards&lt;br /&gt;
Arun&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: version change of usb component in keil</title><link>https://community.arm.com/thread/65352?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 05:16:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dca20644-2d2c-4616-818a-f58ad1f86289</guid><dc:creator>Milorad Cvjetkovic</dc:creator><description>&lt;p&gt;&lt;p&gt;
You can use function USBH_DeviceRequest_GetDescriptor to get the
Device Descriptor and then you analyze device descriptor and extract
PID and VID from it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>