Files
MeshTerm/meshterm
Jean-Pierre MartineauandClaude Opus 5 bf79f9975c A silent expander gets more tries, and a failed start says more in the log
A user on a Cardputer Zero could not connect his Cap. MeshTerm stopped
with "nothing answers at 0x43 on /dev/i2c-1", and no log said more than
the dialog did. His Cap is the older Cap LoRa868, which carries no
expander at all. Support for that board follows separately. What this
commit changes is what MeshTerm knows when the next board stays silent.

The expander gets more than one try. The first read still comes after
POWER_SETTLE_S, which is sufficient on the boards we have. A board with
a slower power rail refuses that read and answers a moment later, and
that must not read as an absent board. The node now tries again until
PI4IO_WAIT_S is spent. A board that is ready still answers at once, so
nothing waits.

The log of that failure carries the error of the bus. The sentence the
user reads cannot carry it, because a refused address and a broken bus
are the same thing to that user. They are not the same thing to us, and
only the log can tell them apart afterwards.

The node also writes its wiring to its own log. A board problem is
reported with that file, and the wiring can come from a profile that
the reporter wrote, so the file must say which pins the node used.

The startup picker writes a failed connection to meshterm.log at
WARNING. It wrote nothing before, on the reasoning that the dialog
already says all that the log would say. That holds while the dialog is
up. A user who reports a problem sends the log file long after it is
gone.

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