Intelligent socket terminal system based on edge computing

By deploying edge computing nodes and Modbus protocol LAN on smart sockets, the problem of data transmission delay and security of smart sockets is solved, low power consumption and real-time control are achieved, ensuring the normal operation of the timing function in the event of network disconnection.

CN118867770APending Publication Date: 2024-10-29ZHEJIANG WELLSUN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410902352.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-06
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing smart sockets rely on cloud platforms for data processing and storage, resulting in large data transmission delays, difficulty in ensuring data security, and high power consumption.

Method used

Deploy edge computing nodes on smart sockets and build a local area network based on the Modbus protocol to implement data exchange, calculation processing, storage and encryption. It uses the domestic rt-thread real-time operating system and combines with the Bluetooth communication module to realize the timer switch function when the network is disconnected. , reduce network resource consumption.

Benefits of technology

It effectively reduces control delay and power consumption, improves data security and real-time control, and ensures that smart sockets can normally perform scheduled opening and closing operations even when the network is disconnected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118867770A_ABST
    Figure CN118867770A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent socket terminal system based on edge computing, and relates to the technical field of intelligent socket terminal systems. The intelligent socket terminal system based on edge computing comprises a master control mcu, a power supply module, a metering module, a wireless communication module, an infrared communication module, a data storage module and a relay control feedback module, the power supply module is used for converting commercial power into power for an electric appliance and the mcu; and the metering module is used for alternating current acquisition of commercial power parameter data. An'autonomous' strategy is adopted by the intelligent socket terminal cluster, and data acquisition, processing, analysis and storage are realized locally, so that the load of an edge computing node is effectively reduced, edge network equipment only needs to read data processed by terminal equipment, the control real-time performance and the data security of the terminal equipment are ensured, and the service life of the terminal equipment is prolonged. And meanwhile, the terminal equipment does not need to be connected with the edge computing equipment all the time, so that the power consumption and the network load are greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart socket terminal systems, and in particular to a smart socket terminal system based on edge computing. Background Art

[0002] With the development of Internet of Things technology and science and the deepening of intelligent trend, smart home devices have gradually become an important part of people's lives. However, the existing traditional sockets have single functions and cannot achieve remote control and intelligent management. They can no longer meet people's needs for convenience, efficiency and energy saving. Smart sockets came into being. With their intelligent and networked characteristics, they have received widespread attention and favor. Smart sockets can remotely control the socket switch through the Internet, check the socket power usage in real time, and also have other functions.

[0003] However, existing smart sockets mainly rely on cloud platforms for data processing and storage, which has the following problems:

[0004] 1. Large data transmission delay: The smart socket needs to send data to the cloud platform for processing, and then send the processing results back to the socket. This process takes a long time, resulting in large control delays.

[0005] 2. Data security is difficult to guarantee: The data of smart sockets needs to be transmitted through the Internet, which is vulnerable to network attacks and there is also a risk of data leakage.

[0006] 3. High power consumption: Smart sockets need to be connected to the Internet all the time in order to receive and process data in real time, which results in high power consumption. Summary of the invention

[0007] 1. Technical issues to be resolved

[0008] In response to the above problems, this patent provides a design and implementation of a smart socket terminal based on edge computing. By deploying edge computing nodes on the smart socket, the above problems can be effectively solved.

[0009] (II) Technical solution

[0010] To achieve the above objectives, the present invention is implemented through the following technical solutions: an intelligent socket terminal system based on edge computing, including a main control MCU, a power module, a metering module, a wireless communication module, an infrared communication module, a data storage module and a relay control feedback module;

[0011] The power module is used to convert the mains electricity into power for electrical appliances and MCU;

[0012] The metering module is used to collect the mains power parameter data and convert these data into power, electric energy and other data;

[0013] The relay control feedback module is used to control the connection and disconnection of the smart socket and the mains;

[0014] The data storage module uses an EEPROM chip to store event alarm records, electric energy, daily voltage peak, monthly voltage peak and other data, and supports a maximum of 64k data storage;

[0015] The wireless transmission module is used to communicate with the edge computing node;

[0016] The infrared communication module is used for the photoelectric communication between the smart socket terminal and the meter calibration instrument, so as to ensure that the smart socket terminal equipment has a small error in the factory detection of the mains power parameters.

