Zigbee-based intelligent control system for water dispenser and method thereof

By introducing CEOP reporting frames and asymmetric listening mechanisms into the Zigbee network, the problem of sleep terminals being unable to report and control in real time has been solved, achieving sub-second emergency response and bidirectional control, and improving the network's autonomous disaster prevention and security capabilities.

CN121239720BActive Publication Date: 2026-03-10BEIJING ZHONGPIN NO 1 NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-01
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In Zigbee low-power networks, dormant terminals cannot report critical events and receive downlink control in a timely manner, resulting in a serious delay in emergency response and posing a security risk.

Method used

By bypassing the Zigbee application layer polling task through the protocol bypass trigger module, a CEOP reporting frame is constructed and sent at the network layer. Combined with the network state machine management module, the CEOP storm suppression module, and the dynamic preemption routing module, sub-second-level critical event reporting and bidirectional control are achieved. An asymmetric down-control wake-up module is used to force wake-up and control of dormant terminals.

Benefits of technology

While maintaining the advantage of ultra-low power consumption with minute-level deep sleep, it achieves sub-second-level reporting of critical events and bidirectional control, possesses context awareness and intelligent decision-making capabilities, can identify and suppress malicious alarm storms, and ensures network robustness and availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121239720B_ABST
    Figure CN121239720B_ABST
Patent Text Reader

Abstract

The application relates to the field of Zigbee wireless communication and intelligent control technology, in particular to an intelligent control system of a water dispenser based on Zigbee; the system comprises a protocol bypass triggering module, a network state machine management module, a CEOP storm suppression module, a dynamic preemption routing module and an asymmetrically controlled wake-up module; the system responds to a hardware interrupt through the protocol bypass triggering module, bypasses application layer polling and reports a CEOP frame; the core is that the network state machine management module recursively updates a network emergency response level based on the CEOP frame, and in combination with the dynamic preemption routing module, message preemption type forwarding is realized, and the asymmetrically controlled wake-up module forcibly wakes up a dormant terminal; the application solves the contradiction between deep sleep of a Zigbee terminal and instant reporting control, and through protocol bypassing and asymmetrically listening, sub-second key event reporting and bidirectional control are realized without sacrificing the low-power consumption advantage.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of Zigbee wireless communication and intelligent control, in particular to a water dispenser intelligent control system based on zigbee and a method thereof. BACKGROUND

[0002] In the existing Zigbee low-power network, the sleep terminal ZED generally adopts minute-level deep sleep and application layer long polling Tpoll mechanism to maintain ultra-low power consumption; under this standard protocol architecture, when the ZED is in deep sleep, it cannot immediately report key events such as water leakage, nor can it immediately receive the downlink control command of the coordinator, and must wait for the long polling period to wake up; this mechanism leads to serious lag in emergency response, and there is a major safety hazard in the scene of water dispenser control; therefore, how to ensure the ultra-low power consumption advantage of ZED minute-level deep sleep while solving the irreconcilable contradiction between low power consumption and low delay emergency response, and realizing sub-second key event reporting and bidirectional control, is a technical problem to be solved. SUMMARY

[0003] To solve the above technical problems, the present application provides a water dispenser intelligent control system based on zigbee and a method thereof, in particular, the technical scheme of the present application is as follows:

[0004] A water dispenser intelligent control system based on zigbee, comprising:

[0005] A protocol bypass triggering module is configured to obtain a hardware interrupt signal, bypass Zigbee application layer polling tasks in response to the hardware interrupt signal, construct and send a CEOP reporting frame disguised as a network maintenance frame at the network layer, and obtain CEOP reporting frame information;

[0006] A network state machine management module is configured to use a leak-integral model based on the CEOP reporting frame information, combine a CEOP event trigger value and a time decay amount, and recursively update a network emergency response level to obtain network emergency response level information;

[0007] A CEOP storm suppression module is configured to detect whether the number of CEOP frames in the CEOP reporting frame information exceeds a storm threshold, and generate a source suppression flag when the storm threshold is exceeded;

[0008] A dynamic preemption routing module is configured to obtain a basic priority of a message; the dynamic preemption routing module is further configured to calculate a dynamic preemption weight based on the network emergency response level information and the source suppression flag; the dynamic preemption routing module is further configured to combine the basic priority and the dynamic preemption weight to generate a final priority, and realize pre-emptive forwarding based on the final priority;

[0009] Asymmetric lower control wake-up module, configured to broadcast a CEOP control frame in response to the network emergency response level information, and to enable a dormant terminal to receive and execute the CEOP control frame through an asymmetric MAC listening mechanism, thereby achieving forced wake-up and control.

[0010] Preferably, the CEOP report frame information comprises a magic word and an event type for firmware identification; the network emergency response level information comprises a current level value and an event trigger value; the network emergency response level information further comprises a natural decay coefficient and a state calculation step size; and the final priority generated by the dynamic preemption routing module depends on a base priority of the message and the dynamic preemption weight.

[0011] Preferably, the protocol bypass triggering module comprises:

[0012] A hardware interrupt service sub-module, configured to wake up a central processing unit in response to the hardware interrupt signal;

[0013] A protocol layer bypass sub-module, configured to cause the central processing unit to not invoke a standard ZCL polling task, so as to bypass an application layer and a polling period mechanism;

[0014] A CEOP frame construction sub-module, configured to construct the CEOP report frame at a network layer, wherein the CEOP report frame contains a self-defined magic word and an event type in a payload;

[0015] An immediate sending sub-module, configured to submit the CEOP report frame to a MAC layer for sending at a highest priority.

[0016] Preferably, the network state machine management module comprises:

