# Zed mini not detected until replug

**URL:** <https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717>\
**Category:** Software\
**Tags:** python, docker, jetson\
**Created:** [November 1, 2022, 4:48am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717 "2022-11-01T04:48:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mekala02](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@Mekala02](https://community.stereolabs.com/u/Mekala02)\
**Post date:** [November 1, 2022, 4:48am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/1 "2022-11-01T04:48:23Z")

</div>

Hi,  
When I boot my jetson agx xavier it’s not detecting zed mini camera but after removing the camera and plugging it back in, it starts to detect.

lsub after boot:  
`Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter Bus 001 Device 002: ID 2b03:f681 STEREOLABS ZED-M Hid Device Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub`

After replugging:  
`Bus 002 Device 002: ID 2b03:f682 Technologies, Inc. ZED-M Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter Bus 001 Device 004: ID 2b03:f681 STEREOLABS ZED-M Hid Device Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub`

Jetson Agx Xavier (JetPack 5.0.2)  
Zed Mini (SDK 3.8.1)  
Using usb c port on xavier and I know ZED Mini Type-C connector is **NOT**  **reversible**.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 2, 2022, 9:58am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/2 "2022-11-02T09:58:54Z")

</div>

Hi @Mekala02  
if you connect to the typeC port of the xavier, you won’t have the issue as the typeC to typeC works in both direction.  
However you can try to use this tool to reset the USB controller and re-initialized the camera after the boot:

