Physical terminal control method and system based on edge technology
By deploying a physical terminal management and control system at the edge of the network and using edge computing technology to process equipment data, the problem that centralized data centers cannot meet the cloud resource requirements of physical terminals is solved, the management efficiency and data privacy security are improved, and the edge computing capabilities of physical terminals are given.
Patent Information
- Application Number
- CN202211571783.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2042-12-08
AI Technical Summary
Currently, the number of physical terminals and data generation at the edge of the network is growing explosively. Centralized data centers cannot meet the demand for cloud resources, resulting in insufficient bandwidth and energy consumption, reducing management and control efficiency, and reducing the security of data privacy.
Adopt physical terminal management and control methods and systems based on edge technology to transmit and process equipment data through the network edge to meet the cloud resource needs of physical terminals, reduce dependence on centralized data centers, and improve management efficiency and data privacy security.
Through edge computing technology, the bandwidth and energy consumption requirements of physical terminals are reduced, the management efficiency and data privacy and security are improved, and the edge computing capabilities of physical terminals are given, enriching their functions.
Smart Images

Figure CN116132488B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network edge technology, and in particular to a physical terminal management and control method and system based on edge technology. Background Art
[0002] With the commercialization of 5G communication methods, society has entered the era of the Internet of Everything. At present, physical terminals at the edge of the network are still mainly controlled by centralized data centers (including public cloud services). However, practice has found that the number of physical terminals at the edge of the network and the data generated by the physical terminals are showing explosive growth. Centralized data centers can no longer meet the cloud resource needs of physical terminals, resulting in insufficient bandwidth and energy resources required to control physical terminals, reducing the efficiency of physical terminal management and control. In addition, centralized data centers will also reduce the security of physical terminal data privacy. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a physical terminal management and control method and system based on edge technology, which can meet the cloud resource requirements of physical terminals through the network edge, not only reducing the insufficient bandwidth and energy resources required by physical terminals due to the use of centralized data centers for terminal management, but also improving the efficiency of physical terminal management and the security of physical terminal data privacy.
[0004] In order to solve the above technical problems, the first aspect of the present invention discloses a physical terminal management and control method based on edge technology, the method comprising:
[0005] When receiving first device data about a target physical terminal sent by the Internet of Things platform, the first server transmits the first device data to the second server based on a preset first message channel, wherein the first server includes a central server, and the first device data includes device control data corresponding to the target physical terminal;
[0006] When receiving the first device data transmitted by the first server, the second server performs business processing on the first device data according to the target rule engine pre-set for the target physical terminal, and the business processing is used to manage and control the target physical terminal. The second server includes the target physical terminal or an edge server corresponding to the target physical terminal, wherein when the second server includes the target physical terminal, the target physical terminal has edge computing capabilities.
[0007] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0008] The first server synchronizes the first device data to the expected device data of the target virtual device corresponding to the target physical terminal in the first server, where the expected device data is used to indicate the device index that the target physical terminal is expected to achieve;
[0009] And, the method further comprises:
[0010] When the virtual device set of the first server does not include the target virtual device corresponding to the target physical terminal, the first server creates a target virtual device corresponding to the target physical terminal based on the first device data, and the first device data also includes device configuration information of the target physical terminal.
[0011] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0012] The second server transmits the collected second device data of the target physical terminal to the first server based on a preset second message channel;
[0013] When receiving the second device data, the first server updates the actual device data of the target virtual device corresponding to the target physical terminal in the first server according to the second device data, wherein the actual device data is used to indicate the device index actually achieved by the target physical terminal, and the second device data at least includes the device operation data of the target physical terminal;
[0014] And, the method further comprises:
[0015] The first server configures virtual device attributes of the target virtual device according to the second device data, and the second device data also includes device attributes of the target physical terminal.
[0016] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0017] The first server inputs the received device data to be processed into the message middleware in the first server, wherein the device data to be processed includes one or more of the first device data, the second device data, and a business processing result corresponding to the first device data sent by the second server;
[0018] The first server distributes the device data to be processed to at least one data processing container in the first server according to the data distribution rule in the message middleware, so that each of the data processing containers processes the device data to be processed based on the data processing function of the data processing container, and obtains the data processing result corresponding to each of the data processing containers, wherein the data processing container includes a first rule engine container and / or a monitoring alarm container;
[0019] The first server stores the data processing result corresponding to each of the data processing containers in at least one data service container of the first server, wherein the data service container includes a data storage container and / or a data application container.
[0020] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0021] The first server determines, according to the first device data, container configuration data of at least one microservice container that matches the target physical terminal;
[0022] The first server transmits the container configuration data of each microservice container to the second server based on a preset first message channel;
[0023] When receiving the container configuration data of each microservice container, the second server configures the microservice container in the second server according to the container configuration data of the microservice container;
[0024] Among them, all the microservice containers include one or more of a device management container, a cloud-edge message synchronization container, a second rule engine container, an edge function container, and a model training container.
[0025] As an optional implementation manner, in the first aspect of the present invention, the second server performs service processing on the first device data according to a target rule engine pre-set for the target physical terminal, including:
[0026] The second server cleans the first device data according to a target rule engine pre-set for the target physical terminal to obtain target device data that meets the screening condition of the target rule engine;
[0027] The second server inputs the target device data into at least one microservice container of the second server, so that each of the microservice containers performs business processing on the target device data based on the microservice function of the microservice container, and obtains a business processing result corresponding to each of the microservice containers;
[0028] And, the method further comprises:
[0029] The second server stores the business processing results corresponding to each of the microservice containers in a local memory corresponding to the second server.
[0030] As an optional implementation manner, in the first aspect of the present invention, before the first server transmits the first device data to the second server based on the preset first message channel, the method further includes:
[0031] The first server determines, according to the first device data, a second server to be interacted with and a communication protocol matching the second server;
[0032] The first server establishes a connection relationship with the second server based on the communication protocol, and triggers the operation of transmitting the first device data to the second server based on the preset first message channel.
[0033] A second aspect of the present invention discloses a physical terminal management and control system based on edge technology, the system comprising a first server and a second server, wherein the first server comprises:
[0034] A first transmission module is configured to transmit the first device data about a target physical terminal sent by the Internet of Things platform to a second server based on a preset first message channel when receiving the first device data about the target physical terminal, wherein the first server includes a central server, and the first device data includes device control data corresponding to the target physical terminal:
[0035] The second server includes:
[0036] An edge processing module is used to perform business processing on the first device data when the first device data transmitted by the first server is received, according to a target rule engine pre-set for the target physical terminal, wherein the business processing is used to manage and control the target physical terminal, and the second server includes the target physical terminal or an edge server corresponding to the target physical terminal, wherein when the second server includes the target physical terminal, the target physical terminal has edge computing capabilities.
[0037] As an optional implementation manner, in the second aspect of the present invention, the first server further includes:
[0038] A first device control module, used for synchronizing the first device data to the expected device data of the target virtual device corresponding to the target physical terminal in the first server, wherein the expected device data is used for indicating the device index that the target physical terminal is expected to achieve;
[0039] The first device management and control module is also used to create a target virtual device corresponding to the target physical terminal according to the first device data when the virtual device set of the first server does not include the target virtual device corresponding to the target physical terminal. The first device data also includes device configuration information of the target physical terminal.
[0040] As an optional implementation manner, in the second aspect of the present invention, the second server further includes:
[0041] A second transmission module, configured to transmit the collected second device data of the target physical terminal to the first server based on a preset second message channel;
[0042] The first server also includes:
[0043] a second device control module, configured to update actual device data of a target virtual device corresponding to the target physical terminal in the first server according to the second device data when the second device data is received, wherein the actual device data is used to indicate a device indicator actually achieved by the target physical terminal, and the second device data at least includes device operation data of the target physical terminal;
[0044] The second device management and control module is further configured to configure virtual device attributes of the target virtual device according to the second device data, where the second device data also includes device attributes of the target physical terminal.
[0045] As an optional implementation, in the second aspect of the present invention, the first transmission module is further used to input the received device data to be processed into the message middleware in the first server, and the device data to be processed includes one or more of the first device data, the second device data, and the business processing result corresponding to the first device data sent by the second server;
[0046] The first server also includes:
[0047] The central processing module is further used to distribute the device data to be processed to at least one data processing container in the first server according to the data distribution rule in the message middleware, so that each of the data processing containers processes the device data to be processed based on the data processing function of the data processing container, and obtains the data processing result corresponding to each of the data processing containers, wherein the data processing container includes a first rule engine container and / or a monitoring alarm container;
[0048] The first data storage module is used to store the data processing results corresponding to each of the data processing containers in at least one data service container of the first server, wherein the data service container includes a data storage container and / or a data application container.
[0049] As an optional implementation manner, in the second aspect of the present invention, the first server further includes:
[0050] A microservice module, configured to determine, based on the first device data, container configuration data of at least one microservice container that matches the target physical terminal;
[0051] The first transmission module is further used to transmit the container configuration data of each microservice container to the second server based on a preset first message channel;
[0052] The second server also includes:
[0053] an edge function configuration module, configured to configure the microservice container in the second server according to the container configuration data of each microservice container when receiving the container configuration data of the microservice container;
[0054] Among them, all the microservice containers include one or more of a device management container, a cloud-edge message synchronization container, a second rule engine container, an edge function container, and a model training container.
[0055] As an optional implementation, in the second aspect of the present invention, the edge processing module performs business processing on the first device data according to the target rule engine pre-set for the target physical terminal in a specific manner, including:
[0056] According to a target rule engine pre-set for the target physical terminal, the first device data is cleansed to obtain target device data that meets the screening condition of the target rule engine;
[0057] Inputting the target device data into at least one microservice container of the second server, so that each of the microservice containers performs business processing on the target device data based on the microservice function of the microservice container, and obtaining a business processing result corresponding to each of the microservice containers;
[0058] The second server further includes:
[0059] The second data storage module is used to store the business processing results corresponding to each of the microservice containers in the local memory corresponding to the second server.
[0060] As an optional implementation, in the second aspect of the present invention, the first transmission module is further used to determine, based on the first device data, a communication protocol matching the second server to be interacted and the second server before transmitting the first device data to the second server based on the preset first message channel;
[0061] The first transmission module is also used to establish a connection relationship with the second server based on the communication protocol, and trigger the execution of the operation of transmitting the first device data to the second server based on the pre-set first message channel.
[0062] A third aspect of the present invention discloses a first server, the first server comprising:
[0063] A memory storing executable program code;
[0064] a processor coupled to the memory;
[0065] The processor calls the executable program code stored in the memory to execute the steps performed by the first server in the physical terminal management and control method based on edge technology disclosed in the first aspect of the present invention.
[0066] A fourth aspect of the present invention discloses a second server, the second server comprising:
[0067] A memory storing executable program code;
[0068] a processor coupled to the memory;
[0069] The processor calls the executable program code stored in the memory to execute the steps executed by the second server of the physical terminal management and control method based on edge technology disclosed in the first aspect of the present invention.
[0070] The fifth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps executed by the first server of the physical terminal management and control method based on edge technology disclosed in the first aspect of the present invention.
[0071] The sixth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps performed by the second server of the physical terminal management and control method based on edge technology disclosed in the first aspect of the present invention.
[0072] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0073] In an embodiment of the present invention, when first device data about a target physical terminal is received from an Internet of Things platform, the first server transmits the first device data to a second server based on a pre-set first message pipeline, wherein the first server includes a central server, and the first device data includes device control data corresponding to the target physical terminal; when the first device data transmitted by the first server is received, the second server performs business processing on the first device data according to a target rule engine pre-set for the target physical terminal, and the business processing is used to manage and control the target physical terminal, and the second server includes the target physical terminal or an edge server corresponding to the target physical terminal, wherein when the second server includes the target physical terminal, the target physical terminal has edge computing capabilities. It can be seen that the implementation of the present invention can send the device control data set by the user on the Internet of Things platform to the central server, and then send it from the central server to the network edge, which performs business processing on the device control data, that is, the cloud resource requirements of the physical terminal are met through the network edge, which not only reduces the insufficient bandwidth and energy resources required by the physical terminal due to the use of centralized data centers for terminal control, but also improves the efficiency of physical terminal control and the security of physical terminal data privacy. In addition, by giving the physical terminal the ability of edge computing, the functions of the physical terminal can be enriched. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0075] Figure 1 It is a flow chart of a physical terminal management and control method based on edge technology disclosed in an embodiment of the present invention;
[0076] Figure 2 It is a flow chart of another physical terminal management and control method based on edge technology disclosed in an embodiment of the present invention;
[0077] Figure 3 It is a structural schematic diagram of a physical terminal management and control system based on edge technology disclosed in an embodiment of the present invention;
[0078] Figure 4 It is a structural schematic diagram of another physical terminal management and control system based on edge technology disclosed in an embodiment of the present invention;
[0079] Figure 5 is a structural schematic diagram of a first server disclosed in an embodiment of the present invention;
[0080] Figure 6 It is a structural schematic diagram of a second server disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0081] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0083] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0084] The present invention discloses a physical terminal control method and system based on edge technology, which can send the device control data set by the user on the Internet of Things platform to the central server, and then send it to the network edge by the central server, and the network edge performs business processing on the device control data, that is, the cloud resource demand of the physical terminal is met through the network edge, which not only reduces the bandwidth and energy consumption resources required by the physical terminal due to the use of a centralized data center for terminal control, but also improves the efficiency of physical terminal control and the security of physical terminal data privacy, and by giving the physical terminal the ability of edge computing, it can also enrich the functions of the physical terminal. The following are detailed descriptions.
[0085] Embodiment 1
[0086] See also Figure 1 , Figure 1 : is a flow chart of a physical terminal control method based on edge technology disclosed in an embodiment of the present invention. Figure 1 The described physical terminal control method based on edge technology can be applied to the implementation of physical terminal control, such as being applied to the Internet of Things architecture, and the embodiments of the present invention are not limited thereto. Figure 1 As shown, the physical terminal management and control method based on edge technology may include the following operations:
[0087] 101. A first server receives first device data about a target physical terminal sent by an Internet of Things platform.
[0088] In the embodiment of the present invention, optionally, the first server may include a central server, such as a central cloud.
[0089] In the embodiment of the present invention, optionally, the Internet of Things platform can send the first device data to the first server through the interface provided by topSphere-api.
[0090] 102. The first server transmits the first device data to the second server based on a preset first message channel.
[0091] In an embodiment of the present invention, optionally, the first device data may include device control data corresponding to the target physical terminal and / or device configuration information corresponding to the target physical terminal. Further optionally, the device configuration information may include device access configuration and / or device subordinate template. The device subordinate template and device access configuration may be used to provide to the first server to create a target virtual device corresponding to the target physical terminal. The device access configuration may also be used to provide to the first server to enable the first server to determine the second server to interact. Optionally, the target physical terminal may include a real terminal device, such as a temperature sensor. It can be seen that this can increase the diversity of the first device data and increase the device control operations that users can trigger on the Internet of Things platform.
[0092] 103. When receiving the first device data transmitted by the first server, the second server performs business processing on the first device data according to a target rule engine pre-set for the target physical terminal.
[0093] In the embodiment of the present invention, optionally, the first device data transmitted to the second server includes at least the above-mentioned device control data, and the business processing performed on the first device data can be used to manage and control the target physical terminal.
[0094] In an embodiment of the present invention, optionally, the second server may include a target physical terminal or an edge server corresponding to the target physical terminal. Further optionally, when the second server includes the target physical terminal, the target physical terminal has edge computing capabilities, and the edge server may include an edge node corresponding to the target physical terminal.
[0095] In an embodiment of the present invention, optionally, the Internet of Things platform, the first server and the second server can be constructed through an edge computing framework. Preferably, the edge computing framework can be a cloud-native edge computing framework KubeEdge.
[0096] As an optional implementation manner, the second server performs service processing on the first device data according to a target rule engine pre-set for the target physical terminal, which may include:
[0097] The second server cleans the first device data according to a target rule engine pre-set for the target physical terminal to obtain target device data that meets the screening conditions of the target rule engine;
[0098] The second server inputs the target device data into at least one microservice container of the second server, so that each microservice container performs business processing on the target device data based on the microservice function of the microservice container, and obtains the business processing result corresponding to each microservice container.
[0099] It can be seen that the implementation of this optional implementation method can perform business processing on the device control data to be sent to the physical terminal through microservice containers at the edge of the network, which can improve the efficiency, accuracy and reliability of business processing.
[0100] It can be seen that the implementation of the embodiment of the present invention can send the device control data set by the user on the Internet of Things platform to the central server, and then send it from the central server to the network edge, which performs business processing on the device control data, that is, the cloud resource requirements of the physical terminal are met through the network edge, which not only reduces the insufficient bandwidth and energy resources required by the physical terminal due to the use of a centralized data center for terminal control, but also improves the efficiency of physical terminal control and the security of physical terminal data privacy. In addition, by giving the physical terminal the ability of edge computing, the functions of the physical terminal can be enriched.
[0101] In an optional embodiment, the method may further include:
[0102] The second server stores the business processing results corresponding to each microservice container in the local storage corresponding to the second server.
[0103] It can be seen that the implementation of this optional embodiment can store the business processing results obtained by the microservice container, thereby facilitating the calling of device control data.
[0104] In another optional embodiment, the method may further include:
[0105] When a device configuration operation on a target physical terminal triggered by a user on the IoT platform is detected, the IoT platform determines first device data on the target physical terminal according to the device configuration operation, wherein the device configuration operation may include a device adding operation and / or a device changing operation;
[0106] The Internet of Things platform sends the first device data to the first server based on a preset data transmission interface.
[0107] In an embodiment of the present invention, optionally, a device addition operation triggered by a user can be used to connect a new physical terminal to the Internet of Things platform and the first server, wherein the user can configure one or more of the device properties of the physical terminal, the corresponding rule engine, the edge server (such as: edge node), etc. through the device addition operation, and the device change operation can be used to change one or more of the device properties of the configured physical terminal, the corresponding rule engine, the edge server, etc.
[0108] In yet another optional embodiment, the method may further include:
[0109] The first server determines, based on the first device data, container configuration data of at least one microservice container that matches the target physical terminal;
[0110] The first server transmits the container configuration data of each microservice container to the second server based on a preset first message channel;
[0111] When receiving the container configuration data of each microservice container, the second server configures the microservice container in the second server according to the container configuration data of the microservice container;
[0112] Among them, all microservice containers include one or more of a device management container, a cloud-edge message synchronization container, a second rule engine container, an edge function container, and a model training container.
[0113] In this optional embodiment, optionally, each microservice container is an independently deployed container without any mutual dependencies, which can reduce the coupling between the microservice containers.
[0114] In this optional embodiment, optionally, the edge function container is used to provide local computing, message charging, message caching, and message synchronization functions for the target physical terminal. The first server can determine the container configuration data of the edge function container based on the device configuration operation triggered by the user on the Internet of Things platform. Optionally, the container configuration data may include the writing code, operation mode, and message rules corresponding to the edge function; and
[0115] The second server can configure the edge function container in the second server according to the above-mentioned container configuration data so as to synchronize with the edge function container in the first server, thereby bringing edge computing capabilities to the second server (such as: physical terminal).
[0116] In this optional embodiment, the model training container may include an AI training container. By deploying the AI training container on the second server, AI training can be performed at the edge of the network close to users and data, rather than concentrated in cloud computing facilities or private data centers.
[0117] It can be seen that the implementation of this optional embodiment can send the microservice functions required by the network edge to the network edge in the form of containers for configuration through the central server, thereby improving the convenience of configuring microservice functions for the network edge, and can also reduce the degree of coupling between different microservice functions and minimize the memory usage of the network edge. In addition, the data processing function of the network edge can be enriched by configuring the microservice functions.
[0118] In yet another optional embodiment, before the first server transmits the first device data to the second server based on the preset first message channel, the method may further include:
[0119] The first server determines, based on the first device data, a second server to be interacted with and a communication protocol matching the second server;
[0120] The first server establishes a connection relationship with the second server based on the communication protocol, and triggers the execution of the above-mentioned operation of transmitting the first device data to the second server based on the pre-set first message channel.
[0121] In this optional embodiment, optionally, the communication protocol matched by the second server is stored in the first server in the form of a data router, and the data router can be directly called when needed.
[0122] It can be seen that implementing this optional embodiment can connect to the network edge according to the communication protocol matching the network edge corresponding to the physical terminal, thereby improving the success rate, accuracy and reliability of data transmission between the central server and the network edge.
[0123] Embodiment 2
[0124] See also Figure 2 , Figure 2 is a flow chart of another physical terminal control method based on edge technology disclosed in an embodiment of the present invention. Figure 2 The described physical terminal control method based on edge technology can be applied to the implementation of physical terminal control, such as being applied to the Internet of Things architecture, and the embodiments of the present invention are not limited thereto. Figure 2 As shown, the physical terminal management and control method based on edge technology may include the following operations:
[0125] 201. A first server receives first device data about a target physical terminal sent by an Internet of Things platform.
[0126] 202. The first server transmits the first device data to the second server based on a preset first message channel.
[0127] 203. When receiving the first device data transmitted by the first server, the second server performs business processing on the first device data according to a target rule engine pre-set for the target physical terminal.
[0128] 204. The second server transmits the collected second device data of the target physical terminal to the first server based on a preset second message channel.
[0129] In the embodiment of the present invention, optionally, the first message pipe and the second message pipe may be the same or different, which is not limited in the embodiment of the present invention. Further optionally, the second message pipe is a message bus corresponding to the second server.
[0130] 205. When receiving the second device data, the first server updates the actual device data of the target virtual device corresponding to the target physical terminal in the first server according to the second device data.
[0131] In an embodiment of the present invention, the actual device data is used to represent the device indicators actually achieved by the target physical terminal. Optionally, the second device data at least includes the device operation data of the target physical terminal. The first server can monitor the real-time device status of the target physical terminal by listening to the actual device data.
[0132] In an embodiment of the present invention, optionally, the target virtual device may include a device shadow and / or a twin device corresponding to the target physical terminal. Preferably, the target virtual device includes a twin device corresponding to the target physical terminal.
[0133] In the embodiment of the present invention, for other descriptions of step 201 to step 203, please refer to the detailed description of step 101 to step 103 in the first embodiment, and the embodiment of the present invention will not be repeated here.
[0134] It can be seen that the implementation of the embodiment of the present invention can send the device control data set by the user on the Internet of Things platform to the central server, and then send it from the central server to the network edge, and the network edge performs business processing on the device control data, that is, the cloud resource requirements of the physical terminal are met through the network edge, which not only reduces the insufficient bandwidth and energy resources required by the physical terminal due to the use of a centralized data center for terminal control, but also improves the efficiency of physical terminal control and the security of physical terminal data privacy. Moreover, by giving the physical terminal the ability of edge computing, the function of the physical terminal can be enriched. In addition, the device operation data of the physical terminal can be transmitted to the central server through the network edge, which can facilitate the central server to monitor the operation status of the physical terminal in real time.
[0135] In an optional embodiment, the method may further include:
[0136] The first server configures the virtual device attributes of the target virtual device according to the second device data. The second device data may further include device attributes of the target physical terminal.
[0137] In this optional embodiment, optionally, the device attributes may include device metadata, and the device metadata is used to describe the detailed information of the target physical terminal. Optionally, the device metadata may be fixed data after being defined. For example, a thermometer device is used to collect the ambient temperature. Obviously, the thermometer device generally has a device attribute of "temperature", and the type of the device attribute may be "float" type.
[0138] In this optional embodiment, when configuring the virtual device properties of the target virtual device, operations such as conversion and formatting of the device property data in the second device data may be synchronized to the virtual device properties.
[0139] It can be seen that implementing this optional embodiment can improve the uniformity of device properties of virtual devices and physical terminals by synchronizing device properties of physical terminals to virtual devices, thereby improving the accuracy and reliability of virtual device configuration, and further improving the accuracy and reliability of simulated physical terminals.
[0140] In another optional embodiment, before the second server transmits the collected second device data of the target physical terminal to the first server based on the preset second message channel, the method may further include:
[0141] The second server determines a message topic about the target physical terminal to which the Internet of Things platform and / or the first server has pre-subscribed;
[0142] The second server collects the second device data of the target physical terminal according to the message subject.
[0143] It can be seen that implementing this optional embodiment can collect data according to the message topics subscribed by the Internet of Things platform and the first server, thereby improving the accuracy and reliability of the collected second device data and improving the matching degree between the collected second device data and the device monitoring requirements.
[0144] In yet another optional embodiment, the method may further include:
[0145] The first server synchronizes the first device data to the expected device data of the target virtual device corresponding to the target physical terminal in the first server, where the expected device data is used to indicate the device index that the target physical terminal is expected to achieve;
[0146] And, the method may further include:
[0147] When the virtual device set of the first server does not include the target virtual device corresponding to the target physical terminal, the first server creates the target virtual device corresponding to the target physical terminal according to the first device data. The first device data may also include device configuration information of the target physical terminal.
[0148] It can be seen that the implementation of this optional embodiment can facilitate real-time monitoring of the operating status of the physical terminal by configuring a virtual device of the physical terminal in the central server, and by synchronizing the device control data to the virtual device, it can facilitate simulation of the expected operating status of the physical terminal and comparison between the expected operating status and the real-time operating status of the physical terminal.
[0149] In yet another optional embodiment, the method may further include:
[0150] The first server inputs the received device data to be processed into the message middleware in the first server, where the device data to be processed includes the first device data, the second device data, and one or more of the business processing results corresponding to the first device data sent by the second server;
[0151] The first server distributes the device data to be processed to at least one data processing container in the first server according to the data distribution rule in the message middleware, so that each data processing container processes the device data to be processed based on the data processing function of the data processing container, and obtains the data processing result corresponding to each data processing container, wherein the data processing container includes a first rule engine container and / or a monitoring alarm container;
[0152] The first server stores the data processing result corresponding to each data processing container in at least one data service container of the first server, wherein the data service container includes a data storage container and / or a data application container.
[0153] In this optional embodiment, optionally, the first server inputs the received data to be processed into the message middleware of the first server, which may include:
[0154] The first server inputs the received data to be processed into a message warehouse for message pre-caching, and the message warehouse inputs the data to be processed into the message middleware of the first server according to the data processing sequence.
[0155] In this optional embodiment, optionally, the data storage container may include one or more of a structured repository, an unstructured repository, and a time series database repository.
[0156] It can be seen that the implementation of this optional embodiment can perform rule engine screening and monitoring alarms on device operation data, device control data and business processing results sent by the network edge, thereby realizing real-time control of the physical terminal and monitoring of the operation status, and improving the accuracy, reliability and security of physical terminal management and operation. In addition, storing the rule engine screening and monitoring alarm results in data storage containers and data application containers can improve the convenience of the Internet of Things platform in tracing the control and operation of the physical terminal, and can also improve the convenience of the Internet of Things platform in applying physical terminal control and operation data.
[0157] Embodiment 3
[0158] See also Figure 3 , Figure 3 Schematic diagram of a physical terminal control system based on edge technology disclosed in an embodiment of the present invention. Figure 3 The described physical terminal control system based on edge technology can be applied to the implementation of control of physical terminals, such as being applied to the Internet of Things architecture, which is not limited in the embodiments of the present invention. Figure 3 As shown, the physical terminal management and control system based on edge technology may include a first server 301 and a second server 302, wherein the first server 301 includes:
[0159] The first transmission module 3011 is used to transmit the first device data about the target physical terminal sent by the Internet of Things platform to the second server 302 based on the preset first message channel when receiving the first device data about the target physical terminal, wherein the first server 301 includes the central server, and the first device data includes the device control data corresponding to the target physical terminal:
[0160] The second server 302 includes:
[0161] The edge processing module 3021 is used to perform business processing on the first device data when the first device data transmitted by the first server end 301 is received, according to the target rule engine pre-set for the target physical terminal. The business processing is used to manage and control the target physical terminal. The second server end 302 includes the target physical terminal or the edge server end corresponding to the target physical terminal. When the second server end 302 includes the target physical terminal, the target physical terminal has edge computing capabilities.
[0162] It can be seen that implementation Figure 3 The described system can send the device control data set by the user on the Internet of Things platform to the central server, and then from the central server to the network edge, which processes the device control data, that is, the cloud resource needs of the physical terminal are met through the network edge, which not only reduces the insufficient bandwidth and energy resources required by the physical terminal due to the use of centralized data centers for terminal control, but also improves the efficiency of physical terminal control and the security of physical terminal data privacy. In addition, by giving the physical terminal the ability of edge computing, the functions of the physical terminal can be enriched.
[0163] In an optional embodiment, if Figure 4 As shown, the first server 301 may also include:
[0164] The first device control module 3012 is used to synchronize the first device data to the expected device data of the target virtual device corresponding to the target physical terminal in the first server 301, where the expected device data is used to indicate the device index that the target physical terminal is expected to achieve;
[0165] The first device management and control module 3012 is also used to create a target virtual device corresponding to the target physical terminal according to the first device data when the virtual device set of the first server 301 does not include the target virtual device corresponding to the target physical terminal. The first device data may also include device configuration information of the target physical terminal.
[0166] It can be seen that implementation Figure 4 The described device can also facilitate real-time monitoring of the operating status of the physical terminal by configuring a virtual device of the physical terminal in the central server, and can facilitate simulation of the expected operating status of the physical terminal and comparison between the expected operating status and the real-time operating status of the physical terminal by synchronizing the device control data to the virtual device.
[0167] In another optional embodiment, Figure 4 As shown, the second server 302 may further include:
[0168] The second transmission module 3022 is used to transmit the collected second device data of the target physical terminal to the first server 301 based on a preset second message channel;
[0169] The first server 301 may further include:
[0170] The second device control module 3013 is used to update the actual device data of the target virtual device corresponding to the target physical terminal in the first server 301 according to the second device data when receiving the second device data, where the actual device data is used to indicate the device index actually achieved by the target physical terminal, and the second device data at least includes the device operation data of the target physical terminal;
[0171] The second device management and control module 3013 is further used to configure the virtual device attributes of the target virtual device according to the second device data. The second device data may also include device attributes of the target physical terminal.
[0172] Visible, real-time Figure 4 The described device can also transmit the device operation data of the physical terminal to the central server through the network edge, which can facilitate the central server to monitor the operating status of the physical terminal in real time, and by synchronizing the device properties of the physical terminal to the virtual device, it can improve the uniformity of the device properties of the virtual device and the physical terminal, thereby improving the accuracy and reliability of the virtual device configuration, and then improving the accuracy and reliability of the simulated physical terminal.
[0173] In yet another optional embodiment, Figure 4 As shown, the first transmission module 3011 is further used to input the received device data to be processed into the message middleware in the first server 301, and the device data to be processed includes one or more of the first device data, the second device data and the business processing results corresponding to the first device data sent by the second server 302;
[0174] The first server 301 may further include:
[0175] The central processing module 3014 is further used to distribute the device data to be processed to at least one data processing container in the first server 301 according to the data distribution rule in the message middleware, so that each data processing container performs data processing on the device data to be processed based on the data processing function of the data processing container, and obtains the data processing result corresponding to each data processing container, wherein the data processing container includes the first rule engine container and / or the monitoring alarm container;
[0176] The first data storage module 3015 is used to store the data processing result corresponding to each data processing container in at least one data service container of the first server 301, wherein the data service container includes a data storage container and / or a data application container.
[0177] It can be seen that implementation Figure 4 The described device can perform rule engine screening and monitoring alarms on device operation data, device control data, and business processing results sent by the network edge, thereby realizing real-time control of the physical terminal and monitoring of the operation status, improving the accuracy, reliability, and security of the physical terminal management and operation. In addition, the rule engine screening and monitoring alarm results are stored in data storage containers and data application containers, which can improve the convenience of the Internet of Things platform for tracing the control and operation of the physical terminal, and can also improve the convenience of the Internet of Things platform for applying physical terminal control and operation data.
[0178] In yet another optional embodiment, Figure 4 As shown, the first server 301 may also include:
[0179] The microservice module 3016 is used to determine, according to the first device data, container configuration data of at least one microservice container that matches the target physical terminal;
[0180] The first transmission module 3011 is further used to transmit the container configuration data of each microservice container to the second server 302 based on the preset first message channel;
[0181] The second server 302 may further include:
[0182] The edge function configuration module 3023 is used to configure the microservice container in the second server 302 according to the container configuration data of each microservice container when receiving the container configuration data of the microservice container;
[0183] Among them, all microservice containers include one or more of a device management container, a cloud-edge message synchronization container, a second rule engine container, an edge function container, and a model training container.
[0184] It can be seen that implementation Figure 4 The described device can also send the microservice functions required by the network edge to the network edge in the form of containers for configuration through the central server, thereby improving the convenience of configuring microservice functions for the network edge, and can also reduce the degree of coupling between different microservice functions and minimize the memory usage of the network edge. In addition, by configuring microservice functions, the data processing functions of the network edge can be enriched.
[0185] In yet another optional embodiment, Figure 4As shown, the specific manner in which the edge processing module 3021 performs business processing on the first device data according to the target rule engine pre-set for the target physical terminal may include:
[0186] According to a target rule engine pre-set for the target physical terminal, the first device data is cleansed to obtain target device data that meets the screening condition of the target rule engine;
[0187] Input the target device data into at least one microservice container of the second service end 302, so that each microservice container performs business processing on the target device data based on the microservice function of the microservice container, and obtains the business processing result corresponding to each microservice container;
[0188] The second server 302 may further include:
[0189] The second data storage module 3024 is used to store the business processing results corresponding to each microservice container in the local memory corresponding to the second server 302.
[0190] It can be seen that implementation Figure 4 The described device can also perform business processing on device control data to be sent to the physical terminal through microservice containers at the edge of the network, thereby improving the efficiency, accuracy and reliability of business processing.
[0191] In yet another optional embodiment, Figure 4 As shown, the first transmission module 3011 is further used to determine the second server 302 to be interacted with and the communication protocol matched with the second server 302 according to the first device data before transmitting the first device data to the second server 302 based on the preset first message channel;
[0192] The first transmission module 3011 is further used to establish a connection relationship with the second server 302 based on the communication protocol, and trigger the execution of the above-mentioned operation of transmitting the first device data to the second server 302 based on the pre-set first message channel.
[0193] It can be seen that implementation Figure 4 The described device can also connect to the network edge according to a communication protocol that matches the network edge corresponding to the physical terminal, thereby improving the success rate, accuracy and reliability of data transmission between the central service end and the network edge.
[0194] Embodiment 4
[0195] See also Figure 5 , Figure 5 Schematic diagram of the structure of a first server disclosed in an embodiment of the present invention. Figure 5 As shown, the first server may include:
[0196] A memory 401 storing executable program codes;
[0197] a processor 402 coupled to the memory 401;
[0198] The processor 402 calls the executable program code stored in the memory 401 to execute the steps executed by the first server in the physical terminal management and control method based on edge technology described in Embodiment 1 or Embodiment 2 of the present invention.
[0199] Embodiment 5
[0200] See also Figure 6 , Figure 6 Schematic diagram of the structure of a second server disclosed in an embodiment of the present invention. Figure 6 As shown, the second server may include:
[0201] A memory 501 storing executable program codes;
[0202] a processor 502 coupled to the memory 501;
[0203] The processor 502 calls the executable program code stored in the memory 501 to execute the steps executed by the second server in the physical terminal management and control method based on edge technology described in Embodiment 1 or Embodiment 2 of the present invention.
[0204] Embodiment 6
[0205] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps performed by the first server in the physical terminal management and control method based on edge technology described in Embodiment 1 or Embodiment 2 of the present invention.
[0206] Embodiment 7
[0207] An embodiment of the present invention discloses another computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps performed by the first server in the physical terminal management and control method based on edge technology described in Embodiment 1 or Embodiment 2 of the present invention.
[0208] Embodiment 8
[0209] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps performed by the first server in the physical terminal management and control method based on edge technology described in Example 1 or Example 2.
[0210] Embodiment 9
[0211] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps performed by the second server in the physical terminal management and control method based on edge technology described in Example 1 or Example 2.
[0212] The system embodiment described above is only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without paying creative labor.
[0213] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0214] Finally, it should be noted that the physical terminal control method and system based on edge technology disclosed in the embodiment of the present invention only discloses the preferred embodiments of the present invention, which are only used to illustrate the technical scheme of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that the technical schemes recorded in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical schemes from the spirit and scope of the technical schemes of the embodiments of the present invention.
Claims
1. A physical terminal management and control method based on edge technology. It is characterized in that The method comprises: When receiving first device data about a target physical terminal sent by the Internet of Things platform, the first server transmits the first device data to the second server based on a preset first message channel, wherein the first server includes a central server, and the first device data includes device control data corresponding to the target physical terminal; When receiving the first device data transmitted by the first server, the second server performs business processing on the first device data according to the target rule engine pre-set for the target physical terminal, wherein the business processing is used to manage and control the target physical terminal, and the second server includes the target physical terminal or an edge server corresponding to the target physical terminal, wherein when the second server includes the target physical terminal, the target physical terminal has edge computing capability; And, the method further comprises: The first server synchronizes the first device data to the expected device data of the target virtual device corresponding to the target physical terminal in the first server, where the expected device data is used to indicate the device index that the target physical terminal is expected to achieve; And, the method further comprises: The second server transmits the collected second device data of the target physical terminal to the first server based on a preset second message channel; When receiving the second device data, the first server updates the actual device data of the target virtual device corresponding to the target physical terminal in the first server according to the second device data, wherein the actual device data is used to indicate the device index actually achieved by the target physical terminal, and the second device data at least includes the device operation data of the target physical terminal; And, the method further comprises: The first server configures virtual device attributes of the target virtual device according to the second device data, and the second device data also includes device attributes of the target physical terminal.
2. According to the physical terminal management and control method based on edge technology according to claim 1, It is characterized in that The method further comprises: When the virtual device set of the first server does not include the target virtual device corresponding to the target physical terminal, the first server creates a target virtual device corresponding to the target physical terminal based on the first device data, and the first device data also includes device configuration information of the target physical terminal.
3. According to the physical terminal management and control method based on edge technology according to claim 1, It is characterized in that The method further comprises: The first server inputs the received device data to be processed into the message middleware in the first server, wherein the device data to be processed includes one or more of the first device data, the second device data, and a business processing result corresponding to the first device data sent by the second server; The first server distributes the device data to be processed to at least one data processing container in the first server according to the data distribution rule in the message middleware, so that each of the data processing containers processes the device data to be processed based on the data processing function of the data processing container, and obtains the data processing result corresponding to each of the data processing containers, wherein the data processing container includes a first rule engine container and / or a monitoring alarm container; The first server stores the data processing result corresponding to each of the data processing containers in at least one data service container of the first server, wherein the data service container includes a data storage container and / or a data application container.
4. The physical terminal management and control method based on edge technology according to any one of claims 1 to 3, It is characterized in that The method further comprises: The first server determines, according to the first device data, container configuration data of at least one microservice container that matches the target physical terminal; The first server transmits the container configuration data of each microservice container to the second server based on a preset first message channel; When receiving the container configuration data of each microservice container, the second server configures the microservice container in the second server according to the container configuration data of the microservice container; Among them, all the microservice containers include one or more of a device management container, a cloud-edge message synchronization container, a second rule engine container, an edge function container, and a model training container.
5. The physical terminal management and control method based on edge technology according to any one of claims 1 to 3, It is characterized in that The second server performs service processing on the first device data according to a target rule engine pre-set for the target physical terminal, including: The second server cleans the first device data according to a target rule engine pre-set for the target physical terminal to obtain target device data that meets the screening condition of the target rule engine; The second server inputs the target device data into at least one microservice container of the second server, so that each of the microservice containers performs business processing on the target device data based on the microservice function of the microservice container, and obtains a business processing result corresponding to each of the microservice containers; And, the method further comprises: The second server stores the business processing results corresponding to each of the microservice containers in a local memory corresponding to the second server.
6. The physical terminal management and control method based on edge technology according to any one of claims 1 to 3, It is characterized in that Before the first server transmits the first device data to the second server based on a preset first message channel, the method further includes: The first server determines, according to the first device data, a second server to be interacted with and a communication protocol matching the second server; The first server establishes a connection relationship with the second server based on the communication protocol, and triggers the operation of transmitting the first device data to the second server based on the preset first message channel.
7. A physical terminal management and control system based on edge technology, It is characterized in that The system includes a first server and a second server, wherein the first server includes: A first transmission module is used for transmitting the first device data about the target physical terminal to the second server based on a preset first message channel when receiving the first device data about the target physical terminal sent by the Internet of Things platform, wherein the first server includes a central server, and the first device data includes device control data corresponding to the target physical terminal; And, the second server includes: an edge processing module, configured to, when receiving the first device data transmitted by the first server, perform business processing on the first device data according to a target rule engine pre-set for the target physical terminal, wherein the business processing is used to manage and control the target physical terminal, and the second server includes the target physical terminal or an edge server corresponding to the target physical terminal, wherein when the second server includes the target physical terminal, the target physical terminal has edge computing capability; And, the first server also includes: A first device control module, used for synchronizing the first device data to the expected device data of the target virtual device corresponding to the target physical terminal in the first server, wherein the expected device data is used for indicating the device index that the target physical terminal is expected to achieve; And, the second server also includes: A second transmission module, configured to transmit the collected second device data of the target physical terminal to the first server based on a preset second message channel; And, the first server also includes: a second device control module, configured to update actual device data of a target virtual device corresponding to the target physical terminal in the first server according to the second device data when the second device data is received, wherein the actual device data is used to indicate a device indicator actually achieved by the target physical terminal, and the second device data at least includes device operation data of the target physical terminal; The second device management and control module is further configured to configure virtual device attributes of the target virtual device according to the second device data, where the second device data also includes device attributes of the target physical terminal.
8. A second server, It is characterized in that The second server includes: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the steps performed by the second server in the physical terminal management and control method based on edge technology as described in any one of claims 1-6.
9. A computer storage medium, It is characterized in that The computer storage medium stores computer instructions, which, when called, are used to execute the steps performed by the second server in the physical terminal management and control method based on edge technology as described in any one of claims 1-6.
Citation Information
Patent Citations
Network system, resource processing method and equipment
CN113676512A
Business management method and system, configuration server and edge computing device
CN114979246A