ZED Mini not detected on Jetson AGX Orin boot?

On every boot of the Jetson AGX Orin, the ZED mini camera is not detected. On using ZED_Explorer -a I see the Zed Mini shows up as NOT AVAILABLE.

It works instantly the moment I unplug + plug the USB 3.0 cable provided by stereolabs. Is there a fix to this? It only seems to be happening on every boot.

Is there a known fix to this?

Hi @skrish
Welcome to the Stereolabs community.

This is a known limitation of the ZED Mini.

You can use this tool to reset the USB port after booting to re-enumerate the camera and make it available.

I tried the tool and have not had any luck resetting the ZED-M.

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 3: Dev 2, If 0, Class=Wireless, Driver=rtk_btusb, 12M
ID 13d3:3549 IMC Networks
|__ Port 3: Dev 2, If 1, Class=Wireless, Driver=rtk_btusb, 12M
ID 13d3:3549 IMC Networks
|__ Port 4: Dev 19, If 0, Class=Hub, Driver=hub/4p, 480M
ID 0bda:5420 Realtek Semiconductor Corp.
|__ Port 4: Dev 20, If 0, Class=Hub, Driver=hub/4p, 480M
ID 2109:2822 VIA Labs, Inc.
|__ Port 2: Dev 22, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
|__ Port 3: Dev 23, If 0, Class=Hub, Driver=hub/4p, 480M
ID 2109:2822 VIA Labs, Inc.
|__ Port 4: Dev 26, If 0, Class=Human Interface Device, Driver=usbhid, 12M
ID 2b03:f681 STEREOLABS ZED-M HID Interface
|__ Port 2: Dev 25, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
ID 10c4:ea60 Silicon Labs CP210x UART Bridge
|__ Port 1: Dev 21, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
ID 10c4:ea60 Silicon Labs CP210x UART Bridge
|__ Port 4: Dev 24, If 0, Class=Hub, Driver=hub/4p, 480M
ID 2109:2822 VIA Labs, Inc.

even in the sudo dmesg -w output i see

[ 1931.294799] usb 1-4.4.3.4: new full-speed USB device number 26 using tegra-xusb
[ 1931.414406] hid-generic 0003:2B03:F681.0003: hidraw0: USB HID v1.11 Device [STEREOLABS ZED-M Hid Device] on usb-3610000.usb-4.4.3.4/input0

This is the IMU module. The enumeration problem affects the UVC module (2b03:f681).

Please note that you must change the PID of the Realtek controller when using the AGX Orin Carrier Board.

You can see here that the PID is 5420, so you must set it here:

I tried the exact thing. changed to unsigned pid = 0x5420;

and ran the following to compile and run

sh build.sh
sudo ./power_cycle

This is the output i notice in sudo dmesg -w and lsusb -tv

