cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Anonymous
Not applicable

For coast down reason, i need put at least four CY7C68013A(EZ-USB-FX2) devices on one PC's USB ports, but i don't know how my application software to know which one is the correct one to control? or, if i open four instances of the application waftware, how can the four instances and the four devices can be one to one correspondence? thank you!

0 Likes
3 Replies
Anonymous
Not applicable

 Hi,

   

        Are you using cypress library for Host application development?  You can select devices based on VID/PID value.

   

    Please see http://www.cypress.com/?rID=12974http://www.cypress.com/?rID=53165 and http://www.cypress.com/?rID=43538, these ANs would be helpful for you.

   

      Can you tell us more about your application so that we can help you out.

   

 Thanks

   

Prajith

0 Likes
Anonymous
Not applicable

Hi, i'm sorry for hand slip to click the "report abuse". YES, I used CYUSB.LIB to create a application in vc++ 6.0 platform, this .lib has a function bool CCyUSBDevice::Open(UCHAR dev) to open different CY7C68013A devices, but i don't know how to sent data to the one device that i want. If the XferData() can know whiche device it shout send to? or someone else function can do it? thanks!

   

the structure of my design is:

   

useing application to download firmwire into CY7C68013A's RAM everytime when i open it. 

   

useing Xferdata() to transfer data to CY7C68013A

   

when firmwire get the data, useing "switch" to decide which function should be called base on the data.

0 Likes
Anonymous
Not applicable

 Hi,

   

  Using below code identify your device number and then thransfer data.   

   

//  Look for a device having VID = 0547, PID = 1002

   

 CCyUSBDevice *USBDevice  = new  CCyUSBDevice(NULL);   //  Create an instance of CCyUSBDevice

   

 

   

int   devices = USBDevice->DeviceCount();

   

 

   

int   vID, pID;

   

int  d = 0;

   

 

   

do   {

   

 USBDevice->Open(d);   // Open automatically  calls Close() if necessary

   

 vID = USBDevice->VendorID;

   

 pID  = USBDevice->ProductID;

   

 d++;

   

}   while  ((d < devices ) && (vID != 0x0547) &&  (pID != 0x1002));

   

Thanks

   

Prajith

0 Likes