Hello,

I have an OAK-D CM4 PoE which I am remotely accessing through ssh and vnc, but the raspberry pi is unable to find the camera in my main scripts and cannot find any devices using the following code.

import depthai as dai

devices = dai.DeviceBootloader.getAllAvailableDevices()
if len(devices) > 0:
    for device in devices:
        print("Found devices:", device.name)
else:
    print("No devices found, check camera is properly connected.")

I have checked all the cables and everything is properly connected. Could this be a software issue? I would appreciate any assistance.

Thank you.

    AmirV
    Make sure depthai library version is latest (2.29). Make sure the boot switch (on PCB) is set to DIS. Run lsusb and check if anything comes up.

    Thanks,
    Jaka

    Hi Jaka,

    Version 2.29 of depthai is installed. I am remotely connecting to this device and I am not located next to it. Is there another way to check the boot switch?

    Here is my result from running lsusb:

    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Are any of these devices the camera?

    Thanks!

      AmirV
      I'm afraid not. You can't check the state of boot switch. As I see it, either it is set to EN, or the OAK-SOM is not mounted to the board properly and therefore can't be found.

      Thanks,
      Jaka

      I understand. What are possible next steps then to regain access to the camera?

      This camera came with a built in raspberry pi and I did not change/move anything internally, how likely is it that something was disconnected from the board without opening the camera?

        AmirV
        Not very likely. Was the device tested before it was deployed to the field? You'd need to open the device and check for HW issues. One thing to sanity check - make sure you are SSHin to the correct device. lsusb showing 4 devices looks correct, but maybe run cat /etc/os-release to check and make sure IP is right.

        Thanks,
        Jaka

        I verified this is the correct device. This device was tested before and in the field. A few days ago I was able to connect and see the camera's view, but after a minute or so it disconnected (this occurred a few times), shortly after I was unable to find the device completely.

        Let me know if this information helps in any direction.

        Thanks!

          AmirV
          Have you tried rebooting the device? Or if you can do a powercycle to reset the SoM.

          Thanks,
          Jaka