
SB020100 - Smart Bridge LoRaWAN - MODBUS
UMAOC003 Rev E
USER MANUAL
Page 20 of 38
7.1.4. UPLINK 03 (Serial Modbus RS485 settings)
After receiving the command from the server requesting the Modbus serial communication settings
SmartBridge will perform in 3 minutes an uplink with this info. The format of the payload is described below
byte 1
byte 2
byte 3
byte 4
byte 5
byte 6
byte 7
byte 8
tt
bd_1
bd_2
bd_3 bd_4 nd
ns
pp
tt.
Type of frame (03 - Serial Modbus RS485 settings)
bd_1 – bd_2 – bd_3 – bd_4
. Baudrate adjusted for Modbus communication (32 bits)
Example
- bd_1 = 00d
- bd_2 = 01d
- bd_3 = 194d
- bd_4 = 00d
- baudrate = (((bd_1 * 256 + bd_2) * 256) + bd_3)*256 + bd4 =
= (((0 * 256 + 1) * 256) + 194) * 256) + 0 =
115200
Allowed values for baudrate are: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
nd
. Number of data bits (normally are 8 bits)
ns
. Number of stop bits. Values allowed are: 1 or 2
pp.
Control parity:
- 0 - None
- 1 - Odd
- 2 - Even