An algorithm task processing method, device and storage medium for industrial edge gateway

By receiving and verifying the algorithm data packets sent by the server in the industrial edge gateway, and executing update and debugging instructions, the problem of low algorithm update and debugging efficiency in the existing technology is solved, remote updating and debugging are achieved, and efficiency is improved.

CN111443935BActive Publication Date: 2024-09-13CHINA ELECTRONICS CORP 6TH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010294104.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-15
Publication Date
2024-09-13
Estimated Expiration
2040-04-15

AI Technical Summary

Technical Problem

Existing industrial edge gateways are less efficient in algorithm debugging and updating, require on-site design and deployment, and cannot adapt to the needs of different application scenarios.

Method used

Provides an algorithm task processing method for industrial edge gateways. By receiving algorithm data packets sent by the server, it verifies and executes task instructions, including update and debugging instructions, to achieve remote algorithm update and debugging, avoiding the need for on-site design.

Benefits of technology

The efficiency of algorithm update and debugging is improved, so that when the application scenario changes, the gateway algorithm can be updated and debugged remotely, reducing the involvement of on-site implementation personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111443935B
    Figure CN111443935B
Patent Text Reader

Abstract

The present application provides an algorithm task processing method, device and storage medium for an industrial edge gateway, which relates to the technical field of industrial edge gateways. An algorithm data packet sent by a server is received; the algorithm data packet includes: task instructions to be executed, verification information and an algorithm program; judging whether the algorithm data packet meets the preset requirements according to the verification information; when the algorithm data packet meets the preset requirements, executing the task corresponding to the task instruction according to the algorithm program, the task instruction includes: update instruction or debug instruction. In the case of changes in the application scenario, the algorithm on the gateway can be updated and debugged remotely, without the need for implementation personnel to go to the site for design, thereby improving the efficiency of algorithm update and debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial edge gateways, and more specifically, to an algorithm task processing method, device, and storage medium for an industrial edge gateway. Background Art

[0002] Industrial edge gateways are access devices deployed on-site in vertical industries, mainly to achieve network access of industrial field equipment, industrial protocol conversion, data collection and analysis, etc. In the application scenarios of industrial Internet of Things, edge computing has a great demand in predictive maintenance, product quality assurance, personalized production and process optimization.

[0003] At present, a large number of industrial edge gateway products have appeared on the market. When the gateway product needs algorithm debugging or updating, the product implementation personnel need to go to the site to design the edge computing algorithm according to industrial needs, and solidify the algorithm into the edge gateway to finally complete the algorithm deployment. In actual applications, the requirements for edge computing vary in different application scenarios, and different edge computing algorithms are required. The method of updating and debugging the edge gateway algorithm using on-site debugging deployment has low efficiency in algorithm update and debugging. Summary of the invention

[0004] In order to solve the problems existing in the prior art, the present application provides an algorithm task processing method, device and storage medium for an industrial edge gateway.

[0005] To achieve the above purpose, the technical solution adopted in this application is:

[0006] The first aspect of the present application provides an algorithm task processing method for an industrial edge gateway, comprising:

[0007] Receive an algorithm data packet sent by a server; the algorithm data packet includes: task instructions to be executed, verification information and algorithm program;

[0008] Determining whether the algorithm data packet meets preset requirements according to the verification information;

[0009] When the algorithm data packet meets the preset requirements, the task corresponding to the task instruction is executed according to the algorithm program, and the task instruction includes: an update instruction or a debugging instruction.

[0010] Optionally, judging whether the algorithm data packet meets preset requirements according to the verification information includes:

[0011] Comparing the verification information with preset information;

[0012] When the verification information is the same as the preset information, it is determined that the algorithm data packet meets the preset requirement.

[0013] Optionally, after comparing the verification information with preset information, the method further includes:

[0014] When the verification information is different from the preset information, the algorithm data packet is deleted.

[0015] Optionally, the task instruction includes: an update instruction;

[0016] When the algorithm data packet meets the preset requirements, executing the task corresponding to the task instruction according to the algorithm program includes:

[0017] storing the algorithm program in the algorithm storage space, and sending a task completion message to the server;

[0018] The algorithm program is loaded from the algorithm storage space to update the previously stored algorithm program.

[0019] Optionally, the task instruction includes: a debugging instruction;

[0020] When the algorithm data packet meets the preset requirements, executing the task corresponding to the task instruction according to the algorithm program includes:

[0021] Storing the algorithm program in a temporary storage space;

