Skip to main content

pamoja-field-io

The wires a gateway actually has: framed serial packets, an RS485 request and the reply it draws, a CAN frame, the address a chip answers on, and the bus that carries a driver to the part.

One install for the 5 capabilities of this domain. Each is also its own distribution, and pamoja is the whole framework in one.

pip install pamoja-field-io
from pamoja.field_io import serial
Capability Module What it covers
Serial framing pamoja.serial SLIP and COBS byte stuffing with streaming decoders, so a UART byte stream carries discrete packets
Modbus RTU pamoja.modbus Modbus RTU for RS485 field devices: a client that polls them over a serial port with the line's timing, simulated devices that answer as real ones do, and the frames with their CRC-16/MODBUS
CAN and J1939 pamoja.can CAN 2.0 and CAN FD frames with 11- and 29-bit identifiers, J1939 decode and compose, and a node on a bus, simulated or a Linux interface through SocketCAN
I2C, SPI, and GPIO pamoja.gpio I2C address frames with reserved-range checks, the four SPI clock modes, active-high or active-low switches and contacts, and GPIO lines opened on a Linux board
Buses pamoja.hal The embedded-hal traits every driver takes, a bit-banged 1-Wire bus, simulated parts and scripted buses that stand in for hardware, the Linux backends over i2c-dev, spidev, and the GPIO character device, one I2C bus and one serial port a program and its drivers share, and delays that sleep or only count

The guides, with a worked Python example for each, are at https://pamoja.molex.cloud/docs.

License

MIT

Release files for pamoja-field-io 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pamoja-field-io 0.2.0
File Size Uploaded
pamoja_field_io-0.2.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pamoja-field-io 0.2.0
File Interpreter ABI Platform
pamoja_field_io-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / pamoja_field_io-0.2.0.tar.gz

Download URL pamoja_field_io-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ee41779fd28de7f8b0a3cdec18b7afe4f5d526f7c70e81230e4a473916a1c68c
BLAKE2b-256 checksum
How to use checksums
1b995573344301be77ce4a0ad2d78cde6734d2540730b5881a88f84622d8e5bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / pamoja_field_io-0.2.0-py3-none-any.whl

Download URL pamoja_field_io-0.2.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e5b6e296d01402254a4dd5afed764903415d8c9e78fb4b0dc296f4b6971f715
BLAKE2b-256 checksum
How to use checksums
4cd8793c23108f219da00e1ea42b646b53a0a83f3c2448976710aa64d6a06103
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.18

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page