Heltec / lora-32 USB power sensing fixed

Hi ya’ll,

I think I’ve probably fixed this one (will be in this weeks build).

If you have one of these boards (I don’t currently - will again have one in June) and battery charge level is still not working after I make this new release (friday?), please reply in this thread with a serial log of the first 100ish lines after the device boots in the following two configurations:

  • A battery is connected
  • A battery is not connected
2 Likes

Will do!
While you’re at it, there’s still a similar issue on T-Beams. As an example, I have one charging up via USB and the display reports 50% battery level, while the app only reports 46% (and that’s the right value).

Cheers

A post was split to a new topic: Heltec board running 1.1.32 rebooting

Hi! That’s grate news. Would you be so kind and point me where i can find (in the code) new power settings for heltec devices? Today i will try to put here serial log but first have to desolder gps module.

1 Like

Ooh that would be a great help (especially if you can debug it a bit if needed).

A little class called AnalogBatteryLevel does all of it. Line 68

1 Like

Ok, desoldered gps and here are the logs. As far as I can see device does not recognize presence of battery.
First log - without battery:

??:??:?? 0 Filesystem files:
??:??:?? 0   /static/index.html
??:??:?? 0   /static/meshtastic.js.gz
??:??:?? 0   /static/basic.js
??:??:?? 0   /prefs/db.proto
??:??:?? 0   /prefs/radio.proto
??:??:?? 0   /prefs/channels.proto
??:??:?? 0 I2C device found at address 0x3c
??:??:?? 0 ssd1306 display found
??:??:?? 0 done
??:??:?? 0 Meshtastic hwvendor=5, swver=1.2.30.80e4bc6-d, hwver=unset
??:??:?? 0 Setting random seed 3278794362
??:??:?? 0 Total heap: 255292
??:??:?? 0 Free heap: 221216
??:??:?? 0 Total PSRAM: 0
??:??:?? 0 Free PSRAM: 0
??:??:?? 0 NVS: UsedEntries 91, FreeEntries 539, AllEntries 630
??:??:?? 0 Setup Preferences in Flash Storage
??:??:?? 0 Number of Device Reboots: 1992
??:??:?? 0 Initial packet id 1040607764, numPacketId 4294967295
??:??:?? 0 Setting default channel and radio preferences!
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 0, using Unset
??:??:?? 0 Loading /prefs/db.proto
??:??:?? 0 Loaded saved preferences version 11
??:??:?? 0 Loading /prefs/radio.proto
??:??:?? 0 Loading /prefs/channels.proto
??:??:?? 0 Number of Device Reboots: 1992
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 2, using EU433
??:??:?? 0 region=2, NODENUM=0xd1dc6dc4, dbsize=3
??:??:?? 0 Read RTC time as 0 (cur millis 195) quality=0
??:??:?? 0 WANT GPS=1
??:??:?? 0 Setting GPS power=1
??:??:?? 2 ERROR: No UBLOX GPS found
??:??:?? 2 Hoping that NMEA might work
??:??:?? 2 WANT GPS=1
??:??:?? 2 External Notification Plugin Disabled
??:??:?? 2 Turning on screen
??:??:?? 2 Starting meshradio init...
??:??:?? 2 (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=16, time 2269 ms
??:??:?? 2 Set radio: name=LongSlow, config=3, ch=2, power=0
??:??:?? 2 Radio myRegion->freq: 433.174988
??:??:?? 2 Radio myRegion->spacing: 0.200000
??:??:?? 2 Radio myRegion->numChannels: 8
??:??:?? 2 Radio channel_num: 2
??:??:?? 2 Radio frequency: 433.574982
??:??:?? 2 Short packet time: 2269 msec
??:??:?? 2 Set radio: final power level=17
??:??:?? 2 RF95 init result 0
??:??:?? 2 RF95 Radio init succeeded, using RF95 radio
??:??:?? 2 PowerFSM init, USB power=1
[D][esp32-hal-cpu.c:189] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
??:??:?? 2 [Screen] Screen: Started...
??:??:?? 2 [SerialPlugin] Serial Plugin Disabled
??:??:?? 2 [StoreForwardPlugin] Store & Forward Plugin - Disabled
??:??:?? 2 [RangeTestPlugin] Range Test Plugin - Disabled
Transition powerFSM transition=boot timeout, from=BOOT to=POWER
??:??:?? 5 [PowerFSM] Setting bluetooth enable=1
Pre BT: 209864 heap size
??:??:?? 5 [PowerFSM] Starting bluetooth
??:??:?? 5 [Screen] Done with boot screen...
??:??:?? 5 [Screen] Screen: Powered...
??:??:?? 5 [Screen] showing standard frames
??:??:?? 5 [Screen] Showing 0 plugin frames
??:??:?? 5 [Screen] Total frame count: 35
??:??:?? 5 [Screen] Added plugins.  numframes: 0
??:??:?? 5 [Screen] Finished building frames. numframes: 3
??:??:?? 5 [Screen] Setting fast framerate
??:??:?? 6 [Screen] BLE task running
??:??:?? 6 [Screen] registered service 0x1800 with handle=1
??:??:?? 6 [Screen] registered service 0x1801 with handle=6
??:??:?? 6 [Screen] registered service 6ba1b218-15a8-461f-9fa8-5dcae273eafd with handle=10
??:??:?? 6 [Screen] registered service cb0b9a0b-a84c-4c0d-bdbb-442e3144ee30 with handle=18
[D][esp32-hal-i2c.c:1345] i2cProcQueue():  Gross Timeout Dead start=0x180b, end=0x180b, =0, max=50 error=1
[E][esp32-hal-i2c.c:318] i2cDumpI2c(): i2c=0x3ffbe2c8
[I][esp32-hal-i2c.c:319] i2cDumpI2c(): dev=0x60013000 date=0x16042000
[I][esp32-hal-i2c.c:321] i2cDumpI2c(): lock=0x3ffbc16c
[I][esp32-hal-i2c.c:323] i2cDumpI2c(): num=0
[I][esp32-hal-i2c.c:324] i2cDumpI2c(): mode=1
[I][esp32-hal-i2c.c:325] i2cDumpI2c(): stage=3
[I][esp32-hal-i2c.c:326] i2cDumpI2c(): error=1
[I][esp32-hal-i2c.c:327] i2cDumpI2c(): event=0x3ffbc040 bits=10
[I][esp32-hal-i2c.c:328] i2cDumpI2c(): intr_handle=0x3ffbc070
[I][esp32-hal-i2c.c:329] i2cDumpI2c(): dq=0x3ffd9464
[I][esp32-hal-i2c.c:330] i2cDumpI2c(): queueCount=1
[I][esp32-hal-i2c.c:331] i2cDumpI2c(): queuePos=0
[I][esp32-hal-i2c.c:332] i2cDumpI2c(): errorByteCnt=2
[I][esp32-hal-i2c.c:333] i2cDumpI2c(): errorQueue=0
[I][esp32-hal-i2c.c:334] i2cDumpI2c(): debugFlags=0x00000000
[I][esp32-hal-i2c.c:311] i2cDumpDqData(): Debug Buffer not Enabled
[I][esp32-hal-i2c.c:354] i2cDumpInts(): Debug Buffer not Enabled
??:??:?? 6 [Screen] BLE advertisting type=0, Private=0, Device Address: 
??:??:?? 6 [Screen] Setting idle framerate
??:??:?? 11 [RadioIf] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=42, time 3645 ms
??:??:?? 11 [RadioIf] Lora RX (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0xb1 encrypted rxSNR=14.25)
??:??:?? 11 [RadioIf] AirTime - Packet received : 3645ms
??:??:?? 11 [Router] Adding packet record (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0xb1 encrypted rxSNR=14.25)
??:??:?? 11 [Router] Using channel 0 (hash 0xb1)
??:??:?? 11 [Router] Expanding short PSK #1
??:??:?? 11 [Router] Installing AES128 key!
??:??:?? 11 [Router] decoded message (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 WANTRESP rxSNR=14.25)
??:??:?? 11 [Router] handleReceived (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 WANTRESP rxSNR=14.25)
??:??:?? 11 [Router] Plugin position wantsPacket=1
??:??:?? 11 [Router] Received position from=0xc4f7d9c8, id=0x6d692521, portnum=3, payloadlen=20
00:00:11 11 [Router] Upgrading time to RTC 1620161436 secs (quality 1)
20:50:36 11 [Router] Read RTC time as 1620161436 (cur millis 11590) quality=1
20:50:36 11 [Router] DB update position node=0xc4f7d9c8 time=1620161436, latI=497533672, lonI=186362008
20:50:36 11 [Router] Node status update: 0 online, 3 total
20:50:36 11 [Router] showing standard frames
20:50:36 11 [Router] Showing 0 plugin frames
20:50:36 11 [Router] Total frame count: 35
20:50:36 11 [Router] Added plugins.  numframes: 0
20:50:36 11 [Router] Finished building frames. numframes: 5
20:50:36 11 [Router] Setting fast framerate
20:50:36 11 [Router] Stripping time 0 from position send
20:50:36 11 [Router] Plugin position sent a response
20:50:36 11 [Router] Plugin routing wantsPacket=1
20:50:36 11 [Router] Received routing from=0xc4f7d9c8, id=0x6d692521, portnum=3, payloadlen=20
20:50:36 11 [Router] Routing sniffing (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 WANTRESP rxSNR=14.25)
20:50:36 11 [Router] Rebroadcasting received floodmsg to neighbors (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 WANTRESP rxSNR=14.25)
20:50:36 11 [Router] Expanding short PSK #1
20:50:36 11 [Router] Installing AES128 key!
20:50:36 11 [Router] enqueuing for send (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxSNR=14.25)
20:50:36 11 [Router] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=42, time 3645 ms
20:50:36 11 [Router] txGood=0,rxGood=1,rxBad=0
20:50:36 11 [Router] AirTime - Packet transmitted : 3645ms
20:50:36 11 [Router] FIXME-update-db Sniffing packet
20:50:36 11 [Router] Delivering rx packet (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 WANTRESP rxSNR=14.25)
20:50:36 11 [Router] Forwarding to phone (id=0x6d692521 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 
Portnum=3 WANTRESP rxSNR=14.25)

Second log - with battery:

??:??:?? 0 Filesystem files:
??:??:?? 0   /static/index.html
??:??:?? 0   /static/meshtastic.js.gz
??:??:?? 0   /static/basic.js
??:??:?? 0   /prefs/db.proto
??:??:?? 0   /prefs/radio.proto
??:??:?? 0   /prefs/channels.proto
??:??:?? 0 I2C device found at address 0x3c
??:??:?? 0 ssd1306 display found
??:??:?? 0 done
??:??:?? 0 Meshtastic hwvendor=5, swver=1.2.30.80e4bc6-d, hwver=unset
??:??:?? 0 Setting random seed 2376246251
??:??:?? 0 Total heap: 255292
??:??:?? 0 Free heap: 221216
??:??:?? 0 Total PSRAM: 0
??:??:?? 0 Free PSRAM: 0
??:??:?? 0 NVS: UsedEntries 91, FreeEntries 539, AllEntries 630
??:??:?? 0 Setup Preferences in Flash Storage
??:??:?? 0 Number of Device Reboots: 1994
??:??:?? 0 Initial packet id 475361840, numPacketId 4294967295
??:??:?? 0 Setting default channel and radio preferences!
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 0, using Unset
??:??:?? 0 Loading /prefs/db.proto
??:??:?? 0 Loaded saved preferences version 11
??:??:?? 0 Loading /prefs/radio.proto
??:??:?? 0 Loading /prefs/channels.proto
??:??:?? 0 Number of Device Reboots: 1994
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 2, using EU433
??:??:?? 0 region=2, NODENUM=0xd1dc6dc4, dbsize=3
??:??:?? 0 Read RTC time as 0 (cur millis 195) quality=0
??:??:?? 0 WANT GPS=1
??:??:?? 0 Setting GPS power=1
??:??:?? 2 ERROR: No UBLOX GPS found
??:??:?? 2 Hoping that NMEA might work
??:??:?? 2 WANT GPS=1
??:??:?? 2 External Notification Plugin Disabled
??:??:?? 2 Turning on screen
??:??:?? 2 Starting meshradio init...
??:??:?? 2 (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=16, time 2269 ms
??:??:?? 2 Set radio: name=LongSlow, config=3, ch=2, power=0
??:??:?? 2 Radio myRegion->freq: 433.174988
??:??:?? 2 Radio myRegion->spacing: 0.200000
??:??:?? 2 Radio myRegion->numChannels: 8
??:??:?? 2 Radio channel_num: 2
??:??:?? 2 Radio frequency: 433.574982
??:??:?? 2 Short packet time: 2269 msec
??:??:?? 2 Set radio: final power level=17
??:??:?? 2 RF95 init result 0
??:??:?? 2 RF95 Radio init succeeded, using RF95 radio
??:??:?? 2 PowerFSM init, USB power=1
[D][esp32-hal-cpu.c:189] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
??:??:?? 2 [Screen] Screen: Started...
??:??:?? 2 [SerialPlugin] Serial Plugin Disabled
??:??:?? 2 [StoreForwardPlugin] Store & Forward Plugin - Disabled
??:??:?? 2 [RangeTestPlugin] Range Test Plugin - Disabled
Transition powerFSM transition=boot timeout, from=BOOT to=POWER
??:??:?? 5 [PowerFSM] Setting bluetooth enable=1
Pre BT: 209864 heap size
??:??:?? 5 [PowerFSM] Starting bluetooth
??:??:?? 5 [Screen] Done with boot screen...
??:??:?? 5 [Screen] Screen: Powered...
??:??:?? 5 [Screen] showing standard frames
??:??:?? 5 [Screen] Showing 0 plugin frames
??:??:?? 5 [Screen] Total frame count: 35
??:??:?? 5 [Screen] Added plugins.  numframes: 0
??:??:?? 5 [Screen] Finished building frames. numframes: 3
??:??:?? 5 [Screen] Setting fast framerate
??:??:?? 6 [Screen] BLE task running
??:??:?? 6 [Screen] registered service 0x1800 with handle=1
??:??:?? 6 [Screen] registered service 0x1801 with handle=6
??:??:?? 6 [Screen] registered service 6ba1b218-15a8-461f-9fa8-5dcae273eafd with handle=10
??:??:?? 6 [Screen] registered service cb0b9a0b-a84c-4c0d-bdbb-442e3144ee30 with handle=18
[D][esp32-hal-i2c.c:1345] i2cProcQueue():  Gross Timeout Dead start=0x181d, end=0x181d, =0, max=50 error=1
[E][esp32-hal-i2c.c:318] i2cDumpI2c(): i2c=0x3ffbe2c8
[I][esp32-hal-i2c.c:319] i2cDumpI2c(): dev=0x60013000 date=0x16042000
[I][esp32-hal-i2c.c:321] i2cDumpI2c(): lock=0x3ffbc16c
[I][esp32-hal-i2c.c:323] i2cDumpI2c(): num=0
[I][esp32-hal-i2c.c:324] i2cDumpI2c(): mode=1
[I][esp32-hal-i2c.c:325] i2cDumpI2c(): stage=3
[I][esp32-hal-i2c.c:326] i2cDumpI2c(): error=1
[I][esp32-hal-i2c.c:327] i2cDumpI2c(): event=0x3ffbc040 bits=10
[I][esp32-hal-i2c.c:328] i2cDumpI2c(): intr_handle=0x3ffbc070
[I][esp32-hal-i2c.c:329] i2cDumpI2c(): dq=0x3ffd9464
[I][esp32-hal-i2c.c:330] i2cDumpI2c(): queueCount=1
[I][esp32-hal-i2c.c:331] i2cDumpI2c(): queuePos=0
[I][esp32-hal-i2c.c:332] i2cDumpI2c(): errorByteCnt=2
[I][esp32-hal-i2c.c:333] i2cDumpI2c(): errorQueue=0
[I][esp32-hal-i2c.c:334] i2cDumpI2c(): debugFlags=0x00000000
[I][esp32-hal-i2c.c:311] i2cDumpDqData(): Debug Buffer not Enabled
[I][esp32-hal-i2c.c:354] i2cDumpInts(): Debug Buffer not Enabled
??:??:?? 6 [Screen] BLE advertisting type=0, Private=0, Device Address: 
??:??:?? 6 [Screen] Setting idle framerate
??:??:?? 32 [NodeInfoPlugin] Sending our nodeinfo to mesh (wantReplies=1)
??:??:?? 32 [NodeInfoPlugin] sending owner !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=0
??:??:?? 32 [NodeInfoPlugin] handleReceived (id=0x1c557233 Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Plugin nodeinfo wantsPacket=1
??:??:?? 32 [NodeInfoPlugin] Received nodeinfo from=0xd1dc6dc4, id=0x1c557233, portnum=4, payloadlen=35
??:??:?? 32 [NodeInfoPlugin] old user !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] updating changed=0 user !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] Plugin nodeinfo considered
??:??:?? 32 [NodeInfoPlugin] Plugin routing wantsPacket=1
??:??:?? 32 [NodeInfoPlugin] Received routing from=0xd1dc6dc4, id=0x1c557233, portnum=4, payloadlen=35
??:??:?? 32 [NodeInfoPlugin] Routing sniffing (id=0x1c557233 Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] FIXME-update-db Sniffing packet
??:??:?? 32 [NodeInfoPlugin] Delivering rx packet (id=0x1c557233 Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Forwarding to phone (id=0x1c557233 Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)

Device behaviour: on-board led recognize battery installed/charging (turns color to orange) on the phone no sign of battery presence and on the screen only USB letters (no animation/cabel/battery)
If you need any further informations, just let me know. Take care!

Ok, noticed that in file configuration.h i did not define BATTERY_PIN 37. I will try to do this and recompile software.

1 Like

Ok, recompile software with Battery_Pin37.
Serial log without battery:

??:??:?? 0 Filesystem files:
??:??:?? 0   /static/index.html
??:??:?? 0   /static/meshtastic.js.gz
??:??:?? 0   /static/basic.js
??:??:?? 0   /prefs/db.proto
??:??:?? 0   /prefs/radio.proto
??:??:?? 0   /prefs/channels.proto
??:??:?? 0 I2C device found at address 0x3c
??:??:?? 0 ssd1306 display found
??:??:?? 0 done
??:??:?? 0 Meshtastic hwvendor=5, swver=1.2.30.80e4bc6-d, hwver=unset
??:??:?? 0 Setting random seed 2157066188
??:??:?? 0 Total heap: 255164
??:??:?? 0 Free heap: 220748
??:??:?? 0 Total PSRAM: 0
??:??:?? 0 Free PSRAM: 0
??:??:?? 0 NVS: UsedEntries 245, FreeEntries 385, AllEntries 630
??:??:?? 0 Setup Preferences in Flash Storage
??:??:?? 0 Number of Device Reboots: 2031
??:??:?? 0 Initial packet id 1507182730, numPacketId 4294967295
??:??:?? 0 Setting default channel and radio preferences!
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 0, using Unset
??:??:?? 0 Loading /prefs/db.proto
??:??:?? 0 Loaded saved preferences version 11
??:??:?? 0 Loading /prefs/radio.proto
??:??:?? 0 Loading /prefs/channels.proto
??:??:?? 0 Number of Device Reboots: 2031
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 2, using EU433
??:??:?? 0 region=2, NODENUM=0xd1dc6dc4, dbsize=4
??:??:?? 0 Using analog input for battery level
??:??:?? 0 Read RTC time as 0 (cur millis 220) quality=0
??:??:?? 0 WANT GPS=1
??:??:?? 0 Setting GPS power=1
??:??:?? 2 ERROR: No UBLOX GPS found
??:??:?? 2 Hoping that NMEA might work
??:??:?? 2 WANT GPS=1
??:??:?? 2 External Notification Plugin Disabled
??:??:?? 2 Turning on screen
??:??:?? 2 Starting meshradio init...
??:??:?? 2 (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=16, time 226                                                                                                                                                             
9 ms
??:??:?? 2 Set radio: name=LongSlow, config=3, ch=2, power=0
??:??:?? 2 Radio myRegion->freq: 433.174988
??:??:?? 2 Radio myRegion->spacing: 0.200000
??:??:?? 2 Radio myRegion->numChannels: 8
??:??:?? 2 Radio channel_num: 2
??:??:?? 2 Radio frequency: 433.574982
??:??:?? 2 Short packet time: 2269 msec
??:??:?? 2 Set radio: final power level=17
??:??:?? 2 RF95 init result 0
??:??:?? 2 RF95 Radio init succeeded, using RF95 radio
??:??:?? 2 PowerFSM init, USB power=1
[D][esp32-hal-cpu.c:189] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000                                                                                                                                                             
000 Hz
??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
??:??:?? 2 [Screen] Screen: Started...
??:??:?? 2 [SerialPlugin] Serial Plugin Disabled
??:??:?? 2 [StoreForwardPlugin] Store & Forward Plugin - Disabled
??:??:?? 2 [RangeTestPlugin] Range Test Plugin - Disabled
Transition powerFSM transition=boot timeout, from=BOOT to=POWER
??:??:?? 5 [Power                                                                                                                                                             
FSM] Setting bluetooth enable=1
Pre BT: 209400 heap size
??:??:?? 5 [PowerFSM] Starting bluetooth
??:??:?? 5 [Screen] Done with boot screen...
??:??:?? 5 [Screen] Screen: Powered...
??:??:?? 5 [Screen] showing standard frames
??:??:?? 5 [Screen] Showing 0 plugin frames
??:??:?? 5 [Screen] Total frame count: 35
??:??:?? 5 [Screen] Added plugins.  numframes: 0
??:??:?? 5 [Screen] Finished building frames. numframes: 3
??:??:?? 5 [Screen] Setting fast framerate
??:??:?? 6 [Screen] BLE task running
??:??:?? 6 [Screen] registered service 0x1800 with handle=1
??:??:?? 6 [Screen] registered service 0x1801 with handle=6
??:??:?? 6 [Screen] registered service 6ba1b218-15a8-461f-9fa8-5dcae273eafd with                                                                                                                                                              
handle=10
??:??:?? 6 [Screen] registered service cb0b9a0b-a84c-4c0d-bdbb-442e3144ee30 with                                                                                                                                                              
handle=18
[D][esp32-hal-i2c.c:1345] i2cProcQueue():  Gross Timeout Dead start=0x1826, end=                                                                                                                                                             
0x1826, =0, max=50 error=1
[E][esp32-hal-i2c.c:318] i2cDumpI2c(): i2c=0x3ffbe2e8
[I][esp32-hal-i2c.c:319] i2cDumpI2c(): dev=0x60013000 date=0x16042000
[I][esp32-hal-i2c.c:321] i2cDumpI2c(): lock=0x3ffbc070
[I][esp32-hal-i2c.c:323] i2cDumpI2c(): num=0
[I][esp32-hal-i2c.c:324] i2cDumpI2c(): mode=1
[I][esp32-hal-i2c.c:325] i2cDumpI2c(): stage=3
[I][esp32-hal-i2c.c:326] i2cDumpI2c(): error=1
[I][esp32-hal-i2c.c:327] i2cDumpI2c(): event=0x3ffbadac bits=10
[I][esp32-hal-i2c.c:328] i2cDumpI2c(): intr_handle=0x3ffbc0d0
[I][esp32-hal-i2c.c:329] i2cDumpI2c(): dq=0x3ffd9624
[I][esp32-hal-i2c.c:330] i2cDumpI2c(): queueCount=1
[I][esp32-hal-i2c.c:331] i2cDumpI2c(): queuePos=0
[I][esp32-hal-i2c.c:332] i2cDumpI2c(): errorByteCnt=1
[I][esp32-hal-i2c.c:333] i2cDumpI2c(): errorQueue=0
[I][esp32-hal-i2c.c:334] i2cDumpI2c(): debugFlags=0x00000000
[I][esp32-hal-i2c.c:311] i2cDumpDqData(): Debug Buffer not Enabled
[I][esp32-hal-i2c.c:354] i2cDumpInts(): Debug Buffer not Enabled
??:??:?? 6 [Screen] BLE advertisting type=0, Private=0, Device Address: 8d:f0:08                                                                                                                                                             
:d1:dc:6d
??:??:?? 6 [Screen] Setting idle framerate
??:??:?? 22 [Power] Battery: usbPower=0, isCharging=0, batMv=2661, batPct=0
??:??:?? 22 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
??:??:?? 22 [                                                                                                                                                             
Screen] Screen: Unpowered...
??:??:?? 29 [RadioIf] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=2                                                                                                                                                             
5, time 2760 ms
??:??:?? 29 [RadioIf] Lora RX (id=0x48f6b75c Fr0x21 To0xff, WantAck0, HopLim3 Ch                                                                                                                                                             
0xb1 encrypted rxSNR=12.25)
??:??:?? 29 [RadioIf] AirTime - Packet received : 2760ms
??:??:?? 29 [Router] Adding packet record (id=0x48f6b75c Fr0x21 To0xff, WantAck0                                                                                                                                                             
, HopLim3 Ch0xb1 encrypted rxSNR=12.25)
??:??:?? 29 [Router] Using channel 0 (hash 0xb1)
??:??:?? 29 [Router] Expanding short PSK #1
??:??:?? 29 [Router] Installing AES128 key!
??:??:?? 29 [Router] decoded message (id=0x48f6b75c Fr0x21 To0xff, WantAck0, Hop                                                                                                                                                             
Lim3 Ch0x0 Portnum=3 rxSNR=12.25)
??:??:?? 29 [Router] handleReceived (id=0x48f6b75c Fr0x21 To0xff, WantAck0, HopL                                                                                                                                                             
im3 Ch0x0 Portnum=3 rxSNR=12.25)
??:??:?? 29 [Router] Plugin position wantsPacket=1
??:??:?? 29 [Router] Received position from=0x336acd21, id=0x48f6b75c, portnum=3                                                                                                                                                             
, payloadlen=5
00:00:28 29 [Router] Upgrading time to RTC 1620255433 secs (quality 1)
22:57:13 29 [Router] Read RTC time as 1620255433 (cur millis 29201) quality=1
22:57:13 29 [Router] DB update position node=0x336acd21 time=1620255433, latI=0,                                                                                                                                                              
lonI=0
22:57:13 29 [Router] Node status update: 0 online, 4 total
22:57:13 29 [Router] showing standard frames
22:57:13 29 [Router] Showing 0 plugin frames
22:57:13 29 [Router] Total frame count: 35
22:57:13 29 [Router] Added plugins.  numframes: 0
22:57:13 29 [Router] Finished building frames. numframes: 6
22:57:13 29 [Router] Setting fast framerate
22:57:13 29 [Router] Plugin position considered
22:57:13 29 [Router] Plugin routing wantsPacket=1
22:57:13 29 [Router] Received routing from=0x336acd21, id=0x48f6b75c, portnum=3,                                                                                                                                                              
payloadlen=5
22:57:13 29 [Router] Routing sniffing (id=0x48f6b75c Fr0x21 To0xff, WantAck0, Ho                                                                                                                                                             
pLim3 Ch0x0 Portnum=3 rxSNR=12.25)
22:57:13 29 [Router] Rebroadcasting received floodmsg to neighbors (id=0x48f6b75                                                                                                                                                             
c Fr0x21 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 rxSNR=12.25)
22:57:13 29 [Router] Expanding short PSK #1
22:57:13 29 [Router] Installing AES128 key!
22:57:13 29 [Router] enqueuing for send (id=0x48f6b75c Fr0x21 To0xff, WantAck0,                                                                                                                                                              
HopLim2 Ch0xb1 encrypted rxSNR=12.25)
22:57:13 29 [Router] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=25                                                                                                                                                              
time 2760 ms
22:57:13 29 [Router] txGood=0,rxGood=1,rxBad=0
22:57:13 29 [Router] AirTime - Packet transmitted : 2760ms
22:57:13 29 [Router] FIXME-update-db Sniffing packet
22:57:13 29 [Router] Delivering rx packet (id=0x48f6b75c Fr0x21 To0xff, WantAck0                                                                                                                                                             
, HopLim3 Ch0x0 Portnum=3 rxSNR=12.25)
22:57:13 29 [Router] Forwarding to phone (id=0x48f6b75c Fr0x21 To0xff, WantAck0,                                                                                                                                                              
HopLim3 Ch0x0 Portnum=3 rxSNR=12.25)
22:57:13 29 [Router] Update DB node 0x336acd21, rx_time=0
22:57:13 29 [Router] Plugin routing considered
22:57:13 29 [Screen] Setting idle framerate
22:57:13 29 [RadioIf] Starting low level send (id=0x48f6b75c Fr0x21 To0xff, Want                                                                                                                                                             
Ack0, HopLim2 Ch0xb1 encrypted rxSNR=12.25 priority=64)
22:57:16 32 [RadioIf] Completed sending (id=0x48f6b75c Fr0x21 To0xff, WantAck0,                                                                                                                                                              
HopLim2 Ch0xb1 encrypted rxSNR=12.25 priority=64)
22:57:16 32 [NodeInfoPlugin] Sending our nodeinfo to mesh (wantReplies=1)
22:57:16 32 [NodeInfoPlugin] sending owner !d1dc6dc4/Ewelina/Ewl
22:57:16 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=1620255436
22:57:16 32 [NodeInfoPlugin] handleReceived (id=0x59d5c88d Fr0xc4 To0xff, WantAc                                                                                                                                                             
k0, HopLim3 Ch0x0 Portnum=4 WANTRESP rxtime=1620255436 priority=10)
22:57:16 32 [NodeInfoPlugin] Plugin nodeinfo wantsPacket=1
22:57:16 32 [NodeInfoPlugin] Received nodeinfo from=0xd1dc6dc4, id=0x59d5c88d, p                                                                                                                                                             
ortnum=4, payloadlen=35
22:57:16 32 [NodeInfoPlugin] old user !d1dc6dc4/Ewelina/Ewl
22:57:16 32 [NodeInfoPlugin] updating changed=0 user !d1dc6dc4/Ewelina/Ewl
22:57:16 32 [NodeInfoPlugin] Plugin nodeinfo considered
22:57:16 32 [NodeInfoPlugin] Plugin routing wantsPacket=1
22:57:16 32 [NodeInfoPlugin] Received routing from=0xd1dc6dc4, id=0x59d5c88d, po                                                                                                                                                             
rtnum=4, payloadlen=35
22:57:16 32 [NodeInfoPlugin] Routing sniffing (id=0x59d5c88d Fr0xc4 To0xff, Want                                                                                                                                                             
Ack0, HopLim3 Ch0x0 Portnum=4 WANTRESP rxtime=1620255436 priority=10)
22:57:16 32 [NodeInfoPlugin] FIXME-update-db Sniffing packet
22:57:16 32 [NodeInfoPlugin] Delivering rx packet (id=0x59d5c88d Fr0xc4 To0xff,                                                                                                                                                              
WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP rxtime=1620255436 priority=10)
22:57:16 32 [NodeInfoPlugin] Forwarding to phone (id=0x59d5c88d Fr0xc4 To0xff, W                                                                                                                                                             
antAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP rxtime=1620255436 priority=10)
22:57:16 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=1620255436
22:57:16 32 [NodeInfoPlugin] Plugin routing considered
22:57:16 32 [NodeInfoPlugin] Adding packet record (id=0x59d5c88d Fr0xc4 To0xff,                                                                                                                                                              
WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP rxtime=1620255436 priority=10)
22:57:16 32 [NodeInfoPlugin] Expanding short PSK #1
22:57:16 32 [NodeInfoPlugin] Installing AES128 key!
22:57:16 32 [NodeInfoPlugin] enqueuing for send (id=0x59d5c88d Fr0xc4 To0xff, Wa                                                                                                                                                             
ntAck0, HopLim3 Ch0xb1 encrypted rxtime=1620255436 priority=10)
22:57:16 32 [NodeInfoPlugin] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloa                                                                                                                                                             
dSize=57, time 4431 ms
22:57:16 32 [NodeInfoPlugin] txGood=1,rxGood=1,rxBad=0
22:57:16 32 [NodeInfoPlugin] AirTime - Packet transmitted : 4431ms
22:57:16 32 [Screen] Screen: Joined: Ewelina
22:57:17 33 [RadioIf] Starting low level send (id=0x59d5c88d Fr0xc4 To0xff, Want                                                                                                                                                             
Ack0, HopLim3 Ch0xb1 encrypted rxtime=1620255436 priority=10)
22:57:21 38 [RadioIf] Completed sending (id=0x59d5c88d Fr0xc4 To0xff, WantAck0,                                                                                                                                                              
HopLim3 Ch0xb1 encrypted rxtime=1620255436 priority=10)
22:57:26 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2204, batPct=0
Transition powerFSM transition=LowBat, from=ON to=SDS
22:57:26 42 [Power] Entering deep sleep for 31536000 seconds                                                                                                                           
22:57:26 42 [Power] Setting bluetooth enable=0
22:57:26 42 [Power] advertise complete; reason=29error enabling advertisement; r                                                                                                                                                             
c=30
22:57:26 42 [Power] Done shutting down bluetooth
Shutdown BT: 222816 heap size
22:57:26 42 [Power] GPS prepare sleep!
22:57:26 42 [Power] GPS deep sleep!
22:57:26 42 [Power] WANT GPS=0
22:57:26 42 [Power] Turning off screen
22:57:26 42 [Power] Saving /prefs/db.proto
22:57:26 43 [Power] Saving /prefs/radio.proto
22:57:27 43 [Power] Saving /prefs/channels.proto
22:57:27 43 [Power] Setting GPS power=0

and log with battery:

??:??:?? 0 Filesystem files:
??:??:?? 0   /static/index.html
??:??:?? 0   /static/meshtastic.js.gz
??:??:?? 0   /static/basic.js
??:??:?? 0   /prefs/db.proto
??:??:?? 0   /prefs/radio.proto
??:??:?? 0   /prefs/channels.proto
??:??:?? 0 I2C device found at address 0x3c
??:??:?? 0 ssd1306 display found
??:??:?? 0 done
??:??:?? 0 Meshtastic hwvendor=5, swver=1.2.30.80e4bc6-d, hwver=unset
??:??:?? 0 Setting random seed 3520740023
??:??:?? 0 Total heap: 255164
??:??:?? 0 Free heap: 220748
??:??:?? 0 Total PSRAM: 0
??:??:?? 0 Free PSRAM: 0
??:??:?? 0 NVS: UsedEntries 245, FreeEntries 385, AllEntries 630
??:??:?? 0 Setup Preferences in Flash Storage
??:??:?? 0 Number of Device Reboots: 2032
??:??:?? 0 Initial packet id 494902668, numPacketId 4294967295
??:??:?? 0 Setting default channel and radio preferences!
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 0, using Unset
??:??:?? 0 Loading /prefs/db.proto
??:??:?? 0 Loaded saved preferences version 11
??:??:?? 0 Loading /prefs/radio.proto
??:??:?? 0 Loading /prefs/channels.proto
??:??:?? 0 Number of Device Reboots: 2032
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 2, using EU433
??:??:?? 0 region=2, NODENUM=0xd1dc6dc4, dbsize=4
??:??:?? 0 Using analog input for battery level
??:??:?? 0 Read RTC time as 0 (cur millis 220) quality=0
??:??:?? 0 WANT GPS=1
??:??:?? 0 Setting GPS power=1
??:??:?? 2 ERROR: No UBLOX GPS found
??:??:?? 2 Hoping that NMEA might work
??:??:?? 2 WANT GPS=1
??:??:?? 2 External Notification Plugin Disabled
??:??:?? 2 Turning on screen
??:??:?? 2 Starting meshradio init...
??:??:?? 2 (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=16, time 2269 ms
??:??:?? 2 Set radio: name=LongSlow, config=3, ch=2, power=0
??:??:?? 2 Radio myRegion->freq: 433.174988
??:??:?? 2 Radio myRegion->spacing: 0.200000
??:??:?? 2 Radio myRegion->numChannels: 8
??:??:?? 2 Radio channel_num: 2
??:??:?? 2 Radio frequency: 433.574982
??:??:?? 2 Short packet time: 2269 msec
??:??:?? 2 Set radio: final power level=17
??:??:?? 2 RF95 init result 0
??:??:?? 2 RF95 Radio init succeeded, using RF95 radio
??:??:?? 2 PowerFSM init, USB power=1
[D][esp32-hal-cpu.c:189] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
??:??:?? 2 [Screen] Screen: Started...
??:??:?? 2 [SerialPlugin] Serial Plugin Disabled
??:??:?? 2 [StoreForwardPlugin] Store & Forward Plugin - Disabled
??:??:?? 2 [RangeTestPlugin] Range Test Plugin - Disabled
Transition powerFSM transition=boot timeout, from=BOOT to=POWER
?:??:?? 5 [PowerFSM] Setting bluetooth enable=1
Pre BT: 209400 heap size
??:??:?? 5 [PowerFSM] Starting bluetooth
??:??:?? 5 [Screen] Done with boot screen...
??:??:?? 5 [Screen] Screen: Powered...
??:??:?? 5 [Screen] showing standard frames
??:??:?? 5 [Screen] Showing 0 plugin frames
??:??:?? 5 [Screen] Total frame count: 35
??:??:?? 5 [Screen] Added plugins.  numframes: 0
??:??:?? 5 [Screen] Finished building frames. numframes: 3
??:??:?? 5 [Screen] Setting fast framerate
??:??:?? 6 [Screen] BLE task running
??:??:?? 6 [Screen] registered service 0x1800 with handle=1
??:??:?? 6 [Screen] registered service 0x1801 with handle=6
??:??:?? 6 [Screen] registered service 6ba1b218-15a8-461f-9fa8-5dcae273eafd with handle=10
??:??:?? 6 [Screen] registered service cb0b9a0b-a84c-4c0d-bdbb-442e3144ee30 with handle=18
[D][esp32-hal-i2c.c:1345] i2cProcQueue():  Gross Timeout Dead start=0x1835, end=0x1835, =0, max=50 error=1
[E][esp32-hal-i2c.c:318] i2cDumpI2c(): i2c=0x3ffbe2e8
[I][esp32-hal-i2c.c:319] i2cDumpI2c(): dev=0x60013000 date=0x16042000
[I][esp32-hal-i2c.c:321] i2cDumpI2c(): lock=0x3ffbc070
[I][esp32-hal-i2c.c:323] i2cDumpI2c(): num=0
[I][esp32-hal-i2c.c:324] i2cDumpI2c(): mode=1
[I][esp32-hal-i2c.c:325] i2cDumpI2c(): stage=3
[I][esp32-hal-i2c.c:326] i2cDumpI2c(): error=1
[I][esp32-hal-i2c.c:327] i2cDumpI2c(): event=0x3ffbadac bits=10
[I][esp32-hal-i2c.c:328] i2cDumpI2c(): intr_handle=0x3ffbc0d0
[I][esp32-hal-i2c.c:329] i2cDumpI2c(): dq=0x3ffd9624
[I][esp32-hal-i2c.c:330] i2cDumpI2c(): queueCount=1
[I][esp32-hal-i2c.c:331] i2cDumpI2c(): queuePos=0
[I][esp32-hal-i2c.c:332] i2cDumpI2c(): errorByteCnt=1
[I][esp32-hal-i2c.c:333] i2cDumpI2c(): errorQueue=0
[I][esp32-hal-i2c.c:334] i2cDumpI2c(): debugFlags=0x00000000
[I][esp32-hal-i2c.c:311] i2cDumpDqData(): Debug Buffer not Enabled
[I][esp32-hal-i2c.c:354] i2cDumpInts(): Debug Buffer not Enabled
??:??:?? 6 [Screen] BLE advertisting type=0, Private=0, Device Address: 8d:f0:08:d1:dc:6d
??:??:?? 6 [Screen] Setting idle framerate
??:??:?? 22 [Power] Battery: usbPower=0, isCharging=0, batMv=2307, batPct=0
??:??:?? 22 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
??:??:?? 22 [Screen] Screen: Unpowered...
??:??:?? 32 [NodeInfoPlugin] Sending our nodeinfo to mesh (wantReplies=1)
??:??:?? 32 [NodeInfoPlugin] sending owner !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=0
??:??:?? 32 [NodeInfoPlugin] handleReceived (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Plugin nodeinfo wantsPacket=1
??:??:?? 32 [NodeInfoPlugin] Received nodeinfo from=0xd1dc6dc4, id=0x1d7f9d8f, portnum=4, payloadlen=35
??:??:?? 32 [NodeInfoPlugin] old user !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] updating changed=0 user !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] Plugin nodeinfo considered
??:??:?? 32 [NodeInfoPlugin] Plugin routing wantsPacket=1
??:??:?? 32 [NodeInfoPlugin] Received routing from=0xd1dc6dc4, id=0x1d7f9d8f, portnum=4, payloadlen=35
??:??:?? 32 [NodeInfoPlugin] Routing sniffing (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] FIXME-update-db Sniffing packet
??:??:?? 32 [NodeInfoPlugin] Delivering rx packet (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Forwarding to phone (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=0
??:??:?? 32 [NodeInfoPlugin] Plugin routing considered
??:??:?? 32 [NodeInfoPlugin] Adding packet record (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Expanding short PSK #1
??:??:?? 32 [NodeInfoPlugin] Installing AES128 key!
??:??:?? 32 [NodeInfoPlugin] enqueuing for send (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0xb1 encrypted priority=10)
??:??:?? 32 [NodeInfoPlugin] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=57, time 4431 ms
??:??:?? 32 [NodeInfoPlugin] txGood=0,rxGood=0,rxBad=0
??:??:?? 32 [NodeInfoPlugin] AirTime - Packet transmitted : 4431ms
??:??:?? 32 [Screen] Screen: Joined: Ewelina
??:??:?? 34 [RadioIf] Starting low level send (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0xb1 encrypted priority=10)
??:??:?? 39 [RadioIf] Completed sending (id=0x1d7f9d8f Fr0xc4 To0xff, WantAck0, HopLim3 Ch0xb1 encrypted priority=10)
??:??:?? 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2275, batPct=0
Transition powerFSM transition=LowBat, from=ON to=SDS
??:??:?? 42 [Power] Entering deep sleep for 31536000 seconds
??:??:?? 42 [Power] Setting bluetooth enable=0
??:??:?? 42 [Power] advertise complete; reason=29error enabling advertisement; rc=30
??:??:?? 42 [Power] Done shutting down bluetooth
Shutdown BT: 223128 heap size
??:??:?? 42 [Power] GPS prepare sleep!
??:??:?? 42 [Power] GPS deep sleep!
??:??:?? 42 [Power] WANT GPS=0
??:??:?? 42 [Power] Turning off screen
??:??:?? 42 [Power] Saving /prefs/db.proto
??:??:?? 43 [Power] Saving /prefs/radio.proto
??:??:?? 43 [Power] Saving /prefs/channels.proto
??:??:?? 43 [Power] Setting GPS power=0

Battery is charged up to 4,17V, device is going to deep sleep mode.

hmm - that was super useful! What board do you have, a heltec or something else?

With no battery:

22:57:26 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2204, batPct=0

With battery installed:

??:??:?? 22 [Power] Battery: usbPower=0, isCharging=0, batMv=2307, batPct=0

I’m surprised that the voltage stayed at 2307 mV when the USB was trying to charge it. On other boards we would see a higher voltage (about 4V).

Can you double check that with no battery installed the voltage is about 2200mV and with it installed it is 2300ish?

Hi! I use couple of boards (also testing custom builds with Wemos LoLin32 Lite and SX1278 LoRa Ra-02) but in this case for testing i use new version of Heltec board - i can confirm that it is new version because voltage sensing is on pin 37 (not 13). About voltage made one more test:
battery voltage - 4.13V
log with battery attached:
08:51:58 122 [Power] Battery: usbPower=0, isCharging=0, batMv=2249, batPct=0

serial log without battery:
??:??:?? 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2584, batPct=0

Have to admit that readings are strange. I’m not engineer but did you take a look into that code that i posted with working code for battery charging for heltec? (Heltec Board is deep discharging batteries? - #12 by liniany)

1 Like

Did one more test - desoldered copletly GPS (also power lines) and tried few times to read log with and without batteries. Results:
for a few times with battery attached i have this reading:
23:18:38 102 [Power] Battery: usbPower=0, isCharging=0, batMv=2281, batPct=0
without battery:
??:??:?? 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2449, batPct=0
or
??:??:?? 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2507, batPct=0
but also

??:??:?? 9 [RadioIf] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=33, time 3153 ms
??:??:?? 9 [RadioIf] Lora RX (id=0x4abb12e9 Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted 
rxSNR=12.25)
??:??:?? 9 [RadioIf] AirTime - Packet received : 3153ms
??:??:?? 9 [Router] Found existing packet record for fr=0xc4a70a4c,to=0xffffffff,id=0x4abb12e9
??:??:?? 9 [Router] Ignoring incoming msg, because we've already seen it (id=0x4abb12e9 Fr0x4c 
To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxSNR=12.25)
??:??:?? 9 [Router] Incoming message was filtered 0xc4a70a4c
??:??:?? 9 [RadioIf] Starting low level send (id=0x4abb12e9 Fr0x4c To0xff, WantAck0, HopLim1 
Ch0xb1 encrypted rxSNR=9.75 priority=64)
??:??:?? 12 [RadioIf] Completed sending (id=0x4abb12e9 Fr0x4c To0xff, WantAck0, HopLim1 
Ch0xb1 encrypted rxSNR=9.75 priority=64)
??:??:?? 22 [Power] Battery: usbPower=0, isCharging=0, batMv=2500, batPct=0
??:??:?? 22 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
??:??:?? 22 [Screen] Screen: Unpowered...
??:??:?? 32 [NodeInfoPlugin] Sending our nodeinfo to mesh (wantReplies=1)
??:??:?? 32 [NodeInfoPlugin] sending owner !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=0
??:??:?? 32 [NodeInfoPlugin] handleReceived (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, HopLim3 
Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Plugin nodeinfo wantsPacket=1
??:??:?? 32 [NodeInfoPlugin] Received nodeinfo from=0xd1dc6dc4, id=0xdca25f0, portnum=4, 
payloadlen=35
??:??:?? 32 [NodeInfoPlugin] old user !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] updating changed=0 user !d1dc6dc4/Ewelina/Ewl
??:??:?? 32 [NodeInfoPlugin] Plugin nodeinfo considered
??:??:?? 32 [NodeInfoPlugin] Plugin routing wantsPacket=1
??:??:?? 32 [NodeInfoPlugin] Received routing from=0xd1dc6dc4, id=0xdca25f0, portnum=4, 
payloadlen=35
??:??:?? 32 [NodeInfoPlugin] Routing sniffing (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, HopLim3 
Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] FIXME-update-db Sniffing packet
??:??:?? 32 [NodeInfoPlugin] Delivering rx packet (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, 
HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Forwarding to phone (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, 
HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Update DB node 0xd1dc6dc4, rx_time=0
??:??:?? 32 [NodeInfoPlugin] Plugin routing considered
??:??:?? 32 [NodeInfoPlugin] Adding packet record (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, 
HopLim3 Ch0x0 Portnum=4 WANTRESP priority=10)
??:??:?? 32 [NodeInfoPlugin] Expanding short PSK #1
??:??:?? 32 [NodeInfoPlugin] Installing AES128 key!
??:??:?? 32 [NodeInfoPlugin] enqueuing for send (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, 
HopLim3 Ch0xb1 encrypted priority=10)
??:??:?? 32 [NodeInfoPlugin] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=57, time 
4431 ms
??:??:?? 32 [NodeInfoPlugin] txGood=1,rxGood=2,rxBad=0
??:??:?? 32 [NodeInfoPlugin] AirTime - Packet transmitted : 4431ms
??:??:?? 32 [Screen] Screen: Joined: Ewelina
??:??:?? 33 [RadioIf] Starting low level send (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, HopLim3 
Ch0xb1 encrypted priority=10)
??:??:?? 38 [RadioIf] Completed sending (id=0x0dca25f0 Fr0xc4 To0xff, WantAck0, HopLim3 
Ch0xb1 encrypted priority=10)
??:??:?? 42 [Power] Battery: usbPower=0, isCharging=0, batMv=2217, batPct=0
Transition powerFSM transition=LowBat, from=ON to=SDS
??:??:?? 42 [Power] Entering deep sleep for 31536000 seconds
??:??:?? 42 [Power] Setting bluetooth enable=0
??:??:?? 42 [Power] advertise complete; reason=29error enabling advertisement; rc=30
??:??:?? 42 [Power] Done shutting down bluetooth
Shutdown BT: 222816 heap size
??:??:?? 42 [Power] GPS prepare sleep!
??:??:?? 42 [Power] GPS deep sleep!
??:??:?? 42 [Power] WANT GPS=0
??:??:?? 42 [Power] Turning off screen
??:??:?? 42 [Power] Saving /prefs/db.proto
??:??:?? 43 [Power] Saving /prefs/radio.proto
??:??:?? 43 [Power] Saving /prefs/channels.proto
??:??:?? 43 [Power] Setting GPS power=0

oh sorry! I just noticed this crucial comment here:

Additional context
Manufacturer did not documented battery recognition mechanism. After search and test here what we have:
battery_pin = GPIO37
ratio of voltage divider = 3.20 (R1=100k, R2=220k)

Which I bet explains the problem you are seeing on your board. I think I’ll have to make a HELTEC_V2 hwmodel and use different R scalings (and different GPIO) for the board you have.

1 Like

No problem, happy to help :slight_smile: . Hope that it’s gonna work. If you need some more test or any other kind of contribution (tests, translations, documentation, some basic electronic measurements), just tell. I think Meshtastic is grate project with grate future. Take care!

@liniany good news! I found a Heltec (v1) here in taiwan. So sometime this week I’ll be able to test and fix this on a board.

@liniany alas - the heltec I found here is apparently old enough they didn’t hook the battery sense to any GPIO. So I can’t test this change. But I have integrated your comments (I think). A test build with prebuilt binaries is available here:

If you are willing to debug it on your board you could uncomment the following line and build locally to see the raw ADC values for your board:

Based on what you find you might need to change these constants:

Could you try this and possibly send in a pull-request based on what you find on your board? It would probably help lots of people.

1 Like

Thanks! I will try to do this as quick as possible but now i just started my day at work :wink: Heltec that i use was packed like this:

1 Like

Hi there, I have some Lora V1 which I wanted to use for PV powered node. However there is MPPT regulator with protection and LiPo has protection as well I want to monitor the voltage but there is no information about that. It looks like powered from USB. Can I somehow troubleshoot and help to make it work?

Ok so here is another portion of information. First of all I see some progress -the device turns off the screen and going to sleep as t-beam’s. Unfortunately it does not recognize if device is with or without batteries (no icon change or state in logs). The one thing that shows battery is charging is strong orange LED (without battery it gives less light). When device is completely disconnected from USB there is only white LED blinking (discharge) I attache some logs with and without batteries.
LOG with battery:

??:??:?? 2 PowerFSM init, USB power=1
[D][esp32-hal-cpu.c:189] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
??:??:?? 2 [Screen] Screen: Started...
??:??:?? 2 [SerialPlugin] Serial Plugin Disabled
??:??:?? 2 [StoreForwardPlugin] Store & Forward Plugin - Disabled
??:??:?? 2 [RangeTestPlugin] Range Test Plugin - Disabled
Transition powerFSM transition=boot timeout, from=BOOT to=POWER
??:??:?? 5 [PowerFSM] Setting bluetooth enable=1
Pre BT: 209400 heap size
??:??:?? 5 [PowerFSM] Starting bluetooth
??:??:?? 5 [Screen] Done with boot screen...
??:??:?? 5 [Screen] Screen: Powered...
??:??:?? 5 [Screen] showing standard frames
??:??:?? 5 [Screen] Showing 0 plugin frames
??:??:?? 5 [Screen] Total frame count: 35
??:??:?? 5 [Screen] Added plugins.  numframes: 0
??:??:?? 5 [Screen] Finished building frames. numframes: 3
??:??:?? 5 [Screen] Setting fast framerate
??:??:?? 6 [Screen] BLE task running
??:??:?? 6 [Screen] registered service 0x1800 with handle=1
??:??:?? 6 [Screen] registered service 0x1801 with handle=6
??:??:?? 6 [Screen] registered service 6ba1b218-15a8-461f-9fa8-5dcae273eafd with handle=10
??:??:?? 6 [Screen] registered service cb0b9a0b-a84c-4c0d-bdbb-442e3144ee30 with handle=18
??:??:?? 6 [Screen] BLE advertisting type=0, Private=0, Device Address: 8d:f0:08:d1:dc:6d
??:??:?? 6 [Screen] Setting idle framerate
??:??:?? 22 [Power] battery gpio 37 raw val=354 scaled=3650
??:??:?? 22 [Power] Battery: usbPower=0, isCharging=0, batMv=3650, batPct=40
??:??:?? 22 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
??:??:?? 22 [Screen] Screen: Unpowered...
??:??:?? 42 [Power] battery gpio 37 raw val=354 scaled=3650
??:??:?? 42 [Power] Battery: usbPower=0, isCharging=0, batMv=3650, batPct=40
16:00:37 62 [Power] battery gpio 37 raw val=435 scaled=4485
16:00:37 62 [Power] Battery: usbPower=1, isCharging=1, batMv=4485, batPct=0
Transition powerFSM transition=power connect, from=ON to=POWER
16:00:37 62 [Screen] Screen: Powered...
16:00:57 82 [Power] battery gpio 37 raw val=354 scaled=3650
16:00:57 82 [Power] Battery: usbPower=0, isCharging=0, batMv=3650, batPct=40
16:00:57 82 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
16:00:57 82 [Screen] Screen: Unpowered...
16:01:15 100 [Screen] Screen: Joined: Jan
16:01:15 100 Telling client we have new packets 12
16:01:15 100 BLE notify fromNum
16:01:15 100 BLE reading a uint32
16:01:15 100 getFromRadio, state=5
16:01:15 100 phone downloaded packet (id=0x5d3b05b0 Fr0xc8 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 rxtime=1620748875 rxSNR=11.75)
16:01:15 100 BLE fromRadio called omlen=1, ourlen=66
16:01:15 100 BLE fromRadio called omlen=1, ourlen=0
16:01:16 102 [RadioIf] Starting low level send (id=0x5d3b05b0 Fr0xc8 To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620748875 rxSNR=11.75 priority=64)
16:01:17 102 [Power] battery gpio 37 raw val=429 scaled=4424
16:01:17 102 [Power] Battery: usbPower=1, isCharging=1, batMv=4424, batPct=0
Transition powerFSM transition=power connect, from=ON to=POWER
16:01:17 102 [Screen] Screen: Powered...
16:01:37 122 [Power] battery gpio 37 raw val=355 scaled=3660
16:01:37 122 [Power] Battery: usbPower=0, isCharging=0, batMv=3660, batPct=42
16:01:37 122 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
16:01:37 122 [Screen] Screen: Unpowered...
16:01:57 142 [Power] battery gpio 37 raw val=354 scaled=3650
16:01:57 142 [Power] Battery: usbPower=0, isCharging=0, batMv=3650, batPct=40
16:02:17 162 [Power] Battery: usbPower=0, isCharging=0, batMv=2846, batPct=0
Transition powerFSM transition=LowBat, from=ON to=SDS
16:02:17 162 [Power] Entering deep sleep for 31536000 seconds
16:02:17 162 [Power] Setting bluetooth enable=0
16:02:17 162 [Power] subscribe event; conn_handle=0 attr_handle=8 reason=2 prevn=0 curn=0 previ=1 curi=0
16:02:17 162 [Power] subscribe event; conn_handle=0 attr_handle=16 reason=2 prevn=1 curn=0 previ=0 curi=0
 16:02:17 162 [Power] disconnect; reason=534 handle=0 our_ota_addr_type=0 
 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
16:02:17 162 [Power]
16:02:17 162 [Power] error enabling advertisement; rc=30
16:02:17 162 [Power] Done shutting down bluetooth
Shutdown BT: 223092 heap size
16:02:17 162 [Power] GPS prepare sleep!
16:02:17 162 [Power] GPS deep sleep!
16:02:17 162 [Power] WANT GPS=0
16:02:17 162 [Power] Completed sending (id=0x5d3b05b1 Fr0xc8 To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620748914 rxSNR=11.5 priority=64)
16:02:17 162 [Power] Turning off screen
16:02:17 162 [Power] Saving /prefs/db.proto
16:02:17 163 [Power] Saving /prefs/radio.proto
16:02:18 163 [Power] Saving /prefs/channels.proto
16:02:18 163 [Power] Setting GPS power=0

LOG without battery:

16:15:51 142 [Power] battery gpio 37 raw val=415 scaled=4279
16:15:51 142 [Power] Battery: usbPower=1, isCharging=1, batMv=4279, batPct=0
Transition powerFSM transition=power connect, from=ON to=POWER
16:15:51 142 [Screen] Screen: Powered...
16:15:54 145 [RadioIf] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=29, time 2957 ms
16:15:54 145 [RadioIf] Lora RX (id=0x7c866e01 Fr0x21 To0xff, WantAck0, HopLim3 Ch0xb1 encrypted rxSNR=11.5)
16:15:54 145 [RadioIf] AirTime - Packet received : 2957ms
16:15:54 145 BLE notify fromNum
16:15:54 145 BLE reading a uint32
16:15:54 145 getFromRadio, state=5
16:15:54 145 phone downloaded packet (id=0x7c866e01 Fr0x21 To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 WANTRESP rxtime=1620749754 rxSNR=11.5)
16:15:54 145 BLE fromRadio called omlen=1, ourlen=44
16:15:54 145 BLE fromRadio called omlen=1, ourlen=0
16:15:58 150 [Screen] Screen: Joined: relay
16:15:58 150 Telling client we have new packets 13
16:15:58 150 BLE notify fromNum
16:15:58 150 BLE reading a uint32
16:15:58 150 getFromRadio, state=5
16:15:58 150 phone downloaded packet (id=0x422bf73d Fr0x4c To0xff, WantAck0, HopLim3 Ch0x0 Portnum=4 rxtime=1620749758 rxSNR=10)
16:15:58 150 BLE fromRadio called omlen=1, ourlen=68
16:15:59 150 BLE fromRadio called omlen=1, ourlen=0
16:15:59 151 [RadioIf] Can not send yet, busyRx
16:16:00 151 [RadioIf] Can not send yet, busyRx
16:16:01 152 [RadioIf] Can not send yet, busyRx
16:16:02 153 [RadioIf] Can not send yet, busyRx
16:16:03 154 [RadioIf] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=53, time 4202 ms
16:16:03 154 [RadioIf] Lora RX (id=0x422bf73d Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxSNR=9.25)
16:16:03 154 [RadioIf] AirTime - Packet received : 4202ms
16:16:03 154 [Router] Found existing packet record for fr=0xc4a70a4c,to=0xffffffff,id=0x422bf73d
16:16:03 154 [Router] Ignoring incoming msg, because we've already seen it (id=0x422bf73d Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxSNR=9.25)
16:16:03 154 [Router] Incoming message was filtered 0xc4a70a4c
16:16:03 155 [RadioIf] Starting low level send (id=0x35ff0d6a Fr0xc4 To0x21, WantAck0, HopLim3 Ch0xb1 encrypted rxtime=1620749754 priority=70)
16:16:07 158 [RadioIf] Completed sending (id=0x35ff0d6a Fr0xc4 To0x21, WantAck0, HopLim3 Ch0xb1 encrypted rxtime=1620749754 priority=70)
16:16:08 160 [RadioIf] Starting low level send (id=0x422bf73d Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620749758 rxSNR=10 priority=64)
16:16:11 162 [Power] battery gpio 37 raw val=425 scaled=4382
16:16:11 162 [Power] Battery: usbPower=1, isCharging=1, batMv=4382, batPct=0
16:16:29 180 Telling client we have new packets 14
16:16:29 180 BLE notify fromNum
16:16:29 180 BLE reading a uint32
16:16:29 180 getFromRadio, state=5
16:16:29 180 phone downloaded packet (id=0x422bf73e Fr0x4c To0xff, WantAck0, HopLim3 Ch0x0 Portnum=3 rxtime=1620749789 rxSNR=8.25)
16:16:29 180 BLE fromRadio called omlen=1, ourlen=48
16:16:29 180 BLE fromRadio called omlen=1, ourlen=0
16:16:30 181 [RadioIf] Starting low level send (id=0x422bf73e Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620749789 rxSNR=8.25 priority=64)
16:16:31 182 [Power] battery gpio 37 raw val=276 scaled=2846
16:16:31 182 [Power] Battery: usbPower=0, isCharging=0, batMv=2846, batPct=0
16:16:31 182 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
16:16:31 182 [Screen] Screen: Unpowered...
16:16:51 202 [Power] battery gpio 37 raw val=340 scaled=3506
16:16:51 202 [Power] Battery: usbPower=0, isCharging=0, batMv=3506, batPct=25
16:17:01 212 [RadioIf] (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=53, time 4202 ms
16:17:01 212 [RadioIf] Lora RX (id=0x422bf73f Fr0x4c To0xff, WantAck0, HopLim3 Ch0xb1 encrypted rxSNR=10)
16:17:01 212 [RadioIf] AirTime - Packet received : 4202ms
16:17:11 222 [Power] battery gpio 37 raw val=300 scaled=3093
16:17:11 222 [Power] Battery: usbPower=0, isCharging=0, batMv=3093, batPct=0
Transition powerFSM transition=LowBat, from=ON to=SDS
16:17:11 222 [Power] Entering deep sleep for 31536000 seconds
16:17:11 222 [Power] Setting bluetooth enable=0
16:17:11 222 [Power] subscribe event; conn_handle=0 attr_handle=8 reason=2 prevn=0 curn=0 previ=1 curi=0
16:17:11 222 [Power] subscribe event; conn_handle=0 attr_handle=16 reason=2 prevn=1 curn=0 previ=0 curi=0
16:17:11 222 [Power] disconnect; reason=534 handle=0 our_ota_addr_type=0 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
16:17:11 222 [Power]
16:17:11 222 [Power] error enabling advertisement; rc=30
16:17:11 222 [Power] Done shutting down bluetooth
Shutdown BT: 223084 heap size
16:17:11 222 [Power] GPS prepare sleep!
16:17:11 222 [Power] GPS deep sleep!
16:17:11 222 [Power] WANT GPS=0
16:17:11 222 [Power] Completed sending (id=0x422bf73f Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620749821 rxSNR=10 priority=64)
16:17:11 222 [Power] Turning off screen
16:17:11 222 [Power] Saving /prefs/db.proto
16:17:12 223 [Power] Saving /prefs/radio.proto
16:17:12 223 [Power] Saving /prefs/channels.proto
16:17:12 223 [Power] Setting GPS power=0
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒H??:??:?? 0 booted, wake cause 3 (boot count 2), reset_reason=reset
??:??:?? 0 Filesystem files:
??:??:?? 0   /static/index.html
??:??:?? 0   /static/meshtastic.js.gz
??:??:?? 0   /static/basic.js
??:??:?? 0   /prefs/db.proto
??:??:?? 0   /prefs/radio.proto
??:??:?? 0   /prefs/channels.proto
??:??:?? 0 I2C device found at address 0x3c
??:??:?? 0 ssd1306 display found
??:??:?? 0 done
??:??:?? 0 Meshtastic hwvendor=10, swver=1.2.30.e582615-d, hwver=unset
??:??:?? 0 Setting random seed 858545638
??:??:?? 0 Total heap: 255164
??:??:?? 0 Free heap: 220748
??:??:?? 0 Total PSRAM: 0
??:??:?? 0 Free PSRAM: 0
??:??:?? 0 NVS: UsedEntries 245, FreeEntries 385, AllEntries 630
??:??:?? 0 Setup Preferences in Flash Storage
??:??:?? 0 Number of Device Reboots: 2092
??:??:?? 0 Initial packet id 729460721, numPacketId 4294967295
??:??:?? 0 Setting default channel and radio preferences!
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 0, using Unset
??:??:?? 0 Loading /prefs/db.proto
??:??:?? 0 Loaded saved preferences version 11
??:??:?? 0 Loading /prefs/radio.proto
??:??:?? 0 Loading /prefs/channels.proto
??:??:?? 0 Number of Device Reboots: 2092
??:??:?? 0 Expanding short PSK #1
??:??:?? 0 Wanted region 2, using EU433
??:??:?? 0 region=2, NODENUM=0xd1dc6dc4, dbsize=4
??:??:?? 0 Using analog input 37 for battery level
??:??:?? 0 Read RTC time as 1620749853 (cur millis 225) quality=0
??:??:?? 0 WANT GPS=1
??:??:?? 0 Setting GPS power=1
??:??:?? 2 ERROR: No UBLOX GPS found
??:??:?? 2 Hoping that NMEA might work
??:??:?? 2 WANT GPS=1
??:??:?? 2 External Notification Plugin Disabled
??:??:?? 2 Turning on screen
??:??:?? 2 Starting meshradio init...
??:??:?? 2 (bw=125, sf=12, cr=4/8) packet symLen=32 ms, payloadSize=16, time 2269 ms
??:??:?? 2 Set radio: name=LongSlow, config=3, ch=2, power=0
??:??:?? 2 Radio myRegion->freq: 433.174988
??:??:?? 2 Radio myRegion->spacing: 0.200000
??:??:?? 2 Radio myRegion->numChannels: 8
??:??:?? 2 Radio channel_num: 2
??:??:?? 2 Radio frequency: 433.574982
??:??:?? 2 Short packet time: 2269 msec
??:??:?? 2 Set radio: final power level=17
??:??:?? 2 RF95 init result 0
??:??:?? 2 RF95 Radio init succeeded, using RF95 radio
??:??:?? 2 PowerFSM init, USB power=1
[D][esp32-hal-cpu.c:189] setCpuFrequencyMhz(): PLL: 320 / 4 = 80 Mhz, APB: 80000000 Hz
??:??:?? 2 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
??:??:?? 2 [Screen] Screen: Started...
??:??:?? 2 [SerialPlugin] Serial Plugin Disabled
??:??:?? 2 [StoreForwardPlugin] Store & Forward Plugin - Disabled
??:??:?? 2 [RangeTestPlugin] Range Test Plugin - Disabled
Transition powerFSM transition=boot timeout, from=BOOT to=POWER
??:??:?? 5 [PowerFSM] Setting bluetooth enable=1
Pre BT: 209400 heap size
??:??:?? 5 [PowerFSM] Starting bluetooth
??:??:?? 5 [Screen] Done with boot screen...
??:??:?? 5 [Screen] Screen: Powered...
??:??:?? 5 [Screen] showing standard frames
??:??:?? 5 [Screen] Showing 0 plugin frames
??:??:?? 5 [Screen] Total frame count: 35
??:??:?? 5 [Screen] Added plugins.  numframes: 0
??:??:?? 5 [Screen] Finished building frames. numframes: 3
??:??:?? 5 [Screen] Setting fast framerate
??:??:?? 6 [Screen] BLE task running
??:??:?? 6 [Screen] registered service 0x1800 with handle=1
??:??:?? 6 [Screen] registered service 0x1801 with handle=6
??:??:?? 6 [Screen] registered service 6ba1b218-15a8-461f-9fa8-5dcae273eafd with handle=10
??:??:?? 6 [Screen] registered service cb0b9a0b-a84c-4c0d-bdbb-442e3144ee30 with handle=18
??:??:?? 6 [Screen] BLE advertisting type=0, Private=0, Device Address: 8d:f0:08:d1:dc:6d
??:??:?? 6 [Screen] connection established; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0
??:??:?? 6 [Screen]
??:??:?? 6 [Screen] Setting idle framerate
??:??:?? 6 encryption change event; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
??:??:?? 6
??:??:?? 6 subscribe event; conn_handle=0 attr_handle=8 reason=3 prevn=0 curn=0 previ=0 curi=1
??:??:?? 6 subscribe event; conn_handle=0 attr_handle=16 reason=3 prevn=0 curn=1 previ=0 curi=0
??:??:?? 7 connection updated; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=6 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
??:??:?? 7
??:??:?? 7 mtu update event; conn_handle=0 cid=4 mtu=512
??:??:?? 7 connection updated; status=0 handle=0 our_ota_addr_type=0 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
??:??:?? 7
??:??:?? 22 [Power] battery gpio 37 raw val=412 scaled=4248
??:??:?? 22 [Power] Battery: usbPower=1, isCharging=1, batMv=4248, batPct=0
??:??:?? 42 [Power] battery gpio 37 raw val=416 scaled=4290
??:??:?? 42 [Power] Battery: usbPower=1, isCharging=1, batMv=4290, batPct=0
??:??:?? 62 BLE notify fromNum
??:??:?? 62 BLE reading a uint32
??:??:?? 62 [Power] battery gpio 37 raw val=400 scaled=4125
??:??:?? 62 [Power] Battery: usbPower=0, isCharging=0, batMv=4125, batPct=91
??:??:?? 62 [PowerFSM] Loss of power in Powered
Transition powerFSM transition=power disconnected, from=POWER to=ON
??:??:?? 62 [Screen] Screen: Unpowered...
??:??:?? 82 [Power] battery gpio 37 raw val=341 scaled=3516
??:??:?? 82 [Power] Battery: usbPower=0, isCharging=0, batMv=3516, batPct=26
16:20:01 102 [Power] battery gpio 37 raw val=371 scaled=3825
16:20:01 102 [Power] Battery: usbPower=0, isCharging=0, batMv=3825, batPct=59
16:20:21 122 [Power] battery gpio 37 raw val=394 scaled=4063
16:20:21 122 [Power] Battery: usbPower=0, isCharging=0, batMv=4063, batPct=85
Transition powerFSM transition=Screen-on timeout, from=ON to=DARK
16:20:21 122 [PowerFSM] Turning off screen
16:20:41 142 [Power] battery gpio 37 raw val=424 scaled=4372
16:20:41 142 [Power] Battery: usbPower=1, isCharging=1, batMv=4372, batPct=0
16:21:21 182 [Power] battery gpio 37 raw val=365 scaled=3764
16:21:21 182 [Power] Battery: usbPower=0, isCharging=0, batMv=3764, batPct=53
Transition powerFSM transition=Bluetooth timeout, from=DARK to=LS
16:21:21 182 [PowerFSM] lsEnter begin, ls_secs=300
16:21:21 182 [PowerFSM] lsEnter end
16:21:21 182 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:21 182 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:21 182 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:21 182 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [RadioIf] Starting low level send (id=0x422bf746 Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620750076 rxSNR=9.75 priority=64)
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:22 183 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:23 184 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:24 185 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:25 186 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [RadioIf] Completed sending (id=0x422bf746 Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620750076 rxSNR=9.75 priority=64)
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:26 187 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:27 188 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:27 188 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:27 188 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:27 188 [PowerFSM] radio wait to sleep, txEmpty=0
16:21:27 188 [RadioIf] Starting low level send (id=0x65e3a277 Fr0x21 To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620750067 rxSNR=10 priority=64)
16:21:27 188 [PowerFSM] Setting bluetooth enable=0
16:21:27 188 [PowerFSM] subscribe event; conn_handle=0 attr_handle=8 reason=2 prevn=0 curn=0 previ=1 curi=0
16:21:27 188 [PowerFSM] subscribe event; conn_handle=0 attr_handle=16 reason=2 prevn=1 curn=0 previ=0 curi=0
16:21:27 188 [PowerFSM] disconnect; reason=534 handle=0 our_ota_addr_type=0 our_ota_addr=00:f0:08:d1:dc:6d
 our_id_addr_type=0 our_id_addr=00:f0:08:d1:dc:6d
 peer_ota_addr_type=0 peer_ota_addr=00:8c:f1:12:38:5f
 peer_id_addr_type=0 peer_id_addr=00:8c:f1:12:38:5f
 conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=1 authenticated=1 bonded=1
16:21:27 188 [PowerFSM]
16:21:27 188 [PowerFSM] error enabling advertisement; rc=30
16:21:27 188 [PowerFSM] Done shutting down bluetooth
16:22:27 248 [PowerFSM] radio wait to sleep, txEmpty=0
16:22:27 248 [PowerFSM] radio wait to sleep, txEmpty=0
16:22:28 249 [PowerFSM] radio wait to sleep, txEmpty=0
16:22:28 249 [PowerFSM] radio wait to sleep, txEmpty=0
16:22:28 249 [PowerFSM] radio wait to sleep, txEmpty=0
16:22:28 249 [RadioIf] Starting low level send (id=0x422bf748 Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620750147 rxSNR=12.25 priority=64)
16:22:28 249 [PowerFSM] GPS prepare sleep!
16:22:58 279 [PowerFSM] GPS prepare sleep!
16:22:58 279 [Power] battery gpio 37 raw val=420 scaled=4331
16:22:58 279 [Power] Battery: usbPower=1, isCharging=1, batMv=4331, batPct=0
16:22:58 279 [RadioIf] Completed sending (id=0x422bf748 Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620750147 rxSNR=12.25 priority=64)
16:22:58 279 [PowerFSM] GPS prepare sleep!
16:23:28 309 [PowerFSM] GPS prepare sleep!
16:23:28 309 [Power] battery gpio 37 raw val=391 scaled=4032
16:23:28 309 [Power] Battery: usbPower=0, isCharging=0, batMv=4032, batPct=81
16:23:28 309 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:28 309 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:28 309 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:28 309 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:28 309 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:29 310 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [PowerFSM] radio wait to sleep, txEmpty=0
16:23:30 311 [RadioIf] Starting low level send (id=0x422bf74a Fr0x4c To0xff, WantAck0, HopLim2 Ch0xb1 encrypted rxtime=1620750208 rxSNR=11 priority=64)
16:23:30 311 [PowerFSM] GPS prepare sleep!

From time to time on the last screen you can see “B 4,38V 0% +U” (white LED blinks regular)

With USB disconnected (only battery discharging) on the last screen mainly it shows “B 3,56V 32%”