Method for optimizing computing force pressure of server based on edge computing

By implanting edge computing methods in the Internet of Things gateway to process and cache data, the problems of server computing pressure and data loss are solved, and efficient data analysis and integrity guarantee are achieved.

CN118972252AInactive Publication Date: 2024-11-15CHENGDU LINGXINAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410960185.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional IoT gateways cause excessive server computing pressure when processing large amounts of device data, and offline gateways lead to data acquisition loss.

Method used

Implant edge computing methods in the IoT gateway, receive server instructions, parse and process data, reduce the computing burden on the server, and cache data when the gateway is offline to prevent loss.

Benefits of technology

By analyzing and processing data in the Internet of Things gateway, the computing pressure on the server is reduced, the waste of useless and redundant data storage resources is avoided, and the integrity of important data is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972252A_ABST
    Figure CN118972252A_ABST
Patent Text Reader

Abstract

The invention discloses a method for optimizing the computing force pressure of a server based on edge computing, which comprises the following steps: S1, preprocessing a gateway of the Internet of Things, and implanting an edge computing method into the gateway of the Internet of Things; s2, receiving an issued parameter setting instruction of the server through the Internet of Things gateway, and executing an edge calculation method to obtain to-be-uploaded data; s3, uploading the to-be-uploaded data to the server, and completing server computing power pressure optimization, the method can reduce the computing pressure of the server, and can reduce the storage resource waste caused by useless data and redundant data of the server at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing gateways, and in particular to a method for optimizing server computing pressure based on edge computing. Background Art

[0002] Traditional IoT devices include serial switches, serial servers, data terminal equipment (DTU), and IoT gateways such as LoRa. These devices are connected to monitored sensors or remotely controlled terminal switch devices, and are connected to the server through the Internet or local area network.

[0003] During normal operation, the server sends relevant instructions to the IoT gateway, and the IoT device forwards these instructions to the terminal device without loss. After the terminal device executes the instruction, it feeds back the execution result to the IoT device. After receiving the server instruction, the IoT device performs the relevant actions according to the instruction and sends the reply message to the IoT gateway, which then sends these messages to the server through the network;

[0004] In the above working process, the traditional IoT gateway acts as an intermediate link, providing lossless data forwarding capability for the service network and IoT devices. The message still needs to be calculated and cleaned by the server, including the packet of server control instructions and the parsing of the uplink message of the terminal device. It should be noted that the above working process description is only the working data processing of the server for a terminal device. In general, an IoT ring network contains dozens or hundreds of IoT gateways. According to the different capabilities of each gateway, each gateway is connected to 1 to 256 IoT devices such as smart switches and monitoring instruments. In this case, it means that the server needs to interact with hundreds or thousands of devices at the same time. These devices will bring a lot of computing pressure to the server. At this time, the performance and computing power of the server need to meet certain requirements to stably run the IoT system. While increasing the computing power and performance of the server, the enterprise needs to prepare more funds to improve the performance of the server. At the same time, the above framework still has certain loopholes. When one or more IoT gateways in the ring network are offline, the server loses the control ability of the connected devices under the offline IoT gateway. For important data collection, the server will lose some important data. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for optimizing server computing pressure based on edge computing, which solves the problems of excessive server computing pressure and waste of storage resources caused by useless and redundant data on the server.

[0006] In order to achieve the above-mentioned purpose of the invention, the technical solution adopted by the present invention is: a method for optimizing server computing pressure based on edge computing, comprising:

[0007] S1. Preprocess the IoT gateway and implant the edge computing method into the IoT gateway;

[0008] S2. Receive the parameter setting instructions sent by the server through the IoT gateway, and execute the edge computing method to obtain the data to be uploaded;

[0009] S3. Upload the data to be uploaded to the server to optimize the server computing pressure.

[0010] Further: S1 includes:

[0011] S11, implanting the communication protocol used by the terminal IoT device used by the IoT platform where the IoT gateway is located into the IoT gateway;

[0012] S12. Develop parameter setting interface for IoT gateway through embedded development;

[0013] S13. Implant edge computing methods into IoT gateways through embedded development.

[0014] Further: in S12, the parameter setting interface is used to implement the parameter setting of the server for the Internet of Things, specifically including: the type of instrument protocol collected, the function points collected or the data written, and the actions executed regularly.

[0015] Further: S2 includes:

[0016] S21, receiving parameter setting instructions sent by the server through the Internet of Things gateway;

