pro-os-connect-py
Python library and command-line tool for monitoring and controlling Donaldson BOFA fume extractors over the Pro OS Connect TCP protocol.
- Read telemetry: flow rate, filter pressures, blockage levels, alarms, pump state
- Start and stop the pump, change the setpoint
- Read and set the device clock
- Query device information: software version, serial numbers, network configuration
- No dependencies beyond
crccheck
Disclaimer
The initial working version of this library was written by a human. It was then refactored and improved with the help of Claude Code.
Installation
pip install pro-os-connect-py
Requires Python 3.10 or newer. The device must be reachable on TCP port 2345.
Command-line tool
pro-os-connect-cli --device bofa.local get_telemetry
timestamp=109951839
alarms=0
setpoint=370
flow_rate=9.2
combined_pressure=12.5
pre_pressure=11.1
inlet_pressure=15.4
pump_level=0
real_combined_blockage=0
real_pre_blockage=0
real_inlet_blockage=0
compensated_combined_blockage=0
compensated_pre_blockage=0
is_running=0
Commands
| Command | Description |
|---|---|
get_telemetry |
All telemetry fields |
get_setpoint |
Current target flow rate |
set_setpoint VALUE |
Set the target flow rate (0–4294967295) and print the new value read back from the device |
is_running |
1 if the pump is running, 0 otherwise |
pump_start |
Start the pump |
pump_stop |
Stop the pump |
get_uptime |
Device uptime in seconds |
get_time |
Device clock |
set_time |
Set the device clock to this computer's local time |
get_software_version |
Firmware version |
get_serial_number |
Device serial number |
get_cpu_serial_number |
CPU serial number (hex) |
get_network_configuration |
Network configuration |
get_protocol_version |
Pro OS Connect protocol version |
echo [--payload TEXT] |
Check connectivity and measure the round-trip time |
reboot |
Reboot the device |
Options
| Option | Description |
|---|---|
-d, --device HOST |
Hostname or IP address of the device (required) |
-j, --json |
Output JSON instead of text |
-p, --precision N |
Decimal places for telemetry values (default: 1) |
-l, --log-level LEVEL |
Log to stderr at ERROR, WARNING, INFO or DEBUG (DEBUG shows raw packets) |
Global options go before the command:
pro-os-connect-cli -d bofa.local --json get_time
{
"time": "2026-11-09T16:14:04"
}
In JSON mode, commands that return a single value use the command name without its
get_/is_ prefix as the key ({"time": ...}, {"running": false}), and commands
that perform an action return {"success": true}. Errors are written as
{"success": false, "error": "..."}. In text mode, errors go to stderr.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Invalid command-line arguments |
| 5 | Request error: the connection failed or the device did not respond in time |
| 6 | Response error: the response was invalid, could not be decoded, or reported an error status |
| 7 | Internal error: the device responded with an unsupported command |
| 8 | Other client error |
| 9 | Command failed: invalid command, incorrect echo response |
Library
from pro_os_connect import ProOSConnect, ProOSConnectError
poc = ProOSConnect("bofa.local")
try:
telemetry = poc.get_telemetry()
print(f"Flow rate: {telemetry.flow_rate:.1f}, running: {bool(telemetry.is_running)}")
poc.set_setpoint(300)
poc.pump_start()
except ProOSConnectError as e:
print(f"Device error: {e}")
finally:
poc.disconnect()
ProOSConnect(host, port=2345, timeout=2.0) connects on the first request and keeps
the connection open for later requests until disconnect() is called. If a request
fails, the connection is closed and the next request opens a new one.
Methods
| Method | Returns |
|---|---|
get_telemetry() |
TelemetryFields |
get_uptime() |
int, seconds |
is_running() |
bool |
pump_start(), pump_stop() |
bool |
set_setpoint(setpoint: int) |
bool |
get_time() |
datetime |
set_time(date_obj: datetime) |
bool, sent without fractional seconds or time zone |
get_software_version() |
str |
get_serial_number() |
str |
get_cpu_serial_number() |
str, hex |
get_network_configuration() |
dict |
get_protocol_version() |
int |
echo(test_payload: bytes | None = None) |
bool, whether the device sent the payload back unchanged |
reboot() |
bool |
connect(force=False), disconnect() |
Manage the connection explicitly |
Errors are raised as exceptions (see below).
TelemetryFields is a dataclass with these fields:
| Field | Type | Notes |
|---|---|---|
timestamp |
int |
Device uptime in hundredths of a second |
alarms |
int |
Alarm flags (bit map) |
setpoint |
int |
Target flow rate [m³/h] |
flow_rate |
float |
Actual flow rate [m³/h] |
combined_pressure, pre_pressure, inlet_pressure |
float |
[Pa] |
pump_level |
int |
Drive level (0 - 1000) |
real_combined_blockage, real_pre_blockage, real_inlet_blockage |
int |
[%] |
compensated_combined_blockage, compensated_pre_blockage |
int |
Blockage of the combined filter/pre-filter after accounting for the expected pressure drop across a new filter [%] |
is_running |
int |
1 while the pump is running, 0 when stopped |
Errors
All errors raised by ProOSConnect derive from ProOSConnectError:
ProOSConnectError
├── ProOSConnectRequestError sending the request failed
│ ├── ProOSConnectConnectError connection refused, closed or broken
│ └── ProOSConnectTimeoutError no response within the timeout
├── ProOSConnectResponseError invalid response, undecodable payload or error status
└── ProOSConnectInternalError response command not supported by the library
Protocol notes
The device's payload checksum is CRC-32/MPEG-2 computed over the data zero-padded to a multiple of 4 bytes, as a 32-bit hardware CRC unit would compute it. A standard CRC-32/MPEG-2 only matches when the length is already a multiple of 4. The device silently ignores requests with any other checksum.
Development
uv sync
uv run pytest
The tests do not need a device: they run against a simulated device on localhost.
License
MIT
Metadata
Release files for pro-os-connect-py 0.9.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pro_os_connect_py-0.9.5.tar.gz | 29.7 kB | With provenance | Details for pro_os_connect_py-0.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pro_os_connect_py-0.9.5-py3-none-any.whl | Python 3 | none | any | Details for pro_os_connect_py-0.9.5-py3-none-any.whl |
Total release size: 46.6 kB
Release files / pro_os_connect_py-0.9.5.tar.gz
| Download URL | pro_os_connect_py-0.9.5.tar.gz |
|---|---|
| Size | 29.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e0b216a17cc7232178be00e50ab0b4778553723199528492eeef9a465347914
|
|
BLAKE2b-256 checksum How to use checksums |
dc388eedc19f58591a75b78e4024461e731ebae2a21f16135aba253792f8a97f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logRelease files / pro_os_connect_py-0.9.5-py3-none-any.whl
| Download URL | pro_os_connect_py-0.9.5-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09bc66fb5799d1366e516c64d50395a2dd2d6d3a2910befd82f4aa520cb5a70b
|
|
BLAKE2b-256 checksum How to use checksums |
b86375eb230569526bbb0b5c476d32238ad7db5d6dd9b41ec2e32138c7a48b69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for pro-os-connect-py 0.9.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pro_os_connect_py-0.9.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.