SlideShare a Scribd company logo
Precision Time Protocol IEEE1588


Klaus Mählert
Product Management Group Manager
Konstanz – April 17, 2012
Precision Time Protocol IEEE1588
with AVT GigE cameras

Presentation by courtesy of Allied Vision Technologies
What is Precision Time Protocol?
• An IEEE1588 networking standard
• Used to manage clock synchronization of
  multiple devices across an Ethernet network
• Cameras can utilize the same time base and
  relevance for the timestamp
• Adopted by machine vision with GigE Vision
  2.0
Competing clock synchronization schemes
• Network time protocol (NTP)
    • Offers poor accuracy ~ 10 ms
    • Low cost, most common clock synchronization scheme in networking
• Global Positioning System (GPS)
    •   Provides excellent precision ~ ns
    •   An expensive component to incorporate into every
        device
•   Precision Time Protocol (PTP)
    •   Provides excellent precision ~ µs
    •   Low cost - can be incorporated into cameras using a
        firmware change and without additional hardware
TimeStampValue represents camera clock
• The heart beat of the camera
   • Drives signal timing including exposure start time
   • Attached to every frame and used by the driver to
     calculate frame rate
Enabling PTP Synchronization
• PtpMode = Off
   •   TimeStampValue is not synchronized with any other device.
• PtpMode = Master
   •   All Slave devices synchronize their clock to this camera's
       TimeStampValue.
• PtpMode = Slave
   •   TimeStampValue is altered to align with a Master
       TimeStampValue.
• PtpMode = Auto
   •   Uses the IEEE1588 best master clock algorithm to determine
       which device is master.
Monitoring PTP Synchronization
• PtpStatus = Off (Read only)
   •   The device PtpMode is set to off.
• PtpStatus = Master (Read only)
   •   The device is configured and working as Master PTP device.
• PtpStatus = Error (Read only)
   •   The slave device is in the process of synchronizing with the master.
• PtpStatus = Slave (Read only)
   •   The device is acting as a slave and synchronized to within several
       microseconds of the master.
How is PTP synchronization realized?
• Master PTP clock transmits a “Sync” telegram using
  multicast messaging.
• Slave PTP clock cameras receive multicast and calculate
  time difference between its own clock and the Master PTP
  clock.
• Clock synchronization, using follow up and delay messages
  is used to align the Slave PTP device clocks to the Master
  PTP clock.
How is PTP synchronization realized?
• Once a Slave clock is within 2 µs of
  the master, its PtpStatus is changed
  from Error to Slave.
• If the timestamps are 2 seconds or
  more apart, the Slave camera
  overwrites its own timestamp with
  the Master camera timestamp.
Implementing a scheduled software trigger
The PtpTriggerTime attribute is used to define
a future TimeStampValue for start of exposure.
1. Achieve clock synchronization. Set PtpMode =
   Master, Slave or Auto.
2. Set camera FrameRate, FrameStartTriggerMode,
   and AcquisitionMode as desired. Start an
   acquisition stream using AcquisitionStart.
3. Determine the current camera TimeStampValue
   using TimeStampValueLatch.
4. Set PtpTriggerTime to a value which sufficiently
   exceeds the current camera TimeStampValue.
   Allow several seconds for the camera to receive
   PtpTriggerTime
PtpTriggerTime Notes
•   Setting PtpTriggerTime will suspend all frame triggers in a camera’s current
    AcquisitionStart stream while PtpTriggerTime >= TimeStampValue
•   When TimeStampValue increases to reach PtpTriggerTime, frame triggers
    resume
•   To implement a scheduled (future) software trigger set
         PtpTriggerTime = TimeStampValue + 
                    = Time required to upload PtpTriggerTime to the camera




              The PtpTriggerTime event does not start a new acquisition stream, it
              simply resumes frame triggers on an existing stream.
Suggested PTP Camera Networks
•   A switch is required for implementing a PTP network
•   Cannot currently implement PTP synchronization
    across multiple adapters
•   LAG between host and switch has been tested and
    shown poor results
•   10 GigE Uplink ports are being tested and have shown
    good initial results
Comparing TimeStampValues between camera
events and frames
•   Camera EventControls allow the host to receive a
    TimeStampValue for a selected event, e.g.
    EventSyncIn1Rise. Likewise all frames returned from
    camera have a TimeStampValue associated with
    them.
•   Comparison of these TimeStampValues can give
    valuable information, and with PTP synchronization,
    allow for a common time base between cameras and
    event sensors.
Thank you for your attention.



                                STEMMER IMAGING GmbH
                                Gutenbergstr. 9-13
                                82178 Puchheim
                                Germany
                                Phone:     +49 89 80902-236
                                Fax:       +49 89 80902-116
                                k.maehlert@stemmer-imaging.de
                                www.stemmer-imaging.de
                                Your contact: Klaus Mählert

