All nRF52 images: the node's time no longer jumps 4.5 h ahead
tth-docs / site (push) Successful in 20s
pub-release / release (push) Successful in 20m49s

Changelog-cs: Všechny nRF52 obrazy: čas uzlu už neposkočí o 4,5 h dopředu (oprava obsluhy tiku v Adafruit core; uptime, airtime i hodiny skákaly o 16 384 s)
Changelog: All nRF52 images: the node's time no longer jumps 4.5 h ahead (tick handler fix in the Adafruit core; uptime, airtime and the clock jumped 16384 s)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-12-02 11:41:00 +01:00
1 parent 021df7116a
commit a6487bc4c2
2 files changed
+22 -4

No files matched your search

+14
View File
@@ -135,6 +135,13 @@ Repeater navíc:
* Šířka path hashe se bere z nastavení uzlu na všech cestách vysílání včetně * Šířka path hashe se bere z nastavení uzlu na všech cestách vysílání včetně
`sendZeroHop`; výchozí jsou 2bajtové path hashe (`PATH_HASH_MODE_DEFAULT`). `sendZeroHop`; výchozí jsou 2bajtové path hashe (`PATH_HASH_MODE_DEFAULT`).
* Nepovedené vysílání se zařadí znovu s odstupem, místo aby se zahodilo. * Nepovedené vysílání se zařadí znovu s odstupem, místo aby se zahodilo.
* **Čas nRF52 uzlu už neposkočí o 4,5 h dopředu.** Obsluha tiku FreeRTOS
v Adafruit core přičetla 2^24 tiků naráz, když byl počet tiků byť o jeden
před 24bitovým RTC: `millis()`, uptime, airtime a hodiny uzlu skočily
o 16 384 s, někdy několikrát za pár minut, a uzel posílal adverty s časem
až o 18 h napřed. Framework je proto náš fork
[tth-pub/Adafruit_nRF52_Arduino](https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino)
(meshcore-dev + tahle oprava).
* RSSI každého paketu se zaznamená při příjmu; `ContactInfo` se před * RSSI každého paketu se zaznamená při příjmu; `ContactInfo` se před
částečným vyplněním vynuluje. částečným vyplněním vynuluje.
@@ -462,6 +469,13 @@ The repeater also has:
* Path-hash width comes from the node's prefs on every TX path, including * Path-hash width comes from the node's prefs on every TX path, including
`sendZeroHop`; 2-byte path hashes are the default (`PATH_HASH_MODE_DEFAULT`). `sendZeroHop`; 2-byte path hashes are the default (`PATH_HASH_MODE_DEFAULT`).
* Failed transmits are re-queued with backoff instead of dropped. * Failed transmits are re-queued with backoff instead of dropped.
* **An nRF52 node's time no longer jumps 4.5 h ahead.** The FreeRTOS tick
handler of the Adafruit core added 2^24 ticks at once when the tick count
was even one tick ahead of the 24-bit RTC: `millis()`, uptime, airtime and
the node's clock jumped 16384 s, sometimes several times within minutes, and
the node sent adverts dated up to 18 h ahead. The framework is therefore our
fork [tth-pub/Adafruit_nRF52_Arduino](https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino)
(meshcore-dev + this fix).
* Per-packet RSSI captured at RX; `ContactInfo` zeroed before a partial fill. * Per-packet RSSI captured at RX; `ContactInfo` zeroed before a partial fill.
### Power, clock, GPS ### Power, clock, GPS
+8 -4
View File
@@ -111,16 +111,20 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
; ----------------- NRF52 --------------------- ; ----------------- NRF52 ---------------------
; nRF52 Adafruit framework package. Committed DEFAULT is a fetchable git pin ; nRF52 Adafruit framework package. Committed DEFAULT is a fetchable git pin
; (works on CI and on any clone). d541301 is the tip of meshcore-dev's fork ; (works on CI and on any clone). CUSTOM (TeTeHacko): our fork
; master and carries the BLE-stack patch against rapid connect/disconnect ; tth-pub/Adafruit_nRF52_Arduino, branch tth = meshcore-dev's master d541301
; lockup (MeshCore PRs #1177, #1295). The full 40-char SHA is used on purpose: ; (the BLE-stack patch against rapid connect/disconnect lockup, MeshCore PRs
; #1177, #1295) + 7808206: xPortSysTickHandler no longer adds 2^24 ticks when
; the tick count is ahead of the RTC -- millis(), uptime and the clock of
; mast-rpt-two jumped 16384 s ahead, several times in minutes (2. 12. 2026).
; Public: pub-release builds in tth-pub. The full 40-char SHA is used on purpose:
; PlatformIO's shallow fetch choked on the SHORT SHA, which is the whole reason ; PlatformIO's shallow fetch choked on the SHORT SHA, which is the whole reason
; the local build used a full clone + symlink. That symlink hack now lives ONLY ; the local build used a full clone + symlink. That symlink hack now lives ONLY
; in the gitignored platformio.local.ini (it redefines [nrf52_fw].pkg), so it ; in the gitignored platformio.local.ini (it redefines [nrf52_fw].pkg), so it
; never leaks into the tracked tree and breaks CI again -- it did: a committed ; never leaks into the tracked tree and breaks CI again -- it did: a committed
; `symlink:///home/user/...` gave PackageException on every nRF52 runner build. ; `symlink:///home/user/...` gave PackageException on every nRF52 runner build.
[nrf52_fw] [nrf52_fw]
pkg = https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301665b40959682252911e57b11df3ee651a pkg = https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino.git#780820646f53945446085d47ee3b851c41f9f541
[nrf52_base] [nrf52_base]
extends = arduino_base extends = arduino_base