[0017] An emergency level accumulation sub-module, configured to acquire the CEOP report frame information, and to accumulate a network emergency response level at a previous time based on a trigger value carried by the CEOP event;

[0018] A time decay sub-module, configured to calculate a time decay amount of the level according to a preset natural decay coefficient and a state calculation step size;

[0019] A level updating sub-module, configured to subtract the time decay amount from the accumulated level, and to take a maximum value between a calculation result and zero, so as to update the network emergency response level information.

[0020] Preferably, the dynamic preemption routing module comprises:

[0021] A preemption weight calculation sub-module, configured to calculate the dynamic preemption weight based on the network emergency response level information and the source suppression flag by using a piecewise function;

[0022] a final priority calculation submodule, configured to add the dynamic preemption weight and the base priority of the packet to obtain a final priority of the packet;

[0023] a weighted priority forwarding submodule, configured to sort the packets in a sending queue according to the final priority, and preferentially forward the CEOP report frame.

[0024] Preferably, the CEOP storm suppression module comprises:

[0025] a local storm detection submodule, configured to update a sliding time window counter and compare the storm threshold;

[0026] a suppression state latching submodule, configured to switch the state of the CEOP frame source to suppression when a storm is detected, and start a suppression cooling timer;

[0027] a suppression state release submodule, configured to restore the state of the CEOP frame source to normal and reset the sliding time window counter when the suppression cooling timer counts down to zero.

[0028] Preferably, the asymmetrically controlled wake-up module comprises:

[0029] a CEOP controlled broadcast submodule, configured to construct and broadcast the CEOP control frame when the coordinator determines that the network emergency response level exceeds a preset threshold;

[0030] an asymmetric MAC listening submodule, configured to make the dormant terminal perform instantaneous channel listening in a short listening period independent of the application layer polling period in a regular dormant period;

[0031] a forced wake-up execution submodule, configured to force the dormant terminal to wake up and immediately execute a control action when the CEOP control frame is received in the short listening period.

[0032] A Zigbee-based intelligent control method for a water dispenser, comprising the following steps:

[0033] S1: obtaining a hardware interrupt signal, bypassing a Zigbee application layer polling task in response to the hardware interrupt signal, constructing and sending a CEOP report frame disguised as a network maintenance frame at a network layer to obtain CEOP report frame information;

[0034] S2: using a leaky-integrate-and-fire model based on the CEOP report frame information, combining a CEOP event trigger value and a time decay amount to recursively update a network emergency response level to obtain network emergency response level information;

[0035] S3: detecting whether the number of CEOP frames in the CEOP report frame information exceeds a storm threshold, and generating a source suppression flag when the storm threshold is exceeded;

[0036] S4: obtaining a basic priority of the packet; calculating a dynamic preemption weight based on the network emergency response level information and the source suppression flag; generating a final priority by combining the basic priority and the dynamic preemption weight, and realizing preemption forwarding based on the final priority;

[0037] S5: broadcasting a CEOP control frame in response to the network emergency response level information, and enabling a dormant terminal to receive and execute the CEOP control frame through an asymmetric MAC listening mechanism, to realize forced wake-up and control.

[0038] Compared with the prior art, the present application has the following beneficial effects:

[0039] 1. The present application solves the fundamental contradiction that Zigbee terminal devices cannot report key events and receive downlink control in deep sleep; through protocol bypass and asymmetric listening mechanism, sub-second key event reporting and bidirectional control capability are realized without sacrificing the ultra-low power advantage brought by minute-level deep sleep;

[0040] 2. The present application introduces network emergency response levels, enabling the network to have situational awareness and intelligent decision-making capability; the system uses a leak-integral model, which can not only respond to single-point alarms, but also quantify and accumulate multiple-point, concurrent alarm impacts, and automatically decay and recover to normal after the event subsides, so that network routing and down-control response can be dynamically adjusted according to the real tension level;

[0041] 3. The present application can intelligently identify and suppress malicious alarm storms caused by sensor faults through the storm suppression module; this mechanism effectively prevents single-point faults from causing the entire network emergency channel to be paralyzed by performing distributed source flow control at the routing node and combining with the suppression state latch, ensuring the robustness and availability of regular communication and emergency communication;

[0042] 4. The present application constructs a complete perception-decision-response local autonomous closed loop; when a water leakage event occurs, the system can automatically complete the whole-link response from terminal reporting, coordinator decision-making, routing preemption to total valve forced closing; this process is completely completed autonomously at the local network edge side, without relying on the cloud or manual intervention, so that the Zigbee network changes from a data acquisition network to a self-prevention safety network with local neural reflex capability. BRIEF DESCRIPTION OF DRAWINGS

[0043] The present application will be further explained in conjunction with the accompanying drawings and embodiments:

[0044] Figure 1 is a structural diagram of the system of the present application.

[0045] Figure 2 is a flow chart of the method of the present application. DETAILED DESCRIPTION

[0046] In order to make the objects, technical solutions and advantages of the present application clearer, the present application is further described in detail below with specific examples.

[0047] Example 1:

[0048] Please refer to Figure 1 A Zigbee-based intelligent control system for water dispensers, comprising:

[0049] A protocol bypass triggering module, configured to acquire a hardware interrupt signal, bypass a Zigbee application layer polling task in response to the hardware interrupt signal, construct and send a CEOP report frame disguised as a network maintenance frame at a network layer, and obtain CEOP report frame information;

[0050] A network state machine management module, configured to adopt a leaky-integrate model based on the CEOP report frame information, combine a CEOP event trigger value and a time decay amount, and recursively update a network emergency response level to obtain network emergency response level information;

