@pamoja/field-io
v0.1.18
Published
Field I/O: 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.
Readme
@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 package, and
pamoja is the whole framework in one.
npm install @pamoja/field-io| Capability | Package | 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 requests and replies with CRC-16/MODBUS for RS485 field devices |
| CAN and J1939 | @pamoja/can | CAN 2.0 and CAN-FD frames with 11- and 29-bit identifiers, plus J1939 decode and compose |
| I2C, SPI, and GPIO | @pamoja/gpio | I2C address frames with reserved-range checks, the four SPI clock modes, and active-high or active-low pins |
| Buses | @pamoja/core | The embedded-hal traits every driver takes, a bit-banged 1-Wire bus, scripted buses that play a part's side of a conversation, and the Linux backends over i2c-dev, spidev, and the GPIO character device |
The guides, with a worked TypeScript example for each, are at https://pamoja.molex.cloud/docs.
License
MIT
