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.
37 lines
1.1 KiB
TOML
37 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=64"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "rockblock9704-tools"
|
|
version = "0.1.0"
|
|
description = "Host tools for the RockBLOCK 9704: a command line for the modem and Cloudloop, and a fake modem for testing"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
authors = [{ name = "Scott Penrose", email = "scottp@dd.com.au" }]
|
|
requires-python = ">=3.10"
|
|
dependencies = ["pyserial>=3.5"]
|
|
|
|
[project.optional-dependencies]
|
|
# Ground Control's binding of the C library, for the verbs that use it.
|
|
# Pinned with the C library in ../west.yml (v1.0.1; 1.0.2 is the first
|
|
# Python release after it).
|
|
modem = ["rockblock9704==1.0.2"]
|
|
test = ["pytest>=7"]
|
|
|
|
[project.urls]
|
|
Homepage = "https://www.dd.com.au/"
|
|
Repository = "https://github.com/SH3D/rockblock9704-zephyr"
|
|
Issues = "https://github.com/SH3D/rockblock9704-zephyr/issues"
|
|
Changelog = "https://github.com/SH3D/rockblock9704-zephyr/blob/main/CHANGELOG.md"
|
|
|
|
[project.scripts]
|
|
rb9704 = "rb9704tools.cli:main"
|
|
rb9704-fake = "rb9704tools.fakemodem:main"
|
|
|
|
[tool.setuptools]
|
|
packages = ["rb9704tools"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|