Power equipment scene linkage method, device and system based on Internet of Things protocol
By using a power equipment scenario linkage method based on IoT protocols, and defining linkage scenarios using device identifiers and supporting data aggregation and streaming computing, the problem of single triggering conditions in existing power IoT scenario linkage schemes is solved. This enables flexible scenario linkage and accurate data analysis, improving the interconnection and energy management efficiency of power equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XJ ELECTRIC CO LTD
- Filing Date
- 2024-11-20
- Publication Date
- 2026-05-22
AI Technical Summary
Existing power IoT scenario linkage solutions have limited triggering conditions, resulting in inflexible scenario linkage and an inability to meet diverse needs for power equipment interconnection and data analysis.
By using a power equipment scenario linkage method based on IoT protocols, linkage scenarios are defined using device identifiers. This method supports data aggregation and streaming computing, and determines whether to trigger the execution action of the linkage scenario based on various decision conditions, including the comparison of real-time data and aggregated data, and supports multiple triggering conditions.
It enables flexible scenario linkage, supports multiple triggering conditions, improves the interconnection and interoperability between power equipment and the accuracy of data analysis, optimizes energy management and data-driven decision-making, and enhances the operational efficiency and safety of power solutions.
Smart Images

Figure CN122073585A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method, apparatus, and system for the linkage of power equipment scenarios based on IoT protocols, belonging to the field of data communication technology. Background Technology
[0002] With the increasing prevalence of intelligent technologies in the power sector, the types of intelligent power equipment are becoming increasingly diverse. Simultaneously, the massive amounts of data generated by these intelligent power devices present a significant challenge to traditional power equipment terminal access and the integration of diverse data sources for IoT solutions. IoT solutions, in particular, are comprehensive solutions designed for IoT systems or projects, aiming to achieve interconnectivity between devices, data collection and analysis, and intelligent control and management.
[0003] In traditional power systems, electrical equipment operates independently, meaning it continues to consume energy even when not in use; furthermore, communication and coordination between equipment are very limited. When one piece of equipment malfunctions or fails, the entire power system may collapse. Moreover, many electrical devices require manual control, and human error can lead to inaccurate, untimely, or incomplete operations. In contrast, a power system is a solution designed for a specific power scenario.
[0004] To address this, scenario-based linkage technology is introduced. This technology enables interconnection and interaction between devices, improving energy efficiency, meeting intelligent requirements, optimizing energy management, promoting renewable energy applications, and achieving data-driven decision-making. Ultimately, this enhances the overall performance of power solutions and promotes sustainable energy development. Scenario-based linkage technology can also integrate and analyze data from various devices, providing more accurate and intelligent guidance for power solutions to analyze and make decisions based on massive amounts of real-time data, thereby improving the operational efficiency and security of the solutions.
[0005] Currently, most scenario linkage solutions are primarily applied to smart homes. In the context of the power IoT, solutions for multi-device scenario linkage based on IoT protocols are relatively rare. Furthermore, existing power IoT scenario linkage solutions are all point-to-point triggered (using a single reported data point as the source data for triggering the scenario), and do not support using aggregated data from device reports over a specific time period as triggering conditions. This results in limited triggering conditions and inflexible scenario linkage. Point-to-point triggering refers to directly triggering another device, function, or method to perform a corresponding action or response when specific conditions are met. Summary of the Invention
[0006] The purpose of this invention is to provide a method, device, and system for scene linkage of power equipment based on IoT protocols, so as to solve the problem of inflexible scene linkage caused by the single triggering condition of existing scene linkage.
[0007] To achieve the above objectives, the present invention includes: The present invention provides a method for the linkage of power equipment scenarios based on an Internet of Things protocol, comprising the following steps: The system determines whether a device has defined a linkage scenario based on its unique device identifier. If not, the linkage scenario is defined based on the device's attributes and events in the scenario linkage scheme. If so, the system determines whether data aggregation is required based on the decision conditions of the linkage scenario. If yes, then perform streaming computation on the device data sent by the access device within the set time period, and use the computation result as the data to compare with the set threshold; if no, then use the real-time device data sent by the access device as the data to compare with the set threshold; determine whether to trigger the execution action of the linkage scene based on the result of the comparison with the set threshold.
[0008] Furthermore, the decision conditions include one independent triggering condition, or a combination of two or three or more independent triggering conditions, or include device data sent at a certain moment or aggregated data within a certain time period; the independent triggering condition includes the device and the device data sent by that device; the aggregated data is the calculation result of streaming computing.
[0009] Furthermore, the execution action includes a single action, or a combination of two or three or more independent actions; the independent action includes equipment adjustment and information notification; equipment adjustment is performed according to the received action information; information notification is used to forward the triggered linkage information to the designated receiving medium.
[0010] Furthermore, the execution of the action is triggered in the following way: The action information of the action is transmitted to the IoT bus. The connected device receives the action information and makes device adjustments according to the received action information. The action can be triggered in the following ways: The action information is transmitted to the set receiving mechanism. According to the forwarding method set in the information notification in the action information, the action information is notified to the management personnel and / or operators so that the action information can be used as the basis for human decision-making.
[0011] The present invention provides a power equipment scene linkage system based on an Internet of Things (IoT) protocol, comprising a processor, which executes a computer program to implement the steps of the power equipment scene linkage method based on the IoT protocol described above.
[0012] The present invention provides a power equipment scene linkage device based on the Internet of Things protocol, comprising a scene definition module, a processing module and a decision linkage module. The scene definition module is used to define the linkage scene according to the attributes and events of the access device in the scene linkage scheme. The processing module is used to receive device data sent by the access device and determine whether the device has defined a linkage scenario based on the unique device identifier of the access device. If so, the device data is processed and forwarded to the decision linkage module. If not, the linkage scenario is defined through the scenario definition module. The decision-making linkage module is used to determine whether data aggregation is needed based on the decision conditions of the linkage scenario. If so, it performs streaming calculation on the device data received by the decision-making linkage module within a set time and uses the calculation result as the data to be compared with the set threshold. If not, it uses the real-time device data received by the decision-making linkage module as the data to be compared with the set threshold. The decision-making linkage module also determines whether to trigger the execution action of the linkage scenario based on the result of the comparison with the set threshold.
[0013] Furthermore, it also includes a scene control module, which is used to trigger the execution action of the linked scene after the decision-making linkage module determines the execution action to be triggered.
[0014] Furthermore, the execution of the action is triggered in the following way: The scene control module transmits the action information of the action to the IoT bus. The connected device receives the action information and makes device adjustments according to the received action information. The action can be triggered in the following ways: The scene control module transmits the action information of the executed action to the set receiving mechanism. According to the forwarding method set in the information notification in the action information, the action information is notified to the management personnel and / or operators so that the action information can be used as the basis for manual decision-making.
[0015] Furthermore, the decision conditions include one independent triggering condition, or a combination of two or three or more independent triggering conditions, or include device data sent at a certain moment or aggregated data within a certain time period; the independent triggering condition includes the device and the device data sent by that device; the aggregated data is the calculation result of streaming computing.
[0016] Furthermore, the execution action includes a single action, or a combination of two or three or more independent actions; the independent action includes equipment adjustment and information notification; equipment adjustment is performed according to the received action information; information notification is used to forward the triggered linkage information to the designated receiving medium.
[0017] The beneficial effects of this invention are: The present invention is a pioneering invention, which provides a method for power equipment scenario linkage based on the Internet of Things protocol. Based on the defined linkage scenarios, it is judged whether data aggregation operation is required according to the decision conditions of the linkage scenarios. If so, the aggregated data after the data aggregation operation (i.e., the calculation result of stream computing) is used as the data for comparison with the set threshold. If not, the real-time data (i.e., the device data sent by the access device at a certain moment) is used as the data for comparison with the set threshold. Finally, it is determined whether to trigger the execution action of the linkage scenario according to the comparison result. Among them, the linkage scenarios of this method are defined according to the attributes and events of the access devices in the scenario linkage plan, and multiple decision conditions of the linkage scenarios can be set. It supports using the data obtained by aggregating the device-reported data within a certain period as the trigger condition, with diverse trigger conditions and more flexible scenario linkage. The diversity of the trigger conditions is reflected in supporting various forms of decision conditions, such as the comparison of the data reported by the device at a certain measurement point with the threshold, or the device reporting a certain event, or the comparison of the data calculated based on the data reported at a certain measurement point within a period of time with the threshold, and it supports whether the decision condition is to trigger when one condition is met or all conditions are met. The multiple trigger conditions enable us to define different scenarios according to different needs, and then trigger the corresponding linkage actions, ensuring the flexibility of defining scenario linkages. However, the existing scenario linkages can only use the comparison of the data reported at the measurement point with the threshold as the trigger condition, which limits the flexibility of scenario definition. Description of the Drawings
[0018] Figure 1 It is the working flow chart of the power equipment scenario linkage device. Detailed Embodiments
[0019] To solve the problems in the background art, the present invention provides various ways to set decision conditions, which can flexibly set the decision conditions for linkage triggers, support using the data obtained by aggregating the device-reported data within a certain period as the trigger condition, with diverse trigger conditions and more flexible scenario linkage.
[0020] To make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the drawings and embodiments.
[0021] An embodiment of a method for power equipment scenario linkage based on the Internet of Things protocol: A method for power equipment scenario linkage based on the Internet of Things protocol includes the following steps: Judge whether the access device has defined a linkage scenario according to the unique device identifier of the access device. If not, define the linkage scenario according to the attributes and events of the access device in the scenario linkage plan. If so, judge whether data aggregation operation is required according to the decision conditions of the linkage scenario; If yes, then stream computing is performed on the device data sent by the access device within the set time, and the result of the stream computing is used as the data to be compared with the set threshold. If no, then the real-time device data sent by the access device is used as the data to be compared with the set threshold. Based on the result of the comparison with the set threshold, it is determined whether to trigger the execution action of the linkage scene.
[0022] Since each access device has a unique device identifier, the system queries the database for the device identifier. If the device identifier of the access device exists, it is considered that the access device has defined a linkage scenario; otherwise, it is considered that the access device has not defined a linkage scenario.
[0023] The following example illustrates the definition of a linkage scenario: For instance, if a type of device is predefined, including some attributes (temperature) and events (high temperature alarm, etc.), then defining a scenario for this type of device would involve defining a notification action when the device reports a temperature greater than 25 degrees Celsius, or a shutdown action when the device reports a high temperature alarm event, etc.
[0024] Whether or not data aggregation is needed is selected when defining the scenario. For example, if a device has two attributes, such as temperature, and a scenario is based on the device reporting a temperature exceeding 25°C more than 3 times within three minutes, then aggregation can be selected when defining the conditions, choosing a temperature greater than 25°C and a time period greater than three minutes as the trigger conditions.
[0025] For example, define the following scenario: when the device reports temperature measurement data higher than 25°, execute the linkage action. Then, when a message is received from the device, it will compare the temperature value reported by the device with the condition defined in the scenario that the temperature is greater than 25°. If the temperature value is greater than 25°, the linkage action will be executed.
[0026] The linkage scenario includes decision conditions and execution actions; when the decision conditions are met, the corresponding execution actions are executed; the threshold is set as the threshold set in the decision conditions of the linkage scenario.
[0027] Among them, the linkage scenario defined based on the attributes and events of the access device in the scene linkage scheme can support multiple ways of setting decision conditions.
[0028] Specifically, the decision conditions include one independent trigger condition, or a combination of two or three or more independent trigger conditions; the independent trigger conditions include the device and the device data transmitted by the device.
[0029] For example, the decision condition includes an independent trigger condition, which is that the real-time temperature of the temperature sensor is greater than 5°C. If it is determined that no data aggregation operation is needed, then the real-time temperature data of the temperature sensor is used as the data to be compared with a set threshold of 5°C. When the real-time temperature data of the temperature sensor is greater than 5°C, it is considered that the execution action of the linkage scene should be triggered.
[0030] For example, the decision condition includes a combination of two independent triggering conditions: the real-time temperature of the temperature sensor is greater than 5°C and the clock time is 6 o'clock. If it is determined that no data aggregation operation is needed, then the real-time temperature data of the temperature sensor and the clock time data are used as data to compare with the set thresholds, which are 5°C and 6 o'clock. When the real-time temperature data of the temperature sensor is greater than 5°C and the clock time is 6 o'clock, it is considered that the execution action of the linkage scene should be triggered.
[0031] The real-time temperature data from the temperature sensor is sent from the device to the system of this invention, rather than being directly compared inside the temperature sensor.
[0032] Specifically, decision conditions include device data uploaded at a certain moment or aggregated data over a certain period of time; aggregated data is the result of streaming computing. For example, real-time temperature data from a temperature sensor is continuously uploaded. When the uploaded temperature data exceeds 5°C more than 10 times within three consecutive minutes, triggering the execution of a linked scene, the number of times the temperature exceeds 5°C within three consecutive minutes is the aggregated data.
[0033] Specifically, the execution action includes a single action, or a combination of two or more independent actions; independent actions include equipment adjustment and information notification; equipment adjustment is performed according to the received action information; information notification is used to forward the triggered linkage information to the designated receiving medium. For example, if a temperature sensor continuously uploads real-time temperature data, and the uploaded temperature data exceeds 5°C more than 10 times within three consecutive minutes, triggering the linkage scenario, there are two execution actions: one is to adjust the device power, and the second is to notify the designated receiving medium (Kafka, HTTP, SMS, etc.) of the linkage information.
[0034] Specifically, the action is triggered in the following way: The action information of the action is transmitted to the IoT bus. The connected device receives the action information and makes device adjustments according to the received action information.
[0035] Specifically, the execution of an action can also be triggered in the following ways: The action information is transmitted to the set receiving mechanism. According to the forwarding method set in the information notification in the action information, the action information is notified to the management personnel and / or operators so that the action information can be used as the basis for human decision-making.
[0036] An embodiment of a power equipment scene linkage device based on an IoT protocol: A power equipment scene linkage device based on the Internet of Things protocol includes a scene definition module, a processing module, and a decision linkage module.
[0037] The scenario definition module is used to define linkage scenarios based on the attributes and events of the access devices in the scenario linkage scheme. A linkage scenario includes decision conditions and execution actions; when the decision conditions are met, the corresponding execution action is executed. Access devices refer to the connected power equipment.
[0038] The processing module receives device data sent from the access device and determines whether the device has defined a linkage scenario based on the unique device identifier of the access device. If so, the device data is processed and forwarded to the decision linkage module. If not, the linkage scenario is defined through the scenario definition module.
[0039] Power equipment is connected according to the Internet of Things (IoT) protocol and uploads device data according to the IoT bus using a publish / subscribe mechanism. The processing module collects the device data uploaded by the devices according to the IoT bus using the publish / subscribe mechanism, processes the collected device data, and determines whether the device has defined a scene based on the obtained device identifier (deviceKey).
[0040] The processing module can forward the processed equipment data to the decision-making linkage module through the forwarding module, or it can directly forward the processed equipment data to the decision-making linkage module.
[0041] The decision-making linkage module determines whether data aggregation is needed based on the decision conditions of the linkage scenario. If so, it performs streaming computation on the device data received by the decision-making linkage module within a set time period and uses the computation result as the data to be compared with a set threshold. If not, it uses the real-time device data received by the decision-making linkage module as the data to be compared with the set threshold. That is, the decision-making linkage module uses the single real-time data of each terminal device as the data to be compared with the set threshold. The decision-making linkage module also determines whether to trigger the execution action of the linkage scenario based on the comparison result with the set threshold. The set threshold is the threshold set in the decision conditions of the linkage scenario.
[0042] Specifically, it also includes a scene control module, which is connected to the decision linkage module. The scene control module is used to trigger the execution action of the linkage scene after the decision linkage module determines that the execution action of the linkage scene should be triggered.
[0043] Specifically, the action is triggered in the following way: The scene control module transmits the action information to the IoT bus. The access device receives the action information and adjusts its device accordingly. In other words, the scene control module transmits action information to the IoT bus, and the device terminal (access device) receives the action information according to a publish / subscribe mechanism and adjusts its terminal device accordingly.
[0044] Specifically, the execution of an action can also be triggered in the following ways: The scene control module transmits the action information of the executed action to the set receiving mechanism. Based on the forwarding method set in the action information, it notifies management personnel and / or operators of the action information, using this information as a basis for human decision-making. In other words, it transmits the linkage information to the set receiving mechanism, and based on the forwarding method set for the executed action, notifies management and operators of the linkage information, using this information as a basis for human decision-making.
[0045] Action information refers to the actions required to trigger scenario linkage. One type of action, forwarding, involves forwarding linkage information. Linkage information is a type of forwarding action, and its content includes comprehensive information such as the message reported by the device, the conditions for triggering the scenario, and the actions to be executed.
[0046] Specifically, the decision conditions include one independent trigger condition, or a combination of two or three or more independent trigger conditions; the independent trigger conditions include the device and the device data transmitted by the device.
[0047] The relationship between independent triggering conditions can be set to trigger when all conditions are met simultaneously or when a certain condition is met.
[0048] Among them, the independent triggering conditions of the decision conditions can be visualized as a tuple (device, data reported by the device).
[0049] Specifically, decision conditions may include device data uploaded at a certain moment or aggregated data within a certain time period; aggregated data is the result of streaming computation.
[0050] The decision criteria support single-report attribute exceeding a threshold, reporting an event, numerical calculations of an attribute over a short period, or statistical data over a time period (the number of times an attribute is reported, the number of times an attribute value exceeds a threshold, etc.). For example, a sensor device can be set to trigger a condition when the average temperature reported within five minutes is greater than 5°C.
[0051] Specifically, the action performed includes a single action or a combination of two or three or more single actions.
[0052] Independent actions include equipment adjustments and information notifications.
[0053] Equipment adjustments are made according to the received action information, including adjusting the equipment's status and attributes.
[0054] Information notifications are used to forward triggered linkage information to a specified receiving medium; information notifications support configuration of receiving mediums such as Kafka, HTTP, email, or SMS.
[0055] Kafka is a distributed stream processing platform primarily used to build real-time data pipelines and streaming media applications, enabling high-throughput real-time data stream processing. HTTP (Hypertext Transfer Protocol) is an application-layer protocol used for distributed, collaborative, and hypermedia information systems, primarily for data transmission between clients and servers.
[0056] The workflow between modules of the power equipment scenario linkage device based on the Internet of Things protocol is as follows: Figure 1 As shown, firstly, the user defines a scenario (linked scenario) through the scenario definition module (scenario definition module) and stores it in the database. The data processing module (processing module) subscribes to the device data reporting topic (data upload topic in the figure), and the device subscribes to the downlink device adjustment topic (downlink topic in the figure). After the device reports data, the data processing module processes the received data and checks the database to determine whether the device has defined a scenario. If the scenario exists, the decision linkage module receives the data, determines whether the data needs to be aggregated, and compares the processed data with the threshold set by the decision conditions to determine whether the conditions are met. If the conditions are met, the scenario control module checks the database to obtain the action information to be executed, executes the action, forwards (optional), and publishes the downlink device adjustment topic (optional). The management personnel receive the notification information, make relevant decisions, and the device receives the device adjustment topic, parses it, and performs device adjustments. The linked scenario includes basic scenario information, scenario decision condition information, and scenario action information (…). Figure 1 (Based on the foundation, decision-making conditions, and action information).
[0057] In the power IoT solution, a reliable power equipment scenario linkage scheme is implemented based on IoT protocols. This scheme can be used for linkage functions at both the station and equipment levels, supplementing the lack of device scenario linkage solutions in power scenarios and supporting flexible setting of linkage triggering decision conditions. Furthermore, it provides multiple condition setting methods, supporting flexible configuration of linkage triggering decision conditions, thus solving the problem of single and inflexible condition settings in existing power scenario linkage technologies. It has significant advantages in scenario linkage, effectively addressing the issue that IoT devices in power scenarios can only operate independently and cannot link with each other. In power system operation, it can realize functions such as grid load balancing, equipment operating status monitoring, and fault early warning.
[0058] An example of a power equipment scene linkage system based on IoT protocols: A power equipment scene linkage system based on an Internet of Things (IoT) protocol includes a processor. The processor executes a computer program to implement the steps of a power equipment scene linkage method based on an IoT protocol. The power equipment scene linkage method based on an IoT protocol has been described in detail in an embodiment of such a method and will not be repeated here.
Claims
1. A power equipment scenario linkage method based on the Internet of Things protocol, characterized in that Includes the following steps: The system determines whether a device has defined a linkage scenario based on its unique device identifier. If not, the linkage scenario is defined based on the device's attributes and events in the scenario linkage scheme. If so, the system determines whether data aggregation is required based on the decision conditions of the linkage scenario. If yes, then perform streaming computation on the device data sent by the access device within the set time period, and use the computation result as the data to compare with the set threshold; if no, then use the real-time device data sent by the access device as the data to compare with the set threshold; determine whether to trigger the execution action of the linkage scene based on the result of the comparison with the set threshold.
2. The method for scene linkage of power equipment based on IoT protocol according to claim 1, characterized in that, The decision conditions include one independent trigger condition, or a combination of two or three or more independent trigger conditions, or include device data sent at a certain moment or aggregated data within a certain time period; the independent trigger condition includes the device and the device data sent by that device; the aggregated data is the calculation result of the streaming computation.
3. The method for scene linkage of power equipment based on IoT protocol according to claim 1, characterized in that, The execution action includes one independent action, or a combination of two or three or more independent actions; the independent action includes equipment adjustment and information notification; equipment adjustment is performed according to the received action information; information notification is used to forward the triggered linkage information to the designated receiving medium.
4. The method for scene linkage of power equipment based on IoT protocol according to claim 1, characterized in that, The execution action is triggered in the following way: The action information of the action is transmitted to the IoT bus. The access device receives the action information and makes device adjustments according to the received action information. Alternatively, the execution action may be triggered in the following way: The action information is transmitted to the set receiving mechanism. According to the forwarding method set in the information notification in the action information, the action information is notified to the management personnel and / or operators so that the action information can be used as the basis for human decision-making.
5. A power equipment scene linkage system based on an Internet of Things protocol, comprising a processor, characterized in that, The processor is used to execute a computer program to implement the steps of the power equipment scene linkage method based on the Internet of Things protocol as described in any one of claims 1 to 4.
6. A power equipment scene linkage device based on an Internet of Things protocol, characterized in that, It includes a scene definition module, a processing module, and a decision linkage module. The scene definition module is used to define linkage scenes based on the attributes and events of the access devices in the scene linkage scheme. The processing module is used to receive device data sent by the access device and determine whether the device has defined a linkage scenario based on the unique device identifier of the access device. If yes, the device data is processed and forwarded to the decision linkage module. If no, the linkage scenario is defined through the scenario definition module. The decision-making linkage module is used to determine whether data aggregation is needed based on the decision conditions of the linkage scenario. If so, it performs streaming calculation on the device data received by the decision-making linkage module within a set time period and uses the calculation result as the data to be compared with a set threshold. If not, it uses the real-time device data received by the decision-making linkage module as the data to be compared with the set threshold. The decision-making linkage module also determines whether to trigger the execution action of the linkage scenario based on the result of the comparison with the set threshold.
7. The power equipment scene linkage device based on the Internet of Things protocol according to claim 6, characterized in that, It also includes a scene control module, which is used to trigger the execution action of the linked scene after the decision-linkage module determines that the execution action of the linked scene should be triggered.
8. The power equipment scene linkage device based on the Internet of Things protocol according to claim 7, characterized in that, The execution action is triggered in the following way: The scene control module transmits the action information of the action to the IoT bus. The access device receives the action information and makes device adjustments according to the received action information. Alternatively, the execution action may be triggered in the following way: The scene control module transmits the action information of the executed action to the set receiving mechanism. According to the forwarding method set in the information notification in the action information, the action information is notified to the management personnel and / or operators so that the action information can be used as the basis for manual decision-making.
9. The power equipment scene linkage device based on the Internet of Things protocol according to claim 6, characterized in that, The decision conditions include one independent trigger condition, or a combination of two or three or more independent trigger conditions, or include device data sent at a certain moment or aggregated data within a certain time period; the independent trigger condition includes the device and the device data sent by that device; the aggregated data is the calculation result of the streaming computation.
10. The power equipment scene linkage device based on the Internet of Things protocol according to claim 6, characterized in that, The execution action includes one independent action, or a combination of two or three or more independent actions; the independent action includes equipment adjustment and information notification; equipment adjustment is performed according to the received action information; information notification is used to forward the triggered linkage information to the designated receiving medium.