meshctl ES

Guide

What meshctl does that is not plain at a glance, once it runs. How to install it, run it and reach it from elsewhere is in the README.

The first radio

With no radio yet, meshctl greets you and asks for one: its firmware, Meshtastic or MeshCore (as a companion), and how to reach it.

  • On the network: its IP or its name. Meshtastic listens on port 4403 and MeshCore on 5000; another port goes at the end, as radio.lan:4404.
  • Over USB: the device, as /dev/ttyACM0, with @921600 at the end if it does not run at 115200. In the apps, it is picked from those plugged in.
  • By Bluetooth, in the desktop and Android apps only: picked from the radios heard nearby. On the desktop, pair it with the system first.

meshctl connects, receives its settings and its nodes, and is ready. If the radio does not answer, it keeps trying on its own: you can go in anyway and wait.

A radio serves one client at a time. If the phone app, say, needs it too, put tasticsplitter (for Meshtastic) or coresplitter (for MeshCore) in front and give each the splitter's address.

If meshctl was started with a token, each browser asks for it once and remembers it.

Several radios

Each radio is a button on the rail at the left (on a phone, in the list behind the radio at the top), and everything else in the panel is that radio's. Meshtastic and MeshCore radios mix as you like.

The gear at the foot of the rail opens meshctl's settings, starting at Radios, where you add more and set them up:

  • Order: drag a row by its handle, or use its arrows.
  • The eye hides a radio from the rail without forgetting it.
  • The switch is Connect automatically: off, meshctl disconnects from it at once and leaves it alone.
  • Its button: up to four letters or an emoji, as Meshtastic's short names, or an icon, and a colour of its own.
  • Share the phone's location, on Android only: the radio takes the phone's position as its own (see below).
  • Its battery, last: what it shows, whether it is plugged in as the radio says or as said here, and, on MeshCore, what battery it is (see below).

A radio that runs on its battery shows how full it is beside its name, in the sidebar's heading, on the phone's radio at the top and in its list of radios, in red under 20%; plugged in, a plug. Its Battery indicator can show the battery only, nothing when plugged in, or nothing at all. Meshtastic says itself when it is plugged in, whether it charges its battery or has none, which it does not tell apart. MeshCore says only its voltage, which meshctl asks for every ten minutes, every two once low, and reads by its Battery type, Li-ion or LiPo, or LiFePO4, as Meshtastic's firmware reads a resting cell; over a full one's it is taken as plugged in. As some boards read a voltage on USB that a battery just charged might, or cannot measure their battery and say it is empty, its Power can say instead that it is always on its battery (MeshCore), or always plugged in.

On Android, a radio can carry the phone's position, which it sends to the mesh as its own, with the app closed too if it keeps listening. Turning it on, Android asks leave to know the location. The radio is told only as you move: a Meshtastic one every 25 m and no more than once every 30 s, and again on reconnecting; a MeshCore one, which keeps it for its adverts, every 100 m and no more than once every 5 minutes. Standing still, it is told nothing. It is no use to a Meshtastic radio with a fixed position or its own GPS on: it keeps its own.

A radio that is not connected still shows what it knew when it last was, marked so; you can read, not send or ask.

Nodes

Nodes lists every node the radio has heard: when, how far away, its power, its hardware and role. Search it, or filter it by how it is reached: Direct, Through the mesh, No route, and on MeshCore Not added, those heard but not among the radio's contacts. Favourites go first.

The star on a node's page makes it a favourite of the radio's, kept on the radio itself: on Meshtastic it stays in its node list however long it goes unheard; on MeshCore, among its contacts, it is never the one a full radio lets go to make room.

Each avatar has a colour of its own, the same everywhere: on Meshtastic the one its official apps give it, on MeshCore one drawn from its name.

A node's page shows what it says about itself, and what it can be asked for, each with its last answer:

  • Meshtastic: node info, position, device, environment and power telemetry, mesh stats, neighbours and a traceroute. Telemetry and neighbours need its public key, which comes with its node info.
  • MeshCore: status, telemetry, owner, a ping, a route search, a sensor's history, the access list and regions. A repeater or a room may ask for a login first: Access, on its page, logs in, as a guest with no password.

Its page also has its contact as a QR code, to add it from another app, and its traceroutes, every hop on a small map; a click on it shows the route on the big map, and the ones before can be picked from the list. On MeshCore, repeaters with a dashed border are guessed by how near they are, not known for sure.

The arrow in its heading, Export what is shown, saves its page as a ZIP over the while its charts show: node.json with all of it, as meshctl's API has it; a CSV of its telemetry, a point a row, of what it was asked, and of its traceroutes, a hop a row, for a spreadsheet; and a word on what each holds. No messages go in it. In a browser it is downloaded; in the apps, the system asks where.

Removing a node offers three things: Remove from the radio, which keeps it in meshctl with its history (heard again, it is back on the radio); Only from meshctl, which deletes all meshctl keeps of it and reads it again from the radio, untouched; or Delete everything, which has the radio forget it too. Its messages in channels always stay.

