Power failure alarm system and method based on intelligent gateway

The power outage alarm system through intelligent gateway and Zigbee protocol solves the problems of untimely information transmission and slow response speed in traditional power outage alarm methods, realizes timely monitoring and alarm of power system power outage events, and improves the management efficiency and efficiency of the power system. Emergency response capabilities.

CN118570975APending Publication Date: 2024-08-30SHAANXI UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410616025.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional power outage alarm methods have problems such as untimely information transmission and slow response speed, resulting in low monitoring and alarm efficiency of the power system and affecting the reliability of power supply.

Method used

Design a power outage alarm system based on a smart gateway. The sensor using the Zigbee protocol transmits the power outage signal to the cloud server through the smart gateway, and pushes the alarm information to the user application in real time through the Internet. The system consists of door and window sensors, smart gateways, cloud servers and The user-side application consists of hardware design including ESP32 and CC2652P modules to achieve stable and low-power communication.

Benefits of technology

It achieves timely monitoring and alarming of power system power outage events, with fast response, timely information transmission, and easy operation, which improves the management efficiency and emergency response capabilities of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570975A
    Figure CN118570975A
Patent Text Reader

Abstract

The invention relates to a power failure alarm system and method based on an intelligent gateway, and aims to improve the accuracy and timeliness of power failure monitoring by realizing low power consumption and short-distance communication through a Zigbee protocol. The system is composed of a door and window sensor, an intelligent gateway, a cloud server and a user side application, a sensor signal is received through the intelligent gateway, and power failure warning information is pushed to a user mobile phone application through the Internet. The innovation point of the invention is that the door and window sensor is transformed into an electromagnet structure, and the intelligent gateway and cloud service are combined, so that the quick response and real-time alarm of the power failure event of the power system are realized. The system is simple and convenient to operate and high in response speed, effectively improves the monitoring capability and the emergency response capability of the power system, is suitable for power failure monitoring and alarming of various power systems, and has a wide application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power system monitoring, and specifically to a remote power outage alarm system based on an intelligent gateway, and more particularly to a power outage alarm system that uses the Zigbee protocol to achieve low-power consumption and short-distance communication, aiming to improve the accuracy and timeliness of power outage monitoring and provide protection for the safety and reliability of power supply. Background Art

[0002] Power outage refers to the sudden interruption of power supply in the power system, which often has a serious impact on people's daily life and industrial production. Power outages may be caused by various reasons, including equipment failure, natural disasters or human operational errors. In modern society, it is particularly important to monitor and alarm power outages in a timely manner so that timely countermeasures can be taken to reduce the inconvenience and losses caused by power outages. Traditional power outage alarm methods usually rely on manual inspections or manual alarms by users, and there are problems such as untimely information transmission and slow response speed. In response to these problems, power outage alarms based on intelligent gateways have emerged, using Internet of Things technology and intelligent data processing to achieve comprehensive monitoring and real-time feedback of power systems. This power outage alarm can detect power outage faults in a timely manner and quickly push alarm information to relevant personnel through the Internet, thereby improving the management efficiency and power supply reliability of the power system. At present, power outage alarm technology is still under development. Some existing technologies rely on sensors to monitor the state changes of the power system and realize data transmission and alarm functions by connecting to intelligent gateways. However, there are still some problems in the existing technologies, such as communication delay, alarm accuracy and system stability, which still need to be improved.

[0003] Therefore, it is of great significance to study convenient, fast and accurate power outage alarms based on intelligent gateways, which can effectively improve the monitoring and emergency response capabilities of the power system and ensure the normal operation of people's lives and industrial production. Summary of the invention

[0004] In order to overcome the above-mentioned deficiencies of the prior art, the present invention proposes a power outage alarm system based on an intelligent gateway, aiming to solve the problems of untimely information transmission and slow response speed in the traditional power outage alarm method, so as to realize timely monitoring and alarm of power outage events in the power system.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is: A power outage alarm system based on an intelligent gateway is composed of a sensor, an intelligent gateway, a cloud server and a user-end application; the sensor is connected to the intelligent gateway, and the intelligent gateway is connected to the cloud server and the user-end.

[0006] The sensor sends a signal to the intelligent gateway via the Zigbee protocol.

[0007] The sensor is a door and window sensor structure, powered by mains electricity, and used to monitor power outages.

[0008] The specific structure of the sensor is that the relay housing forms a U-shaped electromagnet structure, and the electromagnet is attached to the two ends of the reed switch in the sensor, so that the contacts of the reed switch are closed and opened as the electromagnet is powered on / off; a diode is reversely connected at both ends of the electromagnet, and a 12V 1A DC power supply is used for power supply.

