The module turned the modem UART's receive interrupt off whenever the library was closed. With the power pins wired, the modem sends about 500 bytes of boot lines as it comes up, to nobody; on the M5Stamp-C3 they overflowed the UART's 128-byte FIFO, after which begin heard only repeated fragments of old lines and failed with -EIO, and a second begin crashed the board in the library's line parser (docs/JSPR.md, section 8, item 2). The interrupt is now on from boot: bytes heard while the library is closed are thrown away, and when it opens part-way through a line the rest of that line is too. On the Stamp, 8 of 8 power cycles and 12 of 12 with 0 to 5 s between power on and begin, where 1 of 6 and none had worked. The fake modem's raw and before commands write any bytes, now or just ahead of its next reply, and test_a_boot_burst_while_closed sends a 680-byte boot burst before begin: that overflow on a board through the rig, a check that it does no harm on native_sim. docs/boards/stamp_c3.md records the first run under open sky: the constellation visible and 3 to 5 bars within seconds of begin. It also records what is open: on the Stamp's 5V the modem stopped answering 2 to 5 minutes after each begin, four times, indoors and out, most likely its supply; not yet measured, and the tests that would settle it are listed there. Not yet provisioned, and no message sent.
4.5 KiB
4.5 KiB
Changes
Unreleased
- The modem's UART is listened to from boot, not only while the library
is open. With the power pins wired,
rb9704 power onor a modem left talking afterrb9704 endsent its boot lines to nobody; they overflowed the M5Stamp-C3's 128-byte UART FIFO, after whichbeginheard only repeated fragments of old lines and failed with-EIO(1 in 6 after a power cycle, none at all after a pause), and a secondbegincrashed the board in the library's line parser. Bytes heard while the library is closed are now thrown away, and when it opens part-way through a line the rest of that line is too. On the Stamp: 8 of 8 power cycles, and 12 of 12 with 0 to 5 s between power on andbegin. - The fake modem's
rawandbeforewrite any bytes, now or just ahead of its next reply.test_a_boot_burst_while_closedsends a 680-byte boot burst beforebegin: the overflow above on a board through the rig, a check that it does no harm on native_sim.
0.2.0, 2026-10-25
- The shell sample over WiFi:
overlay-wifi.confputs the shell on telnet on any ESP32, joining the networkwifi cred addstored in flash at boot and rejoining it after a drop. - The shell sample on the M5Stamp-C3 (ESP32-C3, RISC-V): the modem on
uart1, GPIO4 and GPIO5. Its RGB LED shows the modem's state and its button begins, asks for the signal and ends.docs/boards/stamp_c3.mdhas its pins, the WiFi commands and the LED's colours. - The sample's overlays for the M5Stamp-C3, ESP32-S3-DevKitC, ESP32
DevKitC and NUCLEO-U575ZI-Q wire P_EN, I_EN and I_BTD; the wiring table
is in
docs/TESTING.md.no-control-pins.overlaytakes them out at build time, for a modem on TX and RX alone; the modem node is labelledrb9704in every overlay so it can. - A real 9704 on a microcontroller for the first time: the M5Stamp-C3,
on TX and RX, powered from the Stamp's 5 V. The 9704's USB-C and its
header share the modem's UART, and with USB-C plugged in a board on the
header cannot reach the modem; the README,
docs/CLOUDLOOP.mdanddocs/boards/stamp_c3.mdsay so. rb9704_cancel()andrb9704 cancel: ask the modem to abandon the message in flight;mo_donethen reports-ECANCELED. The status snapshot carries the in-flight message's id and start time. The fake modem'smo-holdandmo-releasestand in for a modem that has taken a message and gone quiet.rb9704_beginzeroes the library's count of queued MOs, whichrbBeginleaves behind and which would otherwise stop every send after a stuck one.rb9704 send: no fourthCONFIG_RB9704_MESSAGE_MAXbuffer; text goes straight through, hex into a buffer the size of a shell line.rb9704: a Cloudloop error, a bad token's{"error": ...}in a 200 reply included, and a port that will not open are one line and a non-zero exit, not a traceback or a quiet success; a one-wordjsprline is refused instead of raising.CONFIG_RB9704_POWERnow defaults on when the devicetree node haspower-gpios, as documented. The Kconfig default referred to a compat variable nothing defined, so the pins were never driven unless the option was set by hand.- A request whose own result was
-ETIMEDOUT, such as a begin whose modem never signalled booted, lost the request slot for good and every later call returned-EAGAIN. The caller's abandonment of a request is now reported apart from the request's result. - When the booted pin does not rise in time, the supply and enable pins are dropped again, so the next attempt starts from off.
rb9704: paths in its messages that belonged to the tree it came from.
0.1.0, 2026-10-09
The first release.
- Ground Control's RockBLOCK 9704 library v1.0.1, pinned untouched, built as a Zephyr module with a serial port on the devicetree node's UART.
- One worker thread owns the library; it sleeps until a request or a byte from the modem arrives.
<rb9704/rb9704.h>: begin, end, power, send, info, signal, each with a timeout; callbacks for a sent message, a received one, the signal and the provisioning; a status snapshot.- Provisioning asked again when the library's cached answer is missing a topic, or after the modem refuses one.
- The
rock7,rockblock-9704binding with optional power, enable and booted pins. - The
rb9704shell command and the shell sample, with overlays for native_sim, NUCLEO-U575ZI-Q, XIAO ESP32S3 and ESP32-S3-DevKitC. python/: therb9704command line, therb9704-fakefake modem, and tests for the Python binding, native_sim, boards and a real modem.