Automatic reconnection to USB Serial?

Aberta
#832 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
15/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
api

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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!

Linguagem predominante
Python
Estrelas
855
Forks
355
Merge médio
3d 3h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshtastic/python

Todas as issues de meshtastic/python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.