[0051] A CEOP storm suppression module, configured to detect whether the number of CEOP frames in the CEOP report frame information exceeds a storm threshold, and generate a source suppression flag when the storm threshold is exceeded;

[0052] A dynamic preemption routing module, configured to acquire a basic priority of a message; the dynamic preemption routing module is also configured to calculate a dynamic preemption weight based on the network emergency response level information and the source suppression flag; the dynamic preemption routing module is also configured to generate a final priority by combining the basic priority and the dynamic preemption weight, and realize preemption forwarding based on the final priority;

[0053] An asymmetric down-control wake-up module, configured to broadcast a CEOP control frame in response to the network emergency response level information, and enable a dormant terminal to receive and execute the CEOP control frame through an asymmetric MAC listening mechanism, so as to realize forced wake-up and control.

[0054] The embodiment of the present application provides a Zigbee-based intelligent control system for water dispensers; the system initiatively constructs a key event overlay protocol CEOP in parallel with a standard Zigbee 3.0 protocol, divides network communication into a normal mode and an emergency mode; in the normal mode, the system completely follows the standard protocol, maintains minute-level deep sleep and ultra-low power consumption; in the emergency mode, the system bypasses the standard protocol, realizes sub-second-level alarm and control; the system comprises the following core modules:

[0055] Protocol bypass trigger module, which aims to solve the fundamental contradiction that Zigbee sleep terminal ZED cannot report critical events such as water leakage during deep sleep; this module realizes zero-delay wake-up through hardware mechanism, and realizes zero-delay reporting through bypassing the application layer;

[0056] In this embodiment, the module is specifically realized by but not limited to the defined sub-modules in cooperation:

[0057] Hardware interrupt trigger: the input end of the module is connected with the water leakage sensor I / O port of the water dispenser terminal ZED; when the level of the water leakage sensor such as the water immersion probe changes, for example, from low level to high level, the GPIO hardware interrupt of the Zigbee chip will be triggered immediately;

[0058] Protocol layer bypass: the hardware interrupt signal will immediately wake up the central processor CPU of the ZED and execute the interrupt service program ISR; the key of the application is that the ISR is customized and modified so as to not call or bypass the standard Zigbee application layer ZCL polling task; this means that the CPU does not need to wait for a polling period of up to several minutes ;

[0059] CEOP frame construction and sending: the ISR will immediately call the CEOP frame construction sub-module to construct a CEOP reporting frame at the network layer NWK; the frame is disguised as a high-priority network maintenance frame such as a route request RREQ or a network beacon at the MAC layer and the NWK layer, so that it can be listened to by all routes ZR nodes in the network;

[0060] CEOP reporting frame information: the payload of the frame contains custom CEOP reporting frame information;

[0061] Magic word : refers to a fixed, predefined 16-bit or 32-bit constant such as 0xDEADBEEF; its function is to enable the modified firmware ZR or ZC coordinator to identify the frame as the CEOP frame of the application, rather than a real RREQ frame; its source is the system firmware configuration;

[0062] Event type : refers to an enumeration value such as 0x01=water leakage, 0x02=overheating; its function is to enable the coordinator to distinguish different emergency events; its source is the GPIO pin definition of the interrupt source;

[0063] Source node ID : refers to the 16-bit short address of the ZED; its function is to identify the source of the event;

[0064] A network state machine management module, preferably deployed on the coordinator ZC, aims to extract quantitative indicators reflecting the security state of the entire network from the point CEOP alarm events; this module dynamically assesses the tension of the entire network, providing decision-making basis for subsequent route preemption and broadcast control;

[0065] In this embodiment, the module introduces a core state parameter: network emergency response level ;

[0066] Refers to a dimensionless number, for example, a floating-point number 0.0 to 10.0, whose physical meaning is to quantify the degree of network activation due to key events; its source is recursively calculated and maintained by the module using the leak-integral model;

[0067] The module uses the leak-integral model to recursively update , whose calculation formula is as follows:

[0068] ;

[0069] After presenting the formula, each parameter and variable in the network emergency response level information is described in detail:

[0070] Among them, : the current level value, a dimensionless number, the output result of this round of calculation;

[0071] : the level value of the last calculation period, a dimensionless number, a recursive state parameter;

[0072] : the set of CEOP events received by the coordinator within the time window, event set, real-time statistics by the coordinator;

[0073] : CEOP event trigger value, dimensionless level, system configuration constant; the physical meaning of this parameter is the impact strength of the first class event such as water leakage on the network emergency state; the parameter calibration method is: based on statistical analysis of a historical data set containing, for example, 1000 different emergency events such as water leakage and overheating, set the value of to be a constant proportional to the expected system risk such as property loss index corresponding to this class of events ; for example, set the of water leakage to +2.0 and the overheating to +0.5;

[0074] To enable those skilled in the art to implement, the proportional relationship is further specifically defined as a lookup table or an explicit mapping function; for example, through historical data regression analysis, the Ltrigger value is calibrated as a function of the expected loss , where is a calibration coefficient to ensure that the non-linear relationship of impact intensity is reasonably quantified;

[0075] : natural attenuation coefficient, dimensionless, grade / second, system tuning parameter; this parameter defines the speed at which the network returns to normal state in the absence of events, for example, set to 0.1 / second; the value of which is based on the fact that, by injecting a single impact in the test network, and measuring the time required to decay from the peak value to approximately 36.8% of its peak value , one can calibrate to ensure that the decay rate is in line with the system's forgetting expectations; , to ensure that the decay rate is in line with the system's forgetting expectations;

[0076] : state calculation step, seconds, system configuration parameter; this parameter defines the calculation frequency of the coordinator state machine ZC, for example, set to 1.0 seconds;

