TCP config writes are silently lost on Linux as well (2.7.11, ESP32-S3)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- python
- Domaine
- cli, networking
Piste de recherche
Trace the TCP path from the CLI’s --set command through packet writing, ACK waiting, and disconnect: true; compare it with the serial path and the --wait-to-disconnect workaround. Start with the TCP client and reader lifecycle, then add a regression test proving the CLI does not disconnect before the admin packet is acknowledged or applied. Done means the write reliably persists across transports without relying on a fixed delay.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
--set over TCP is silently lost against an ESP32-S3 node on Linux, with 2.7.11 — the
release that contains the #958 fix. #957 concluded the loss was Windows-only ("Same
commands work on Linux"); on this hardware it is not.
Two nodes, two client machines, verified by reading the value back over the other
transport rather than the one the write took.
Setup
One of the nodes has both USB serial and WiFi up, so the same device can be written one
way and read the other. Seeed XIAO ESP32S3, firmware 2.8.0.74578a8 (a build of
develop; I have not tried a release build). Clients: Debian 12 and CachyOS, both with
meshtastic 2.7.11 from PyPI.
| write | read back over | result |
|---|---|---|
--host <ip> --set display.screen_on_secs N |
serial | unchanged, 6 of 6 |
--host <ip> --set … --wait-to-disconnect 8 |
serial | applied |
--port /dev/ttyACM0 --set … |
TCP | applied |
A second unit of the same model behaves the same over TCP.
The CLI reports success either way: it prints Set display.screen_on_secs to N,
Writing modified preferences to device and Writing display configuration to device
even when nothing is written. A BrokenPipeError sometimes precedes that and sometimes
does not, so it is not a usable signal — and it also shows up on successful reads, which
is #962.
What differs between the two transports
--debug shows both building the same packet — ADMIN_APP to the node's own number,
pki_encrypted: true, want_ack: true — both obtaining a sessionkey, and both logging
Wrote: display.
The difference is what comes back. Over serial:
ROUTING_APP … request_id: … routing { errorReason: NONE }
Over TCP nothing comes back; the CLI sends disconnect: true and closes first. The
device logs, at that moment:
[E][NetworkClient.cpp:435] write(): fail on fd 52, errno: 104, "Connection reset by peer"
That is the node failing to send the ack above.
Why the #958 fix does not cover this
Raising GRACEFUL_CLOSE_TIMEOUT from 0.25 to 5.0 changes nothing — two further writes,
both lost. _wait_for_reader_exit() returns as soon as the reader exits, and the
disconnect: true sent just before close causes exactly that. The half-close does
happen; the wait is simply over long before the device has applied the admin packet.
One thing worth separating while you are in there: #957 attributes the loss to Winsock
discarding received-but-unread data on RST. The receive buffer that matters here is the
device's, not the client's — the RST arrives at the ESP32. That would explain why a
client-side platform distinction does not hold up.
Ruled out
- A second client competing for the node's TCP server — same result with our
once-a-minute telemetry poller stopped. - The field or the value — several fields, plain integers, same outcome.
- One bad node — two units, and two different Linux clients.
Workaround
--wait-to-disconnect 8 makes the write land every time. Useful for anyone scripting
against a node over the network in the meantime.
- Langage dominant
- Python
- Étoiles
- 855
- Forks
- 355
- Merge moyen
- 3 j 3 h
- PR mergées (30 j)
- 12
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
meshtastic/python#972 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: Can't run on TermuxPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
meshtastic/python#969 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
meshtastic/python#506 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Undocumented `--set` choicesPeut-être pris @Cryptoteep l’a pris il y a 54 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
meshtastic/python#978 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
meshtastic/python#977 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de meshtastic/python
Issues similaires
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Peut-être pris @gouyu-hou l’a pris aujourd’hui. Ouvertetriage/confirmed
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
agentscope-ai/agentscope#4397 ·
Les mainteneurs répondent en général sous 2 jours
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
NousResearch/hermes-agent#161712 ·
Les mainteneurs répondent en général sous 1 jour
-
[New Check]: postgresql_flexible_server_public_network_access_disabledPeut-être pris @pouria-l l’a pris aujourd’hui. Ouvertefeature-request status/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
prowler-cloud/prowler#13615 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
SACGF/variantgrid#2941 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
linkedin/Liger-Kernel#1730 ·
Les mainteneurs répondent en général sous 3 jours