<mbmode> modbus serial type:
0 Modbus RTU mode (default)
1 Modbus ASCII
<brate> baud rate of serial port (bps): 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000,
57600, 115200 (default)
<frame> character framing setting of serial port:
"8N1" 8 data bits, parity none, 1 stop bit (default)
"8O1" 8 data bits, parity odd, 1 stop bit
"8E1" 8 data bits, parity even, 1 stop bit
"8N2" 8 data bits, parity none, 2 stop bits
"7N1" 7 data bits, parity none, 1 stop bit
"7O1" 7 data bits, parity odd, 1 stop bit
"7E1" 7 data bits, parity even, 1 stop bit
"7N2" 7 data bits, parity none, 2 stop bits
Example:
Command Response
AT+MODBUSCFG? +MODBUSCFG: 0,115200,"8N1"
OK
Note: default settings.
AT+MODBUSCFG=1,9600,"8E1" OK
Note: change the serial settings to ASCII, 9600 baudrate, 8 data
bits, parity even, 1 stop bit
18.3 Examples
Setup the M100 to act as a ModbusTCP to ModbusRTU converter:
1. Select Modbus converter mode: AT+MODESELECT=2
2. Connect to Internet the usual way.
(a) Set APN: AT+IPGPRS=1,<APN>
(b) Connect to Internet: AT+IPCONNECT=1,1
(c) Verify your gateway public IP address: AT+CGPADDR=1
3. Configure the properties of the bus (serial side): AT+MODBUSCFG=0,9600,"8N1"
Modbus Master server will reach the modem on its public IP address direclty using the default 502 TCP port. Once
ModbusTCP frame are received from the Modbus Master server, the M100 will convert the frame to ModbusRTU and
send it to the serial device, get the response, and convert it back to ModbusTCP to the server.
86 Confidential, the whole document is the sole property of Maestro Wireless Solutions ltd.
support@maestro-wireless.com