IoT into the Wild
40
9.3.4 Example – S2105 Soil Moisture, Temperature and EC Sensor
Soil Moisture, Temperature and EC Sensor measurement packet:
01 0610 5C5D0000 01 0710 48A30000 01 0C10 B4000000 DD0A
01 is the channel number.
0610 is 0x1006(little-endian byte order),
which is the measurement ID for soil
temperature.
5C5D0000 is actually 0x00005D5C, whose
equivalent decimal value is 23900. Divide it by
1000, and you will get the actual
measurement value for soil temperature as
23.9℃.
01 is the channel number.
0710 is 0x1007 (little-endian byte order),
which is the measurement ID for soil
moisture.
48A30000 is actually 0x0000B1BC, whose
equivalent decimal value is 45500. Divide it by
1000, and you will get the actual
measurement value for soil moisture as
45.5%RH.
Soil
Electrical
Conductivity
01 is the channel number.
0C10 is 0x100C (little-endian byte order),
which is the measurement ID for soil EC.
B4000000 is actually 0x000000B4, whose
equivalent decimal value is 180. Divide it by
1000, and you will get the actual
measurement value for soil EC as 0.18 dS/m.
The CRC verification part.