[0022] Loading the algorithm program from the temporary storage space, and monitoring the algorithm program running parameters and running results;

[0023] Send the algorithm program running parameters and running results to the server.

[0024] A second aspect of the present application provides an algorithm task processing device for an industrial edge gateway, comprising: a receiving unit, a judging unit, and an executing unit;

[0025] The receiving unit is used to receive an algorithm data packet sent by the server; the algorithm data packet includes: a task instruction to be executed, verification information and an algorithm program;

[0026] The judging unit is used to judge whether the algorithm data packet meets the preset requirements according to the verification information;

[0027] The execution unit is used to execute the task corresponding to the task instruction according to the algorithm program when the algorithm data packet meets the preset requirements, and the task instruction includes: an update instruction or a debugging instruction.

[0028] Optionally, the judgment unit is used to compare the verification information with preset information;

[0029] When the verification information is the same as the preset information, it is determined that the algorithm data packet meets the preset requirement.

[0030] Optionally, the execution unit is used to delete the algorithm data packet when the verification information is different from the preset information.

[0031] Optionally, the task instruction includes: an update instruction;

[0032] The execution unit is used to store the algorithm program in the algorithm storage space and send a task completion message to the server;

[0033] The algorithm program is loaded from the algorithm storage space to update the previously stored algorithm program.

[0034] Optionally, the task instruction includes: a debugging instruction;

[0035] The execution unit is used to store the algorithm program in a temporary storage space;

[0036] Loading the algorithm program from the temporary storage space, and monitoring the algorithm program running parameters and running results;

[0037] Send the algorithm program running parameters and running results to the server.

[0038] The third aspect of the present application provides an algorithm task processing device for an industrial edge gateway, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the method provided in the first aspect above.

[0039] A fourth aspect of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the first aspect is executed.

[0040] The algorithm task processing method, device and storage medium of the industrial edge gateway provided by the present application receive an algorithm data packet sent by a server; the algorithm data packet includes: task instructions to be executed, verification information and algorithm program; judging whether the algorithm data packet meets the preset requirements according to the verification information; when the algorithm data packet meets the preset requirements, executing the task corresponding to the task instruction according to the algorithm program, the task instruction includes: update instruction or debug instruction. It is realized that when the application scenario changes, the algorithm on the gateway can be updated and debugged remotely, without the need for implementation personnel to go to the site for design, which improves the efficiency of algorithm update and debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic diagram of the structure of an algorithm task processing system for an industrial edge gateway provided in one embodiment of the present application;

[0043] Figure 2 A flowchart of an algorithm task processing method for an industrial edge gateway provided in an embodiment of the present application;

[0044] Figure 3 A flowchart of an algorithm task processing method for an industrial edge gateway provided in another embodiment of the present application;

[0045] Figure 4 A flowchart of an algorithm task processing method for an industrial edge gateway provided in another embodiment of the present application;

[0046] Figure 5 A schematic diagram of the overall flow of an algorithm task processing method for an industrial edge gateway provided in one embodiment of the present application;

[0047] Figure 6 A schematic diagram of the structure of an algorithm task processing device of an industrial edge gateway provided in one embodiment of the present application;

[0048] Figure 7 A schematic diagram of the structure of an algorithm task processing device for an industrial edge gateway provided in one embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0050] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0051] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0052] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0053] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0054] Figure 1 A structural diagram of an algorithm task processing system for an industrial edge gateway provided in an embodiment of the present application, such as Figure 1 As shown, the system includes: a client 11, a server 12 and an industrial edge gateway 13.

[0055] Among them, the client 11 can be an application integrated in the terminal, and the terminal can be a mobile phone, computer, wearable device or other device with processing and display functions. The client can communicate with the server through a communication network such as 4G, 5G or a local area network.

[0056] There can be one or more servers 12, and each server can communicate with each other through the cloud platform built on the server ( Figure 1 In the figure, one server is taken as an example). In addition, a communication connection can be established between the server and the industrial edge gateway through the cloud platform built on the server.

[0057] Gateway is also called network connector and protocol converter. It is usually used to realize network interconnection at the transport layer. It is the most complex network interconnection device and is only used for network interconnection between two networks with different high-level protocols. In the embodiment of the present application, the execution subject is an industrial edge gateway. The industrial edge gateway 13 is different from an ordinary gateway and is mainly used for industrial data collection, industrial protocol parsing and conversion. Generally, the industrial edge gateway 13 is smaller than an ordinary gateway and has the characteristics of miniaturization. The industrial edge gateway provided in the embodiment of the present application belongs to an embedded system device and can run embedded operating systems such as Linux and FreeRTOS.

