Multi-intelligent power line management method and system, medium and product

By introducing a hierarchical gateway architecture into the smart power cord system, the network congestion problem caused by the increase in the number of smart power cords is solved, the real-time and reliable data transmission is achieved, and device security protection is provided.

CN121530993APending Publication Date: 2026-02-13GUANGXI ZHUANG AUTONOMOUS REGION INST OF METROLOGY & TESTING +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511647290.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-11
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

When the number of smart power cords increases dramatically, network congestion and excessive cloud server load can affect the timeliness and reliability of data transmission.

Method used

A hierarchical network architecture for gateways is introduced. The gateway communicates with the server via WiFi and with the smart power cord via LoRa to achieve hierarchical management. The gateway receives device monitoring data, performs preliminary processing and alarm judgment, and only uploads the processed data.

Benefits of technology

It reduces server load, avoids network congestion, improves the real-time performance and reliability of data transmission, and supports multiple protection strategies to ensure device security and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121530993A_ABST
    Figure CN121530993A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-intelligent power line management method and system, a medium and a product, and relates to the field of Internet of Things. According to the method, the gateway is introduced into the multi-intelligent power line integrated management system, the gateway communicates with the server through WiFi and communicates with the intelligent power lines through LoRa, a hierarchical network architecture is formed, and hierarchical management between the server and the intelligent power lines is achieved. Under the network architecture, the gateway can manage the intelligent power lines within the jurisdiction of the gateway nearby, receive equipment monitoring data and carry out primary processing and alarm judgment, and only needs to upload the processed data to the server, so that the load of the server is greatly reduced, and the efficiency is improved. Network congestion possibly caused by direct communication between a large number of intelligent power lines and the server is avoided, and the real-time performance and reliability of data transmission are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT), and more particularly to a method, system, medium, and product for managing multiple intelligent power cords. Background Technology

[0002] With the rapid development of IoT technology, intelligent power management systems are being used more and more widely in industrial parks, commercial buildings, and school laboratories. As an important component of intelligent power management systems, smart power cords can monitor the power consumption of connected devices in real time, remotely control the operating status of connected devices, and more, helping to improve equipment safety and energy efficiency.

[0003] In this technology, smart power cords come with a dedicated app, allowing users to remotely monitor and control the status of each socket and view device power consumption data via their mobile phones. Furthermore, the smart power cord can upload the collected data to the manufacturer's cloud platform, enabling users to access device status and historical data from anywhere.

[0004] However, since each smart power cord communicates directly with the cloud server through its built-in communication module, a surge in the number of smart power cords can easily cause network congestion and excessive load on the cloud server, affecting the timeliness and reliability of data transmission. Summary of the Invention

[0005] This application provides a multi-intelligent power line management method, system, medium, and product for improving the timeliness and reliability of data transmission.

[0006] Firstly, this application provides a multi-intelligent power cord management method, applied to a multi-intelligent power cord integrated management system. The multi-intelligent power cord integrated management system includes a server, multiple gateways, and multiple intelligent power cords. The intelligent power cords are electrically connected to the power interfaces of devices via power plugs. The server and gateways communicate via WiFi, and the gateways and intelligent power cords interact via LoRa. The method includes: the gateway receiving configuration parameters corresponding to each of the multiple intelligent power cords within its preset management range from the server; the configuration information includes data communication channels, data reporting frequencies, and data alarm thresholds; the gateway then... The gateway establishes a connection with each smart power line and sends corresponding data reporting frequencies to each smart power line. The gateway receives device monitoring data sent by each smart power line according to the corresponding data reporting frequencies. The device monitoring data includes current, voltage, active power, reactive power, and cable temperature and humidity data. The gateway compares the device monitoring data with the corresponding data alarm thresholds, identifies abnormal smart power lines whose device monitoring data exceeds the corresponding data alarm thresholds, and generates alarm information for abnormal smart power lines. The gateway integrates the device monitoring data of each smart power line and the alarm information of abnormal smart power lines into a JSON format data packet and uploads it to the server.

[0007] By adopting the above technical solution, a gateway is introduced into the multi-intelligent power cord integrated management system. The gateway communicates with the server via WiFi and with the intelligent power cords via LoRa, forming a hierarchical network architecture that enables layered management between the server and the intelligent power cords. Under this network architecture, the gateway can manage the intelligent power cords within its jurisdiction locally, receive device monitoring data, perform preliminary processing and alarm judgment, and only need to upload the processed data to the server. This greatly reduces the server's load, avoids network congestion that may be caused by a large number of intelligent power cords communicating directly with the server, and improves the real-time performance and reliability of data transmission.

[0008] In conjunction with some embodiments of the first aspect, in some embodiments, the smart power cord includes an RS485 expansion interface for connecting external sensors; the smart power cord acquires sensing data from the external sensors and uses the sensing data as part of the device monitoring data.

[0009] By adopting the above technical solution, an RS485 expansion interface is added to the smart power cord, enabling it to connect to external sensors. This allows the smart power cord to monitor not only the current, voltage, active power, reactive power, and cable temperature and humidity of connected devices, but also to collect other data such as smoke, vibration, and gas concentration. This expandable design transforms the smart power cord into a comprehensive monitoring unit, allowing for flexible connection to different types of sensors depending on the specific application scenario, greatly broadening the monitoring dimensions and application scope of the smart power cord.

[0010] In conjunction with some embodiments of the first aspect, in some embodiments, before the step of the gateway receiving the configuration parameters corresponding to each of the multiple smart power lines within the gateway's preset jurisdiction issued by the server, the method further includes: the server obtaining the installation area, service type, and connected device of the smart power line; the server assigning a unique module address to each smart power line based on preset module address encoding rules and the installation area, the module address being used to identify each smart power line in the LoRa communication network to ensure that the gateway establishes a unique corresponding communication connection with the smart power line; the server assigning a corresponding data communication channel and data reporting frequency to each smart power line according to the installation area and service type; the server determining the corresponding data alarm threshold for each smart power line according to the rated parameters of the connected device; and the server generating configuration information corresponding to each smart power line based on the data communication channel, data reporting frequency, and data alarm threshold.

[0011] By adopting the above technical solution, the server provides unified configuration and management for smart power lines, achieving standardized access and personalized configuration: the server assigns module addresses based on the installation area of ​​the smart power line, ensuring communication uniqueness; the server allocates data communication channels and data reporting frequencies based on the installation area and service type of the smart power line, achieving differentiated management; and the server sets data alarm thresholds based on the rated parameters of the connected devices, ensuring targeted monitoring. This centralized configuration method not only simplifies the deployment and maintenance of smart power lines but also allows for flexible adjustment of various parameters according to actual application needs, improving the manageability and adaptability of the multi-smart power line integrated management system.

[0012] In conjunction with some embodiments of the first aspect, in some embodiments, the gateway establishes a connection with each smart power line based on a data communication channel and sends a corresponding data reporting frequency to each smart power line. Specifically, this includes: the gateway sending a network discovery request on each data communication channel via broadcast; the gateway receiving a request response carrying the respective module address from one or more smart power lines; the gateway determining whether the module address in the request response belongs to the gateway's preset jurisdiction; if so, the gateway sending connection confirmation information to the smart power line, the connection confirmation information including the data reporting frequency corresponding to the smart power line; and the gateway receiving configuration confirmation information returned by the smart power line, thus completing the connection establishment with the smart power line.

[0013] By adopting the above technical solution, the connection process between the gateway and the smart power line is described in detail, achieving reliable communication link establishment. The gateway sends network discovery requests via broadcast, avoiding the inefficiency of searching for each smart power line individually; the smart power line returns a request response carrying the module address, facilitating gateway identification and filtering; the gateway verifies the module address to ensure that only smart power lines within its jurisdiction are connected; and a two-way handshake mechanism of connection confirmation and configuration confirmation ensures that configuration parameters are correctly distributed. This standardized connection establishment process not only improves the efficiency of system networking but also ensures connection reliability through multiple confirmation mechanisms, effectively avoiding communication errors and configuration confusion.

[0014] In conjunction with some embodiments of the first aspect, in some embodiments, after the gateway integrates the device monitoring data of each smart power line and the alarm information of abnormal smart power lines into a JSON format data packet and uploads it to the server, the method further includes: the server parsing the data packet to obtain the device monitoring data of each smart power line and the alarm information of abnormal smart power lines; based on the alarm information of abnormal smart power lines, statistically analyzing the alarm frequency and duration of various indicators to generate device anomaly statistics; based on the active power and reactive power in the device monitoring data, calculating the power factor and line loss rate of each smart power line to generate energy consumption analysis information; based on the current, voltage, and cable temperature and humidity data in the device monitoring data, predicting the changing trends of current, voltage, and cable temperature and humidity data; and integrating the device anomaly statistics, energy consumption analysis information, and changing trends into a device operation and maintenance analysis report.

[0015] By adopting the above technical solution, the server performs in-depth analysis and mining of data packets uploaded by the gateway, realizing intelligent equipment operation and maintenance. It can effectively reflect the equipment operating status, energy utilization efficiency and potential risks, providing data support for operation and maintenance decisions and improving the initiative and scientific nature of equipment management.

[0016] In conjunction with some embodiments of the first aspect, in some embodiments, the method further includes: the gateway receiving a control policy configuration sent by the server, the control policy configuration including an overload protection policy, a short circuit protection policy, a temperature protection policy, a leakage current protection policy, and a power anomaly policy; the gateway determining in real time whether the device monitoring data meets the triggering conditions of the control policy configuration; if so, the gateway sending a corresponding control command to the smart power line corresponding to the device monitoring data, the control command including an emergency power-off command, a delayed power-off command, or an alarm prompt command; and the gateway uploading the control command and triggering conditions to the server.

[0017] By adopting the above technical solution, the gateway can execute various strategies such as overload protection, short circuit protection, temperature protection, leakage protection, and power anomaly protection, and can trigger differentiated control commands such as emergency power-off, delayed power-off, or alarm prompts according to different situations. This distributed protection mechanism makes fault handling more timely, avoiding the delays that may be caused by unified server processing; at the same time, the gateway reports control commands and trigger conditions to the server, facilitating traceability and optimization of protection strategies, greatly improving the safety and reliability of equipment operation.

[0018] In conjunction with some embodiments of the first aspect, in some embodiments, the multi-intelligent power line integrated management system further includes a backup gateway. The method includes: the backup gateway sending a heartbeat detection packet to the gateway; if no response to the heartbeat detection packet is received from the gateway within a preset waiting time, the backup gateway sends a gateway switching request to the server; after receiving the switching authorization returned by the server, the backup gateway obtains the latest configuration information of the gateway, which includes intelligent power line configuration parameters and intelligent power lines with established connections; the backup gateway broadcasts a gateway switching notification to the intelligent power lines and re-establishes connections with the intelligent power lines; the backup gateway requests historical data stored locally during the communication interruption from each intelligent power line, and organizes the historical data in chronological order and uploads it to the server.

[0019] By adopting the above technical solution, a backup gateway mechanism is introduced. The backup gateway promptly detects gateway failures through heartbeat detection and quickly takes over services after authorization from the server. It ensures service continuity by obtaining the latest gateway configuration information; achieves smooth switching through broadcast switching notifications and re-establishing connections; and avoids data loss by requesting locally stored historical data during communication interruptions. This complete gateway redundancy switching mechanism not only ensures the continuous availability of the multi-intelligent power line integrated management system but also guarantees data integrity through historical data recovery. It effectively solves the problem of a single gateway potentially becoming a single point of failure in the system, thus improving the reliability of the entire multi-intelligent power line integrated management system.

