Chengdu Ebyte Electronic Technology Co.,Ltd.
E150-400T30S user manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
32
8.7 about floating point conversion
Decimal to single precision floating-point number can use online converter, link: online converter
8.8 module use
Each module has a public MODBUS address 00, which can directly operate the module
Each module has a private MODBUS address in addition to the public address
When using, users need to know the private MODBUS address of the device before remote access
If the customer does not know the private MODBUS address of this device, the 00 public address can be used,
and the 00 public address can only be recognized by the local device
You can use 00 03 07 E8 00 01 04 9b to read the private MODBUS address of different modules
Use 03 function code to read one or more register values, for example: read the current baud rate
01
03
0B 72
00 01
26 35
Device MODBUS
address
Function
code
Register
head address
Number of
registers read
CRC check
code
Note: the CRC check code of the last two bytes of the sending instruction needs to be calculated by the user.
Serial port sending: 01 03 0b 72 00 01 26 35
Remote wireless transmission: 01 03 0b 72 00 01 26 35
After sending the above command to the device via serial port or wireless, the device will return the following
values to the serial port or wireless:
01
03
02
00 03
F8 45
Device MODBUS
address
Function
code
Number of
bytes of data
Returned data
CRC check
code
Phenomenon: return the baud rate value, 03 represents the baud rate of 9600 bps.
Serial port sending: 01 03 02 00 03 F8 45
Remote wireless transmission: 01 03 02 00 03 F8 45
8.9 interaction between modules
W
hen the module receives a MODBUS command from a non local address, it will broadcast Lora. After receiving
the data, the receiving module will immediately command the Modbus command and reply again through Lora.
After receiving the data, the sending end will send back the data of the receiving end through UART
When using, the user needs to set the Modbus address of the device first, and the Modbus of different