Repository navigation
v0.7.0-alpha.4
Pre-releaseThe fourth alpha of 0.7 runs on LilyGo's T-Deck and T-Deck Plus. Their keyboard writes messages
with no phone, and the screen shows them in colour. Each end of a first contact now gives the
other its name. A node can ask the nodes around it for their cards. Acknowledgements and retries
go a way that works more often.
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.
First contact with older boards fails. In first contact, a board on this release sends its
name, and expects one back. A board on 0.7.0-alpha.3 or earlier does neither, so contact between
the two never finishes, in either direction. The sender sees "not delivered". Sessions made before
the update keep working. Update every board you will meet someone new with.
New
- The LilyGo T-Deck and T-Deck Plus (
lilygo-tdeck) run.- Screen: the node's pages in colour, on its 320×240 panel.
- Trackball: a press is the button. Rolling left and right turns the pages. Rolling up and
down moves through messages and through More's menu. - Keyboard: writes messages with no phone. On Messages, typing replies to the message
shown, and Enter starts a new one to a contact or group. Enter sends; Backspace on an empty
message, or a press of the trackball, puts it away. A message sent this way appears in the
apps too, with its delivery. - GPS (the Plus): gives the node its position. The node tries 38400 baud and 9600, the
speeds of the two receivers LilyGo has fitted.
- Names in first contact. Each end of a first contact gives the other the name its user goes
by: the card name, whether or not cards are on. The name is sealed in the handshake. Each node
keeps the name its peer gave and tells the apps, with a stranger's name when it asks to make
contact. - Asking for cards.
lookon the console, orLOOKfrom an app, asks the nodes in earshot
for their cards. A node asks at most once every 10 minutes, and never on its own at start.
A node with cards on answers within 30 seconds, unless it sent its card in the last 15 minutes. - Charging and external power. The node tells the apps when it is charging, and on nRF52840
boards when it runs from USB or a charger. ESP32 boards have no way to sense external power, so
they never report it. - Links you can tap.
statusprints a node's link in lower case
(https://ternmesh.org/a/…), which opens the app on a phone rather than a browser. The QR code
is unchanged. - The satellite receiver is described in
status: it has said nothing since it was turned
on, it said something unreadable, or how many times it has been heard.
Fixed
- Acknowledgements and retries go round a neighbour that has failed. When a try's first hop
was never heard, the next try goes another way. A link that has got worse is marked worse
sooner.
The companion protocol is now version 20. An older client still connects, but sees no names and
cannot LOOK.
What was tested, and what was not
CI built every image for every board and region, and ran the firmware tests and the simulator.
The simulator's six-board drive and the three-board bench harness checked the acknowledgement and
retry changes.
On a T-Deck Plus on the bench:
- Its radio was heard by a T1000-E, and heard it.
- The screen showed the colour pages, and the trackball turned them.
- Typing showed on the screen.
- The GPS got a fix from 12 satellites, and the node found the right speed when started at the
wrong one. - Between it and a T1000-E on 0.7.0-alpha.3, first contact failed both times it was tried, as
described above.
Not yet tried:
- On the T-Deck: a message written on its keyboard sent over the air, choosing a contact from its
list, the screen going dark and waking, and its battery reading. - The charging and external-power flags, on a board.
- Names exchanged between two boards on this release.
- A drive test across several relays.
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.4-app.binA T-Deck runs LilyGo's own firmware when it arrives, so its first install is over USB:
- Turn it off.
- Hold the trackball down while you turn it on: that starts it in its bootloader.
- Write the whole image at 0x0:
esptool.py --chip esp32s3 write_flash 0x0 tern-lilygo-tdeck-<region>-0.7.0-alpha.4.binAfter that, it takes updates over the link like any other board.
Never power a board with nothing on the antenna connector.