Startup application while driver is not loaded completly

Hello,

I have an application created with the stereolabs software which starts when the jetson orin pc starts.

it starts with user space systemd after zed_x_daemon process. but i found out when it starts not all camera’s are already detected and the application crashes 1 or 2 times before all (3) camera’s are found.
How can I be sure the zed_x_deamon is done with the zed_x camera initalisations before I can start the application?

or can I readout any sdk call to be sure initalisation is done?

Hello @Martijn,

Which zedx driver do you currently have installed on your jetson orin?

From the 1.3.1 drivers, the call to sudo systemctl restart zed_x_daemon becomes blocking until the initialization of the camera. It should also be true upon the startup of your jetson orin.

Please refer to https://www.stereolabs.com/en-fr/developers/drivers to download the latest drivers

I use the vecow computers (eac-6000 and eac-5000)

Hi @Martijn,

Unfortunately, for the Vecow, the drivers are not yet up-to-date with the recent 1.3.1 ZED-X drivers.

While we work on releasing them, a workaround could be to swap only the daemon from version 1.3.1 into your Vecow 1.3.0 install.

Here’s how:

  1. Download the 1.3.1 ZED-X driver (.deb file)
    Get the official ZED-X driver package for version 1.3.1 from https://www.stereolabs.com/en-fr/developers/drivers.
  2. Extract the contents of the 1.3.1 package
    mkdir driver-1.3.1
    dpkg-deb -x <zed_driver_1.3.1.deb> driver-1.3.1
    
    (Replace <zed_driver_1.3.1.deb> with your filename)
  3. Install Vecow 1.3.0 driver normally
    sudo dpkg -i <vecow_driver_1.3.0.deb>
    
    (Replace <vecow_driver_1.3.0.deb> with your filename)
  4. Copy the daemon binaries from 1.3.1 to your system
    sudo cp driver-1.3.1/usr/sbin/* /usr/sbin/
    
  5. Move the service files from 1.3.1 to the systemd directory
    sudo mv driver-1.3.1/tmp/*.service /etc/systemd/system/
    
  6. Enable the new services
    sudo systemctl enable zed_x_daemon.service
    sudo systemctl enable driver_zed_loader.service
    
  7. Reboot your system
    sudo reboot