[0017] Preferably, it also includes an edge computing node, which is deployed on the smart socket cluster terminal. The edge computing node should have at least the following functions: wireless communication capability based on the modbus protocol, symmetric encryption and decryption data capability, and the function of reading sub-devices based on modbus communication. This technology adopts the idea of ​​edge computing, and deploys edge computing nodes near the socket cluster. A local area network based on the modbus protocol for data transmission is constructed with the edge computing node as the center. Through the wireless transmission module on the socket cluster terminal, data exchange, data calculation and processing, data encryption, data storage, event log recording, socket self-control and pre-control, wireless data transmission, and software updates and upgrades are realized on the smart socket cluster terminal. Since the smart socket terminal cluster adopts an "autonomous" strategy to realize data collection, processing, analysis and storage locally, this will effectively reduce the load of the edge computing node, so that it no longer needs to pay attention to a large amount of data repeated calculation, analysis, processing and other tasks. The edge network device only needs to read the data that has been processed by the terminal device, thereby ensuring the real-time control and data security of the terminal device.

[0018] Preferably, the edge computing node uses a communication method based on the modbus protocol, namely a "request-query" method, to communicate with the smart socket terminal cluster.

[0019] Preferably, the smart socket terminal system is realized by adopting the domestic rt-thread real-time operating system in the software solution implementation, and anti-islanding detection, mains frequency detection, mains voltage amplitude detection, mains real-time phase detection, self-control and pre-control of detected data, wireless data communication based on modbus, DES encryption and decryption algorithm implementation, historical data recording, event alarm recording, meter calibration, and remote upgrade are realized on the basis of this operating system.

[0020] Preferably, the edge computing node and the smart socket terminal cluster adopt a master-slave working mode, that is, the communication method adopts a "request-response" method, and the edge computing node device communicates with the smart socket cluster terminal device in a broadcast manner. Each terminal device has a communication ID that is uniquely identified in the local area network to ensure that it can correctly respond to the edge computing device after receiving the modbus message. The socket terminal device works in a "non-request, no response" mode. The edge computing node communicates with the smart socket terminal cluster in a communication method based on the modbus protocol, which greatly saves network resources.

[0021] Preferably, the modbus protocol should be modified and customized according to actual functional requirements. In the present smart socket terminal application, it mainly has the functions of reading the real-time current, voltage, electric energy, power, frozen data, and event recording data of the socket terminal device, and finally upgrading the relevant agreements on data transmission.

[0022] Preferably, it also includes a Bluetooth communication module and a local control module, wherein the Bluetooth communication module is connected to the local control module;

[0023] The Bluetooth communication module is used for enabling personnel to make a Bluetooth connection and a data connection through a communication device when a network failure occurs;

[0024] The local control module includes data transmission and reception as well as control functions.

[0025] Preferably, the system also has a timing switch function.

[0026] Preferably, the timing switch function receives control data transmitted via Bluetooth through a local control module to achieve timing opening and closing of the smart socket.

[0027] (III) Beneficial effects

[0028] The present invention provides a smart socket terminal system based on edge computing, which has the following beneficial effects:

[0029] 1. This technology adopts the idea of ​​edge computing. By deploying edge computing nodes near the socket cluster, a local area network based on the modbus protocol for data transmission is built with the edge computing nodes as the center. Through the wireless transmission module on the socket cluster terminal, data exchange, data calculation and processing, data encryption, data storage, event log recording, socket self-control and pre-control, wireless data transmission, and software updates and upgrades are realized on the smart socket cluster terminal. Since the smart socket terminal cluster adopts an "autonomous" strategy to realize data collection, processing, analysis and storage locally, this will effectively reduce the load of the edge computing node, so that it no longer needs to pay attention to a large amount of repeated calculation, analysis, and processing of data. The edge network device only needs to read the data that the terminal device has processed, which ensures the real-time control and data security of the terminal device. At the same time, since the terminal device no longer needs to be connected to the edge computing device all the time, this also greatly reduces power consumption and network load.

[0030] 2. The edge computing node uses a communication method based on the modbus protocol to communicate with the smart socket terminal cluster, which greatly saves network resources.

[0031] 3. Connect the smart socket through a mobile device, select the switch start and close time through the Bluetooth communication module, and receive control information data through the local control module, and then adjust the start and close time of the smart socket locally. After the adjustment is completed, the smart socket can automatically cut off or connect the power of the switch when the network is disconnected, effectively avoiding the situation where personnel cannot control the scheduled start and close function of the smart socket when the network is disconnected. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the relationship between the edge network device and the socket terminal cluster proposed by the present invention;

[0033] Figure 2 This is a schematic diagram of the hardware solution of the smart socket terminal proposed by the present invention;

[0034] Figure 3 This is a schematic diagram of the intelligent socket terminal software implementation scheme proposed by the present invention;

[0035] Figure 4 A three-dimensional schematic diagram of a smart socket of a smart socket terminal system based on edge computing proposed in the present invention. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] Embodiment 1:

