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

Add hearbeat register #45

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bruno-f-cruz
Copy link
Member

@bruno-f-cruz bruno-f-cruz commented Mar 24, 2024

Summary

This PR adds a new register to the protocol called HEARTBEAT.

Motivation

We want to be able to periodically check the status of the device. Including synchronization, mode and error status.

Detailed Design

We will add a new register with the following specs:

Name: Heartbeat
Address: 18
Format: U16
Access: Read-only

For now, only 3 bits will be implemented:

  • IS_STANDBY
  • IS_ERROR_STATE
  • IS_SYNCHRONIZED

The other 13 bits will remain free for future status bits.

More information is available in the PR.

Design Meetings

See further discussion in the following issues:

@galenlynch
Copy link

+1 on this! This would be hugely useful, and head off a lot of data quality issues.

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.

Add a bit flag to heartbeat with synchronization flag
2 participants