stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
447 stars 391 forks source link

ZED not working after boot but replugging it helps #871

Closed maxpolzin closed 1 year ago

maxpolzin commented 1 year ago

Preliminary Checks

Description

The issue of https://github.com/stereolabs/zed-ros-wrapper/issues/249 occurs also on the latest software versions.

Steps to Reproduce

  1. Plugin ZED camera
  2. System detects the camera
  3. Restart the system
  4. Only the HID interface device is detected
  5. Re-plug the camera (not turning USB cable) and the camera is detected again ...

Expected Result

The camera is detected across reboots.

Actual Result

The camera is not detected across reboots

Bus 002 Device 003: ID 2b03:f682 does not get detected Bus 002 Device 003: ID 2b03:f681 gets detected

ZED Camera model

ZED Mini

Environment

Xavier NX (Seedstudio A206 (same as DevKit) or Auvidea JNX30) 
Jetpack 5.0.2 
SDK 3.8

Anything else?

No response

maxpolzin commented 1 year ago

I couldn't reopen https://github.com/stereolabs/zed-ros-wrapper/issues/249, thus I created this new issue.

Myzhar commented 1 year ago

Hi @maxpolzin thank you for the correct behavior. Opening a new issue and tagging the closed one is indeed the right way to act.

I'm sorry, but the behavior that you describe is strictly related to the carrier board and to how it initializes the USB controller. We provided a workaround for this on the ZED2 and ZED2i with the reboot command that forces a re-initialization of the camera when the USB controller is ready, but unfortunately, this cannot be used with the ZED Mini.

The only available workaround is to reset the power of the USB controller of the carrier board to force a re-initialization of all the connected devices, but this does not work with all the controller models.

You can try to adapt this tool to your requirements: https://github.com/obraun-sl/usb_power_cycle

maxpolzin commented 1 year ago

Thx for your prompt response @Myzhar and the clarification on the subject. I'll look into the power-cycling and note updates in this issue.

maxpolzin commented 1 year ago

My solution is switching to our Zed2i which seems to work fine.