Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > put some same devices of EZ-USB on one pc, how can i know which one is that i want?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



put some same devices of EZ-USB on one pc, how can i know which one is that i want?
Moderator:
RSKV

Post Reply
Follow this topic



put some same devices of EZ-USB on one pc, how can i know which one is that i want?

gjhave posted on 18 Jun 2012 7:30 PM PST
Senior Member
15 Forum Posts

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!




Re: put some same devices of EZ-USB on one pc, how can i know which one is that i want?

PRJI posted on 19 Jun 2012 11:45 PM PST
Cypress Employee
333 Forum Posts

 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



Re: put some same devices of EZ-USB on one pc, how can i know which one is that i want?

gjhave posted on 19 Jun 2012 06:59 PM PST
Senior Member
15 Forum Posts

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.

 

 



Re: put some same devices of EZ-USB on one pc, how can i know which one is that i want?

PRJI posted on 22 Jun 2012 03:54 AM PST
Cypress Employee
333 Forum Posts

 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






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20