An environmental monitoring linkage control method and device
By using processor-controlled multi-factor comprehensive judgment and dynamic detection sensitivity adjustment, the problem of false alarms and missed alarms in existing environmental monitoring equipment has been solved, and accurate identification of environmental status and intelligent linkage control have been achieved.
Patent Information
- Application Number
- CN202611413226.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing environmental monitoring equipment suffers from high false alarm rates, frequent missed alarms, and untimely responses due to its single-point triggering mechanism and lack of comprehensive multi-factor judgment. It is also unable to accurately identify environmental status types and is difficult to form an effective closed loop with intelligent devices.
The rainwater, immersion, and temperature detection modules, controlled by a processor, initiate multi-area sampling via a wake-up signal, dynamically adjust the detection sensitivity, and combine multi-factor composite judgment to match composite event rules and execute linked actions.
It achieves accurate identification of environmental conditions, reduces false alarm rate and false alarm risk, improves the level of intelligence, and can automatically trigger linkage control according to environmental conditions.
Smart Images

Figure CN123175358A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of environmental monitoring technology, and more specifically, to an environmental monitoring linkage control method and device. Background Technology
[0002] Existing environmental monitoring equipment typically relies on single hardware monitoring methods, such as mechanical rain gauges, electrode-type leak detectors, and stand-alone water immersion alarms. These devices primarily depend on fixed thresholds (i.e., fixed detection sensitivity) or simple on / off signals to determine the presence of water, outputting only a "present / absent" result. They are easily affected by factors such as condensation, short-term splashes, residual dirt, probe oxidation, and temperature changes, making it difficult to effectively distinguish between transient disturbances and real environmental events. Furthermore, these devices lack comprehensive analysis of rainwater, immersion, ambient temperature, duration, and trends, failing to accurately identify specific environmental conditions and leading to false alarms, missed alarms, or delayed responses.
[0003] In scenarios such as smart homes, building doors and windows, underground garages, computer rooms, warehouses, and agricultural greenhouses, users not only need to know whether the detection device is in contact with water, but also need to know the specific state of the current environment and trigger corresponding linkage control actions accordingly. However, existing technologies, due to their single-point triggering mechanism and lack of multi-factor comprehensive judgment, generally suffer from problems such as high false alarm rates, frequent false alarms, and untimely responses. This results in low accuracy in environmental event identification, an inability to adaptively adjust detection sensitivity according to environmental conditions, and difficulty in forming an effective linkage closed loop with actuators such as smart windows, valves, and drainage pumps. Overall, the level of intelligence is insufficient, making it difficult to meet the reliable monitoring and automatic control needs in complex scenarios. Summary of the Invention
[0004] The purpose of this application is to provide an environmental monitoring linkage control method and device to overcome the deficiencies in the existing technology.
[0005] To achieve the above objectives, the technical solution adopted in this application is as follows: On one hand, this application provides an environmental monitoring linkage control method, applied to an environmental monitoring linkage control system, the system including a processor, and a rainwater detection module, an immersion detection module, and a temperature detection module, all connected to the processor; the method includes: When the processor receives a wake-up signal from the rain detection module, it starts sampling multiple rain detection areas, adjusts the detection sensitivity of the rain detection module according to the sampled values, and determines the current rain status based on the data fed back by the adjusted rain detection module; at the same time, it determines the current immersion status based on the data fed back by the immersion detection module, and determines the current temperature status based on the data fed back by the temperature detection module. The processor matches the current rain status, current flooding status, and current temperature status with multiple composite event rules to determine whether each composite event rule has been triggered. When any composite event rule is triggered, the processor generates the corresponding environmental event and executes the linked action.
[0006] Furthermore, the rainwater detection module includes a rainwater detection board, X ADC chips, and a monitoring chip with an adjustable reference threshold. The rainwater detection board has a first detection segment and X second detection segments, each distributed in a different rainwater detection area. The monitoring chip and each ADC chip are connected to the processor. The monitoring chip is also connected to the first detection segment, and each ADC chip is also connected to the corresponding second detection segment. Wherein, X > 1. Before the step of the processor receiving the wake-up signal sent by the rain detection module, the method further includes: In dry, low-power standby mode, the processor and each ADC chip are in a sleep state, and the reference threshold of the monitoring chip is the normal standby threshold pre-written by the processor. The monitoring chip autonomously detects the detection voltage of the first detection segment at a preset cycle, and compares the detection voltage with the normal standby threshold to obtain the initial comparison result of the first detection segment under the normal standby threshold; wherein, the smaller the detection voltage, the higher the wetness of the first detection segment. When the initial comparison result indicates that the detection voltage is not greater than the normal standby threshold, the monitoring chip sends a wake-up signal to the processor; wherein, the wake-up signal indicates that the current wetness state of the first detection segment is wet.
[0007] Furthermore, when the processor receives a wake-up signal from the rain detection module, it initiates sampling of multiple rain detection areas, adjusts the detection sensitivity of the rain detection module based on the sampled values, and determines the current rain status based on the data fed back by the adjusted rain detection module. The steps include: The processor responds to the wake-up signal to exit the sleep state and starts the acquisition function of each ADC chip; Obtain the ADC sampling value corresponding to each second detection segment, and confirm the current wetness status of each second detection segment based on the ADC sampling value corresponding to each second detection segment and the previous wetness status. Based on the previous rainfall status and the current humidity status of each second detection segment, select one from multiple candidate reference thresholds as the target reference threshold, and write the target reference threshold into the monitoring chip; The monitoring chip, after threshold adjustment, re-acquires the target comparison result of the first detection segment under the target reference threshold, and confirms the current wetness state of the first detection segment a second time based on the target comparison result. The current rainfall status is determined based on the current wetness status of all detection segments, the status of the previous rainfall, the duration, and the trend of detection voltage changes.
[0008] Furthermore, the step of confirming the current wetness state of each second detection segment based on the ADC sampling value corresponding to each second detection segment and the previous wetness state includes: When the previous wet state of the second detection segment was dry, and its ADC sampling value is not greater than the wet entry threshold for Nin consecutive times, the current wet state of the second detection segment is updated to wet; where Nin is the number of entry confirmations, Nin>1; When the previous wet state of the second detection segment was wet, and its ADC sampling value is not less than the drying exit threshold for Nout consecutive times, the current wet state of the second detection segment is updated to dry; where Nout is the number of exit confirmations, Nout > 1; When the ADC sampling value of the second detection segment is greater than the wetting entry threshold and less than the drying exit threshold, the current wetting state of the second detection segment is maintained as its previous wetting state.
[0009] Furthermore, the multiple candidate reference thresholds include: the false triggering threshold, the suspected humidity monitoring threshold, the normal standby threshold, and the rainfall tracking and recovery threshold; among which, the false triggering threshold < the suspected humidity monitoring threshold < the normal standby threshold < the rainfall tracking and recovery threshold; The step of selecting a target reference threshold from multiple candidate reference thresholds based on the previous rainfall status and the current wetness status of each second detection segment includes: When the current wetness state of all second detection segments is dry, the anti-false triggering threshold is selected as the target reference threshold; When the previous rainfall status was unconfirmed rainfall, and the current wet status of at least one second detection segment is wet, the suspected wet monitoring threshold is selected as the target reference threshold. When the previous rainfall status was confirmed as rainfall or rain stopped and resumed, the rainfall tracking and recovery threshold was selected as the target reference threshold. The larger the target reference threshold, the higher the detection sensitivity of the monitoring chip, and the easier it is to trigger the wake-up signal.
[0010] Furthermore, the step of determining the current rainfall status based on the current wetness status of all detection segments, the previous rainfall status, duration, and detection voltage change trend includes: When the current wetness status of all detection segments is dry, or when the previous rainwater status was rain stop and recovery and all detection segments have been dry and have continued to be dry until the rainwater exit confirmation time, the current rainwater status is determined to be no rain. If the current wetness status of the first detection segment is wet, and only one second detection segment is currently wet, or at least two second detection segments are wet but the duration has not reached the rainwater entry confirmation time, the current rainwater status is determined to be suspected rainwater. If the current wetness status of the first detection segment is wet, and the current wetness status of at least two second detection segments is wet and continues to reach the rainwater entry confirmation time, the current rainwater status is determined to be confirmed rainwater. If the previous rainfall status was confirmed as rainfall, when the number of wet detection segments decreases or the detection voltage of the first detection segment continues to rise, the current rainfall status is determined to be rain stoppage recovery.
[0011] Furthermore, each composite event rule is configured with corresponding rainfall conditions, immersion conditions, temperature conditions, and rule entry confirmation time; the processor matches the current rainfall state, current immersion state, and current temperature state with multiple composite event rules, and the step of determining whether each composite event rule is triggered includes: For each composite event rule, the processor matches the current rainwater state, current flooding state, and current temperature state with the corresponding rainwater conditions, flooding conditions, and temperature conditions for that rule, respectively. If the current rainfall status, current flooding status, and current temperature status all match the three conditions corresponding to this rule, then the entry timer will be started; if any condition becomes unmatched during the entry timer, then the entry timer will be cancelled. When the entry timer reaches the rule entry confirmation time corresponding to the rule, it is determined that the rule has been triggered.
[0012] Furthermore, each composite event rule is configured with a corresponding event type, risk level, and linkage action; the step of the processor generating the corresponding environmental event and executing the linkage action when any composite event rule is triggered includes: The processor generates an environmental event containing the event type and risk level corresponding to the triggered composite event rule, and executes the linkage action corresponding to the rule.
[0013] Furthermore, each composite event rule is configured with corresponding rain conditions, immersion conditions, temperature conditions, rule exit confirmation time, and recovery actions; after the step of the processor generating the environmental event corresponding to the rule and executing the linkage action, the method further includes: For a triggered compound event rule, the processor matches the current rainwater state, current flooding state, and current temperature state with the corresponding rainwater conditions, flooding conditions, and temperature conditions of the rule, respectively. If the matching result of any condition becomes a mismatch, the exit timer is started; if, during the exit timer period, the current rainwater state, the current flooding state, and the current temperature state simultaneously match the three conditions corresponding to the rule again, the exit timer is canceled. When the exit timer reaches the rule exit confirmation time corresponding to the rule, the processor terminates the environmental event corresponding to the rule or executes the recovery action corresponding to the rule.
[0014] On the other hand, this application also provides an environmental monitoring linkage control device, the device being used to execute the environmental monitoring linkage control method as described in any of the foregoing embodiments, the device comprising: The status determination module is used to initiate sampling of multiple rainwater detection areas when it receives a wake-up signal sent by the rainwater detection module, adjust the detection sensitivity of the rainwater detection module according to the sampled values, and determine the current rainwater status based on the data fed back by the adjusted rainwater detection module; at the same time, it determines the current immersion status based on the data fed back by the immersion detection module, and determines the current temperature status based on the data fed back by the temperature detection module. The rule matching module is used to match the current rainwater status, current flooding status, and current temperature status with multiple composite event rules to determine whether each composite event rule has been triggered. The linkage execution module is used to generate the corresponding environmental event and execute the linkage action when any composite event rule is triggered.
[0015] Compared with the prior art, this application has the following advantages: The processor in this application initiates sampling in multiple rainwater detection areas by receiving a wake-up signal from the rainwater detection module. It dynamically adjusts the detection sensitivity of the rainwater detection module based on the sampled values, enabling the module to adapt to environmental changes and effectively distinguish between transient disturbances such as condensation, short-term splashes, and residual dirt, and actual rainfall events, thereby reducing false alarm rates. Simultaneously, the processor performs multi-factor composite judgment based on the rainwater state, immersion state, and temperature state at the same time, and then matches this with multiple composite event rules. This accurately identifies different environmental state types, avoiding the limitations of single-point triggering mechanisms, effectively reducing the risk of missed alarms and improving the accuracy of event identification. Furthermore, when any composite event rule is triggered, the processor generates a corresponding environmental event and executes a linked action, realizing a complete closed loop from environmental perception and event judgment to linked control. It can automatically trigger corresponding linked actions based on the environmental state type, meeting the needs for reliable environmental monitoring and automatic control in complex scenarios and significantly improving the level of intelligence. Attached Figure Description
[0016] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0017] Figure 1 This is one of the structural schematic diagrams of an environmental monitoring and linkage control system provided in this application; Figure 2 One of the flowcharts for an environmental monitoring linkage control method provided in this application; Figure 3 This is the second schematic diagram of an environmental monitoring and linkage control system provided in this application; Figure 4 The second schematic diagram of an environmental monitoring linkage control method provided in this application; Figure 5 A flowchart illustrating the sub-steps of step S40 provided for this application; Figure 6 A flowchart illustrating the sub-steps of step S50 provided for this application; Figure 7The third flowchart illustrating an environmental monitoring linkage control method provided in this application; Figure 8 This application provides a structural block diagram of an environmental monitoring linkage control device.
[0018] Icons: 10-Environmental monitoring and linkage control system; 100-Processor; 200-Rainwater detection module; 210-Rainwater detection board; 211-First detection section; 212-Second detection section; 220-Monitoring chip; 230-ADC chip; 300-Immersion detection module; 400-Temperature detection module; 20-Environmental monitoring and linkage control device; 21-Status determination module; 22-Rule matching module; 23-Linkage execution module. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0020] It should be noted that the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0021] As described in the background section, existing environmental monitoring equipment suffers from high false alarm rates, frequent missed alarms, and untimely responses due to its single-point triggering mechanism and lack of multi-factor comprehensive judgment capabilities, resulting in low accuracy in environmental event identification. Furthermore, such equipment cannot adaptively adjust its detection sensitivity according to environmental conditions and struggles to form effective closed-loop linkages with actuators such as smart windows, valves, and drainage pumps. The insufficient level of equipment intelligence makes it difficult to meet the actual needs of reliable monitoring and automatic control in complex scenarios.
[0022] To address the shortcomings of existing technologies, embodiments of this application provide an environmental monitoring and linkage control method, such as... Figure 1As shown, this method is applied to an environmental monitoring and control system 10, which includes a processor 100, a rainwater detection module 200, a water immersion detection module 300, and a temperature detection module 400. The rainwater detection module 200, the water immersion detection module 300, and the temperature detection module 400 are all connected to the processor 100.
[0023] Please see Figure 2 The environmental monitoring linkage control method provided in this application includes the following steps: Step S40: When the processor receives the wake-up signal sent by the rain detection module, it starts sampling of multiple rain detection areas, adjusts the detection sensitivity of the rain detection module according to the sampled values, and determines the current rain status according to the data fed back by the adjusted rain detection module; at the same time, it determines the current immersion status according to the data fed back by the immersion detection module, and determines the current temperature status according to the data fed back by the temperature detection module.
[0024] In step S50, the processor matches the current rainwater status, current flooding status, and current temperature status with multiple composite event rules to determine whether each composite event rule has been triggered.
[0025] In step S60, when any composite event rule is triggered, the processor generates the corresponding environmental event and executes the linkage action. Optionally, the linkage object can be a smart window, roller blind, valve, water pump, alarm, gateway, lighting equipment, dehumidification equipment, security system, or third-party automation platform.
[0026] Based on the above steps, the processor in this embodiment initiates sampling in multiple rainwater detection areas by receiving a wake-up signal from the rainwater detection module. It dynamically adjusts the detection sensitivity of the rainwater detection module based on the sampled values, enabling the module to adapt to environmental changes and effectively distinguish between instantaneous disturbances such as condensation, short-term splashes, and residual dirt, and actual rainfall events, thereby reducing the false alarm rate. Simultaneously, the processor performs multi-factor composite judgment based on the rainwater state, immersion state, and temperature state at the same time, and then matches this with multiple composite event rules. This accurately identifies different environmental state types, avoiding the limitations of single-point triggering mechanisms, effectively reducing the risk of missed alarms, and improving the accuracy of event identification. Furthermore, when any composite event rule is triggered, the processor generates a corresponding environmental event and executes a linked action, realizing a complete closed loop from environmental perception and event judgment to linked control. It can automatically trigger corresponding linked actions based on the environmental state type, meeting the needs for reliable environmental monitoring and automatic control in complex scenarios, and significantly improving the system's intelligence level.
[0027] To better understand, the hardware structure of the environmental monitoring and linkage control system provided in the embodiments of this application will be described below.
[0028] In one alternative implementation, please refer to Figure 3 The rainwater detection module 200 includes a rainwater detection board 210, X ADC chips 230, and a monitoring chip 220, where X > 1. The monitoring chip 220 is a low-power monitoring chip, and its reference threshold can be adjusted via the I²C bus, with a maximum configurable reference threshold of 1.23V.
[0029] The rainwater detection board 210 has a first detection section 211 and X second detection sections 212. The monitoring chip 220 and each ADC chip 230 are connected to the processor 100. The monitoring chip 220 is also connected to the first detection section 211, and each ADC chip 230 is also connected to the corresponding second detection section 212.
[0030] In terms of overall structural layout, the processor 100, monitoring chip 220, and each ADC chip 230 are all located inside the housing; the temperature detection module 400 is located on the outer sidewall of the housing; the rainwater detection plate 210 is located on the outer top of the housing, with its exposed surface facing the direction most likely to come into contact with raindrops; and the immersion detection module 300 is located on the outer bottom of the housing, with its lower end facing the monitored ground or water accumulation area. Thus, rainwater detection, immersion detection, and temperature detection are spatially separated on the same housing, achieving integrated acquisition of multiple environmental parameters.
[0031] Optionally, the immersion detection module 300 may employ an immersion probe, electrode plate, cable-type leakage rope, float switch, pressure sensor, ultrasonic level gauge, or photoelectric level gauge. Each detection segment in the rainwater detection plate 210 may employ an electrode-type, capacitive-type, photoelectric-type, piezoelectric-type, acoustic-type, image recognition-type, or other detection structure capable of reflecting the presence / intensity of rainwater.
[0032] Furthermore, the detection segments in the rainwater detection plate 210 are distributed in different rainwater detection areas. For example, the first detection segment 211 is located at the position in the rainwater detection plate 210 most likely to come into contact with raindrops, serving as a low-power monitoring and wake-up area; each of the second detection segments 212 is respectively located in the adjacent area, lateral area, or distal area of the first detection segment 211, used to determine the coverage range and duration of rainwater. Electrical isolation is maintained between the detection segments, and an insulation gap is reserved to prevent adjacent detection segments from being mistakenly identified as the same detection area due to water film residue.
[0033] Based on the above hardware design, the rainwater detection in the embodiments of this application will be described below.
[0034] As an optional implementation, please refer to Figure 4 Before step S40, when the processor receives the wake-up signal sent by the rain detection module, the environmental monitoring linkage control method provided in this application embodiment further includes the following steps: In step S10, under dry low-power standby mode, the processor and each ADC chip are in sleep mode, and the reference threshold of the monitoring chip is the normal standby threshold pre-written by the processor.
[0035] In step S20, the monitoring chip autonomously detects the detection voltage of the first detection segment at a preset cycle, and compares the detection voltage with the normal standby threshold to obtain the initial comparison result of the first detection segment under the normal standby threshold. A lower detection voltage indicates a higher degree of wetness in the first detection segment.
[0036] Under normal dry conditions, the processor pre-writes the normal standby threshold to the monitoring chip via the I²C bus, and the system then enters a low-power standby state. At this time, the processor and each ADC chip are in sleep mode, while the monitoring chip operates in low-power mode, autonomously detecting the detection voltage of the first detection segment at a preset period (e.g., 500ms), and using its built-in comparison function to determine whether the detection voltage exceeds the normal standby threshold, thereby obtaining the initial comparison result.
[0037] Step S30: When the initial comparison result indicates that the detection voltage is not greater than the normal standby threshold, the monitoring chip sends a wake-up signal to the processor. The wake-up signal indicates that the current humidity state of the first detection segment is humid.
[0038] Understandably, since a lower detection voltage indicates a higher degree of humidity in the first detection segment, when the initial comparison result shows that the detection voltage is not greater than the normal standby threshold, it indicates that the current humidity state of the first detection segment is humid, meaning that there may be rainwater in the detection area where the first detection segment is located. At this time, the monitoring chip sends a wake-up signal to the processor to wake it up and enter the working mode for subsequent ADC acquisition and data fusion judgment.
[0039] Based on steps S10 to S30 above, in the dry, low-power standby state, the monitoring chip independently operates in a low-power mode, while the processor and each ADC chip are in sleep mode, thereby significantly reducing standby power consumption and realizing a low-power management mechanism that wakes up on demand. When the monitoring chip detects that the detection voltage of the first detection segment is not greater than the normal standby threshold (i.e., the detection area where the first detection segment is located may contain rainwater), the monitoring chip sends a wake-up signal to the processor to trigger the processor to exit sleep mode and proceed to step S40.
[0040] As an optional implementation, please refer to Figure 5 When the processor receives a wake-up signal from the rain detection module, it starts sampling multiple rain detection areas, adjusts the detection sensitivity of the rain detection module according to the sampled values, and determines the current rain status based on the data fed back by the adjusted rain detection module. Step S40 includes sub-steps S41 to S45.
[0041] In step S41, the processor responds to the wake-up signal, exits the sleep state, and starts the acquisition function of each ADC chip.
[0042] Understandably, when the processor receives the wake-up signal sent by the monitoring chip, the processor immediately exits the low-power sleep state, enters the normal working mode, and outputs control signals to start the acquisition function of each ADC chip, so that each ADC chip starts to acquire data from each second detection segment in the rainwater detection board, providing a data basis for subsequent detection sensitivity adjustment and status determination.
[0043] Step S42: Obtain the ADC sampling value corresponding to each second detection segment, and confirm the current wetness state of each second detection segment based on the ADC sampling value corresponding to each second detection segment and the previous wetness state.
[0044] For ease of understanding, taking a 10-bit resolution ADC chip as an example, at a 3V reference voltage, the ADC sample value A corresponding to the second detection segment satisfies the relationship V = A × 3 / 1023 with respect to the detection voltage V. When the second detection segment is completely dry, the corresponding ADC sample value is close to 1023; when the second detection segment is completely wet, the corresponding ADC sample value is close to 0.
[0045] After acquiring the ADC sample values corresponding to each second detection segment, the processor first filters each sample value. For each second detection segment, the processor sets the corresponding wetting entry threshold Twet, drying exit threshold Tdry, entry confirmation count Nin, and exit confirmation count Nout. The wetting entry threshold Twet is less than the drying exit threshold Tdry; for example, Twet = 400 (approximately 1.17V), Tdry = 650 (approximately 1.91V). The entry confirmation count Nin and exit confirmation count Nout are both greater than 1; for example, Nin = 3, Nout = 5. Then, the processor determines the current wetting state of the second detection segment based on the filtered ADC sample values, the stored previous wetting state, and the aforementioned thresholds and counts. The specific determination method is as follows: (1) When the previous wet state of the second detection segment was dry, and its ADC sampling value is not greater than the wet entry threshold Twet for N consecutive times, the processor updates the current wet state of the second detection segment to wet.
[0046] (2) When the previous wet state of the second detection segment was wet, and its ADC sampling value is not less than the drying exit threshold Tdry for N consecutive times, the processor updates the current wet state of the second detection segment to dry.
[0047] (3) When the ADC sampling value of the second detection segment is greater than the wetting entry threshold Twet and less than the drying exit threshold Tdry, the processor maintains the current wetting state of the second detection segment as its previous wetting state, thereby forming hysteresis and de-jitter.
[0048] By utilizing the hysteresis interval between the wet entry threshold (Twet) and the dry exit threshold (Tdry) and combining it with a continuous multiple confirmation mechanism, the jitter of ADC sampling values caused by accidental factors such as instantaneous water film fluctuations, electromagnetic interference, or brief adhesion of condensate is effectively eliminated. This avoids frequent jumps in the wet state near the critical point in the second detection stage, thereby improving the stability and accuracy of wet state determination and providing a reliable data foundation for subsequent comprehensive determination of rainwater conditions.
[0049] Step S43: Based on the previous rainfall status and the current wet status of each second detection segment, select one from multiple candidate reference thresholds as the target reference threshold and write the target reference threshold into the monitoring chip.
[0050] Understandably, in this embodiment, the detection voltage of the first detection segment is close to 3 V when completely dry and close to 0 V when completely wet. The monitoring chip compares the detection voltage of the first detection segment with the current reference threshold every 500 ms, and triggers a wake-up signal when the detection voltage of the first detection segment is not greater than the current reference threshold. Therefore, the larger the target reference threshold of the monitoring chip, the easier it is to trigger the wake-up signal when slightly wet, and the higher the detection sensitivity; conversely, the smaller the target reference threshold of the monitoring chip, the stricter the conditions for triggering the wake-up signal, and the lower the detection sensitivity.
[0051] The target reference threshold of the monitoring chip is selected by the processor from multiple candidate reference thresholds based on the previous rainfall status and the current humidity status of each second detection segment. Specifically, the multiple candidate reference thresholds include: the false trigger prevention threshold Vs, the suspected humidity monitoring threshold Vc, the normal standby threshold V0, and the rainfall tracking and recovery threshold Vr.
[0052] The relationship between the thresholds is as follows: false triggering threshold Vs < suspected humidity monitoring threshold Vc < normal standby threshold V0 < rainfall tracking and recovery threshold Vr ≤ the maximum configurable reference threshold of the monitoring chip (i.e., 1.23 V).
[0053] The four thresholds Vs, Vc, V0, and Vr are used for false trigger suppression, suspected wet tracking, normal standby, and confirmed rainfall / rain stop recovery scenarios, respectively. Table 1 shows the applicable scenarios and example processing methods corresponding to the target reference thresholds.
[0054] Table 1. Applicable Scenarios and Example Processing Methods for Target Reference Thresholds
[0055] That is, the processor selects a target reference threshold from multiple candidate reference thresholds based on the previous rainfall status and the current wetness status of each second detection segment in the following specific way: (1) When the current wet state of all second detection segments is dry, the false trigger threshold Vs is selected as the target reference threshold. At this time, the detection sensitivity is the lowest, which is used to suppress repeated false wake-ups caused by electrical interference, instantaneous splashing water or short-term residual water film, and after continuous and stable drying for a preset time, it recovers to the normal standby threshold V0. The normal standby threshold V0 is used to detect the initial rainwater. Wherein, Vs < V0.
[0056] (2) When the previous rainfall status was unconfirmed rainfall, and the current wet status of at least one second detection segment is wet, the suspected wet monitoring threshold Vc is selected as the target reference threshold to continue to observe the wet changes and to combine with other detection segments for secondary confirmation, so as to avoid misjudging rainfall due to a single or short-term wetness. Wherein, Vs < Vc < V0.
[0057] (3) When the previous rainfall status was confirmed as rain or rain stopped and recovered, the rainfall tracking and recovery threshold Vr is selected as the target reference threshold. At this time, the detection sensitivity is the highest, which is used to track a small amount of rain and residual water film, and avoid prematurely determining that the rain has stopped. Wherein, Vr > V0.
[0058] Step S44: Using the monitoring chip after threshold adjustment, re-acquire the target comparison result of the first detection segment under the target reference threshold, and confirm the current wetness state of the first detection segment a second time based on the target comparison result.
[0059] When the target comparison result shows that the detection voltage of the first detection segment is not greater than the target reference threshold, the processor confirms that the current wetness state of the first detection segment is wet.
[0060] When the target comparison result shows that the detection voltage of the first detection segment is greater than the target reference threshold, the processor confirms that the current wetness state of the first detection segment is dry.
[0061] Understandably, the processor writes the determined target reference threshold to the monitoring chip via the I²C bus to adjust its detection sensitivity. Based on the updated target reference threshold, the monitoring chip compares the detection voltage of the first detection segment with the target reference threshold at a period of 500 ms and outputs the target comparison result. The processor performs a secondary confirmation of the current humidity state of the first detection segment based on the target comparison result, thereby avoiding misjudgment caused by single sampling fluctuations or instantaneous interference and improving the accuracy of humidity state judgment.
[0062] Step S45: Determine the current rainwater status based on the current wetness status, previous rainwater status, duration, and detection voltage change trend of all detection segments (including the first detection segment and each second detection segment).
[0063] For example, the methods for determining and processing rainwater conditions are shown in Table 2.
[0064] Table 2. Identification and Handling Methods for Rainwater Status
[0065] That is, the processor determines the current rainfall status based on the current wetness status of all detection segments, the previous rainfall status, duration, and detection voltage change trend in the following specific way: (1) When the current wetness status of all detection segments is dry, or the previous rainwater status is rain stop and recovery and all detection segments have been dry and have continued to reach the rainwater exit confirmation time, the current rainwater status is determined to be no rain.
[0066] (2) If the current wet state of the first detection segment is wet, and only one second detection segment is wet, or at least two second detection segments are wet but the duration does not reach the rainwater entry confirmation time, the current rainwater state is determined to be suspected rainwater.
[0067] (3) When the current wet state of the first detection segment is wet, when the current wet state of at least two second detection segments is wet and continues to reach the rainwater entry confirmation time, the current rainwater state is determined to be confirmed rainwater.
[0068] (4) When the previous rainwater status was confirmed rainwater, when the number of wet detection segments decreases or the detection voltage of the first detection segment continues to rise, the current rainwater status is determined to be rain stop recovery; when all detection segments become dry and continue to reach the rainwater exit confirmation time, it is changed to no rain; when the confirmed rainwater conditions are met again, it returns to confirmed rainwater.
[0069] Based on the steps S41 to S45 above, this embodiment of the application achieves a complete closed loop from low-power standby to accurate rainwater identification by: monitoring chip wake-up triggered by low power consumption; processor response followed by multi-channel ADC acquisition; determination of the wetting state of each detection segment using a combination of hysteresis interval and continuous confirmation mechanism; dynamic selection of target reference threshold to adjust the detection sensitivity of the monitoring chip based on the wetting state; and comprehensive multi-level determination of rainwater state based on information from all detection segments. This solution ensures low-power system operation while effectively suppressing false triggers caused by electrical interference, instantaneous splashing, and residual water film through multi-level threshold dynamic adjustment and multi-detection segment fusion confirmation mechanism. It avoids frequent jumps in the wetting state near the critical point and can continuously track rainfall changes during rainfall, preventing premature exit during the rain recovery phase, thus significantly improving the accuracy of rainwater detection.
[0070] Furthermore, it should be noted that after the processor exits hibernation mode, it simultaneously initiates rainwater detection, immersion detection, and temperature detection, with these three operating as independent monitoring channels in parallel. Each channel acquires data and adds a timestamp using interrupt triggering, periodic sampling, or on-demand sampling. The processor selects the latest valid data within a preset synchronization time window to form a snapshot of the same environmental state; for data exceeding the validity period, it is either re-acquired or marked as an unknown state, thereby ensuring the synchronization of the three types of data—rainwater, immersion, and temperature—and forming a unified environmental state judgment.
[0071] The specific implementation process of rainwater detection has been described in detail in the aforementioned steps S41 to S45. The following describes the immersion detection in the embodiments of this application.
[0072] In one optional implementation, the immersion detection module employs a single immersion probe located at the bottom of the housing or connected via an interface. This probe outputs a detection signal indicating whether the object is in contact with water or not. The processor stores the probe's installation position, effective detection height, scenario risk level, immersion entry confirmation time, immersion exit confirmation time, and duration of sustained high risk. The triggering of a single immersion probe only indicates that the water medium has reached its effective detection position and is not used to calculate continuous water depth or distinguish multiple water level levels.
[0073] The processor acquires the water contact or non-water contact signal of a single immersion probe, and establishes a single probe immersion event and risk mapping table as shown in Table 3 based on the probe installation position, effective detection height, scene risk level, immersion entry confirmation time, immersion exit confirmation time and continuous high risk time, and then outputs the status of no immersion, suspected immersion, confirmed immersion or continuous / high risk immersion.
[0074] Table 3 Single-probe immersion event and risk mapping table
[0075] Furthermore, during recovery from a water immersion event, the processor does not use a single dry detection as a recovery condition. Instead, it requires each individual water immersion probe to remain continuously dry until the water immersion exit confirmation time is reached. If water is detected again during the water immersion exit confirmation period, the exit timer is canceled, thereby reducing repeated alarms caused by residual water droplets on the probe or water surface fluctuations.
[0076] Optionally, the temperature detection method in this embodiment is as follows: the processor determines whether the current temperature state is a low temperature state or an icy state based on the ambient temperature data and duration sent by the temperature detection module.
[0077] Based on the above steps, the current rainwater state, current flooding state, and current temperature state are obtained at the same time. The processor matches these three states with multiple composite event rules, and finally triggers the matched composite event rules to generate the corresponding environmental events and execute the linkage actions.
[0078] In one optional implementation, each composite event rule is configured with corresponding rainwater conditions, immersion conditions, temperature conditions, rule entry confirmation time, rule exit confirmation time, event type, risk level, linkage action, and recovery action.
[0079] Among these, the rainwater condition, immersion condition, and temperature condition can each be configured to be ignored, required to exist, or required not to exist. Example combinations of conditions for multiple compound event rules are as follows: (1) Rainwater is present, flooding is not present, and low temperature is not present: ordinary rainfall event; (2) Rainwater is present, flooding is present, but low temperature is not present: rainwater backflow or water accumulation event; (3) No rainwater, no water seepage, no low temperature: Independent leakage event; (4) Rainwater present, flooding absent, low temperature present: risk event of rain-induced freezing; (5) No rainwater, water immersion, or low temperature: Low temperature water immersion or suspected pipe freezing and leakage risk event; (6) High-risk events involving rainwater, flooding, and low temperatures: backflow, water accumulation, and freezing.
[0080] It should be noted that the above combination is only an optional embodiment. The number of compound event rules, the combination of conditions, the risk level and the corresponding actions can be configured according to the actual application scenario, and do not constitute a limitation on the scope of protection of this application.
[0081] As an optional implementation, please refer to Figure 6 The processor matches the current rainwater status, current immersion status, and current temperature status with multiple composite event rules to determine whether each composite event rule is triggered. Step S50 includes sub-steps S51 to S53.
[0082] Step S51: For each composite event rule, the processor matches the current rainwater state, current flooding state, and current temperature state with the corresponding rainwater conditions, flooding conditions, and temperature conditions for that rule.
[0083] Step S52: If the current rainwater state, current flooding state, and current temperature state simultaneously match the three conditions corresponding to this rule, then start the entry timer. During the entry timer, if the matching result of any condition changes to a non-match, then the entry timer is cancelled.
[0084] Step S53: When the entry time reaches the rule entry confirmation time corresponding to the rule, it is determined that the rule has been triggered.
[0085] Understandably, by setting a rule entry confirmation time and combining it with an entry timing and cancellation mechanism, the embodiments of this application can effectively filter out false matches caused by occasional fluctuations or instantaneous interference in the data of each detection channel within a short period of time, avoid frequent triggering and cancellation of composite event rules in critical states, and thus ensure that the rule is only determined to be triggered when the rain, immersion, and temperature states all stably meet the corresponding conditions and continuously reach the rule entry confirmation time, which significantly improves the stability and reliability of composite event trigger determination.
[0086] As another optional implementation, when any composite event rule is triggered, the step S60 of the processor generating the environmental event corresponding to the rule and executing the linkage action includes: The processor generates an environmental event containing the event type and risk level corresponding to the triggered composite event rule, and executes the corresponding linkage action. For example, the processor can report the environmental event to a third-party platform through the communication module and push alarm notifications to the user terminal. At the same time, it can trigger linkage actions such as buzzer alarm, valve closure, or drainage according to the configuration.
[0087] As another alternative implementation, please refer to Figure 7 After step S60, where the processor generates the environmental event corresponding to the rule and executes the linkage action, the environmental monitoring linkage control method provided in this application embodiment further includes the following steps: Step S70: For the triggered composite event rule, the processor matches the current rainwater state, current flooding state, and current temperature state with the rainwater condition, flooding condition, and temperature condition corresponding to the rule, respectively.
[0088] Step S80: If the matching result of any condition becomes a mismatch, then start the exit timer. During the exit timer period, if the current rainwater state, current flooding state, and current temperature state simultaneously match the three conditions corresponding to the rule again, then cancel the current exit timer.
[0089] Step S90: When the exit timer reaches the rule exit confirmation time corresponding to the rule, the processor terminates the environment event corresponding to the rule or executes the recovery action corresponding to the rule.
[0090] Understandably, by setting a rule exit confirmation time and combining it with an exit timing and cancellation mechanism, this application embodiment can prevent the environmental event from immediately ending or executing a recovery action when the conditions corresponding to the triggered composite event rule are initially released, due to the brief recovery of rain, water immersion, or temperature (e.g., intermittent cessation of rainfall, brief receding of water accumulation, or instantaneous rise in temperature above the threshold). This effectively suppresses frequent switching and false recovery of alarm states, avoids missing continuous risks due to premature recovery, or causes repeated execution of linkage actions, and ensures the accuracy and reliability of composite event recovery determination.
[0091] Furthermore, each detection channel in this embodiment is also equipped with corresponding anomaly diagnosis functions. Anomaly diagnosis items include short circuit of the immersion probe, open circuit of the immersion probe, prolonged dampness of the rainwater detection board, persistently unchanged detection value, abnormal temperature acquisition, low battery power, communication failure, and configuration anomaly. The diagnostic results participate in the fusion judgment: when a channel is marked as untrustworthy, the processor reduces the weight of that channel in the composite event rule matching or requires other normal channels to jointly confirm, to ensure the reliability of the fusion judgment result.
[0092] Therefore, the overall processing chain of this application embodiment is as follows: the monitoring chip autonomously monitors and wakes up every 500 ms; the ADC sampling values corresponding to each second detection segment are collected; the target reference threshold of the monitoring chip is determined based on the previous rainwater state and the current wet state of each second detection segment; the data of all detection segments are fused to determine the rainwater state; the rainwater state is combined with the independently determined immersion state and temperature state to form a synchronous environmental state snapshot; composite event rules are matched; and the action is executed or restored after rule entry confirmation and rule exit confirmation.
[0093] After the rainwater condition is restored, the processor will restore the reference threshold of the monitoring chip to the normal standby threshold. Only when the rainwater, immersion, and low temperature / icing channels are all in a stable state and there are no events to be confirmed, actions to be executed, or data to be reported, will the processor and each ADC chip re-enter the low-power sleep state; otherwise, the corresponding event tracking will continue.
[0094] In addition, users can configure reference thresholds for monitoring chips, wet entry thresholds, dry exit thresholds and confirmation counts for each ADC chip, installation location, risk level, and entry / continuation / exit confirmation time for individual immersion probes, as well as rules for rain, immersion, temperature conditions, composite events, buzzer strategies, and linked actions via the App or cloud platform. When the processor outputs environmental events, the platform pushes notifications based on the event type and risk level, and can trigger automated rules. For example, a continuous rainfall event triggers the closing of the smart window; an immersion alarm triggers the closing of the inlet valve, the start of the drainage pump, and notification to the user; a freezing point risk event triggers an antifreeze reminder or disables certain actions.
[0095] The typical application scenarios of the environmental monitoring and linkage control system provided in this application are as follows: (1) Used for rain detection in smart windows. The rain detection board is installed outside the window. When multiple detection values exceed the threshold consecutively, the device's state machine generates a continuous rainfall event, and the App platform closes the window according to user rules. After the rain stops and is confirmed, the user can be notified or the automatic ventilation strategy can be restored.
[0096] (2) Used for water immersion detection in underground garages or machine rooms. A single water immersion probe is placed in a low-lying area or near critical equipment; when the probe is in contact with water for a short time, it outputs suspected water immersion; when it continues to reach the confirmation time, it outputs confirmed water immersion; when it continues to reach the high-risk time or is located in a critical risk area, it outputs continuous / high-risk water immersion and triggers a buzzer, push alarm and links a drainage pump or valve.
[0097] (3) Used in low-temperature rain and snow scenarios. When the combined event rule of the temperature being below the freezing point threshold and the presence of rain or water immersion continues to match until the confirmation time is reached, the system outputs an icing risk event to remind the user to take antifreeze measures and can change the window closing, drainage, heating or maintenance strategy.
[0098] (4) Used for low-temperature water leakage or suspected pipe freezing and cracking scenarios. When the combined event rule of no rainwater, water immersion, and low temperature is continuously matched until the confirmation time is reached, the system outputs a low-temperature water immersion or suspected pipe freezing and cracking water leakage risk event, and can perform actions such as high-level alarm, closing the water inlet valve, and notifying the user to check the pipeline.
[0099] (5) Used in low-temperature rainwater backflow scenarios. When the rules for the combined events of rainwater presence, water immersion, and low temperature are continuously matched and the confirmation time is reached, the system outputs a comprehensive high-risk event of backflow, water accumulation, and freezing, and can execute the highest level alarm as well as combined actions such as closing windows, closing valves, draining water, and antifreeze.
[0100] In summary, compared with the prior art, the environmental monitoring and linkage control method provided in this application has the following beneficial effects: (1) Improve the reliability of judgment: After receiving the wake-up signal sent by the monitoring chip, the processor does not directly output the final rainwater conclusion, but wakes up each ADC chip to perform quantitative acquisition, and selects the target reference threshold (i.e., the secondary confirmation threshold) of the monitoring chip based on the ADC value. Then, the rainwater state is determined by the detection results of all detection segments, thereby reducing false alarms caused by single drop splashes and instantaneous interference.
[0101] (2) Reduce power consumption and ensure real-time performance: The monitoring chip autonomously monitors the normal state at a cycle of 500 ms. The processor and each ADC chip only enter the working state after being woken up by the monitoring chip. The I²C bus is only used for configuration and threshold switching. In addition, the initial detection waiting time does not exceed one monitoring cycle, which reduces the average working time of the processor and each ADC chip while providing sub-second initial response.
[0102] (3) Forming a complete event closed loop: The system can convert the raw sampling data into understandable environmental events and further perform notification, recording, linkage and recovery confirmation, so that the sensor can be upgraded from a single-point detection hardware to a complete system with multi-channel fusion judgment and linkage control capabilities.
[0103] (4) Improve system adaptability: By remotely configuring the rainwater detection threshold, single probe installation location, scene risk level, and the entry, duration, and exit confirmation time of rainwater and immersion events, the same hardware can be adapted to various application scenarios such as windows, ground, computer room, warehouse, and agriculture.
[0104] Based on the above methodological concept, in one optional implementation, please refer to... Figure 8 This application also provides an environmental monitoring linkage control device 20, which is used to execute the environmental monitoring linkage control method as described in any of the foregoing embodiments. The device includes: The status determination module 21 is used to start sampling multiple rainwater detection areas when it receives a wake-up signal sent by the rainwater detection module, adjust the detection sensitivity of the rainwater detection module according to the sampled values, and determine the current rainwater status according to the data fed back by the adjusted rainwater detection module; at the same time, it determines the current immersion status according to the data fed back by the immersion detection module, and determines the current temperature status according to the data fed back by the temperature detection module.
[0105] The rule matching module 22 is used to match the current rainwater status, current flooding status and current temperature status with multiple composite event rules to determine whether each composite event rule has been triggered.
[0106] The linkage execution module 23 is used to generate the environmental event corresponding to any composite event rule and execute the linkage action when any composite event rule is triggered.
[0107] Specific limitations regarding the environmental monitoring linkage control device 20 can be found in the limitations of the environmental monitoring linkage control method described above, and will not be repeated here. Each module in the aforementioned environmental monitoring linkage control device 20 can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the electronic device in hardware form, or stored in the memory of the electronic device in software form, so that the processor can call and execute the corresponding operations of each module.
[0108] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
[0109] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this application. No reference numerals in the claims should be construed as limiting the scope of the claims.
Claims
1. An environmental monitoring and linkage control method, characterized in that, An environmental monitoring and control system is applied, the system including a processor, and a rainwater detection module, an immersion detection module, and a temperature detection module, all connected to the processor; the method includes: When the processor receives a wake-up signal from the rain detection module, it starts sampling multiple rain detection areas, adjusts the detection sensitivity of the rain detection module according to the sampled values, and determines the current rain status based on the data fed back by the adjusted rain detection module; at the same time, it determines the current immersion status based on the data fed back by the immersion detection module, and determines the current temperature status based on the data fed back by the temperature detection module. The processor matches the current rain status, current flooding status, and current temperature status with multiple composite event rules to determine whether each composite event rule has been triggered. When any composite event rule is triggered, the processor generates the corresponding environmental event and executes the linked action.
2. The environmental monitoring and linkage control method according to claim 1, characterized in that, The rainwater detection module includes a rainwater detection board, X ADC chips, and a monitoring chip with an adjustable reference threshold. The rainwater detection board has a first detection segment and X second detection segments, each distributed in a different rainwater detection area. The monitoring chip and each ADC chip are connected to the processor. The monitoring chip is also connected to the first detection segment, and each ADC chip is also connected to the corresponding second detection segment. Wherein, X > 1. Before the step of the processor receiving the wake-up signal sent by the rain detection module, the method further includes: In dry, low-power standby mode, the processor and each ADC chip are in a sleep state, and the reference threshold of the monitoring chip is the normal standby threshold pre-written by the processor. The monitoring chip autonomously detects the detection voltage of the first detection segment at a preset cycle, and compares the detection voltage with the normal standby threshold to obtain the initial comparison result of the first detection segment under the normal standby threshold; wherein, the smaller the detection voltage, the higher the wetness of the first detection segment. When the initial comparison result indicates that the detection voltage is not greater than the normal standby threshold, the monitoring chip sends a wake-up signal to the processor; wherein, the wake-up signal indicates that the current wetness state of the first detection segment is wet.
3. The environmental monitoring and linkage control method according to claim 2, characterized in that, When the processor receives a wake-up signal from the rain detection module, it initiates sampling of multiple rain detection areas, adjusts the detection sensitivity of the rain detection module based on the sampled values, and determines the current rain status based on the data fed back by the adjusted rain detection module. The steps include: The processor responds to the wake-up signal to exit the sleep state and starts the acquisition function of each ADC chip; Obtain the ADC sampling value corresponding to each second detection segment, and confirm the current wetness status of each second detection segment based on the ADC sampling value corresponding to each second detection segment and the previous wetness status; Based on the previous rainfall status and the current humidity status of each second detection segment, select one from multiple candidate reference thresholds as the target reference threshold, and write the target reference threshold into the monitoring chip; The monitoring chip, after threshold adjustment, re-acquires the target comparison result of the first detection segment under the target reference threshold, and confirms the current wetness state of the first detection segment a second time based on the target comparison result. The current rainfall status is determined based on the current wetness status of all detection segments, the status of the previous rainfall, the duration, and the trend of detection voltage changes.
4. The environmental monitoring and linkage control method according to claim 3, characterized in that, The step of confirming the current wetness status of each second detection segment based on the ADC sampling value corresponding to each second detection segment and the previous wetness status includes: When the previous wet state of the second detection segment was dry, and its ADC sampling value is not greater than the wet entry threshold for Nin consecutive times, the current wet state of the second detection segment is updated to wet; where Nin is the number of entry confirmations, Nin>1; When the previous wet state of the second detection segment was wet, and its ADC sampling value is not less than the drying exit threshold for Nout consecutive times, the current wet state of the second detection segment is updated to dry; where Nout is the number of exit confirmations, Nout > 1; When the ADC sampling value of the second detection segment is greater than the wetting entry threshold and less than the drying exit threshold, the current wetting state of the second detection segment is maintained as its previous wetting state.
5. The environmental monitoring and linkage control method according to claim 3, characterized in that, Multiple candidate reference thresholds include: false trigger prevention threshold, suspected humidity monitoring threshold, normal standby threshold, and rainfall tracking and recovery threshold; among which, false trigger prevention threshold < suspected humidity monitoring threshold < normal standby threshold < rainfall tracking and recovery threshold; The step of selecting a target reference threshold from multiple candidate reference thresholds based on the previous rainfall status and the current wetness status of each second detection segment includes: When the current wetness state of all second detection segments is dry, the anti-false triggering threshold is selected as the target reference threshold; When the previous rainfall status was unconfirmed rainfall, and the current wet status of at least one second detection segment is wet, the suspected wet monitoring threshold is selected as the target reference threshold. When the previous rainfall status was confirmed as rainfall or rain stopped and resumed, the rainfall tracking and recovery threshold was selected as the target reference threshold. The larger the target reference threshold, the higher the detection sensitivity of the monitoring chip, and the easier it is to trigger the wake-up signal.
6. The environmental monitoring and linkage control method according to claim 3, characterized in that, The step of determining the current rainfall status based on the current wetness status of all detection segments, the previous rainfall status, duration, and detection voltage change trend includes: When the current wetness status of all detection segments is dry, or when the previous rainwater status was rain stop and recovery and all detection segments have been dry and have continued to be dry until the rainwater exit confirmation time, the current rainwater status is determined to be no rain. If the current wetness status of the first detection segment is wet, and only one second detection segment is currently wet, or at least two second detection segments are wet but the duration has not reached the rainwater entry confirmation time, the current rainwater status is determined to be suspected rainwater. If the current wetness status of the first detection segment is wet, and the current wetness status of at least two second detection segments is wet and continues to reach the rainwater entry confirmation time, the current rainwater status is determined to be confirmed rainwater. If the previous rainfall status was confirmed as rainfall, when the number of wet detection segments decreases or the detection voltage of the first detection segment continues to rise, the current rainfall status is determined to be rain stoppage recovery.
7. The environmental monitoring and linkage control method according to claim 1, characterized in that, Each composite event rule is configured with corresponding rainfall conditions, immersion conditions, temperature conditions, and rule entry confirmation time; the processor matches the current rainfall state, current immersion state, and current temperature state with multiple composite event rules, and the step of determining whether each composite event rule is triggered includes: For each composite event rule, the processor matches the current rainwater state, current flooding state, and current temperature state with the corresponding rainwater conditions, flooding conditions, and temperature conditions for that rule, respectively. If the current rainfall status, current flooding status, and current temperature status all match the three conditions corresponding to this rule, then the entry timer will be started; if any condition becomes unmatched during the entry timer, then the entry timer will be cancelled. When the entry timer reaches the rule entry confirmation time corresponding to the rule, it is determined that the rule has been triggered.
8. The environmental monitoring and linkage control method according to claim 1, characterized in that, Each composite event rule is configured with a corresponding event type, risk level, and associated action; the step of the processor generating the corresponding environmental event and executing the associated action when any composite event rule is triggered includes: The processor generates an environmental event containing the event type and risk level corresponding to the triggered composite event rule, and executes the linkage action corresponding to the rule.
9. The environmental monitoring and linkage control method according to claim 1, characterized in that, Each composite event rule is configured with corresponding rain conditions, immersion conditions, temperature conditions, rule exit confirmation time, and recovery actions; after the step of the processor generating the environmental event corresponding to the rule and executing the linkage action, the method further includes: For a triggered compound event rule, the processor matches the current rainwater state, current flooding state, and current temperature state with the corresponding rainwater conditions, flooding conditions, and temperature conditions of the rule, respectively. If the matching result of any condition becomes a mismatch, the exit timer is started; if, during the exit timer period, the current rainwater state, the current flooding state, and the current temperature state simultaneously match the three conditions corresponding to the rule again, the exit timer is canceled. When the exit timer reaches the rule exit confirmation time corresponding to the rule, the processor terminates the environmental event corresponding to the rule or executes the recovery action corresponding to the rule.
10. An environmental monitoring and linkage control device, characterized in that, The device is used to execute the environmental monitoring linkage control method as described in any one of claims 1-9, the device comprising: The status determination module is used to initiate sampling of multiple rainwater detection areas when it receives a wake-up signal sent by the rainwater detection module, adjust the detection sensitivity of the rainwater detection module according to the sampled values, and determine the current rainwater status based on the data fed back by the adjusted rainwater detection module; at the same time, it determines the current immersion status based on the data fed back by the immersion detection module, and determines the current temperature status based on the data fed back by the temperature detection module. The rule matching module is used to match the current rainwater status, current flooding status, and current temperature status with multiple composite event rules to determine whether each composite event rule has been triggered. The linkage execution module is used to generate the corresponding environmental event and execute the linkage action when any composite event rule is triggered.
