The GX5s firmware is built so the board never drains the vehicle battery. It moves between four power states, driven by ignition and the supply voltage.
| State | Entered when | Modem | Wakes on |
|---|---|---|---|
| Run | Ignition on | Connected over MQTT | — |
| Linger | Ignition off, or after a timer or modem wake | Connected over MQTT | — |
| Sleep | The linger or connect window runs out | Registered, in its sleep mode | Ignition, motion, modem ring, timer |
| Protect | Supply below the cutoff | Powered down | Ignition (if it was off), recheck timer |
Ignition on
The board stays connected and sends periodic telemetry: supply and LiPo voltage, acceleration and temperature, rotation rate, and the latest GNSS fix (position, speed, heading and satellites).
Ignition off
The board reports, stays online for a bounded linger window, then deep sleeps with the modem still registered on the network. With ignition off the awake window is always bounded, so a wake can never keep the board running.
It wakes on:
- Ignition — the ACC wire.
- Motion — the motion sensor's interrupt.
- Modem ring — a network message from the modem.
- Heartbeat timer.
In both sleep states the board runs from its LiPo, with the vehicle feed and the charger switched off.
Never drain the supply
- Three consecutive supply readings below the configurable cutoff (or one, on a wake with ignition off) force protect: the modem is powered down and the board deep sleeps, re-checking on a timer.
- Leaving protect needs the cutoff plus a configurable hysteresis.
- A reading that shows no harness supply at all (bench power over USB or the LiPo) turns protection off.
- The LiPo charger only runs from a healthy supply, and never in deep sleep.
Source: firmware decisions (ADR 0001) in the gx5s repository.