Got errors when I use Python sample code

1.Which seller did you purchase the product(s) from?
http://vctec.co.kr/
2.The Model number of the product(s) you have purchased?
UC-425 Rev.C, UC-6228 Rev.B, UC-512 Rev.C
3.Which Platform are you using the product(s) on?
Jetson Nano B01
4.Which instruction are you following?
https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/tree/master/Nvidia_Jetson/Python/Streaming_demo
5.Has your product ever worked properly?
Never worked
6.What problems are you experiencing?
I set up USB shield refer to [1].

I run following python code.

sudo python ArduCam_Py_Demo.py …/…/…/Config/USB3.0_UC-425_Rev.C+UC-628_Rev.B+UC-512_Rev.C/2_to_1/IMX477/Jetson/IMX477_MIPI_2Lane_RAW10_1920x1080.cfg

 

I get following errors.

Color mode 0
Serial: AU3S-2108-0003
Capture began, rtn_val = 0
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316

Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65316
Gtk-Message: 10:11:03.117: Failed to load module “canberra-gtk-module”
USB_CAMERA_DATA_LEN_ERROR RECEIVE_LENGTH:2072264
Error capture image, rtn_val = 65316
Error capture image, rtn_val = 65312

What do I have to check?

Thanks.

References:

  1. https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/tree/master/Nvidia_Jetson/Python/Streaming_demo
    7.What attempts at troubleshooting have you already made?
    Check cable connection
    8.How would you like us to help you?
    Give me some check point

Hi @syhuh1125

Can you provide a picture of the connection of the module?
And you don’t seem to indicate the camera module used, any purchase link, SKU number or UC number will be helpful.

  1. UC number : UC-517 Rev.D

  1. UC number : UC-628 Rev.B

  1. UC number : UC-425 Rev.C

<p style=“text-align: center;”>[Fig1. Overall View ]</p>
 

<p style=“text-align: center;”>[ Fig2. UC-517 Rev.D and UC-425 Rev.C ]</p>
 

<p style=“text-align: center;”>[ Fig3. UC-628 Rev.B]</p>

<p style=“text-align: center;”>[ Fig1. Overall view ]</p>
 
<p style=“text-align: center;”>[ Fig 2. UC-517 Rev.D and UC-425 Rev.C ]</p>
 

<p style=“text-align: center;”>[ Fig3. UC-628 Rev.B ]</p>
 

1. Purchase link of UC-517 Rev.D

http://vctec.co.kr/product/아두캠-hq-카메라-모듈-123mp-123인치-imx477-6mm-cs-렌즈-arducam-high-quality-camera/17609/category/145/display/1/

 


2. Purchase link of UC-628 Rev.B

http://vctec.co.kr/product/아두캠-mipi-어답터보드-usb-30-카메라-쉴드용-arducam-mipi-adapter-board-for-usb3-came/14299/category/145/display/1/

 


3. Purchase link of UC-425 Rev.C

http://vctec.co.kr/product/아두캠-usb30-카메라-쉴드-arducam-usb30-camera-shield/13929/category/145/display/1/

I found the mismatch.

I have the UC-517 Rev.D.

However the configuration file is for UC-512 Rev.C.

Is this the cause of the error?

Then, can you provide me the configuration file for UC-517 Rev .D?

Hi @Syhuh1125

here is the right configuation file:
https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/tree/master/Config/USB3.0_UC-425_Rev.C%2BUC-628_Rev.B/IMX477

 

May I know why you want to use USB instead of CSI2 interface?
(This camera can be directly connected to Jetson Nano’s CSI2 interface, imx477-how-to-install-the-driver)

Hi wong,

 

I tried your suggestion, but still got errors.

——————————————————————————————————

Color mode 0
Serial: AU3S-2108-0003
Capture began, rtn_val = 0

Gtk-Message: 10:11:03.117: Failed to load module “canberra-gtk-module”
Error capture image, rtn_val = 65318
Error capture image, rtn_val = 65318
Error capture image, rtn_val = 65318

……
——————————————————————————————————

 

I succeeded with CSI2 connection.

I want to extend the length of cable between camera module and Jetson Nano.

As I know, the maximum length of CSI2 cable is about 25cm ~ 30cm.

But I would like to use longer cable, so I tried USB shield.

 

Thanks.

 

Can you try this configuration file? Or use USBTest GUI to test on windows, we need to confirm whether there is a problem with the hardware first.