Repository navigation
v0.7.0-alpha.2
Pre-releaseThe second alpha of 0.7 fixes the freeze that left a Seeed T1000-E advertising over Bluetooth but
never answering, and adds leaves that sleep, managing a relay over the mesh, and forgetting a
conversation on every client at once.
It is an alpha. The protocol is a draft and will change. Everything said about security in
0.7.0-alpha.1 still holds, including what is not yet done.
Fixed
- A node that stopped answering. On an nRF52840 board, a battery reading the ADC never
finished stopped the node's loop for good: Bluetooth went on advertising, and a phone kept
connecting and never got an answer. A reading now gives up after 100 ms, and the battery is then
shown as unknown until the board restarts. Seen on a T1000-E; every nRF52840 board had it. - A watchdog on every board. If the node's loop stops for 30 seconds, the board restarts.
The step it stopped in is kept across the restart, andstatusnames it, with how many times it
has happened since power came on. - The console never waits. On nRF52840 boards, nothing is written to the USB console unless a
computer has it open, and on ESP32 boards a write to it can no longer block. - Off means off. A board that turns itself off, for an empty battery or a held button, now
stops Bluetooth too, instead of advertising a node that answers nothing. - Messages queued quickly over USB on an ESP32 board whose console is a UART (the Heltec V3,
among others) are no longer lost while the board writes its flash. - A node's own floods keep their order while its airtime allowance holds them back, instead
of later messages going ahead of earlier ones.
New
- Leaves that sleep. A leaf can turn its radio off between polls of a relay that keeps its
messages for it (sleep on <seconds>on the console, or the apps). It is off by default. The
relay holds frames for the leaf and hands them over when it polls; a leaf whose relay stops
answering finds another. - Managing a relay over the mesh. A relay's owners (up to four of its contacts) can change its
settings from their own node, without going to it. A change of settings is a trial: unless an
owner is heard from within 15 minutes, the relay puts the old settings back. - Forgetting a conversation erases its messages on the node and on every client of it.
The companion protocol is now version 17, which Android 0.5.0, Apple 0.6.0 and the web app at
ternmesh.org/app speak. An older client still connects, but cannot see or set sleep, forget a
conversation, or manage a node.
What was tested, and what was not
CI built every image for every board and region and ran the firmware tests and the simulator.
A T1000-E ran for 21 hours on battery on this release's code as of the ADC fix, without the
watchdog having to restart it, its battery going from 95% to 88% over the last 16 hours of it. The
night before, on the code without the ADC fix, the watchdog restarted it once, stopped in the
battery reading. The changes merged after the ADC fix (the sleeping-leaf fixes, forgetting,
managing over the mesh, and the two ESP32 and flood fixes) were tried on Heltec V3, V4 and T1000-E
boards on the bench, not overnight.
Messages between a board on this release and one on 0.7.0-alpha.1 were not tried. Sleeping and
managing need both ends on this release.
Updating
As for 0.7.0-alpha.1: over the link with a signed image, over
Bluetooth for an nRF52840 board with the OTAFIX bootloader, or by copying the .uf2 in its
bootloader. Every file is signed by the release key
09800d79c2c3d0cab7f1710a18cd50d6f0e39c57d9cfe395b371195d4942f88d and listed in SIGNATURES.
tools/companion.py --port <port> update tern-heltec-v3-<region>-0.7.0-alpha.2-app.binNever power a board with nothing on the antenna connector.