[0058] Industrial edge gateway products on the market support the operation of edge computing algorithms. Edge computing algorithms are usually part of the main program of the industrial edge gateway. They are solidified into the storage unit of the edge gateway during product implementation and then called and run by the main program.

[0059] Figure 2 A flowchart of an algorithm task processing method for an industrial edge gateway provided in an embodiment of the present application, the execution subject of the method can be Figure 1 Industrial edge gateways in Figure 2 As shown, the method includes:

[0060] S201, receiving an algorithm data packet sent by a server, wherein the algorithm data packet includes: task instructions to be executed, verification information and algorithm program.

[0061] When designing the program of the industrial edge gateway provided in the embodiment of the present application, the edge computing algorithm program is separated from the main program block and designed into an edge computing algorithm storage module. An independent algorithm storage space is allocated for the algorithm program. The main program block can call the edge computing algorithm storage module and communicate with the remote debugging client by calling the communication program module, thereby finally completing the tasks of downloading, verifying, updating and debugging the edge computing algorithm program code.

[0062] It can be understood that in the embodiment of the present application, by storing the edge computing algorithm program code in a dedicated algorithm partition, namely, the edge computing algorithm storage module area, the code management can be facilitated, thereby achieving the purpose of improving the algorithm update efficiency.

[0063] It should be noted that in an embodiment of the present application, the algorithm data packet sent by the industrial edge gateway receiving server includes tasks to be performed, verification information and algorithm programs. Among them, the tasks to be performed may be update tasks or debugging tasks. The verification information is used to detect whether the received algorithm data packet is safe, which can avoid virus attacks on the industrial edge gateway to a certain extent. The algorithm program is specifically the program execution code of the edge computing algorithm, and the corresponding industrial production tasks can be completed using the algorithm program. For example, it can be a boiler alarm prediction task, and if a camera is connected to the industrial edge gateway, it can also complete the defect detection task of industrial products, etc.

[0064] S202: Determine whether the algorithm data packet meets preset requirements based on the verification information.

[0065] The primary task of a security system is to prevent virus intrusion. Today's threats are not just a virus, but often accompanied by multiple threats such as malicious programs and hacker attacks. In order for the industrial edge gateway program to run normally and successfully complete production tasks, the security of the algorithm data package must be verified.

[0066] In an embodiment of the present application, the algorithm program in the algorithm data packet will only be run on the industrial edge gateway after the algorithm data packet received by the industrial edge gateway passes the security verification. If the verification fails, the received algorithm data packet will be deleted locally on the industrial edge gateway.

[0067] S203: When the algorithm data packet meets the preset requirements, the task corresponding to the task instruction is executed according to the algorithm program.

[0068] It should be noted that, when the algorithm data packet passes the security check, the industrial edge gateway will execute the corresponding task by running the algorithm program according to the task instruction in the algorithm data packet. In the embodiment of the present application, the task instruction may be an update instruction or a debug instruction.

[0069] The update instruction is used to instruct the replacement of the algorithm program previously stored in the industrial edge gateway. For example, an industrial edge gateway may be used to perform detection and alarm tasks in an industrial scenario. When the demand changes, the industrial edge gateway may be required to perform image processing tasks. In this case, the algorithm program to be applied is different and needs to be changed. By executing the update instruction, the algorithm program can be updated efficiently, and the monitoring and alarm algorithm program stored on the industrial edge gateway can be replaced with the currently required image processing algorithm program.

[0070] The debugging instruction is used to instruct to debug a part of the program code on the industrial edge gateway. A program code that runs normally locally or in the laboratory may not run normally in the industrial field. Because the industrial field environment will be disturbed by various factors, causing disturbances in the program, and thus failing to achieve industrial production goals. In order to test whether the algorithm program can also achieve industrial production goals in the industrial field, it is generally necessary to conduct an on-site test on the algorithm program before the algorithm program is run on the device. When the on-site test passes, it means that the algorithm program has run successfully. At this time, the algorithm program is run on the industrial equipment, and the algorithm reliability is higher.

