[Bug]: Serial connection to nRF52 device (T1000-E) never loads; port opened without DTR asserted

Open
#1,499 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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

https://client.meshtastic.org

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
  1. Use an nRF52-based node (here a T1000-E) on Linux with Chromium.
  2. Open https://client.meshtastic.org, then add a Serial connection and select the device.
  3. 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.

Dominant language
TypeScript
Stars
861
Forks
316
Avg merge
2d 10h
Merged PRs (30d)
18

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshtastic/web

All issues in meshtastic/web

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.