Telemetry backlog: rows since the last successful push, stored on the card, sent in full, reported when it grows
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- arduino, cpp
調査の方向性
Start with Okapi.cpp:255–296 to trace afterLogEvent() and the current push flow, then read NW-Status/QUEUE.md requisite 6 for the Feather handshake dependency. The proposal also names the status file, data file, and LED grid plan in NW-Status; inspect those entry points before estimating the changes. Done means the last-success marker survives resets, pushes cover the backlog within the Boron session limit, and the backlog is reported and recorded as described.
索引モデルが issue の本文から書いたものです。
説明
Keep a telemetry backlog: the rows logged since the last push that succeeded, kept where a reset cannot lose it, sent in full at the next push, and reported when it grows.
What the firmware does today (Okapi.cpp:255–296). _logCount counts rows in RAM and afterLogEvent() pushes when it reaches _logCountPush (5) and the board is on main power. The push prints the last five rows by SD index, sets _logCount = 0, and then waits up to 180 s for FeatherGPIO to fall. Three consequences:
- The counter is zeroed before the result is known, so a push that times out loses its five rows from telemetry.
_logCountand_lastSdIndexare RAM. A reset (watchdog, brown-out, battery swap) forgets both, and the next push sends five rows counted from the reset, not from the last success.- On backup power the push is skipped but the counter keeps climbing; when main power returns the push still sends five rows, and everything before them is never sent.
There is no backlog, only a five-row window, and the window drops rows in each of these cases.
Proposed.
- The marker, not the count, is the state. Store the timestamp (or SD index) of the last row that a successful push covered. Write it once per success, after
FeatherGPIOfalls, never before. The backlog is then every row after the marker, and it needs no counter of its own. - Where it lives. On the card, as a line in the status file, which the logger already writes and which survives a reset at no wear cost. EEPROM would work for the marker alone (one write per successful push) but a per-row counter in EEPROM would wear a cell out in months at one row a minute, which is why the count is derived and the marker is stored. At boot, read the marker and count rows after it in the data file.
- The push sends the backlog, from the marker to the newest row, not a fixed five, so a return from backup power or a reset sends what was missed. Cap a single push at a size the Boron session can carry and let the next push continue.
- Report it. A
TELEMETRY_BEHINDmessage (CAUGHT) when the backlog passes twice_logCountPush, cleared by a success; a column in the data file with the backlog at the time of the row, so the gap is visible in the record afterwards. On the LED grid it is the telemetry column (B1 yellow), per the grid plan in NW-Status.
Depends on separating "connected" from "sent" in the Feather handshake (requisite 6 in NW-Status/QUEUE.md), because a success must mean the rows arrived, not that the modem woke.
Should it survive a boot cycle? Yes. The rows it counts are on the card and survive; a backlog that forgets them while the rows remain unsent is wrong by construction.
🤖 Generated with Claude Code
- 主要言語
- C++
- スター
- 1
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NorthernWidget/Okapi_Library のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
NorthernWidget/Okapi_Library#9 · コメント 1 件 ·
NorthernWidget/Okapi_Library の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ROCm/FastFlowLM#887 ·
メンテナーはふだん 1 日以内に返信
-
paraview 6.2.0 uses Abseil 20260526 symbols but does not pin libabseil (undefined symbol with libabseil 20260817)対応中かも @jschueller が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
bug medium priority openmp tokenizer wrong result
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
apache/casbin-cpp#277 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
iamaisim/ProjectAirSim#241 ·
メンテナーはふだん 1 日以内に返信