[0071] The algorithm task processing method, device and storage medium of the industrial edge gateway provided by the present application, the industrial edge gateway receives the algorithm data packet sent by the server; the algorithm data packet includes: the task instruction to be executed, verification information and algorithm program; according to the verification information, it is judged whether the algorithm data packet meets the preset requirements; when the algorithm data packet meets the preset requirements, the task corresponding to the task instruction is executed according to the algorithm program, and the task instruction includes: update instruction or debugging instruction. It is realized that when the application scenario changes, the algorithm on the gateway can be updated and debugged remotely, and there is no need for implementation personnel to go to the site for design, which improves the efficiency of algorithm update and debugging.

[0072] Optionally, in some embodiments of the present application, the specific implementation process of step S202 includes: comparing the verification information with the preset information; when the verification information is the same as the preset information, determining that the algorithm data packet meets the preset requirements.

[0073] It should be noted that in the embodiment of the present application, a parsing string can be preset in advance on the industrial edge gateway. When the industrial edge gateway receives the algorithm data packet, it first parses the algorithm data packet to obtain the string corresponding to the verification information. The string obtained after parsing is compared with the preset parsing string. If they are the same, it is determined that the algorithm data packet meets the security requirements, and then the verification is passed.

[0074] Optionally, in some embodiments of the present application, the specific implementation process of step S202 also includes: when the verification information is different from the preset information, deleting the algorithm data packet.

[0075] It should be noted that in the embodiment of the present application, when the string obtained after parsing is different from the preset parsing string, it is judged that the algorithm data packet does not meet the security requirements, and the received algorithm data packet is deleted locally through the industrial edge gateway.

[0076] Figure 3 A flowchart of an algorithm task processing method for an industrial edge gateway provided in another embodiment of the present application. In some embodiments of the present application, when the task instruction is an update instruction, the specific implementation process of step S203 may include:

[0077] S2031. Store the algorithm program in the algorithm storage space and send a task completion message to the server.

[0078] It should be noted that in the embodiment of the present application, the storage area is managed in different areas. For example, 2 / 4 of the storage area can be used to store the main program, 1 / 4 can be used to store the algorithm program, and the remaining 1 / 4 can be used to store other data content.

[0079] Specifically, the industrial edge gateway stores the algorithm program in the received algorithm data packet in a dedicated algorithm storage space, and sends a task completion message to the server at the same time. For example, it can be a string of agreed characters, or the text "completed" can be sent.

[0080] S2032: Load the algorithm program from the algorithm storage space to update the previously stored algorithm program.

[0081] When the downloaded program code is to be executed, the industrial edge gateway will load the algorithm program in the algorithm storage space into the edge computing algorithm application module through the main program to update the previously stored algorithm program. Running the updated algorithm program can complete the corresponding production task.

[0082] It should be noted that the industrial edge gateway algorithm program update method provided in the embodiment of the present application can complete the operation update of the algorithm program without restarting the industrial edge gateway, and has high execution efficiency.

[0083] Figure 4 A flowchart of an algorithm task processing method for an industrial edge gateway provided in another embodiment of the present application. In some embodiments of the present application, when the task instruction is a debugging instruction, the specific implementation process of step S203 may include:

[0084] S301, storing the algorithm program in a temporary storage space.

[0085] In an embodiment of the present application, when the task instruction is a debugging instruction, the industrial edge gateway stores the algorithm program that needs to be debugged in a temporary storage space. Specifically, the temporary storage space can be a random access memory space such as RAM.

[0086] S302, loading the algorithm program from the temporary storage space, and monitoring the algorithm program running parameters and running results.

[0087] The industrial edge gateway loads the algorithm program stored in the temporary storage space into the edge computing algorithm application module through the main program, and then runs the algorithm program. The main program of the industrial edge gateway monitors the operating parameters and operating results of the edge computing algorithm program through the data interface between the edge computing algorithm application module.

[0088] S303: Send the algorithm program running parameters and running results to the server.

[0089] Specifically, the industrial edge gateway sends the algorithm program running parameters and running results to the server through the main program, and the server can send the running parameters and running results to the client of the relevant debugger, and the debugger can see the relevant running parameters and running results through the client. When the debugging result does not pass, the debugger can enter the relevant instructions on the client to adjust the algorithm code, and send it to the industrial edge gateway through the server, and then repeat steps S301-S303 until the debugging passes.

[0090] Figure 5 This is a schematic diagram of the overall flow of an algorithm task processing method for an industrial edge gateway provided by another embodiment of the present application. Figure 5 As shown, based on the above embodiment, this embodiment shows the overall process of algorithm update or debugging, which may include:

[0091] S501. The industrial edge computing gateway establishes a communication connection with the server.

