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.
This commit is contained in:
scottp committed 2026-10-21 22:43:05 +11:00
1 parent 509b9b5b6d
commit f97fcab74b
13 files changed
+235 -34

No files matched your search

+6 -1
View File
@@ -747,7 +747,12 @@ Everything else is ignored.
ignores the failed add (`queued >= 0`, `src/rockblock_9704.c:400`) and
**re-sends the old stuck message** with a new `PUT messageOriginate`. A late
`299 messageOriginateStatus` for the old id, read by any later `rbPoll`,
clears it.
clears it. The async path has the same hole with no timeout at all: the
MO is removed only by a final status, and `rbCancelMessage` is the one
way to ask for one. `rbEnd` then `rbBegin` empties the queue
(`imtQueueInit`) but not `moQueuedMessages`, so with the count still 1
the next `rbSendMessageAsync` queues (`moQueuedMessages == 0` is false)
and never transmits. The Zephyr module zeroes the count after `rbBegin`.
9. **`200 messageOriginate` alone means started**, whatever
`message_response` says (4.3 step 2).
10. **`rbReceiveMessage` has no timeout** once an MT has been announced.