Skip to content

Network: Add PTP clock synchronization protocol #29026

Open
@Ryanf55

Description

Feature request

Is your feature request related to a problem? Please describe.

The MAVLink TIMESYNC Protocol V2 is not precise enough for some applications, and it's bespoke. It also doesn't guarantee sync with the GPS, which is instead estimated using Jitter Correction. I'd like ArduPilot to support a clock synchronization protocol that is standardized and supported by nice GNSS units such as the Trimble PX-1. This allows the GNSS System, ArduPilot, and the companion computer, and even some cameras/sensors to all use the same clock.

I propose PTP per RFC-8173 and IEEE 1588-2008. This should achieve 10uS precision.

Describe the solution you'd like

  • Use the LWIP network support to add PTP support to ardupilot being a PTP slave. Assume the GPS is the PTP master.
  • Use the LWIP network stack to have Ardupilot be the PTP master when you don't have GPS

Describe alternatives you've considered

  • MAVLINK timesync
  • PPS
  • NTP

Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

Additional context

https://discuss.ardupilot.org/t/mavlink-time-synchronization/128496/4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions