Commit Graph
4 Commits
Author SHA1 Message Date
scottp acd4263a06 0.4.0: builds on Zephyr 4.5 as well as 4.4
Zephyr 4.5 made uart_irq_update() return void, and the receive
interrupt used it as its loop condition, so 0.3.0 does not compile on
4.5. It is now called at the top of each pass, as Zephyr's own samples
do.

From 4.5 the ring buffer is header-only, and CONFIG_RING_BUFFER brings
back the deprecated legacy implementation. CONFIG_RB9704 selects it only
when KERNELVERSION is below 4.5. The rig bridge reads its ring with
ring_buf_peek() and ring_buf_get() in place of the claim API, and gates
the option the same way in a Kconfig of its own.

Tested on v4.4.0 and v4.5.0: 37 pass and 2 skip against the fake on
native_sim, and the sample, rigs and bridges build for every board.

Also in this release, from main since 0.3.0: rbtest in the shell sample,
rb9704_send_fill, and the Stamp-C3 overnight run. The README has a
section on the Zephyr versions; the standalone manifest pins v4.5.0;
the Python tools are 0.4.0.
2026-11-26 16:21:03 +11:00
scottp f97fcab74b Cancel the message in flight, and the small things from the review
rb9704_cancel() and `rb9704 cancel` ask the modem to abandon the MO in
flight; the modem's final status reaches mo_done as -ECANCELED. The
library's async path has no timeout, so this is how an application
frees a modem that has gone quiet mid-send. The status snapshot carries
the in-flight message's id and start time for the application to decide
with.

rb9704_begin zeroes moQueuedMessages: rbBegin empties the queue but not
the count, and a count above zero makes every later send queue without
transmitting.

The fake modem's mo-hold and mo-release stand in for a modem that has
taken a message and said nothing more; a test drives cancel through it.

Also: the shell's send buffer is a shell line, not a fourth message
buffer; the bridge's TX-disable race has a comment; the CLI turns a
Cloudloop error (a bad token's 200 reply included), an unopenable port
and a one-word jspr line into one line and exit 1; conftest reads
request.node; pyproject uses the current license spelling.
2026-10-21 22:43:05 +11:00
scottp 97affae86c Who made it, and why: author, credits, licence and support
The README says who wrote it and the two projects it was built for, WII6
and OGLAS, with their sites; credits Ground Control for the modem and
the library that does the protocol work; and gives the licence with
contact details, where to report issues and what helps in a report, and
that it is not a Ground Control product. The licence, every source file
and the Python package's metadata carry the copyright and email; the
package lists its homepage, repository, issues and changelog.
2026-10-09 13:16:30 +11:00
scottp dbed9bbc88 The shell sample, and a two-board rig for testing on hardware
samples/shell is `rb9704` on the shell with callbacks that print what
arrives, a CRC-32 and the start of each message from the network. Board
overlays for native_sim (the modem a host serial port, a pty or a real
9704 on USB), NUCLEO-U575ZI-Q, XIAO ESP32S3 and ESP32-S3-DevKitC.

tests/rig/bridge copies bytes between a board's USB serial port and a
UART, so two boards wired together stand in for a USB-serial adapter: one
runs the sample, the other bridges its modem UART to the host, where the
fake modem answers. Overlays for a Nucleo and a XIAO, either way round.
2026-10-09 12:48:16 +11:00