VID & HID is NOT consistent

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Dear All;

Both in the device manager and in the psoc creator 4.1 I can see the that my VID is 4B4 and PID is 10.

However when I execute the following code

InitializeComponent();

CCyUSBDevice *USBDevice = new CCyUSBDevice(NULL);

int devices = USBDevice->DeviceCount();

textBox1->Text = textBox1->Text + "\r\nnumber of devices : \r";

textBox1->Text = textBox1->Text + System::Convert::ToString(devices);

int vID{ 0 }, pID{ 0 };

int d = 0;

if (USBDevice->IsOpen()) {

textBox1->Text = textBox1->Text + "\r\ndevice is open \r";

//USBDevice->Reset();

//USBDevice->Open(0);

vID = USBDevice->VendorID;

}

textBox1->Text = textBox1->Text + "\r\nVID : \r";

textBox1->Text = textBox1->Text + System::Convert::ToString(vID);

I see that

number of devices : 1

device is open

VID : 32769

So how can I get the true VID and PID?

Thanks in advance for your help...

0 Likes
1 Reply
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

This link may be helpful:

VID and PID for PSOC5

0 Likes