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

cross mob
NoAr_1540581
Level 5
Level 5
Distributor - Macnica (Japan)
5 solutions authored 250 sign-ins 100 replies posted

Hello

The product (CY7C65211A) is connected to the HOST PC (Windows 10) via USB. Up to 16 products can be connected to one PC.

They need to identify multiple connected devices using Cypress API.

In particular,  The device is selected and operated with the device number (deviceNumber) obtained by the CyGetListofDevices () function included in CyUSBSerial.h.

So, they want to know the physical location of the device corresponding to this device number, but it seems that there is no parameter that can be distinguished in CyUSBSerial.h when the same device is connected multiple times. Is there a better way?

Best Regards

Arai

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Please refer to this KBA: Accessing Multiple USB-Serial Devices using the Device Instance Path – KBA228257  and use the function GetDevicePath() mentioned in the KBA. Using this you can get the unique device instance path of a Cypress device by passing the device number as an argument. 

Another method to identify a cypress device is assigning a unique serial number to each device and retrieving the same using the CyGetDeviceInfo API and CY_DEVICE_INFO structure from the Cypress USB-Serial API library. Please refer to the API document in the USB-Serial SDK.

Thanks,

Yatheesh

View solution in original post

0 Likes
5 Replies