1 Reply Latest reply on Mar 29, 2018 9:18 PM by anks

    VID & HID is NOT consistent

    burakakde_3248161

      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...