ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
126 stars 69 forks source link

108MP USB3 UC-593.Rev.C + Raspberry Pi 4B: USB_CAMERA_DATA_LEN_ERROR #191

Open ggchar opened 1 year ago

ggchar commented 1 year ago

When running the Raspberry Pi 4B sample program, I encountered the USB_CAMERA_DATA_LEN_ERROR and noticed that the images I captured had horizontal stripes, see the screenshot below. Could you please advise on how to resolve this issue? Snipaste_2023-05-05_11-14-39

Environments:

My commands: python3 ArduCam_Demo.py -v --preview-width 1280 -f ArduCAM_108MP_MIPI_2Lane_RAW8_4000x3000_12fps.cfg

My error messages:

color mode 0
Serial: AU3S-2229-0051
{'version': 'v3.1', 'year': 22, 'mouth': 7, 'day': 19}
{'fw_version': 'v3.20', 'interface': 3, 'device': 3}
Capture began, Error : USB_CAMERA_NO_ERROR
Error capture image, Error : USB_CAMERA_FRAME_INDEX_ERROR
fps: 1
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:7576992
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:4135680
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:7805696
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:4004608
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
fps: 1
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:3858504
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:8943744
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:7805696
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:4004608
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:72448
Error capture image, Error : USB_CAMERA_DATA_LEN_ERROR
fps: 2
USB_CAMERA_DATA_LEN_ERROR       RECEIVE_LENGTH:9364888
...
...