[0009] The intelligent gateway includes a PCB, a three-terminal voltage regulator chip, a 4-way coding switch, a 3*4 touch switch, an ESP32 module and a CC2652P module.

[0010] The specific construction steps of the intelligent gateway are as follows: 1. Connect components: According to the hardware design requirements, connect the PCB, three-terminal voltage regulator chip, 4-way encoding switch, 3*4 touch switch, ESP32 module and CC2652P module to the circuit board; and solder each component to the PCB board, and ensure that the connection is firm and the contact is good; 2. Configure the dip switches: used to switch serial port signals, corresponding to different working modes; in WIFI mode, turn the first two digits of the two dip switches to the ON position, directly connect the serial port chip to the ESP32 module, and then to the CC2652 module; in USB mode, turn the last two digits of the dip switches to the ON position, and directly connect the serial port chip to the CC2652P module; 3. Burn the firmware: Install the CH340 serial chip driver and connect the module to the computer using a Type-C cable; on the "tasmota.github.io" website, flash the "tasmotazigbee bridge pro" firmware and configure the network for the ESP32 module; upload the firmware of the CC2652P module to the memory of the ESP32, and use the pre-made BSL of the ESP32 to burn the firmware; enter the tasmota setting interface and confirm that the firmware can work normally. When the interface displays znp, it means that the firmware is set successfully.

[0011] The cloud server is an MQTT server.

[0012] A power outage alarm method based on the above system specifically comprises the following steps: The sensor is responsible for monitoring power outages and transmitting power outage signals to the smart gateway through the Zigbee protocol. The smart gateway then transmits the information to the cloud server. The smart gateway pushes the alarm information to the user's mobile phone application through the Internet, and finally realizes real-time push of the alarm information through the user's mobile phone application.

[0013] Compared with the prior art, the technical solution of the present invention has the following beneficial effects: The power outage alarm system based on the intelligent gateway proposed in the present invention overcomes the shortcomings of the traditional power outage alarm method and realizes the timely monitoring and alarm of power outage events in the power system. The system has the advantages of fast response speed, timely information transmission, and simple operation. It is suitable for power outage monitoring and alarm in various power systems and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is the network structure diagram of the remote power outage alarm.

[0015] Figure 2 This is a diagram showing the location of components.

[0016] Figure 3 To configure MQTT information.

[0017] Figure 4 This is the working principle of door and window sensors.

[0018] Figure 5 Modify the electromagnet for the relay. DETAILED DESCRIPTION

[0019] The present invention discloses a power failure alarm system based on an intelligent gateway, which is mainly composed of door and window sensors, an intelligent gateway, a cloud service and a user-side application. The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings.

[0020] System components and their functions: Door and window sensors (such as Figure 4 , Figure 5 As shown in Figure 1): This sensor adopts a special design, replacing the traditional permanent magnet with an electromagnet and using the mains power supply. When the mains power fails, the electromagnet loses power, causing the reed switch contacts that were originally attracted by the magnetic pole to separate, thereby triggering a power failure signal. This signal is sent to the smart gateway via the Zigbee protocol.

