Skip to main content

Modbus — Configuration

Configuration Parameters

In addition to the GW4 configuration parameters the add-on has the following specific parameters:

Modbus Reading

KeyTypeDefaultDescription
modbusInternalAddressNumber250Modbus address for internal gateway sensors
addonAccumulateNumber1Readouts to accumulate before upload (1–60)
modbusCmdConfStringModbus interface parameters and list of commands
loraFormatNumber5LoRaWAN payload format
PowerOnDelayNumber1000Wait time in ms before executing commands (0–60000)
PwrAfterBrownoutDurNumber0Seconds to power Modbus after first power-on (0–3600)

modbusCmdConf

Specifies the interface parameters and list of Modbus requests, separated by :. Interface parameters are A (ASCII) or R (RTU), baudrate, and serial settings, separated by ,. See Modbus Config Generator for details.

Set to empty to disable Modbus functionality.

Example — RTU, 9600 baud, 8N1, two requests to device address 1, one to internal address 250:

R,9600,8N1:010300020002,010300060002,FA0400050001

loraFormat

Specifies the LoRaWAN payload format for Modbus uplinks. Introduced with firmware v1.6.0.

ValueFormat
1Verbose
4Compact with timestamp
5Compact without timestamp (default)