Download Print this page

Huawei 02312PBL Quick Manual page 3

Temperature and humidity sensor

Advertisement

Baud Rate Setting
4.1
1. Hold down the button when the baud rate is displayed until the baud rate starts blinking.
2. Press the button to switch the baud rate between 9.6, 19.2, 38.4, and 115.2 which respectively
indicate 9600 bps, 19200 bps, 38400 bps, and 115200 bps.
3. Select a baud rate, press and hold the button until all indicators light up.
Device Address Setting
4.2
DIP switch
 Device addresses are set in binary coding format in
the range of 1–63. The first bit is the least significant
bit, and the sixth bit is the most significant bit. ON
indicates 1 and OFF indicates 0.
Temperature and Humidity Querying Examples
4.3
 Temperature and humidity query command example:
Device Address
Function Code
01
03
 Temperature and humidity response example:
Device Address
Function Code
01
03
 NTC temperature query command example:
Device Address
01
 NTC temperature response command example:
Device
Function
Address
Code
01
03
 The preceding data is in hexadecimal format. The temperature F6 is 246 after being converted to
decimal format, indicating that the temperature is 24.6°C. The humidity 11F is 287 after being
converted to decimal format, indicating that the humidity is 28.7% RH.
 The NTC port is not connected. The NTC value response data is 80 00.
Register Address
00 02
Byte Length
04
Function Code
Register Address
03
00 21
Byte
NTC1
Length
Value
0C
01 0B
 Toggle switches 1–6 are used to set device
addresses, toggle switch 7 is reserved, and toggle
switch 8 is used to switch the temperature unit.
Quantity of Register
00 02
Temp.
00 F6
Quantity of Register
00 06
......
NTC2
Value
......
01 0A
3
CRC16
65 CB
Humidity
CRC16
01 1F
5A 59
CRC16
95 C2
NTC5
NTC6
Value
Value
80 00
80 00
CRC16
E3 F3

Advertisement

loading