- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can anybody reply to me, i'm perplexed on this problem. no multiple pipes, no higher speed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know how to do, who can tell me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,Prajith.
I have seen them. thank you!