[Bug]: Serial connection to nRF52 device (T1000-E) never loads; port opened without DTR asserted
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- embedded-iot, frontend
調査の方向性
The payload names no file, so start by finding where the client opens the Web Serial port and where it logs Configuration complete, starting heartbeat. The reported fix is to call setSignals with dataTerminalReady and requestToSend true right after open. Verifying it needs an nRF52 device such as a T1000-E, because the bug only shows on hardware. Done when config packets arrive with DTR asserted, and the silent-empty-state case also gets a timeout or error.
索引モデルが issue の本文から書いたものです。
説明
Before submitting
- I have searched existing issues to make sure this bug hasn't already been reported
- I have updated to the latest version of the software to verify the issue still exists
- I have cleared cache/cookies/storage or tried in a private/incognito window (if applicable)
Hardware
Other (Seeed SenseCAP T1000-E, nRF52840)
Connection Type
Serial
Local or Hosted
Firmware Version
2.7.15.567b8ea
Operating System
Fedora Linux 45 (kernel 7.3.3)
Browser
Chromium 156.0.8078.79
Expected Behavior
After choosing the serial port, the client gets the device config (myInfo, nodes, config, channels) and loads the UI.
Actual Behavior
The connection goes to DeviceConnected, then the client logs Configuration complete, starting heartbeat even though no packets are received from the radio at all. Nothing loads. Heartbeat pings go out every 60 s with no response.
Root cause: the serial port is opened without asserting DTR. On nRF52 (Adafruit/TinyUSB CDC) the firmware treats DTR-low as "no host connected" and sends nothing over USB serial.
I checked this with pyserial against the same device, sending an identical ToRadio{want_config_id} frame each time:
| DTR/RTS | Bytes received | Framed packets |
|---|---|---|
| asserted | 15854 | 119 (full config) |
| de-asserted | 0 | 0 |
| asserted again | 15854 | 119 |
The Python CLI (meshtastic --info) works on the same port, because pyserial asserts DTR by default.
Workaround that fixes it: run this in the DevTools console before connecting:
const _open = SerialPort.prototype.open;
SerialPort.prototype.open = async function (opts) {
await _open.call(this, opts);
await this.setSignals({ dataTerminalReady: true, requestToSend: true });
};
With this in place the client connects and loads normally.
Suggested fix: explicitly call port.setSignals({ dataTerminalReady: true, requestToSend: true }) right after port.open() in the serial transport. Don't rely on the platform or browser default.
Steps to Reproduce
- Use an nRF52-based node (here a T1000-E) on Linux with Chromium.
- Open https://client.meshtastic.org, then add a Serial connection and select the device.
- The connection succeeds, but no config/nodes ever load. The console shows no received packets.
Also checked: power-cycled the device, cleared site data, made sure no other process holds the port, stopped ModemManager. None of these changed anything.
Relevant console output
[useConnections] Starting configuration
14:48:16:565 DEBUG [iMeshDevice] Configure ⚙️ Requesting device configuration
14:48:16:580 INFO [iMeshDevice] ConnectionStatus 🔗 DeviceConnecting
14:48:16:588 INFO [iMeshDevice] ConnectionStatus 🔗 DeviceConnected
[useConnections] Configuration complete, starting heartbeat
14:49:16:568 DEBUG [iMeshDevice] Ping ❤️ Send heartbeat ping to radio
Additional Context
A second, smaller issue: "Configuration complete" is reported even though configCompleteId was never received. The UI should probably show a timeout or error here instead of silently sitting on an empty state.
- 主要言語
- TypeScript
- スター
- 861
- フォーク
- 316
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 18
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
meshtastic/web のほかの issue
-
i18n
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
meshtastic/web#1187 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
meshtastic/web#1532 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
meshtastic/web#1504 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
meshtastic/web#1498 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
meshtastic/web#1496 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug L3 level 1 needs-review wocs
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
SatyamPandey-07/WorkSphere#10739 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
assistant-ui/assistant-ui#10946 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster no-stale P2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openclaw/openclaw#206303 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信