ArduCAM / Arducam_tof_camera

50 stars 20 forks source link

Error: Failed to start camera #80

Open enshirokov opened 1 month ago

enshirokov commented 1 month ago

Raspberry Pi4 + Arducam ToF Camera.

When I try to run example "preview_depth" I get error "Failed to start camera" with error code ArducamSystemError (-2). What does it mean? Something wrong with camera? Does it relate with last commits in this project (1 month ago it worked well)?

uname -a
Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
dpkg -l | grep arducam-tof-sdk-dev
ii  arducam-tof-sdk-dev                  0.1.6                               arm64        Driver development kit for arducam tof camera
ls /dev/video*
/dev/video0   /dev/video11  /dev/video13  /dev/video15  /dev/video18  /dev/video20  /dev/video22  /dev/video31
/dev/video10  /dev/video12  /dev/video14  /dev/video16  /dev/video19  /dev/video21  /dev/video23

Screenshot from 2024-07-27 01-02-08

ZacJW commented 1 month ago

I'm also getting this error. I think it affects 0.1.5 and 0.1.6 (maybe 0.1.4, I haven't tested it). Downgrading to 0.1.3 does work. You'll need to make sure you use code written for 0.1.3 as the SDK's API has been changing in the newer versions.