Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers

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



AN75779 with ISOC endpoint does not work
Moderator:
RSKV

Post Reply
Follow this topic



AN75779 with ISOC endpoint does not work

shah posted on 28 Sep 2012 6:47 PM PST
Cypress Employee
9 Forum Posts

It is possible to modify the AN75779 example to use ISOC IN endpoint to transfer image data to the USB host. It should be noted that the maximum bandwidth that can be reached is 24MBps in USB2.0 and 8MBps in USB3.0 with standard UVC driver. Please refer to http://www.cypress.com/?app=forum&id=167&rID=69881 for explanation. So Ideally, this should be used only for USB2.0. The following changes assume USB2.0 implementation.

First modification needed is in the USB descriptors to report ISOC endpoints as compared to bulk endpoints.

Second modification needed is in the alternate settings. Currenlty in AN75779, the video streaming interface has only one alternate setting. For ISOC implementation, the alternate setting 0 needs to report zero bandwidth and alternate setting 1 should report a streaming ISOC endpoint.

Third modification required is in the endpoint configuration. The streaming endpoint is set as bulk by setting endPointConfig.isoPkts  = 0 in the application init function. It sould be set to 1 and the mult setting should be set to the desired value depending on bandwidth required.

Fourth modification is to change the buffer size. Isoc implementation of UVC requires UVC header every micro frame. so the buffer size needs to be set to 1K * iso mult with header offset as in AN75779. I would recommend that the mult should be set to 3 even if full 24MBps is not required which will imply a buffer size of 3072 bytes.

Fifth modification: Different image resoutions and bit depths cause different size of data payloads in the end of frame buffer. The post http://www.cypress.com/?app=forum&id=167&rID=69873 talks about USB2.0 isoc endpoint issue in FX3. If this issue is encountered with a particular image size/bit depth setting, the size of the buffer can be reduced by a certain calculated amount such that the end of frame buffer would always have more than 2048 bytes to transfer.

Sixth modification is to set the streaming event when alternate setting is not equal to 0 in the set interface command. Unlike the bulk implementation in AN75779 where the UVC host starts streaming after commit control request, the isoc implementation of UVC starts streaming video after set interface with alternate setting equals non zero value based on USB descriptor.







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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20