Device Access Method, Device, Equipment and Storage Medium of Edge Computing Host

The method of generating executable files through cloud programming solves the problem of edge computing hosts accessing diverse devices in complex industrial IoT scenarios, and realizes the flexibility and scalability of device access.

CN115033301BActive Publication Date: 2025-07-22KONGTROLINK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210536890.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2025-07-22
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

In complex and changeable industrial Internet of Things scenarios, edge computing hosts have difficulty effectively accessing diverse sensors and smart devices. The existing methods rely on local configuration libraries, and lack scalability and flexibility, making it difficult to adapt to scene changes.

Method used

By deploying a cloud server for the programming platform, the device protocol of the device to be accessed is pre-encapsulated in cloud programming, independent files are generated, and executable files are generated by the cloud server during access, and the edge computing host loads the file to complete the device access.

Benefits of technology

It realizes that edge computing hosts flexibly adapt to the access of access devices in complex and changing industrial Internet of Things scenarios, improving the scalability and adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033301B_ABST
    Figure CN115033301B_ABST
Patent Text Reader

Abstract

This application belongs to the field of the Internet of Things, and specifically relates to a device access method, device, equipment, and storage medium for an edge computing host. In this application, when receiving device information of a device to be accessed, an executable file is generated according to the device information. The device information is sent by the edge computing host when receiving a device access request, and the device access request carries the device information. The executable file is used for device access; the executable file is sent to the edge computing host so that the edge computing host loads the executable file to complete the access of the device to be accessed. This application can realize the dynamic access of the device to be accessed to the edge computing host to adapt to the complex and changeable scenarios of the industrial Internet of Things.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things, and in particular to a method, device, equipment and storage medium for device access of an edge computing host. Background Art

[0002] Edge computing is a decentralized computing architecture that moves the computing of application programs, data, and services from the network center node to the edge nodes logically on the network to reduce latency and improve efficiency. In complex and changeable industrial Internet of Things scenarios, edge computing hosts need to access diverse sensors and intelligent devices. However, intelligent devices come from different manufacturers, with different protocols, signal points, and interfaces. Moreover, the requirements for intelligent device signal points vary in each scenario. Therefore, it is difficult to connect different intelligent devices to the edge computing host.

[0003] Currently, to enable different intelligent devices to access the edge computing host, it is usually to load the script file or configuration file already generated by the intelligent device through configuration to obtain the data of the intelligent device. However, this method relies on the locally stored configuration library or rule library, and the configuration library or rule library has poor scalability and flexibility. For the complex and changeable scenarios of the industrial Internet of Things, the adaptability of this method is weak. Summary of the Invention

[0004] This application provides a method, device, equipment and storage medium for device access of an edge computing host to enable the device to be accessed to dynamically access the edge computing host to adapt to the complex and changeable scenarios of the industrial Internet of Things.

[0005] In a first aspect, this application provides a method for device access of an edge computing host, which is applied to a cloud server deployed with a programming platform. The method for device access of the edge computing host includes: when receiving the device information of the device to be accessed, generating an executable file according to the device information. The device information is sent by the edge computing host when receiving a device access request, and the device access request carries the device information. The executable file is used for device access; sending the executable file to the edge computing host so that the edge computing host loads the executable file to complete the access of the device to be accessed.

[0006] In a possible implementation manner, generating an executable file according to the device information includes: loading an independent file corresponding to the device to be accessed according to the device information. The independent file is obtained by encapsulating the device communication protocol of the device to be accessed through cloud programming; converting the independent file into a standard language file according to the target module included in the independent file, where the target module is used to implement the functions in the device communication protocol; calling the compiler corresponding to the edge computing host to compile the standard language file to generate an executable file.

[0007] In a possible implementation, according to the target module included in the independent file, converting the independent file into a standard language file includes: obtaining the data structure of the independent file; in the data structure, determining the sub-data structure corresponding to the primitive included in the target module; according to the order of the primitives in the data structure, determining the function call relationship corresponding to the sub-data structure; reading the input value and output value of the primitive; and filling the input value and output value according to the function call relationship to obtain the standard language file.

