Data 122 (External Temperature and Humidity)¶
The external temperature and humidity detected by the terminal.
Each sensor data occupies 8 bytes, including ‘Alarm ID’, ‘Temperature’, ‘Humidity’ and ‘Time’.
The frame format of the Data 122 unit is as follows:
For example (Total 11 bytes):
7A 09 01 00 02 8A 1E 5D D5 2E FA
Parts |
Fields |
Length (Byte) |
Range/Format |
Default |
|
|---|---|---|---|---|---|
ID |
Data ID |
1 |
7AH (122) |
7AH (122) |
|
Length |
Data Length |
1 |
00H or 01H-51H |
||
Content |
Number |
1 |
00H-0AH |
||
The first sensor data |
Alarm ID |
1 |
|||
Temperature |
2 |
0000H-FFFFH (*0.1°C) |
|||
Humidity |
1 |
00H-64H (%RH) |
|||
Time |
4 |
||||
… |
|||||
Number
Indicates how many external temperature and humidity sensors the following data comes from.
If the value of this field is 00H, no other fields are included.
Alarm ID
The alarm ID of the external temperature and humidity. Refer to AT@ETH command.
Temperature
Temperature detected from outside the terminal.
Expressed as a 16-bit signed integer and the unit is 0.1°C. In particular, 8000H means that the terminal cannot obtain this data currently.
For example, 0100H means the external temperature is 25.6°C, and FFCEH means the external temperature is -5.0°C.
Humidity
Humidity detected by the terminal. In particular, FFH means that the terminal cannot obtain this data currently.
For example, 1EH means the relative humidity is 30%RH, and 50H means the relative humidity is 80%RH.
Time
Record the moment when the ‘Temperature’ and ‘Humidity’ are updated.
Difference, in seconds, between the current local time and midnight, January 1, 1970.
For example, 5DD52EFAH (i.e., 1574252282) indicates November 20, 2019, 12:18:02, and 5DB38C80H (i.e., 1572048000) indicates October 26, 2019, 00:00:00.