[0020] Secondly, embodiments of this application provide a multi-intelligent power cord integrated management system, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code including computer instructions, and the one or more processors call the computer instructions to cause the multi-intelligent power cord integrated management system to perform the method described in the first aspect and any possible implementation thereof.

[0021] Thirdly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a multi-intelligent power line integrated management system, cause the multi-intelligent power line integrated management system to perform the method described in the first aspect and any possible implementation thereof.

[0022] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a multi-intelligent power line integrated management system, cause the multi-intelligent power line integrated management system to perform the method described in the first aspect and any possible implementation thereof.

[0023] Understandably, the multi-intelligent power cord integrated management system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.

[0024] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. By adopting the above technical solution, a gateway is introduced into the multi-intelligent power cord integrated management system. The gateway communicates with the server via WiFi and with the intelligent power cords via LoRa, forming a hierarchical network architecture that enables layered management between the server and the intelligent power cords. Under this network architecture, the gateway can manage the intelligent power cords within its jurisdiction locally, receive device monitoring data, perform preliminary processing and alarm judgment, and only need to upload the processed data to the server, greatly reducing the server load and avoiding network congestion that may be caused by a large number of intelligent power cords communicating directly with the server, thus improving the real-time performance and reliability of data transmission.

[0025] 2. By adopting the above technical solution, the server provides unified configuration and management for smart power lines, achieving standardized access and personalized configuration: the server assigns module addresses based on the installation area of ​​the smart power line, ensuring communication uniqueness; the server allocates data communication channels and data reporting frequencies based on the installation area and service type of the smart power line, achieving differentiated management; and the server sets data alarm thresholds based on the rated parameters of the connected devices, ensuring targeted monitoring. This centralized configuration method not only simplifies the deployment and maintenance of smart power lines but also allows for flexible adjustment of various parameters according to actual application needs, improving the manageability and adaptability of the multi-smart power line integrated management system.

[0026] 3. By adopting the above technical solution, a backup gateway mechanism is introduced. The backup gateway promptly detects gateway failures through heartbeat detection and quickly takes over services after authorization from the server: ensuring service continuity by obtaining the latest gateway configuration information; achieving smooth switching through broadcast switching notifications and re-establishing connections; and preventing data loss by requesting locally stored historical data during communication interruptions. This complete gateway redundancy switching mechanism not only ensures the continuous availability of the multi-intelligent power line integrated management system but also guarantees data integrity through historical data recovery, effectively solving the problem that a single gateway may become a single point of failure in the system and improving the reliability of the entire multi-intelligent power line integrated management system. Attached Figure Description

[0027] Figure 1 This is a system architecture of the multi-intelligent power cord management method in the embodiments of this application. picture ; Figure 2 This is a flowchart illustrating a multi-intelligent power cord management method in an embodiment of this application; Figure 3 This is another flowchart illustrating the multi-intelligent power cord management method in this application embodiment; Figure 4 This is a schematic diagram of the physical device structure of a multi-intelligent power cord integrated management system in the embodiments of this application. Detailed Implementation

[0028] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.

[0029] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0030] To facilitate understanding, the application scenarios of the embodiments of this application are described below.

[0031] A large industrial park has hundreds of pieces of equipment requiring power management, including production line machines, air conditioning systems, and lighting systems, distributed across different workshops and office areas. Traditional manual inspections and ordinary electricity meter readings cannot provide real-time monitoring of equipment power consumption or promptly detect abnormalities. Overloads, short circuits, and other faults could lead to equipment damage or safety accidents. To address this issue, the industrial park adopted a commercially available smart power line management system. Each smart power line has a built-in WiFi module, allowing for power consumption monitoring and remote control via a mobile app. However, as the system expanded to over 100 smart power lines, serious problems began to emerge: simultaneous data transmission from all smart power lines to the cloud platform caused network congestion and severe data delays; the cloud platform had to process a large volume of data and control commands simultaneously, resulting in excessive server load; and when the network was unstable, equipment monitoring and control frequently failed, impacting production safety. Therefore, the industrial park urgently needs a more reliable intelligent solution that can achieve real-time monitoring and remote management of equipment power consumption while ensuring stable system operation, improving power safety, and enhancing energy efficiency.

[0032] A technology park has adopted the multi-intelligent power cord integrated management system proposed in this application. The entire technology park is divided into multiple management areas, each with a gateway. For example, one gateway is set up on the R&D floor to manage 30 intelligent power cords on that floor, and another gateway is set up on the production workshop to manage 40 intelligent power cords in that workshop. The gateways communicate with the surrounding intelligent power cords via LoRa technology, collect power consumption data, and process it. Only the processed power consumption data is uploaded to the server via WiFi. This layered architecture makes the multi-intelligent power cord integrated management system more stable and efficient; even if individual gateways fail, it will not affect the normal operation of the entire multi-intelligent power cord integrated management system.

