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 USBH_Device_GetPID (uint8_t device);
but for component version 6.6 and below, there is no library functions to get version id and product id of usb.
Is there any way to get those details. i am using USB Component version 6.5 and keil mdk version 516a. I dont want to move to latest version.
Hi Arun,
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.
You can also see descriptor here: www.keil.com/.../_u_s_b__device__descriptor.html
Hi Cvjetkovic,
Thank you very much. It works fine now and i am able to read pid and vid sucessfully.
regards Arun
Excellent!
Now, please be sure to update all the other threads you started on this topic - so they aren't left "hanging" when the solution has already been found ...