[  460.544133] usb 1-4: USB disconnect, device number 24
[  460.544146] usb 1-4.4: USB disconnect, device number 25
[  460.544150] usb 1-4.4.1: USB disconnect, device number 26
[  460.544488] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[  460.544608] cp210x 1-4.4.1:1.0: device disconnected
[  460.545060] usb 1-4.4.3: USB disconnect, device number 27
[  460.545065] usb 1-4.4.3.2: USB disconnect, device number 29
[  460.545210] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[  460.545299] cp210x 1-4.4.3.2:1.0: device disconnected
[  460.545653] usb 1-4.4.3.4: USB disconnect, device number 30
[  460.551289] usb 1-4.4.4: USB disconnect, device number 28
[  460.777747] usb 2-3: USB disconnect, device number 14
[  460.777760] usb 2-3.4: USB disconnect, device number 15
[  460.777764] usb 2-3.4.3: USB disconnect, device number 16
[  460.779068] usb 2-3.4.4: USB disconnect, device number 17
[  461.117758] usb 1-4: new high-speed USB device number 31 using tegra-xusb
[  461.292658] hub 1-4:1.0: USB hub found
[  461.293790] hub 1-4:1.0: 4 ports detected
[  461.410497] usb 2-3: new SuperSpeed Plus Gen 2x1 USB device number 18 using tegra-xusb
[  461.457700] hub 2-3:1.0: USB hub found
[  461.459536] hub 2-3:1.0: 4 ports detected
[  462.005728] usb 1-4.4: new high-speed USB device number 32 using tegra-xusb
[  462.113536] hub 1-4.4:1.0: USB hub found
[  462.115124] hub 1-4.4:1.0: 4 ports detected
[  462.209723] usb 2-3.4: new SuperSpeed USB device number 19 using tegra-xusb
[  462.278274] hub 2-3.4:1.0: USB hub found
[  462.278606] hub 2-3.4:1.0: 4 ports detected
[  462.806128] usb 1-4.4.1: new full-speed USB device number 33 using tegra-xusb
[  462.921462] cp210x 1-4.4.1:1.0: cp210x converter detected
[  462.928256] usb 1-4.4.1: cp210x converter now attached to ttyUSB0
[  462.994536] usb 2-3.4.3: new SuperSpeed USB device number 20 using tegra-xusb
[  463.050999] hub 2-3.4.3:1.0: USB hub found
[  463.051622] hub 2-3.4.3:1.0: 4 ports detected
[  463.125753] usb 1-4.4.3: new high-speed USB device number 34 using tegra-xusb
[  463.264205] hub 1-4.4.3:1.0: USB hub found
[  463.264709] hub 1-4.4.3:1.0: 4 ports detected
[  463.337916] usb 2-3.4.4: new SuperSpeed USB device number 21 using tegra-xusb
[  463.392953] hub 2-3.4.4:1.0: USB hub found
[  463.393347] hub 2-3.4.4:1.0: 4 ports detected
[  463.469707] usb 1-4.4.4: new high-speed USB device number 35 using tegra-xusb
[  463.604165] hub 1-4.4.4:1.0: USB hub found
[  463.604597] hub 1-4.4.4:1.0: 4 ports detected
[  463.953742] usb 1-4.4.3.2: new full-speed USB device number 36 using tegra-xusb
[  464.067344] cp210x 1-4.4.3.2:1.0: cp210x converter detected
[  464.073424] usb 1-4.4.3.2: cp210x converter now attached to ttyUSB1
[  464.157840] usb 1-4.4.3.4: new full-speed USB device number 37 using tegra-xusb
[  464.284637] hid-generic 0003:2B03:F681.0005: hidraw0: USB HID v1.11 Device [STEREOLABS ZED-M Hid Device] on usb-3610000.usb-4.4.3.4/input0
```
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 3: Dev 18, If 0, Class=Hub, Driver=hub/4p, 10000M
        ID 0bda:0420 Realtek Semiconductor Corp.
        |__ Port 4: Dev 19, If 0, Class=Hub, Driver=hub/4p, 5000M
            ID 2109:0822 VIA Labs, Inc.
            |__ Port 3: Dev 20, If 0, Class=Hub, Driver=hub/4p, 5000M
                ID 2109:0822 VIA Labs, Inc.
            |__ Port 4: Dev 21, If 0, Class=Hub, Driver=hub/4p, 5000M
                ID 2109:0822 VIA Labs, Inc.
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 3: Dev 2, If 0, Class=Wireless, Driver=rtk_btusb, 12M
        ID 13d3:3549 IMC Networks
    |__ Port 3: Dev 2, If 1, Class=Wireless, Driver=rtk_btusb, 12M
        ID 13d3:3549 IMC Networks
    |__ Port 4: Dev 31, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 0bda:5420 Realtek Semiconductor Corp.
        |__ Port 4: Dev 32, If 0, Class=Hub, Driver=hub/4p, 480M
            ID 2109:2822 VIA Labs, Inc.
            |__ Port 3: Dev 34, If 0, Class=Hub, Driver=hub/4p, 480M
                ID 2109:2822 VIA Labs, Inc.
                |__ Port 4: Dev 37, If 0, Class=Human Interface Device, Driver=usbhid, 12M
                    ID 2b03:f681 STEREOLABS ZED-M HID Interface
                |__ Port 2: Dev 36, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
                    ID 10c4:ea60 Silicon Labs CP210x UART Bridge
            |__ Port 1: Dev 33, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
                ID 10c4:ea60 Silicon Labs CP210x UART Bridge
            |__ Port 4: Dev 35, If 0, Class=Hub, Driver=hub/4p, 480M
                ID 2109:2822 VIA Labs, Inc.
```

Am I doing something wrong?