Files
MeshTerm/docs
Jean-Pierre MartineauandClaude Opus 5 338b5678de MeshTerm drives the older Cap LoRa868 as well as the Cap LoRa-1262
A user on a Cardputer Zero could not connect his Cap. MeshTerm stopped
at "nothing answers at 0x43 on /dev/i2c-1". His Cap is the Cap LoRa868,
which M5Stack made before the Cap LoRa-1262. The two boards carry the
same SX1262 on the same pins of the same header, and the same GNSS at
the same speed. The newer board adds an antenna switch, and the chip at
0x43 that turns the switch on. The older board has no switch, so it has
no such chip. MeshTerm asked for one on every Cardputer Zero.

A wiring now says whether its expander is required. pi4io_required is
true by default, so every other board keeps the rule that an expander
which does not answer is an absent board. The Cap sets it to false.

An absent expander is then the other revision of the board, and the
node must prove that before it accepts it. After the radio starts, the
node reads the version register of the chip and requires the name of an
SX126x. A bus with nothing on it reads as all ones or all zeros, and
the library can start on such a bus, so a Cap that is absent or badly
seated still reports that no radio answered.

The read of the expander also tells its failures apart now. Only the
errors that mean "nobody is at this address" count as absent. A bus
error or a refused read is a failure of its own, and never becomes the
older board quietly.

The two boards come from M5Stack's own pages, and from two other
Cardputer Zero applications that drive both. The pins, the TCXO, and
DIO2 are the same everywhere, and they agree with the wiring MeshTerm
already had.

One thing is open. The device screen names the row "Cap LoRa-1262"
before anything is connected, because nothing can know which Cap is
attached until the node runs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-23 00:01:19 -05:00
..
2026-11-20 17:54:25 -05:00

MeshTerm documentation

This folder has everything that does not belong on the front page. The README is the front door. It says what MeshTerm is, how to install it, and how to start a first session. This folder has the other documents, in four parts:

Folder What is in it
guide/ How to use MeshTerm: what each screen does, how to configure it, how to connect a companion, and terminals.
cli/ The manual of the command line, and a cookbook of one-line commands.
devices/ How to run MeshTerm on a handheld's own screen, with one manual for each device.
development/ How the code is laid out, how we write, and a historical survey.

Using MeshTerm

Read For
What MeshTerm does Each screen that the menu has, in the same groups as the menu, with the command that does the same job without the menu.
Configuring MeshTerm The difference between preferences and config, the device profiles, and all the files that MeshTerm keeps in ~/.meshterm.
When a companion does not connect Bluetooth pairing on each system, how to find the PIN, and each connection error that MeshTerm reports, with the action to take.
Terminals, icons, and the Windows console Why the icons and charts draw correctly on some terminals and not on others, and what MeshTerm does about it on Windows.

The command line

Read For
The command line The manual. Each subcommand and option, what each prints on the plain face and on the JSON face, the exit statuses, and recipes that use jq.
The CLI cookbook Common one-line commands, in groups by task. Use it when you want the form of a command and not its specification.

Running it on a handheld

Read these documents only if you want to run MeshTerm on a handheld's own screen. A MeshCore companion on USB, Bluetooth, or Wi-Fi does not need them.

Read For
MeshTerm on hardware Start here. It says which of the manuals below is the correct one for you, and what the scripts on the device do.
MeshTerm on the PicoCalc How to change a stock ClockworkPi PicoCalc into a Linux handheld that has a LoRa radio soldered inside: the shopping list, the change to a Luckfox Lyra core, Calculinux, and the radio.
MeshTerm on the uConsole A uConsole (CM4 or CM5) with the hackergadgets AIO LoRa board. Its SX1262 is on the computer's own SPI bus. MeshTerm can control it directly with --spi. Or a small bridge can make it a companion for a node that is always on.
MeshTerm on the Cardputer Zero M5Stack's Linux Cardputer, the standard model or the Lite: how to install MeshTerm from the app store, use the Cap LoRa-1262 radio, and try the layout in the desktop emulator.

Reading the code

Read For
How the code is laid out The layers of the code, and where to put a new feature.
How we write How we write: the ASD-STE100 rules and the glossary for docstrings, comments, and documents.
CLAUDE.md The real style guide: the terms, the UX standards, and the building blocks that you can use again. It is written for AI assistants, and it has the house rules for everyone.
CONTRIBUTING.md How to propose a change, the rules for the use of AI, the dev install, the three checks that a change must pass, and what happens to the licensing of your contribution.

Historical record

This is a survey of the code. We keep it, because a project that writes down its own problems is easier to trust than a project that does not. But it is a snapshot of one date, not a list of tasks. Some of the problems that it describes are corrected now, and the survey does not say which.

Read For
UI consistency survey Each other point of the CLAUDE.md UX standard. Six sweeps found nothing, and this is the useful result.

Also here

screenshots/ has the captures that the README shows. It also has the captures from which meshterm.net builds its landing page. Thus more than one place refers to each file in this folder. The folders terminal/, cardputer-zero/, and picocalc-lyra/ hold the same four screens on each platform. scripts/screenshots.py makes them from the demo mesh, and they are the same at each run (refer to scripts/README.md).