[0033] Please see Figure 1 This is a system architecture diagram of a multi-intelligent power cord management method in an embodiment of this application. The system architecture diagram illustrates the three-layer structure of the multi-intelligent power cord integrated management system: The top layer is the server layer: as the central control unit of the entire intelligent power cord integrated management system, it is responsible for system configuration management and data storage analysis; The middle layer is the gateway layer: it contains multiple gateways (gateway 1 to gateway n), which communicate with the upper-layer server via WiFi. Each gateway is responsible for managing a group of smart power lines under its jurisdiction. The bottom layer is the smart power cord layer: it consists of multiple smart power cords that communicate with their corresponding gateways via LoRa technology, and are responsible for collecting actual power consumption data and controlling the devices. The smart power cords include an RS485 expansion interface, which is used to connect external sensors. The smart power cords acquire the sensing data from the external sensors and use the sensing data as part of the device monitoring data. This layered architecture reduces server load because data is processed by the gateway before being uploaded; improves communication efficiency by avoiding congestion caused by all smart power lines communicating directly with the server; enables localized management, allowing the gateway to quickly respond to the needs of the smart power lines under its jurisdiction; and has good scalability, allowing more smart power lines to be supported by adding gateways.

[0034] To facilitate understanding, the method provided in this implementation will be described in detail below, using the above scenario as an example. Please refer to [link / reference]. Figure 2 This is a flowchart illustrating a multi-intelligent power cord management method in an embodiment of this application.

[0035] S201. The gateway receives configuration parameters from the server for each of the multiple smart power lines within its preset jurisdiction. The configuration information includes the data communication channel, data reporting frequency, and data alarm threshold. Here, the gateway refers to the intermediate device used to connect the server and the smart power line, responsible for data forwarding and local processing; the preset jurisdiction refers to the physical area that the gateway can cover, such as a floor or a workshop; the configuration parameters refer to the various settings that control the working mode of the smart power line; the data communication channel refers to the frequency channel used for LoRa communication to avoid communication interference; the data reporting frequency refers to the time interval at which the smart power line sends data to the gateway, such as every 10 seconds or every minute; and the data alarm threshold refers to the critical value that triggers an alarm, including the upper and lower limits of parameters such as current and voltage.

[0036] Specifically, the server sends configuration parameters for all managed power lines to the corresponding regional gateways via WiFi. Upon receiving the configuration parameters, the gateway saves them in local storage for subsequent management of the smart power lines. For example, for processing equipment in the workshop, a higher data reporting frequency and stricter data alarm thresholds might be configured; while for lighting equipment in the office area, a lower data reporting frequency and more lenient data alarm thresholds might be configured.

[0037] S202. The gateway establishes a connection with each smart power line based on the data communication channel and sends the corresponding data reporting frequency to each smart power line. Among them, the data communication channel refers to a specific combination of LoRa frequency and spreading factor; establishing a connection refers to the process of device discovery, authentication and parameter configuration between the gateway and the smart power line; and the data reporting frequency refers to the time interval at which the smart power line periodically sends monitoring data to the gateway.

[0038] Suppose a workshop contains one injection molding machine and one air conditioner, each connected to two smart power lines (labeled PL001 and PL002). After receiving configuration parameters from the server, the gateway (labeled GW001) begins establishing connections with these two smart power lines: 1. The gateway first broadcasts a discovery request on the LoRa 470MHz band (channel 1): "GW001 Request to discover device"; 2. After receiving the request, PL001 and PL002 will return responses respectively: PL001: "Device PL001 responds, module address A1-02-C3"; PL002: "Device PL002 responds, module address A1-02-C4"; 3. The gateway checks whether the addresses of these two modules are within its preset jurisdiction. Once confirmed, it then: Send a connection confirmation to PL001: "Confirm connection established with PL001, data reporting frequency set to 10 seconds"; Send a connection confirmation to PL002: "Confirm connection established with PL002, data reporting frequency set to 30 seconds"; 4. Smart power cord returns configuration confirmation: PL001: "Configuration confirmed, data will be reported every 10 seconds"; PL002: "Configuration confirmed, data will be reported every 30 seconds"; In this way, the gateway completes the connection with the two smart power lines. Due to the higher requirements for electrical safety, the injection molding machine is configured with a more frequent data reporting frequency; the air conditioner, as an auxiliary device, is configured with a relatively lower data reporting frequency.

[0039] Optionally, under normal circumstances, the gateway establishes a connection with each smart power line based on the data communication channel and sends the corresponding data reporting frequency to each smart power line in the following way, which is not limited here: The gateway sends a network discovery request on each data communication channel via broadcast; the gateway receives a request response from one or more smart power lines carrying their respective module addresses; the gateway determines whether the module address in the request response belongs to the gateway's preset jurisdiction; if it does, the gateway sends connection confirmation information to the smart power line, which includes the data reporting frequency corresponding to the smart power line; the gateway receives configuration confirmation information returned by the smart power line, completing the connection establishment with the smart power line.

[0040] Specifically, first, the gateway broadcasts a network discovery request on its configured data communication channel, waiting for the smart power line to return a response containing its module address. Upon receiving the response, the gateway verifies whether the module address falls within its preset jurisdiction. If it does, the gateway sends a connection confirmation message to the smart power line, including the data reporting frequency assigned to it. After the smart power line returns a configuration confirmation, the connection is established. The gateway repeats this process until connections are established with all smart power lines within its preset jurisdiction.

[0041] S203. The gateway receives device monitoring data sent by each smart power line according to the corresponding data reporting frequency. The device monitoring data includes current, voltage, active power, reactive power, and cable temperature and humidity data. Among them, the equipment monitoring data represents various power parameters collected by the smart power line; the current represents the magnitude of the current passing through the smart power line; the voltage represents the magnitude of the voltage across the smart power line; the active power represents the actual electrical energy consumed by the equipment; the reactive power represents the ineffective power generated in the circuit; and the cable temperature and humidity data represent the working environment parameters of the smart power line, which are used to monitor the safety status of the cable.

[0042] Specifically, each smart power cord will periodically collect and send device monitoring data according to its configured data reporting frequency. For example, a smart power cord configured to report every 10 seconds will collect parameters such as current and voltage every 10 seconds and send them to the gateway via LoRa. After receiving this data, the gateway will timestamp and format the data for subsequent alarm judgment and data analysis. If the smart power cord is equipped with an RS485 extended sensor, the relevant sensor data will also be reported as part of the device monitoring data.