The bin in the list of nodes' heading, beside adding one, does the same with many at once, rather than waiting for meshctl to clean up on its own: those the list shows, as searched and filtered, not heard for more than 8 hours, a day, 3 days, a week or a month, never a favourite. It goes one node after another, and can be stopped.

The map

Every node that has said where it is, coloured by how far: the radio in the accent, then direct, 1–2 hops, 3–4 hops and further. Routers, repeaters and base stations have a mark of their own. Nodes on the same spot gather into one that opens on a click.

The three dots under the zoom buttons let down the map's own settings, kept for each radio, and are in the accent while either leaves something out. The clock leaves out the nodes not heard for a while: 8 hours, 24 hours, 3 days, a week or a month. The pin shows or hides the waypoints.

A node's popup traces the route to it, or shows the last one, there and back, on the map; with one already, Trace again traces a new one without leaving the map where it is.

Waypoints

Meshtastic's points on the map, shared with the mesh: each with an emoji, a name and a description, and maybe a date it expires on. The official apps and the firmware show them too, whoever shared them.

  • To share one, a right click or a long touch on the map, Add a waypoint here. It goes on the channel you choose: whoever has it sees it.
  • Hops: how far it goes, from 1 to as many as your radio's settings say, for it to reach the nearer nodes only. Deleted for everyone, it goes as far again.
  • Locked, no other node may change or delete it; open, anyone may.
  • Only in meshctl, it is not sent at all: yours to see on the map, on any radio, MeshCore's too. It can be shared later; one shared cannot be taken back.
  • Its popup tells who shared and changed it, when it expires and on which channel; and edits it or deletes it for everyone, where your radio may, or here alone.
  • The pin under the map's three dots shows or hides them on the map, for each radio.

A waypoint may have a fence around it: a circle of 100 m to 5 km, or a box, the area the map shows as you open the form. Its author says whether a node going in or out is told of, of the favourites only, maybe. meshctl tells of your radio's own fences, and of another's once you ask, from its popup; the first time it places a node against one it only notes where it is.

A node going in or out of a fence is told of over the panel while it is open, notifications or not, and kept: the popup of its waypoint lists the latest. It is notified of too wherever notifications are on; and a waypoint shared new, where its channel's messages all are. Picked, the notice or the notification opens the map on it.

The firmware takes no more than one waypoint every ten seconds, changes and deletions included: meshctl says so before sending one too soon.

Chat

Channels, direct messages and, on MeshCore, rooms. meshctl keeps them while you are away, and each who writes in their colour.

  • A message's menu replies, reacts, copies, deletes it from meshctl (what went out on the mesh cannot be taken back) and shows its details: hops, signal, and which way each copy came.
  • @ and a name mentions someone, as the official apps do.
  • Silence, in the chat's menu, takes a conversation off the unread count and the notifications. On a Meshtastic channel it is the radio's own mute, so the official apps follow it.
  • Empty the channel, or delete a conversation, forgets its messages in meshctl; the channel stays on the radio.

On MeshCore, the radio writes privately only to its contacts: add a node first. A room sends its messages only to those logged in, with its password or as a guest.

Message marks

Each message you send carries a mark that says how far it went, the same on Meshtastic and MeshCore; holding the pointer over it says it in words.

MarkWhat it means
A clockNot in the radio yet: waiting its turn, as a radio's messages go one after another, a Meshtastic one's at least 2 s apart, whoever writes them; on MeshCore, until the radio takes it too.
One grey tickSent, with nobody known to have heard it. On a Meshtastic direct message it may also be on its way: a node passed it on, and the one it was sent to has not confirmed it yet. If that never comes, it stays so for good.
Two blue ticksGot. On a channel, another node was heard passing it on; to a node, that node said it received it.
A crossed antennaNobody heard it, after the radio's tries: it can be sent again.
A red alertIt failed otherwise; the mark says why.

Sharing in a chat

The + beside the message box sends a contact, a channel or where the radio is, as the official apps write them, so they read them too:

  • A contact, the radio's or any node's with its key, to be added with a tap.
  • A channel of the radio's, with its key: whoever gets it can listen to it.
  • Where the radio is: on Meshtastic, as its position packet, as precise as the channel shares it; on MeshCore, as coordinates.

What others share shows as a card, to see the node or add the channel; a place, on a small map. Coordinates written by hand (43.3623,-8.4115) show as a place too.

Notifications

meshctl's settings, Notifications. Off out of the box in a browser, on in the desktop and Android apps, which show them with their window closed too. A browser shows them while meshctl is open in some tab, once it lets it.

  • Where, for each radio, and in it each channel and its direct messages: Everything, Mentions (only when someone writes @ and its name) or Never.
  • How they look: with the text, or only who wrote it and where.

Never of the conversation in front of you, nor of a silenced one.

Automatic replies

