Skip to content

Conversation

@Poofjunior
Copy link

  • 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.

@bruno-f-cruz bruno-f-cruz self-requested a review December 19, 2024 20:43
@Poofjunior
Copy link
Author

@glopesdev are you ok with merging this? Thx!

@CLAassistant
Copy link

CLAassistant commented Jun 9, 2025

CLA assistant check
All committers have signed the CLA.

@Poofjunior
Copy link
Author

Whoop--this fell off my radar but became relevant again. Removed that extraneous folder @glopesdev !

@Poofjunior
Copy link
Author

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).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants