firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Station G2 reboots on weak wifi + phone connect

Open liquidraver opened this issue 9 months ago • 1 comments
trafficstars

Category

Other

Hardware

Station G2

Firmware Version

2.5.21

Description

Hi!

It is a hard to reproduce bug, and my station g2 is on the roof, so took a bit of work to get some logs, but finally I was able to reboot the node just by connecting to it via android app. The radio is fine if I don't connect it to wifi (running for days without a problem) but if I do and try to connect to it via meshsense or android app AND the wifi connection is weak (enough?), it just reboots.

I tried to reproduce a couple of times but only managed to do it twice and not in a row.

After the API connection, the radio starts to send info:

INFO | 13:14:12 16802 [ApiServer] Force close previous TCP connection DEBUG | 13:14:12 16802 [ApiServer] PhoneAPI::close() INFO | 13:14:12 16802 [ApiServer] Incoming API connection INFO | 13:14:12 16802 [ApiServer] Incoming wifi connection INFO | 13:14:12 16802 [ServerAPI] Client wants config, nonce=2 DEBUG | 13:14:12 16803 [ServerAPI] Got 17 files in manifest INFO | 13:14:12 16803 [ServerAPI] Start API client config DEBUG | 13:14:12 16803 [ServerAPI] FromRadio=STATE_SEND_MY_INFO INFO | 13:14:12 16803 [ServerAPI] getFromRadio=STATE_SEND_UIDATA DEBUG | 13:14:12 16803 [ServerAPI] Send My NodeInfo DEBUG | 13:14:12 16803 [ServerAPI] Send device metadata DEBUG | 13:14:12 16803 [ServerAPI] Send channels 8 DEBUG | 13:14:12 16803 [ServerAPI] Send config: device DEBUG | 13:14:12 16803 [ServerAPI] Send config: position DEBUG | 13:14:12 16803 [ServerAPI] Send config: power DEBUG | 13:14:12 16803 [ServerAPI] Send config: network DEBUG | 13:14:12 16803 [ServerAPI] Send config: display DEBUG | 13:14:12 16803 [ServerAPI] Send config: lora DEBUG | 13:14:12 16803 [ServerAPI] Send config: bluetooth DEBUG | 13:14:12 16803 [ServerAPI] Send config: security DEBUG | 13:14:13 16803 [ServerAPI] Send config: sessionkey DEBUG | 13:14:13 16803 [ServerAPI] Send module config: mqtt DEBUG | 13:14:13 16803 [ServerAPI] Send module config: serial DEBUG | 13:14:13 16803 [ServerAPI] Send module config: ext notification DEBUG | 13:14:13 16803 [ServerAPI] Send module config: store forward DEBUG | 13:14:13 16803 [ServerAPI] Send module config: range test DEBUG | 13:14:13 16803 [ServerAPI] Send module config: telemetry DEBUG | 13:14:13 16803 [ServerAPI] Send module config: canned message DEBUG | 13:14:13 16803 [ServerAPI] Send module config: audio DEBUG | 13:14:13 16803 [ServerAPI] Send module config: remote hardware DEBUG | 13:14:13 16803 [ServerAPI] Send module config: neighbor info DEBUG | 13:14:13 16803 [ServerAPI] Send module config: ambient lighting DEBUG | 13:14:13 16803 [ServerAPI] Send module config: detection sensor DEBUG | 13:14:13 16803 [ServerAPI] Send module config: paxcounter DEBUG | 13:14:13 16803 [ServerAPI] Send known nodes INFO | 13:14:13 16803 [ServerAPI] nodeinfo: num=0x33redact, lastseen=1739102473, id=!33redact, name=###########red##act######## DEBUG | 13:14:13 16803 [ServerAPI] Send known nodes INFO | 13:14:13 16803 [ServerAPI] nodeinfo: num=0x43redact, lastseen=1739103074, id=!43redact, name=RedActed

If after this line the nodes listing is slow, then it will restart at this line:

DEBUG | 13:15:03 16853 [ServerAPI] Send known nodes INFO | 13:15:03 16853 [ServerAPI] nodeinfo: num=0x7redactx, lastseen=1739093920, id=, name= DEBUG | 13:15:13 16863 [ServerAPI] Send known nodes DEBUG | 13:15:13 16863 [ServerAPI] Done sending nodeinfo DEBUG | 13:15:13 16863 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 13:15:13 16863 [ServerAPI] File: /prefs/channels.proto (57) bytes DEBUG | 13:15:23 16873 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 13:15:23 16873 [ServerAPI] File: /prefs/config.proto (256) bytes DEBUG | 13:15:33 16883 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 13:15:33 16883 [ServerAPI] File: /prefs/db.proto (4392) bytes WARNING file:stream_interface.py __reader line:207 Meshtastic serial port disconnected, disconnecting... ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))

The two restart I could reproduce always happened after the /prefs/db.proto line.

Any ideas anyone?

Relevant log output


liquidraver avatar Feb 09 '25 12:02 liquidraver