[0038] An embodiment of the present invention provides an edge computing-based smart socket terminal system, including a main control MCU, a power module, a metering module, a wireless communication module, an infrared communication module, a data storage module, and a relay control feedback module;

[0039] The power module is used to convert the mains electricity into power for electrical appliances and MCU;

[0040] The metering module is used to collect the mains power parameter data and convert these data into power, electric energy and other data;

[0041] The relay control feedback module is used to control the connection and disconnection of the smart socket and the mains;

[0042] The data storage module uses an EEPROM chip to store event alarm records, electric energy, daily voltage peak, monthly voltage peak and other data, and supports a maximum of 64k data storage;

[0043] The wireless transmission module is used to communicate with the edge computing node;

[0044] The infrared communication module is used for the photoelectric communication between the smart socket terminal and the meter calibration instrument, so as to ensure that the smart socket terminal equipment has a small error in the factory detection of the mains power parameters.

[0045] It also includes an edge computing node, which is deployed in the smart socket cluster terminal. The edge computing node should have at least the following functions: wireless communication capability based on the modbus protocol, symmetric encryption and decryption data capability, and the function of reading sub-device based on modbus communication.

[0046] The edge computing node uses a communication method based on the modbus protocol, namely a "request-query" method, to communicate with the smart socket terminal cluster.

[0047] The implementation of the smart socket terminal system adopts the domestic rt-thread real-time operating system in the implementation of the software solution. On the basis of this operating system, anti-islanding detection, mains frequency detection, mains voltage amplitude detection, mains real-time phase detection, self-control and pre-control implemented by detected data, wireless data communication based on modbus, DES encryption and decryption algorithm implementation, historical data recording, event alarm recording, meter calibration, and remote upgrade are realized.

[0048] Combined with reference Figure 1The edge computing node and the smart socket terminal cluster adopt a master-slave working mode, that is, the communication method adopts a "request-response" method. The edge computing node device communicates with the smart socket cluster terminal device in a broadcasting manner. Each terminal device has a communication ID that is uniquely identified in the local area network to ensure that it can correctly respond to the edge computing device after receiving the modbus message. The socket terminal device follows the "non-request, no response" mode. The edge computing node communicates with the smart socket terminal cluster using a communication method based on the modbus protocol, which greatly saves network resources.

[0049] The modbus protocol should be modified and customized according to actual functional requirements. In this smart socket terminal application, it mainly has the functions of reading the real-time current, voltage, electric energy, power, frozen data, and event recording data of the socket terminal device, and finally upgrading the relevant agreements on data transmission.

[0050] Combine the following Figure 3 The smart socket terminal software implementation scheme shown is Figure 2 The working principle of the smart socket terminal hardware device shown is further described in detail:

[0051] Step 1: Start the program, initialize related hardware resources such as iic, spi, uart, wireless communication, and set related interrupts;

[0052] Step 2: Create a transaction thread, data processing thread, data reporting thread, table calibration thread, anti-islanding thread, event alarm recording thread, and upgrade thread;

[0053] Step 3: The program runs. The acquisition thread is used to read register data (such as voltage, current, active power, and reactive power) from the metering module. After the acquisition thread acquires the data, it notifies the data processing thread to process it and converts the register data into voltage, current, active power, reactive power, and electric energy data according to the metering chip manual.

[0054] Step 4. The data processing thread makes autonomous decisions based on the parameter data preset in advance by the modbus protocol. For example, the overvoltage parameter threshold is preset in the modbus protocol related register. When the voltage is higher than this threshold, the smart socket terminal automatically controls the relay module to open, disconnects from the mains, and notifies the event recording alarm thread of an event and records the overvoltage event. Multiple protection parameters are set in the modbus register at the same time, such as undervoltage parameters, overcurrent parameters, overload parameters, and overtemperature parameters. The data processing thread automatically adjusts the smart socket switch to close according to these parameters, and notifies the event alarm recording thread to record the event. The minute freezing parameter and hour freezing parameter are also set in the modbus register. The number of frozen data items is adjusted automatically according to the capacity of the data storage module. The set millisecond timer freezes the minute data and hour data autonomously according to the freezing parameters.

[0055] Step 5. Since this socket product is mainly used in the field of photovoltaic power generation, due to the instability of photovoltaic power generation, an anti-islanding design is made. The function of the anti-islanding thread is to monitor the connection status of the photovoltaic power generation network and the municipal power generation network in real time. Once the connection between the photovoltaic power generation network and the municipal power grid is detected to be interrupted, the photovoltaic output is immediately disconnected to avoid losses;