[0077] The calculation logic of this formula is implemented through the cooperation of various sub-modules: the emergency level accumulation sub-module is responsible for calculating the part; the time decay sub-module is responsible for calculating the part; the level update sub-module is responsible for performing subtraction and operations to ensure that the level is not negative;

[0078] CEOP storm suppression module, which is preferably deployed at the routing ZR node, aims to solve a key technical difficulty: when the leak sensor of a certain ZED fails, for example, high-frequency level jitter, a large number of CEOP report frames may be generated, leading to a CEOP storm, which will paralyze the entire network's regular communication through the dynamic preemption routing module described below; this module solves the DoS attack problem by distributed source throttling at the routing ZR node;

[0079] In this embodiment, this module achieves this function by generating a source suppression flag ;

[0080] ​​​Source suppression flag is a Boolean value True / False; its role is as an input parameter of the downstream dynamic preemption routing module, to dynamically deprive the preemption weight of Downgrade specific SourceID; its source is the calculation of this module through the suppression latch state machine;

[0081] The implementation logic of this state machine is as follows:

[0082] Local storm detection: the local storm detection submodule maintains a sliding time window counter for each SourceID , which records the number of CEOP frames from this SourceID in time, for example, seconds;

[0083] Trigger and latch: when it is detected that exceeds the storm threshold , for example, times, the suppression state latch submodule immediately switches the state of this SourceID to SUPPRESSED, and sets the source suppression flag to true; at the same time, start a suppression cooling timer , whose duration is set by , for example, 60 seconds;

[0084] The above and are system configuration thresholds; the determination method of this threshold is: in the experimental environment, simulate the maximum non-paralyzing jitter frequency generated by single-point sensor failure, and take the expected count value in time window at this frequency as the calibration benchmark of , to balance between suppressing real faults and misjudging occasional surges; where, non-paralyzing is further quantitatively defined as: under this jitter frequency, the average end-to-end delay of the network's regular ZCL data frame does not exceed times of its delay in the idle network state; when calibrating, gradually increase the simulated jitter frequency , until , to determine the boundary of the maximum non-paralyzing frequency;

[0085] Release: during the countdown period, this SourceID is continuously suppressed; when countdown to 0, the suppression state release submodule restores the state to NORMAL, sets it to false, and resets the counter to start a new detection period;

[0086] The dynamic preemption routing module is deployed on the routing ZR node. Its purpose is to ensure that unsuppressed CEOP reporting frames and high-level CEOP control frames can preempt the ZR's sending queue with the highest priority, achieving sub-second forwarding.

[0087] In this embodiment, the core of this module is to calculate data packets. final priority This priority is the sum of the base priority and the dynamic preemption weight.

[0088] ;

[0089] The parameters and variables in this formula are explained in detail:

[0090] in, Message The final priority, dimensionless value, and final output of the calculation;

[0091] Message The basic priority, a dimensionless value, is a system configuration parameter; this parameter is preset in the firmware according to the frame type, for example, regular ZCL data = 1, ZDO network commands = 3;

[0092] : Dynamic preemption weight, a dimensionless value, calculated by the preemption weight calculation submodule of this module;

[0093] The network emergency response level information is locally cached in ZR. It is a dimensionless numerical value and an external input parameter. It is calculated by the network state machine management module on the coordinator ZC and broadcast periodically.

[0094] Message The source node ID;

[0095] The preemption weight calculation submodule calculates the weight using a piecewise function called PiecewiseFunction. This function is the core original algorithm of this invention:

[0096] ;

[0097] To ensure that the routing node ZR can correctly execute the segmentation function, this invention further specifies that: the criterion for determining FrameType(i)=CEOP_FRAME is that the message payload contains the magic word CEOP_MAGIC; the criterion for determining FrameType(i)=CEOP_CONTROL is that the control frame also contains a specific control magic word different from CEOP_MAGIC in the custom payload, such as CEOP_CTRL_MAGIC, and the coordinator ZC must include this magic word when broadcasting the frame;

[0098] A detailed explanation of the new parameters in this formula:

[0099] in, Source suppression flag, a Boolean value, a key input, calculated by the upstream CEOP storm suppression module;

[0100] : Maximum constant, dimensionless value, system configuration constant, such as 1000, used to ensure absolute preemption;

[0101] To further clarify the absolute seizure, this The value of must be limited to greater than all possible values. and The maximum possible value of the sum; for example, if The maximum is 10. , If the cap is 10.0, then... Must be greater than Setting it to 1000 satisfies this condition, but its minimum value should be constrained by this inequality.

[0102] : Downward control weight scaling factor, dimensionless priority / dimensionless level, system tuning parameter, such as 5.0, used to define Sensitivity to the priority of subordinate commands;

[0103] : Lower control response threshold, dimensionless level, system configuration threshold, such as 2.0, used to prevent the network from operating at low speeds. Frequent adjustments to the lower control priority during fluctuations;

[0104] To further clarify, The value can be calibrated through different For example, horizontal The average forwarding delay reduction of CEOP_CONTROL frames relative to regular ZCL data frames was measured for values ​​of 2.0, 5.0, and 8.0, respectively, and regression analysis, such as least squares method, was performed to determine the specific delay. The best linear relationship between delay improvement and other factors; then is set to the network first needs intervention The threshold value is, for example, corresponding to the single-point water leakage event triggered The steady-state value;

[0105] The specific logic is as follows:

[0106] Storm suppression: if a frame is a CEOP reporting frame, but the source suppression flag is true, then its preemption weight is reduced to 0;

[0107] Highest preemption: if a frame is a CEOP reporting frame and is not suppressed, it obtains the maximum value , ensuring that it is absolutely highest;

