I just got the AirGradient ONE kit and assembled it, and it worked great for about an hour. The only issue is now it is constantly trying to download a firmware update, then reboots itself. It’s on version 3.19 and seems stuck there.
Hi @abc!
I suggest trying a firmware reflash here: AirGradient ONE (I-9PSL), Open Air (O-1PST) and Open Air Max (O-M-1PPST...) Firmware Versions and see if that resolves the issue. You can also take a debug log from the unit here: Online Debug - this generally provides more clarity on the issue.
Oh and I would also check if the firmware version is set to 3.1.9 on the dashboard: General Settings > Firmware, this might explain the behavior as well.
I tried looking at the debug logs and all it says is that it lost connection to the device suddenly. Flashing the firmware through USB worked, so problem seems resolved.
Perhaps I spoke too soon, as on version 3.3.8 the airgradient is only able to connect to the server for a second or so before it loses connection permanently with a blue light on the left side, until i unplug it and plug it back in. I can see it is actually connecting and can enqueue an LED test via the dashboard that successfully executes on reboot, but connection drops again almost instantly until I reset the unit.
Here’s what I believe would be the relevant repeating message in the debug logs, occurring between outputs of sensor readings:
[373558][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():273]: (-29312) SSL - The connection indicated an EOF
[373685][E][WiFiClientSecure.cpp:144] connect(): start_ssl_client: -29312
[AgWifiClient] Error: Failed fetch configuration from server with return code -1
Update: I have manually compiled the latest firmware on github and am still unable to connect to the server for more than a few seconds, due to the same problem. I wasn’t able to compile 3.4.0 or 3.4.1 due to compilation errors, I believe due to a mismatch between the library I was instructed to download in the release zip and the release zip’s code.
Does the display continue to update and it just stops connecting to the online Dashboard, or is the entire device freezing?
Anything special on your network setup? Separate VLANs, firewall rules, network level ad blocking, proxy, etc
Display updates fine and nothing wrong with the unit at all, it’s just it could not send or receive to or from the dashboard. I’ve checking my firewall settings and VLANs and nothing there should be interfering.
The good news is that after updating the firmware and giving it an hour or so, it started connecting intermittently, and overnight it managed to stay connected the entire time. So, problem … solved?
I didn’t change any settings at all other than updating the firmware between it not connecting at all and it gaining a solid connection, so I can only assume it was either an issue with 3.3.8, or airgradient’s server was having issues and dropping connections, or both.
Nevermind, it’s still dropping connection for ~30 minutes at a time. To narrow it down I’ll try downgrade the firmware later on and see if this helps.
Unless you changed settings in the Dashboard, it should auto upgrade to 3.4.1 once it was connected.
I disabled that due to the constant failing to receive firmware updates over wireless and rebooting… I’ll try turn it back on again and see if it can connect long enough to download 3.4.1. The dashboard says it was last seen about 5 hours ago so it might take a while.
Seems the issue was the power supply - after plugging it into my PC again it was able to connect to the server fine. Plugged into the adapter was resulting in a 95%+ packet loss when pinging it. Probably something I should have tested earlier!
Still unsure why it was able to connect to the servers without interruption on 3.1.9 using that power supply … that’s why I was so focused on it being a firmware issue.
Just for reference, the original problem (firmware failed updating at ~80% and rebooting) was occuring even with a stable connection and it plugged into my pc, and why that was happening is still a mystery to me.