firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Configuring wifi on LILYGO T-LoRa V2.1-1.6 makes node unreachable for clients

Open VanceVagell opened this issue 1 month ago • 5 comments

Category

WiFi

Hardware

T-Lora v2 1.6

Is this bug report about any UI component firmware like InkHUD or Meshtatic UI (MUI)?

  • [ ] Meshtastic UI aka MUI colorTFT
  • [ ] InkHUD ePaper
  • [ ] OLED slide UI on any display

Firmware Version

2.7.15.567b8ea Alpha

Description

I installed firmware 2.7.15.567b8ea Alpha because I was facing this bug: https://github.com/meshtastic/Meshtastic-Android/issues/3667 which was preventing me from configuring wifi at all (Android app just hung when attempting to). The alpha firmware resolved that issue, and allowed me to configure wifi (while connected via Bluetooth), and I can indeed see that my LILYGO device is assigned an IP on my network.

However, the LILYGO node is now unreachable via either bluetooth OR network connection. The Android app shows that the LILYGO device is on my local network and attempts to connect to it, but it hangs with the circular spinner spinning indefinitely while trying to connect via the network. And attempting to tap the Bluetooth connection I previously used with the device does nothing (no visual feedback), so the node is unreachable.

I can reflash it and use Bluetooth only, but then I can't use MQTT with this node.

Relevant log output


VanceVagell avatar Nov 23 '25 21:11 VanceVagell

More information:

The Android app says "Module config (10 / 13)" when trying to connect to the device via the wifi network, it just hangs there with the circular spinner. After maybe a minute, the LILYGO device resets (it shows the Meshtastic logo on the screen and reboots).

The debug log from the LILYGO via USB when I'm trying to connect to it in the Android app via wifi looks like this:

DEBUG | 19:40:05 36 [RadioIf] Corrected frequency offset: 3079.667725 DEBUG | 19:40:05 36 [RadioIf] Lora RX (id=0xd9d02bf7 fr=0x088aaa7c to=0xffffffff , transport = 0, WantAck=0, HopLim=2 Ch=0x8 encrypted len=99 rxSNR=10 rxRSSI=-93 hopStart=3 relay=0xb4) DEBUG | 19:40:05 36 [RadioIf] Packet RX: 969ms DEBUG | 19:40:05 36 [Router] Rx someone rebroadcasting for us (id=0xd9d02bf7 fr= 0x088aaa7c to=0xffffffff, transport = 1, WantAck=0, HopLim=2 Ch=0x8 encrypted le n=99 rxSNR=10 rxRSSI=-93 ho DEBUG | 19:40:05 36 [Router] Didn't find pending packet INFO | 19:40:05 36 [Router] Packet History - insert: Reusing slot aged 5.573s T RACE MATCHED PACKET DEBUG | 19:40:05 36 [Router] Ignore dupe incoming msg (id=0xd9d02bf7 fr=0x088aaa 7c to=0xffffffff, transport = 1, WantAck=0, HopLim=2 Ch=0x8 encrypted len=99 rxS NR=10 rxRSSI=-93 hopStart=3 DEBUG | 19:40:05 36 [Router] cancelSending id=0xd9d02bf7, removed=0 DEBUG | 19:40:05 36 [Router] Incoming msg was filtered from 0x88aaa7c INFO | 19:40:14 45 [Position] Send pos@0:6 to mesh (wantReplies=0) DEBUG | 19:40:14 45 [Position] Set local position: lat=360500000 lon=-789700000 time=1763944814 timestamp=0 DEBUG | 19:40:14 45 [Position] Send location with precision 13 INFO | 19:40:14 45 [Position] Position packet: time=1763944814 lat=360448000 lon=-789839872 DEBUG | 19:40:14 45 [Position] Partially randomized packet id 2505235448 DEBUG | 19:40:14 45 [Position] Ignore update from self DEBUG | 19:40:14 45 [Position] handleReceived(LOCAL) (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 rxtime=1763944814 priority=10) DEBUG | 19:40:14 45 [Position] No modules interested in portnum=3, src=LOCAL INFO | 19:40:14 46 [Position] Packet History - insert: Using new slot @uptime 46.010s TRACE NEW DEBUG | 19:40:14 46 [Position] Expand short PSK #1 DEBUG | 19:40:14 46 [Position] Use AES128 key! DEBUG | 19:40:14 46 [Position] enqueue for send (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x8 encrypted len=50 rxtime=1763944814 hopStart=3 relay=0x7 DEBUG | 19:40:14 46 [Position] txGood=1,txRelay=0,rxGood=1,rxBad=0 INFO | 19:40:14 46 [Position] tophone queue status queue is full, discard oldest DEBUG | 19:40:14 46 [Position] Use channel 0 (hash 0x8) DEBUG | 19:40:14 46 [Position] Expand short PSK #1 DEBUG | 19:40:14 46 [Position] Use AES128 key! DEBUG | 19:40:14 46 [Position] decoded message (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 rxtime=1763944814 hopStart=3 relay=0x7c priori DEBUG | 19:40:14 46 [RadioIf] Started Tx (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x8 encrypted len=50 rxtime=1763944814 hopStart=3 relay=0x7c prio DEBUG | 19:40:14 46 [RadioIf] 0 packets remain in the TX queue DEBUG | 19:40:15 46 [RadioIf] Packet TX: 642ms DEBUG | 19:40:15 46 [RadioIf] Completed sending (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x8 encrypted len=50 rxtime=1763944814 hopStart=3 relay=0x DEBUG | 19:40:19 51 [RadioIf] Corrected frequency offset: 2922.381348 DEBUG | 19:40:19 51 [RadioIf] Lora RX (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=2 Ch=0x8 encrypted len=50 rxSNR=11.5 rxRSSI=-95 hopStart=3 relay=0xb4) DEBUG | 19:40:19 51 [RadioIf] Packet RX: 642ms DEBUG | 19:40:19 51 [Router] Rx someone rebroadcasting for us (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 1, WantAck=0, HopLim=2 Ch=0x8 encrypted len=50 rxSNR=11.5 rxRSSI=-95 DEBUG | 19:40:19 51 [Router] Didn't find pending packet INFO | 19:40:19 51 [Router] Packet History - insert: Reusing slot aged 5.232s TRACE MATCHED PACKET DEBUG | 19:40:19 51 [Router] Ignore dupe incoming msg (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 1, WantAck=0, HopLim=2 Ch=0x8 encrypted len=50 rxSNR=11.5 rxRSSI=-95 hopStart DEBUG | 19:40:19 51 [Router] cancelSending id=0x9552dbf8, removed=0 DEBUG | 19:40:19 51 [Router] Incoming msg was filtered from 0x88aaa7c DEBUG | 19:40:29 61 [Power] Battery: usbPower=1, isCharging=1, batMv=4259, batPct=100 INFO | 19:40:58 90 [ApiServer] Incoming API connection INFO | 19:40:58 90 [ApiServer] Incoming wifi connection INFO | 19:40:58 90 [ServerAPI] Client wants config, nonce=69420 DEBUG | 19:40:58 90 [ServerAPI] Got 6 files in manifest INFO | 19:40:58 90 [ServerAPI] Start API client config millis=90309 DEBUG | 19:40:58 90 [ServerAPI] FromRadio=STATE_SEND_MY_INFO INFO | 19:40:58 90 [ServerAPI] getFromRadio=STATE_SEND_UIDATA DEBUG | 19:40:58 90 [ServerAPI] Send My NodeInfo DEBUG | 19:40:58 90 [ServerAPI] Send device metadata [ 90340][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:58 90 [ServerAPI] Send channels 8 [ 90371][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:58 90 [ServerAPI] Send config: device DEBUG | 19:40:58 90 [ServerAPI] Send config: position DEBUG | 19:40:58 90 [ServerAPI] Send config: power [ 90401][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:58 90 [ServerAPI] Send config: network DEBUG | 19:40:58 90 [ServerAPI] Send config: display DEBUG | 19:40:58 90 [ServerAPI] Send config: lora [ 90430][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:58 90 [ServerAPI] Send config: bluetooth DEBUG | 19:40:58 90 [ServerAPI] Send config: security DEBUG | 19:40:58 90 [ServerAPI] Send config: sessionkey [ 90459][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:58 90 [ServerAPI] Send module config: mqtt DEBUG | 19:40:58 90 [ServerAPI] Send module config: serial DEBUG | 19:40:58 90 [ServerAPI] Send module config: ext notification [ 90491][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:58 90 [ServerAPI] Send module config: store forward DEBUG | 19:40:58 90 [ServerAPI] Send module config: range test DEBUG | 19:40:58 90 [ServerAPI] Send module config: telemetry [ 90522][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:59 90 [ServerAPI] Send module config: canned message DEBUG | 19:40:59 90 [ServerAPI] Send module config: audio DEBUG | 19:40:59 90 [ServerAPI] Send module config: remote hardware [ 90555][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:59 90 [ServerAPI] Send module config: neighbor info DEBUG | 19:40:59 90 [ServerAPI] Send module config: ambient lighting DEBUG | 19:40:59 90 [ServerAPI] Send module config: detection sensor DEBUG | 19:40:59 90 [ServerAPI] Send module config: paxcounter DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 19:40:59 90 [ServerAPI] File: /prefs/channels.proto (78) bytes [ 90604][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 19:40:59 90 [ServerAPI] File: /prefs/config.proto (238) bytes DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 19:40:59 90 [ServerAPI] File: /prefs/device.proto (112) bytes DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 19:40:59 90 [ServerAPI] File: /prefs/module.proto (100) bytes DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 19:40:59 90 [ServerAPI] File: /prefs/nodes.proto (311) bytes [ 90687][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST DEBUG | 19:40:59 90 [ServerAPI] File: /static/.gitkeep (0) bytes DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_FILEMANIFEST INFO | 19:40:59 90 [ServerAPI] Config Send Complete millis=90741 [ 90744][E][WiFiClient.cpp:429] write(): fail on fd 52, errno: 11, "No more processes" DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_PACKETS DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_PACKETS DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_PACKETS DEBUG | 19:40:59 90 [ServerAPI] phone downloaded packet (id=0x9552dbf8 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 rxtime=1763944814 hopStart=3 relay=0x7 DEBUG | 19:40:59 90 [ServerAPI] Got client heartbeat DEBUG | 19:40:59 90 [ServerAPI] FromRadio=STATE_SEND_QUEUE_STATUS, numbytes=6 INFO | 19:40:59 90 [ServerAPI] Client wants config, nonce=69421 INFO | 19:40:59 90 [ServerAPI] Client only wants node info, skipping other config

abort() was called at PC 0x4020301b on core 1

Backtrace: 0x4008414d:0x3ffddaf0 0x400976fd:0x3ffddb10 0x4009d531:0x3ffddb30 0x4020301b:0x3ffddbb0 0x40203062:0x3ffddbd0 0x402033a7:0x3ffddbf0 0x40203306:0x3ffddc10 0x4015c851:0x3ffddc30 0x4013c63c:0x3ffddd90 0x401330a5:0x3ffddff0 0x40138ffb:0x3ffde010 0x4013df19:0x3ffde030 0x40155bfa:0x3ffde050 0x4014000d:0x3ffde070 0x400e8325:0x3ffde0c0

ELF file SHA256: 9be0a86b52c93e3e

E (1977) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0 Rebooting... ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 188777542, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:1184 load:0x40078000,len:13232 load:0x40080400,len:3028 entry 0x400805e4 E (877) esp_core_dump_flash: No core dump▒▒ѥѥ▒▒▒found! E (877) esp_core_dump_flash: No core dump partition found! [ 11][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz ▒▒@INFO | ??:??:?? 0

//\ E S H T /\ S T / C

INFO | ??:??:?? 0 Booted, wake cause 0 (boot count 1), reset_reason=reset DEBUG | ??:??:?? 0 Filesystem files (24576/1048576 Bytes): DEBUG | ??:??:?? 0 /prefs/channels.proto (78 Bytes) DEBUG | ??:??:?? 0 /prefs/config.proto (238 Bytes) DEBUG | ??:??:?? 0 /prefs/device.proto (112 Bytes) DEBUG | ??:??:?? 0 /prefs/module.proto (100 Bytes) DEBUG | ??:??:?? 0 /prefs/nodes.proto (311 Bytes) DEBUG | ??:??:?? 0 /static/.gitkeep (0 Bytes) [ 272][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000 DEBUG | ??:??:?? 0 Power::lipoInit lipo sensor is not ready yet DEBUG | ??:??:?? 0 Use analog input 35 for battery level INFO | ??:??:?? 0 ADC config based on reference voltage stored in eFuse INFO | ??:??:?? 0 Scan for i2c devices DEBUG | ??:??:?? 0 Scan for I2C devices on port 1 INFO | ??:??:?? 0 SSD1306 found at address 0x3c INFO | ??:??:?? 0 SSD1306 found at address 0x3c DEBUG | ??:??:?? 0 0x7 subtype probed in 2 tries INFO | ??:??:?? 0 1 I2C devices found DEBUG | ??:??:?? 0 acc_info = 0 INFO | ??:??:?? 0 S:B:3,2.7.15.567b8ea,tlora-v2-1-1_6,meshtastic/firmware INFO | ??:??:?? 0 Build timestamp: 1763424000 DEBUG | ??:??:?? 0 Total heap: 171288 DEBUG | ??:??:?? 0 Free heap: 132384 DEBUG | ??:??:?? 0 Total PSRAM: 0 DEBUG | ??:??:?? 0 Free PSRAM: 0 DEBUG | ??:??:?? 0 NVS: UsedEntries 179, FreeEntries 451, AllEntries 630, NameSpaces 9 DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage DEBUG | ??:??:?? 0 Number of Device Reboots: 14 INFO | ??:??:?? 0 BLE OTA firmware version 0.3.0.c535519 INFO | ??:??:?? 0 No WiFi OTA firmware available INFO | ??:??:?? 0 Init NodeDB [ 431][E][vfs_api.cpp:105] open(): /littlefs/static/static does not exist, no permits for creation [ 449][E][vfs_api.cpp:105] open(): /littlefs/prefs/db.proto does not exist, no permits for creation INFO | ??:??:?? 0 Load /prefs/nodes.proto INFO | ??:??:?? 0 Loaded /prefs/nodes.proto successfully INFO | ??:??:?? 0 Loaded saved nodedatabase version 24, with nodes count: 1 INFO | ??:??:?? 0 Load /prefs/device.proto INFO | ??:??:?? 0 Loaded /prefs/device.proto successfully INFO | ??:??:?? 0 Loaded saved devicestate version 24 INFO | ??:??:?? 0 Load /prefs/config.proto INFO | ??:??:?? 0 Loaded /prefs/config.proto successfully INFO | ??:??:?? 0 Loaded saved config version 24 INFO | ??:??:?? 0 Load /prefs/module.proto INFO | ??:??:?? 0 Loaded /prefs/module.proto successfully INFO | ??:??:?? 0 Loaded saved moduleConfig version 24 INFO | ??:??:?? 0 Load /prefs/channels.proto INFO | ??:??:?? 0 Loaded /prefs/channels.proto successfully INFO | ??:??:?? 0 Loaded saved channelFile version 24 [ 730][E][vfs_api.cpp:105] open(): /littlefs/prefs/uiconfig.proto does not exist, no permits for creation ERROR | ??:??:?? 0 Could not open / read /prefs/uiconfig.proto DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries DEBUG | ??:??:?? 0 Use nodenum 0x88aaa7c DEBUG | ??:??:?? 0 Number of Device Reboots: 14 DEBUG | ??:??:?? 0 Expand short PSK #1 DEBUG | ??:??:?? 0 Expand short PSK #1 INFO | ??:??:?? 0 Wanted region 1, using US DEBUG | ??:??:?? 0 Coerce telemetry to min of 30 minutes on defaults INFO | ??:??:?? 0 Sort took 0 milliseconds DEBUG | ??:??:?? 0 Save to disk 4 DEBUG | ??:??:?? 0 Opening /prefs/device.proto, fullAtomic=1 INFO | ??:??:?? 0 Save /prefs/device.proto WARN | ??:??:?? 1 Packet History - Invalid size -1, using default 200 DEBUG | ??:??:?? 1 SPI.begin(SCK=5, MISO=19, MOSI=27, NSS=18) INFO | ??:??:?? 1 Protobuf Value uiconfig.screen_rgb_color: 0 DEBUG | ??:??:?? 1 Use compiled/slipstreamed tzplaceholder DEBUG | ??:??:?? 1 Saved TZ: EST5EDT,M3.2.0,M11.1.0 DEBUG | ??:??:?? 1 Set Timezone to EST5EDT,M3.2.0,M11.1.0 DEBUG | ??:??:?? 1 Read RTC time as 1763944861 DEBUG | ??:??:?? 1 Start multicast thread DEBUG | ??:??:?? 1 Rescan for I2C keyboard DEBUG | ??:??:?? 1 Scan for I2C devices on port 1 DEBUG | ??:??:?? 1 Scan address 0x1f DEBUG | ??:??:?? 1 Scan address 0x34 DEBUG | ??:??:?? 1 Scan address 0x55 DEBUG | ??:??:?? 1 Scan address 0x5a DEBUG | ??:??:?? 1 Scan address 0x5f [ 1228][E][vfs_api.cpp:105] open(): /littlefs/prefs/cannedConf.proto does not exist, no permits for creation ERROR | ??:??:?? 1 Could not open / read /prefs/cannedConf.proto INFO | ??:??:?? 1 CannedMessageModule is enabled INFO | ??:??:?? 1 External Notification Module Disabled INFO | ??:??:?? 1 Applied screen brightness: 153 INFO | ??:??:?? 1 Turn on screen DEBUG | ??:??:?? 1 waypoint wants a UI Frame DEBUG | ??:??:?? 1 traceroute wants a UI Frame DEBUG | ??:??:?? 1 canned wants a UI Frame DEBUG | ??:??:?? 1 RF95Interface(cs=18, irq=26, rst=23, busy=33) INFO | ??:??:?? 1 Start meshradio init INFO | ??:??:?? 1 Radio freq=906.875, config.lora.frequency_offset=0.000 INFO | ??:??:?? 1 Set radio: region=US, name=LongFast, config=0, ch=19, power=30 INFO | ??:??:?? 1 myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 MHz) INFO | ??:??:?? 1 numChannels: 104 x 250.000kHz INFO | ??:??:?? 1 channel_num: 20 INFO | ??:??:?? 1 frequency: 906.875000 INFO | ??:??:?? 1 Slot time: 28 msec, preamble time: 131 msec INFO | ??:??:?? 1 Final Tx power: 20 dBm DEBUG | ??:??:?? 1 Current limit set to 100.000000 DEBUG | ??:??:?? 1 Current limit set result 0 INFO | ??:??:?? 1 RF95 init result 0 INFO | ??:??:?? 1 Frequency set to 906.875000 INFO | ??:??:?? 1 Bandwidth set to 250.000000 INFO | ??:??:?? 1 Power output set to 20 E (1404) gpio: gpio_isr_handler_remove(482): GPIO isr service is not installed, call gpio_install_isr_service() first INFO | ??:??:?? 1 RF95 init success DEBUG | ??:??:?? 1 Waiting for SSL Cert to be generated INFO | ??:??:?? 1 Checking if we have a saved SSL Certificate INFO | ??:??:?? 1 Existing SSL Certificate found! DEBUG | ??:??:?? 1 Retrieved Private Key: 1193 Bytes DEBUG | ??:??:?? 1 Retrieved Certificate: 792 Bytes INFO | ??:??:?? 1 SSL Cert Ready! [ 1491][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 0 - WIFI_READY [ 1573][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 2 - STA_START DEBUG | ??:??:?? 1 JOINING WIFI soon: ssid=[redacted] DEBUG | ??:??:?? 1 LoRA bitrate = 116.909187 bytes / sec INFO | ??:??:?? 1 PowerFSM init, USB power=1 DEBUG | ??:??:?? 1 State: BOOT DEBUG | ??:??:?? 1 Set CPU to 240MHz because WiFi is in use DEBUG | ??:??:?? 1 Free heap : 36920 bytes DEBUG | ??:??:?? 1 Free PSRAM : 0 bytes DEBUG | ??:??:?? 1 Node status update: 0 online, 1 total INFO | ??:??:?? 1 [WifiConnect] Reconnecting to WiFi access point [redacted] INFO | ??:??:?? 6 [Screen] Done with boot screen DEBUG | ??:??:?? 6 [Screen] Show standard frames DEBUG | ??:??:?? 6 [Screen] Show 9 module frames DEBUG | ??:??:?? 6 [Screen] Added modules. numframes: 9 DEBUG | ??:??:?? 6 [Screen] Finished build frames. numframes: 9 [ 7837][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 4 - STA_CONNECTED DEBUG | ??:??:?? 7 Network-Event 4: INFO | ??:??:?? 7 Connected to access point [ 8904][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 7 - STA_GOT_IP [ 8912][D][WiFiGeneric.cpp:1103] _eventCallback(): STA IP: 192.168.1.34, MASK: 255.255.255.0, GW: 192.168.1.1 DEBUG | ??:??:?? 8 Network-Event 7: INFO | ??:??:?? 8 Obtained IP address: 192.168.1.34 INFO | ??:??:?? 8 Start network services INFO | ??:??:?? 8 mDNS Host: Meshtastic.local INFO | ??:??:?? 8 Start NTP time client DEBUG | ??:??:?? 8 Init Web Server INFO | ??:??:?? 8 Start Secure Web Server INFO | ??:??:?? 8 Start Insecure Web Server INFO | ??:??:?? 8 Web Servers Ready! :-) INFO | ??:??:?? 8 API server listen on TCP port 4403 DEBUG | ??:??:?? 9 [WifiConnect] Update NTP time from meshtastic.pool.ntp.org DEBUG | ??:??:?? 9 [WifiConnect] NTP Request Success - Setting RTCQualityNTP if needed DEBUG | ??:??:?? 9 [WifiConnect] Upgrade time to quality NTP DEBUG | 19:41:11 9 [WifiConnect] Read RTC time as 1763944871 INFO | 19:41:22 21 [PowerFSM] Loss of power in Powered DEBUG | 19:41:22 21 [PowerFSM] State: ON INFO | 19:41:32 31 [NodeInfo] Send our nodeinfo to mesh (wantReplies=0) INFO | 19:41:32 31 [NodeInfo] Send owner !088aaa7c/Vance Node 3/VNC3 DEBUG | 19:41:32 31 [NodeInfo] Initial packet id 142149523 DEBUG | 19:41:32 31 [NodeInfo] Partially randomized packet id 2223021972 DEBUG | 19:41:32 31 [NodeInfo] Ignore update from self DEBUG | 19:41:32 31 [NodeInfo] handleReceived(LOCAL) (id=0x84809f94 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 rxtime=1763944892 priority=10) DEBUG | 19:41:32 31 [NodeInfo] No modules interested in portnum=4, src=LOCAL INFO | 19:41:32 31 [NodeInfo] Packet History - insert: Using new slot @uptime 31.239s TRACE NEW DEBUG | 19:41:32 31 [NodeInfo] Expand short PSK #1 DEBUG | 19:41:32 31 [NodeInfo] Use AES128 key! DEBUG | 19:41:32 31 [NodeInfo] enqueue for send (id=0x84809f94 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x8 encrypted len=99 rxtime=1763944892 hopStart=3 relay=0x7 DEBUG | 19:41:32 31 [NodeInfo] txGood=0,txRelay=0,rxGood=0,rxBad=0 DEBUG | 19:41:32 31 [RadioIf] Started Tx (id=0x84809f94 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x8 encrypted len=99 rxtime=1763944892 hopStart=3 relay=0x7c prio DEBUG | 19:41:32 31 [RadioIf] 0 packets remain in the TX queue DEBUG | 19:41:33 32 [RadioIf] Packet TX: 969ms DEBUG | 19:41:33 32 [RadioIf] Completed sending (id=0x84809f94 fr=0x088aaa7c to=0xffffffff, transport = 0, WantAck=0, HopLim=3 Ch=0x8 encrypted len=99 rxtime=1763944892 hopStart=3 relay=0x

VanceVagell avatar Nov 24 '25 00:11 VanceVagell

I also looked into the "Loss of power in Powered" message, which I saw many more times in the longer log (just in normal operation when I wasn't trying to connect via wifi). I had been testing with a LILYGO device without a battery, connected to my laptop via USB for power and serial debugging.

I thought perhaps the device couldn't muster enough power to drive both the LoRa radio and the Wifi radio and was just restarting as a result.

So to rule that out, I also flashed a second LILYGO device which does have an internal battery, so it wouldn't rely on another device for power in case it was a current draw issue during heavy wifi use.

That made no difference. The second LILYGO device powered by an internal battery, not connected to USB, also restarts after ~1 min when I try to connect to it on wifi as described in this bug.

VanceVagell avatar Nov 24 '25 01:11 VanceVagell

How is your heap usage (visible on one of the OLED screens, set display carousel to ~3s to flip there without a button)?

https://github.com/meshtastic/firmware/issues/8732

I am seeing 92% heap usage with Wi-Fi on, and it is leading to major instability on the same hardware as you, with similar symptoms (clients not connecting or very unstable).

ndoo avatar Dec 01 '25 15:12 ndoo

Same here (also a Lilygo V2 1.6.1), even tried the latest develop branch. Already wiped flash and config, only two nodes known, heap also on 92% and the device is very slow and sluggish.

EDIT: After doing some research, looks like this device does not have PSRAM, so all has to be done in the 510k of RAM... I guess recent meshtastic releases just got too big for these older devices?

MartinEmrich avatar Dec 06 '25 14:12 MartinEmrich

I first tried tweaking the memory allocation and even reverting some older changes, with no sustainable success.

Disabling the web server at compile time frees up enough memory to make it stable, but this cuts off the Web client as well.

I will get another device to replace the Lilygo as my home node soon, then I can do some experiments with disabling different features.

In the end, I propose two firmware flavors, one "home focussed" (Wifi+MQTT+Web, but less "local features" like I2C, Sensors, etc.) and one "mobile focussed" with the whole Wifi/Web stack disabled at compile time....

MartinEmrich avatar Dec 10 '25 22:12 MartinEmrich