> **[GitHub - obraun-sl/usb\_power\_cycle: Simple tool to perform a USB power cycle...](https://github.com/obraun-sl/usb_power_cycle)**
>
> Simple tool to perform a USB power cycle on Jetson Nano/NX devkit - GitHub - obraun-sl/usb\_power\_cycle: Simple tool to perform a USB power cycle on Jetson Nano/NX devkit

---

<div class="post-metadata">

**Author:** ![Mekala02](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@Mekala02](https://community.stereolabs.com/u/Mekala02)\
**Post date:** [November 2, 2022, 3:45pm UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/3 "2022-11-02T15:45:20Z")

</div>

`Simple tool to perform a USB power cycle on Jetson Nano/NX devkit`  
I’m using AGX Xavier so it’s not working

---

<div class="post-metadata">

**Author:** ![Mekala02](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@Mekala02](https://community.stereolabs.com/u/Mekala02)\
**Post date:** [November 23, 2022, 8:57am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/4 "2022-11-23T08:57:08Z")

</div>

I found that `reboot()` function fixes this issue on ZED2

But I can’t use that function with zed mini as mentioned in api referance:

[https://www.stereolabs.com/docs/api/python/classpyzed\_1\_1sl\_1\_1Camera.html#a3b8ebb0f00ca71636407170780720281](https://www.stereolabs.com/docs/api/python/classpyzed_1_1sl_1_1Camera.html#a3b8ebb0f00ca71636407170780720281)

```auto
Note
This function only works for ZED2 and ZED2i cameras.

```

Why reboot function not working with zed mini.

I can’t find any other solution to fix this issue which is really annoying, every time i reboot the device i have to manually unplug and replug the camera.

@Myzhar

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 23, 2022, 11:05am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/5 "2022-11-23T11:05:44Z")

</div>

I’m sorry, but the ZED Mini is not equipped with the electronic circuit required by the restart API function to work.  
The USB power trick is the only working solution for ZED Mini.

---

<div class="post-metadata">

**Author:** ![Mekala02](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@Mekala02](https://community.stereolabs.com/u/Mekala02)\
**Post date:** [November 24, 2022, 6:36am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/6 "2022-11-24T06:36:47Z")

</div>

Then how can I do the USB power trick on jetson agx xavier ?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 24, 2022, 8:54am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/7 "2022-11-24T08:54:15Z")

</div>

You must get information about the usb controller used on the devkit and apply it to the tool that I linked

---

<div class="post-metadata">

**Author:** ![Mekala02](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@Mekala02](https://community.stereolabs.com/u/Mekala02)\
**Post date:** [November 24, 2022, 10:12am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/8 "2022-11-24T10:12:45Z")

</div>

How can I find usb controller information ?

lsusb -v output:

```auto
Bus 002 Device 002: ID 2b03:f682 Technologies, Inc. ZED-M
Couldn't open device, some information will be missing
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 3.00
  bDeviceClass 239 Miscellaneous Device
  bDeviceSubClass 2
  bDeviceProtocol 1 Interface Association
  bMaxPacketSize0 9
  idVendor 0x2b03
  idProduct 0xf682
  bcdDevice 1.00
  iManufacturer 1
  iProduct 2
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 0x0150
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
      (Bus Powered)
    MaxPower 512mA
    Interface Association:
      bLength 8
      bDescriptorType 11
      bFirstInterface 0
      bInterfaceCount 2
      bFunctionClass 14 Video
      bFunctionSubClass 3 Video Interface Collection
      bFunctionProtocol 0
      iFunction 2
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 14 Video
      bInterfaceSubClass 1 Video Control
      bInterfaceProtocol 0
      iInterface 2
      VideoControl Interface Descriptor:
        bLength 13
        bDescriptorType 36
        bDescriptorSubtype 1 (HEADER)
        bcdUVC 1.10
        wTotalLength 0x004f
        dwClockFrequency 150.000000MHz
        bInCollection 1
        baInterfaceNr( 0) 1
      VideoControl Interface Descriptor:
        bLength 18
        bDescriptorType 36
        bDescriptorSubtype 2 (INPUT_TERMINAL)
        bTerminalID 1
        wTerminalType 0x0201 Camera Sensor
        bAssocTerminal 0
        iTerminal 0
        wObjectiveFocalLengthMin 0
        wObjectiveFocalLengthMax 0
        wOcularFocalLength 0
        bControlSize 3
        bmControls 0x00000000
      VideoControl Interface Descriptor:
        bLength 9
        bDescriptorType 36
        bDescriptorSubtype 3 (OUTPUT_TERMINAL)
        bTerminalID 2
        wTerminalType 0x0101 USB Streaming
        bAssocTerminal 0
        bSourceID 4
        iTerminal 0
      VideoControl Interface Descriptor:
        bLength 13
        bDescriptorType 36
        bDescriptorSubtype 5 (PROCESSING_UNIT)
        bUnitID 3
        bSourceID 1
        wMaxMultiplier 0
        bControlSize 3
        bmControls 0x00003eff
          Brightness
          Contrast
          Hue
          Saturation
          Sharpness
          Gamma
          White Balance Temperature
          White Balance Component
          Gain
          Power Line Frequency
          Hue, Auto
          White Balance Temperature, Auto
          White Balance Component, Auto
        iProcessing 2
        bmVideoStandards 0x00
      VideoControl Interface Descriptor:
        bLength 26
        bDescriptorType 36
        bDescriptorSubtype 6 (EXTENSION_UNIT)
        bUnitID 4
        guidExtensionCode {2ccb0bda-6331-4fdb-850e-79054dbd5671}
        bNumControl 2
        bNrPins 1
        baSourceID( 0) 3
        bControlSize 1
        bmControls( 0) 0x03
        iExtension 2
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x86 EP 6 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 9
        bMaxBurst 0
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 14 Video
      bInterfaceSubClass 2 Video Streaming
      bInterfaceProtocol 0
      iInterface 0
      VideoStreaming Interface Descriptor:
        bLength 14
        bDescriptorType 36
        bDescriptorSubtype 1 (INPUT_HEADER)
        bNumFormats 1
        wTotalLength 0x00bf
        bEndPointAddress 129
        bmInfo 0
        bTerminalLink 2
        bStillCaptureMethod 0
        bTriggerSupport 0
        bTriggerUsage 0
        bControlSize 1
        bmaControls( 0) 0
      VideoStreaming Interface Descriptor:
        bLength 27
        bDescriptorType 36
        bDescriptorSubtype 4 (FORMAT_UNCOMPRESSED)
        bFormatIndex 1
        bNumFrameDescriptors 4
        guidFormat {32595559-0000-0010-8000-00aa00389b71}
        bBitsPerPixel 16
        bDefaultFrameIndex 1
        bAspectRatioX 0
        bAspectRatioY 0
        bmInterlaceFlags 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
        bCopyProtect 0
      VideoStreaming Interface Descriptor:
        bLength 38
        bDescriptorType 36
        bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)
        bFrameIndex 1
        bmCapabilities 0x00
          Still image unsupported
        wWidth 2560
        wHeight 720
        dwMinBitRate 442368000
        dwMaxBitRate 1769472000
        dwMaxVideoFrameBufferSize 3686400
        dwDefaultFrameInterval 166666
        bFrameIntervalType 3
        dwFrameInterval( 0) 166666
        dwFrameInterval( 1) 333333
        dwFrameInterval( 2) 666666
      VideoStreaming Interface Descriptor:
        bLength 42
        bDescriptorType 36
        bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)
        bFrameIndex 2
        bmCapabilities 0x00
          Still image unsupported
        wWidth 1344
        wHeight 376
        dwMinBitRate 121282560
        dwMaxBitRate 808550400
        dwMaxVideoFrameBufferSize 1010688
        dwDefaultFrameInterval 100000
        bFrameIntervalType 4
        dwFrameInterval( 0) 100000
        dwFrameInterval( 1) 166666
        dwFrameInterval( 2) 333333
        dwFrameInterval( 3) 666666
      VideoStreaming Interface Descriptor:
        bLength 34
        bDescriptorType 36
        bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)
        bFrameIndex 3
        bmCapabilities 0x00
          Still image unsupported
        wWidth 3840
        wHeight 1080
        dwMinBitRate 995328000
        dwMaxBitRate 1990656000
        dwMaxVideoFrameBufferSize 8294400
        dwDefaultFrameInterval 333333
        bFrameIntervalType 2
        dwFrameInterval( 0) 333333
        dwFrameInterval( 1) 666666
      VideoStreaming Interface Descriptor:
        bLength 30
        bDescriptorType 36
        bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)
        bFrameIndex 4
        bmCapabilities 0x00
          Still image unsupported
        wWidth 4416
        wHeight 1242
        dwMinBitRate 1316321280
        dwMaxBitRate 1316321280
        dwMaxVideoFrameBufferSize 10969344
        dwDefaultFrameInterval 666666
        bFrameIntervalType 1
        dwFrameInterval( 0) 666666
      VideoStreaming Interface Descriptor:
        bLength 6
        bDescriptorType 36
        bDescriptorSubtype 13 (COLORFORMAT)
        bColorPrimaries 1 (BT.709,sRGB)
        bTransferCharacteristics 1 (BT.709)
        bMatrixCoefficients 4 (SMPTE 170M (BT.601))
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0400 1x 1024 bytes
        bInterval 0
        bMaxBurst 15

```

---

<div class="post-metadata">

**Author:** ![thapap](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/t/97f17d/32.png) [@thapap](https://community.stereolabs.com/u/thapap)\
**Post date:** [July 7, 2023, 9:04am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/9 "2023-07-07T09:04:29Z")

</div>

I have the same issue with Xavier NX platform and 5.0.2 jetpack. Did you fix it? Is there any solution to this? The tool by the way is not working.

---

<div class="post-metadata">

**Author:** ![Mekala02](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@Mekala02](https://community.stereolabs.com/u/Mekala02)\
**Post date:** [March 8, 2024, 8:32am UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/10 "2024-03-08T08:32:52Z")

</div>

I’m still facing the same issue with no solution found yet.

---

<div class="post-metadata">

**Author:** ![jtilleyco](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@jtilleyco](https://community.stereolabs.com/u/jtilleyco)\
**Post date:** [March 13, 2024, 8:50pm UTC](https://community.stereolabs.com/t/zed-mini-not-detected-until-replug/1717/11 "2024-03-13T20:50:37Z")

</div>

Any one solve the unplug/plug problem with the Zed mini? I have three of these cameras and very frustrated that they will not reset after a restart of my jetson nx processor. I have to unplug/replug the connector before the sdk recognizes the camera - this is a non-starter for my embedded application. Appreciate hearing from any that has solved this problem with the Zed mini.
