mesh-api icon indicating copy to clipboard operation
mesh-api copied to clipboard

no reconection Attempting to connect to Meshtastic device

Open lameritos opened this issue 6 months ago • 7 comments

heltec v3 wifi some times get

2026-05-07 14:33:22 UTC - Attempting to connect to Meshtastic device... 2026-05-07 14:33:23 UTC - TCPInterface → 192.168.88.105:4403 2026-05-07 14:33:32 UTC - Subscribing to on_receive callback... 2026-05-07 14:33:32 UTC - AI provider set to: openrouter 2026-05-07 14:33:32 UTC - Connection successful. Running until error or Ctrl+C. 2026-05-07 14:33:32 UTC - Connection established successfully.

and no reconnection

The message keeps repeating for hours. It might reconnect after a while, but it could take a whole day. I used a different bot before and had no connection issues.

2026-05-07 14:33:32 UTC - Attempting to connect to Meshtastic device... 2026-05-07 14:33:32 UTC - TCPInterface → 192.168.88.105:4403 2026-05-07 14:34:02 UTC - Connection error: Timed out waiting for connection completion 2026-05-07 14:34:02 UTC - ERROR:root:⚠️ Connection/runtime error: Timed out waiting for connection completion 2026-05-07 14:34:02 UTC - Error: Timed out waiting for connection completion 2026-05-07 14:34:02 UTC - Will attempt reconnect in 30 seconds... 2026-05-07 14:34:32 UTC - --------------------------------------------------- 2026-05-07 14:34:32 UTC - Attempting to connect to Meshtastic device... 2026-05-07 14:34:32 UTC - TCPInterface → 192.168.88.105:4403 2026-05-07 14:34:36 UTC - Subscribing to on_receive callback... 2026-05-07 14:34:36 UTC - AI provider set to: openrouter 2026-05-07 14:34:36 UTC - Connection successful. Running until error or Ctrl+C. 2026-05-07 14:34:36 UTC - Connection established successfully.

lameritos avatar May 07 '26 16:05 lameritos

Greetings - I need a little more info to help you out -

Can you confirm the firmware version of the device as well as what machine you are running this on? Is this windows? Linux? Pi? Docker container? As much info as you can provide so I can look into it.

mr-tbot avatar May 10 '26 11:05 mr-tbot

Make sure you mesh node is stable my setup with Ollama on a Orange PI is stable for close to a month. I found the Heltec v3 was rebooting randomly so re flashed and set a ping to it.

droidblastnz avatar May 11 '26 01:05 droidblastnz

It looks like the problem was that the node's IP was changing periodically. I'll monitor it for another day.

lameritos avatar May 13 '26 22:05 lameritos

firmware 2.7.8 connected via wi-fi, mesh-api runing on docker ping for node stable. debug does not provide more information

lameritos avatar May 14 '26 08:05 lameritos

I have had an instance running stable (hard wired) for several months - When I was using wifi - I experienced wifi related issues on the heltec... The software is very robust at reconnecting ... Try with the device closer to your router - see if the problem stops - if it does - it's just a wifi transmission thing ... you may need a lora board that has external wifi antennas.

I had similar issues when originally running this on wifi - resetting the board it came back up... You can try lowering the baud rate in the config - which may help - it doesn't really make a big difference if you drop it a couple notches - I have found that irons out subpar connections as well.

mr-tbot avatar May 25 '26 21:05 mr-tbot

Also - try the alpha and newest beta firmwares and let me know if you still have issues - I'll be updating Mesh-API at some point this week when I have a few moments. I'll see if there's anything we can do to shore up the wifi stability somehow - or perhaps a new library requirement may fix the issues you're facing.

Regardless - I'll do a sweep on the code this week. =)

Cheers!

mr-tbot avatar May 25 '26 22:05 mr-tbot

thanks alot in 7.3.6 work fine for 3 days. close the issue

lameritos avatar Jun 13 '26 17:06 lameritos