0.3.0: provisioning and messages to Cloudloop work, and P_EN is active low

The M5Stamp-C3 under open sky, driven over WiFi from its shell, found
the modem provisioned with topics 244 and 313 to 317 and sent two
messages on topic 244, 16 and 17 bytes. Each was with the network 6 to
10 s after the modem took it, and both arrived in Cloudloop whole.
docs/CLOUDLOOP.md, "What has run", records how Cloudloop shows one: the
same bytes in Base64 and in hex.

P_EN is the RockBLOCK's supercapacitor charge enable, header pin 6, and
it is active low. The sample's overlays had it GPIO_ACTIVE_HIGH, so every
begin switched the charger off: the modem ran down and went silent 2 to
5 minutes later, four times indoors and out. The overlays, the README
and the binding now say GPIO_ACTIVE_LOW. With P_EN wired again on the
new firmware the modem stayed up past every earlier drop and sent the
second message.

The control pins follow Ground Control's start-up and shutdown
sequence. I_EN starts and stops the modem and is what makes the pins
present (CONFIG_RB9704_POWER follows iridium-enable-gpios); P_EN and
I_BTD are optional beside it. Shutdown drives I_EN low and waits for
I_BTD to go low before anything else, as start-up waits for it to go
high, so I_EN never moves back before I_BTD has followed. P_EN is driven
only while the modem runs and released to an input while it is off.

docs/boards/stamp_c3.md has the header's pin numbers, V_IN+ against
V_BATT, and P_EN as the cause of the drops. The module, the sample and
the Python tools are 0.3.0.
This commit is contained in:
scottp committed 2026-10-25 22:48:11 +11:00
1 parent 0cda7335d6
commit a70e933b71
17 files changed
+265 -140

No files matched your search

+26 -2
View File
@@ -7,8 +7,10 @@ command line in `python/` (`python/README.md` has every verb).
Written 2026-10-09 from Ground Control's and Cloudloop's documentation
and the library's source. `rb9704 info` and the free JSPR verbs have run
against a real 9704 since; the account, provisioning and airtime steps
have not been tried yet.
against a real 9704 since. Provisioning and MO messages to Cloudloop work
(2026-10-25), from the Zephyr module on an M5Stamp-C3 rather than from
this command line; "What has run" at the end says how. MT has not been
tried yet.
## What there is
@@ -197,3 +199,25 @@ version, SIM, operational state). In order of likelihood:
'GET simStatus {}'` shows the modem's own answers; a 4xx code names
the problem (`409` unauthorized, `410` SIM not configured, `418` not
provisioned).
## What has run
On 2026-10-25, a RockBLOCK 9704 (firmware v1.5.14) on the header pins of
an M5Stamp-C3 running the shell sample, under open sky, driven over WiFi
by `rb9704 send` in the Zephyr shell (`boards/stamp_c3.md`):
- **Provisioning.** Already done when first asked: topics 244 (RAW) and
313 to 317, the Cloudloop colours. The library only asks the modem
when it is about to send, so the first send is when the module, and
`rb9704 status`, learn the topics.
- **MO.** Two messages on topic 244, `Stamp-C3 says hi` (16 bytes) and
`Stamp-C3 P_EN low` (17 bytes). Each was with the network 6 to 10 s
after the modem took it, with 3 to 4 bars, and each arrived in
Cloudloop whole.
- **How Cloudloop shows a message.** The same bytes twice: the message
data in Base64 (`U3RhbXAtQzMgUF9FTiBsb3c`, the padding `=` left off)
and the payload in hex (`5374616D702D433320505F454E206C6F77`). The
CRC the library adds on the way out is checked and gone.
Not yet: MT, a session, and this command line's own `provision` and
`send` against a real modem.