The SAIA driver communicates with Saia-Burgess PCD controllers (now SBC / Honeywell) using the S-Bus protocol, over UDP (Ether-S-Bus) or a serial line. It is similar in concept to Modbus: as master, the gateway reads and writes registers, flags, inputs, and outputs on the PCD controller; as station (slave), it answers the reads and writes of an S-Bus master.
The driver supports:
value = raw × scale + offset).
Create a new gateway and select the SAIA driver. Configure:
5050).udpMaster (default) to poll a PCD over Ether-S-Bus; the other types are described in section 2.1.The driver organizes addresses into 4 tabs:
%saia_reg:<number>). Used for analog values, counters, setpoints.%saia_flag:<number>). Used for boolean states, status bits.%saia_input:<number>). Typically read-only physical inputs on the PCD.%saia_output:<number>). Controllable digital outputs on the PCD.Insert an address by selecting the appropriate tab and entering the register/flag/input/output number.
R (register), F (flag), I (input) or O (output) and whose address is a number. Lines without a numeric address are skipped.The file is read by column position: column 1 = symbol name, column 2 = type, column 3 = address, column 4 = comment. The description of each address is the symbol name followed by the comment.
Imported addresses are polled every 10 s (polling = 10000). Registers are imported as int16BE: change the datatype (for example to int32BE or floatBE) for the registers that hold 32-bit values.
The Monitor button of the address panel opens a live view of the S-Bus telegrams sent (TX) and received (RX) by the gateway: time, station, command, first address, quantity, decoded data, error and raw frame. The monitor stops by itself after 5 minutes.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name for this SAIA gateway instance. |
| Cluster ID | cluster | Cluster identifier (integer). Use 0 for single-gateway setups. |
| Type | type | udpMaster (default): the gateway polls a PCD over Ether-S-Bus (UDP). serialMaster: the gateway polls a PCD over a serial S-Bus line. udpSlave / serialSlave: the gateway is itself an S-Bus station that answers the reads and writes of a master. |
| Host | host | IP address of the PCD (udpMaster only). Default: 192.168.1.99. |
| Port | port | UDP port. udpMaster: port of the PCD; udpSlave: port the gateway listens on. Default: 5050. |
| Serial Port | serialPort | Serial interface of the device (serial types only). |
| BaudRate | baudRate | 1200 to 115200 baud (serial types only). Default: 9600. The line is used in S-Bus Data mode, 8 data bits, no parity, 1 stop bit. |
| Station | unitId | S-Bus station number. Master types: station of the PCD to poll. Slave types (label Station (this box)): station number the gateway answers to. Default: 1. |
| Address Offset | addressOffset | Signed integer added to every address number (registers, flags, inputs, outputs) before it is sent on the bus. Default: 0. |
| Request Timeout (ms) | requestTimeout | Maximum time to wait for the answer of the PCD (master types only). Default: 3000. |
{
"type": "udpMaster",
"host": "192.168.1.99",
"port": 5050,
"unitId": 1,
"addressOffset": 0,
"requestTimeout": 3000
}
Step-by-step setup of a station, and of S-Bus over a serial line: Using the gateway as an S-Bus station and S-Bus over a serial line.
With udpSlave or serialSlave the gateway keeps registers, flags, inputs and outputs in memory and answers the master. Write a value to a %saia_reg: or %saia_flag: address (for example with a route) to make it readable by the master. When the master writes a register, a flag or an output that has no address yet, the address is created automatically (registers as int32BE), so that the written value can be routed to another protocol.
| Type | Format | Example | Description |
|---|---|---|---|
| Register | %saia_reg:<number> |
%saia_reg:100 |
32-bit data register |
| Flag | %saia_flag:<number> |
%saia_flag:200 |
Binary flag (0 or 1) |
| Input | %saia_input:<number> |
%saia_input:0 |
Binary input (read-only) |
| Output | %saia_output:<number> |
%saia_output:0 |
Binary output |
| Label | JSON Key | Description |
|---|---|---|
| Name | name | The SAIA address (register/flag/input/output number). |
| Description | description | Optional description. |
| Polling | polling | Read frequency. Accepts milliseconds (e.g. 1000) or cron expressions (e.g. */5 * * * * *). Multiple schedules can be combined with ;. Default: 1000. |
| Datatype | datatype | The data encoding format (see section 3.3). Only visible for registers (flags/inputs/outputs are always bit). Default: int16BE. |
| Scale | scale | Multiplication factor applied to the raw value. Default: 1. Only visible for registers. |
| Offset | offset | Value added after scaling. Default: 0. Only visible for registers. |
| Log | log | Logging mode: never, on update, always, or a duration in milliseconds. |
The SAIA driver supports a comprehensive set of datatypes for interpreting register values.
A PCD register is 32 bits wide. The datatype selects how these 32 bits are decoded:
int32BE, uint32BE, floatBE, bcd32BE, mod10000_2_BE, hex_2, ascii_2, ...) use exactly one register.int16BE, uint16BE, int8, bcd16BE, hex_1, ...) only keep the lowest 8 or 16 bits of the register. With the default int16BE, a register value above 32767 is therefore read incorrectly: select int32BE to read a full integer register.int64BE, doubleBE, mod10000_4_BE, hex_4, ...) use two consecutive registers; hex_8 and ascii_8 use four.| Datatype | Size | Range | Description |
|---|---|---|---|
int8 |
8-bit | -128 to 127 | Signed byte |
uint8 |
8-bit | 0 to 255 | Unsigned byte |
int16BE |
16-bit | -32768 to 32767 | Signed integer, big-endian (default) |
int16LE |
16-bit | -32768 to 32767 | Signed integer, little-endian |
uint16BE |
16-bit | 0 to 65535 | Unsigned integer, big-endian |
uint16LE |
16-bit | 0 to 65535 | Unsigned integer, little-endian |
int32BE |
32-bit | ±2.1 billion | Signed 32-bit, big-endian (one register) |
int32LE |
32-bit | ±2.1 billion | Signed 32-bit, little-endian |
uint32BE |
32-bit | 0 to 4.3 billion | Unsigned 32-bit, big-endian |
uint32LE |
32-bit | 0 to 4.3 billion | Unsigned 32-bit, little-endian |
int64BE / int64LE |
64-bit | ±9×10¹⁵ | Signed 64-bit (spans 2 registers) |
uint64BE / uint64LE |
64-bit | 0 to 9×10¹⁵ | Unsigned 64-bit |
| Datatype | Size | Description |
|---|---|---|
floatBE / floatLE |
32-bit | IEEE 754 single precision (one register) |
doubleBE / doubleLE |
64-bit | IEEE 754 double precision (spans 2 registers) |
| Datatype | Size | Range | Description |
|---|---|---|---|
bcd8 |
8-bit | 0 to 99 | BCD encoded byte |
bcd16BE / bcd16LE |
16-bit | 0 to 9999 | BCD encoded 16-bit |
bcd32BE / bcd32LE |
32-bit | 0 to 99999999 | BCD encoded 32-bit |
| Datatype | Size | Description |
|---|---|---|
bit |
1-bit | Binary value (0 or 1). Used for flags, inputs, outputs. |
mod10000_2_BE / _LE |
32-bit | Two 16-bit words of one register: value = word1 + word2 × 10000 |
mod10000_3_BE / _LE |
48-bit | Three 16-bit words with mod 10000 encoding |
mod10000_4_BE / _LE |
64-bit | Four 16-bit words (two registers) with mod 10000 encoding |
hex_1 to hex_8 |
16-128 bit | Raw hexadecimal string of N × 16 bits (hex_2 = one full register) |
ascii_1 to ascii_8 |
16-128 bit | ASCII string of 2 × N characters (ascii_2 = one register) |
Additional variants are available:
_sw (swapped words) — reverses the order of the 16-bit words of the value. Available for datatypes of 32 bits or more._sb (swapped bits) — reverses the order of all the bits of the value. Available for every datatype except bit and ascii_N.int32BE_sw_sb.For register addresses, the final value is:
value = raw × scale + offset
This is useful for converting raw register values to engineering units. For example, a register storing temperature in tenths of degrees with scale = 0.1 and offset = 0 converts 225 to 22.5°C.
0 or empty: the address is not polled; it is only read on demand.%saia_... address that does not exist yet (for example as the destination of a route) creates it automatically, with polling 0 (registers are created as int16BE: create the address beforehand with the right datatype, see 3.3).
The driver uses the following Ether S-Bus commands:
| Command | Code | Description |
|---|---|---|
| Read Flags | 2 | Read binary flag values |
| Read Inputs | 3 | Read binary input values |
| Read Outputs | 5 | Read binary output values |
| Read Registers | 6 | Read 32-bit register values |
| Write Flags | 11 | Write binary flag values |
| Write Outputs | 13 | Write binary output values |
| Write Registers | 14 | Write 32-bit register values |
Note: Inputs are read-only — the driver does not support writing to inputs (command 3 only).
| Property | Registers | Flags | Inputs | Outputs |
|---|---|---|---|---|
| Readable | Yes | Yes | Yes | Yes |
| Writable | Yes | Yes | No | Yes |
| Routable | Yes | Yes | Yes | Yes |
| Loggable | Yes | Yes | Yes | Yes |
missing license: the SAIA driver requires the Saia driver licence (or a Full or Driver Sauter Full licence).!timeout: the PCD did not answer within Request Timeout. Check the IP address, the UDP port (5050), the station number and that Ether-S-Bus is enabled on the PCD (serial types: the serial port, the baud rate and the station number). If the gateway receives nothing but timeouts for 60 s, the driver restarts.