[0021] Smart Gateway: It is the data processing and communication center of the system. It is responsible for receiving signals from door and window sensors and forwarding them to the cloud server via the Internet. The hardware design of the gateway (such as Figure 2 The design of the smart gateway is carefully planned, including PCB layout, component selection and configuration, to ensure the stability and reliability of signal transmission. At the same time, the smart gateway has built-in ESP32 module and CC2652P module to achieve WIFI and Zigbee dual-mode communication.

[0022] Cloud service: As a data storage and processing center, it receives and processes data from the smart gateway, and then pushes the processed power outage alarm information to the user-side application.

[0023] User-side application: Users can install this application on their mobile phones or other smart terminals to receive power outage alarm information in real time so that they can respond promptly.

[0024] The hardware design and configuration of the intelligent gateway includes the following steps: (1) PCB layout design is the core link of smart gateway hardware design, such as Figure 2 As shown, the key lies in the reasonable planning of the connection and layout of each component to ensure the stability and reliability of signal transmission. The use of multi-layer board design can effectively reduce the size and complexity of the circuit board, isolate circuits with different functions at different levels, and make appropriate wiring planning, thereby reducing signal interference and improving the overall performance and reliability of the system.

[0025] (2) The selection of the wireless communication module of the intelligent gateway is related to system stability and power consumption efficiency. To this end, the present invention adopts two different modules to meet different communication needs. First, in order to achieve connection with the user's mobile phone, the ESP32 module is selected, which has integrated WIFI and Bluetooth functions and is suitable for stable communication with smartphones. ESP32 is known for its powerful processing power and stable communication performance, while its relatively low power consumption makes it an ideal communication module for the intelligent gateway. Secondly, in terms of wireless communication between sensors, the CC2652P module is selected, which supports the Zigbee communication protocol. This choice is based on its good communication stability and low power consumption characteristics, providing a solid foundation for the reliable transmission of sensor data.

[0026] (3) In the process of building the smart gateway, the selected processor, wireless communication module (ESP32), Zigbee module and other components must first be connected and arranged according to the design requirements. The specific steps are as follows: When connecting components, according to the hardware design requirements, connect the specific PCB, three-terminal voltage regulator chip, 4-way encoding switch, 3*4 touch switch, ESP32 module and CC2652P module to the circuit board. And solder each component to the PCB board and ensure that the connection is firm and the contact is good. The dip switch is configured to switch the serial port signal to select different working modes. In WIFI mode, turn the first two digits of the two sets of dip switches to the ON position, connect the serial port chip directly to the ESP32 module, and then connect it to the CC2652 module. In USB mode, turn the last two digits of the dip switch to the ON position, and connect the serial port chip directly to the CC2652P module. The steps for burning the firmware include: installing the CH340 serial port chip driver and connecting the module to the computer using a Type-C cable. On the "tasmota.github.io" website, flash the "tasmotazigbee bridge pro" firmware and configure the network for the ESP32 module. Upload the firmware of the CC2652P module to the memory of the ESP32 and use the pre-made BSL of the ESP32 to burn the firmware. Enter the tasmota setting interface and confirm that the firmware can work normally. When the interface displays znp, it means that the firmware setting is successful.

[0027] System workflow: Combined with Figure 1 When the city power goes out, the door and window sensors will detect this change and send a power outage signal to the smart gateway through the Zigbee protocol (as shown by the arrow in the figure). After receiving the signal, the smart gateway pushes the power outage alarm information to the cloud server through the Internet (as shown by the cloud icon in the figure). The cloud server processes the received data and pushes the processed power outage alarm information to the user-side application. Users receive the alarm information through mobile phones or other smart terminals so that they can take corresponding measures in time.

[0028] The design of the sensor and electromagnet includes the following steps: (1) If Figure 4 According to the principle of the door and window sensor, the opening and closing signal is triggered by a reed switch. When the N / S poles of the permanent magnet are close to the two ends of the reed switch, the internal contacts of the reed switch are attracted, triggering the closing signal. When the permanent magnet leaves the two ends of the reed switch, the internal contacts of the reed switch are separated, triggering the opening signal. According to the above principle, the permanent magnet is replaced with an electromagnet and powered by AC power. When the magnetic poles on both sides of the reed switch are close, the reed switch is attracted. The internal circuit sends the opening and closing instructions to the gateway via the Zigbee protocol, and further pushes them to the mobile phone via the Internet. The power outage signal can be triggered.

[0029] (2) Open the relay housing, remove the attracted contacts, and only keep the magnetic metal on the side to form a U-shaped electromagnet structure. Attach the electromagnet to the two ends of the reed switch in the door and window sensor so that the contacts of the reed switch close and open as the electromagnet is powered on and off. Figure 5 As shown. In order to prevent the high voltage induced by the electromagnet from damaging other devices, a diode can be reversely connected at both ends of the electromagnet. Select a 12V 1A DC power supply to power the electromagnet. Since the relay works with a small current (about 80mA), it can work stably for a long time.

[0030] (3) The sensor design adopts the door and window sensor structure. By replacing the permanent magnet with an electromagnet and using AC power, the sensor sends opening and closing instructions to the gateway through the Zigbee protocol, realizing real-time triggering of power outage alarms through the Internet and mobile phone push. The electromagnet structure modified from the relay ensures the stable opening and closing of the reed switch contacts. The sensor is powered by a 12V 1A DC power supply, which improves the reliability and stability of the sensor and provides a solid foundation for the power outage alarm system.

[0031] Attached Figure 3 The connection configuration between the smart gateway and the MQTT server is shown. Build an MQTT server, which is the core of message transmission and is responsible for receiving and forwarding messages between devices. Building an MQTT server includes setting up the server environment, configuring ports and authentication information, and ensuring the normal operation of the server. Then, fill in the MQTT information in the configuration page of the smart gateway as follows Figure 3 , including the server address, port number, and authentication credentials, to establish a connection with the server. Finally, by configuring the "MQTT-discovery" function, the Zigbee device is automatically connected to Home Assistant (HA) to achieve easy management and control of the device. This process ensures that the smart gateway can communicate with the device efficiently. Fill in the MQTT information, including the server address, port number, and authentication credentials, in the configuration page of the smart gateway to establish a connection with the server. In this way, the smart gateway can efficiently send power outage alarm information to the server and then push it to the user.

[0032] The present invention closely combines hardware design with system integration to design and implement a remote power outage alarm system based on an intelligent gateway. In terms of hardware design, based on the low power consumption and short-distance communication characteristics of the Zigbee protocol, the Zigbee gateway is independently developed to improve the system communication performance and coordinate the data flow between the sensor and the Internet. The data transmission between the sensor and the intelligent gateway is made more reliable, thereby enhancing the collaborative working ability of the entire system. By adopting door and window sensors and the transformation of DC relays, efficient monitoring of power outage status is successfully achieved. This design improves the sensitivity and accuracy of the system, enabling it to respond quickly to power supply interruptions. In terms of system integration, real-time message push is achieved through the Internet using the gateway and sub-device configuration, providing an efficient means of timely alarm in the event of a power outage. By adding intelligent behavior in the sub-device, the system can intelligently take corresponding actions according to changes in sensor status, thereby improving the degree of automation of the system.

Claims

1. A power outage alarm system based on an intelligent gateway, characterized in that: It consists of sensors, smart gateways, cloud servers and user-side applications; sensors are connected to smart gateways, and smart gateways are connected to cloud servers and user-side applications.

2. According to claim 1, a power outage alarm system based on an intelligent gateway is characterized in that: The sensor sends a signal to the intelligent gateway via the Zigbee protocol.

3. According to claim 2, a power outage alarm system based on an intelligent gateway is characterized in that: The sensor is a door and window sensor structure, powered by mains electricity, and used to monitor power outages.

4. According to claim 3, a power outage alarm system based on an intelligent gateway is characterized in that: The specific structure of the sensor is that the relay housing forms a U-shaped electromagnet structure, and the electromagnet is attached to the two ends of the reed switch in the sensor, so that the contacts of the reed switch are closed and opened as the electromagnet is powered on / off; a diode is reversely connected at both ends of the electromagnet, and a 12V 1A DC power supply is used for power supply.

5. The power outage alarm system based on the intelligent gateway according to claim 1 is characterized in that: The intelligent gateway includes a PCB, a three-terminal voltage regulator chip, a 4-way coding switch, a 3*4 touch switch, an ESP32 module and a CC2652P module.

6. A power outage alarm system based on an intelligent gateway according to claim 5, characterized in that: The specific construction steps of the intelligent gateway are as follows:

1. Connect components: According to the hardware design requirements, connect the PCB, three-terminal voltage regulator chip, 4-way encoding switch, 3*4 touch switch, ESP32 module and CC2652P module to the circuit board; and solder each component to the PCB board, and ensure that the connection is firm and the contact is good; 2. Configure the dip switches: used to switch serial port signals, corresponding to different working modes; in WIFI mode, turn the first two digits of the two dip switches to the ON position, directly connect the serial port chip to the ESP32 module, and then to the CC2652 module; in USB mode, turn the last two digits of the dip switches to the ON position, and directly connect the serial port chip to the CC2652P module; 3. Burn the firmware: Install the CH340 serial chip driver and connect the module to the computer using a Type-C cable; on the "tasmota.github.io" website, flash the "tasmotazigbee bridge pro" firmware and configure the network for the ESP32 module; upload the firmware of the CC2652P module to the memory of the ESP32 and use the pre-made BSL of the ESP32 to burn the firmware; enter the tasmota setting interface and confirm that the firmware can work normally. When the interface displays znp, it means that the firmware is set successfully.

7. The power outage alarm system based on the intelligent gateway according to claim 1 is characterized in that: The cloud server is an MQTT server.

8. A power outage alarm method based on the system of claim 1, comprising the following steps: The sensor is responsible for monitoring power outages and transmitting power outage signals to the smart gateway through the Zigbee protocol. The smart gateway then transmits the information to the cloud server. The smart gateway pushes the alarm information to the user's mobile phone application through the Internet, and finally realizes real-time push of the alarm information through the user's mobile phone application.