doDeepSleep with msecToWake

I have a question about the procedure doDeepSleep in sleep.cpp

If the parameter msecToWake is not equal to portMAX_DELAY, then the ESP32 should restart automatically after this timeout. Where and how is this used in the firmware without Shutdown(Forever)?

I wanted to realize a timer for shutdown after e.g. 5 minutes and wakeup after 8 minutes in firmware 2.3.6. When calling doDeepSleep(517000,false) you can see in the log that the ESP32 wants to shut down for 517 seconds, but it boots again directly with “Booted, wake cause 3 (boot count 2)reset_reason=ext1 RTC_CNTL”. I used a TLORA_2_1_1P6 device for testing.

Could it be that doDeepSleep with msecToWake has a bug here? The RTC also loses the time after the reset.

I enforce sdtS=517 seconds shutdown timer in Power.cpp by calling powerFSM.trigger(EVENT_SHUTDOWN);

—Log—

INFO | 00:51:23 641 [PowerFSM] Turning off screen
DEBUG | 00:51:23 641 [Power] Battery{PTS}: usbPower=1, isCharging=1, batMv=4401, batPct=100, cfgOBS=1891, cfgSDS=86405, cfgLS=86326, uptS=641, rtcHS=3083, sdtS=517
DEBUG | 00:51:23 641 [Power] Enter state: SHUTDOWN
INFO | 00:51:23 641 [Power] Shutting down
INFO | 00:51:23 641 [Power] Entering deep sleep for 517 seconds
INFO | 00:51:23 641 [Power] Disable bluetooth until reboot
INFO | 00:51:23 641 [Power] Saving /prefs/db.proto
INFO | 00:51:24 642 [Power] Saving /prefs/config.proto
INFO | 00:51:24 642 [Power] Saving /prefs/module.proto
INFO | 00:51:25 643 [Power] Saving /prefs/channels.proto
ets Jun 8 2016 00:22:57

