Automatic reconnection to USB Serial?

Đang mở
#832 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
Python
Star
855
Fork
355
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshtastic/python

Tất cả issue của meshtastic/python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.