Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Toggle the CAN logger over BLE and report its address

オープン
#51 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Start with #10 for the design and open questions, then read #22 and the BLE dispatcher, core-interface, and the existing system command and state handling. Check OpenCarControls/contracts#27 and its pin bump first; the issue requires that change before work can proceed. Done means the runtime toggle, listener lifecycle, state reporting, safety behavior, host tests, configuration example, and three named docs are updated; report which ESP checks were verified.

索引モデルが issue の本文から書いたものです。

説明

Part of #10, which has the design and open questions. Needs OpenCarControls/contracts#27 merged (and its pin bumped) first. Builds on #22 (PR #44).

#22 starts the SavvyCAN listener whenever [network.can_logger] enabled = true. Make it a runtime toggle instead, controlled by the app over BLE.

  • Handle SetCanLoggerEnabled in the BLE dispatcher (a SystemCommand: BLE only, dropped from MQTT). Bonded phone and controller-lease rules as for the other system commands.
  • A runtime "logger enabled" flag in core-interface, off at every boot. While off, the board listener does not accept connections. Turning it on opens the listener; turning it off ends any session (buses released) and closes the listener.
  • Build config becomes "compiled in", on by default. When the board has no WiFi (LTE doesn't count, for security reasons), skip the logger quietly instead of failing the build. Update config.toml.example and the docs.
  • Report the logger state in SystemState: enabled, client connected, port, and the IPv4 address. ESP: the WiFi station address from the embassy-net stack (WiFi interface only). PC: the listener binds all interfaces, so report a best-effort address.
  • Safety: the dev read-only toggle from #27 must not be able to unlock the buses while logging; keep the existing forced read-only and relock-after-session behaviour. Coordinate with #27, which also adds system state and a system command.
  • Host tests for the flag, the dispatch (including MQTT being refused), disable-ends-session, and the state fields. ESP code can't be built in every environment; say what was and wasn't verified.
  • Update docs/can.md, docs/ble.md and docs/architecture.md.
主要言語
Rust
スター
1
フォーク
0
平均マージ
14時間 32分
マージ済み PR(30日)
21

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenCarControls/firmware のほかの issue

OpenCarControls/firmware の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。