Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > how to use multiple in transfer?

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



how to use multiple in transfer?
Moderator:
RSKV

Post Reply
Follow this topic



how to use multiple in transfer?

西门吹牛奶 posted on 25 Feb 2012 7:12 PM PST
Top Contributor
34 Forum Posts

Hi, everyone.

I'd like to use multiple in transfer in my VC code. Here is the example:

UCHAR  *inContext1 = BulkInEpt1->BeginDataXfer(m_pImageBuffer1, length, &inOvLap1);
 UCHAR  *inContext2 = BulkInEpt1->BeginDataXfer(m_pImageBuffer2, length, &inOvLap2); 

BulkInEpt1->WaitForXfer(&inOvLap1,1000);
 BulkInEpt1->WaitForXfer(&inOvLap2,1000);

  BulkInEpt1->FinishDataXfer(m_pImageBuffer1, length, &inOvLap1,inContext1);
 BulkInEpt1->FinishDataXfer(m_pImageBuffer2, length, &inOvLap2,inContext2);

This is the case that one endpint for two buffer, I also used four endpoints for four buffer. I also used one inovlap for two buffer.

But the outcomes are the same----time out. whereas one endpoint to one buffer the speed can be 33MB/s.

so how to use multiple pipes to transfer data in one programme?

 

 




Re: how to use multiple in transfer?

西门吹牛奶 posted on 27 Feb 2012 05:22 AM PST
Top Contributor
34 Forum Posts

can anybody reply to me, i'm perplexed on this problem. no multiple pipes, no higher speed.



Re: how to use multiple in transfer?

西门吹牛奶 posted on 28 Feb 2012 05:14 AM PST
Top Contributor
34 Forum Posts

I don't know how to do, who can tell me?



Re: how to use multiple in transfer?

aasi posted on 28 Feb 2012 09:59 PM PST
Cypress Employee
1090 Forum Posts

Please use the screamer/streamer example that comes as part of SuiteUSB as reference to achieve this. It queues multiple buffers and achieves this.

Looking at your code it seems you're creating 2 overlapped I/Os to acheive this. Please try the queueing up of buffers in a single overlapped I/O followed in SuiteUSB

Regards,

Anand



Re: how to use multiple in transfer?

西门吹牛奶 posted on 29 Feb 2012 01:08 AM PST
Top Contributor
34 Forum Posts

Hi, Anand,

I can find streamer.exe in my computer, but I can't fnd the streamer.dsw. So I can't read the code of it. would you please give me a link to get the streamer.dsw. thank you a lot.

Best regards,

 



Re: how to use multiple in transfer?

aasi posted on 29 Feb 2012 01:56 AM PST
Cypress Employee
1090 Forum Posts

You should be able to find the .sln file which is the project file. The VS2008 and VS2010 projects should be available in separate folders.

Regards,

Anand



Re: how to use multiple in transfer?

西门吹牛奶 posted on 29 Feb 2012 06:16 AM PST
Top Contributor
34 Forum Posts

Hi,Anand,

It's horrible to use visual studio2008. It took me more than one hour to unzip and setup.

Finally I finish the long setup process.   The streamer.sln  and streamer.vcproj are able to open. But I find only very few code. I even can't find word such as"begindataxfer","wait for xfer", "finishxfer",

Oh, my god. it's horrible to use the visual studio2008.

I just need the way of multiple in transfer . Just a small code segment of it.

would you please paste the code segment here.



Re: how to use multiple in transfer?

PRJI posted on 01 Mar 2012 11:16 PM PST
Cypress Employee
333 Forum Posts

 Hi,

         In the project window expand "Header Files" under streamer project and then double click on Streamer.h. Now you should be able to view Form Window, right click on Form window and click on "view code".

Thanks

Prajith

 



Re: how to use multiple in transfer?

西门吹牛奶 posted on 01 Mar 2012 11:39 PM PST
Top Contributor
34 Forum Posts

Hi,Prajith.

I  have seen them. thank you!






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