Edge gateway control system and method based on power line communication
By adopting a decentralized power line communication edge gateway control system in smart home systems, the operation problems during network disconnection and gateway failure are solved, the system automation and stability are realized, and the user experience is improved.
Patent Information
- Application Number
- CN202411396372.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-07
AI Technical Summary
The existing smart home system cannot operate independently when the network is disconnected or the gateway fails, resulting in network paralysis, lack of edge operation capabilities, and cannot achieve automatic control. The system has little risk resistance and poor user experience.
Adopt an edge gateway control system based on power line communication, adopts a decentralized design, and realizes power line communication through downlink communication modules and edge control units, builds conditional algorithms and automation scenarios to ensure that the system can still operate normally without a gateway, and is in the gateway. Maintain basic functions in the event of a failure.
It realizes the independent operation of smart devices without a network, reduces installation costs, shares cloud pressure, ensures the automatic operation and stability of the system, and improves user experience and comfort.
Smart Images

Figure CN119276903A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control systems, and in particular to an edge gateway control system and method based on power line communication. Background Art
[0002] With the rapid development of society, the demands for scenarios and intelligence in daily life and commercial applications are getting higher and higher. The requirements for network security and product stability are becoming higher, and the control equipment is becoming more diversified. Control equipment is also increasingly pursuing scenario-based, and the requirements for local edge are getting higher and higher.
[0003] However, most of the existing smart home products on the market use a gateway-centric approach combined with a cloud platform. The gateway cannot run independently, which has certain disadvantages. Secondly, the system does not have the ability to run at the edge. Once the network is disconnected, the entire network will be paralyzed and unable to interact with the cloud, making it impossible to run locally. At the same time, once the gateway hardware is damaged, the entire system will become unusable. Based on the above considerations, the original control method cannot achieve local automatic operation, and the system's ability to resist risks is relatively low, which brings a bad experience to users. Summary of the invention
[0004] To this end, the present invention proposes an edge gateway control system and method based on power line communication to solve the problems that the existing intelligent control cannot be disconnected from the network, cannot be decentralized, and cannot be automatically controlled. A conditional operation mechanism is established to maintain the normal operation of the control system, making the entire intelligent control more robust and stable, and bringing a better experience to users.
[0005] According to one aspect of the present invention, an edge gateway control system based on power line communication is proposed, comprising: a downlink communication module and an edge control unit; the downlink communication module is used to communicate with downlink devices through power lines; the edge control unit is used for uplink communication and management of intelligent devices in the power line communication network, and automatically builds a learning mechanism according to the configured scenario, establishes a corresponding conditional algorithm, and processes transactions occurring in the entire network; the edge gateway control system adopts a decentralized implementation method without a central node, so that when the on-site system is running and the gateway is removed, the entire system can still keep working and processing transactions.
[0006] Furthermore, the downlink communication module is used to receive downlink data sent by the edge control unit, parse and encapsulate according to the corresponding protocol, and send the data to the controlled smart device through the power line, and determine whether to return the information of the smart device according to the protocol.
[0007] Furthermore, the edge control unit has a data forwarding function, which can store the data collected by the on-site smart devices in the edge gateway for analysis and supply to the application layer, and forward the control instructions and push information generated by the edge gateway in different communication methods; the information of the smart device is formed after sorting out the effective data extraction and processing; the conditional algorithm also includes automatic learning of the algorithm based on the collected data, forming a corresponding conditional execution plan, and automatically calculating the electricity consumption of the entire household to construct a corresponding automation scenario.
[0008] Furthermore, the edge gateway control system adopts a decentralized power line communication design. The entire power line communication does not need to initiate routing beacon frames through the gateway to maintain all sub-device nodes on site. The devices in the entire system can communicate with each other to ensure that the system can maintain normal operation after leaving the gateway.
[0009] According to another aspect of the present invention, there is also provided an edge gateway control method based on power line communication, comprising the following steps: S1, connecting a smart device via a power line, connecting to a gateway using an APP, and initiating a search and addition of a smart device; S2, after completing the search and addition of a smart device using the APP, designing a corresponding scenario in combination with the added device; S3, the gateway receives the scenario sent down, and constructs an automatic matching rule based on the scenario information; S4, based on the matching rule, those that need to be stored in the gateway are constructed in the gateway, and those that need to be sent down to the smart device are stored in the smart device; S5, the gateway and the smart device run the corresponding matching rule, and determine whether to perform the corresponding action based on the received information.
[0010] Furthermore, step S1 includes: using the power line as a communication carrier, and connecting the device with an integrated power line communication module to the power supply. The smart device contains corresponding software to support the sending and receiving of application data. The APP establishes a connection with the gateway through the local area network, and sends search information through the APP. After the smart device that supports power line communication receives the message, it returns the corresponding message.
[0011] Further, step S2 includes: when the gateway receives the message returned by the smart device, it processes the information and sends it to the APP. The APP confirms whether to add the smart device based on the corresponding information. After the smart device is added successfully, the scene can be edited according to the desired scene through the operation interface displayed on the APP, and sent to the gateway.
[0012] Further, step S3 includes: when the gateway receives the scene information sent by the APP, the application in the gateway will parse the scene information, automatically construct matching rules based on the parsed content to report the current scene detection results, and the gateway automatically determines the location where the rule execution is stored based on the rules.
[0013] Further, step S4 includes: when the gateway creates a rule, the gateway determines that if the execution of the rule requires multiple conditions to be triggered, the rule is stored in the gateway; if the gateway determines that the execution condition of the rule is single, the judgment and triggering of the rule are stored in the corresponding smart device; after being stored in the corresponding location, the rule starts to run.
[0014] Further, step S5 includes: when the rule starts to run, the gateway and the smart device monitor the messages in the system, and the gateway triggers the system to execute corresponding tasks according to the monitored messages.
[0015] The edge gateway control system proposed in the present invention enables the home gateway to operate independently without a network, and effectively connects the smart devices in the home through communication time slot control. At the same time, the learning and conditional algorithms implemented by the gateway itself are used to build a corresponding rule engine to automatically obtain messages and events generated in the entire network. The gateway automatically triggers or executes corresponding events based on the acquired information, and ensures the intelligent and stable operation of the gateway control system based on edge computing.
[0016] The present invention directly uses electricity for communication, and does not need to use separate wiring to solve the network communication of the entire system, thus reducing the cost of on-site installation, construction and wiring. It can solve the problem of abnormal gateway disconnection, ensure edge rule calculation, ensure the automatic operation of the entire system, and share the pressure on the cloud. At the same time, when the gateway is broken, the entire control system can still maintain basic functional operation, bringing better experience and comfort to intelligent control. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a block diagram of an edge gateway control system based on power line communication according to an embodiment of the present invention.
[0018] Figure 2 It is a working flow chart of an edge gateway control system based on power line communication according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0020] Please refer to Figure 1The embodiment of the present invention proposes an edge gateway control system based on power line communication, including a downlink communication module and an edge control unit; wherein the downlink communication module is mainly responsible for communication with downlink devices, and such communication is carried out through power lines; the edge control unit is mainly responsible for uplink communication and management of intelligent devices in the power line communication network, and automatically builds a learning mechanism according to the configured scenario, establishes a corresponding conditional algorithm, and handles transactions occurring in the entire network. The edge gateway control system of the embodiment of the present invention adopts a decentralized implementation method, and the entire system has no central node. When the on-site system is running, the gateway is removed, and the entire system can still maintain basic work and handle basic transactions.
[0021] The downlink communication module receives the downlink data sent by the edge control unit, parses and encapsulates it according to the corresponding protocol, and sends the data to the controlled smart device through the power line, and determines whether to return the information of the smart device according to the protocol. Specifically, the downlink communication module uses the power line as the transmission medium, connects the entire system in series through the power line, and obtains information from devices such as human sensors, smoke sensors, switch panels, water immersion sensors, light drivers, power switches, etc., such as whether there is someone, whether there is a gas leak, whether the switch is triggered, whether there is water immersion, current brightness, etc. The downlink communication module directly adopts the end-to-end communication mechanism, that is, one device can directly send application data messages to another device, such as the switch panel can directly send the light driver, and at the same time, the smoke sensor and other devices in the venue will automatically sense the rules through the configured scene and send the triggered message directly to the gas valve, range hood and other devices.
[0022] The edge control unit has a data forwarding function. It can store the data collected by the on-site smart devices in the edge gateway for analysis and supply to the application layer, and forward the control instructions and push information generated by the edge gateway in different communication methods; the information of the smart device is formed after sorting out the effective data extraction and processing; the conditional algorithm also includes automatic learning of the algorithm based on the collected data, forming a corresponding conditional execution plan, and automatically calculating the electricity consumption of the entire family to construct a corresponding automation scenario.
[0023] The edge gateway control system of the embodiment of the present invention adopts a decentralized power line communication design. The entire power line communication does not need to initiate routing beacon frames through the gateway to maintain all sub-device nodes on site. The devices in the entire system can communicate with each other, and the system can maintain normal operation to a certain extent after being separated from the gateway.
[0024] like Figure 2 The flowchart of the edge gateway control system of the above embodiment is shown, and the workflow includes:
[0025] 1) APP (Application) initiates the search action: select smart devices that support power line communication. These smart devices can transmit data with the edge gateway through the power line. Install these smart devices on the power line, use the APP to add the corresponding devices through the smart gateway, and use the communication module in the gateway to complete the entire communication connection;
[0026] 2) The gateway uses the power line to complete the addition of devices: After the connection is established according to process 1), the corresponding virtual scene is built using the APP, and the scene will be automatically synchronized to the smart gateway. The gateway builds the corresponding rule scene and automatically runs it in the system;
[0027] 3) The downlink communication module will process the power line communication message flow in the entire system, parse and filter the data, and pass the messages that need to be processed to the message control center in the system. It will use the conditional rules in process 2) to judge and collect data, analyze the time, mode, and quantity, and process them into the database, and automatically clean and train the data;
[0028] 4) Using the data cleaned in process 3), the system's built-in conditional rules will make corresponding judgments and processing based on the data. It will automatically adjust the brightness of the ambient light based on the current ambient brightness. When the energy consumption is too high, it will automatically notify the system of abnormal energy consumption of the equipment and make dynamic adjustments. When the system encounters abnormalities with external data and cannot support the specified configuration, the system can still automatically provide users with intelligent decisions based on local rules and data.
[0029] 5) The entire system is built through power line communication, and the configured related actions are stored in the smart device. When operating the smart device, it can be sent directly without forwarding through the gateway, which improves the efficiency and fault tolerance of communication. Once the gateway is abnormal, the system can work normally.
[0030] The embodiment of the present invention further provides an edge gateway control method based on power line communication, comprising the following steps S1 to S5:
[0031] S1. Connect the smart device via the power line, use the APP to connect to the gateway, and initiate the search and add of the smart device. In step S1, the power line is used as a communication carrier, and the device with an integrated power line communication module is connected to the power supply. The smart device contains corresponding software to support the sending and receiving of application data. The APP establishes a connection with the gateway through the local area network and sends the search information through the APP. After the smart device supporting power line communication receives the message, it returns the corresponding message.
[0032] S2. After using the APP to search and add smart devices, design the corresponding scene in combination with the added devices. In step S2, when the gateway receives the message returned by the smart device, it processes the information and sends it to the APP. The APP confirms whether to add the smart device based on the corresponding information. After the smart device is successfully added, the scene can be edited according to the desired scene through the operation interface displayed on the APP and sent to the gateway.
[0033] S3, the gateway receives the scene information sent by the APP, saves the corresponding scene information and builds an automated matching rule based on the scene information, automatically builds a corresponding condition trigger mechanism, and forms the corresponding scene processing. In step S3, when the gateway receives the scene information sent by the APP, the application in the gateway will parse the scene information, automatically build a matching rule based on the parsed content, and report the current scene detection result. The gateway automatically determines the location where the rule execution is stored based on the rule.
[0034] S4. According to the matching rules, those that need to be stored in the gateway are constructed in the gateway, and those that need to be sent to the smart device are stored in the smart device. In step S4, after the gateway creates the rule, if the gateway determines that the execution of the rule requires multiple conditions to be triggered, the rule is stored in the gateway; if the gateway determines that the execution condition of the rule is single, the judgment and trigger of the rule are stored in the corresponding smart device; after being stored in the corresponding location, the rule starts to run.
[0035] S5, the gateway and the smart device run the corresponding matching rules, and determine whether to execute the corresponding action according to the received information. In step S5, when the rules start running, the gateway and the smart device monitor the messages in the system, and the gateway triggers the system to execute the corresponding task according to the monitored messages.
[0036] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. An edge gateway control system based on power line communication, characterized in that: include: Downlink communication module and edge control unit; The downlink communication module is used to communicate with the downlink device via the power line; The edge control unit is used for uplink communication and management of intelligent devices in the power line communication network, and automatically builds a learning mechanism according to the configured scenario, establishes corresponding conditional algorithms, and processes transactions occurring in the entire network; The edge gateway control system adopts a decentralized implementation method without a central node, so that when the field system is running, even if the gateway is removed, the entire system can still keep working and processing transactions.
2. The edge gateway control system as described in claim 1, characterized in that: The downlink communication module is used to receive downlink data sent by the edge control unit, parse and encapsulate according to the corresponding protocol, send the data to the controlled smart device through the power line, and determine whether to return information of the smart device according to the protocol.
3. The edge gateway control system as described in claim 2, characterized in that: The edge control unit has a data forwarding function, which can store the data collected by the on-site smart devices in the edge gateway for analysis and supply to the application layer, and forward the control instructions and push information generated by the edge gateway in different communication methods; the information of the smart device is formed after sorting out the effective data extraction and processing; the conditional algorithm also includes automatic learning of the algorithm based on the collected data, forming a corresponding conditional execution plan, and automatically calculating the electricity consumption of the entire family to construct a corresponding automation scenario.
4. The edge gateway control system as claimed in claim 1, characterized in that: The edge gateway control system adopts a decentralized power line communication design. The entire power line communication does not need to initiate routing beacon frames through the gateway to maintain all sub-device nodes on site. The devices in the entire system can communicate with each other to ensure that the system can maintain normal operation after leaving the gateway.
5. A power line communication-based edge gateway control method, characterized in that: The following steps are involved: S1. Connect the smart device through the power line, use the APP to connect to the gateway, and initiate the search and add of the smart device; S2. After completing the search and adding of smart devices using the APP, design the corresponding scenarios based on the added devices; S3: The gateway receives the scenario sent down and constructs an automatic matching rule according to the scenario information; S4. According to the matching rules, the data that needs to be stored in the gateway is constructed in the gateway, and the data that needs to be sent to the smart device is stored in the smart device; S5. The gateway and the smart device run the corresponding matching rules and determine whether to perform the corresponding action based on the received information.
6. The edge gateway control method according to claim 5, characterized in that: Step S1 includes: using the power line as a communication carrier, and connecting the device with an integrated power line communication module to the power supply. The smart device contains corresponding software to support the sending and receiving of application data. The APP establishes a connection with the gateway through the local area network and sends search information through the APP. After the smart device supporting power line communication receives the message, it returns the corresponding message.
7. The edge gateway control method according to claim 5, characterized in that: Step S2 includes: when the gateway receives the message returned by the smart device, it processes the information and sends it to the APP. The APP confirms whether to add the smart device based on the corresponding information. After the smart device is added successfully, the scene can be edited according to the desired scene through the operation interface displayed on the APP and sent to the gateway.
8. The edge gateway control method according to claim 5, characterized in that: Step S3 includes: when the gateway receives the scene information sent by the APP, the application in the gateway will parse the scene information, automatically construct matching rules based on the parsed content to report the current scene detection results, and the gateway automatically determines the location where the rule execution is stored based on the rules.
9. The edge gateway control method according to claim 5, characterized in that: Step S4 includes: after the gateway creates the rule, if the gateway determines that the execution of the rule requires multiple conditions to be triggered, the rule is stored in the gateway; if the gateway determines that the execution condition of the rule is single, the judgment and trigger of the rule are stored in the corresponding smart device; after being stored in the corresponding location, the rule starts to run.
10. The edge gateway control method according to claim 5, characterized in that: Step S5 includes: when the rule starts to run, the gateway and the smart device monitor the messages in the system, and the gateway triggers the system to execute corresponding tasks according to the monitored messages.