You are here

VID and PID for PSOC5 | Cypress Semiconductor

VID and PID for PSOC5

Summary: 3 Replies, Latest post by Paddy72 on 15 Apr 2016 06:59 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
KGaza's picture
13 posts


I am using the PSoC5 Pioneer Kit USB as USBUART and for development purposes, I still used the Cypress VID. 

I wanted to be able to get the PSoC5 VID and PID using a command protocol sent from the PC Terminal such that if the pioneer kit received "?UVID" command from the hyperterminal, the pioneer kit will display, "Vendor ID = 04b4" and I wouldn't want to manually code the vendor ID .

char8* reply_str;

reply_str = "Vendor ID = 04b4";

while ( USBUART_CDCIsReady() == 0u ); 
USBUART_PutString(reply_str );

Although this code excerpt would work just the same, I am looking for a dynamic way to read out the Vendor ID and Product ID. There was no GetVendorID() or GetProductID() from the list of the USB API. 

We will be changing the VID and the PID on the final release for the production in the future which explains basically why I am after the dynamic acquisition of both the VID and the PID. It would be great if someone could help me out.




SmartPSoC's picture
Cypress Employee
68 posts

The array USBUART_1_DEVICE0_DESCR[18u]  in USBUART_1_descr.c stores the device descriptors. It has vendor id and product id as its sevent and 8th elements. these values will be modified every time you change vid and pid in the project. 

SmartPSoC's picture
Cypress Employee
68 posts

Sorry, vid and pid are 9th and 11th in the array, not 7th and 8th.

user_347933176's picture
35 posts

By the way, you could ask Cypress for your own PID/VID combination

Log in to post new comments.