[0008] In a possible implementation, it further includes: if the function corresponding to the sub-data structure is an intrinsic function, calling the function corresponding to the sub-data structure in pointer form; if the function corresponding to the sub-data structure is a custom function, creating a custom sub-data structure for the custom function and calling the function corresponding to the custom sub-data structure in pointer form.

[0009] In a second aspect, the present application provides a device access method for an edge computing host, which is applied to the edge computing host. The device access method for the edge computing host includes: when receiving a device access request, sending the device information of the device to be accessed to the cloud server to obtain an executable file from the cloud server. The device information is carried in the device access request, and the executable file is used for device access; loading the executable file to complete the access of the device to be accessed.

[0010] In a third aspect, the present application provides a device access device for an edge computing host, which is applied to a cloud server deployed with a programming platform. The device access device for the edge computing host includes: a generation module, configured to generate an executable file according to the device information when receiving the device information of the device to be accessed. The device information is sent by the edge computing host when receiving a device access request, and the device information is carried in the device access request. The executable file is used for device access; a sending module, configured to send the executable file to the edge computing host so that the edge computing host loads the executable file to complete the access of the device to be accessed.

[0011] In a fourth aspect, the present application provides a device access device for an edge computing host, which is applied to the edge computing host. The device access device for the edge computing host includes: a sending module, configured to send the device information of the device to be accessed to the cloud server when receiving a device access request to obtain an executable file from the cloud server. The device information is carried in the device access request, and the executable file is used for device access; an access module, configured to load the executable file to complete the access of the device to be accessed.

[0012] Fifth aspect, the present application provides a server, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the device access method of the edge computing host in the first aspect.

[0013] Sixth aspect, the present application provides a computing device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the device access method of the edge computing host in the second aspect.

[0014] Seventh aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the device access method of the edge computing host as described in the first aspect or the second aspect.

[0015] Eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the device access method of the edge computing host as described in the first aspect or the second aspect.

[0016] For the device access method, device, equipment and storage medium of the edge computing host provided by the present application, the cloud server deployed with a programming platform pre-packages the device protocol of the device to be accessed through cloud programming to obtain an independent file; subsequently, when the device to be accessed is to access the edge computing host, the edge computing host uploads the device information of the device to be accessed to the cloud server, and the cloud server loads the independent file of the device to be accessed and generates an executable file for device access through the independent file. After receiving the executable file, the edge computing host can load the executable file to complete the access of the device to be accessed. Since the executable file is dynamically generated according to the independent file of the device to be accessed and can be changed according to actual needs, it can adapt to the complex and changeable scenarios of the industrial Internet of Things when implementing the access of the device to be accessed to the edge computing host. Description of the Drawings

[0017] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present application, and are used together with the description to explain the principles of the present application.

[0018] Figure 1 It is a schematic diagram of a scenario of the device access method of the edge computing host provided by an embodiment of the present application;

[0019] Figure 2 It is a flowchart of the first embodiment of the device access method of the edge computing host provided by an embodiment of the present application;

[0020] Figure 3 Flowchart of Embodiment 2 of the device access method for the edge computing host provided by the embodiments of the present application;

[0021] Figure 4 Structural schematic diagram of Embodiment 1 of the device access device for the edge computing host provided by the embodiments of the present application;

[0022] Figure 5 Structural schematic diagram of Embodiment 2 of the device access device for the edge computing host provided by the embodiments of the present application;

[0023] Figure 6 Structural schematic diagram of a server provided by the embodiments of the present application;

[0024] Figure 7 Structural schematic diagram of a computing device provided by the embodiments of the present application.

[0025] Through the above-mentioned drawings, the specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. Detailed implementation manners

[0026] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0027] In the prior art provided in the background art, there are at least the following technical problems:

[0028] In complex and ever-changing industrial Internet of Things scenarios, edge computing hosts need to access diverse sensors and intelligent devices. The intelligent devices come from different manufacturers, with different protocols, signal points, and interfaces. Moreover, the requirements for intelligent device signal points are different in each scenario. Therefore, it is very difficult to collect signals and perform logical processing using a unified template.

[0029] One way to solve the above problems is to load the script files or configuration files already generated by the intelligent device in a configuration manner to obtain the data of the intelligent device. However, this method requires relying on the locally stored configuration library or rule library, and the scalability and flexibility of the configuration library or rule library are not strong. For the complex and changeable scenarios of the industrial Internet of Things, when the scenario changes, it is necessary to rewrite the script file or configuration file. Therefore, the adaptability of this method is weak.

[0030] Another method is to parse the device communication protocol of the device to be accessed through script loading. However, there are many configuration libraries or rule libraries stored locally in the edge computing host. When actually accessing the device to be accessed, it may only be necessary to access the device communication protocols corresponding to some of the devices to be accessed. Therefore, it is necessary to select the corresponding protocols from the massive configuration libraries or rule libraries stored locally in the edge computing host, which consumes a large amount of system resources of the edge computing host.

[0031] In view of the above problems, the present application proposes a device access method for an edge computing host. The cloud server deployed with a programming platform encapsulates the device protocol of the device to be accessed in advance through cloud programming to obtain an independent file; subsequently, when the device to be accessed is to access the edge computing host, the cloud server loads the independent file of the device to be accessed and generates an executable file for device access through the independent file, so that the edge computing host can complete the access of the device to be accessed through the executable file. Since the executable file can be changed according to actual needs, it can adapt to the complex and changeable scenarios of the industrial Internet of Things.

[0032] In one embodiment, the device access method of the edge computing host can be applied in an application scenario. Figure 1 As a schematic diagram of a scenario of the device access method for the edge computing host provided by the embodiment of the present application, as Figure 1 shown, the device access system of the edge computing host may include a cloud server deployed with a programming platform, an edge computing host, and devices to be accessed (there may be multiple devices to be accessed).

[0033] In the above scenario, when a device to be connected wants to connect to the edge computing host, the edge computing host will upload the device information of the device to be connected to the information acquisition module of the cloud server; the cloud server loads the independent file of the device to be connected according to the device information, reads the elements inside the independent file, including the data frame transceiver module, the logical relationship module, and the computing module, and converts the independent file into a standard language file through the conversion system of the cloud server, then calls the language compiler of the edge computing host to compile the standard language file to generate an executable file, and sends the executable file to the edge computing host. The edge computing host loads the executable file through the loader, thus completing the connection of the device to be connected and realizing the data interaction between the edge computing host and the device to be connected.

[0034] In the above scenario, when generating an executable file from the independent file of the device to be connected, the executable file can be dynamically generated according to the changes of the device to be connected. Therefore, when the industrial scenario changes, the executable file can also change according to the actual needs. Therefore, it can meet the complex and changeable scenarios of the industrial Internet of Things.

[0035] Combined with the above scenario, the technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail with specific embodiments below. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0036] An embodiment of the present application provides a method for device access of an edge computing host, which is applied to a cloud server deployed with a programming platform. Figure 2 It is a flowchart of the first embodiment of the method for device access of the edge computing host provided by the embodiment of the present application, as Figure 2 shown. The method includes the following steps:

[0037] S201: When receiving the device information of the device to be connected, generate an executable file according to the device information.

[0038] In this step, the device information is sent by the edge computing host when receiving a device access request. The device access request carries the device information. The executable file is used for device access, and the device to be connected can also be called a heterogeneous device.

[0039] In the above solution, when a device to be connected needs to connect to an edge computing host, it sends a device connection request to the edge computing host. When the edge computing host receives the device connection request, it uploads the device information of the device to be connected carried in the device connection request to the cloud server. Native files (i.e., independent files) of various devices to be connected are pre-stored in the cloud server. When receiving the device information of the device to be connected, the cloud server generates an executable file for device connection according to the native file corresponding to the device to be connected.

