-
Notifications
You must be signed in to change notification settings - Fork 6
Dev/sync time validity #61
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
base: main
Are you sure you want to change the base?
Dev/sync time validity #61
Conversation
Poofjunior
commented
Nov 18, 2024
- Added supplementary logic analyzer waveform
- Added microcontroller cpp code for interpretting the received timestamp data as the current time.
- Added link to a full state machine example for clocking in the timestamp byte-by-byte.
|
@glopesdev are you ok with merging this? Thx! |
|
Whoop--this fell off my radar but became relevant again. Removed that extraneous folder @glopesdev ! |
|
This came up in conversation about the protocol recently. Any shot we can merge this @bruno-f-cruz @glopesdev ? |
| uint64_t curr_us = ((static_cast<uint64_t>(encoded_sec) + 1) * 1e6) - HARP_SYNC_OFFSET_US; | ||
| ```` | ||
| A full example demonstrating a state machine receiving the 6-byte sequence can be found in the [Pico Core](https://github.com/harp-tech/harp.core.pico/blob/main/firmware/src/harp_synchronizer.cpp). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| A full example demonstrating a state machine receiving the 6-byte sequence can be found in the [Pico Core](https://github.com/harp-tech/harp.core.pico/blob/main/firmware/src/harp_synchronizer.cpp). | |
| A full example demonstrating a state machine receiving the 6-byte sequence can be found in the [Pico Core](https://github.com/harp-tech/core.pico/blob/main/firmware/src/harp_synchronizer.cpp). |
Tiny fix to the URL (we removed the harp prefix for harp-tech repos).
| # Synchronization Clock Protocol (1.0) | ||
|
|
||
| ## Introduction | ||
| The `Harp Synchronization Clock` is a dedicated bus that disseminates the current time to/across Harp devices. It is a serial communication protocol that relays the time information. The last byte in each message can be used as a trigger, and allows a `Device`` to align itself with the current `Harp` time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The Harp Synchronization Clock is a dedicated bus that disseminates the current time to/across Harp devices. It is a serial communication protocol that relays time information. The last byte in each message can be used as a trigger, and allows a Device to align itself with the current Harp time. |
Suggestion to tidy up formatting errors and make it more consistent with the other docs.