[0056] Step 6. The smart socket terminal is also designed with differential incremental OTA technology based on Modbus protocol wireless communication. Upgrading by differential incremental method can effectively speed up the data transmission rate and reduce the amount of data transmission. After receiving the Modbus message, the wireless receiving interrupt parses the Modbus function code. If it is an upgrade function code, it wakes up the upgrade thread, performs some preparatory work before the upgrade, and starts preparing to receive the upgrade data.

[0057] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0058] Example 2

[0059] This embodiment is basically the same as the previous embodiment, except that a smart socket terminal system based on edge computing further includes a Bluetooth communication module and a local control module, and the Bluetooth communication module is connected to the local control module;

[0060] The Bluetooth communication module is used for enabling personnel to make a Bluetooth connection and a data connection through a communication device when a network failure occurs;

[0061] The local control module includes data transmission and reception as well as control functions.

[0062] The system also has a timer switch function.

[0063] The timing switch function receives control data transmitted by Bluetooth through the local control module to realize the timing opening and closing of the smart socket.

[0064] Since ordinary smart sockets usually require uninterrupted networking to work, when the network fails and the network is disconnected, the smart socket will lose some of its functions, such as losing network time control after the network is disconnected, resulting in the inability to control the scheduled opening and closing. When a network failure occurs, personnel can connect to the smart socket through a mobile device, select the switch opening and closing time through the Bluetooth communication module, and receive control information data through the local control module, and then adjust the opening and closing time of the smart socket locally. After the adjustment is completed, the smart socket can automatically complete the power cut-off or connection of the switch when the network is disconnected.

Claims

1. A smart socket terminal system based on edge computing, It is characterized in that include: Main control MCU, power module, metering module, wireless communication module, infrared communication module, data storage module and relay control feedback module; The power module is used to convert the mains electricity into power for electrical appliances and MCU; The metering module is used to collect the mains power parameter data and convert these data into power, electric energy and other data; The relay control feedback module is used to control the connection and disconnection of the smart socket and the mains; The data storage module uses an EEPROM chip to store event alarm records, electric energy, daily voltage peak, monthly voltage peak and other data, and supports a maximum of 64k data storage; The wireless communication module is used to communicate with the edge computing node; The infrared communication module is used for the photoelectric communication between the smart socket terminal and the meter calibration instrument, so as to ensure that the smart socket terminal equipment has a small error in the factory detection of the mains power parameters.

2. According to the smart socket terminal system based on edge computing according to claim 1, Features: It also includes an edge computing node, which is deployed in the smart socket cluster terminal. The edge computing node should have at least the following functions: wireless communication capability based on the modbus protocol, symmetric encryption and decryption data capability, and the function of reading sub-device based on modbus communication.

3. According to the smart socket terminal system based on edge computing according to claim 2, Features: The edge computing node uses a communication method based on the modbus protocol, namely the "request-query" method, to communicate with the smart socket terminal cluster.

4. According to the smart socket terminal system based on edge computing according to claim 1, Features: The implementation of the smart socket terminal system adopts the domestic rt-thread real-time operating system in the implementation of the software solution. On the basis of this operating system, anti-islanding detection, mains frequency detection, mains voltage amplitude detection, mains real-time phase detection, self-control and pre-control implemented by detected data, wireless data communication based on modbus, DES encryption and decryption algorithm implementation, historical data recording, event alarm recording, meter calibration, and remote upgrade are realized.

5. According to the smart socket terminal system based on edge computing according to claim 2, Features: The edge computing node and the smart socket terminal cluster adopt a master-slave working mode, that is, the communication method adopts a "request-response" method. The edge computing node device communicates with the smart socket cluster terminal device in a broadcast manner. Each terminal device has a communication ID that is uniquely identified in the local area network to ensure that it can correctly respond to the edge computing device after receiving the modbus message. The socket terminal device works in a "non-request, no response" mode.

6. According to the smart socket terminal system based on edge computing according to claim 3, Features: The modbus protocol should be modified and customized according to actual functional requirements. In this smart socket terminal application, it mainly has the functions of reading the real-time current, voltage, electric energy, power, frozen data, and event recording data of the socket terminal device, and finally upgrading the relevant agreements on data transmission.

7. According to claim 1, a smart socket terminal system based on edge computing, Features: It also includes a Bluetooth communication module and a local control module, wherein the Bluetooth communication module is connected to the local control module; The Bluetooth communication module is used for enabling personnel to make a Bluetooth connection and a data connection through a communication device when a network failure occurs; The local control module includes data transmission and reception as well as control functions.

8. According to the edge computing-based smart socket terminal system of claim 7, Features: The system also has a timer switch function.

9. According to the edge computing-based smart socket terminal system of claim 8, Features: The timing switch function receives control data transmitted by Bluetooth through the local control module to realize the timing opening and closing of the smart socket.