[0040] S202: Send the executable file to the edge computing host so that the edge computing host loads the executable file to complete the connection of the device to be connected.

[0041] In this step, after the cloud server generates the executable file for device connection, it can send the executable file to the edge computing host. After receiving the executable file, the edge computing host loads the executable file by running the loader, and then can complete the connection of the device to be connected, thereby realizing data interaction between the edge computing host and the device to be connected.

[0042] For the device connection method of the edge computing host provided in this embodiment, after the cloud server deployed with the programming platform receives the device information of the device to be connected, it loads the independent file of the device to be connected and generates an executable file for device connection through this independent file. After the edge computing host receives this executable file, it can load this executable file to complete the connection of the device to be connected. Since the executable file is dynamically generated according to the independent file of the device to be connected and can be changed according to actual needs, in the case of realizing the connection of the device to be connected to the edge computing host, it can adapt to the complex and changeable scenarios of the industrial Internet of Things.

[0043] In one embodiment, generating the executable file according to the device information includes: loading the independent file corresponding to the device to be connected according to the device information, where the independent file is obtained by encapsulating the device communication protocol of the device to be connected through cloud programming; converting the independent file into a standard language file according to the target module included in the independent file, where the target module is used to implement the functions in the device communication protocol; and calling the compiler corresponding to the edge computing host to compile the standard language file to generate the executable file.

[0044] In this solution, the cloud server can encapsulate the device communication protocols of multiple devices to be connected in advance through cloud programming to obtain an independent file, which can be an XML file. After the cloud server receives the device information of the device to be connected sent by the edge computing host, it can load the independent file corresponding to the device to be connected and read the elements inside the independent file. These elements are the target modules included in the independent file, which can include a data frame transceiver module, a logical relationship module, and a calculation module. Then, according to the target modules, the independent file is converted into a standard language file, such as a C language file.

[0045] In the above solution, the data frame transceiver module can be used to obtain the device data of the devices to be connected in the industrial field, such as various sensors and intelligent devices. The logical relationship module can be used to perform logical relationship processing on the device data obtained by the data frame transceiver module. For example, when a certain item of device data becomes high and an alarm is required, there is a logical relationship between this item of device data and the alarm data; when this item of device data decreases and the alarm needs to be restored, there is a logical relationship between this item of device data and the alarm restoration data. The calculation module can be used to calculate the device data obtained by the data frame transceiver module, such as the addition, subtraction, multiplication, and division of the values of the device data.

[0046] In the above solution, the target modules in the independent file can be mature models such as self-defined encapsulated function bodies, security authentication modules, and intelligent control modules.

[0047] In the above solution, since the target modules can be used to implement the functions in the device communication protocol, therefore, according to the target modules included in the independent file, the independent file can be dynamically converted into a standard language file. By compiling this standard language file, an executable file can be dynamically generated, so that in the case of realizing the connection of the device to be connected to the edge computing host, it can adapt to the complex and changeable scenarios of the industrial Internet of Things.

[0048] In one embodiment, converting the independent file into a standard language file according to the target modules included in the independent file includes: obtaining the data structure of the independent file; in the data structure, determining the sub-data structure corresponding to the graphic elements included in the target modules; according to the order of the graphic elements in the data structure, determining the function call relationship corresponding to the sub-data structure; reading the input values and output values of the graphic elements; and filling the input values and output values according to the function call relationship to obtain the standard language file.

[0049] In this solution, the target module includes multiple modules, and each module includes graphic elements. When converting an independent file into a standard language file according to the target module, the data structure of the entire independent file can be obtained first; then, read the graphic element dependency relationships among the graphic elements included in each module in the target module to determine the function call relationships and function dependency relationships of the sub-data structures corresponding to the graphic elements; then read each module in the target module in sequence to determine the call relationships among each module; then read the input values and output values of the graphic elements, as well as the input values and output values of each module; fill in the input values and output values of the graphic elements to obtain the standard language files corresponding to each module in the target module; finally, fill in the input values and output values of each module to obtain the complete standard language file.

