Second Init (0x31) packet variant is unrecognized and trips the 'Unexpected init packet' warning

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

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

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
embedded-iot

調査の方向性

Read crates/pod-proto/src/sensor/packet.rs around parse_init (lines 205–215) and inspect the captured frame in the TODO. Compare the 0x0b and 0x0c variants and trace how the Init body is parsed. Done means the discriminator is understood, both captured variants are handled without spurious warnings, and relevant tests cover them.

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

説明

bug

parse_init (crates/pod-proto/src/sensor/packet.rs:207-215) hard-codes the expected body as 00 00 00 0b 00 00 and warns for anything else, but the // TODO FIXME at packet.rs:205 records a real captured frame 31 00 00 00 0c 00 00 1d 22 00 (byte differs: 0x0c vs 0x0b). That second Init subtype currently still parses (the check only warns, not errors) but logs a spurious warning on every occurrence and its differing field is not understood/decoded. Worth capturing what the 0x0b/0x0c discriminator means and widening the accepted structure so real Init frames stop warning.


Filed from a repo-wide code audit (working tree at bcad746).

主要言語
Rust
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

GoogleBot42/podd のほかの issue

GoogleBot42/podd の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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