[0043] S204. The gateway compares the device monitoring data with the corresponding data alarm threshold, identifies abnormal smart power lines whose device monitoring data exceeds the corresponding data alarm threshold, and generates alarm information for abnormal smart power lines. Among them, equipment monitoring data represents the real-time power consumption parameters collected by the smart power line; data alarm thresholds refer to the boundary values ​​of the safe operating range of each monitoring parameter; comparison represents the numerical comparison between the equipment monitoring data and the data alarm thresholds; abnormal smart power lines indicate smart power lines whose equipment monitoring data exceeds the data alarm thresholds; alarm information refers to structured data including alarm type, abnormal value, and occurrence time. Alarm types include overcurrent alarms, overvoltage alarms, power anomaly alarms, temperature over-limit alarms, etc.; abnormal values ​​represent the specific values ​​that actually exceed the data alarm thresholds; occurrence time records the exact moment the anomaly occurred.

[0044] Specifically, first, the gateway retrieves the corresponding alarm threshold data for the smart power cord from local storage. Then, the gateway compares each monitored parameter in the device's monitoring data with its corresponding threshold: such as comparing current value with overcurrent threshold, voltage value with overvoltage threshold, power value with power threshold, and temperature value with temperature threshold. When a monitored parameter exceeds its threshold, the gateway records the abnormal smart power cord's identification information and generates an alarm message containing details of the anomaly. For example, if a smart power cord's current reaches 16A, exceeding the set 15A alarm threshold, the gateway will generate an alarm message containing information such as "overcurrent alarm, measured value 16A, alarm threshold 15A, occurrence time 2023-10-01 10:30:15".

[0045] S205 The gateway integrates the device monitoring data of each smart power line and the alarm information of abnormal smart power lines into a JSON format data packet and uploads it to the server.

[0046] JSON format represents a lightweight data exchange format, facilitating data transmission and parsing; a data packet refers to a collection of multiple related data items organized together; integration means organizing and packaging different types of data according to a predefined format; and upload means transmitting the data packet to the server via a WiFi network. The data packet structure includes: basic information (gateway ID, timestamp, etc.), device monitoring data (parameters such as current and voltage of each smart power line), and alarm information (list of abnormal devices and alarm details).

[0047] Specifically, first, the gateway categorizes and organizes all device monitoring data and alarm information collected from smart power lines within the same time period. Then, the gateway organizes the data structure according to a predefined JSON format template, including adding basic information such as gateway identifiers and data timestamps. For example: {"gateway_id": "GW001", "timestamp": "2023-10-01 10:30:00", "monitor_data": [{monitoring data of device 1}, {monitoring data of device 2}], "alarm_data": [{alarm 1 details}, {alarm 2 details}]}.

[0048] Finally, the gateway sends the packaged JSON data packet to the server via the WiFi network. The gateway ensures data integrity, retrying if transmission fails, and retains historical data locally for a certain period for data retransmission.

[0049] By adopting the above technical solution, a gateway is introduced into the multi-intelligent power cord integrated management system. The gateway communicates with the server via WiFi and with the intelligent power cords via LoRa, forming a hierarchical network architecture that enables layered management between the server and the intelligent power cords. Under this network architecture, the gateway can manage the intelligent power cords within its jurisdiction locally, receive device monitoring data, perform preliminary processing and alarm judgment, and only need to upload the processed data to the server. This greatly reduces the server's load, avoids network congestion that may be caused by a large number of intelligent power cords communicating directly with the server, and improves the real-time performance and reliability of data transmission.

[0050] The following provides a more detailed description of the process of the method provided in this implementation. Please refer to [link / reference]. Figure 3 This is another flowchart illustrating the multi-intelligent power cord management method in this application embodiment.

[0051] The following steps may be performed before step S201, or they may not be performed; this is not limited here: S301. The server obtains the installation area, service type, and connected devices of the smart power cord.

[0052] The installation area refers to the physical installation location of the smart power line, such as a specific floor, workshop, or office area; the service type refers to the category of electricity service served by the smart power line, such as electricity for production equipment, air conditioning, and lighting; and the connected equipment refers to the electrical equipment directly connected to the smart power line, including basic information such as equipment model and power.

[0053] Specifically, the server collects deployment information of the smart power lines through the management interface. The system administrator will pre-enter the specific installation location of each smart power line (e.g., "Area A, Workshop 2"), select its business type (e.g., "Power supply for production equipment"), and fill in the detailed information of the equipment it is connected to (e.g., "Injection molding machine - Model XX - Rated power 15kW").

[0054] S302. Based on the preset module address encoding rules and installation area, the server assigns a unique module address to each smart power line. The module address is used to identify each smart power line in the LoRa communication network to ensure that the gateway establishes a unique corresponding communication connection with the smart power line.

[0055] Among them, the preset module address encoding rule represents a predefined address allocation scheme, which usually includes the installation area code, device type code and serial number; the module address refers to the code used to uniquely identify the smart power line in the LoRa network; the unique corresponding communication connection represents the one-to-one communication relationship between the gateway and the smart power line.

[0056] Specifically, the server generates a unique module address for each smart power line according to a preset module address encoding rule and the installation area. For example, the preset module address encoding rule might be "area code (2 digits) - floor number (2 digits) - device type (2 digits) - serial number (4 digits)". Therefore, the smart power line for the first production device located on the first floor of Workshop 2 might be encoded as "02-01-01-0001". This standardized encoding method facilitates management and ensures the uniqueness of communication addressing.

[0057] S303: The server allocates a corresponding data communication channel and data reporting frequency to each smart power line according to the installation area and service type.

