Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Slow Data transmission due to control transfers

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



Slow Data transmission due to control transfers
Moderator:
RSKV

Post Reply
Follow this topic



Slow Data transmission due to control transfers

Ashley.Grealish posted on 26 Jul 2011 2:05 AM PST
Member
3 Forum Posts

I am attermpting to loop the sending of a 11 byte data packet to an FX2 development board. The firmware appear to be set up correctly and I ave measure that the processing of this data packet on the firmware side takes 30us. However the PC is taking 5ms between loops.

I have captures some timings from the PC using USBlizer and it looks like the device is reconfiguring itself between transmissions.

Here is the output from the USBlizer software:

http://www.appliedrelaytesting.com/other/WriteDataExport.html

The data packet I am sending is "A0 01 67 00 05 03 12 34 56 78 50", as you can see after sending the packet the USB hub tries to get descriptor which takes 899 us.

Any ideas about how to fix this?

 

Thank you in advance.




Re: Slow Data transmission due to control transfers

aasi posted on 26 Jul 2011 02:36 AM PST
Cypress Employee
1090 Forum Posts

Are you using SuiteUSB for developing the host application? If so CyAPI.lib or CyUSB.dll?

Looking at the Close and Create messages in the middle I assume you are opening and closing the handle for each transfer. Is my understanding right?
Regards,

Anand



Re: Slow Data transmission due to control transfers

Ashley.Grealish posted on 26 Jul 2011 02:50 AM PST
Member
3 Forum Posts


I am using CyUSB.dll. I beleive that I am keeping the handle open and just sending new data packets on each loop. I will check this though.



Re: Slow Data transmission due to control transfers

aasi posted on 26 Jul 2011 03:31 AM PST
Cypress Employee
1090 Forum Posts

Opening a handle to the device will send the enumeration requests so that it can populate the data structure and keep track of the appropriate parameters.

Opening and closing the handle for each transfer is the only thing I can think of which would cause this behavior.

Regards,

Anand






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