[0050] In the above solution, since the target module can be used to implement the functions in the device communication protocol, therefore, according to the target module, it is possible to dynamically convert an independent file into a standard language file. By compiling this standard language file, an executable file can be dynamically generated, so that in the case of implementing the access of the device to be connected to the edge computing host, it can adapt to the complex and changeable scenarios of the industrial Internet of Things.

[0051] In one embodiment, it further includes: if the function corresponding to the sub-data structure is an intrinsic function, then call the function corresponding to the sub-data structure in the form of a pointer; if the function corresponding to the sub-data structure is a custom function, then create a custom sub-data structure for the custom function and call the function corresponding to the custom sub-data structure in the form of a pointer.

[0052] In this solution, the sub-data structure of the graphic element is obtained by splitting the data structure of the independent file. If the function corresponding to the sub-data structure of the graphic element is an intrinsic function in the standard language, for example, an intrinsic function in C language, then the function corresponding to the sub-data structure of the graphic element can be directly called in the form of a pointer; if the function corresponding to the sub-data structure of the graphic element is not an intrinsic function in the standard language but a custom function, then a custom sub-data structure needs to be created for this custom function, and then the function corresponding to the custom sub-data structure will be called in the form of a pointer.

[0053] In the above solution, if the function corresponding to the sub-data structure is an intrinsic function, directly calling the intrinsic function in the form of a pointer can improve the efficiency of converting the independent file into a standard language file; if the function corresponding to the sub-data structure is a custom function, since the custom function cannot be matched in the standard language, in order to call this function, a custom sub-data structure can be created for the custom function by itself, thereby increasing the success rate of converting the independent file into a standard language file.

[0054] An embodiment of the present application provides a method for device access of an edge computing host, which is applied to an edge computing host.Figure 3 This is the flowchart of the second embodiment of the device access method for the edge computing host provided by the embodiment of the present application. As Figure 3 shown, the method includes the following steps:

[0055] S301: When receiving a device access request, send the device information of the device to be accessed to the cloud server to obtain an executable file from the cloud server.

[0056] In this step, the device information is carried in the device access request, and the executable file is used for device access.

[0057] In the above solution, when a device to be accessed needs to access the edge computing host, it will send a device access request to the edge computing host. When the edge computing host receives the device access request, it will upload the device information of the device to be accessed carried in the device access request to the cloud server. Various independent files of devices to be accessed are pre-stored in the cloud server. When receiving the device information of the device to be accessed, the cloud server will generate an executable file for device access according to the corresponding independent file of the device to be accessed; after generating the executable file for device access, the cloud server can send the executable file to the edge computing host.

[0058] S302: Load the executable file to complete the access of the device to be accessed.

[0059] In this step, after receiving the executable file, the edge computing host loads the executable file by running a loader, and then can complete the access of the device to be accessed, thereby realizing data interaction between the edge computing host and the device to be accessed.

[0060] In the above solution, when there are multiple devices to be accessed, the edge computing host can receive multiple executable files sent by the cloud server. At this time, the edge computing host can sequentially load the corresponding executable files according to the number order of the multiple devices to be accessed to realize the access of multiple devices to be accessed; the edge computing host can also perform parallel loading on the multiple executable files of the multiple devices to be accessed to realize the access of multiple devices to be accessed.

[0061] For the device access method of the edge computing host provided in this embodiment, after the cloud server deployed with the programming platform receives the device information of the device to be accessed, it loads the independent file of the device to be accessed and generates an executable file for device access through this independent file. After the edge computing host receives this executable file, it can load this executable file to complete the access of the device to be accessed. Since the executable file is dynamically generated according to the independent file of the device to be accessed, the executable file to be executed can be changed according to actual needs. Therefore, when implementing the access of the device to be accessed to the edge computing host, it can adapt to the complex and changeable scenarios of the industrial Internet of Things.

