Arducam 5MP OV5642 Camera Module + USB2.0_UC-391_Rev.E+UC-816_Rev.A : USB transfer timeout error

  1. Where did you get the camera module(s)?

UCTronic

  1. Model number of the product(s)?

Arducam 5MP OV5642 Camera Module /w CS mount Lens + USB2.0_UC-391_Rev.E+UC-816_Rev.A

  1. What hardware/platform were you working on?

raspberry pi 4B pi@raspberrypi:~/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo $ sudo python ArduCam_Py_Demo.py /home/pi/ArduCAM_USB_Camera_Shield/Config/USB2.0_UC-391_Rev.E/MIPI/OV9281/1Lane/OV9281_MIPI_1Lane_RAW8_640x400_120fps.cfg
Traceback (most recent call last):
File “/home/pi/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo/ArduCam_Py_Demo.py”, line 9, in
from ImageConvert import *
File “/home/pi/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo/ImageConvert.py”, line 2, in
import ArducamSDK
ImportError: /home/pi/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo/ArducamSDK.so: undefined symbol: _Py_ZeroStruct
pi@ra

PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="_http://www.raspbian.org/"
SUPPORT_URL="_http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="_http://www.raspbian.org/RaspbianBugs"

kernel version :
pi@raspberrypi:~/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo $ uname -r
5.15.40-v7l+

pi@raspberrypi:~/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo $ vcgencmd version
May 16 2022 15:40:46
Copyright (c) 2012 Broadcom
version ae6542a8a3aef192cb3536c39106d19f342fab29 (clean) (release) (start)

  1. Instructions you have followed. (link/manual/etc.)

_www.arducam.com/docs/usb-cameras/
_www.arducam.com/docs/usb-cameras/windows-driver-installation/

  1. Problems you were having?

not working on both raspberrypi and windows10
ON raspberrypi4B:
pi@raspberrypi:~/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo $ sudo python ArduCam_Py_Demo.py /home/pi/ArduCAM_USB_Camera_Shield/Config/USB2.0_UC-391_Rev.E+UC-816_Rev.A/OV5642/OV5642_JPG_8b_2592x1944_7.5fps.cfg
color mode 0
Serial: AU2S-2216-0001
Capture began, rtn_val=0
Error capture image, rtn_val=65318
Error capture image, rtn_val=65318
Error capture image, rtn_val=65318

ON windows10 with ArduCam USB Camera Demo:

  • USB camera init success!
  • USB Transfer timeout error
  1. The dmesg log from your hardware?

  2. Troubleshooting attempts you’ve made?

All I can get from arducam website and the others.

  1. What help do you need?

How to fix the problems?

Please ensure your usb bus has enough data bandwidth. Please remove other usb device.

I tested the USB2.0_UC-391_Rev.E+UC-816_Rev.A with Arducam OV7670 (B0361) and MT9M001 (B0063). They worked just fine. However, when testing with OV9281 (EK025) and OV5641 (B0019), they didn’t worked. They all got the errors on both pi4B and windows10.

On raspberry pi4B:
Serial: AU2S-2216-0001
Capture began, rtn_val=0
Error capture image, rtn_val=65318
Error capture image, rtn_val=65318
Error capture image, rtn_val=65318

On windows10:
USB camera init success!
USB Transfer timeout error
USB Transfer timeout error
USB Transfer timeout error

I tried on USB2 and USB3 ports. They got the same errors. Any recommendations?? How to set USB port bandwidth?

Hello,
Please tell me your detail test steps and I will follow your steps to see if I have the same issue.

Hi,

The testing procedures were similar for all modules.

1.connect OV5642 (B0019) to USB2.0_UC-391_Rev.E+UC-816_Rev.A.
2.connect USB cable on both ends.
3. On raspberry pi 4B:

  • execute the command:
    pi@raspberrypi:~/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo $ sudo python ArduCam_Py_Demo.py /home/pi/ArduCAM_USB_Camera_Shield/Config\USB2.0_UC-391_Rev.E+UC-816_Rev.A\OV5642\OV5642_JPG_8b_2592x1944_7.5fps.cfg

    and the responses were
    Serial: AU2S-2216-0001
    Capture began, rtn_val=0
    Error capture image, rtn_val=65318
    Error capture image, rtn_val=65318
    Error capture image, rtn_val=65318

4.On Windows10

  • double clike USBtest.exe
  • click SCAN device
  • click File to choose a configuration file “…Config\USB2.0_UC-391_Rev.E+UC-816_Rev.A\OV5642\OV5642_JPG_8b_2592x1944_7.5fps.cfg”
  • click “Load”
  • click “Open” a message was shown “[16:41:51]USB camera init success!”
  • click “Play” errors messages were shown as “[16:42:48]USB transfer timeout error”

For OV9281 (EK025), the camera was directly connected to USB2.0_UC-391_Rev.E, without UC-816_Rev.A. The configuration file is

…\Config\USB2.0_UC-391_Rev.E\MIPI\OV9281\1Lane\OV9281_MIPI_1Lane_RAW8_640x400_120fps.cfg

The errors were the same.

Thanks for your detail information. Tomorrow I will test it.

Hi,
Today, I have done some test. Using Arducam ov9281 and Arducam usb 2.0 (uc-391) board.
I test it on windows10 platform and anything is normal.
The config file I used is …\Config\USB2.0_UC-391_Rev.E\MIPI\OV9281\1Lane\OV9281_MIPI_1Lane_RAW8_640x400_120fps.cfg which is the same with yours.

About ov5642, you should disconnect this pin 17 from the bottom plate, you can cut off its pin header.

Yeah! … OV9281 works now! The problem might be at the cable.

OV5642 also works now after cutting pin 17. Thanks alot for your supports.