meshctl's settings, Automatic replies: if someone writes this, answer with that, even with the panel closed. Start with a ping leaves one ready to try.

  • When someone writes one of some words, separated by commas: Just that, the whole message, or In a sentence, among its words. Case, accents and punctuation do not count.
  • Answer with a reaction with the hops it took (🎯 if direct, then 1️⃣, 2️⃣…, 🦘 beyond ten), a text, or both; and another text if it came direct, where the signal is the sender's own.
  • Where: for each radio, its direct messages, one node's, or each channel.

The text takes variables, filled in from the message answered:

VariableWhat it says
{LONG_NAME}Who wrote it, by their long name
{SHORT_NAME}Who wrote it, by their short name (not on MeshCore)
{NODE_ID}Who wrote it, by their node's id
{HOPS}The hops it took, as a number
{KANGAROO_HOPS}The hops it took, as kangaroos
{SNR}, {RSSI}The signal it came with (no RSSI on MeshCore)
{CHANNEL}The channel it came on
{DATE}, {TIME}When it is answered, in meshctl's time zone

A message is answered by the first reply that fits, in the order of the list. Each is signed with 🤖, unless you say not to, so other bots do not answer it. And none answers on a radio that hears its channel busy more of the time than you set: on a busy mesh, quiet is better.

Live

Every packet the radio hears, as it hears it: its kind, who sent it, on which channel, what it carries, its hops and signal, and on MeshCore the repeaters it came through. Filter it by kind, channel or node, and pause it to read.

A packet opened shows what it says as the rest of the panel does, over its text: a text whole; a position or a waypoint on a small map, with its altitude, speed and the like; telemetry in figures; who a node info or an advert says sent it, by its avatar; a traceroute's ways, hop by hop, and on a map; the neighbours a node hears; whether what a routing packet answers got there, or why not; a Store & Forward server's beat and figures. What it answers or replies to, when it is in the list, opens from it.

A radio's settings

The radio's user, LoRa, channels, device and modules, each field explained; what only matters with something on shows only then. They are read from the radio and saved to it when you say so, only while it is connected.

What a radio keeps secret, its channels' keys and passwords such as its Wi-Fi's or its MQTT server's, does not come with the rest: it shows only whether it is set, and is asked for when you show it, one at a time. A browser that never shows it never has it, and meshctl logs each time it hands one out.

Its admin keys are in Device, Security: up to three radios that may administer it over the mesh.

Administering a node

meshctl can read and change another Meshtastic node's settings over the mesh, through your radio, as the official apps do: its owner and role, its LoRa, its channels, every section of its configuration and modules, its admin keys and its fixed position; and have it reboot, shut down, forget the nodes it knows or go back to its factory settings.

The node has to take your radio as its admin first. Whoever has it at hand adds your radio's public key to its admin keys, up to three: in meshctl, under its radio's settings, Device, Security. Your radio's key is on its own node's page, and meshctl shows it too when a node does not take it.

Then, on the node's page, Administer opens the node's settings in a menu, as the official apps have them: who it is, its LoRa, its channels, each section of its configuration and of its modules. Opening the menu asks the node nothing; each screen asks it for what it shows as you open it, and keeps it, and Read again asks again for the one you are on. Every read and every change goes over the air, sealed to the node's key: a few seconds each, up to a minute when it is far. Its channels come one by one, eight requests; its status message, if its firmware has one, a moment after who it is. The heading's arrow, or back, goes to the menu, and from it to the node's page.

Nodes, under Device, changes the node's own list of nodes, not your radio's: send it one of the nodes your radio knows, or a contact's link, as a contact and a favourite (a repeater counts no hop for a favourite); or have it no longer favour one, ignore one that makes too much noise, or forget one. The node does not let its list be read, so what it has already is not shown, only whether it acknowledges each change. A node with no public key to trust cannot go as a contact.

Each change asks first, and those to its LoRa and its channels ask more firmly: if they no longer match your radio's, the node stops hearing it, and nothing over the mesh can undo it; only whoever has it at hand can. So can removing your key from its admin keys, or a factory reset.

The firmware's old admin channel, a channel named admin, is not used.

What meshctl keeps

meshctl's settings, Data: how much it takes, and for how many days it keeps packets, nodes the radio no longer has, and messages. Messages are kept for ever unless you say otherwise; each node's latest packet of each kind is kept however old, and a favourite is never forgotten.

It cleans on its own when it starts and once a day, or now if you ask. The same page lists what was left behind, conversations of channels and nodes that are gone, to forget them for good.

Appearance

The theme, light, dark or as the system is; the map's own theme; the map's type, OpenStreetMap's own tiles or vector maps, OpenFreeMap's, sharp at any zoom; the map's colours; the accent colour; and the language. They are kept in meshctl, not in the browser, so every browser and app shows it the same.

  • OpenStreetMap's tiles come in colour, or in black and white for the nodes to stand out.
  • Vector maps come detailed, vivid, or plain (in greys); each has its own dark version.
  • A browser that cannot draw vector maps, with no WebGL 2, shows OpenStreetMap's tiles instead, and says so: the setting stays for the others, unless you make the change permanent.