[0108] Dynamic down control: if a frame is a CEOP down control frame such as a valve closing command, and the network level exceeds the threshold value, then its weight increases linearly with ;

[0109] Normal case: all other normal ZCL data frames, the weight is 0, and its priority is only determined by ;

[0110] After calculation , the weighted priority forwarding submodule sorts the transmission queue of ZR according to the value of , and preferentially forwards the highest message;

[0111] The asymmetric down control wake-up module aims to solve the contradiction of zero-delay down control, that is, how the coordinator ZC sends a valve closing command to the ZED, for example, a smart total valve, immediately when the ZED is in a deep sleep state for up to 5 minutes;

[0112] In this embodiment, the module is realized by, but not limited to, the defined submodules:

[0113] Down control broadcast: the CEOP down control broadcast submodule runs on the coordinator ZC; when the ZC determines that the network emergency response level information exceeds a preset threshold value such as , it immediately constructs and broadcasts a CEOP control frame, for example, a valve closing command;

[0114] Asymmetric MAC listening: the asymmetric MAC listening submodule is the key of the application; it modifies the MAC layer firmware of the ZED water dispenser terminal or the total valve terminal; in the normal application layer sleep period, for example, 5 minutes, the MAC layer will perform instantaneous listening in a CEOP channel with a very short listening period , for example, 500 ms, which is independent of channel listening, e.g. 10 ms;

[0115] Forced wake-up and execution: Since ZED has a 10 ms listening window every 500 ms, the CEOP control frame broadcasted by the coordinator will be preemptively forwarded by ZRs and captured by the forced wake-up execution submodule within sub-second; Once captured, the module will immediately force the main CPU of the ZED to wake up even if the application layer is still in sleep, and immediately execute the control action such as closing the electromagnetic valve;

[0116] The system of the present application provides sub-second, e.g. <200 ms for reporting, <500 ms for emergency alarm and bidirectional control capability comparable to wired systems, without sacrificing the minute-level deep sleep of Zigbee ZED, i.e. ultra-low power consumption, through the synergistic effect of the above-mentioned four modules of protocol bypass, state machine management, preemptive routing and asymmetric listening;

[0117] Further, the system emerges a synergistic effect of a local autonomous disaster prevention safety network; when the ZED-A of water leakage reports the CEOP frame, the ZC of the ZED-A rapidly exceeds the threshold value, the ZC immediately broadcasts the CEOP-STOP control frame, which is received and executed by the ZED-total valve through asymmetric listening within <500 ms; the entire perception-decision-response process is completely autonomous in the closed loop on the edge side of the Zigbee local network, without the need for cloud and manual intervention, realizing the qualitative change from the data collection network to the autonomous disaster prevention network;

[0118] In addition, through the exquisite coupling of the CEOP storm suppression module based on and the dynamic preemptive routing module based on and , the system can effectively resist DoS attacks caused by sensor failures, ensuring the robustness and availability of the emergency channel.

[0119] Embodiment 2:

[0120] The CEOP reporting frame information includes a magic word for firmware identification and an event type; the CEOP reporting frame information also includes a source node ID; the network emergency response level information includes a current level value and an event trigger value; the network emergency response level information also includes a natural decay coefficient and a state calculation step; the final priority generated by the dynamic preemptive routing module depends on the basic priority of the message and the dynamic preemptive weight.

[0121] As for the implementation of embodiment 1, the CEOP reporting frame information and the network emergency response level information in the system are key data structures for realizing the core function of the present application, and their detailed definitions and parameter sources have been fully disclosed in the description of embodiment 1;

[0122] By embedding magic words in disguised NWK frame payloads and event types , the feasibility of protocol bypass is achieved; the magic words ensure that the firmware modified by the system can identify emergency frames, while standard devices will discard them as unidentified RREQs, ensuring compatibility; the event types allow the network state machine management module to respond differently to events of different severity, such as water leakage vs overheating, by assigning different values;

[0123] By defining trigger values , natural decay coefficients and state calculation steps , the calculation of the leak-integral model has high configurability and physical interpretability; the trigger values quantify the intensity of the event impact; the decay coefficients ensure the self-recovery ability of the system, avoiding the rigid defect of one-key triggering and permanent alarm; the steps define the response sensitivity of the system;

[0124] The final priority calculation method : by using a basic + dynamic addition model, the CEOP preemption mechanism of the invention is an overlay on top of the existing Zigbee priority system defined by ; in emergency mode , the CEOP frame gets preemption; in normal mode , the system automatically falls back to the standard priority queue determined by , achieving smooth compatibility in dual mode.

[0125] Embodiment 3:

[0126] The protocol bypass trigger module includes:

[0127] A hardware interrupt service sub-module for responding to a hardware interrupt signal to wake up the central processor;

[0128] A protocol layer bypass sub-module for making the central processor not call the standard ZCL polling task to bypass the application layer and the polling period mechanism;

[0129] A CEOP frame construction sub-module for constructing a CEOP reporting frame at the network layer, the CEOP reporting frame containing custom magic words and event types in the payload;

[0130] An immediate sending sub-module for submitting the CEOP reporting frame to the MAC layer for sending at the highest priority.

[0131] The embodiment specifically defines the protocol bypass triggering module in Embodiment 1, and the detailed implementation manner has been fully disclosed in the corresponding description of Embodiment 1 with reference to the protocol bypass triggering module part; the module is composed of a hardware interrupt service sub-module, a protocol layer bypass sub-module, a CEOP frame construction sub-module and an immediate sending sub-module;