[0058] Specifically, the server will allocate data communication channels reasonably based on the location distribution of the smart power lines to avoid interference between devices in the same area. For example, devices in adjacent areas will be assigned to data communication channels of different frequencies. At the same time, different data reporting frequencies will be set according to the importance of the business; for example, critical production equipment may be set to report once every 10 seconds, while ordinary lighting equipment may be set to report once every 5 minutes.

[0059] S304. The server determines the corresponding data alarm threshold for each smart power cord based on the rated parameters of the connected device.

[0060] Among them, rated parameters refer to the standard operating parameters of the equipment when it is working normally, such as rated voltage and rated current; data alarm threshold refers to the parameter limit value that triggers an alarm.

[0061] Specifically, the server sets reasonable data alarm thresholds based on the rated parameters of each connected device, usually with a certain safety margin. For example, the current alarm threshold may be set to 1.2 times the rated current, and the voltage alarm threshold may be set to ±10% of the rated voltage. For special devices, their starting characteristics, such as the inrush current when a high-power motor starts, will also be considered.

[0062] S305. Based on the data communication channel, data reporting frequency, and data alarm threshold, the server generates configuration information corresponding to each smart power line.

[0063] The configuration information refers to the complete set of operating parameters of the smart power line, including the data communication channel, data reporting frequency, and data alarm threshold.

[0064] Specifically, the server integrates all the previously determined parameters into a standard format configuration file, which is usually in JSON format and contains complete information such as module address, data communication channel, data reporting frequency, and data alarm threshold.

[0065] For example: {"module_id": "02-01-01-0001", "channel": "CH1", "report_interval": 10, "current_threshold": 18, "voltage_threshold": {"min": 220, "max": 240}}.

[0066] This configuration information will be sent to the corresponding gateway for managing smart power cords.

[0067] The following steps may or may not be performed after step S205; this is not limited here: S306. The gateway receives the control policy configuration sent by the server. The control policy configuration includes overload protection policy, short circuit protection policy, temperature protection policy, leakage protection policy, and power anomaly policy.

[0068] The control strategy configuration represents a set of rules used to protect the safe operation of the equipment; the overload protection strategy refers to the handling scheme when the current exceeds the safe value; the short circuit protection strategy represents the emergency measures in the event of a short circuit; the temperature protection strategy is used to prevent cables from overheating; the leakage current protection strategy represents the handling scheme for leakage current faults; and the power anomaly strategy is used to deal with situations where power exceeds limits or fluctuates. Each protection strategy includes triggering conditions, judgment logic, and response actions.

[0069] Specifically, the server sends out a complete control policy configuration data packet, containing multiple protection levels. For example, the overload protection policy might be set to "trigger an alarm if the current exceeds 120% of the rated value for 5 seconds, and immediately cut off power if it exceeds 150%"; the temperature protection policy might be set to "issue an alarm if the temperature exceeds 75℃, and perform a delayed power cut off if it exceeds 85℃". The gateway receives these control policy configurations and stores them locally for real-time monitoring and judgment.

[0070] S307. The gateway determines in real time whether the device monitoring data meets the trigger conditions configured in the control policy.

[0071] Among them, real-time judgment refers to continuous data checking and comparison; equipment monitoring data refers to various monitoring parameters collected in real time by the intelligent power cord; and trigger conditions indicate the specific standards for activating protection measures.

[0072] Specifically, the gateway analyzes the device monitoring data reported by each smart power line in real time. For example, when it receives a current value of 25A from a smart power line, the gateway immediately checks the overload protection policy; when it receives a temperature value of 80℃ from a smart power line, the gateway triggers the temperature protection policy's judgment process. This real-time judgment mechanism ensures that various abnormal situations can be detected and handled promptly.

[0073] S308. If satisfied, the gateway sends a corresponding control command to the smart power line corresponding to the device monitoring data. The control command includes an emergency power-off command, a delayed power-off command, or an alarm prompt command.

[0074] Among them, control commands represent operation commands issued by the gateway to the smart power cord; emergency power-off commands are used to immediately cut off the power in emergency situations; delayed power-off commands allow the device to complete the current operation before powering off; and alarm prompt commands are used to issue warnings without performing a power-off operation. Each type of command has a specific execution priority and response requirements.

[0075] Specifically, the gateway selects appropriate control commands based on different abnormal situations. For example, when a short circuit is detected, an emergency power-off command is immediately sent; when the temperature slowly rises beyond the limit, a delayed power-off command is sent, reserving a safe downtime for the equipment; for minor power fluctuations, an alarm notification command is sent requesting manual intervention. This hierarchical control mechanism ensures safety while avoiding unnecessary service interruptions.

[0076] S309. The gateway uploads control commands and trigger conditions to the server.

[0077] Among them, the upload means sending the operation record executed locally to the server; the control instruction record contains information such as instruction type, execution time, and target device; the trigger condition record contains detailed information such as the specific parameter value and duration when triggered.

[0078] Specifically, the gateway generates a complete operation log, containing full information about the event's occurrence. For example: "The smart power cord PL001 detected a current value of 28A at 10:30:25, triggering the overload protection strategy (threshold 25A), executing a delayed power-off command, and reserving a 60-second downtime." These operation logs, uploaded to the server, can be used for subsequent fault analysis, strategy optimization, and operation and maintenance management. This complete recording mechanism ensures that all protection actions are traceable and evaluable.

[0079] S310. The backup gateway sends a heartbeat detection packet to the gateway. If it does not receive a response to the heartbeat detection packet from the gateway within a preset waiting time, the backup gateway sends a gateway switching request to the server.

