C
hengdu Ebyte Electronic Technology Co., Ltd
Copyright ©2012–2020
,
C
hengdu Ebyte Electronic Technology Co., Ltd
13
<type>: 0 means that the registeration packet type is in HEX format, and 1 means that the registeration packet type is in
ASCII code (string) format.
<data>: The content of the registeration packet data, the maximum length is less than 40, and the default value is "Ebyte
Register packet".
3.13 Modbus RTU/TCP conversion function
3.13.1 Function description
After the Modbus RTU/TCP conversion function is turned on, when receiving Modbus RTU format data, it will
automatically convert to Modbus TCP format data and print it through the serial port. When receiving Modbus TCP
format data, it will automatically convert to Modbus RTU format data and print it through the serial port. In the
transmitting state, when the serial port receives Modbus RTU format data, it will automatically convert to Modbus TCP
format data and send it wirelessly. When the serial port receives Modbus TCP format data, it will automatically convert
to Modbus RTU format data and sent wirelessly.
3.13.2 Modbus RTU/TCP enable configuration
AT command
Response
AT+MODBUS=<enable>,<Id> \r\n
OK
AT+MODBUS \r\n
OK
enable:< enable>, Id:< Id >
(1) Configuration parameter description:
<enable>: 0 means to turn off the Modbus RTU/TCP conversion function, 1 means to turn on the Modbus RTU/TCP
conversion function.
<Id>: It represents the Modbus TCP transaction processing identifier, (0~65535) 2 bytes.
(2) Transaction processing identifier Id description:
In the state of Modbus TCP to Modbus RTU, when Id = 0, any Modbus TCP data received will be converted to the
corresponding Modbus RTU data, otherwise, it will be converted only when the transaction Id matches.
In the state of modbus RTU to modbus TCP, it means the converted modbus TCP transaction identifier.
Note: When power-off saving is required, input AT+NRB command will save the parameters to the flash, and the
automatic restart will take effect.
Содержание EA01-S
Страница 1: ...EA01 S User Manual NB IoT Module ...