[Feature Request] Use system clock instead of companion clock for outgoing packet timestamps #171

Closed
opened 2026-10-05 02:01:46 +02:00 by adam · 2 comments
Owner

Currently, all messages sent via RemoteTerminal are using the companion's clock as source for the packet timestamp.

In Liam's Android App it is possible to use the client clock instead - aka Android device clock, to be found in experimental radio settings.

=> would be great if RemoteTerminal would offer the same as an option because in many cases the system clock of the device running RemoteTerminal usually can be trusted more because it's ntp-synced - opposed to the companion which - as in my case - may have no rtc nor gps at all.

Additionally this will protect from clock poisoning via received packets having bad timestamps because Meshcore companion firmware may automatically sync companion's clock based on incoming packet timestamps and currently there is no way to disable that feature.

Edit: not sure anymore if all of this is true.... what appeared to be poisoned packets changing companion clock turned out to be an issue on the sender-with-wrong-clock's side....

Currently, all messages sent via RemoteTerminal are using the companion's clock as source for the packet timestamp. In Liam's Android App it is possible to use the client clock instead - aka Android device clock, to be found in experimental radio settings. => would be great if RemoteTerminal would offer the same as an option because in many cases the system clock of the device running RemoteTerminal usually can be trusted more because it's ntp-synced - opposed to the companion which - as in my case - may have no rtc nor gps at all. Additionally this will protect from clock poisoning via received packets having bad timestamps because Meshcore companion firmware may automatically sync companion's clock based on incoming packet timestamps and currently there is no way to disable that feature. Edit: not sure anymore if all of this is true.... what appeared to be poisoned packets changing companion clock turned out to be an issue on the sender-with-wrong-clock's side.... <!-- github-sync-id:4361053675 -->
adam closed this issue 2026-10-05 02:01:46 +02:00
Author
Owner

We always use the host clock for outbound message timestamping 🙂 We don't expose it as an option as we always assume that host time is WAY more reliable than a little dinky RTC that can't even go backwards haha.

We always use the host clock for outbound message timestamping 🙂 We don't expose it as an option as we always assume that host time is WAY more reliable than a little dinky RTC that can't even go backwards haha. <!-- github-comment-id:4357324920 -->
Author
Owner

Ok, great! That's my preferred option. Thanks for clarifying.

Ok, great! That's my preferred option. Thanks for clarifying. <!-- github-comment-id:4358279979 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Remote-Terminal-for-MeshCore#171