Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > UVC bandwidth not enough

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



UVC bandwidth not enough
Moderator:
RSKV

Post Reply
Follow this topic



UVC bandwidth not enough

Owen Chang posted on 21 Jun 2012 4:05 AM PST
Senior Member
15 Forum Posts

Hi, I have modified the UVC example to Full HD uncompressed  and still using internal image buffer (no extra hardware). No toggle FID, always using same image data, and i found the period between two transfers increase dramatically after first several transfers finshed (please see attached file), and if i disable all caches,the period will increase even more (more than 4.ms). i thought this is due to the latency of RTOS lib,but is there any way to avoid this? thanks.

is there any demo about this kind of higher resolution application? 




Re: UVC bandwidth not enough

RSKV posted on 21 Jun 2012 05:18 AM PST
Cypress Employee
655 Forum Posts

 BULK transfers are bursty in nature, So these kind of delays are expected from the host side. I don't think there is a way to avoid these gaps if we are using BULK transfers. Having a big buffer in the FX3 should save some data but it cannot completely avoid such scenarios.

Going to ISO transfers should help you to avoid these scenarios. There is a example project with ISO transfers as well. Did you get a chance to try that.

Thanks,

Sai Krishna.

 

 



Re: UVC bandwidth not enough

aasi posted on 21 Jun 2012 05:19 AM PST
Cypress Employee
1073 Forum Posts

 Hi,

Please expand the traffic to let us know if there are lot of NAKs being seen on the bus or if the delay is due to lack of between IN packets.

Regards,

Anand



Re: UVC bandwidth not enough

Owen Chang posted on 21 Jun 2012 07:17 PM PST
Senior Member
15 Forum Posts

There is no NRDY, it seems Host is not the transfer initiator in this case (even if Device somehow postpone the transfer), it is up to Deice to initiate another transfer with ERDY, so there would be no NRDY.



Re: UVC bandwidth not enough

Owen Chang posted on 24 Jun 2012 06:46 PM PST
Senior Member
15 Forum Posts

please let me know if my understanding is wrong regarding to the bandwidth(no NRDY latency), thanks



Re: UVC bandwidth not enough

RSKV posted on 25 Jun 2012 11:02 PM PST
Cypress Employee
655 Forum Posts

Owen Chang,

I did not get your post completley. Could you please explain me your understanding on the bandwidth again.

Thanks,

sai krishna.



Re: UVC bandwidth not enough

Owen Chang posted on 25 Jun 2012 01:03 AM PST
Senior Member
15 Forum Posts

 Sorry, let me explain further. I try to build an UVC BULK of uncompressed Full HD example, but once I complete the coding (image data is in memory, not provide by external hardware), I found there is huge delay between last ACK from Host and Device’s ERDY (ref: pictures of previous post). Data payload is 15362 including header, so the last DP is 2 Byte and the EOB of this DP is 1, this EOB will stop Host from initiating next transaction, and the next transaction will be initiated by Device’s ERDY. My question is the latency from last ACK (Host acknowledge this 2B DP) to ERDY (from Device) is too long (4ms), and this will decrease the frame rate, but once I enable all caches (I / D / DMA), the latency down to 1ms. I wonder this is the limitation of FX3, because we can only access hardware via RTOS, lots of code running on the background and decrease performance under certain cases.

Perhaps there is a better demo example from your end could explain this situation?

Thanks 






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.