[0017] S22, parsing the parameter setting instruction through the IoT gateway, generating a data sequence, and storing the data sequence in a permanent storage area of ​​the internal chip;

[0018] S23, scanning the data sequence in the permanent storage area through the IoT gateway to obtain the action that needs to be executed at the latest time point;

[0019] S24, according to the communication protocol implanted in the IoT gateway, the action to be executed at the nearest time point is packaged, a control message is assembled, and after the control message is assembled, the control message is sent to the terminal IoT device at the next execution time point;

[0020] S25, receiving the control message through the terminal IoT device, and sending a relevant status or data reply message to the IoT gateway;

[0021] S26. Receive relevant status or data reply messages through the IoT gateway and execute edge computing methods to obtain processed terminal IoT device data.

[0022] Further: the S26 includes:

[0023] S261. Receiving a relevant status or data reply message through an IoT gateway, and obtaining a message type according to a terminal IoT device that uploads the relevant status or data reply message;

[0024] S262, selecting a corresponding communication protocol according to the message type, and transmitting the relevant status or data reply message to the data analysis pool;

[0025] S263. Clean the relevant status or data reply message through the data analysis pool to obtain cleaned data, and transmit the cleaned data to the data upload buffer area of ​​the Internet of Things gateway as data to be uploaded.

[0026] The beneficial effects of the present invention are:

[0027] 1. After the data is processed by the IoT gateway, the server does not need to parse it again after receiving it, and can use it directly, which greatly reduces the computing pressure of the server;

[0028] 2. Data analysis is performed at the gateway, reducing the waste of storage resources caused by useless and redundant data on the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Flowchart of a method for optimizing server computing pressure based on edge computing.

[0030] Figure 2 Data parsing flow chart for IoT gateway.

[0031] Figure 3 Flowchart for reporting data to the server. DETAILED DESCRIPTION

[0032] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0033] like Figure 1 As shown, in one embodiment of the present invention, a method for optimizing server computing pressure based on edge computing is provided, comprising:

[0034] S1. Preprocess the IoT gateway and implant the edge computing method into the IoT gateway;

[0035] S2. Receive the parameter setting instructions sent by the server through the IoT gateway, and execute the edge computing method to obtain the data to be uploaded;

[0036] S3. Upload the data to be uploaded to the server to optimize the server computing pressure.

[0037] The S1 includes:

[0038] S11, implanting the communication protocol used by the terminal IoT device used by the IoT platform where the IoT gateway is located into the IoT gateway;

[0039] This IoT gateway supports any common protocol. In this embodiment, the communication protocols used include modbus, DLT645-1997 and DLT645-2997;

[0040] S12. Develop parameter setting interface for IoT gateway through embedded development;

[0041] S13. Implant edge computing methods into IoT gateways through embedded development.

[0042] In S12, the parameter setting interface is used to implement the parameter setting of the server for the Internet of Things, specifically including: the type of instrument protocol collected, the function points collected or the data written, and the actions performed regularly.

[0043] The S2 includes:

[0044] S21, receiving parameter setting instructions sent by the server through the Internet of Things gateway;

[0045] S22, parsing the parameter setting instruction through the IoT gateway, generating a data sequence, and storing the data sequence in a permanent storage area of ​​the internal chip;

[0046] The data sequences can be understood as instructions to be executed, and storing these sequences in the permanent storage area of ​​the internal chip can avoid data loss caused by power failure;

[0047] S23, scanning the data sequence in the permanent storage area through the IoT gateway to obtain the action that needs to be executed at the latest time point;

[0048] S24, according to the communication protocol implanted in the IoT gateway, the action to be executed at the nearest time point is packaged, a control message is assembled, and after the control message is assembled, the control message is sent to the terminal IoT device at the next execution time point;

[0049] In a specific embodiment, the IoT gateway scans the data sequence of the permanent storage area at the millisecond level. Since these data sequences contain timed tasks, when the IoT device scans the action to be executed at the nearest time point, it will package the task to be executed according to the previously implanted protocol, assemble the control message, and autonomously send the corresponding message to the terminal monitored IoT device at the next execution time point after the message is composed;

[0050] S25, receiving the control message through the terminal IoT device, and sending a relevant status or data reply message to the IoT gateway;

[0051] S26. Receive relevant status or data reply messages through the IoT gateway, and execute edge computing methods to obtain processed terminal IoT device data;