[0062] Generally speaking, the technical solution provided in this application is a technical solution that can not only improve the ability of the edge computing host to adapt to complex and changeable industrial scenarios, but also improve the scalability and flexibility of the access of the device to be accessed to the edge computing host.

[0063] This application embodiment also provides a device access device for an edge computing host, which is applied to a cloud server deployed with a programming platform. Figure 4 It is a schematic structural diagram of the first embodiment of the device access device for the edge computing host provided in this application embodiment. As Figure 4 shown, the device access device 400 of this edge computing host includes:

[0064] A generation module 401, configured to generate an executable file according to the device information when receiving the device information of the device to be accessed. The device information is sent by the edge computing host when receiving a device access request, and the device access request carries the device information. The executable file is used for device access;

[0065] A sending module 402, configured to send the executable file to the edge computing host, so that the edge computing host loads the executable file to complete the access of the device to be accessed.

[0066] Optionally, when the generation module 401 generates an executable file according to the device information, it is specifically configured to: load the independent file corresponding to the device to be accessed according to the device information. The independent file is obtained by encapsulating the device communication protocol of the device to be accessed through cloud programming; convert the independent file into a standard language file according to the target module included in the independent file, and the target module is used to implement the functions in the device communication protocol; call the compiler corresponding to the edge computing host to compile the standard language file to generate an executable file.

[0067] Optionally, when the generation module 401 converts the independent file into a standard language file according to the target module included in the independent file, it is specifically used for: obtaining the data structure of the independent file; determining, in the data structure, the sub-data structure corresponding to the primitive included in the target module; determining the function call relationship corresponding to the sub-data structure according to the order of the primitives in the data structure; reading the input value and output value of the primitive; and filling the input value and output value according to the function call relationship to obtain the standard language file.

[0068] Optionally, the generation module 401 is further specifically used for: if the function corresponding to the sub-data structure is an intrinsic function, calling the function corresponding to the sub-data structure in the form of a pointer; if the function corresponding to the sub-data structure is a custom function, creating a custom sub-data structure for the custom function, and calling the function corresponding to the custom sub-data structure in the form of a pointer.

[0069] The device access device of the edge computing host provided in this embodiment is used to execute the technical solution of the device access method for the edge computing host applied to the cloud server deployed with the programming platform in the foregoing method embodiment. Its implementation principle and technical effect are similar and will not be elaborated here.

[0070] The embodiment of the present application further provides a device access device for an edge computing host, which is applied to the edge computing host. Figure 5 FIG. is a schematic structural diagram of Embodiment 2 of the device access device for an edge computing host provided by the embodiment of the present application. As Figure 5 shown, the device access device 500 of the edge computing host includes:

[0071] A sending module 501, configured to send the device information of the device to be accessed to the cloud server when receiving a device access request, so as to obtain an executable file from the cloud server. The device access request carries the device information, and the executable file is used for device access;

[0072] An access module 502, configured to load the executable file to complete the access of the device to be accessed.

[0073] The device access device of the edge computing host provided in this embodiment is used to execute the technical solution of the device access method for the edge computing host applied to the edge computing host in the foregoing method embodiment. Its implementation principle and technical effect are similar and will not be elaborated here.

[0074] The embodiment of the present application further provides a server. Figure 6 FIG. is a schematic structural diagram of a server provided by the embodiment of the present application. As Figure 6As shown, the server 600 may include a processing component 601, which further includes one or more processors, and memory resources represented by a memory 602 for storing computer-executable instructions executable by the processing component 601, such as application programs. The memory may be communicatively connected to the processing component 601. The application programs stored in the memory 602 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 601 is configured to execute the computer-executable instructions to implement the above technical solution of the device access method for the edge computing host of the cloud server deployed with the programming platform.