[0080] Here, "backup gateway" refers to a redundant gateway device in a standby state; "heartbeat detection packet" refers to a specific data packet used to detect the gateway's liveness status; "preset waiting time" indicates the maximum allowed response delay time for the gateway, typically ranging from a few seconds to tens of seconds; "gateway switching request" refers to the backup gateway requesting the server to take over the gateway's services; and "response" refers to the gateway's reply to the heartbeat detection packet.

[0081] Specifically, the backup gateway sends a heartbeat check packet to the gateway at fixed intervals (e.g., every 5 seconds), in the format: "HeartBeat_Check: {backup_gateway_id: BG001, timestamp: 2023-10-01 10:30:00}". If no response is received from the gateway within the preset waiting time (10 seconds), the backup gateway will retry twice. If there is still no response, the backup gateway determines that the gateway may be faulty and immediately sends a gateway switch request to the server: "Switch_Request:{failed_gateway: GW001, backup_gateway: BG001, last_heartbeat_time: 2023-10-01 10:30:00}".

[0082] S311. After receiving the switchover authorization returned by the server, the backup gateway obtains the latest configuration information of the gateway, which includes the smart power line configuration parameters and the smart power lines that have been connected.

[0083] Among them, "Switch Authorization" indicates the server's confirmation that the backup gateway has taken over the gateway's services; "Latest Configuration Information" refers to the current set of operating parameters of the gateway; "Smart Power Line Configuration Parameters" includes settings such as data communication channel, data reporting frequency, and data alarm threshold; and "Established Connection Smart Power Lines" refers to the list of all devices currently managed by the gateway.

[0084] Specifically, after receiving a gateway switch request, the server verifies the status and permissions of the backup gateway, and then returns a switch authorization: "Switch_Authorization: {status: approved, timestamp: 2023-10-01 10:30:20}". The backup gateway then obtains the latest configuration information from the server, including the parameter settings and connection status of all smart power cords, ensuring that it can seamlessly take over all the functions of the gateway.

[0085] S312. The backup gateway broadcasts a gateway switching notification to the smart power line and re-establishes its connection with the smart power line.

[0086] Among them, broadcast means sending a message to all smart power lines simultaneously; gateway switching notification means instructing smart power lines to change their communication target; re-establish connection means completing the new communication link configuration.

[0087] Specifically, the backup gateway will send a switchover notification on all LoRa communication channels: "Gateway_Switch_Notice: {new_gateway: BG001, channel: CH1, timestamp: 2023-10-01 10:30:30}". Upon receiving the gateway switchover notification, the smart power cable will disconnect from the original gateway and establish a connection with the backup gateway according to the new parameters. The backup gateway will verify the connection status of each smart power cable to ensure that all smart power cables have completed the switchover.

[0088] S313, the backup gateway requests historical data stored locally during the communication interruption from each smart power line, and organizes the historical data in chronological order and uploads it to the server.

[0089] Among them, the communication interruption period refers to the time period from the gateway failure to the backup gateway taking over; local storage refers to the data caching function inside the smart power line; historical data refers to all monitoring data collected during the communication interruption period; and time order sorting refers to sorting the data according to the time of its generation.

[0090] Specifically, the backup gateway sends a data recovery request to each smart power line: "Data_Recovery_Request: {start_time: 2023-10-01 10:30:00, end_time: 2023-10-01 10:30:30}". Upon receiving the request, the smart power line sends its locally stored historical data from the communication interruption period to the backup gateway. The backup gateway then sorts and organizes this historical data according to its timestamps, forming a complete data sequence, and finally packages and uploads it to the server: "Historical_Data: {device_id: PL001, data: [{timestamp:xxx, values: xxx}, ...]}". This ensures data continuity and integrity, preventing the loss of important information due to gateway switching.

[0091] The following describes the multi-intelligent power cord integrated management system in the embodiments of this invention from the perspective of hardware processing. Please refer to [link / reference needed]. Figure 4 This is a schematic diagram of the physical device structure of a multi-intelligent power cord integrated management system in this application embodiment.

[0092] It should be noted that, Figure 4 The structure of the multi-intelligent power cord integrated management system shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0093] like Figure 4 As shown, the multi-intelligent power line integrated management system includes a CPU 401, which can perform various appropriate actions and processes according to a program stored in the read-only memory ROM 402 or a program loaded from the storage section 408 into the random access memory RAM 403, such as executing the methods described in the above embodiments. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An I / O interface 405 is also connected to the bus 404.

[0094] The following components are connected to I / O interface 405: input section 406 including audio input devices, push-button switches, etc.; output section 407 including a liquid crystal display (LCD) and audio output devices, indicator lights, etc.; storage section 408 including a hard disk, etc.; and communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. Communication section 409 performs communication processing via a network such as the Internet. Drive 410 is also connected to I / O interface 405 as needed. Removable media 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 410 as needed so that computer programs read from them can be installed into storage section 408 as needed.

[0095] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by CPU 401, it performs the various functions defined in the present invention.

[0096] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those shown in the drawings.

[0098] Specifically, the multi-intelligent power cord integrated management system of this embodiment includes a processor and a memory. The memory stores a computer program, and when the computer program is executed by the processor, it implements the multi-intelligent power cord management method provided in the above embodiment.

[0099] In another aspect, the present invention also provides a computer-readable storage medium, which may be included in the multi-intelligent power line integrated management system described in the above embodiments; or it may exist independently and not assembled into the multi-intelligent power line integrated management system. The storage medium carries one or more computer programs, which, when executed by a processor of the multi-intelligent power line integrated management system, cause the multi-intelligent power line integrated management system to implement the multi-intelligent power line management method provided in the above embodiments.