rst:0x5 (DEEPSLEEP_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:13192
load:0x40080400,len:3028
entry 0x400805e4
E (71) esp_core_dump_flash: No core dump &â–’ŃĄŃĄâ–’â–’â–’found!
E (71) esp_core_dump_flash: No core dump partition found!
[ 12][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
â–’â–’@INFO | ??:??:?? 0

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

------- 00:51 ------
INFO | ??:??:?? 0 Booted, wake cause 3 (boot count 2), reset_reason=ext1 RTC_CNTL
DEBUG | ??:??:?? 0 Disabling any holds on RTC IO pads
DEBUG | ??:??:?? 0 Filesystem files (495616/1048576 Bytes):
DEBUG | ??:??:?? 0 /prefs/channels.proto (100 Bytes)
DEBUG | ??:??:?? 0 /prefs/config.proto (92 Bytes)
DEBUG | ??:??:?? 0 /prefs/db.proto (630 Bytes)
DEBUG | ??:??:?? 0 /prefs/module.proto (106 Bytes)
DEBUG | ??:??:?? 0 /static/.gitkeep (0 Bytes)
DEBUG | ??:??:?? 0 /static/Logo_Black.svg.gz (602 Bytes)
DEBUG | ??:??:?? 0 /static/Logo_White.svg.gz (610 Bytes)
DEBUG | ??:??:?? 0 /static/apple-touch-icon.png.gz (3164 Bytes)
DEBUG | ??:??:?? 0 /static/favicon.ico.gz (2270 Bytes)
DEBUG | ??:??:?? 0 /static/icon.svg.gz (852 Bytes)
DEBUG | ??:??:?? 0 /static/index-BMhLjTmL.css.gz (16270 Bytes)
DEBUG | ??:??:?? 0 /static/index-Bt2MYVVB.js.gz (203021 Bytes)
DEBUG | ??:??:?? 0 /static/index-CGqDWSD_.js.gz (348 Bytes)
DEBUG | ??:??:?? 0 /static/index.html.gz (548 Bytes)
DEBUG | ??:??:?? 0 /static/maplibre-gl-BXZZhNda.js.gz (210451 Bytes)
DEBUG | ??:??:?? 0 /static/robots.txt.gz (42 Bytes)
DEBUG | ??:??:?? 0 /static/site.webmanifest.gz (197 Bytes)
[ 507][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
DEBUG | ??:??:?? 0 Using analog input 35 for battery level
INFO | ??:??:?? 0 ADCmod: ADC characterization based on reference voltage stored in eFuse
INFO | ??:??:?? 0 Scanning for i2c devices…
[ 535][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 0 I2C device found at address 0x3c
INFO | ??:??:?? 0 ssd1306 display found
INFO | ??:??:?? 0 ssd1306 display found
DEBUG | ??:??:?? 0 0x7 subtype probed in 2 tries
INFO | ??:??:?? 0 1 I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO | ??:??:?? 0 Meshtastic hwvendor=3, swver=2.3.6
DEBUG | ??:??:?? 0 Setting random seed 2789740177
DEBUG | ??:??:?? 0 Total heap: 197780
DEBUG | ??:??:?? 0 Free heap: 163244
DEBUG | ??:??:?? 0 Total PSRAM: 0
DEBUG | ??:??:?? 0 Free PSRAM: 0
DEBUG | ??:??:?? 0 NVS: UsedEntries 70, FreeEntries 560, AllEntries 630, NameSpaces 3
DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 0 Number of Device Reboots: 17
DEBUG | ??:??:?? 0 OTA firmware version 0.2.1.ceca52c
INFO | ??:??:?? 0 Initializing NodeDB
INFO | ??:??:?? 0 Loading /prefs/db.proto
INFO | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 4
INFO | ??:??:?? 0 Loading /prefs/config.proto
INFO | ??:??:?? 0 Loaded /prefs/config.proto successfully
INFO | ??:??:?? 0 Loaded saved config version 22
INFO | ??:??:?? 0 Loading /prefs/module.proto
INFO | ??:??:?? 0 Loaded /prefs/module.proto successfully
INFO | ??:??:?? 0 Loaded saved moduleConfig version 22
INFO | ??:??:?? 0 Loading /prefs/channels.proto
INFO | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO | ??:??:?? 0 Loaded saved channelFile version 22
[ 834][E][vfs_api.cpp:105] open(): /littlefs/oem/oem.proto does not exist, no permits for creation
INFO | ??:??:?? 0 File /oem/oem.proto not found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0x6d00f2f8
DEBUG | ??:??:?? 0 Number of Device Reboots: 17
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO | ??:??:?? 0 Wanted region 3, using EU_868
INFO | ??:??:?? 0 Saving /prefs/db.proto
DEBUG | ??:??:?? 1 Using GPIO12 for button
DEBUG | ??:??:?? 1 SPI.begin(SCK=5, MISO=19, MOSI=27, NSS=18)
DEBUG | ??:??:?? 1 Set Timezone to GMT0
DEBUG | ??:??:?? 1 Read RTC time as 1714438286
DEBUG | ??:??:?? 1 NeighborInfoModule is disabled
INFO | ??:??:?? 1 External Notification Module Disabled
INFO | ??:??:?? 1 Turning on screen
DEBUG | ??:??:?? 1 Module wants a UI Frame
DEBUG | ??:??:?? 1 RF95Interface(cs=18, irq=26, rst=23, busy=33)
INFO | ??:??:?? 1 Starting meshradio init…
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO | ??:??:?? 1 Radio freq=869.525, config.lora.frequency_offset=0.000
INFO | ??:??:?? 1 Set radio: region=EU_868, name=LongFast, config=0, ch=0, power=27
INFO | ??:??:?? 1 Radio myRegion->freqStart → myRegion->freqEnd: 869.400024 → 869.650024 (0.250000 mhz)
INFO | ??:??:?? 1 Radio myRegion->numChannels: 1 x 250.000kHz
INFO | ??:??:?? 1 Radio channel_num: 1
INFO | ??:??:?? 1 Radio frequency: 869.525024
INFO | ??:??:?? 1 Slot time: 42 msec
INFO | ??:??:?? 1 Set radio: final power level=20
INFO | ??:??:?? 1 RF95 init result -16
INFO | ??:??:?? 1 Frequency set to 869.525024
INFO | ??:??:?? 1 Bandwidth set to 250.000000
INFO | ??:??:?? 1 Power output set to 20
WARN | ??:??:?? 1 Failed to find RF95 radio
INFO | ??:??:?? 1 Not using WIFI
ERROR | ??:??:?? 1 NOTE! Recording critical error 3 at src/main.cpp:921
INFO | ??:??:?? 1 PowerFSM iniâ–’â–’M â–’power=1
DEBUG | ??:??:?? 1 Enter state: BOOT
[ 1222][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
DEBUG | ??:??:?? 1 [Power] Battery{PTS}: usbPower=0, isCharging=0, batMv=3100, batPct=0, cfgOBS=1891, cfgSDS=86405, cfgLS=86326, uptS=1, rtcHS=0, sdtS=0


For your understanding: I would like to implement very low-power routers with ESP32, which always set up a mesh for 5 minutes on the hour. This reduces the power consumption to less than 100mAh per day. These routers are used for forwarding sensors, for example, which also only transmit on the hour.

My proof of concept uses the time from NTP, GPS or other nodes.

—Power.cpp mod—

// --- snippet 

#include "gps/RTC.h"
uint32_t pts_shutdowntime_sec;

// --- 

void Power::shutdown()
{
    LOG_INFO("Shutting down\n");

#if defined(ARCH_NRF52) || defined(ARCH_ESP32)
#ifdef PIN_LED1
    ledOff(PIN_LED1);
#endif
#ifdef PIN_LED2
    ledOff(PIN_LED2);
#endif
#ifdef PIN_LED3
    ledOff(PIN_LED3);
#endif
//>>> power timer switch
    // doDeepSleep(DELAY_FOREVER, false);
    if (pts_shutdowntime_sec > 0) {
      doDeepSleep(pts_shutdowntime_sec*1000, false);
    } else {
      doDeepSleep(DELAY_FOREVER, false);
    }
//<<<
#endif
}

// ---

void Power::readPowerStatus()
{
    if (batteryLevel) {

// ---

        // Notify any status instances that are observing us
        const PowerStatus powerStatus2 = PowerStatus(
            hasBattery ? OptTrue : OptFalse, batteryLevel->isVbusIn() || NRF_USB == OptTrue ? OptTrue : OptFalse,
            batteryLevel->isCharging() || NRF_USB == OptTrue ? OptTrue : OptFalse, batteryVoltageMv, batteryChargePercent);
//>>> power timer switch
        // LOG_DEBUG("Battery: usbPower=%d, isCharging=%d, batMv=%d, batPct=%d\n", powerStatus2.getHasUSB(),
        //          powerStatus2.getIsCharging(), powerStatus2.getBatteryVoltageMv(), powerStatus2.getBatteryChargePercent());
        //
        // --- magic values to setup power timer switch ---
        // config.power.on_battery_shutdown_after_secs = 1791    # timer switch enabled    (cfg % 10 == 1 enabled >= 90% on)
        // config.power.sds_secs                       = 86405   # 5min per hour           (cfg % 100 == 5)
        // config.power.ls_secs                        = 86326   # 15min=5+2x5 every 6hour (cfg % 100 - % 10)

        // config
        uint8_t  pts_cfg_mode = (config.power.on_battery_shutdown_after_secs % 10);  // power timer switch mode
        bool     pts_cfg_enabled = (pts_cfg_mode >= 1);                              // power timer switch enabled
        uint8_t  pts_cfg_alwayson_pct = (config.power.on_battery_shutdown_after_secs % 100) - pts_cfg_mode;  // percentage
        uint32_t pts_cfg_short_uptimer_sec = (config.power.sds_secs % 100) * 60;     // uptime short and long
        uint8_t  pts_cfg_long_interval = (config.power.ls_secs % 10);                // interval hours for long uptime
        uint8_t  pts_cfg_long_multipier = ((config.power.ls_secs % 100)-pts_cfg_long_interval)/10;           // multiplier
        uint32_t pts_cfg_long_uptimer_sec = pts_cfg_short_uptimer_sec + pts_cfg_short_uptimer_sec * pts_cfg_long_multipier;

        // time
        uint32_t pts_dev_uptime_sec = millis()/1000;                          // time since lastest restart
        bool     pts_rtc_exists = (getRTCQuality() >= 2);                     // real time (2:other node, 3:ntp, 4:gps)
        uint32_t pts_rtc_sec = getValidTime(RTCQuality::RTCQualityDevice);    // seconds since 1970..2036
        uint32_t pts_rtc_sec_day = (pts_rtc_sec % SEC_PER_DAY);               // seconds since midnight
        uint32_t pts_rtc_sec_hour = (pts_rtc_sec_day % SEC_PER_HOUR);         // seconds since hour
        uint32_t pts_rtc_hour = (pts_rtc_sec_day / SEC_PER_HOUR);             // current hour

        // timer switch
        pts_shutdowntime_sec = 0;                                             // shutdown if needed
        if (pts_cfg_enabled) {                                                // power timer switch enabled
          if (pts_rtc_exists) {                                               // real time clock exists
            if ((pts_rtc_hour % pts_cfg_long_interval) == 0) {                // long intervals
              if (pts_rtc_sec_hour > pts_cfg_long_uptimer_sec ) {             // timeout after long-uptime
                pts_shutdowntime_sec = SEC_PER_HOUR - pts_rtc_sec_hour;       // restart next hour
              }
            } else {                                                          // long intervals
              if (pts_rtc_sec_hour > pts_cfg_short_uptimer_sec ) {            // timeout after short-uptime   
                pts_shutdowntime_sec = SEC_PER_HOUR - pts_rtc_sec_hour;       // restart next hour
              }
            }
          } else {
            if (pts_dev_uptime_sec > pts_cfg_short_uptimer_sec ) {            // timeout after short-uptime   
              pts_shutdowntime_sec = SEC_PER_HOUR - pts_dev_uptime_sec;       // restart next hour
            }
          }
          if (powerStatus2.getBatteryChargePercent() > pts_cfg_alwayson_pct){ // fully charged 
            if (powerStatus2.getHasUSB() == false) {                          // not usb powered   
              pts_shutdowntime_sec = 0;                                       // don't shutdown
            }
          }
        }

        // DEBUG | ??:??:?? 161 [Power] Battery{PTS}: usbPower=1, isCharging=1, batMv=4650, batPct=100, cfgOBS=1891, cfgSDS=86405, cfgLS=86326, uptS=161, rtcHS=0, telS=0, sdtS=0
        // DEBUG | 00:09:06 241 [Power] Battery{PTS}: usbPower=1, isCharging=1, batMv=4606, batPct=100, cfgOBS=1891, cfgSDS=86405, cfgLS=86326, uptS=241, rtcHS=546, telS=0, sdtS=0
        LOG_DEBUG("Battery{PTS}: usbPower=%d, isCharging=%d, batMv=%d, batPct=%d, cfgOBS=%d, cfgSDS=%d, cfgLS=%d, uptS=%d, rtcHS=%d, sdtS=%d\n", powerStatus2.getHasUSB(),
                  powerStatus2.getIsCharging(), powerStatus2.getBatteryVoltageMv(), powerStatus2.getBatteryChargePercent(),
                  config.power.on_battery_shutdown_after_secs, config.power.sds_secs, config.power.ls_secs,
                  pts_dev_uptime_sec, pts_rtc_sec_hour, pts_shutdowntime_sec) ;

        if (pts_shutdowntime_sec > 0) {                                       // timeout
          powerFSM.trigger(EVENT_SHUTDOWN);                                   // shutdown
        }
//<<<
        newStatus.notifyObservers(&powerStatus2);

// ---

}

Meshtastic Firmware 2.3.6.7a3570a Beta

Important

This release has known issues with deep-sleep on ESP32 devices that are resolved in 2.3.7.

1 Like

Thanks for the tip.

My TLORA_2_1_1P6 boots directly after the esp_deep_sleep_start() without pause or sleep. To me it looks like esp_sleep_enable_ext1_wakeup is triggered immediately. firmware/src/platform/esp32/main-esp32.cpp at 7a3570aecf119825dba67784ecedb0338e1285bb · meshtastic/firmware · GitHub

I hope the fix from 2.3.7 solves my problem (ESP32) Fix bluetooth after light-sleep; de-init for deep-sleep by todd-herbert · Pull Request #3655 · meshtastic/firmware · GitHub

Ah, pull request #3655 lowers power-consumption during deep sleep. I’m not so sure if 2.3.7 could be expected to help here. Did you get a chance to test it?

Does the device remain in deep sleep if doDeepSleep(DELAY_FOREVER, false) is called?

Edit: possibly resolved with pull request #3685? (included in 2.3.7)

1 Like

I’d definitely be interested to hear if this is working correctly for you in 2.3.7

Looking at where TLORA_2_1_1P6 has the user button connected, I’m suspicious that there might be an unhandled bug…

1 Like

Thank you very much for your support.

In my opinion, the bug still exists and has been present since version 2.3.5. The shutdown for the TLORA_2_1_1P6 device no longer works since then, i.e. the shutdown via app or SDS at low voltage.

I have tried the behavior with the TLoRa_2_1_1P6 and different versions of the firmware:

  • 2.3.4 beta - shutdown forever works
  • 2.3.5 beta - shutdown with immediate resume (bug)
  • 2.3.6 beta - shutdown with immediate resume (bug)
  • 2.3.7 beta - shutdown with immediate resume (bug)

Up to version 2.3.4, the shutdown (forever) via the Android app works normally, i.e. the device goes into deep sleep without immediate resume. In the following versions, the resume takes place immediately and the display shows “Critical fault#3”.

Version 2.3.4

DEBUG | ??:??:?? 96 PACKET FROM PHONE (id=0xb465509b fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 96 Enqueued local (id=0xb465509b fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 96 [Router] Add packet record (id=0xb465509b fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 96 [Router] handleReceived(REMOTE) (id=0xb465509b fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 96 [Router] Module 'Admin' wantsPacket=1
INFO  | ??:??:?? 96 [Router] Received Admin from=0x0, id=0xb465509b, portnum=6, payloadlen=3
INFO  | ??:??:?? 96 [Router] Shutdown in 5 seconds
DEBUG | ??:??:?? 96 [Router] Module 'Admin' considered
DEBUG | ??:??:?? 96 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 96 [Router] Received routing from=0x0, id=0xb465509b, portnum=6, payloadlen=3
DEBUG | ??:??:?? 96 [Router] Routing sniffing (id=0xb465509b fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
ERROR | ??:??:?? 96 [Router] Alloc an err=0,to=0x6d00f2f8,idFrom=0xb465509b,id=0x28e721b3
DEBUG | ??:??:?? 96 [Router] Enqueued local (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] Module 'routing' considered
DEBUG | ??:??:?? 96 [Router] Rx someone rebroadcasting for us (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] didn't find pending packet
DEBUG | ??:??:?? 96 [Router] Add packet record (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] handleReceived(REMOTE) (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 96 [Router] showing standard frames
DEBUG | ??:??:?? 96 [Router] Showing 0 module frames
DEBUG | ??:??:?? 96 [Router] Total frame count: 103
DEBUG | ??:??:?? 96 [Router] Added modules.  numframes: 0
DEBUG | ??:??:?? 96 [Router] Finished building frames. numframes: 3
DEBUG | ??:??:?? 96 [Router] Module 'canned' considered
DEBUG | ??:??:?? 96 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 96 [Router] Received routing from=0x6d00f2f8, id=0x28e721b3, portnum=5, payloadlen=2
DEBUG | ??:??:?? 96 [Router] Routing sniffing (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] Received an ack for 0xb465509b, stopping retransmissions
DEBUG | ??:??:?? 96 [Router] Delivering rx packet (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] Update DB node 0x6d00f2f8, rx_time=0
DEBUG | ??:??:?? 96 [Router] Forwarding to phone (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 96 [Router] Module 'routing' considered
INFO  | ??:??:?? 97 Telling client we have new packets 7
INFO  | ??:??:?? 97 BLE notify fromNum
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
INFO  | ??:??:?? 97 [Screen] From Radio onread
INFO  | ??:??:?? 97 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
DEBUG | ??:??:?? 97 [Screen] encoding toPhone packet to phone variant=11, 12 bytes
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
INFO  | ??:??:?? 97 [Screen] From Radio onread
INFO  | ??:??:?? 97 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
DEBUG | ??:??:?? 97 [Screen] phone downloaded packet (id=0x28e721b3 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=b465509b priority=120)
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
DEBUG | ??:??:?? 97 [Screen] encoding toPhone packet to phone variant=2, 34 bytes
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
DEBUG | ??:??:?? 97 [Screen] showing shutdown screen
INFO  | ??:??:?? 97 From Radio onread
... 500x ...
DEBUG | ??:??:?? 101 [Screen] showing shutdown screen
DEBUG | ??:??:?? 101 [Power] Battery: usbPower=1, isCharging=1, batMv=4581, batPct=100
DEBUG | ??:??:?? 101 [Screen] showing shutdown screen
... 100x ...
DEBUG | ??:??:?? 101 [Screen] showing shutdown screen
INFO  | ??:??:?? 101 Shutting down from admin command
INFO  | ??:??:?? 101 Shutting down
INFO  | ??:??:?? 101 Entering deep sleep forever
INFO  | ??:??:?? 101 Disable bluetooth
INFO  | ??:??:?? 101 Turning off screen
INFO  | ??:??:?? 101 Saving /prefs/db.proto
INFO  | ??:??:?? 102 Saving /prefs/config.proto
INFO  | ??:??:?? 102 Saving /prefs/module.proto
INFO  | ??:??:?? 103 Saving /prefs/channels.proto

... screen off / deep sleep ...

In this version there seem to be some changes for the sleep and the button handling. I am not yet familiar enough with the codebase to understand exactly which of the changes lead to the bug.

Version 2.3.5

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_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:13192
load:0x40080400,len:3028
entry 0x400805e4
E (818) esp_core_dump_flash: No core dumâ–’â–’ŃĄŃĄâ–’â–’â–’found!
E (818) esp_core_dump_flash: No core dump partition found!
[    12][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 (491520/1048576 Bytes):
DEBUG | ??:??:?? 0  /prefs/channels.proto (57 Bytes)
DEBUG | ??:??:?? 0  /prefs/config.proto (90 Bytes)
DEBUG | ??:??:?? 0  /prefs/db.proto (404 Bytes)
DEBUG | ??:??:?? 0  /prefs/module.proto (106 Bytes)
DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (602 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (610 Bytes)
DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (3164 Bytes)
DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2270 Bytes)
DEBUG | ??:??:?? 0  /static/icon.svg.gz (852 Bytes)
DEBUG | ??:??:?? 0  /static/index-BMhLjTmL.css.gz (16270 Bytes)
DEBUG | ??:??:?? 0  /static/index-Bt2MYVVB.js.gz (203021 Bytes)
DEBUG | ??:??:?? 0  /static/index-CGqDWSD_.js.gz (348 Bytes)
DEBUG | ??:??:?? 0  /static/index.html.gz (548 Bytes)
DEBUG | ??:??:?? 0  /static/maplibre-gl-BXZZhNda.js.gz (210451 Bytes)
DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)
DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (197 Bytes)
[   504][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
DEBUG | ??:??:?? 0 Using analog input 35 for battery level
INFO  | ??:??:?? 0 ADCmod: ADC characterization based on reference voltage stored in eFuse
INFO  | ??:??:?? 0 Scanning for i2c devices...
[   531][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 0 I2C device found at address 0x3c
INFO  | ??:??:?? 0 ssd1306 display found
INFO  | ??:??:?? 0 ssd1306 display found
DEBUG | ??:??:?? 0 0x7 subtype probed in 2 tries
INFO  | ??:??:?? 0 1 I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO  | ??:??:?? 0 Meshtastic hwvendor=3, swver=2.3.5.2f9b68e
DEBUG | ??:??:?? 0 Setting random seed 1901180574
DEBUG | ??:??:?? 0 Total heap: 197844
DEBUG | ??:??:?? 0 Free heap: 163316
DEBUG | ??:??:?? 0 Total PSRAM: 0
DEBUG | ??:??:?? 0 Free PSRAM: 0
DEBUG | ??:??:?? 0 NVS: UsedEntries 90, FreeEntries 540, AllEntries 630, NameSpaces 3
DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 0 Number of Device Reboots: 12
DEBUG | ??:??:?? 0 OTA firmware version 0.2.1.ceca52c
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 2
INFO  | ??:??:?? 0 Loading /prefs/config.proto
INFO  | ??:??:?? 0 Loaded /prefs/config.proto successfully
INFO  | ??:??:?? 0 Loaded saved config version 22
INFO  | ??:??:?? 0 Loading /prefs/module.proto
INFO  | ??:??:?? 0 Loaded /prefs/module.proto successfully
INFO  | ??:??:?? 0 Loaded saved moduleConfig version 22
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
[   856][E][vfs_api.cpp:105] open(): /littlefs/oem/oem.proto does not exist, no permits for creation
INFO  | ??:??:?? 0 File /oem/oem.proto not found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0x6d00f2f8
DEBUG | ??:??:?? 0 Number of Device Reboots: 12
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 3, using EU_868
INFO  | ??:??:?? 0 Saving /prefs/db.proto
DEBUG | ??:??:?? 1 Using GPIO12 for button
DEBUG | ??:??:?? 1 SPI.begin(SCK=5, MISO=19, MOSI=27, NSS=18)
DEBUG | ??:??:?? 1 Set Timezone to GMT0
DEBUG | ??:??:?? 1 Read RTC time as 1
DEBUG | ??:??:?? 1 NeighborInfoModule is disabled
INFO  | ??:??:?? 1 External Notification Module Disabled
INFO  | ??:??:?? 1 Turning on screen
DEBUG | ??:??:?? 1 Module wants a UI Frame
DEBUG | ??:??:?? 1 RF95Interface(cs=18, irq=26, rst=23, busy=33)
INFO  | ??:??:?? 1 Starting meshradio init...
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 1 Radio freq=869.525, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 1 Set radio: region=EU_868, name=LongFast, config=0, ch=0, power=14
INFO  | ??:??:?? 1 Radio myRegion->freqStart -> myRegion->freqEnd: 869.400024 -> 869.650024 (0.250000 mhz)
INFO  | ??:??:?? 1 Radio myRegion->numChannels: 1 x 250.000kHz
INFO  | ??:??:?? 1 Radio channel_num: 1
INFO  | ??:??:?? 1 Radio frequency: 869.525024
INFO  | ??:??:?? 1 Slot time: 42 msec
INFO  | ??:??:?? 1 Set radio: final power level=14
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 869.525024
INFO  | ??:??:?? 1 Bandwidth set to 250.000000
INFO  | ??:??:?? 1 Power output set to 14
INFO  | ??:??:?? 1 RF95 Radio init succeeded, using RF95 radio
INFO  | ??:??:?? 1 Not using WIFI
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
DEBUG | ??:??:?? 1â–’â–’XKâ–’bitrate = 118.500000 bytes / sec
INFO  | ??:??:?? 1 PowerFSM init, USB power=1
DEBUG | ??:??:?? 1 Enter state: BOOT
[  1233][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
DEBUG | ??:??:?? 1 [Power] Battery: usbPower=0, isCharging=0, batMv=3100, batPct=0
DEBUG | ??:??:?? 1 [Screen] Screen: Started...
INFO  | ??:??:?? 1 [RangeTestModule] Range Test Module - Disabled
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Initialise the NimBLE bluetooth module
DEBUG | ??:??:?? 5 [PowerFSM] Enter state: ON
DEBUG | ??:??:?? 5 [Screen] Screen: Unpowered...
INFO  | ??:??:?? 6 [Screen] Done with boot screen...
DEBUG | ??:??:?? 6 [Screen] showing standard frames
DEBUG | ??:??:?? 6 [Screen] Showing 0 module frames
DEBUG | ??:??:?? 6 [Screen] Total frame count: 103
DEBUG | ??:??:?? 6 [Screen] Added modules.  numframes: 0
DEBUG | ??:??:?? 6 [Screen] Finished building frames. numframes: 3
DEBUG | ??:??:?? 21 [Power] Battery: usbPower=0, isCharging=0, batMv=3917, batPct=72
INFO  | ??:??:?? 31 [NodeInfoModule] Sending our nodeinfo to mesh (wantReplies=1)
INFO  | ??:??:?? 31 [NodeInfoModule] sending owner !6d00f2f8/Meshtastic f2f8/f2f8
DEBUG | ??:??:?? 31 [NodeInfoModule] Initial packet id 1808841371, numPacketId 4294967295
DEBUG | ??:??:?? 31 [NodeInfoModule] Update DB node 0x6d00f2f8, rx_time=0
DEBUG | ??:??:?? 31 [NodeInfoModule] handleReceived(LOCAL) (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
DEBUG | ??:??:?? 31 [NodeInfoModule] No modules interested in portnum=4, src=LOCAL
DEBUG | ??:??:?? 31 [NodeInfoModule] localSend to channel 0
DEBUG | ??:??:?? 31 [NodeInfoModule] Add packet record (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
DEBUG | ??:??:?? 31 [NodeInfoModule] Expanding short PSK #1
DEBUG | ??:??:?? 31 [NodeInfoModule] Using AES128 key!
DEBUG | ??:??:?? 31 [NodeInfoModule] ESP32 crypt fr=6d00f2f8, num=6bd0ba9d, numBytes=50!
DEBUG | ??:??:?? 31 [NodeInfoModule] enqueuing for send (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 31 [NodeInfoModule] txGood=0,rxGood=0,rxBad=0
ERROR | ??:??:?? 31 [RadioIf] Radiolib error -15 when attempting RF95 isChannelActive!
DEBUG | ??:??:?? 31 [RadioIf] Starting low level send (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 31 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=66, time 722 ms
DEBUG | ??:??:?? 31 [RadioIf] AirTime - Packet transmitted : 722ms
DEBUG | ??:??:?? 31 [RadioIf] Completed sending (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 33 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=84, time 862 ms
DEBUG | ??:??:?? 33 [RadioIf] Lora RX (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x8 encrypted rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [RadioIf] AirTime - Packet received : 862ms
DEBUG | ??:??:?? 33 [Router] Add packet record (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x8 encrypted rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [Router] Using channel 0 (hash 0x8)
DEBUG | ??:??:?? 33 [Router] Expanding short PSK #1
DEBUG | ??:??:?? 33 [Router] Using AES128 key!
DEBUG | ??:??:?? 33 [Router] ESP32 crypt fr=e0d392b0, num=2c85885d, numBytes=68!
DEBUG | ??:??:?? 33 [Router] decoded message (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x0 Portnum=4 requestId=6bd0ba9d rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [Router] handleReceived(REMOTE) (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x0 Portnum=4 requestId=6bd0ba9d rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [Router] Module 'nodeinfo' wantsPacket=1
INFO  | ??:??:?? 33 [Router] Received nodeinfo from=0xe0d392b0, id=0x2c85885d, portnum=4, payloadlen=59
DEBUG | ??:??:?? 33 [Router] old user !e0d392b0/bit.ly/mesh_dRH5#Robert@Home/dRH5, channel=0
DEBUG | ??:??:?? 33 [Router] updating changed=0 user !e0d392b0/bit.ly/mesh_dRH5#Robert@Home/dRH5, channel=0
DEBUG | ??:??:?? 33 [Router] Module 'nodeinfo' considered
DEBUG | ??:??:?? 33 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 33 [Router] Received routing from=0xe0d392b0, id=0x2c85885d, portnum=4, payloadlen=59
DEBUG | ??:??:?? 33 [Router] Routing sniffing (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x0 Portnum=4 requestId=6bd0ba9d rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [Router] Received an ack for 0x6bd0ba9d, stopping retransmissions
DEBUG | ??:??:?? 33 [Router] Delivering rx packet (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x0 Portnum=4 requestId=6bd0ba9d rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [Router] Update DB node 0xe0d392b0, rx_time=0
DEBUG | ??:??:?? 33 [Router] Forwarding to phone (id=0x2c85885d fr=0xb0 to=0xf8, WantAck=0, HopLim=5 Ch=0x0 Portnum=4 requestId=6bd0ba9d rxSNR=7.75 rxRSSI=-109)
DEBUG | ??:??:?? 33 [Router] Module 'routing' considered
DEBUG | ??:??:?? 34 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=66, time 722 ms
DEBUG | ??:??:?? 34 [RadioIf] Lora RX (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=7.75 rxRSSI=-108)
DEBUG | ??:??:?? 34 [RadioIf] AirTime - Packet received : 722ms
DEBUG | ??:??:?? 34 [Router] Rx someone rebroadcasting for us (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=7.75 rxRSSI=-108)
DEBUG | ??:??:?? 34 [Router] didn't find pending packet
DEBUG | ??:??:?? 34 [Router] Found existing packet record for fr=0x6d00f2f8,to=0xffffffff,id=0x6bd0ba9d
DEBUG | ??:??:?? 34 [Router] Found existing packet record for fr=0x6d00f2f8,to=0xffffffff,id=0x6bd0ba9d
DEBUG | ??:??:?? 34 [Router] Add packet record (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=7.75 rxRSSI=-108)
DEBUG | ??:??:?? 34 [Router] Ignoring incoming msg, because we've already seen it (id=0x6bd0ba9d fr=0xf8 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=7.75 rxRSSI=-108)
DEBUG | ??:??:?? 34 [Router] cancelSending id=0x6bd0ba9d, removed=0
DEBUG | ??:??:?? 34 [Router] Incoming message was filtered 0x6d00f2f8
DEBUG | ??:??:?? 41 [Power] Battery: usbPower=1, isCharging=1, batMv=4304, batPct=100
DEBUG | ??:??:?? 41 [Screen] Screen: Powered...
INFO  | ??:??:?? 46 [DeviceTelemetryModule] (Sending): air_util_tx=0.020056, channel_utilization=3.843333, battery_level=101, voltage=4.304000, uptime=46
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] updateTelemetry LOCAL
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Node status update: 2 online, 2 total
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] showing standard frames
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Showing 0 module frames
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Total frame count: 103
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Added modules.  numframes: 0
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Finished building frames. numframes: 3
INFO  | ??:??:?? 46 [DeviceTelemetryModule] Sending packet to mesh
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Update DB node 0x6d00f2f8, rx_time=0
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] handleReceived(LOCAL) (id=0x6bd0ba9e fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=10)
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] No modules interested in portnum=67, src=LOCAL
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] localSend to channel 0
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Add packet record (id=0x6bd0ba9e fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=10)
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Expanding short PSK #1
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Using AES128 key!
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] ESP32 crypt fr=6d00f2f8, num=6bd0ba9e, numBytes=30!
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] enqueuing for send (id=0x6bd0ba9e fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] txGood=1,rxGood=2,rxBad=0
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Using channel 0 (hash 0x8)
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Expanding short PSK #1
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Using AES128 key!
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] ESP32 crypt fr=6d00f2f8, num=6bd0ba9e, numBytes=30!
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] decoded message (id=0x6bd0ba9e fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 hopStart=3 priority=10)
ERROR | ??:??:?? 46 [RadioIf] Radiolib error -15 when attempting RF95 isChannelActive!
DEBUG | ??:??:?? 46 [RadioIf] Starting low level send (id=0x6bd0ba9e fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 46 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=46, time 575 ms
DEBUG | ??:??:?? 46 [RadioIf] AirTime - Packet transmitted : 575ms
DEBUG | ??:??:?? 46 [RadioIf] Completed sending (id=0x6bd0ba9e fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 48 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=46, time 575 ms
...
DEBUG | ??:??:?? 121 [Power] Battery: usbPower=1, isCharging=1, batMv=4635, batPct=100
DEBUG | ??:??:?? 141 [Power] Battery: usbPower=1, isCharging=1, batMv=4430, batPct=100
INFO  | ??:??:?? 148 To Radio onwrite
DEBUG | ??:??:?? 148 PACKET FROM PHONE (id=0xda58e4d9 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 148 Enqueued local (id=0xda58e4d9 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 148 [Router] Add packet record (id=0xda58e4d9 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 148 [Router] handleReceived(REMOTE) (id=0xda58e4d9 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 148 [Router] Module 'Admin' wantsPacket=1
INFO  | ??:??:?? 148 [Router] Received Admin from=0x0, id=0xda58e4d9, portnum=6, payloadlen=3
INFO  | ??:??:?? 148 [Router] Shutdown in 5 seconds
DEBUG | ??:??:?? 148 [Router] Module 'Admin' considered
DEBUG | ??:??:?? 148 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 148 [Router] Received routing from=0x0, id=0xda58e4d9, portnum=6, payloadlen=3
DEBUG | ??:??:?? 148 [Router] Routing sniffing (id=0xda58e4d9 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
ERROR | ??:??:?? 148 [Router] Alloc an err=0,to=0x6d00f2f8,idFrom=0xda58e4d9,id=0x6bd0baa0
DEBUG | ??:??:?? 148 [Router] Enqueued local (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] Module 'routing' considered
DEBUG | ??:??:?? 148 [Router] Rx someone rebroadcasting for us (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] didn't find pending packet
DEBUG | ??:??:?? 148 [Router] Add packet record (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] handleReceived(REMOTE) (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 148 [Router] showing standard frames
DEBUG | ??:??:?? 148 [Router] Showing 0 module frames
DEBUG | ??:??:?? 148 [Router] Total frame count: 103
DEBUG | ??:??:?? 148 [Router] Added modules.  numframes: 0
DEBUG | ??:??:?? 148 [Router] Finished building frames. numframes: 3
DEBUG | ??:??:?? 148 [Router] Module 'canned' considered
DEBUG | ??:??:?? 148 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 148 [Router] Received routing from=0x6d00f2f8, id=0x6bd0baa0, portnum=5, payloadlen=2
DEBUG | ??:??:?? 148 [Router] Routing sniffing (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] Received an ack for 0xda58e4d9, stopping retransmissions
DEBUG | ??:??:?? 148 [Router] Delivering rx packet (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] Update DB node 0x6d00f2f8, rx_time=0
DEBUG | ??:??:?? 148 [Router] Forwarding to phone (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 148 [Router] Module 'routing' considered
INFO  | ??:??:?? 148 Telling client we have new packets 8
INFO  | ??:??:?? 148 BLE notify fromNum
DEBUG | ??:??:?? 148 [Screen] showing shutdown screen
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
INFO  | ??:??:?? 149 [Screen] From Radio onread
INFO  | ??:??:?? 149 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
DEBUG | ??:??:?? 149 [Screen] encoding toPhone packet to phone variant=11, 12 bytes
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
INFO  | ??:??:?? 149 [Screen] From Radio onread
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
INFO  | ??:??:?? 149 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
DEBUG | ??:??:?? 149 [Screen] phone downloaded packet (id=0x6bd0baa0 fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d9 priority=120)
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
DEBUG | ??:??:?? 149 [Screen] encoding toPhone packet to phone variant=2, 34 bytes
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
INFO  | ??:??:?? 149 [Screen] From Radio onread
DEBUG | ??:??:?? 149 [Screen] showing shutdown screen
... 300x ...
DEBUG | ??:??:?? 153 [Screen] showing shutdown screen
INFO  | ??:??:?? 153 Shutting down from admin command
INFO  | ??:??:?? 153 Shutting down
INFO  | ??:??:?? 153 Entering deep sleep forever
INFO  | ??:??:?? 153 Disable bluetooth
INFO  | ??:??:?? 153 Turning off screen
INFO  | ??:??:?? 153 Saving /prefs/db.proto
INFO  | ??:??:?? 154 Saving /prefs/config.proto
INFO  | ??:??:?? 154 Saving /prefs/module.proto
INFO  | ??:??:?? 155 Saving /prefs/channels.proto
ets Jun  8 2016 00:22:57

rst:0x5 (DEEPSLEEP_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:13192
load:0x40080400,len:3028
entry 0x400805e4
E (71) esp_core_dump_flash: No core dump&â–’ŃĄŃĄâ–’â–’â–’found!
E (71) esp_core_dump_flash: No core dump partition found!
[    12][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 3 (boot count 2), reset_reason=ext1 RTC_CNTL
DEBUG | ??:??:?? 0 Disabling any holds on RTC IO pads
DEBUG | ??:??:?? 0 Filesystem files (491520/1048576 Bytes):
DEBUG | ??:??:?? 0  /prefs/channels.proto (57 Bytes)
DEBUG | ??:??:?? 0  /prefs/config.proto (90 Bytes)
DEBUG | ??:??:?? 0  /prefs/db.proto (404 Bytes)
DEBUG | ??:??:?? 0  /prefs/module.proto (106 Bytes)
DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (602 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (610 Bytes)
DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (3164 Bytes)
DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2270 Bytes)
DEBUG | ??:??:?? 0  /static/icon.svg.gz (852 Bytes)
DEBUG | ??:??:?? 0  /static/index-BMhLjTmL.css.gz (16270 Bytes)
DEBUG | ??:??:?? 0  /static/index-Bt2MYVVB.js.gz (203021 Bytes)
DEBUG | ??:??:?? 0  /static/index-CGqDWSD_.js.gz (348 Bytes)
DEBUG | ??:??:?? 0  /static/index.html.gz (548 Bytes)
DEBUG | ??:??:?? 0  /static/maplibre-gl-BXZZhNda.js.gz (210451 Bytes)
DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)
DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (197 Bytes)
[   549][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
DEBUG | ??:??:?? 0 Using analog input 35 for battery level
INFO  | ??:??:?? 0 ADCmod: ADC characterization based on reference voltage stored in eFuse
INFO  | ??:??:?? 0 Scanning for i2c devices...
[   576][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 0 I2C device found at address 0x3c
INFO  | ??:??:?? 0 ssd1306 display found
INFO  | ??:??:?? 0 ssd1306 display found
DEBUG | ??:??:?? 0 0x7 subtype probed in 2 tries
INFO  | ??:??:?? 0 1 I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO  | ??:??:?? 0 Meshtastic hwvendor=3, swver=2.3.5.2f9b68e
DEBUG | ??:??:?? 0 Setting random seed 2745645803
DEBUG | ??:??:?? 0 Total heap: 197844
DEBUG | ??:??:?? 0 Free heap: 163316
DEBUG | ??:??:?? 0 Total PSRAM: 0
DEBUG | ??:??:?? 0 Free PSRAM: 0
DEBUG | ??:??:?? 0 NVS: UsedEntries 90, FreeEntries 540, AllEntries 630, NameSpaces 3
DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 0 Number of Device Reboots: 13
DEBUG | ??:??:?? 0 OTA firmware version 0.2.1.ceca52c
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 2
INFO  | ??:??:?? 0 Loading /prefs/config.proto
INFO  | ??:??:?? 0 Loaded /prefs/config.proto successfully
INFO  | ??:??:?? 0 Loaded saved config version 22
INFO  | ??:??:?? 0 Loading /prefs/module.proto
INFO  | ??:??:?? 0 Loaded /prefs/module.proto successfully
INFO  | ??:??:?? 0 Loaded saved moduleConfig version 22
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
[   965][E][vfs_api.cpp:105] open(): /littlefs/oem/oem.proto does not exist, no permits for creation
INFO  | ??:??:?? 0 File /oem/oem.proto not found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0x6d00f2f8
DEBUG | ??:??:?? 0 Number of Device Reboots: 13
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 3, using EU_868
INFO  | ??:??:?? 1 Saving /prefs/db.proto

Version 2.3.7.30fbcab

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_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:13192
load:0x40080400,len:3028
entry 0x400805e4
E (820) esp_core_dump_flash: No core dumâ–’â–’â–’â–’ŃĄŃĄâ–’â–’â–’found!
E (820) esp_core_dump_flash: No core dump partition found!
[    12][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 (491520/1048576 Bytes):
DEBUG | ??:??:?? 0  /prefs/channels.proto (57 Bytes)
DEBUG | ??:??:?? 0  /prefs/config.proto (90 Bytes)
DEBUG | ??:??:?? 0  /prefs/db.proto (409 Bytes)
DEBUG | ??:??:?? 0  /prefs/module.proto (106 Bytes)
DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (602 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (610 Bytes)
DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (3164 Bytes)
DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2270 Bytes)
DEBUG | ??:??:?? 0  /static/icon.svg.gz (852 Bytes)
DEBUG | ??:??:?? 0  /static/index-BMhLjTmL.css.gz (16270 Bytes)
DEBUG | ??:??:?? 0  /static/index-Bt2MYVVB.js.gz (203021 Bytes)
DEBUG | ??:??:?? 0  /static/index-CGqDWSD_.js.gz (348 Bytes)
DEBUG | ??:??:?? 0  /static/index.html.gz (548 Bytes)
DEBUG | ??:??:?? 0  /static/maplibre-gl-BXZZhNda.js.gz (210451 Bytes)
DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)
DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (197 Bytes)
[   467][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
DEBUG | ??:??:?? 0 Using analog input 35 for battery level
INFO  | ??:??:?? 0 ADCmod: ADC characterization based on reference voltage stored in eFuse
INFO  | ??:??:?? 0 Scanning for i2c devices...
[   495][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 0 I2C device found at address 0x3c
INFO  | ??:??:?? 0 ssd1306 display found
INFO  | ??:??:?? 0 ssd1306 display found
DEBUG | ??:??:?? 0 0x7 subtype probed in 2 tries
INFO  | ??:??:?? 0 1 I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO  | ??:??:?? 0 Meshtastic hwvendor=3, swver=2.3.7.30fbcab
DEBUG | ??:??:?? 0 Setting random seed 120907177
DEBUG | ??:??:?? 0 Total heap: 197804
DEBUG | ??:??:?? 0 Free heap: 163276
DEBUG | ??:??:?? 0 Total PSRAM: 0
DEBUG | ??:??:?? 0 Free PSRAM: 0
DEBUG | ??:??:?? 0 NVS: UsedEntries 90, FreeEntries 540, AllEntries 630, NameSpaces 3
DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 0 Number of Device Reboots: 9
DEBUG | ??:??:?? 0 OTA firmware version 0.2.1.ceca52c
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 2
INFO  | ??:??:?? 0 Loading /prefs/config.proto
INFO  | ??:??:?? 0 Loaded /prefs/config.proto successfully
INFO  | ??:??:?? 0 Loaded saved config version 22
INFO  | ??:??:?? 0 Loading /prefs/module.proto
INFO  | ??:??:?? 0 Loaded /prefs/module.proto successfully
INFO  | ??:??:?? 0 Loaded saved moduleConfig version 22
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
[   738][E][vfs_api.cpp:105] open(): /littlefs/oem/oem.proto does not exist, no permits for creation
INFO  | ??:??:?? 0 File /oem/oem.proto not found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0x6d00f2f8
DEBUG | ??:??:?? 0 Number of Device Reboots: 9
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 3, using EU_868
INFO  | ??:??:?? 0 Saving /prefs/db.proto
DEBUG | ??:??:?? 0 Using GPIO12 for button
DEBUG | ??:??:?? 0 SPI.begin(SCK=5, MISO=19, MOSI=27, NSS=18)
DEBUG | ??:??:?? 0 Set Timezone to GMT0
DEBUG | ??:??:?? 0 Read RTC time as 0
DEBUG | ??:??:?? 0 NeighborInfoModule is disabled
INFO  | ??:??:?? 0 External Notification Module Disabled
INFO  | ??:??:?? 0 Turning on screen
DEBUG | ??:??:?? 0 Module wants a UI Frame
DEBUG | ??:??:?? 0 RF95Interface(cs=18, irq=26, rst=23, busy=33)
INFO  | ??:??:?? 0 Starting meshradio init...
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 0 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 0 Radio freq=869.525, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 0 Set radio: region=EU_868, name=LongFast, config=0, ch=0, power=14
INFO  | ??:??:?? 0 Radio myRegion->freqStart -> myRegion->freqEnd: 869.400024 -> 869.650024 (0.250000 mhz)
INFO  | ??:??:?? 1 Radio myRegion->numChannels: 1 x 250.000kHz
INFO  | ??:??:?? 1 Radio channel_num: 1
INFO  | ??:??:?? 1 Radio frequency: 869.525024
INFO  | ??:??:?? 1 Slot time: 42 msec
INFO  | ??:??:?? 1 Set radio: final power level=14
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 869.525024
INFO  | ??:??:?? 1 Bandwidth set to 250.000000
INFO  | ??:??:?? 1 Power output set to 14
INFO  | ??:??:?? 1 RF95 Radio init succeeded, using RF95 radio
INFO  | ??:??:?? 1 Not using WIFI
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
DEBUG | ??:??:?? 1 Lo
fâ–’ bitrate = 118.500000 bytes / sec
INFO  | ??:??:?? 1 PowerFSM init, USB power=1
DEBUG | ??:??:?? 1 Enter state: BOOT
[  1082][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
DEBUG | ??:??:?? 1 [Power] Battery: usbPower=0, isCharging=0, batMv=3100, batPct=0
DEBUG | ??:??:?? 1 [Screen] Screen: Started...
INFO  | ??:??:?? 1 [RangeTestModule] Range Test Module - Disabled
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Initialise the NimBLE bluetooth module
DEBUG | ??:??:?? 4 [PowerFSM] Enter state: ON
INFO  | ??:??:?? 5 [Screen] Done with boot screen...
DEBUG | ??:??:?? 5 [Screen] showing standard frames
DEBUG | ??:??:?? 5 [Screen] Showing 0 module frames
DEBUG | ??:??:?? 5 [Screen] Total frame count: 103
DEBUG | ??:??:?? 5 [Screen] Added modules.  numframes: 0
DEBUG | ??:??:?? 5 [Screen] Finished building frames. numframes: 3
DEBUG | ??:??:?? 21 [Power] Battery: usbPower=0, isCharging=0, batMv=3682, batPct=45
INFO  | ??:??:?? 30 [NodeInfoModule] Sending our nodeinfo to mesh (wantReplies=1)
INFO  | ??:??:?? 30 [NodeInfoModule] sending owner !6d00f2f8/Meshtastic f2f8/f2f8
DEBUG | ??:??:?? 30 [NodeInfoModule] Initial packet id 1324809094, numPacketId 4294967295
DEBUG | ??:??:?? 30 [NodeInfoModule] Update DB node 0x6d00f2f8, rx_time=0
DEBUG | ??:??:?? 30 [NodeInfoModule] handleReceived(LOCAL) (id=0x4ef6fb88 fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
DEBUG | ??:??:?? 30 [NodeInfoModule] No modules interested in portnum=4, src=LOCAL
DEBUG | ??:??:?? 30 [NodeInfoModule] localSend to channel 0
DEBUG | ??:??:?? 30 [NodeInfoModule] Add packet record (id=0x4ef6fb88 fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
DEBUG | ??:??:?? 30 [NodeInfoModule] Expanding short PSK #1
DEBUG | ??:??:?? 30 [NodeInfoModule] Using AES128 key!
DEBUG | ??:??:?? 30 [NodeInfoModule] ESP32 crypt fr=6d00f2f8, num=4ef6fb88, numBytes=50!
DEBUG | ??:??:?? 30 [NodeInfoModule] enqueuing for send (id=0x4ef6fb88 fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 30 [NodeInfoModule] txGood=0,rxGood=0,rxBad=0
DEBUG | ??:??:?? 31 [RadioIf] Starting low level send (id=0x4ef6fb88 fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 31 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=66, time 722 ms
DEBUG | ??:??:?? 31 [RadioIf] AirTime - Packet transmitted : 722ms
DEBUG | ??:??:?? 31 [RadioIf] Completed sending (id=0x4ef6fb88 fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted hopStart=3 priority=10)
DEBUG | ??:??:?? 33 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=84, time 862 ms
...
DEBUG | ??:??:?? 103 [Router] handleReceived(REMOTE) (id=0xda58e4d8 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 103 [Router] Module 'Admin' wantsPacket=1
INFO  | ??:??:?? 103 [Router] Received Admin from=0x0, id=0xda58e4d8, portnum=6, payloadlen=3
INFO  | ??:??:?? 103 [Router] Shutdown in 5 seconds
DEBUG | ??:??:?? 103 [Router] Module 'Admin' considered
DEBUG | ??:??:?? 103 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 103 [Router] Received routing from=0x0, id=0xda58e4d8, portnum=6, payloadlen=3
DEBUG | ??:??:?? 103 [Router] Routing sniffing (id=0xda58e4d8 fr=0x00 to=0xf8, WantAck=1, HopLim=3 Ch=0x0 Portnum=6 priority=70)
DEBUG | ??:??:?? 103 [Router] Enqueued local (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] Module 'routing' considered
DEBUG | ??:??:?? 103 [Router] Rx someone rebroadcasting for us (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] didn't find pending packet
DEBUG | ??:??:?? 103 [Router] Add packet record (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] handleReceived(REMOTE) (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 103 [Router] showing standard frames
DEBUG | ??:??:?? 103 [Router] Showing 0 module frames
DEBUG | ??:??:?? 103 [Router] Total frame count: 103
DEBUG | ??:??:?? 103 [Router] Added modules.  numframes: 0
DEBUG | ??:??:?? 103 [Router] Finished building frames. numframes: 3
DEBUG | ??:??:?? 103 [Router] Module 'canned' considered
DEBUG | ??:??:?? 103 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 103 [Router] Received routing from=0x6d00f2f8, id=0x4ef6fb8a, portnum=5, payloadlen=2
DEBUG | ??:??:?? 103 [Router] Routing sniffing (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] Received an ack for 0xda58e4d8, stopping retransmissions
DEBUG | ??:??:?? 103 [Router] Delivering rx packet (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] Update DB node 0x6d00f2f8, rx_time=0
DEBUG | ??:??:?? 103 [Router] Forwarding to phone (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Router] Module 'routing' considered
INFO  | ??:??:?? 103 Telling client we have new packets 7
INFO  | ??:??:?? 103 BLE notify fromNum
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
INFO  | ??:??:?? 103 [Screen] From Radio onread
INFO  | ??:??:?? 103 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
DEBUG | ??:??:?? 103 [Screen] encoding toPhone packet to phone variant=11, 12 bytes
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
INFO  | ??:??:?? 103 [Screen] From Radio onread
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
INFO  | ??:??:?? 103 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 103 [Screen] phone downloaded packet (id=0x4ef6fb8a fr=0xf8 to=0xf8, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=da58e4d8 priority=120)
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
DEBUG | ??:??:?? 103 [Screen] encoding toPhone packet to phone variant=2, 34 bytes
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
INFO  | ??:??:?? 103 [Screen] From Radio onread
DEBUG | ??:??:?? 103 [Screen] showing shutdown screen
... 200x ...
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
INFO  | ??:??:?? 106 [DeviceTelemetryModule] (Sending): air_util_tx=0.036028, channel_utilization=0.000000, battery_level=101, voltage=4.390000, uptime=106
DEBUG | ??:??:?? 106 [DeviceTelemetryModule] updateTelemetry LOCAL
DEBUG | ??:??:?? 106 [DeviceTelemetryModule] Node status update: 2 online, 2 total
INFO  | ??:??:?? 106 [DeviceTelemetryModule] Sending packet to phone
INFO  | ??:??:?? 106 Telling client we have new packets 8
INFO  | ??:??:?? 106 BLE notify fromNum
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
INFO  | ??:??:?? 106 [Screen] From Radio onread
INFO  | ??:??:?? 106 [Screen] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
DEBUG | ??:??:?? 106 [Screen] phone downloaded packet (id=0x4ef6fb8b fr=0xf8 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=10)
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
DEBUG | ??:??:?? 106 [Screen] encoding toPhone packet to phone variant=2, 48 bytes
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
INFO  | ??:??:?? 106 [Screen] From Radio onread
DEBUG | ??:??:?? 106 [Screen] showing shutdown screen
... 300x ...
DEBUG | ??:??:?? 108 [Screen] showing shutdown screen
INFO  | ??:??:?? 108 Shutting down from admin command
INFO  | ??:??:?? 108 Shutting down
INFO  | ??:??:?? 108 Entering deep sleep forever
INFO  | ??:??:?? 108 Disable bluetooth until reboot
INFO  | ??:??:?? 108 BLE disconnect
E NimBLEAdvertising: Error enabling advertising; rc=30,
INFO  | ??:??:?? 108 Turning off screen
INFO  | ??:??:?? 108 Saving /prefs/db.proto
INFO  | ??:??:?? 108 Saving /prefs/config.proto
INFO  | ??:??:?? 109 Saving /prefs/module.proto
INFO  | ??:??:?? 109 Saving /prefs/channels.proto
ets Jun  8 2016 00:22:57

rst:0x5 (DEEPSLEEP_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:13192
load:0x40080400,len:3028
entry 0x400805e4
E (71) esp_core_dump_flash: No core dumpâ–’â–’ŃĄŃĄâ–’â–’â–’found!
E (71) esp_core_dump_flash: No core dump partition found!
[    12][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 3 (boot count 2), reset_reason=ext1 RTC_CNTL
DEBUG | ??:??:?? 0 Disabling any holds on RTC IO pads
DEBUG | ??:??:?? 0 Filesystem files (491520/1048576 Bytes):
DEBUG | ??:??:?? 0  /prefs/channels.proto (57 Bytes)
DEBUG | ??:??:?? 0  /prefs/config.proto (90 Bytes)
DEBUG | ??:??:?? 0  /prefs/db.proto (404 Bytes)
DEBUG | ??:??:?? 0  /prefs/module.proto (106 Bytes)
DEBUG | ??:??:?? 0  /static/.gitkeep (0 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_Black.svg.gz (602 Bytes)
DEBUG | ??:??:?? 0  /static/Logo_White.svg.gz (610 Bytes)
DEBUG | ??:??:?? 0  /static/apple-touch-icon.png.gz (3164 Bytes)
DEBUG | ??:??:?? 0  /static/favicon.ico.gz (2270 Bytes)
DEBUG | ??:??:?? 0  /static/icon.svg.gz (852 Bytes)
DEBUG | ??:??:?? 0  /static/index-BMhLjTmL.css.gz (16270 Bytes)
DEBUG | ??:??:?? 0  /static/index-Bt2MYVVB.js.gz (203021 Bytes)
DEBUG | ??:??:?? 0  /static/index-CGqDWSD_.js.gz (348 Bytes)
DEBUG | ??:??:?? 0  /static/index.html.gz (548 Bytes)
DEBUG | ??:??:?? 0  /static/maplibre-gl-BXZZhNda.js.gz (210451 Bytes)
DEBUG | ??:??:?? 0  /static/robots.txt.gz (42 Bytes)
DEBUG | ??:??:?? 0  /static/site.webmanifest.gz (197 Bytes)
[   531][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
DEBUG | ??:??:?? 0 Using analog input 35 for battery level
INFO  | ??:??:?? 0 ADCmod: ADC characterization based on reference voltage stored in eFuse
INFO  | ??:??:?? 0 Scanning for i2c devices...
[   559][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
DEBUG | ??:??:?? 0 Scanning for i2c devices on port 1
DEBUG | ??:??:?? 0 I2C device found at address 0x3c
INFO  | ??:??:?? 0 ssd1306 display found
INFO  | ??:??:?? 0 ssd1306 display found
DEBUG | ??:??:?? 0 0x7 subtype probed in 2 tries
INFO  | ??:??:?? 0 1 I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO  | ??:??:?? 0 Meshtastic hwvendor=3, swver=2.3.7.30fbcab
DEBUG | ??:??:?? 0 Setting random seed 570400854
DEBUG | ??:??:?? 0 Total heap: 197804
DEBUG | ??:??:?? 0 Free heap: 163276
DEBUG | ??:??:?? 0 Total PSRAM: 0
DEBUG | ??:??:?? 0 Free PSRAM: 0
DEBUG | ??:??:?? 0 NVS: UsedEntries 90, FreeEntries 540, AllEntries 630, NameSpaces 3
DEBUG | ??:??:?? 0 Setup Preferences in Flash Storage
DEBUG | ??:??:?? 0 Number of Device Reboots: 10
DEBUG | ??:??:?? 0 OTA firmware version 0.2.1.ceca52c
INFO  | ??:??:?? 0 Initializing NodeDB
INFO  | ??:??:?? 0 Loading /prefs/db.proto
INFO  | ??:??:?? 0 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 0 Loaded saved devicestate version 22, with nodecount: 2
INFO  | ??:??:?? 0 Loading /prefs/config.proto
INFO  | ??:??:?? 0 Loaded /prefs/config.proto successfully
INFO  | ??:??:?? 0 Loaded saved config version 22
INFO  | ??:??:?? 0 Loading /prefs/module.proto
INFO  | ??:??:?? 0 Loaded /prefs/module.proto successfully
INFO  | ??:??:?? 0 Loaded saved moduleConfig version 22
INFO  | ??:??:?? 0 Loading /prefs/channels.proto
INFO  | ??:??:?? 0 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 0 Loaded saved channelFile version 22
[   902][E][vfs_api.cpp:105] open(): /littlefs/oem/oem.proto does not exist, no permits for creation
INFO  | ??:??:?? 0 File /oem/oem.proto not found
DEBUG | ??:??:?? 0 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 0 Using nodenum 0x6d00f2f8
DEBUG | ??:??:?? 0 Number of Device Reboots: 10
DEBUG | ??:??:?? 0 Expanding short PSK #1
INFO  | ??:??:?? 0 Wanted region 3, using EU_868
INFO  | ??:??:?? 0 Saving /prefs/db.proto
DEBUG | ??:??:?? 1 Using GPIO12 for button
DEBUG | ??:??:?? 1 SPI.begin(SCK=5, MISO=19, MOSI=27, NSS=18)
DEBUG | ??:??:?? 1 Set Timezone to GMT0
DEBUG | ??:??:?? 1 Read RTC time as 111
DEBUG | ??:??:?? 1 NeighborInfoModule is disabled
INFO  | ??:??:?? 1 External Notification Module Disabled
INFO  | ??:??:?? 1 Turning on screen
DEBUG | ??:??:?? 1 Module wants a UI Frame
DEBUG | ??:??:?? 1 RF95Interface(cs=18, irq=26, rst=23, busy=33)
INFO  | ??:??:?? 1 Starting meshradio init...
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 1 Radio freq=869.525, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 1 Set radio: region=EU_868, name=LongFast, config=0, ch=0, power=14
INFO  | ??:??:?? 1 Radio myRegion->freqStart -> myRegion->freqEnd: 869.400024 -> 869.650024 (0.250000 mhz)
INFO  | ??:??:?? 1 Radio myRegion->numChannels: 1 x 250.000kHz
INFO  | ??:??:?? 1 Radio channel_num: 1
INFO  | ??:??:?? 1 Radio frequency: 869.525024
INFO  | ??:??:?? 1 Slot time: 42 msec
INFO  | ??:??:?? 1 Set radio: final power level=14
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 869.525024
INFO  | ??:??:?? 1 Bandwidth set to 250.000000
INFO  | ??:??:?? 1 Power output set to 14
INFO  | ??:??:?? 1 RF95 Radio init succeeded, using RF95 radio
INFO  | ??:??:?? 1 Not using WIFI
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
DEBUG | ??:??:?? 1 L?â–’XA bitrate = 118.500000 bytes / sec
INFO  | ??:??:?? 1 PowerFSM init, USB power=1
DEBUG | ??:??:?? 1 Enter state: BOOT
[  1289][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
DEBUG | ??:??:?? 1 [Power] Battery: usbPower=0, isCharging=0, batMv=3100, batPct=0
DEBUG | ??:??:?? 1 [Screen] Screen: Started...
INFO  | ??:??:?? 1 [RangeTestModule] Range Test Module - Disabled
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Loss of power in Powered
INFO  | ??:??:?? 4 [PowerFSM] Initialise the NimBLE bluetooth module
DEBUG | ??:??:?? 5 [PowerFSM] Enter state: ON
INFO  | ??:??:?? 6 BLE authentication complete
INFO  | ??:??:?? 6 [Screen] Done with boot screen...
DEBUG | ??:??:?? 6 [Screen] showing standard frames
DEBUG | ??:??:?? 6 [Screen] Showing 0 module frames
DEBUG | ??:??:?? 6 [Screen] Total frame count: 103
DEBUG | ??:??:?? 6 [Screen] Added modules.  numframes: 0
DEBUG | ??:??:?? 6 [Screen] Finished building frames. numframes: 3

Thank you for taking the time to collect those logs and test the different versions!

There have certainly been a lot of changes with the ESP sleep code in the last few months. Unfortunately, it looks like some of the issues didn’t get sorted for the T-Lora…

I don’t personally have this hardware, so I’m only guessing, sorry. Are you set up to build Meshtastic from source (to test out some potential fixes)?

As for the immediate resume: from a quick 4AM glance at the code, it seems like the T-Lora is slightly unusual, in that the user-button relies on the ESP32’s internal pull-up resistors. If you’re open to an experiment, I would be interested to hear if it helps to modify sleep.cpp L267 to use INPUT_PULLUP rather than INPUT.

As for the “Critical fault #3”, this sounds suspiciously similar to an issue addressed by pull request #3685, can I double check that you’re still seeing this same error in 2.3.7 (separate from the immediate reboot bug)? If it is still present, I will have to hunt a bit more for the most likely cause.

1 Like

I will test this soon. The pull-up makes sense because the TLORA doesn’t have a push button.

When testing the shutdown on the HELTEC_V3 with firmware 2.3.4 I got an error with RTCIO “E (304954) RTCIO: rtc_gpio_isolate(171): RTCIO number error”.

In general: after the resume, the RTC seconds since 1970 are output correctly via debug, but the time for the display is not initialized. The device first waits again for a position frame with the time.

Overall, I personally find the source code somewhat complex with the nested precompiler instructions for the different models. Perhaps a specific implementation for each hardware model analogous to the platform would be easier to maintain.

1 Like

I think most of that stuff had stabilized by 2.3.7, it’d be worth trying this version on the Heltec V3 if you’re still seeing that issue.

That’s definitely true, especially with the power stuff, which is trying to support so many different hardware versions. I haven’t been around here nearly long enough to be involved in any major restructuring, still just picking at small bits of the code.

I find the easiest way to work with the maze of precompiler stuff is to set PlatformIO to target one specific enviorment. Then, VSCode does a pretty good job of highlighting which macros are active and which aren’t.

Ah, I see! I wasn’t actually aware of that. I’m not sure why GPIO12 was defined as the device’s button pin. Maybe the variant.h file was modified from another device which did have a button on GPIO12? If it was placed intentionally, I would have expected it to maybe connect to GPIO0?

I’d be a bit afraid to outright remove the definition, who knows how many users have already built hardware with a button connected to GPIO12…

I’ve just noticed today that ESP32 will fail to boot if GPIO12 is held high. I’m not sure whether this pin being held at all is causing the issue.

If the first idea doesn’t help, I would maybe try removing sleep.cpp Line 266 - 269?

1 Like

For anyone following, the discussion has moved to: [Bug]: immediate resume after shutdown · Issue #3875 · meshtastic/firmware · GitHub

1 Like