# Sync Time Stamps Across Multiple Cameras

**URL:** https://forum.commonvisionblox.com/t/sync-time-stamps-across-multiple-cameras/1951
**Category:** Programming Questions
**Created:** [May 18, 2023, 9:46am UTC](https://forum.commonvisionblox.com/t/sync-time-stamps-across-multiple-cameras/1951 "2023-05-18T09:46:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danielquintic](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@danielquintic](https://forum.commonvisionblox.com/u/danielquintic)
#### Post date: [May 18, 2023, 9:46am UTC](https://forum.commonvisionblox.com/t/sync-time-stamps-across-multiple-cameras/1951/1 "2023-05-18T09:46:52Z")

</div>

I am running multiple Allied Vision GigE cameras, grabbing them all at the same time.

I am successfully extracting the Time Stamps of the frames via  
G2GetGrabStatus(cvbImgs[threadCam], GRAB\_INFO\_TIMESTAMP, timeStamp);

I need to be able to synchronise the frames ACROSS the cameras - ie know which frame on one camera relates to which frame on the next camera, as some are started out of sync.

I have brought this topic up on this forum before and was told that although the stamps are consistent PER camera they can’t be compared BETWEEN cameras.

What’s the best way to sync up these time stamps, please?

I was told previously that Precision Time Protocol could do this, but how do I go about implementing that, please?

---

<div class="post-metadata">

### Author: ![MandanaS](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/mandanas/32/1211_2.png) [@MandanaS](https://forum.commonvisionblox.com/u/MandanaS)
#### Post date: [May 19, 2023, 10:01am UTC](https://forum.commonvisionblox.com/t/sync-time-stamps-across-multiple-cameras/1951/2 "2023-05-19T10:01:15Z")

</div>

Hi @danielquintic

As you have been already told, PTP is the best way to achieve what you expect. This is a camera feature and is not relevant to this CVB forum. For more information about this topic please find the manual of your camera and check how you can activate and set its PTP feature or send an email to [support@stemmer-imaging.com](mailto:support@stemmer-imaging.com) and mention your camera model.

In General Allied Vision cameras’ device clocks are represented by the GevTimestampValue feature. When the PTP is activated and set, synchronization is complete on all devices when all GevTimestampValues are equal to the Master GevTimestampValue, and no device’s PtpStatus = Initializing, Listening, or Uncalibrated. PtpStatus is a read only feature.

---

<div class="post-metadata">

### Author: ![danielquintic](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@danielquintic](https://forum.commonvisionblox.com/u/danielquintic)
#### Post date: [May 19, 2023, 4:17pm UTC](https://forum.commonvisionblox.com/t/sync-time-stamps-across-multiple-cameras/1951/3 "2023-05-19T16:17:01Z")

</div>

Thanks for the reply - I will contact the support email and have a look into GevTimestampValue