[0092] In an embodiment of the present application, a connection can be established between the gateway and the server through an agreed communication protocol. Once the communication between the gateway and the server is established, there is no need to re-establish the connection during subsequent data transmission.

[0093] S502. The main program of the industrial edge computing gateway receives the algorithm data packet.

[0094] In the embodiment of the present application, the algorithm data packet includes: task instructions to be executed, verification information and algorithm program. It should be noted that the task instructions to be executed may be update instructions or debugging instructions.

[0095] S503: The main program receives the edge computing algorithm program and performs a security check.

[0096] When the task instruction is an update instruction, the main program receives the edge computing algorithm program and uses the verification information in the algorithm data packet to perform security verification.

[0097] S504: Check whether it passes.

[0098] When the verification is passed, that is, when the verification information is the same as the preset information on the gateway, the verification is passed, and S506 is executed. If the verification is not passed, S505 is executed.

[0099] S505, delete the algorithm data packet and return the execution process to step S503.

[0100] S506. The main program of the industrial edge computing gateway stores the algorithm program in the algorithm storage space.

[0101] S507: The main program sends an update completion instruction to the server.

[0102] In the embodiment of the present application, the update completion instruction can be a string of agreed characters, or the text "completed" sent.

[0103] S508. The main program loads the algorithm code into the edge computing application module.

[0104] S509, end.

[0105] The gateway main program loads the downloaded algorithm program into the edge computing application module. When the algorithm program needs to be executed, it only needs to run the algorithm program. At this time, the update instruction execution process ends, which is step S509.

[0106] S510. The main program receives the edge computing algorithm program and performs a security check.

[0107] When the task instruction is a debugging instruction, the main program receives the edge computing algorithm program and uses the verification information in the algorithm data packet to perform security verification.

[0108] S511: Check whether it passes.

[0109] If the verification is successful, execute S512. If the verification is not successful, execute S505.

[0110] S512. The main program of the industrial edge computing gateway stores the algorithm program in a temporary storage space.

[0111] It should be noted that in the embodiment of the present application, the temporary storage space may be a random access memory RAM.

[0112] When the algorithm program that needs to be debugged is stored in the temporary storage space, step S513 is executed and the main program loads the algorithm program into the edge computing application module; at this time, the main program calls the edge computing application module and runs the edge computing program, that is, step S514 is executed.

[0113] S515. The main program monitors the operating results and operating parameters of the edge computing application module.

[0114] It should be noted that the main program in the industrial edge gateway monitors the operating parameters and results of the edge computing algorithm program through the data interface between the edge computing algorithm application module.

[0115] S516: Transmit the operation results and operation parameters to the server.

[0116] It should be noted that the industrial edge gateway sends the algorithm program operating parameters and operating results to the server through the main program. The server can send the operating parameters and operating results to the client, and the debugger can see the relevant operating parameters and operating results through the client. According to the relevant operating parameters and operating results, it is determined whether to continue debugging, that is, step S517. When it is necessary to continue debugging, repeat steps S512-S517 until the debugging is passed. When the debugging is passed, the debugging process ends and the process S509 is executed.

[0117] An embodiment of the present application provides an algorithm task processing device for an industrial edge gateway, which is used to execute the algorithm task processing method of the aforementioned industrial edge gateway. Figure 6 A schematic diagram of the structure of an algorithm task processing device of an industrial edge gateway provided in an embodiment of the present application, such as Figure 6 As shown, the algorithm task processing device of the industrial edge gateway includes: a receiving unit 601, a judging unit 602 and an executing unit 603, wherein:

[0118] The receiving unit 601 is used to receive an algorithm data packet sent by a server; the algorithm data packet includes: task instructions to be executed, verification information and algorithm program.

[0119] The judging unit 602 is used to judge whether the algorithm data packet meets the preset requirements according to the verification information.

[0120] The execution unit 603 is used to execute the task corresponding to the task instruction according to the algorithm program when the algorithm data packet meets the preset requirements. The task instruction includes: an update instruction or a debugging instruction.

[0121] Optionally, the judgment unit 602 is used to compare the verification information with preset information; when the verification information is the same as the preset information, it is determined that the algorithm data packet meets the preset requirements.

[0122] Optionally, the execution unit 603 is configured to delete the algorithm data packet when the verification information is different from the preset information.

[0123] Optionally, the execution unit 603 is used to store the algorithm program in the algorithm storage space and send a task completion message to the server; load the algorithm program from the algorithm storage space and update the previously stored algorithm program.