[0132] The embodiment realizes zero-delay wake-up through the hardware interrupt service sub-module, bypasses the application layer constraint through the protocol layer bypass sub-module, constructs a pseudo NWK frame through the CEOP frame construction sub-module and submits the tight combination to the MAC layer through the immediate sending sub-module, thereby providing a complete and operable implementation scheme, and decoupling the emergency reporting delay from the physical constraint between the sleep periods; this solves the contradiction between low power consumption and low delay in the standard Zigbee protocol.

[0133] Embodiment 4:

[0134] The network state machine management module comprises:

[0135] An emergency level accumulation sub-module configured to acquire CEOP reporting frame information and accumulate a network emergency response level at a previous moment based on a trigger value carried by a CEOP event;

[0136] A time decay sub-module configured to calculate a time decay amount of the level according to a preset natural decay coefficient and a state calculation step;

[0137] A level updating sub-module configured to subtract the time decay amount from the accumulated level and take a maximum value between the calculation result and zero, to update a current network emergency response level information.

[0138] The embodiment specifically defines the network state machine management module in Embodiment 1, and the detailed implementation manner, i.e., the leak-integral model, has been fully disclosed in the corresponding description of Embodiment 1 with reference to the network state machine management module part, especially the analysis of the formula The module is composed of an emergency level accumulation sub-module, a time decay sub-module and a level updating sub-module;

[0139] The embodiment realizes an intelligent state machine with memory and forgetting ability through the counteraction and balance of the emergency level accumulation sub-module and the time decay sub-module; This makes the network state machine not only able to accumulate multiple-point and concurrent alarms and quickly accumulate multiple water leakage in a short time , but also able to automatically decay after the event is calmed down ​​It falls back to 0 over time; this design is much better than a simple state flip model 0 or 1, greatly improving the robustness and intelligence of the system in dealing with complex scenarios such as occasional false positives, alarm jitter.

[0140] Embodiment 5:

[0141] The dynamic preemption routing module comprises:

[0142] The preemption weight calculation submodule is configured to calculate a dynamic preemption weight based on the network emergency response level information and the source suppression flag by using a piecewise function.

[0143] The final priority calculation submodule is configured to add the dynamic preemption weight to a basic priority of the message to obtain a final priority of the message.

[0144] The weighted priority forwarding submodule is configured to sort the messages in the sending queue according to the final priority and preferentially forward the CEOP reporting frame.

[0145] The embodiment specifically defines the dynamic preemption routing module in Embodiment 1, and the detailed implementation manner, i.e., the priority calculation formula and has been fully disclosed in the corresponding description of Embodiment 1; the module is composed of the preemption weight calculation submodule, the final priority calculation submodule, and the weighted priority forwarding submodule.

[0146] The embodiment realizes the combination of the piecewise function and the addition of the final priority calculation submodule by the preemption weight calculation submodule, and realizes a highly context-aware routing forwarding mechanism.

[0147] It is not a static high priority, but:

[0148] Storm awareness: in response to the source suppression flag, dynamically reject the preemption request of the faulty node .

[0149] Event awareness: in response to the CEOP reporting frame, give absolute preemption .

[0150] Network state awareness: in response to the LNER level, dynamically adjust the priority of the CEOP control frame .

[0151] Such multi-dimensional dynamic adjustment capability is the key to realizing the synergy of high performance and high robustness of the application.

[0152] Embodiment 6:

[0153] The CEOP storm suppression module comprises:

[0154] a local storm detection submodule for updating a sliding time window counter and comparing with a storm threshold;

[0155] a suppression state latch submodule for switching the state of the CEOP frame source to suppression when a storm is detected and starting a suppression cooling timer;

[0156] a suppression state release submodule for restoring the state of the CEOP frame source to normal when the suppression cooling timer counts down to zero and resetting the sliding time window counter.

[0157] The embodiment specifically defines the CEOP storm suppression module in Embodiment 1, and the detailed implementation manner, i.e., the suppression latch state machine, has been fully disclosed in the corresponding description of Embodiment 1, see the CEOP storm suppression module part; the module is composed of a local storm detection submodule, a suppression state latch submodule and a suppression state release submodule;

[0158] The embodiment introduces a suppression cooling timer through the suppression state latch submodule This key mechanism; a conventional storm detection such as a simple token bucket will cause suppression jittering, i.e., frequently switching between suppression and release, when facing a jittering signal, i.e., the alarm frequency fluctuates around the threshold, which will introduce unnecessary network state switching overhead and further affect the network burden; the latch mechanism of the present application ensures that once suppression is triggered, forced cooling such as 60 seconds is necessary, and the suppression state release submodule must wait for the timer to return to zero before releasing; this design avoids suppression jittering and ensures that the suppression of the fault source is decisive and robust.

[0159] Embodiment 7:

[0160] The asymmetric down-control wake-up module comprises:

[0161] a CEOP down-control broadcast submodule for constructing and broadcasting a CEOP control frame when the coordinator determines that the network emergency response level exceeds a preset threshold;

[0162] an asymmetric MAC listening submodule for causing the dormant terminal to perform instantaneous channel listening in a short listening period independent of the application layer polling period in a regular dormant period;

[0163] a forced wake-up execution submodule for forcing the dormant terminal to wake up and immediately execute a control action when the CEOP control frame is received in the short listening period.

[0164] The embodiment specifically defines the asymmetric down-control wake-up module in Embodiment 1, and the detailed implementation manner has been fully disclosed in the corresponding description of Embodiment 1 by referring to the asymmetric down-control wake-up module part; the module is composed of a CEOP down-control broadcast sub-module, an asymmetric MAC listening sub-module and a forced wake-up execution sub-module;

[0165] The core innovation of the embodiment lies in the asymmetric MAC listening sub-module; it creatively establishes an asymmetric sleep-wake contract between the application layer long sleep , minute level and MAC layer short listening , sub-second level; this simultaneously realizes the following technical effects:

[0166] The power consumption remains unchanged: in 99.9% of the normal mode, the application layer and most of the radio frequency RF components of the ZED still enjoy minute level deep sleep brought by the ZED, and the power consumption is consistent with the standard ZED;

[0167] The delay realizes mutation: in 0.1% of the emergency mode, the CEOP control frame broadcasted by the ZC is sent out by the CEOP down-control broadcast sub-module and only needs to wait for at most one For example, 500ms can be captured by the forced wake-up execution sub-module;

[0168] This instant MAC listening at a very small power consumption cost exchanges the downlink control delay from minute level to sub-second level.

[0169] Embodiment 8:

[0170] Please refer to Figure 2 , a Zigbee-based intelligent control method for a water dispenser, comprising the following steps:

[0171] S1: obtaining a hardware interrupt signal, bypassing a Zigbee application layer polling task in response to the hardware interrupt signal, constructing and sending a CEOP report frame disguised as a network maintenance frame at a network layer, and obtaining CEOP report frame information;

[0172] S2: based on the CEOP report frame information, using a leakage-integration model, combining a CEOP event trigger value and a time decay amount, recursively updating a network emergency response level, and obtaining network emergency response level information;

[0173] S3: detecting whether the number of CEOP frames in the CEOP report frame information exceeds a storm threshold, and generating a source suppression flag when the storm threshold is exceeded;

[0174] S4: obtaining a basic priority of a message; based on the network emergency response level information and the source suppression flag, calculating a dynamic preemption weight; combining the basic priority and the dynamic preemption weight, generating a final priority, and realizing pre-emptive forwarding based on the final priority;

[0175] S5: In response to the network emergency response level information, broadcast the CEOP control frame, and make the dormant terminal receive and execute the CEOP control frame through the asymmetric MAC listening mechanism, to realize forced wake-up and control.

[0176] The embodiment of the application also provides a Zigbee-based intelligent control method for a water dispenser, which is applied to the system in any one of embodiments 1 to 7; the specific steps S1 to S5 of the method are executed by the corresponding modules in embodiment 1, and the detailed implementation principles, algorithm formulas and parameter configurations have been fully disclosed in the implementation manners of embodiments 1 to 7;

[0177] The method comprises the following steps:

[0178] S1: Protocol bypass triggering

[0179] This step is executed by the protocol bypass triggering module; when a critical event such as water leakage occurs, a hardware interrupt signal is acquired, in response to the signal, the CPU of the ZED is woken up, and the polling task of the Zigbee application layer ZCL is bypassed, and a CEOP report frame disguised as a network maintenance frame is directly constructed and immediately sent on the network layer NWK, to generate CEOP report frame information;

[0180] S2: Network state machine management

[0181] This step is executed by the network state machine management module on the ZC; after receiving the CEOP report frame information of S1, the module adopts a leak-integral model based on the information, as shown in the formula , combines a preset CEOP event triggering value and a time decay amount , recursively updates the network emergency response level , and obtains network emergency response level information;

[0182] S3: CEOP storm suppression

[0183] This step is executed by the CEOP storm suppression module on the ZR; before forwarding the CEOP report frame of S1, the module will detect whether the SourceID in the CEOP report frame information and the number of CEOP frames thereof exceed the storm threshold within a time ; if yes, the suppression state latch submodule is started, a source suppression flag is generated, and the time is maintained;

[0184] S4: Dynamic preemption routing

[0185] This step is performed on ZR by the dynamic preemptive routing module; this module obtains the base priority of all packets in the queue. Network emergency response level information based on S2 broadcast The source suppression flag Suppress generated by S3 is processed through a piecewise function as shown in the formula. The dynamic preemption weight is calculated as shown. The final priority is generated by combining the basic priority with the dynamic preemption weight. and based on Sort the sending queue to achieve preemptive forwarding;

[0186] S5: Asymmetric Down-Controlled Wake-up

[0187] This step is executed collaboratively by the asymmetric down-control wake-up module on ZC and ZED; the CEOP down-control broadcast submodule on ZC responds to the network emergency response level information of S2, for example... Broadcast CEOP control frames; ZEDs in a dormant state, such as the asymmetric MAC listening submodule on the main valve, during their independent short listening cycles. The CPU is captured internally, and the forced wake-up execution submodule immediately wakes up the CPU and performs control such as closing the valve, thus realizing forced wake-up and control.

[0188] Through the coordinated work of steps S1 to S5 above, this method constructs a complete, sub-second response local autonomous closed loop of perception-decision-response.

[0189] S1 is the zero-latency reporting of perception;

[0190] S2 and S3 are network state assessment and storm suppression for decision-making;

[0191] S4 and S5 are preemptive forwarding and forced downlink responses;

[0192] This method enables Zigbee networks to exhibit a local neural reflex capability, allowing the local network to autonomously complete the entire disaster prevention process, from leak detection to valve shut-off, without cloud intervention. This represents a qualitative leap from a data acquisition network to a local autonomous disaster prevention safety network.

[0193] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto; any variations or substitutions that can be easily conceived by those skilled in the art without departing from the scope of the technical solution of the present invention should be included within the scope of protection of the present invention.