[0052] According to the specific usage scenario, when the terminal IoT device receives the message sent by the IoT gateway, it will generate a relevant status or data reply message. When the IoT gateway receives the reply message from the terminal device, it will parse the message according to the internally embedded protocol and judge the protocol during parsing. If the protocol does not contain time information, it will add time information.

[0053] like Figure 2 As shown, the S26 includes:

[0054] S261. Receiving a relevant status or data reply message through an IoT gateway, and obtaining a message type according to a terminal IoT device that uploads the relevant status or data reply message;

[0055] S262, selecting a corresponding communication protocol according to the message type, and transmitting the relevant status or data reply message to the data analysis pool;

[0056] S263. Clean the relevant status or data reply message through the data analysis pool to obtain cleaned data, and transmit the cleaned data to the data upload buffer area of ​​the Internet of Things gateway as data to be uploaded.

[0057] When the connection between the IoT gateway and the IoT device remains unchanged, the server only needs to send data to the IoT gateway once. The IoT gateway will then actively complete data collection or control actions, and directly parse the received uplink message from the IoT device into result data and upload it to the server. The server will directly apply it without parsing.

[0058] like Figure 3 As shown, in S3, the data reporting process includes a gateway online part and a gateway offline part;

[0059] The online part of the gateway is completed by an independent thread. When the thread is idle, this thread will regularly scan the data upload buffer at a speed of seconds. When the buffer is scanned to have data to be reported, the data in the buffer will be taken out and reported to the server.

[0060] The offline part of the gateway takes into account the problem that the IoT gateway cannot upload offline data, so a corrective measure is developed. When the IoT gateway is offline, the data upload thread stops running, and another data storage thread starts running. The data storage thread extracts the data in the cache area and stores it in the offline data cache area of ​​the IoT gateway. Once the IoT gateway is back online, the data storage thread rewrites the data in the offline data cache area to the data reporting cache area and stops running. At the same time, the data reporting thread is activated to extract data and report it to the server, providing important protection for the problem of data loss after the IoT gateway is offline.

[0061] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for optimizing server computing pressure based on edge computing, It is characterized in that include: S1. Preprocess the IoT gateway and implant the edge computing method into the IoT gateway; S2. Receive the parameter setting instructions sent by the server through the IoT gateway, and execute the edge computing method to obtain the data to be uploaded; S3. Upload the data to be uploaded to the server to optimize the server computing pressure.

2. The method for optimizing server computing pressure based on edge computing according to claim 1, It is characterized in that The S1 includes: S11, implanting the communication protocol used by the terminal IoT device used by the IoT platform where the IoT gateway is located into the IoT gateway; S12. Develop parameter setting interface for IoT gateway through embedded development; S13. Implant edge computing methods into IoT gateways through embedded development.

3. The method for optimizing server computing pressure based on edge computing according to claim 2, It is characterized in that In S12, the parameter setting interface is used to implement the parameter setting of the server for the Internet of Things, specifically including: the type of instrument protocol collected, the function points collected or the data written, and the actions performed regularly.

4. The method for optimizing server computing pressure based on edge computing according to claim 2, It is characterized in that The S2 includes: S21, receiving parameter setting instructions sent by the server through the Internet of Things gateway; S22, parsing the parameter setting instruction through the IoT gateway, generating a data sequence, and storing the data sequence in a permanent storage area of ​​the internal chip; S23, scanning the data sequence in the permanent storage area through the IoT gateway to obtain the action that needs to be executed at the latest time point; S24, according to the communication protocol implanted in the IoT gateway, the action to be executed at the nearest time point is packaged, a control message is assembled, and after the control message is assembled, the control message is sent to the terminal IoT device at the next execution time point; S25, receiving the control message through the terminal IoT device, and sending a relevant status or data reply message to the IoT gateway; S26. Receive relevant status or data reply messages through the IoT gateway and execute edge computing methods to obtain processed terminal IoT device data.

5. The method for optimizing server computing pressure based on edge computing according to claim 4, It is characterized in that The S26 includes: S261. Receiving a relevant status or data reply message through an IoT gateway, and obtaining a message type according to a terminal IoT device that uploads the relevant status or data reply message; S262, selecting a corresponding communication protocol according to the message type, and transmitting the relevant status or data reply message to the data analysis pool; S263. Clean the relevant status or data reply message through the data analysis pool to obtain cleaned data, and transmit the cleaned data to the data upload buffer area of ​​the Internet of Things gateway as data to be uploaded.