# How to check the synchronization of mutlple cameras system with ZED X series?

**URL:** <https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444>\
**Category:** ZED X\
**Tags:** ros, sdk, jetson\
**Created:** [March 25, 2025, 7:45am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444 "2025-03-25T07:45:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![InguChoi](https://community.stereolabs.com/user_avatar/community.stereolabs.com/inguchoi/32/4197_2.png) [@InguChoi](https://community.stereolabs.com/u/InguChoi)\
**Post date:** [March 25, 2025, 7:45am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/1 "2025-03-25T07:45:13Z")

</div>

Hi, I`m a robotics researcher who are using ZED X cameras with Jetson Orin.

The wiring diagram is shown in the figure below. Using a ZED Link Quad Capture Card on the Jetson Orin Board, we connected a total of 4 cameras by connecting 3 ZED X cameras and 1 ZED X Mini camera.

There are two main issues.

1. Using the C++ SDK, we managed to run four threads to run each of the four cameras. However, this can lead to success or failure of camera initialization. Why is that?
2. The synchronization of the 4 cameras is not working well. How can I check if I need to do something else to synchronize or if synchronization is enabled?  
 ![image](https://community.stereolabs.com/uploads/default/original/2X/7/73e7e8f71c4f73cd3797506541bc98727cb2d853.jpeg)

Thank you!

---

<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:** [March 25, 2025, 8:45am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/2 "2025-03-25T08:45:00Z")

</div>

Hi @InguChoi  
Welcome to the [Stereolabs](https://www.stereolabs.com/) community.

> [@InguChoi](#):
>
> Using the C++ SDK, we managed to run four threads to run each of the four cameras. However, this can lead to success or failure of camera initialization. Why is that?

Can you share a snippet of code showing how you are opening the cameras concurrently? Are you specifying the Camera ID or the Camera Serial Number in the InitParameters of each `sl::Camera` object?

> [@InguChoi](#):
>
> The synchronization of the 4 cameras is not working well. How can I check if I need to do something else to synchronize or if synchronization is enabled?

How did you verify the camera synchronization?  
Please note that the timestamps cannot be identical because they are assigned when the ZED X Driver fully receives each frame.  
GMSL2 is a serialized protocol, so timestamps are assigned one frame after each other.  
As long as the timestamp difference is less than a grab period you can be sure that the frames have been acquired at the same instant.

Please note that the cameras connected to the two different GMSL2 ports of the ZED Link Quad capture card are not synchronized.  
To synchronize 4 cameras you must install the ZED X Driver v1.3.0 and connect all the 4 cameras to the same GMSL2 port.

---

<div class="post-metadata">

**Author:** ![ba2sakal](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ba2sakal/32/4031_2.png) [@ba2sakal](https://community.stereolabs.com/u/ba2sakal)\
**Post date:** [March 25, 2025, 10:18am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/3 "2025-03-25T10:18:39Z")

</div>

Hello @Myzhar,

With the new 5.0 SDK and 1.3 driver, are the serializer synched or still need to execute these I2C commands?

```auto
## using JP6:
sudo i2cset -y -f 30 0x29 0x04 0xa0 0x04 i
sudo i2cset -y -f 34 0x29 0x04 0xa0 0x08 i
sudo i2cset -y -f 34 0x29 0x03 0x06 0x83 i
sudo i2cset -y -f 34 0x29 0x03 0x07 0x90 i
sudo i2cset -y -f 34 0x29 0x00 0x18 0x0F i

```

Or would you suggest directly connecting 4 camera to 1 port since tthey will be triggered with 1 signal? Would connecting 4 camera to 1 GMSL2 port cause performance drop, since there is a limit of bandwith limit each port has?

Which approach is more robust? I need synchronization for multi camera SLAM.

---

<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:** [March 25, 2025, 10:33am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/4 "2025-03-25T10:33:31Z")

</div>

> [@ba2sakal](#):
>
> Or would you suggest directly connecting 4 camera to 1 port since tthey will be triggered with 1 signal?

For the moment, I recommend this configuration.

> [@ba2sakal](#):
>
> Would connecting 4 camera to 1 GMSL2 port cause performance drop, since there is a limit of bandwith limit each port has?

No performance drop is expected.

---

<div class="post-metadata">

**Author:** ![ba2sakal](https://community.stereolabs.com/user_avatar/community.stereolabs.com/ba2sakal/32/4031_2.png) [@ba2sakal](https://community.stereolabs.com/u/ba2sakal)\
**Post date:** [March 25, 2025, 12:07pm UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/5 "2025-03-25T12:07:53Z")

</div>

Thanks for the guidance!

---

<div class="post-metadata">

**Author:** ![InguChoi](https://community.stereolabs.com/user_avatar/community.stereolabs.com/inguchoi/32/4197_2.png) [@InguChoi](https://community.stereolabs.com/u/InguChoi)\
**Post date:** [March 27, 2025, 2:09am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/6 "2025-03-27T02:09:44Z")

</div>

> [@Myzhar](#):
>
> Can you share a snippet of code showing how you are opening the cameras concurrently? Are you specifying the Camera ID or the Camera Serial Number in the InitParameters of each `sl::Camera` object?

We put the Camera Serial Number to open() function below capture image

 ![image](https://community.stereolabs.com/uploads/default/original/2X/4/4316fbda654f883ea7bcea72685059ef14dd85f3.png)

---

<div class="post-metadata">

**Author:** ![InguChoi](https://community.stereolabs.com/user_avatar/community.stereolabs.com/inguchoi/32/4197_2.png) [@InguChoi](https://community.stereolabs.com/u/InguChoi)\
**Post date:** [March 27, 2025, 2:11am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/7 "2025-03-27T02:11:40Z")

</div>

> [@Myzhar](#):
>
> Please note that the cameras connected to the two different GMSL2 ports of the ZED Link Quad capture card are not synchronized.  
> To synchronize 4 cameras you must install the ZED X Driver v1.3.0 and connect all the 4 cameras to the same GMSL2 port.

We will try the method that you mentioned.  
After that, we will show a result.

---

<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:** [March 27, 2025, 11:14am UTC](https://community.stereolabs.com/t/how-to-check-the-synchronization-of-mutlple-cameras-system-with-zed-x-series/8444/8 "2025-03-27T11:14:12Z")

</div>

I recommend adding a mutex to not performing all the `open` commands simultaneously