[0194] It should be noted that the above examples are only used to illustrate the technical solutions of the present application but not limit the present application. Although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or equivalently replaced, without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A Zigbee-based intelligent control system for a water dispenser, characterized in that, The system comprises: A protocol bypass triggering module, configured to acquire a hardware interrupt signal, bypass a Zigbee application layer polling task in response to the hardware interrupt signal, construct and send a key event overlay protocol (CEOP) report frame disguised as a network maintenance frame at a network layer, and obtain CEOP report frame information; A network state machine management module, configured to adopt a leaky-integrator model based on the CEOP report frame information, combine a CEOP event trigger value and a time decay amount, recursively update a network emergency response level, and obtain network emergency response level information; A CEOP storm suppression module, configured to detect whether a number of CEOP frames in the CEOP report frame information exceeds a storm threshold, and generate a source suppression flag when the number of CEOP frames exceeds the storm threshold; A dynamic preemption routing module, configured to acquire a basic priority of a message; the dynamic preemption routing module is further configured to calculate a dynamic preemption weight based on the network emergency response level information and the source suppression flag; the dynamic preemption routing module is further configured to combine the basic priority and the dynamic preemption weight to generate a final priority, and implement preemption forwarding based on the final priority; An asymmetric down-control wake-up module, configured to broadcast a CEOP control frame in response to the network emergency response level information, and enable a dormant terminal to receive and execute the CEOP control frame through an asymmetric MAC listening mechanism to achieve forced wake-up and control.

2. The Zigbee-based intelligent control system of a water dispenser according to claim 1, characterized in that, The CEOP report frame information comprises a magic word and an event type for firmware identification; the CEOP report frame information further comprises a source node ID; the network emergency response level information comprises a current level value and an event trigger value; the network emergency response level information further comprises a natural decay coefficient and a state calculation step; the final priority generated by the dynamic preemption routing module depends on the basic priority of the message and the dynamic preemption weight.

3. The Zigbee-based intelligent control system of the water dispenser according to claim 1, characterized in that, The protocol bypass triggering module comprises: A hardware interrupt service sub-module, configured to wake up a central processing unit in response to the hardware interrupt signal; A protocol layer bypass sub-module, configured to cause the central processing unit not to call a standard ZCL polling task to bypass an application layer and a polling period mechanism; A CEOP frame construction sub-module, configured to construct the CEOP report frame at the network layer, wherein the CEOP report frame contains a self-defined magic word and an event type in a payload; An immediate sending sub-module, configured to submit the CEOP report frame to a MAC layer for sending at a highest priority.

4. The Zigbee-based intelligent control system of water dispenser according to claim 1, characterized in that, The network state machine management module comprises: An emergency level accumulation sub-module, configured to acquire the CEOP report frame information, and accumulate a network emergency response level at a previous time based on a trigger value carried by the CEOP event; A time decay sub-module, configured to calculate a time decay amount of the level according to a preset natural decay coefficient and a state calculation step; A level update sub-module, configured to subtract the time decay amount from the accumulated level, and take a maximum value between the calculation result and zero to update the network emergency response level information.

5. The Zigbee-based intelligent control system of water dispenser according to claim 1, characterized in that, The dynamic preemption routing module comprises: The preemption weight calculation submodule is configured to calculate the dynamic preemption weight based on the network emergency response level information and the source suppression flag by using a piecewise function. The final priority calculation submodule is configured to add the dynamic preemption weight to the base priority of the packet to obtain the final priority of the packet. The weighted priority forwarding submodule is configured to sort the packets in the sending queue according to the final priority and to preferentially forward the CEOP reporting frame.

6. The Zigbee-based intelligent control system of water dispenser according to claim 1, characterized in that, The CEOP storm suppression module includes: The local storm detection submodule is configured to update a sliding time window counter and compare the storm threshold value. The suppression state latching submodule is configured to switch the CEOP frame source state to suppression when a storm is detected and to start a suppression cooling timer. The suppression state release submodule is configured to restore the CEOP frame source state to normal when the suppression cooling timer counts down to zero and to reset the sliding time window counter.

7. The Zigbee-based intelligent control system of water dispenser according to claim 1, characterized in that, The asymmetric down-control wake-up module includes: The CEOP down-control broadcast submodule is configured to construct and broadcast the CEOP control frame when the coordinator determines that the network emergency response level exceeds a preset threshold value. The asymmetric MAC listening submodule is configured to enable the dormant terminal to perform instantaneous channel listening in a short listening period that is independent of the application layer polling period in a regular dormant period. The forced wake-up execution submodule is configured to force the dormant terminal to wake up and immediately perform a control action when the CEOP control frame is received in the short listening period.

8. A Zigbee-based intelligent control method for a water dispenser, characterized in that, The method applied to the system of any one of claims 1 to 7 includes the following steps: S1: obtaining a hardware interrupt signal, bypassing a Zigbee application layer polling task in response to the hardware interrupt signal, constructing and sending a key event coverage protocol (CEOP) reporting frame disguised as a network maintenance frame at a network layer to obtain CEOP reporting frame information; S2: recursively updating a network emergency response level based on the CEOP reporting frame information by using a leaky-integrator model in combination with a CEOP event trigger value and a time decay amount to obtain network emergency response level information; S3: detecting whether the number of CEOP frames in the CEOP reporting frame information exceeds a storm threshold value and generating a source suppression flag when the storm threshold value is exceeded; S4: obtaining a base priority of a packet, calculating a dynamic preemption weight based on the network emergency response level information and the source suppression flag, generating a final priority in combination with the base priority and the dynamic preemption weight, and realizing preemptive forwarding based on the final priority; S5: broadcasting a CEOP control frame in response to the network emergency response level information and enabling a dormant terminal to receive and execute the CEOP control frame by using an asymmetric MAC listening mechanism to realize forced wake-up and control.

Citation Information

Patent Citations

  • WSN (Wireless Sensor Network) terminal node and ZigBee-based low-power-consumption intercepting method thereof

    CN103313277A

  • Low-power-consumption control method and system of controller

    CN120371112A