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

Abierto
#1,499 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
861
Forks
316
Merge medio
2 d 10 h
PR fusionados (30 d)
18

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshtastic/web

Todos los issues de meshtastic/web

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.