Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Data loss during tansfer

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



Data loss during tansfer
Moderator:
RSKV

Post Reply
Follow this topic



Data loss during tansfer

26974873 posted on 24 Oct 2009 2:03 AM PST
Member
5 Forum Posts

CPLD--->CY7c68013--->PC

CPLD generates incremental data, then I use BULK method, EP2 out, EP6 in,to send

data to PC, PC use bulk-loop function(Cypress Examples, i modified this VC++ code, to force PC to receive only),

I use BUSHOUND to watch the data , I find data loss during data transfer. some data

loss per 512 bytes transfer.

Need I use ping-pong transfer? How to realize it.....

I beg your reply......
 




Re: Data loss during tansfer

aasi posted on 27 Oct 2009 11:51 PM PST
Cypress Employee
1090 Forum Posts
Are you stopping the counter (or whatever resource that you are using to increment data) when the endpoint buffer is full... because that time though the counter is counting there is no buffer space to register these values and send to host...

Re: Data loss during tansfer

26974873 posted on 27 Oct 2009 12:41 AM PST
Member
5 Forum Posts

NO,I didn't stop the counter. Because I really need to send a continuous Data, counter could not stop...

The PC should received continous data, But some data lost...

I use CyAPI,
for(;bLooping
{
BeginDataXfer(..);
-->WaitXfer(..)
-->FinishXfer(...);
}

How should I mend this procedure? Thank you AASI...



Re: Data loss during tansfer

aasi posted on 27 Oct 2009 01:37 AM PST
Cypress Employee
1090 Forum Posts
What is the data rate you are trying to achieve??? though upto 53MBps can be achieved using bulk endpoint... in reality we don't get this high a bandwidth...

Re: Data loss during tansfer

aziz posted on 27 Oct 2009 02:39 AM PST
Member
2 Forum Posts
I want to capture MPEG-TS Output of Demodulator using CY7c68013 to PC.
System as (Antina)--->(Tuner)--->(Demodulator)===>CY7c68013--->PC
I have plan to use EP2 configure as 1024ByteX4 Buffer allocation (Isochronous Endpoint)
or EP2 configure as 512BytesX4 (Bulk Transfer)
I can configure EP2 as 1024X4 bulk transfer.

What is practical expected Transfer Data rate I can archive for move configuration
If I connect CY7c68013 to PC high speed USB host port (without USB HUB)


Re: Data loss during tansfer

aasi posted on 27 Oct 2009 04:33 AM PST
Cypress Employee
1090 Forum Posts
I've seen data rate as high as 48MBps....
You might find http://www.cypress.com/?rID=37775 and http://www.cypress.com/?rID=37776 interesting...

Re: Data loss during tansfer

26974873 posted on 27 Oct 2009 05:49 PM PST
Member
5 Forum Posts

I need as fast as Cy7c68013a can achieve.Bulk transfer is the fastest way,


Dear AASI, could please tell me what should I do to avoid this data loss?
Because I need to receive continuous data. Data rate: 40MB/s



I use AUTO-IN mode in the Firmware. Config EP2 as 512B*4.



Re: Data loss during tansfer

aziz posted on 28 Oct 2009 06:13 AM PST
Member
2 Forum Posts
Thanks aasi,

Can you update me the configuration mode of the Cy7c68013a in FX2LP DMB-T/H TV Dongle reference design?
1. Cy7c68013a is used in Mast GPIF or Slave FIFO ?
2. end point EP2 is Bulk Pkt Len (512/1024) or ISOCRONUS Pkt Len (1024) ?
3. EP2 Buffer Configuration (512X? 2/3/4) or (1024X? 2/3/4) ?
4. Host Application details?

Re: Data loss during tansfer

26974873 posted on 29 Oct 2009 03:18 AM PST
Member
5 Forum Posts
AASI:

could you please help me ?

In firmware, I use EP2 IN as 512*4, EP6 OUT as 512*4.
BulkLoop Method. Asychronous transfer.


In VC++, I use BeginXfer(..)--->WaitXfer(...)---->FinishXfer(...). This Speed can reach 16MB/s.

How to reach 48MB/s, Could you help me? 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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20