Using Luxonis preped RPI OS images (V10)
python3 -c "import depthai; print(depthai.Device.getAllConnectedDevices())"
returns the following: []
legow00
Hmm. What do you get if you try to open a device using dai.Device()
? Like running a simple rgb_preview example? I'm interested in the dmesg
output when you run the script. Perhaps a if you run it using XLINK_LEVEL=debug
and post the results. This is very strange, can't remember seeing it before.
Thanks,
Jaka
I tried to run the RGB Preview (https://docs.luxonis.com/software/depthai/examples/rgb_preview/) and the Python script retured:
Traceback (most recent call last):
File "/home/pi/Desktop/rgb_preview.py", line 24, in <module>
with dai.Device(pipeline) as device:
^^^^^^^^^^^^^^^^^^^^
RuntimeError: No available devices
The output of dmesg
can be found here: https://pastebin.com/6kYZ7QXp
Setting XLINK_LEVEL=debug
flag results in the same output as above
I just checked my DepthAI Python version and I am at version 2.22.0.0, should I update to the most recent package in pip? Version 2.30.0.0.
legow00 legow00
Tried on a CM4 POE with x64 image (V10 I think).
12 sudo apt update && sudo apt -y upgrade
13 lsusb
14 cat /etc/os-release
15 sudo apt autoremove
16 sudo reboot
17 lsusb
18 sudo apt autoremove
"lsusb" still shows the device is connected.
Can you try running systemctl status cm4-rvc2-usb-prepare
? Enable if disabled.
Thanks,
Jaka
I checked systemctl status cm4-rvc2-usb-prepare
but this systemd service is enabled and active.
I also tried the same commands as you mentioned:
12 sudo apt update && sudo apt -y upgrade
13 lsusb
14 cat /etc/os-release
15 sudo apt autoremove
16 sudo reboot
17 lsusb
18 sudo apt autoremove
Nothing changed lsusb
still returns:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I executed the following commands on a fresh V10 image install:
12 sudo apt update && sudo apt -y upgrade
13 lsusb
14 cat /etc/os-release
15 sudo apt autoremove
16 sudo reboot
17 lsusb
18 sudo apt autoremove
Still same result as before, lsusb
still returns:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
What would be the best practice to remove the SOM while minimizing the risk of damaging the connectors?
I re-seated the SOM and started again with a fresh install of th V10 image.
I did multiple sudo apt update && sudo apt -y upgrade
, sudo apt autoremove
and reboot
.
The Intel Movidius MyriadX USB device is still detected. RGB example scripts also works!
Thanks for your help @jakaskerl ! It was probably a loose or bad connections somewhere in the SOM connectors.
Oops seems like I celebrated to early… after some reboots a pop up in the top right part of the screen showed which notified me of few updates. After these updates the Movidius device was gone again… grrrrr. Is there a way to look at a log file of the last updates executed on this system?
One (or both?) of these packages broke the USB communication with the Movidius device:
Start-Date: 2025-05-08 14:05:22
Commandline: packagekit role='update-packages'
Requested-By: pi (1000)
Upgrade: rpi-eeprom:arm64 (27.6-1, 27.7-1), piwiz:arm64 (0.90, 0.91)
End-Date: 2025-05-08 14:05:27
What would be my best course of action?
Thanks! I was also able to rebind it! Could this be updated in the next release of a new image? So that other people in the future don't have this same problem.
Thanks for your ongoing support, I will try this out for a week before updating our other cameras just to be sure.
I hope this was the root cause of my problems.