[0075] The server 600 may further include a power supply component 603 configured to perform power management of the server 600, a wired or wireless network interface 604 configured to connect the server 600 to a network, and an input / output (I / O) interface 605. The server 600 may operate based on an operating system stored in the memory 602, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSD TM or the like.

[0076] The embodiment of the present application further provides a computing device. Figure 7 The following is a schematic structural diagram of a computing device provided by an embodiment of the present application. As Figure 7 shown, the computing device 700 includes:

[0077] a processor 711, a memory 712 communicatively connected to the processor 711, and an interaction interface 713;

[0078] The memory 712 is used to store computer-executable instructions executable by the processor 711;

[0079] Among them, the processor 711 is configured to implement the above technical solution of the device access method for the edge computing host by executing the computer-executable instructions stored in the memory 712.

[0080] In the above computing device 700, the memory 712, the processor 711, and the interaction interface 713 are directly or indirectly electrically connected to achieve data transmission or interaction. For example, these components may be electrically connected to each other through one or more communication buses or signal lines, such as being connected through a bus. The memory 712 stores computer-executable instructions for implementing the device access method for the edge computing host, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor 711 executes various functional applications and data processing by running the software programs and modules stored in the memory 712.

[0081] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc. Among them, the memory is used to store programs, and after receiving an execution instruction, the processor executes the program. Further, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide a running environment for other software components.

[0082] The processor can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0083] The embodiments of the present application also provide a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by the processor, they are used to implement the technical solution of the device access method of the edge computing host provided in the foregoing method embodiments.

[0084] The embodiments of the present application also provide a computer program product, including a computer program. When the computer program is executed by the processor, it is used to implement the technical solution of the device access method of the edge computing host provided in the foregoing method embodiments.

[0085] Other embodiments of the present application will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only illustrative, and the true scope and spirit of the present application are pointed out by the claims of the present application.

[0086] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A device access method for an edge computing host, characterized in that, Applied to a cloud server deployed with a programming platform, the device access method includes: When receiving the device information of a device to be accessed, loading, according to the device information, an independent file corresponding to the device to be accessed, where the independent file is obtained by encapsulating the device communication protocol of the device to be accessed through cloud programming; the device information is sent by an edge computing host when receiving a device access request, and the device access request carries the device information; Obtaining the data structure of the independent file; In the data structure, determining a sub-data structure corresponding to a primitive included in a target module included in the independent file; the target module is used to implement the functions in the device communication protocol; the target module includes a data frame transceiver module, a logical relationship module, and a calculation module, where the data frame transceiver module is used to obtain device data of a device to be accessed in an industrial field, the logical relationship module is used to perform logical relationship processing on the device data obtained by the data frame transceiver module, and the calculation module is used to perform calculations on the device data obtained by the data frame transceiver module; Determining the function call relationship corresponding to the sub-data structure according to the order of the primitives in the data structure; Reading the input value and output value of the primitive; Filling the input value and the output value according to the function call relationship to obtain a standard language file; Invoking a compiler corresponding to the edge computing host to compile the standard language file to generate an executable file, where the executable file is used for device access; Sending the executable file to the edge computing host so that the edge computing host loads the executable file to complete the access of the device to be accessed.

2. The device access method according to claim 1, wherein, It further includes: If the function corresponding to the sub-data structure is an intrinsic function, calling the function corresponding to the sub-data structure in the form of a pointer; If the function corresponding to the sub-data structure is a custom function, creating a custom sub-data structure for the custom function and calling the function corresponding to the custom sub-data structure in the form of a pointer.

