diff --git a/README.md b/README.md index e5556414..55d26776 100644 --- a/README.md +++ b/README.md @@ -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ě `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. +* **Č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 čá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 `sendZeroHop`; 2-byte path hashes are the default (`PATH_HASH_MODE_DEFAULT`). * 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. ### Power, clock, GPS diff --git a/platformio.ini b/platformio.ini index 73941ec6..9bbc5fea 100644 --- a/platformio.ini +++ b/platformio.ini @@ -111,16 +111,20 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/ ; ----------------- NRF52 --------------------- ; 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 -; master and carries the BLE-stack patch against rapid connect/disconnect -; lockup (MeshCore PRs #1177, #1295). The full 40-char SHA is used on purpose: +; (works on CI and on any clone). CUSTOM (TeTeHacko): our fork +; tth-pub/Adafruit_nRF52_Arduino, branch tth = meshcore-dev's master d541301 +; (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 ; 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 ; never leaks into the tracked tree and breaks CI again -- it did: a committed ; `symlink:///home/user/...` gave PackageException on every nRF52 runner build. [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] extends = arduino_base