Signed firmware releases on GitHubgithub.com / TexhFexLabs / hydronode-firmware

What updates over the air

HydroNode firmware 0.5.0 or later
Flashed with the Device Builder through Flash now. This is the last USB flash the board needs. Older firmware asks for it once.
An ESP32 for new firmware
ESP32, S2, S3, C3 and C6 take new firmware and new config. The ESP8266 takes config only, because it has no room for a second copy of the firmware.
A saved setup for config
Config changes start from the setup the Device Builder saved on the sensor (Settings → Device setup). A board without one needs one reflash first.
Owner or Can manage
You update sensors you own and sensors shared with you as Can manage. Can view and Can edit shares cannot start updates.
DeviceFirmware over the airConfig over the air
HydroNode firmware 0.5.0 or later on ESP32, S2, S3, C3 or C6Yes, signed images onlyYes
HydroNode firmware 0.5.0 or later on ESP8266No, new firmware needs USBYes
HydroNode firmware before 0.5.0No, reflash once via USBNo, reflash once via USB
Your own sketch with the HydroNode libraryNoNo
ESPHome with the HydroNode componentThrough ESPHomeThrough ESPHome
LoRaWAN sensorNoNo
Firmware is the program on the board. Config is everything the Device Builder asked you: which sensors sit on which pins, how often the board sends, how it sleeps and which values go out. WiFi and the sensor secret are never part of a config change. The board keeps the ones it has.

One device or many, from the project page

The Firmware column of the sensor list shows what each board runs and what is going on: → 0.8.0 available, latest, the config revision such as r14, config drifted, no OTA or a running job like downloading 34%.

  1. 1
    Open the device
    Click the gear (⚙) at the end of its row. The device drawer opens on the right.
  2. 2
    New firmware
    Press Update to 0.8.0. When that is not possible, the button says why: Config only on an ESP8266, Needs USB reflash on firmware before 0.5.0.
  3. 3
    New config
    Change config opens the Device Builder with the saved setup. The board stays fixed. Go through wiring, power and timing, then Send sends it over the air.
Device drawer with an update downloading and the actions Reflash via USB and Change config at the bottomDevice drawer with an update downloading and the actions Reflash via USB and Change config at the bottom
The gear on a device row opens this drawer. The actions sit in the bar at the bottom.

For several boards, press Bulk change in the head of the sensor list, or tick the devices you want. The bar at the bottom starts the change dialog: Change, Devices (with All with update available), then Check & review, where HydroNode checks every device before you create the jobs. Details are in Changes.

How a board installs an update

Every update is a job, one per device. The board starts each step itself when it checks in, so HydroNode never reaches into your network. For new firmware the board downloads the image, checks its signature, restarts into it and checks itself before it keeps it.

A config change takes the same path without a download: the board receives the new settings with the reply, keeps its old config, writes the new one, restarts and checks. A change with firmware and config runs the firmware first and the config right after, as one job.

The states of a job and how to cancel one are explained in Changes.

New firmware has to prove itself

After a restart into new firmware or a new config, the board does not sleep. It checks itself in its first wake cycle: up to three tries, 15 seconds apart, at most two minutes. Until it passes, the old firmware and the old config stay on the board. If it fails, or if the board restarts before the verdict, it goes back to what it ran before and reports why. You change nothing for that.

Verify modeThe update counts as good afterUse it for
Strict (default)A signed reading accepted by HydroNode, and every configured sensor read. Almost everything. A sensor that stops answering after an update is caught.
LenientThe first signed reading accepted by HydroNode. A device with a sensor that is already broken and would fail Strict every time.

Set the mode on three levels. Default verify mode behind the gear in Job history holds your account default. Verify mode in the device drawer overrides it for that device, or follows the account default again. The bulk change dialog sets it for one change. The drawer shows where the mode comes from, for example Strict (account) or Lenient (override).

A rolled back device shows Rolled back for 24 hours with the reason in code style. The drawer spells it out, for example: "The last update to 0.8.0 booted, but the BME280 did not answer in three tries. The device went back to 0.7.0 by itself and is running fine." Relays and LEDs keep their last state over every restart.

ReasonMeaning
sensor_read_failed:bme280Strict only: this sensor did not answer in three tries.
ingest_failed:401HydroNode refused the readings of the new version, here with this HTTP status.
server_unreachableWiFi worked, HydroNode did not answer. The job is tried again later.
wifi_failedThe board did not get onto WiFi with the new version or config.
timeoutThe check did not finish within two minutes.
config_invalidThe board could not read the new config and kept the old one.
boot_failedThe board restarted before the verdict, for example after a crash.

Signed, checked and never with your WiFi

Signed firmware
Every firmware image is signed with a key that stays offline on a hardware security key. HydroNode checks the signature before it offers an image, and the board checks it again before it installs anything.
Config without secrets
Config changes travel over TLS, signed like commands. They never contain the WiFi password or the sensor secret. The board keeps its own.
Always a way back
The old firmware and the old config stay on the board until the new one passed its check. The bootloader and the partition table never change over the air.
Limits
Up to 30 changes per hour per account and 200 devices per change. HydroNode sends only a few firmware downloads at the same time; the others start a round later.

When an update does not arrive

You seeWhat to do
Waiting for check-in does not endThe board sleeps or is offline. The job starts with its next reading. Check power and WiFi if it stays offline.
Needs USB reflash or no OTAThe board runs firmware before 0.5.0, your own sketch or ESPHome. Reflash it once with Reflash via USB in the device drawer. From then on, it updates over the air.
Change config is greyed outThe reason stands under the buttons in the device drawer. Usually the sensor has no saved setup or its firmware is older than 0.5.0: reflash it once with the Device Builder.
Rolled back with sensor_read_failedCheck the wiring of that sensor. If it is broken on purpose, set the device to Lenient and update again.
Offered, but nothing happensOpen the console. A refused offer names its reason, for example a wrong family or too little space. The Problems section of the device drawer lists it too.
A new release is not offered yetA release is offered only after it is signed. Until then no board gets the new firmware. Config changes still work.
Update buttons are missingOnly the owner and people with a Can manage share start updates. Ask the owner to change your share.

Each step of an update also appears in the Device Console as an OTA line, for example ota download at 62% or ota installed 0.8.0 in 41 s.