State looks live while the car is asleep or the CAN bus is silent
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- embedded-iot
調査の方向性
Start with state_update_task and STATE_HEARTBEAT_INTERVAL in cars/egmp/src/lib.rs, then trace the liveness timer in mobile-app/lib/providers/vehicle_state_provider.dart and the timestamp display in egmp_dashboard.dart. Review a log of the car falling asleep and waking up to determine which signals remain valid. Done when the app distinguishes fresh CAN data from the last state reported before the bus went quiet.
索引モデルが issue の本文から書いたものです。
説明
Problem
state_update_taskrepublishes the full state every 5 s (STATE_HEARTBEAT_INTERVAL,cars/egmp/src/lib.rs:223), whether or not any CAN frame arrived. So when the car sleeps, or the bus goes quiet because of a bus fault, wiring or a WiCAN issue, the device keeps sending the last known values as if they were fresh.- The app marks state live on any update (30 s liveness timer,
mobile-app/lib/providers/vehicle_state_provider.dart:182). The dashboard then shows "Updated just now" (egmp_dashboard.dart:282) for values that may be hours old. - Values that are only meaningful while the car is awake stay frozen at their last reading: speed, power flow, charging state, time to 80%, and so on.
Open questions
- What does an E-GMP car send before going to sleep? Do the last frames leave a consistent "off" state (Park, not ready, not charging)?
- Which values are still valid while asleep (doors, locks, SoC, odometer) and which should be marked unknown?
- How should the app show "car asleep, last seen at X" compared with "device connected, no CAN data"?
Ideas
- Track the time of the last frame that matched a filter, and send it with each state update (or as a system-state field).
- Stop the heartbeat, or flag the state as stale, after N seconds without frames.
- Clear values that only make sense while awake when the bus goes quiet.
- Check this against a log of the car falling asleep and waking up.
Done when
The app can tell live data from data the car last reported before going quiet, and shows the difference.
- 主要言語
- Rust
- スター
- 1
- フォーク
- 0
- 平均マージ
- 12時間 49分
- マージ済み PR(30日)
- 19
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenCarControls/firmware のほかの issue
-
e-gmp enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
OpenCarControls/firmware#75 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
OpenCarControls/firmware#74 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
OpenCarControls/firmware#73 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
OpenCarControls/firmware#72 ·
メンテナーはふだん 1 日以内に返信
-
e-gmp enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
OpenCarControls/firmware#71 ·
メンテナーはふだん 1 日以内に返信
OpenCarControls/firmware の issue をすべて見る
似ている issue
-
bug easy good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
lacs-project/sysknife#659 ·
メンテナーはふだん 2 日以内に返信
-
E_FIT_INPUT_MISSING (mixture overrides): the message says ferx-r bundles lack mixture_overridesオープンP3
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
registrystack/registry-stack#2431 ·
メンテナーはふだん 1 日以内に返信
-
contribution
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
farion1231/cc-switch#8863 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信