Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > endpoints timeout problem in CyUSB .NET

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



endpoints timeout problem in CyUSB .NET
Moderator:
RSKV

Post Reply
Follow this topic



endpoints timeout problem in CyUSB .NET

IRod posted on 09 May 2012 8:17 AM PST
Senior Member
11 Forum Posts

Hello,

I'm developing an application in the PC side that receives bytes from FX3 through an "isochronous in endpoint". I need the PC to be waiting for the incoming transfer once the FX3 firmware is running.

It's supposed that when endpoint "Timeout" is set to a value distinct from 0, the endpoint must wait for that time if the transfer didn't finish before, but it doesn't work. Actually it doesn't wait any time despite the "Timeout" value is really updated (watched with the debugger).

What I do is:

            device.IsocInEndPt.TimeOut = 10000; //Wait for 10 seconds

            bool bResult = isocInEndpoint.XferData(ref bytes, ref xferLen);

My questions are:

1. If the PC request data and there isn't any available, the XferData(...) function returns even if the timeout is set to infinite?.

2. If the PC request data and there isn't enough available, the XferData(...) function returns the available data instead of waiting for all requested data to be available?.

Thanks in advance,

 




Re: endpoints timeout problem in CyUSB .NET

aasi posted on 10 May 2012 02:01 AM PST
Cypress Employee
1073 Forum Posts

Hi,

Do you by any chance have a CATC analyzer to observe what is happening on the bus?

For isochronous endpoint since it doesn't have NRDY (or NAK when it comes to USB2.0) the concept of transaction is slightly different than other endpoints. If the host doesn't receive the specified amount of time it'll not have a way of knowing whether it is due to packet corruption of due to lack of response from device. So the host will time out the transaction. Please look at section 8.1 of the USB3.0 spec to understand this better.

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.