[0100] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0101] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0102] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A multi-intelligent power cord management method, characterized by, The application is applied to a multi-intelligent power line integrated management system, the multi-intelligent power line integrated management system comprises a server, multiple gateways and multiple intelligent power lines, the intelligent power line is electrically connected with the power interface of the equipment through the power plug of the equipment, the server is connected with the gateway through WiFi, the gateway and the intelligent power line are connected through LoRa, and the method comprises: The gateway receives the configuration parameters corresponding to each of the multiple intelligent power lines in the preset jurisdiction range of the gateway issued by the server, the configuration information comprises a data communication channel, a data reporting frequency and a data alarm threshold; The gateway establishes a connection with each of the intelligent power lines based on the data communication channel, and sends the corresponding data reporting frequency to each of the intelligent power lines; The gateway receives the equipment monitoring data sent by each intelligent power line according to the corresponding data reporting frequency, and the equipment monitoring data comprises current, voltage, active power, reactive power and cable temperature and humidity data; The gateway compares the equipment monitoring data with the corresponding data alarm threshold, identifies the abnormal intelligent power line whose equipment monitoring data exceeds the corresponding data alarm threshold, and generates alarm information of the abnormal intelligent power line; The gateway integrates the equipment monitoring data of each intelligent power line and the alarm information of the abnormal intelligent power line into a data packet in JSON format and uploads it to the server.

2. The method of claim 1, wherein, The intelligent power line comprises an RS485 expansion interface, the RS485 expansion interface is used for external connection of an external sensor; the intelligent power line acquires sensing data of the external sensor, and takes the sensing data as a part of the equipment monitoring data.

3. The method of claim 1, wherein, Before the step of receiving the configuration parameters corresponding to each of the multiple intelligent power lines in the preset jurisdiction range of the gateway issued by the server, the method further comprises: The server acquires the installation area, the business type and the connected equipment of the intelligent power line; The server assigns a unique module address to each of the intelligent power lines based on a preset module address coding rule and the installation area, the module address is used for identifying each intelligent power line in the LoRa communication network, so as to ensure that the gateway establishes a unique corresponding communication connection with the intelligent power line; The server assigns a corresponding data communication channel and data reporting frequency to each of the intelligent power lines according to the installation area and the business type; The server determines the data alarm threshold corresponding to each of the intelligent power lines according to the rated parameters of the connected equipment; The server generates the configuration information corresponding to each of the intelligent power lines based on the data communication channel, the data reporting frequency and the data alarm threshold.

4. The method of claim 3, wherein, The gateway establishes a connection with each of the intelligent power lines based on the data communication channel, and sends the corresponding data reporting frequency to each of the intelligent power lines, specifically comprising: The gateway sends a network discovery request on each data communication channel in a broadcast mode, and the gateway receives a request response carrying the module address of each intelligent power line returned by one or more intelligent power lines; The gateway determines whether the module address in the request response belongs to the jurisdiction range preset by the gateway; If it belongs, the gateway sends a connection confirmation information to the smart power line, the connection confirmation information including a data reporting frequency corresponding to the smart power line; The gateway receives configuration confirmation information returned by the smart power line, and completes connection establishment with the smart power line.

5. The method of claim 1, wherein, After the gateway integrates the device monitoring data of each smart power line and the alarm information of the abnormal smart power line into a JSON format data packet and uploads the data packet to the server, the method further includes: The server parses the data packet to obtain the device monitoring data of each smart power line and the alarm information of the abnormal smart power line; Based on the alarm information of the abnormal smart power line, the frequency and duration of alarms of various indicators are counted to generate device abnormality statistical information; Based on the active power and reactive power in the device monitoring data, the power factor and line loss rate of each smart power line are calculated to generate energy consumption analysis information; Based on the current, voltage, and cable temperature and humidity data in the device monitoring data, the change trend of the current, voltage, and cable temperature and humidity data is predicted; The device abnormality statistical information, energy consumption analysis information, and change trend are integrated into a device operation and maintenance analysis report.

6. The method of claim 1, wherein, The method further includes: The gateway receives the control strategy configuration issued by the server, the control strategy configuration including overload protection strategy, short-circuit protection strategy, temperature protection strategy, leakage protection strategy, and power abnormality strategy; The gateway determines whether the device monitoring data meets the trigger condition of the control strategy configuration in real time; If it meets, the gateway sends a corresponding control instruction to the smart power line corresponding to the device monitoring data, the control instruction including an emergency power-off instruction, a delay power-off instruction, or an alarm prompt instruction; The gateway uploads the control instruction and the trigger condition to the server.

7. The method of claim 1, wherein, The multi-smart power line integrated management system further includes a backup gateway, and the method includes: The backup gateway sends a heartbeat detection packet to the gateway, and if no response to the heartbeat detection packet is received from the gateway within a preset waiting time, the backup gateway sends a gateway switching request to the server; After receiving the switching authorization returned by the server, the backup gateway obtains the latest configuration information of the gateway, the latest configuration information including smart power line configuration parameters and smart power lines that have established connections; The backup gateway broadcasts gateway switching notifications to the smart power lines and re-establishes connections with the smart power lines; The backup gateway requests historical data stored locally during communication interruption from each smart power line, arranges the historical data in chronological order, and uploads the historical data to the server.

8. A multi-intelligent power line integrated management system, characterized by, The multi-intelligent power line integrated management system comprises one or more processors and a memory; the memory is coupled with the one or more processors, the memory is configured to store computer program codes, the computer program codes comprise computer instructions, and the one or more processors invoke the computer instructions to enable the multi-intelligent power line integrated management system to perform the method according to any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that, The instructions enable the multi-intelligent power line integrated management system to perform the method according to any one of claims 1-7 when the instructions run on the multi-intelligent power line integrated management system.

10. A computer program product, characterised in that, The computer program product enables the multi-intelligent power line integrated management system to perform the method according to any one of claims 1-7 when the computer program product runs on the multi-intelligent power line integrated management system.