3. A device access method for an edge computing host, characterized in that, Applied to an edge computing host, the device access method includes: Upon receiving a device access request, send the device information of the device to be accessed to the cloud server to obtain an executable file from the cloud server. The device access request carries the device information, and the executable file is used for device access. The executable file is generated by the cloud server according to the device information. The cloud server generating the executable file according to the device information includes: loading the independent file corresponding to the device to be accessed according to the device information, and obtaining the data structure of the independent file; in the data structure, determining the sub-data structure corresponding to the primitive included in the target module included in the independent file. The target module is used to implement the functions in the device communication protocol. The target module includes a data frame transceiver module, a logical relationship module, and a calculation module. The data frame transceiver module is used to obtain the device data of the device to be accessed in the industrial field. The logical relationship module is used to perform logical relationship processing on the device data obtained by the data frame transceiver module. The calculation module is used to perform calculations on the device data obtained by the data frame transceiver module. Determining the function call relationship corresponding to the sub-data structure according to the order of the primitives in the data structure; reading the input values and output values of the primitives; filling the input values and the output values according to the function call relationship to obtain a standard language file; calling the compiler corresponding to the edge computing host to compile the standard language file to generate the executable file; Load the executable file to complete the access of the device to be accessed.

4. An apparatus for device access of an edge computing host, characterized in that, Applied to a cloud server deployed with a programming platform, including: A generation module, which is configured to, when receiving device information of a device to be connected, load an independent file corresponding to the device to be connected according to the device information, where the independent file is obtained by encapsulating the device communication protocol of the device to be connected through cloud programming; the device information is sent by an edge computing host when receiving a device access request, and the device access request carries the device information; obtain a data structure of the independent file; in the data structure, determine a sub-data structure corresponding to a primitive included in a target module included in the independent file; the target module is used to implement functions in the device communication protocol; the target module includes a data frame transceiver module, a logical relationship module, and a calculation module, the data frame transceiver module is used to obtain device data of a device to be connected in an industrial field, the logical relationship module is used to perform logical relationship processing on the device data obtained by the data frame transceiver module, and the calculation module is used to perform calculations on the device data obtained by the data frame transceiver module; determine a function call relationship corresponding to the sub-data structure according to the order of the primitives in the data structure; read input values and output values of the primitives; fill the input values and the output values according to the function call relationship to obtain a standard language file; call a compiler corresponding to the edge computing host to compile the standard language file to generate an executable file, where the executable file is used for device access; A sending module, which is configured to send the executable file to the edge computing host so that the edge computing host loads the executable file to complete the access of the device to be connected.

5. An apparatus for device access of an edge computing host, characterized in that, Applied to an edge computing host, it includes: A sending module, configured to, when receiving a device access request, send device information of a device to be accessed to a cloud server to obtain an executable file from the cloud server, where the device information is carried in the device access request, and the executable file is used for device access; the executable file is generated by the cloud server according to the device information, and the cloud server generating the executable file according to the device information includes: according to the device information, loading an independent file corresponding to the device to be accessed, and obtaining a data structure of the independent file; in the data structure, determining a sub-data structure corresponding to a primitive included in a target module included in the independent file; the target module is used to implement functions in the device communication protocol; the target module includes a data frame transceiver module, a logical relationship module, and a calculation module, the data frame transceiver module is used to obtain device data of a device to be accessed in an industrial field, the logical relationship module is used to perform logical relationship processing on the device data obtained by the data frame transceiver module, and the calculation module is used to perform calculations on the device data obtained by the data frame transceiver module; determining a function call relationship corresponding to the sub-data structure according to the order of the primitives in the data structure; reading input values and output values of the primitives; filling the input values and the output values according to the function call relationship to obtain a standard language file; calling a compiler corresponding to the edge computing host to compile the standard language file to generate the executable file; An access module, configured to load the executable file to complete the access of the device to be accessed.

6. A server, characterized in that, Comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the device access method of the edge computing host according to any one of claims 1 to 2.

7. A computing device, characterized in that, Comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the device access method of the edge computing host according to claim 3.

8. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the device access method of the edge computing host according to any one of claims 1 to 3.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the device access method of the edge computing host according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Script-based relay protection device graphic development method

    CN104133588A

  • Programmable edge device self-adaption method and device

    CN114253552A