User Manual
1.2.3 Rainfall Detection Function
When the module detects the rain and the rainfall status output is enabled, it will feed
back the rain status immediately, and it sends nothing for no rain; when the rainfall
status output is disabled, the rainfall status can only be obtained by sending
commands from host, and the module will send it to the host. The specific commands
are as shown in Table 1.7.
Table 1.7 Commands Related to Rainfall States
Command
Direction
Command Content (HEX)
Command Description
Host
→
Slave 3A 01 00 00 0D The host queries the detected rainfall state
from the module
Host
←
Slave 3A 81 00 00 D8 The module sends rainfall state to the host: no
rain
Host
←
Slave 3A 81 01 00 2C The module sends rainfall state to the host:
light rain
Host
←
Slave 3A 81 02 00 01 The module sends rainfall state to the host:
moderate rain
Host
←
Slave 3A 81 03 00 F5 The module sends rainfall state to the host:
heavy rain
1.2.4 System State Detection Function
The module will automatically monitor its system status during operation, and if
there is any abnormality in the system, the module will send the error status to the
host. When the host queries the system status by commands, the module will report
the current system status to the host and clear the last system error status.
Table 1.8 Commands Related to System Status
Command
Direction
Command Content (HEX)
Command Description
Host
→
Slave
3A 02 00 00 C7
The host queries the module system status and
clear system error status
Host
←
Slave
3A 82 00 00 12
The module sends system status to the host:
normal
Host
←
Slave
3A 82 01 00 E6
The module sends system status to the host:
normal: SPI communication error
Host
←
Slave
3A 82 02 00 CB
The module sends system status to the host:
LEDA damaged
Host
←
Slave
3A 82 03 00 3F
The module sends system status to the host:
LEDB damaged
Host
←
Slave
3A 82 04 00 91
The module sends system status to the host:
optical system calibration not good