cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

njxsy_wqf
New Contributor

The output of CY3065+OV5640 is normal when connected to the computer UVC. After connecting to the Android phone, the UVC device can be recognized, but the camera cannot be opened. Check the log log output of the software and find that: The application is unable to configure the output video parameters. The personal troubleshooting reason may be that the video data is inconsistent. CY3065 outputs YUY2 data format. Does CY3065 support other data formats such as YUV420? Please give directions, thank you!

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator

Hello,

Please refer to this thread  Solved: CX3 -Android - Cypress Developer Community   and let me know if the video streaming works.

Please let me know if the camera is  coming up on the host application when the device is plugged in  and  share the UART debug logs (for device debugging) while streaming when the problem is seen.

Also, let me know if CX3 is programmed using the default OV5640 firmware.

Regards,
Rashi

View solution in original post

0 Likes
4 Replies
JayakrishnaT_76
Moderator
Moderator

Hello,

Please let us know the following details so that we can debug the issue:

1. Which firmware are you using for the tests? Is it the firmware that comes along with the FX3 SDK (cycx3_uvc_ov5640)? If not, can you please test with this project and let us know the result?

2. Please share the UART debug logs when the problem is seen

Regarding your question on data formats supported by CX3, please refer to the Q2 of the following KBA:

https://community.cypress.com/t5/Knowledge-Base-Articles/CX3-Firmware-Frequently-Asked-Questions-KBA...

Please note that CX3 is a bridge between the image sensor and the host. CX3 supports certain MIPI data types. Please refer to the following thread to understand the MIPI data types that are supported by CX3:

https://community.cypress.com/t5/USB-Superspeed-Peripherals/CX3-Configure-IMX294/td-p/270906

Any MIPI data type that is not supported by CX3 will not be sent out to the host along with the video data. If the data type ID is supported by CX3, then it will forward the data to the host. It is the duty of the host to interpret and display the video data. If the format used is supported by standard UVC host applications, then they can be used to obtain the video stream. Otherwise, a custom host application will be needed to display the video data.

Best Regards,
Jayakrishna
0 Likes
njxsy_wqf
New Contributor

1. The current firmware is CYCX3_UVC_OV5640

2. Using Android APP, the output error log is as follows:

(...... The 2021-04-30 13:23:10. 559, 3499-5385 / com. Zhongguxin. Electricbox I/libUVCCamera: [5385*UVCPreview.cpp:276:callbackPixelFormatChanged]:PIXEL_FORMAT_YUV20SP:

The 2021-04-30 13:23:10. 562, 3499-3499 / com. Zhongguxin. Electricbox D/ScanFinderView: ontouch - uvcCameraConfig = = null?? false

The 2021-04-30 13:23:10. 567, 3499-5403 / com. Zhongguxin. Electricbox E/libusb/usbfs: [5403*android_usbfs.c:2878:handle_control_completion]:LIBUSB_TRANSFER_STALL

The 2021-04-30 13:23:10. 567, 3499-5405 / com. Zhongguxin. Electricbox E/libuvc/stream: [5405*stream.c:391:_prepare_stream_ctrl]:uvc_query_stream_ctrl:UVC_GET_MIN:err=-9

The 2021-04-30 13:23:10. 575, 3499-5403 / com. Zhongguxin. Electricbox E/libusb/usbfs: [5403*android_usbfs.c:2878:handle_control_completion]:LIBUSB_TRANSFER_STALL

The 2021-04-30 13:23:10. 575, 3499-5405 / com. Zhongguxin. Electricbox E/libuvc/stream: [5405*stream.c:391:_prepare_stream_ctrl]:uvc_query_stream_ctrl:UVC_GET_MIN:err=-9

The 2021-04-30 13:23:10. 575, 3499-5405 / com. Zhongguxin. Electricbox E/libuvc/stream: [5405*stream.c:427:_uvc_get_stream_ctrl_format]:_prepare_stream_ctrl:err=-9

The 2021-04-30 13:23:10. 575, 3499-5405 / com. Zhongguxin. Electricbox E/libUVCCamera: [5405 * UVCPreview. CPP: 507: prepare_preview] : could not negotiate with the camera: err = - 51)

3. Is it because the UVC library of Android software is not supported?

Thank you very much!

0 Likes
Rashi_Vatsa
Moderator
Moderator

Hello,

Please refer to this thread  Solved: CX3 -Android - Cypress Developer Community   and let me know if the video streaming works.

Please let me know if the camera is  coming up on the host application when the device is plugged in  and  share the UART debug logs (for device debugging) while streaming when the problem is seen.

Also, let me know if CX3 is programmed using the default OV5640 firmware.

Regards,
Rashi

View solution in original post

0 Likes
njxsy_wqf
New Contributor

Thank you. The problem has been solved for now.

0 Likes