Error capture image, rtn_val = 65318 on Ubuntu 18.04 using OV9281

Hi, i’m getting the message “Error capture image, rtn_val = 65318” while trying to run Arducam OV9281 1MP Global Shutter USB Camera (UC-599) with USB3 Camera Shield (UC-425 Rev.C) and MIPI Adapter Board (UC-628 Rev.B) on Ubuntu 18.04. The output of ArduCam_Demo is as follows:

device num:1
index: 0 Serial:AU3S-2009-0034
Serial: AU3S-2009-0034
capture thread create successfully.
read thread create successfully.
Capture began, rtn_val = 0
Error capture image, rtn_val = 65318
Error capture image, rtn_val = 65318

I’ve tried all the configs provided for OV9281 and none worked.

To build and run ArduCam_Demo i followed the instructions in README.md (https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield/blob/master/Linux_x86/Cpp/Streaming_demo/README.md)

I’ve tried to link against different versions of libusb (v1.0.22, v1.0.23 and master from github), but nothing changed.

I’ve tried to run the camera on 2 different laptops running Ubuntu 18.04 (Lenovo P43s and Lenovo E330), trying different USB ports and on both machines the behavior was the same.

I have 3 of the mentioned camera sets and 3 cables. For all of them I see the same error.

I’ve tried the cameras also on a Windows 10 laptop and they worked fine, so it’s not a hardware problem.

I really need to run them on a Linux machine, so I’d be grateful for any help.

Thank you in advance!

I’ve just tried it on the RaspberryPi 4 running Raspbian Buster and I get the same error as on my laptops.

Our project is stuck, so i’d really appreciate any advice.

Thanks

I gave it a try again after the latest SDK update (Mar 22, 2020) and now the ArduCam_Demo is working! Thanks

Great to hear you have solved your problems.

I get the same issue with USB3.0 shield plus sku: B0317 and AR0134 sku: B0100.

on raspberry pi all commands lead to same error:

sudo ./ArduCam_Demo …/…/…/Config/USB3.0_UC-593\ Rev.C/DVP/AR0134/AR0134_RAW_12b_1280x964.cfg
sudo ./ArduCam_Demo …/…/…/Config/USB3.0_UC-593\ Rev.C/DVP/AR0134/AR0134_RAW_8b_1280x964.cfg
sudo ./ArduCam_Demo …/…/…/Config/USB3.0_UC-425_Rev.C/DVP/AR0134/AR0134_MONO_8b_1280x964_53fps.cfg
sudo python3 ArduCam_Py_Demo.py …/…/…/Config/USB3.0_UC-593\ Rev.C/DVP/AR0134/AR0134_RAW_8b_1280x964.cfg

device num:1
index: 0 Serial:AU3S-2121-0004
Serial: AU3S-2121-0004
setFramerate not a function

capture thread create successfully.
read thread create successfully.
Capture began, rtn_val = 0
Error capture image, rtn_val = 65318

 

on windows the error is different but it still doesn’t work:

[04:30:05]USB camera init success!

[04:30:28]USB transfer timeout error
[04:30:26]USB transfer timeout error
[04:30:26]USB transfer timeout error
[04:30:26]USB transfer timeout error
[04:30:26]USB transfer timeout error
[04:30:26]USB transfer timeout error
[04:30:26]USB transfer timeout error

any ideas, I am not able to get it to work. I am inclined more towards “bad hardware”. How can I confirm that.