python icon indicating copy to clipboard operation
python copied to clipboard

Automatic reconnection to USB Serial?

Open vitasam opened this issue 2 months ago • 0 comments

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!

vitasam avatar Sep 30 '25 21:09 vitasam