[0124] Optionally, the execution unit 603 is used to store the algorithm program in a temporary storage space, load the algorithm program from the temporary storage space, and monitor the algorithm program running parameters and running results; and send the algorithm program running parameters and running results to the server.

[0125] Figure 7 The schematic diagram of the structure of an algorithm task processing device of an industrial edge gateway provided in the embodiment of the present application corresponds to an algorithm task processing method of an industrial edge gateway; the algorithm task processing device of the industrial edge gateway may include: a processor 710, a storage medium 720 and a bus 730, the storage medium 720 stores machine-readable instructions executable by the processor 710, when the electronic device is running, the processor 710 communicates with the storage medium 720 through the bus 730, and the processor 710 executes the machine-readable instructions to execute the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0126] An embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above method is executed.

[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An algorithm task processing method for an industrial edge gateway, characterized in that: include: Receive the algorithm data packet sent by the server; The algorithm data packet includes: task instructions to be executed, verification information and algorithm program; the algorithm program is the program execution code of the edge computing algorithm, and the algorithm program is used to complete the corresponding industrial production task; Determining whether the algorithm data packet meets preset security requirements according to the verification information; When the algorithm data packet meets the preset security requirements, the task corresponding to the task instruction is executed according to the algorithm program, and the task instruction includes: an update instruction or a debug instruction; the update instruction is used to instruct to replace the algorithm program previously stored in the industrial edge gateway, and the debug instruction is used to instruct to debug a part of the program code on the industrial edge gateway; Wherein, if the task instruction is the debugging instruction, when the algorithm data packet meets the preset requirements, executing the task corresponding to the task instruction according to the algorithm program includes: Storing the algorithm program in a temporary storage space; Loading the algorithm program from the temporary storage space, and monitoring the algorithm program running parameters and running results; Transmitting the operation result and the operation parameter to the server, so that the server sends the operation parameter and the operation result to the client of the debugger, and the debugger determines whether to continue debugging; If the task instruction includes: an update instruction, when the algorithm data packet meets the preset requirements, executing the task corresponding to the task instruction according to the algorithm program includes: storing the algorithm program in the algorithm storage space, and sending a task completion message to the server; The algorithm program is loaded from the algorithm storage space to update the previously stored algorithm program.

2. The method according to claim 1, characterized in that The determining, according to the verification information, whether the algorithm data packet meets the preset requirements includes: Comparing the verification information with preset information; When the verification information is the same as the preset information, it is determined that the algorithm data packet meets the preset requirement.

3. The method according to claim 2, characterized in that After comparing the verification information with the preset information, the method further includes: When the verification information is different from the preset information, the algorithm data packet is deleted.

4. An algorithm task processing device for an industrial edge gateway, characterized in that: include: A receiving unit, a judging unit and an executing unit; The receiving unit is used to receive the algorithm data packet sent by the server; The algorithm data packet includes: task instructions to be executed, verification information and algorithm program; the algorithm program is the program execution code of the edge computing algorithm, and the algorithm program is used to complete the corresponding industrial production task; The judging unit is used to judge whether the algorithm data packet meets the preset security requirements according to the verification information; The execution unit is used to execute the task corresponding to the task instruction according to the algorithm program when the algorithm data packet meets the preset security requirement, and the task instruction includes: an update instruction or a debug instruction; the update instruction is used to instruct to replace the algorithm program previously stored in the industrial edge gateway, and the debug instruction is used to instruct to debug a part of the program code on the industrial edge gateway; Wherein, if the task instruction is the debugging instruction, the execution unit is specifically used to store the algorithm program in a temporary storage space; load the algorithm program from the temporary storage space, and monitor the running parameters and running results of the algorithm program; transmit the running results and the running parameters to the server, so that the server sends the running parameters and the running results to the client of the debugger, and the debugger determines whether to continue debugging; If the task instruction includes: an update instruction, the execution unit is specifically used to: store the algorithm program in the algorithm storage space and send a task completion message to the server; load the algorithm program from the algorithm storage space and update the previously stored algorithm program.

5. The device according to claim 4, characterized in that The judgment unit is used to compare the verification information with the preset information; when the verification information is the same as the preset information, it is determined that the algorithm data packet meets the preset requirements.

6. The device according to claim 5, characterized in that The execution unit is further configured to delete the algorithm data packet when the verification information is different from the preset information.

7. An algorithm task processing device for an industrial edge gateway, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method as described in any one of claims 1 to 3.

8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are executed.