More Related Content

Recently uploaded

The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
Jen Stirrup
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 

Recently uploaded (20)

The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Precision Time Protocol IEEE 1588

  • 1. Precision Time Protocol IEEE1588 Klaus Mählert Product Management Group Manager Konstanz – April 17, 2012
  • 2. Precision Time Protocol IEEE1588 with AVT GigE cameras Presentation by courtesy of Allied Vision Technologies
  • 3. What is Precision Time Protocol? • An IEEE1588 networking standard • Used to manage clock synchronization of multiple devices across an Ethernet network • Cameras can utilize the same time base and relevance for the timestamp • Adopted by machine vision with GigE Vision 2.0
  • 4. Competing clock synchronization schemes • Network time protocol (NTP) • Offers poor accuracy ~ 10 ms • Low cost, most common clock synchronization scheme in networking • Global Positioning System (GPS) • Provides excellent precision ~ ns • An expensive component to incorporate into every device • Precision Time Protocol (PTP) • Provides excellent precision ~ µs • Low cost - can be incorporated into cameras using a firmware change and without additional hardware
  • 5. TimeStampValue represents camera clock • The heart beat of the camera • Drives signal timing including exposure start time • Attached to every frame and used by the driver to calculate frame rate
  • 6. Enabling PTP Synchronization • PtpMode = Off • TimeStampValue is not synchronized with any other device. • PtpMode = Master • All Slave devices synchronize their clock to this camera's TimeStampValue. • PtpMode = Slave • TimeStampValue is altered to align with a Master TimeStampValue. • PtpMode = Auto • Uses the IEEE1588 best master clock algorithm to determine which device is master.
  • 7. Monitoring PTP Synchronization • PtpStatus = Off (Read only) • The device PtpMode is set to off. • PtpStatus = Master (Read only) • The device is configured and working as Master PTP device. • PtpStatus = Error (Read only) • The slave device is in the process of synchronizing with the master. • PtpStatus = Slave (Read only) • The device is acting as a slave and synchronized to within several microseconds of the master.
  • 8. How is PTP synchronization realized? • Master PTP clock transmits a “Sync” telegram using multicast messaging. • Slave PTP clock cameras receive multicast and calculate time difference between its own clock and the Master PTP clock. • Clock synchronization, using follow up and delay messages is used to align the Slave PTP device clocks to the Master PTP clock.
  • 9. How is PTP synchronization realized? • Once a Slave clock is within 2 µs of the master, its PtpStatus is changed from Error to Slave. • If the timestamps are 2 seconds or more apart, the Slave camera overwrites its own timestamp with the Master camera timestamp.
  • 10. Implementing a scheduled software trigger The PtpTriggerTime attribute is used to define a future TimeStampValue for start of exposure. 1. Achieve clock synchronization. Set PtpMode = Master, Slave or Auto. 2. Set camera FrameRate, FrameStartTriggerMode, and AcquisitionMode as desired. Start an acquisition stream using AcquisitionStart. 3. Determine the current camera TimeStampValue using TimeStampValueLatch. 4. Set PtpTriggerTime to a value which sufficiently exceeds the current camera TimeStampValue. Allow several seconds for the camera to receive PtpTriggerTime
  • 11. PtpTriggerTime Notes • Setting PtpTriggerTime will suspend all frame triggers in a camera’s current AcquisitionStart stream while PtpTriggerTime >= TimeStampValue • When TimeStampValue increases to reach PtpTriggerTime, frame triggers resume • To implement a scheduled (future) software trigger set PtpTriggerTime = TimeStampValue +   = Time required to upload PtpTriggerTime to the camera The PtpTriggerTime event does not start a new acquisition stream, it simply resumes frame triggers on an existing stream.
  • 12. Suggested PTP Camera Networks • A switch is required for implementing a PTP network • Cannot currently implement PTP synchronization across multiple adapters • LAG between host and switch has been tested and shown poor results • 10 GigE Uplink ports are being tested and have shown good initial results
  • 13. Comparing TimeStampValues between camera events and frames • Camera EventControls allow the host to receive a TimeStampValue for a selected event, e.g. EventSyncIn1Rise. Likewise all frames returned from camera have a TimeStampValue associated with them. • Comparison of these TimeStampValues can give valuable information, and with PTP synchronization, allow for a common time base between cameras and event sensors.
  • 14. Thank you for your attention. STEMMER IMAGING GmbH Gutenbergstr. 9-13 82178 Puchheim Germany Phone: +49 89 80902-236 Fax: +49 89 80902-116 k.maehlert@stemmer-imaging.de www.stemmer-imaging.de Your contact: Klaus Mählert