Automatic reconnection to USB Serial?

Aperta
#832 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

The issue asks whether the library should automatically reconnect a USB serial node after the machine resumes from sleep, and the payload names no files, tests or entry points. Before any change, a maintainer needs to decide whether reconnection belongs in the library or in each app, and that decision is the open question. Done would mean an agreed design, not a patch.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, I'm using Contact—a console UI app that relies on the Meshtastic Python library. I'm wondering: is there a way to make the Meshtastic library automatically reconnect after the PC wakes from standby?

At least on Linux Mint (ThinkPad L470), when the system resumes from sleep, the Contact app still responds to keyboard input, but the node is no longer connected. I have to press Esc (or sometimes even Ctrl+C) to exit Contact and restart it. Only then are the node and channel lists properly refreshed.

Would it make sense for the Meshtastic library itself to handle automatic reconnection? That way, individual apps wouldn't each need to implement their own reconnection logic. It could be a helpful feature for all users.

Thanks!

Lingua principale
Python
Stelle
855
Fork
355
Merge medio
3g 3h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di meshtastic/python

Tutte le issue di meshtastic/python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.