Also, to clean up the very weirdly formatted information from my previous message, our current /boot/config.txt
file is as follows:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Run in 64-bit mode
arm_64bit=1
# Disable compensation for displays with overscan
disable_overscan=1
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
dtoverlay=dwc2,dr_mode=host
[all]
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
[all]
The command lsusb
gives us the following output:
vue@raspberrypi:~/depthai $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The command dmesg | grep usb
gives us the following output:
vue@raspberrypi:~/depthai $ dmesg | grep usb
[ 0.139891] usbcore: registered new interface driver usbfs
[ 0.139951] usbcore: registered new interface driver hub
[ 0.140020] usbcore: registered new device driver usb
[ 0.140407] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.140646] usb_phy_generic phy: dummy supplies not allowed for exclusive requests
[ 6.398317] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x900 took 4882946 usecs
[ 6.500307] usbcore: registered new interface driver r8152
[ 6.500395] usbcore: registered new interface driver lan78xx
[ 6.500455] usbcore: registered new interface driver smsc95xx
[ 16.502715] usbcore: registered new interface driver uas
[ 16.502781] usbcore: registered new interface driver usb-storage
[ 16.516953] usbcore: registered new interface driver usbhid
[ 16.516967] usbhid: USB HID core driver
[ 19.832670] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[ 19.843883] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[ 19.918822] dwc2 fe980000.usb: DWC OTG Controller
[ 19.918899] dwc2 fe980000.usb: new USB bus registered, assigned bus number 1
[ 19.923445] dwc2 fe980000.usb: irq 37, io mem 0xfe980000
[ 19.923902] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 19.923936] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 19.923953] usb usb1: Product: DWC OTG Controller
[ 19.923967] usb usb1: Manufacturer: Linux 6.1.21-v8+ dwc2_hsotg
[ 19.923980] usb usb1: SerialNumber: fe980000.usb
And when testing the connection with the camera using ~/depthai/depthai_demo.py
, we are getting the following error:
vue@raspberrypi:~/depthai $ source venv/bin/activate
(venv) vue@raspberrypi:~/depthai $ python3 depthai_demo.py
Using depthai module from: /home/vue/depthai/venv/lib/python3.10/site-packages/depthai.cpython-310-aarch64-linux-gnu.so
Depthai version installed: 2.21.2.0
Setting up demo...
Traceback (most recent call last):
File "/home/vue/depthai/depthai_demo.py", line 1053, in <module>
runOpenCv()
File "/home/vue/depthai/depthai_demo.py", line 1043, in runOpenCv
demo.run_all(confManager)
File "/home/vue/depthai/depthai_demo.py", line 132, in run_all
self.setup(conf)
File "/home/vue/depthai/depthai_demo.py", line 180, in setup
self._deviceInfo = getDeviceInfo(self._conf.args.deviceId, args.debug)
File "/home/vue/depthai/venv/lib/python3.10/site-packages/depthai_sdk/utils.py", line 226, in getDeviceInfo
raise RuntimeError("No DepthAI device found!")
RuntimeError: No DepthAI device found!
Exception ignored in atexit callback: <bound method Demo.stop of <__main__.Demo object at 0x7fa27ac940>>
Traceback (most recent call last):
File "/home/vue/depthai/depthai_demo.py", line 334, in stop
self._pm.closeDefaultQueues()
AttributeError: 'Demo' object has no attribute '_pm'
And it is the same, even forcing the use of the USB-2:
(venv) vue@raspberrypi:~/depthai $ python3 depthai_demo.py -usbs usb2
Using depthai module from: /home/vue/depthai/venv/lib/python3.10/site-packages/depthai.cpython-310-aarch64-linux-gnu.so
Depthai version installed: 2.21.2.0
Setting up demo...
Traceback (most recent call last):
File "/home/vue/depthai/depthai_demo.py", line 1053, in <module>
runOpenCv()
File "/home/vue/depthai/depthai_demo.py", line 1043, in runOpenCv
demo.run_all(confManager)
File "/home/vue/depthai/depthai_demo.py", line 132, in run_all
self.setup(conf)
File "/home/vue/depthai/depthai_demo.py", line 180, in setup
self._deviceInfo = getDeviceInfo(self._conf.args.deviceId, args.debug)
File "/home/vue/depthai/venv/lib/python3.10/site-packages/depthai_sdk/utils.py", line 226, in getDeviceInfo
raise RuntimeError("No DepthAI device found!")
RuntimeError: No DepthAI device found!
Exception ignored in atexit callback: <bound method Demo.stop of <__main__.Demo object at 0x7f8f83c940>>
Traceback (most recent call last):
File "/home/vue/depthai/depthai_demo.py", line 334, in stop
self._pm.closeDefaultQueues()
AttributeError: 'Demo' object has no attribute '_pm'