>>> Join Us in the Fight Against Air Pollution

AirGradient Forum

AirGradient ONE: Is my understanding of "Current Boot Count" and watchdog resets correct?

I recently got a couple of AirGradient ONE kits.

When I click on “Sensor Information” in the web dashboard, it tells me the “Boot Count” is several thousand. I just set up the second unit about 10 minutes ago and it’s reporting the boot count is already at 56. From watching the logs, I’m guessing that for this monitor it’s really counting the number of times the watchdog has been fed since boot?

When I look at the console log, I see:

105
105
105
824
105
105
106
106
106
827
{"wifi":-50, "rco2":827, "pm01":0, "pm02":0, "pm10":0, "pm003_count":36, "tvoc_index":106, "nox_index":1, "atmp":23.33, "rhum":27, "boot":23}
http://hw.airgradient.com/sensors/airgradient:84fce612e58c/measures
429

Watchdog reset

I’m running the 13DEC23 firmware: this is what’s printed during boot:

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40384d54
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
in setConfig
buttonConfig: 0
<trim WiFi settings>
WiFi connected!
IP address: 
192.168.6.219

Is my understanding correct?

Last time I reviewed the code, it was incrementing that counter very time it uploaded to the Dashboard on this boot.

I think the label is misleadingly named, but a higher number is better

2 Likes

Yes correct. It counts the measurement cycles and resets at reboot. This gives an indication if the hardware watchdog strikes.

1 Like