rbtest: timed small messages, one 50 kB message, and MT checks

`rbtest` in the shell sample sends test messages with a 16-byte header
and a counting ramp, so every byte can be checked at the other end.
`rbtest small` sends a few 32-byte messages and logs how long each took,
`rbtest large` sends one of up to 50000 bytes and only with `confirm`,
and `rbtest mt` shows the last MT and checks it. `rb9704 pattern make`
and `check` in python/ make and check the same messages.

rb9704_send_fill writes a message straight into the module's buffer, so
a large generated one is not held twice. overlay-large.conf raises the
limit to 50000 bytes; on the M5Stamp-C3 that links on the USB console
and not beside WiFi, which overflows by 11 kB.

Run against the fake modem on native_sim only; not yet on a real modem.
This commit is contained in:
scottp committed 2026-10-27 11:07:53 +11:00
1 parent 9f68104ac6
commit 144efe683e
15 files changed
+798 -6

No files matched your search

+2
View File
@@ -44,6 +44,8 @@ macOS, Windows). Without the `modem` extra, the fake modem, `jspr`,
| `cloud msg ID` | | one message record and its Lingo form |
| `cloud mt --text/--hex/--file [--thing ID]` | airtime | queue an MT on `IMT_TOPIC_RAW` |
| `cloud status ID` | | an MT's delivery status |
| `pattern make [--size N] [--out F]` | | an `rbtest` test message, as hex or a file, to queue with `cloud mt` |
| `pattern check --hex/--b64/--file` | | check every byte of one, as Cloudloop shows it |
The verbs that cost airtime print the size and ask; `--yes` skips the
question and is the only way to send from a script.