- Stock: In Stock
- Model: 16AI AM2301 12bit
* This price is just a piece of module and a piece of LED screen (without the 16 pcs AM2301 sensors)
Communication baud rate: 9600.8.N.1 Data format: hexadecimal
Parts Communication protocol and function:
Read the temperature:
For example:
A module as a slave communicate with master by RS485,and,read the temperature and humidity of 16 ports .
The master send the message as this format:
Send content Bytes Send data Meaning
Slave address 1 01 No. 01 Slave
Function code 1 03 Read register
Register starting address 2 0005 The Command of reading
The number of words for reading 4 0020 Read the 32 words of temperature and humidity
CRC check 2 XXXX The CRC result
The slave feedback the temperature and humidity value one by one from port0 to port f.
The feedback format from the slave:
Send content Bytes Send data Meaning
Slave address 1 01 No. 01 Slave
Function code 1 03 Read register
Feedback length 1 40 Feedback 64 bytes temperature and humidity value
The feedback date 64 00_AC_01_77 *port 0: temperature 17.2, humidity 37.5%
……. ………
FF_83_01_9C *port F : temperature -12.5, humidity 41.2%
CRC check 2 XXXX The CRC result
The 00_AC_01_77 means:
0: +
0AC: 172 (10 times of temperature)
01_77: 375 (10 times of humidity)
The FF_83_01_9C means:
F: -
F83: 125 (10 times of temperature)
01_9C: 412 (10 times of humidity)
The temperature value display on the LED screen through J2