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

Timestamps should not rely on board initialization time #177

Open
dbendele opened this issue Oct 21, 2021 · 1 comment
Open

Timestamps should not rely on board initialization time #177

dbendele opened this issue Oct 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@dbendele
Copy link
Collaborator

Describe the bug
Custom devices running at the same time have timestamps (returned by hardware) that are 20+ seconds different. This can make it difficult to correlate and order messages.

To Reproduce
Steps to reproduce the behavior:

  1. Add two instances of the custom device
  2. Deploy and Run
  3. Note that scheduled messages have different receive timestamps that differs by about the time it takes to initialize a card.

Expected behavior
I would expect messages received at the same time to bear the same timestamp.

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux RT
  • Version:

Additional context
Add any other context about the problem here.

@dbendele dbendele added the bug Something isn't working label Oct 21, 2021
@Karl-G1 Karl-G1 added enhancement New feature or request and removed bug Something isn't working labels Oct 21, 2021
@Karl-G1
Copy link
Contributor

Karl-G1 commented Oct 21, 2021

Converting to an 'enhancement'. We have not explicitly tested external timing sources, and the current behavior of message Timestamp channels is based on the fact the cards timers are starting from zero. Because the cards are not initialized at the same time, they will reset and start counting roughly 20-30 seconds apart.

If users want to correlate Timestamp values to a system time, they can reference the Absolute Time channel in System Channels and calculate the offset based on the Timestamps. Logging this with Embedded Data Logger over time would have a persistent record in case they drift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants