Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB superspeed peripherals

qihuc_3538536
Level 1
Level 1

Hi,

I'm using the AN75779 demo project with my camera initialize function, now I can get correct images(1280*1080).

But the output frame rate is always half of input(30FPS),even in other frequence such as 2 FPS.

What's the cause of this problem?

Regards,

Qi

/* UVC Probe Control Settings for a USB 3.0 connection. */

uint8_t glProbeCtrl[CY_FX_UVC_MAX_PROBE_SETTING] = {

   0x00, 0x00/* bmHint : no hit */

   0x01/* Use 1st Video format index */

   0x01/* Use 1st Video frame index */

   0x15, 0x16, 0x05, 0x00/* Desired frame interval in the unit of 100ns: 30 fps */

   0x00, 0x00/* Key frame rate in key frame/video frame units: only applicable

  to video streaming with adjustable compression parameters */

   0x00, 0x00/* PFrame rate in PFrame / key frame units: only applicable to

  video streaming with adjustable compression parameters */

   0x00, 0x00/* Compression quality control: only applicable to video streaming

  with adjustable compression parameters */

   0x00, 0x00/* Window size for average bit rate: only applicable to video

  streaming with adjustable compression parameters */

   0x0A, 0x00/* Internal video streaming i/f latency in ms */

   0x00, 0x30, 0x4A, 0x00/* Max video frame size in bytes */

   0x00, 0x40, 0x00, 0x00/* No. of bytes device can rx in single payload = 16 KB */


#ifndef FX3_UVC_1_0_SUPPORT

   /* UVC 1.1 Probe Control has additional fields from UVC 1.0 */

   0x00, 0x60, 0xE3, 0x16/* Device Clock */

   0x00/* Framing Information - Ignored for uncompressed format*/

   0x00/* Preferred payload format version */

   0x00/* Minimum payload format version */

   0x00   /* Maximum payload format version */

#endif

};

   /* Class specific Uncompressed VS frame descriptor */

   0x1E/* Descriptor size */

   0x24/* Descriptor type*/

   0x05/* Subtype: uncompressed frame I/F */

   0x01/* Frame Descriptor Index */

   0x01/* Still image capture method 1 supported */

   0x00, 0x05/* Width in pixel */

   0x38, 0x04/* Height in pixel */

   0x00,0x00,0x8D,0x27/* Min bit rate bits/s. */

   0x00,0x00,0x8D,0x27/* Max bit rate bits/s. */

   0x00,0x30,0x2A,0x00/* Maximum video or still frame size in bytes(Deprecated)*/

   0x15,0x16,0x05,0x00/* 30fps */

   0x01,

   0x15,0x16,0x05,0x00,

0 Likes
3 Replies
alamandaa_16
Moderator
Moderator 10 likes received First like received
Moderator

Hi,

Please answer the following questions:

1.If Camera is plugged into USB 2.0 port,What is the frame rate and frame size?

2.If Camera is plugged into USB 3.0 port,What is the frame rate and frame size?

Regards,

Anil Srinivas.

0 Likes
qihuc_3538536
Level 1
Level 1

Hi, thank you for your reply.

I haven't tested the frame rate under USB 2.0 because my application is only for USB 3.0.

When the input frame rate is 30 FPS, the actual output frame rate is only 15 FPS.

When the input is 20FPS,the output frame rate is 10FPS,

the output frame rate is always half of input in any situation.

And I only modified CyFxUSBSSConfigDscr and glProbCtrl,frame size is 1280*1080.

Regards,

Qi.

0 Likes
alamandaa_16
Moderator
Moderator 10 likes received First like received
Moderator

Hi,

In UVC probe control settings,you can change Maximum video frame size in bytes to {0x00,0x60,0x94,0x00}

Can you please probe the FV and LV lines and share the timing diagram?

Regards,

Anil Srinivas.

0 Likes