Merge upstream MeshTerm 1.0.0
Conflicts resolved by keeping both sides:
docs/cli/README.md, docs/guide/features.md (parts/reactions + relay mark)
meshterm/core/preferences.py (reaction_emoji, message_parts_max + heard_wait_s)
meshterm/services/chat_service.py (reaction check + upstream mute/listed split)
meshterm/ui/chat.py (reaction count + relay mark in the render cache;
each sent part is tracked for the relay mark)
meshterm/ui/tui/session.py: upstream's "e": "reveal" is kept, and the
chat screen takes "reveal" as react, so ^E still reacts in the chat.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174TBnQH8S3nYNaxo5zk9Yu
No files matched your search
@@ -1145,6 +1145,24 @@ $ meshterm --absolute chat history --to Alice
|
||||
takes the rest of the line. A message body is the one field that can hold any text, so no
|
||||
column can follow it.
|
||||
|
||||
**Relays.** A channel has no acknowledgement. But your radio hears the repeaters that relay
|
||||
your message, and each copy names the relays that it went through. The `history` of a
|
||||
channel has a `HEARD` column for each of your own messages:
|
||||
|
||||
```console
|
||||
$ meshterm chat history --channel 0
|
||||
TIME DIR PEER SNR_DB HEARD TEXT
|
||||
12m in Public +6.5 - Alice: anyone on the ridge?
|
||||
10m out Public - 2 heading up now
|
||||
4m out Public - none at the top
|
||||
now out Public - wait coming down
|
||||
```
|
||||
|
||||
A number is the count of repeaters that sent a copy back. `none` means that no repeater
|
||||
sent it back. `wait` means that the message is still in its wait (the `heard_wait_s`
|
||||
preference). MeshTerm sees only the relays that your radio hears, and only while it is
|
||||
connected. A received message has no value (`-`).
|
||||
|
||||
**Rooms.** A room server is a message board that lives on a radio. First, join the room
|
||||
with [`meshterm rooms join`](#meshterm-rooms). After that, post with `send --to`, in the
|
||||
same way as a direct message. `acked yes` means that the room stored the post. It does
|
||||
@@ -1222,7 +1240,9 @@ $ meshterm chat send "all clear" --channel 0 --scope '*' --json
|
||||
the purpose of the one absence token. It is also the reason why the plain face prints
|
||||
nothing there: it has no way to say it.
|
||||
|
||||
`history` is an array, with the oldest message first:
|
||||
`history` is an array, with the oldest message first. Each record also has `heard`
|
||||
(`"waiting"`, `"heard"`, `"unheard"`, or `null` when the message is not your own channel
|
||||
message) and `heard_by` (the hashes of the repeaters that sent a copy back):
|
||||
|
||||
```json
|
||||
{"created_at":"2026-09-08T08:27:37Z","direction":"out","node":{"name":"Alice","key":null,"hash":"d4e5f6a7","type":null,"self":false},"channel":null,"author":null,"snr_db":null,"text":"on my way","acked":true}
|
||||
@@ -2003,6 +2023,7 @@ weekly_flood_advert off off
|
||||
advert_quiet_s 30 30 Silence to wait for before the weekly advert
|
||||
direct_message_soft_retries 0 0 Times to resend a message that gets no reply
|
||||
message_parts_max 3 3 Send a long message as this many parts at most
|
||||
heard_wait_s 30 30 Wait this long for a relay of a channel message
|
||||
room_relogin_minutes 30 30 Opening a room this quiet logs in again
|
||||
tx_opt_min 18 18 Weakest power it will try
|
||||
tx_opt_max 28 28 Strongest power it will try
|
||||
@@ -2072,7 +2093,7 @@ code beside each link. The scripted face prints only the link.
|
||||
**`--json`:**
|
||||
|
||||
```json
|
||||
{"page":"discord","title":"Join Discord","version":"0.13.0","text":"Join the Discord\n Questions, ideas, bug reports, and mesh talk.\n\n • https://discord.gg/AZwe5Uvb3S","links":["https://discord.gg/AZwe5Uvb3S"]}
|
||||
{"page":"discord","title":"Join Discord","version":"1.0.0","text":"Join the Discord\n Questions, ideas, bug reports, and mesh talk.\n\n • https://discord.gg/AZwe5Uvb3S","links":["https://discord.gg/AZwe5Uvb3S"]}
|
||||
```
|
||||
|
||||
| Field | Type | Meaning |
|
||||
|
||||
@@ -180,6 +180,7 @@ The Cardputer Zero has no LoRa radio built in. You can add one in three ways:
|
||||
| Radio | Status |
|
||||
| --- | --- |
|
||||
| **Cap LoRa-1262** add-on board from M5Stack | Works, with no setup. MeshTerm runs the mesh node itself while it is open, as it does on a uConsole. |
|
||||
| **Cap LoRa868**, the earlier add-on board | Works, with no setup. It is the same radio with no antenna switch (refer to [The older Cap LoRa868](#the-older-cap-lora868)). |
|
||||
| A MeshCore companion on USB | Expected to work as on any Linux computer. |
|
||||
| A MeshCore companion over Bluetooth | Expected to work as on any Linux computer. |
|
||||
|
||||
@@ -198,8 +199,11 @@ says that power without the antenna can permanently damage the radio.
|
||||
3. Push the Cap onto the expansion header at the back.
|
||||
4. Turn on the Cardputer Zero, and start MeshTerm.
|
||||
|
||||
The device screen lists the Cap as **Cap LoRa-1262**. `meshterm --spi` also reaches it from the
|
||||
command line.
|
||||
The device screen lists the Cap as **Cap LoRa**. It cannot say more before it connects,
|
||||
because a radio on the SPI bus answers nothing until MeshTerm starts the node on it. After
|
||||
the first connection, the hardware column of the device screen names the Cap that
|
||||
answered: **Cap LoRa-1262**, or **Cap LoRa868** for the older one. `meshterm --spi` also
|
||||
reaches the Cap from the command line.
|
||||
|
||||
The Cap has no MeshCore firmware of its own. It is only a radio chip. Thus, while MeshTerm
|
||||
is open, MeshTerm is the node, as it is on the AIO board of a uConsole. MeshTerm needs the
|
||||
@@ -227,6 +231,45 @@ A new node starts with the US/Canada settings of MeshCore (910.525 MHz). In othe
|
||||
change the settings on **Device config** before you send anything. MeshTerm keeps the key,
|
||||
the contacts, and the channels of the node in `~/.meshterm/radio/spidev0.1/`.
|
||||
|
||||
#### The older Cap LoRa868
|
||||
|
||||
M5Stack made an earlier LoRa Cap, the **Cap LoRa868**. MeshTerm works with it as well,
|
||||
and you do nothing to make it work.
|
||||
|
||||
The two Caps are almost the same board. Each one has an SX1262 radio and a GNSS
|
||||
receiver, on the same pins of the same 14-pin header. The newer Cap LoRa-1262 adds an
|
||||
antenna switch, and a small chip at I2C address `0x43` that turns that switch on. The
|
||||
older Cap has no antenna switch, so it has no such chip.
|
||||
|
||||
MeshTerm finds out which Cap you have each time it connects:
|
||||
|
||||
1. It powers the header.
|
||||
2. It looks for the switch chip at `0x43`, for one second.
|
||||
3. If the chip answers, the Cap is a Cap LoRa-1262, and MeshTerm turns the antenna
|
||||
switch on.
|
||||
4. If nothing answers, MeshTerm starts the radio and asks the radio what it is. An
|
||||
SX1262 that gives its name is the older Cap, and MeshTerm continues.
|
||||
|
||||
Step 4 is the reason why a Cap that is absent, or that is not pushed fully onto the
|
||||
header, is still reported as absent. Only a radio that answers for itself is accepted.
|
||||
|
||||
#### If MeshTerm says that it cannot find the radio
|
||||
|
||||
Two messages are possible, and they mean different things.
|
||||
|
||||
**"Nothing answers at 0x43 on /dev/i2c-1"** comes from a profile of your own that
|
||||
requires the switch chip. MeshTerm's own wiring for the Cap does not require it. Set
|
||||
`pi4io_required = false` in your profile, or remove the `pi4io_bus` line from it (refer
|
||||
to [Board wiring](uconsole.md#board-wiring)).
|
||||
|
||||
**"No radio answered on the SPI bus"** means what it says. Turn the Cardputer
|
||||
Zero off, push the Cap fully onto the header at the back, and check that no row of pins
|
||||
is left over at either end. Then turn it on again. Never add or remove a Cap while the
|
||||
device is on.
|
||||
|
||||
The node writes what it did to `~/.meshterm/radio/spidev0.1/node.log`. That file names
|
||||
the wiring it used and the answer it got from the bus. Send it with a problem report.
|
||||
|
||||
#### The Cap's GPS
|
||||
|
||||
The Cap also has a GPS. MeshTerm can use it to keep the position of your node current. The
|
||||
|
||||
@@ -318,6 +318,7 @@ en_pins = [27] # the AIO v2 needs this
|
||||
| `en_pins` | `[]` | The power-enable lines that go high before MeshTerm touches the chip. The **AIO v2 needs `[27]`.** |
|
||||
| `leds` | `[]` | Switches that the device tree of the board shows as LEDs (under `/sys/class/leds/`). Write each one as `"name=brightness"`. MeshTerm sets them before it touches the chip. It puts them back as they were when it releases the radio. The Cardputer Zero powers its expansion header in this way. Its Cap needs no profile, but this is what you would write: `["ext_5v_out=1", "ext_usb_gpio_fun=0"]`. |
|
||||
| `pi4io_bus`, `pi4io_address`, `pi4io_high` | `-1`, `0x43`, `[]` | A PI4IOE5V6408 I/O expander that switches the antenna path of the radio. These are its I2C bus (`-1` for none), its address, and the pins that go high. |
|
||||
| `pi4io_required` | `true` | Whether the radio works only with that expander. `false` says that the board has two revisions, one with the expander and one without it. An expander that does not answer is then the revision without it, and MeshTerm continues after the radio itself answers. The Cap of the Cardputer Zero is set this way. |
|
||||
| `use_dio2_rf`, `use_dio3_tcxo` | `true`, `true` | If DIO2 drives the RF switch, and if DIO3 drives a TCXO (both are on for the AIO). |
|
||||
| `is_waveshare` | `false` | The wiring quirks of the Waveshare HAT, which the radio library knows. |
|
||||
| `python` | `""` (empty) | An interpreter to run the node under. Use it when the interpreter that MeshTerm finds is not the one that you want. If it is empty, MeshTerm looks for one. |
|
||||
|
||||
@@ -93,9 +93,11 @@ to install the library.
|
||||
|
||||
**Two boards need no configuration.** The wiring of an AIO v1 is the MeshTerm default.
|
||||
Thus, when `/dev/spidev1.0` exists, the device screen lists it. The name is **uConsole AIO**
|
||||
on a uConsole, and **SPI radio** on any other machine. MeshTerm also includes the Cap
|
||||
LoRa-1262 of M5Stack on a Cardputer Zero. The device screen lists it as **Cap LoRa-1262**
|
||||
on a Cardputer Zero (refer to [the Cardputer Zero page](../devices/cardputer-zero.md#the-cap-lora-1262)).
|
||||
on a uConsole, and **SPI radio** on any other machine. MeshTerm also includes the LoRa
|
||||
Cap of M5Stack on a Cardputer Zero. The device screen lists it as **Cap LoRa**, because
|
||||
until MeshTerm connects, nothing can say which of the two Caps is attached. After it
|
||||
connects, the hardware column names the one that answered (refer to [the Cardputer Zero
|
||||
page](../devices/cardputer-zero.md#the-cap-lora-1262)).
|
||||
For either board, `meshterm --spi` reaches the radio. To add any other board, write a
|
||||
profile that states how the board is wired. A profile on the same `/dev/spidev*` replaces
|
||||
the wiring that MeshTerm includes.
|
||||
|
||||
@@ -15,7 +15,7 @@ This page lists each interactive screen with its scripted equivalent, where one
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **💬 Chat** | Live full-screen messages on channels and to contacts. The transcript scrolls, the input line stays at the bottom, and sent and received messages appear together. The rooms that you joined are also here. Each post shows under the name of its author. Select a message and press **^E** to react to it with an emoji. The reaction shows under the message, and MeshCore One and meshcore-open show it too. The emoji that ^E offers are a preference. A message that is too long for one packet goes out as parts, each ending with its number (`[1/3]`). MeshTerm stores each message. Unread counts show in the menu header. To see each path on which a message reached your node, select the message and press ^P. Enter on a path opens a trace of that route: back to the sender of a received message, or out to the contact of a sent direct message. When the trace comes home, the Device route row can make that route the radio's route to the contact. | `meshterm chat send / history / list / listen` |
|
||||
| **💬 Chat** | Live full-screen messages on channels and to contacts. The transcript scrolls, the input line stays at the bottom, and sent and received messages appear together. The rooms that you joined are also here. Each post shows under the name of its author. Select a message and press **^E** to react to it with an emoji. The reaction shows under the message, and MeshCore One and meshcore-open show it too. The emoji that ^E offers are a preference. A message that is too long for one packet goes out as parts, each ending with its number (`[1/3]`). MeshTerm stores each message. Unread counts show in the menu header. To see each path on which a message reached your node, select the message and press ^P. Your own channel message shows whether a repeater relayed it: a spinner, then `✓` and the number of repeaters that sent a copy back, or `✗` when none did. Enter on a path opens a trace of that route: back to the sender of a received message, or out to the contact of a sent direct message. When the trace comes home, the Device route row can make that route the radio's route to the contact. | `meshterm chat send / history / list / listen` |
|
||||
| **📻 Channels** | Create, join, reorder, mute, and share mesh channels. You can share a channel with a QR code or a `meshcore://` link. If you give a channel a **send scope**, its messages are flooded into one region. Only the repeaters that carry that region relay them. When you change to a new device, export all the channels to a file, then import the file on the new device. The **channel guide** lists the public channels that MeshTerm heard, also the channels that are not on your device, and adds one with Enter. | `meshterm channels list / add / join / import / share / clear / scope / export / guide` |
|
||||
| **📌 Rooms** | Each room server that your radio knows. A room server is a message board on a radio. It keeps the latest posts and sends you the posts that you missed. Join a room with its password. If a room does not answer, MeshTerm tells you what it knows and offers the next step to try. For example, it can send again by flood when the route that your radio learned is no longer good. When the clock of a room goes back (often after a reboot), the room sends you no new post, because each new post looks older than the ones that you have. The node page of the room then says so and offers to ask for all its posts again. | `meshterm rooms list / join / forget` |
|
||||
| **📨 Courier** | A store-and-forward outbox for contacts that you cannot reach yet. Queue a message. MeshTerm sends it when the contact is next heard, or at a time that you set. It tracks the acks, and it waits longer between each try (exponential backoff). | `meshterm courier queue / list / send / cancel / clear` |
|
||||
@@ -48,7 +48,7 @@ This page lists each interactive screen with its scripted equivalent, where one
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **📋 Device info** | The identity of the connected companion and its full radio configuration, on one screen. | `meshterm info` |
|
||||
| **📋 Device info** | Everything that the connected companion knows about itself, on one screen. A status panel names the node, its key, its firmware and companion protocol version, and the place where it says it is. Then it names what MeshTerm does with the node: its flood scope and the key of that scope, the site and the outbound paths that apply here, and its radio preset. Then it names how the node is doing: the battery, the storage, its own sensor readings, the clock and its drift, the uptime, the contacts and channels against the capacities of the device, the packets that wait to go out, and the firmware errors. Last, it names what the node heard and sent, with the packet counts split into flood and direct. Under the panel is every setting of the device. The scripted face gives the same three parts: the status, the sensor readings, and every setting under the keys that `config get` and `config set` take. | `meshterm info` |
|
||||
| **🔧 Device config** | Each setting that the companion firmware has: name, radio, client repeat, auto-add, telemetry, and custom variables. MeshTerm stages your changes for review and then applies them in place. The screen also has operations on the device itself: clock sync, TOML backup and restore, the identity key, reboot, and factory reset. Each operation acts when you confirm it, and the destructive operations need a confirm step. The screen has the same layout as Repeater admin. Thus you configure the radio in your hand and a radio over the mesh in the same way. | `meshterm config` / `config set <key> <value>` / `config backup` / `config reboot` / … |
|
||||
| **📡 Send advert** | Announce this node to the mesh with a zero-hop advert or a flood advert. You can also share the contact card of this node as a QR code. | `meshterm config advert` / `config share` |
|
||||
| **🔌 Devices** | This is not a menu screen. You select the companion on the startup splash. The splash lists the serial companions and the Bluetooth LE companions. If only one companion is present, MeshTerm selects it. You can add a network (TCP) companion with host:port. MeshTerm remembers the last good default. If the link drops, MeshTerm detects it at once and offers to reconnect. `meshterm devices` lists what discovery finds. | `meshterm devices` |
|
||||
@@ -70,13 +70,58 @@ only describe it. The written pages are at the end.
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **⚙ Preferences** | How MeshTerm behaves, in eight groups: Device, Sending, TX optimize, Watchtower, Map, History, Display, and Diagnostics. The page stages your changes, and you save them with one action at the bottom. MeshTerm writes only the values that you changed to `preferences.toml`. [Configuring MeshTerm](configuration.md) has the detail. | `meshterm preferences show / set / reset` |
|
||||
| **⚙ Preferences** | How MeshTerm behaves, in nine groups: Device, Sending, TX optimize, Watchtower, Map, History, Sound, Display, and Diagnostics. The page stages your changes, and you save them with one action at the bottom. MeshTerm writes only the values that you changed to `preferences.toml`. [Configuring MeshTerm](configuration.md) has the detail. | `meshterm preferences show / set / reset` |
|
||||
| **🩺 Diagnostics** | One block of information that each bug report starts with. It shows which build you have and how you installed it, the operating system, the terminal and its size, and the radio and its link. It also shows the verdicts from boot time that no other screen shows (icons, powerline, platform flavour, and the reasons), and how much history MeshTerm stored. It has nothing private: no keys, passwords, positions, or contact names. It describes the mesh only as counts for each table and the span of time that the tables cover. Press `a` to anonymize it: your account name in the home folder and the addresses of your radio and hosts are masked, and each keeps a tidbit (`j*********u`, `DA:xx:xx:xx:7C:7C`). Press `s` to save the block beside the log, to attach to a report. The **Anonymize** preference opens the page anonymized, and masks the log too. | `meshterm diagnostics [--out PATH] [--anonymize]` |
|
||||
| **📖 About MeshTerm** | What MeshTerm is, where it came from, and the terms of its licence. It includes the map credit, the font credit, and the licence URL. | `meshterm about` |
|
||||
| **📖 About MeshTerm** | What MeshTerm is, where it came from, and the terms of its licence. It includes the map credit, the font credit, the sound credit, and the licence URL. | `meshterm about` |
|
||||
| **👤 About the author** | The person behind MeshTerm, on the mesh and away from it. | `meshterm about-author` |
|
||||
| **🔗 Join Discord** | The community server. The page has one invite link and a QR code of the link, which a phone can read. | `meshterm discord` |
|
||||
| **💰 Support MeshTerm** | What keeps MeshTerm going, and the ways to help it, with money and without money. | `meshterm support` |
|
||||
|
||||
## Sounds
|
||||
|
||||
MeshTerm plays a sound when something arrives that you want to know about now. Each event
|
||||
has its own sound, and its own switch on the Preferences page:
|
||||
|
||||
| Event | When it plays | Default |
|
||||
| --- | --- | --- |
|
||||
| Direct message | A DM arrives | on |
|
||||
| Mention | A message in a channel or a room mentions your node (`@[Your name]`). A mention in a DM plays the DM sound | always |
|
||||
| Channel message | A message arrives on a channel | on |
|
||||
| Room post | A room sends a new post | on |
|
||||
| Battery low | The battery goes below the **Low level** (25%). It plays one time, and again only after the battery is 5 points higher or charges | on |
|
||||
| Packet tick | A very short tick for each packet heard that plays no other sound, at most four times each second | off |
|
||||
|
||||
A channel that you muted (🔕) is silent, because the mute turns off all of its
|
||||
notifications. The **On-screen chat** switch (on by default) decides whether the
|
||||
conversation that is open on the screen plays its sounds too.
|
||||
|
||||
**Mention** has three values:
|
||||
|
||||
- **always** (the default): the mention sound plays, also on a muted channel, with the
|
||||
**Channel message** or **Room post** switch off, and with **On-screen chat** off.
|
||||
- **on**: the mention sound plays, under the same rules as other messages.
|
||||
- **as a message**: a mention is a channel message or a room post, with their sound and
|
||||
their rules.
|
||||
|
||||
**Ctrl+S** mutes or unmutes the sounds from any screen. The header shows 🔊 while the
|
||||
sounds play and 🔇 while they are muted. The **Sound** row above Quit in the main menu
|
||||
does the same. To have no sound at all, select the **no sound** theme on the Preferences
|
||||
page. The other themes are **Android** (the default) and **terminal bell**, which rings the
|
||||
bell of your terminal, also over SSH.
|
||||
|
||||
**Volume** is a slider with ten steps on the Preferences page. Each step plays the
|
||||
channel message sound, so that you hear the level before you apply it.
|
||||
|
||||
When no sound plays, the title of the screen can flash instead. The **Flash** preference
|
||||
selects when: off, on, or **when silent** (the default), which flashes when the sounds are
|
||||
muted or the theme is no sound. The PicoCalc has no sound, so there each notification
|
||||
flashes.
|
||||
|
||||
MeshTerm plays the sounds through the player of your computer: MCI on Windows, `afplay` on
|
||||
macOS, and `pw-play`, `paplay`, or `aplay` on Linux. Two sounds can play at the same time:
|
||||
a new sound does not stop one that plays. If no player works, MeshTerm writes one line in
|
||||
its log and continues with no sound.
|
||||
|
||||
## Leaving MeshTerm
|
||||
|
||||
**Quit** at the bottom of the main menu leaves MeshTerm, after it asks you to confirm.
|
||||
|
||||
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |