Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network: Add PTP clock synchronization protocol #29026

Open
Ryanf55 opened this issue Jan 8, 2025 · 0 comments
Open

Network: Add PTP clock synchronization protocol #29026

Ryanf55 opened this issue Jan 8, 2025 · 0 comments

Comments

@Ryanf55
Copy link
Collaborator

Ryanf55 commented Jan 8, 2025

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

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

No branches or pull requests

1 participant