CN116610516A - Internet of things programming operation and maintenance base system and method based on equipment digital twin - Google Patents

Internet of things programming operation and maintenance base system and method based on equipment digital twin Download PDF

Info

Publication number
CN116610516A
CN116610516A CN202310276230.XA CN202310276230A CN116610516A CN 116610516 A CN116610516 A CN 116610516A CN 202310276230 A CN202310276230 A CN 202310276230A CN 116610516 A CN116610516 A CN 116610516A
Authority
CN
China
Prior art keywords
internet
things
container
equipment
base system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310276230.XA
Other languages
Chinese (zh)
Other versions
CN116610516B (en
Inventor
陈永立
秦小禹
何建新
李翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Boundless Beijing Technology Co ltd
Original Assignee
Boundless Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Boundless Beijing Technology Co ltd filed Critical Boundless Beijing Technology Co ltd
Priority to CN202310276230.XA priority Critical patent/CN116610516B/en
Publication of CN116610516A publication Critical patent/CN116610516A/en
Application granted granted Critical
Publication of CN116610516B publication Critical patent/CN116610516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3433Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment for load management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses an Internet of things programming operation and maintenance base system and method based on equipment digital twinning, and belongs to the technical field of Internet of things application programming development. The method comprises the following steps: according to the communication protocol type information in the registration information imported when the Internet of things equipment is accessed into the Internet of things programming operation and maintenance base system, starting a container mirror image matched with the communication protocol in the Internet of things programming operation and maintenance base system to create a container operation state instance corresponding to the Internet of things equipment, thereby generating equipment digital twin with twin interaction capability with the Internet of things equipment; and opening an application programming interface of the equipment digital twin to a user so as to allow the user to program the equipment digital twin by calling the application programming interface, thereby realizing data acquisition and control operation of the Internet of things equipment. The invention has the characteristics of high reliability, high safety, low coupling and automatic operation and maintenance, and improves the development efficiency, operation quality and maintainability of the application system of the equipment of the Internet of things.

Description

Internet of things programming operation and maintenance base system and method based on equipment digital twin
Technical Field
The invention belongs to the technical field of application programming development of the Internet of things, and particularly relates to an Internet of things programming operation and maintenance base system based on equipment digital twin and an Internet of things programming operation and maintenance method.
Background
The variety of the internet of things equipment is great, the protocol is complex, and the difference between hardware and software operated on the internet of things equipment makes it very difficult for each application program to keep consistent when system application development is performed.
FIG. 1 is a current solution, namely, application programming directly based on the drivers of the various devices. The application code may directly comprise a library of drivers for various devices, and communication between physical devices is directly controlled by the application. This solution has the following limitations: the development and operation of the application program can not be compatible and expanded rapidly, and the application program needs to be changed and upgraded when the access of one device is increased; the application program is strongly coupled with the equipment, and each change needs to be debugged and tested and verified, so that the application program is ensured to be correctly docked with the equipment; serial communication between devices results in a single device failure that immediately spreads to the entire application; the computing power of the device operation is not isolated in the application program, and the computing power consumption of one device can encroach on the computing power of other devices; the equipment fault log is mixed in the application program, and the cost of reproducing and debugging faults is high.
Fig. 2 is another current solution, namely, abstraction of specific service functions based on various types of devices into a digitized service. The digital service establishes a communication relation with the equipment through collecting equipment data or pushing equipment instructions, and an application program realizes data acquisition and instruction control of the equipment through calling the digital service. The scheme solves the problems of compatibility and expansibility of the application program to the access of the physical equipment, but the following problems still exist: communication from device to device depends on the robustness of a certain digital function service; data communication bandwidth sharing between devices is carried out, and data transmission of other devices can be influenced by a large amount of data transmission of a single device; the computing power of a digital object is still not isolated in an application program, and the computing power consumption of one digital object can encroach on the computing power of other digital objects; the fault logs of various devices are still together, and the fault reproduction cost is high.
Disclosure of Invention
The invention aims to provide an Internet of things programming operation and maintenance base system and method based on equipment digital twinning, so as to improve the development efficiency, operation quality and maintainability of an Internet of things equipment application system.
In addition, the invention also aims to solve the problem that equipment in an Internet of things development system or platform is shared in computing energy consumption and data are mutually influenced.
In addition, the invention also aims to solve the problem that recovery cost is high when the Internet of things equipment is overloaded or can recover faults.
In addition, the invention also aims to solve the problems of consistency, reliability and safety of data communication among the devices of the Internet of things.
In addition, the invention also aims to solve the problems that the fault debugging and reproduction of the equipment of the Internet of things are difficult and the equipment logs are difficult to collect.
The invention discloses a programming operation and maintenance method of the Internet of things based on equipment digital twinning, which comprises the following steps:
step S11, acquiring registration information imported by the Internet of things equipment when the Internet of things equipment is accessed into an Internet of things programming operation and maintenance base system, wherein the registration information comprises type information of a communication protocol supported by the Internet of things equipment;
step S12, matching corresponding container mirror images for the Internet of things equipment in a container mirror image warehouse according to the type information of the communication protocol in the registration information; wherein the container image comprises: a static driver for calling the bottom instruction of the Internet of things equipment based on the communication protocol, a conversion program for connecting the container running state instance pair to the static driver, and a starting inlet for starting the conversion program when the container mirror copy is started;
Step S13, copying the container mirror image corresponding to the Internet of things equipment to the Internet of things programming operation and maintenance base system, and starting the copied container mirror image copy to create a container operation state instance corresponding to the Internet of things equipment in the Internet of things programming operation and maintenance base system, so that equipment digital twin with the capability of carrying out twin interaction with the Internet of things equipment is generated;
step S14, an application programming interface of the equipment digital twin is opened to a user so as to allow the user to program the equipment digital twin by calling the application programming interface, and further data acquisition and control operation of the Internet of things equipment are realized; and the application programming interface is in butt joint with the static driver through the conversion program so as to call the bottom layer instruction of the Internet of things device.
In other embodiments, when the container mirror copy is started, the conversion program converts a read request from the application programming interface into a north instruction of the internet of things device to perform data collection on the internet of things device, and converts a write request from the application programming interface into a south instruction of the internet of things device to perform control operation on the internet of things device.
In other embodiments, the conversion program supports mapping of system call interfaces of the internet of things programming operation and maintenance base system to north-south instructions of a public protocol or a private protocol of the internet of things device.
In other embodiments, the container image is preconfigured in the container image repository by: packaging the static driver, the instruction conversion and data transparent program, the startup entry script and a lightest program runtime mirror image, generating a container mirror image, and uploading the container mirror image to the container mirror image warehouse; the instruction conversion and data transparent transmission program is used for realizing the bottom instruction mapping conversion and data transparent transmission function from the application programming interface to the static driver under the communication protocol; and the starting entry script is used for starting the instruction conversion and data transparent transmission program when the container mirror image copy is started, so as to activate the running state of the static driver in the container running state instance, and the container running state instance has the capability of carrying out twin interaction with the Internet of things equipment.
In other embodiments, the registration information is imported into the internet of things programming operation and maintenance base system through a configuration file, command line, or visual interface.
The invention discloses a programming operation and maintenance base system of the Internet of things based on equipment digital twinning, which comprises:
the device access module is used for accessing various Internet of things devices with Internet of things conditions into the Internet of things programming operation and maintenance base system; the Internet of things equipment is connected with the Internet of things programming operation and maintenance base system, wherein registration information is imported when the Internet of things equipment is connected with the Internet of things programming operation and maintenance base system, and comprises type information of a communication protocol supported by the Internet of things equipment;
the device digital twin creation module is configured to create a device digital twin corresponding to the internet of things device according to the registration information when the internet of things device is accessed, and includes:
matching corresponding container images for the Internet of things equipment in a container image warehouse according to the type information of the communication protocol in the registration information; wherein the container image comprises: a static driver for calling the bottom instruction of the Internet of things equipment based on the communication protocol, a conversion program for connecting the container running state instance pair to the static driver, and a starting inlet for starting the conversion program when the container mirror copy is started;
copying the container mirror image corresponding to the Internet of things equipment to the Internet of things programming operation and maintenance base system, starting the copied container mirror image copy to create a container operation state instance corresponding to the Internet of things equipment in the Internet of things programming operation and maintenance base system, thereby generating equipment digital twin with the capability of carrying out twin interaction with the Internet of things equipment, allowing a user to program the equipment digital twin by calling an application programming interface opened by the equipment digital twin, and further realizing data acquisition and control operation of the Internet of things equipment; the application programming interface is in butt joint with the static driver through the conversion program to call a bottom instruction of the Internet of things device;
The automatic operation and maintenance module is used for carrying out automatic operation and management on the whole life cycle of the digital twin of the equipment;
the safety communication module is used for realizing data communication among the digital twins of the equipment in the Internet of things programming operation and maintenance base system;
and the operation log monitoring module is used for carrying out log collection and operation state data collection on the equipment digital twin so as to support visual monitoring on the equipment digital twin.
In other embodiments, the automated operation and maintenance module includes:
at least one workbench comprising container sets twinned with the internet of things device, each container set comprising one container runtime instance and at least one container runtime instance copy of the container runtime instance;
and the main control platform is communicated with the workbench and is used for detecting the state of the workbench, and when the detection result is abnormal, a control instruction is sent to the workbench so as to operate the container running state instance or the container running state instance copy.
In other embodiments, the anomaly includes: a fault signal or a resource overload signal appears in the container running state instance of the workbench; when the container running state instance of the workbench generates the fault signal or the resource overload signal, the operation of the main control platform on the container running state instance copy comprises copying, expelling, restarting or stopping.
In other embodiments, the container image is preconfigured in the container image repository by: packaging the static driver, the instruction conversion and data transparent program, the startup entry script and a lightest program runtime mirror image, generating a container mirror image, and uploading the container mirror image to the container mirror image warehouse; the instruction conversion and data transparent transmission program is used for realizing the bottom instruction mapping conversion and data transparent transmission function from the application programming interface to the static driver under the communication protocol; and the starting entry script is used for starting the instruction conversion and data transparent transmission program when the container mirror image copy is started, so as to activate the running state of the static driver in the container running state instance, and the container running state instance has the capability of carrying out twin interaction with the Internet of things equipment.
In the 3 rd aspect of the present invention, a computer readable storage medium is also disclosed, where the computer readable storage medium stores computer instructions, where the computer instructions implement the method for programming, operating and maintaining the internet of things according to any one of the above schemes when the computer instructions are executed by a processor.
The invention has the characteristics of high reliability, high safety, low coupling and automatic operation and maintenance, and improves the development efficiency, operation quality and maintainability of the application system of the equipment of the Internet of things.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a schematic diagram of the existing principle of programming internet of things directly based on the driving of various devices;
fig. 2 is a schematic diagram of the principle of internet of things programming by using a functional digital service based on various devices in the prior art;
FIG. 3 is a schematic diagram of an architecture of an Internet of things programming operation and maintenance base system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a process for performing device access according to the present invention;
FIG. 5 is a schematic diagram of a process for performing digital twin construction of a device in accordance with the present invention;
FIG. 6 is a schematic diagram of a process for performing digital twin automatic operation and maintenance of a device in accordance with the present invention;
FIG. 7 is a schematic diagram of a process for performing digital twin auto-recovery and capacity expansion of a device according to the present invention;
FIG. 8 is a schematic diagram of a process of the present invention for secure communication between digital twins of a device;
fig. 9 is a schematic flow chart of an internet of things programming operation and maintenance method based on device digital twinning according to an embodiment of the invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention relates to an Internet of things programming operation and maintenance base system (or simply referred to as a base system and a base), which can be configured on a local computer, a server, an embedded device and the like, and also can be configured on a cloud server, wherein the system provides a unified interface for quickly accessing various types of physical devices (namely Internet of things devices, hereinafter the Internet of things devices and the Internet of things devices refer to the same concept) with Internet of things conditions, and realizes safe communication between the digital twin devices and efficient programming and automatic operation and maintenance functions by mapping data acquisition and control instructions of the physical devices into digital twin devices of containerized micro-services.
Fig. 3 is a schematic diagram illustrating an architecture of an internet of things programming operation and maintenance base system 300 according to an embodiment of the present invention. As shown in fig. 3, the internet of things programming operation and maintenance base system 300 includes a device access module 301, a device digital twin creation module 302, an automatic operation and maintenance module 303, a secure communication module 304, and a log monitoring module 305. The above modules are each specifically described below.
1. Device access module 301
The device access module 301 is configured to access various devices with internet of things to the operation and maintenance base system. These devices include both devices supporting known public communication protocols, such as those supporting HTTP, MODBUS, MQTT, ONVIF, and devices employing customized proprietary communication protocols.
When the internet of things equipment is connected to the internet of things programming operation and maintenance base system, registration information (hereinafter, configuration information and equipment information refer to the same concept as the registration information) is imported and stored in the base system. The registration information includes type information of a communication protocol supported by the internet of things device, and preferably adopts a standard format.
In one embodiment, the device information may be imported into the internet of things programming operation and maintenance base system through a configuration file (e.g., yaml file, JSON file, etc.) or command line. The configuration file contains device information such as the name (or unique identification information, identification ID) of the internet of things device, an IP address, a device type, a corresponding communication protocol type, and the like.
Or, according to another embodiment, the device information is once imported into the internet of things programming operation and maintenance base system after the configuration is performed through the visual interface.
Fig. 4 is a schematic diagram of a process of performing device access according to the present invention. As shown in fig. 4, after the physical devices 401-406 are communicatively coupled to the base system, access to the base system is achieved by importing registration information into the base system. The registration information adopts a preset standard format, and comprises a manufacturer, a model, a unique identifier, description information, a name, a connection IP address, a port, a communication protocol type and the like. For example, device 401 is a Siemens S7 series PLC which has been physically connected to the host computer running the base system via Ethernet prior to accessing the base system and has an IP address, i.e., it communicates data with the base system via its communication protocol.
2. Device digital twin creation module 302
The device digital twin creation module 302 is configured to create a device digital twin corresponding to the internet of things device according to registration information when the internet of things device accesses the base system.
After the equipment is accessed, matching corresponding container mirror images for the Internet of things equipment in a container mirror image warehouse according to the type information of the communication protocol in the registration information. Wherein, in the container mirror warehouse, each container mirror comprises:
(i) A static driver for calling the bottom layer instruction of the Internet of things equipment based on a communication protocol;
(ii) Interfacing the container runtime instance to a conversion program of the static driver; the conversion program supports mapping from a system call interface of the Internet of things programming operation and maintenance base system to a north-south instruction of a public protocol or a private protocol of Internet of things equipment;
(iii) A boot portal for launching the conversion program upon a container image copy launch (upon application, a container image copy obtained for copying the container image is launched).
In one embodiment, individual container images may be built and preconfigured in the container image warehouse by the following process:
(1) Writing an instruction conversion and data transparent transmission program, wherein the instruction conversion and data transparent transmission program is used for realizing the bottom instruction mapping conversion and data transparent transmission function from an application programming interface of equipment digital twin to a static driver under a communication protocol; specifically, the instruction conversion and data transparent program is used for opening the instruction call and data transparent transmission from the application programming interface to the static driver program, and mapping from the application programming interface to the bottom instructions of the physical device is realized.
(2) Writing a starting entry script, wherein the starting entry script is used for starting an instruction conversion and data transparent transmission program when a container mirror image copy is started, so as to activate the running state of a static driver in a container running state instance, and the container running state instance has the capability of twinning interaction with Internet of things equipment;
(3) Static drivers, instruction translation and data pass-through programs, boot portal scripts and a lightest (or smallest) program runtime image (e.g., debian, alpine, webassembly, etc.) are packaged, a container image is generated, and uploaded to the container image repository. For example, a new container image is generated by the program previously installed on a lightest (or smallest) program runtime image as a container image in a container image warehouse.
Then, the container image corresponding to each device is copied (e.g., pulled from the container image warehouse and copied) to the internet of things programming operation and maintenance base system, and the copied container image copy is started to create a container operation state instance corresponding to each device in the internet of things programming operation and maintenance base system, so that device digital twin with twin interaction capability with each device is generated. Specifically, when the container mirror image copy is started, the conversion program converts a read request from the application programming interface into a north instruction of the internet of things device to acquire data of the internet of things device, and converts a write request from the application programming interface into a south instruction of the internet of things device to control and operate the internet of things device, so that real-time information synchronization between the device digital twin and the internet of things device is realized, the internet of things device can reflect the change of the device digital twin in real time, and the device digital twin can also reflect the change of the internet of things device in real time, namely, the real-time twin interaction of the device digital twin and the internet of things device is realized.
In some examples, multiple copies (or backups) may be created for each device's container runtime instance as disaster tolerant backups.
FIG. 5 is a schematic diagram of a process for performing digital twin construction of a device in accordance with the present invention. As shown in FIG. 5, in container image repository 540, a plurality of container images, such as HTTP conversion images, MODBUS conversion images, MQTT conversion images, TCP conversion images, ONVIF conversion images, and proprietary protocol conversion images, are included.
According to the type information of the communication protocol in the registration information 520 stored after the internet of things device 510 accesses the base system, the container image corresponding to the type of the communication protocol is pulled from the container image repository 540.
After pulling the container mirror image, copying the container mirror image corresponding to the device to an internet of things programming operation and maintenance base system, and starting the copied container mirror image copy in the internet of things programming operation and maintenance base system to create a container running state instance 530 corresponding to the device, thereby generating a device digital twin with twin interaction capability with each device, allowing a user to program the device digital twin by calling an application programming interface of the device digital twin open, and further realizing data acquisition and control operation of the internet of things device.
As shown in fig. 5, the container image copy is launched in the form of a container runtime instance 530, and thus the container runtime instance 530 includes, corresponding to its container image: (i) A static driver 531 for calling the bottom layer instruction of the internet of things device based on the communication protocol; (ii) A conversion program 532 that interfaces the container runtime instance to the static driver 531; the conversion program supports mapping of a system call interface of the base system to a protocol (such as MODBUS protocol, MQTT protocol or private protocol) of the Internet of things equipment to a north-south instruction of the Internet of things equipment; (iii) A boot portal 533 for launching the conversion program upon boot-up of the container image copy. Thus, the container running state instance 530 started in the base system maps the bottom instructions of the internet of things device to an application programming interface, so as to realize the docking with the device north-south instruction 511. Specifically, the conversion program 532 converts a read request instruction from an application programming interface into a north instruction of the internet of things device to collect data of the internet of things device, and converts a write request instruction from the application programming interface into a south instruction of the internet of things device to control the internet of things device.
Therefore, the data acquisition and control operation of the application program on the equipment can be realized through an application programming interface which is digitally twinned and opened by the equipment corresponding to the equipment. Therefore, a developer can realize data acquisition and control operation on the Internet of things equipment by programming an application programming interface of the equipment digital twin open. According to the Internet of things programming operation and maintenance base system, the capability of the accessed Internet of things equipment is abstracted into the application programming interface, so that the application and the equipment are decoupled, and the original inefficient Internet of things application development can be as efficient as object-oriented programming.
3. Automatic operation and maintenance module 303
The automatic operation and maintenance module 303 is used for performing automatic operation and management on the whole life cycle of the created device digital twin, including copy creation, operation event scheduling, destruction, copy replacement and the like.
FIG. 6 is a schematic diagram of a process for performing digital twin automation of a device in accordance with the present invention. As shown in fig. 6, the automatic operation and maintenance module includes a main console 601 and a table cluster including a plurality of tables 610, 620. Each workbench includes at least one container set 611, 612 in a one-to-one correspondence with a physical device, each container set including one container runtime instance 6111 or 6121 (i.e., device digital twinning) and at least one container runtime instance backup (or copy). For example, the workstation 610 in fig. 6 includes two container sets 611, 612, wherein a first container set 611 is paired with a first physical device twinning and a second container set 612 is paired with a second physical device twinning. Taking the first container set 611 as an example, it includes one container runtime instance 6111 (i.e., device digital twinning of the first physical device) and two container runtime instance backups (or copies) of the container runtime instance 6111 (dashed line portion in fig. 6). Therefore, in the container set, the container running state instance has the characteristic of independent running and also has the function of disaster recovery backup.
The main control console 601 is decoupled from the work stations 610 and 620, and the main control console 601 is mainly responsible for generating container set operation instructions such as container control instructions 602, container scheduling instructions 603, container detection instructions 604 and the like, the container set in each work station 610 and 620 performs data interaction with the main control console 601 through a secure communication route, the full utilization of work station resources is guaranteed under the driving of the operation instructions, and the fact that the statement of equipment information in the equipment information storage cluster 605 is consistent with the container set states of the work stations 610 and 620 is achieved.
Specifically, on the one hand, the master control console 601 actively detects information changes in the device information storage cluster 605, and when the collected changes are inconsistent with the recorded state of the workbench cluster, the master control console 601 generates and sends active instructions to the workbench clusters 610 and 620, and the workbench clusters 610 and 620 receive the instructions and operate on the container set according to the instructions, for example, perform operations such as creating, modifying, recycling and managing the container running state instance and its backup or copy. On the other hand, the master console 601 periodically (where the period is several milliseconds) collects the states of the workbench clusters 610 and 620 through the container detection command, and when the master console 601 detects that the container set of the workbench clusters 610 and 620 has a fault signal or a resource overload signal, the master console sends a corresponding passive control command to the workbench clusters 610 and 620, and the workbench clusters 610 and 620 operate on the container running state instance according to the passive control command, such as performing operations of container copying, expelling, restarting, stopping and the like.
In the workbench clusters 610 and 620, each device digital twin has self-allocated resources, including operation resources, memory resources, network resources, system resources and the like, and the independent operation of the container level isolates the correlation of calculation power and data among a plurality of internet of things devices, so that the problems of shared calculation energy consumption and mutual influence of data of physical devices are avoided.
Meanwhile, when a container running state instance fails or is overloaded, the master control platform 601 can detect the situation, and by sending instructions for expelling the failed node and creating more copies, the workbench clusters 610 and 620 automatically repair the failed point, so that when the physical equipment fails or is overloaded, the physical equipment can be recovered at low cost.
Fig. 7 is a schematic diagram of a process for performing digital twin automatic recovery and capacity expansion of a device according to the present invention. As shown in fig. 7, a plurality of device digital twins (container sets) are run in the system, such as device digital twins 710 (corresponding to physical devices 701), 720 (corresponding to physical devices 702), 730 (corresponding to physical devices 703).
When a restorability failure occurs in a container running state instance 711 in a digital twin 710 of a certain device, the main control console detects the abnormal state and sends an instruction for removing the failed container running state instance to the workbench. The workbench executes the instructions to enable the container runtime instance backup 712 while copying out a new container runtime instance backup 713 based on the device characteristics.
When the load of a certain device digital twin 730 is too high, the main control console detects the device digital twin overload signal, sends a new device digital twin command to the workbench, expands the device digital twin 730 (the broken line part of the device digital twin 730 in fig. 7), and is connected to a corresponding service endpoint through a device digital twin route.
4. Secure communication module 304
The secure communication module 304 is configured to implement data communication between digital twins of each device in the internet of things programming operation and maintenance base system, including management of establishment of communication trusted connection, handshake, data transmission encryption, digital certificates, and communication routes.
Fig. 8 is a schematic diagram of the process of the present invention for secure communication between digital twins of a device. As shown in fig. 8, in the present invention, by mapping physical devices into device digital twin, the original communication between physical devices can be converted into the communication between device digital twin. Because the communication between the device digital twins is equivalent to the communication between the containerized micro services, the situation that the communication between the physical devices is directly carried out due to different communication protocols and different safety standards is changed, and a substantial condition is provided for applying the encrypted communication between the container micro services which are already mature in the Internet field to the communication between the Internet of things devices with the complicated devices and the various communication protocols.
Referring to fig. 8, a physical device 801 performs a twinning interaction with its device digital twinning 810, a physical device 802 performs a twinning interaction with its device digital twinning 820, and a physical device 803 performs a twinning interaction with its device digital twinning 830, so that secure communication between device digital twinning can be achieved using a microservice secure communication module, and all communication between device digital twinning 810, 820, 830 will be equivalent to communication between physical devices 801, 802, 803. Therefore, the invention provides another equivalent safe communication mode for communication between the devices of the Internet of things, namely, the device digital twin-to-twin communication based on TLS (transport layer security), which can ensure the security of the transport layer data and realize the consistency, reliability and safety of the data communication between the physical devices.
In the existing scheme shown in fig. 1, once a certain physical device (for example, physical device 1) is invaded by an invader, it is easy to cause the whole application program to be invaded and infected, and further cause other physical devices to be invaded and infected. The security communication mode can realize container-level isolation of security threat, has smaller granularity and is easier to defend. For example, when a certain physical device 801 is invaded by an invader program, only the device digital twin 810 corresponding to the certain physical device 801 can be blocked, so that the invader program does not affect the device digital twin 820, 830, and thus the invader program does not affect other secure physical devices 802, 803.
5. The operation log monitoring module 305
The operation log monitoring module 305 is configured to perform log collection and device operation status data (e.g., energy consumption data) collection on the created device digital twin to support visual monitoring of the device digital twin.
The invention can simulate physical equipment by creating the equipment digital twin at almost zero cost, and the operation log monitoring module realizes data acquisition of the equipment digital twin use condition by logging the calculation consumption, the memory use condition, the network transmission condition and the like during the equipment digital twin operation. Meanwhile, the digital twin operation load capacity of the equipment can be perceived by intercepting the application programming interface call through the secure communication module. In addition, the digital twin constructed by the invention is based on a unified containerization standard, generates log data in a standard format, provides great convenience and consistency for the operation log monitoring module to collect and analyze log bands, and further solves the problem that the operation log of the traditional Internet of things equipment is difficult to collect, so that fault debugging and reproduction are difficult based on the log.
In one embodiment, the device digital twin log data may be exported to the visualization tool sets Prometaheus and Grafana to enable visual monitoring.
Therefore, the Internet of things programming operation and maintenance base system disclosed by the invention provides a data base which can be accessed into various devices, protocols and drivers, so that the system has extremely high expansibility. After the equipment is accessed, the system generates equipment digital twin in a containerized micro-service form in the system by the connected equipment of the Internet of things, opens equipment capacity in the form of an application programming interface, decouples application development from physical equipment, and enables developers to be free from developing a bottom infrastructure and an equipment abstraction layer, so that traditional application development of the Internet of things is converted into simple web development, and efficiency, quality and reusability of application development of the Internet of things are greatly improved.
Fig. 9 is a schematic flow chart of an internet of things programming operation and maintenance method based on device digital twinning according to an embodiment of the invention. As shown in fig. 9, the method includes:
step S11, acquiring registration information imported when the Internet of things equipment is accessed into an Internet of things programming operation and maintenance base system; the registration information comprises type information of a communication protocol supported by the Internet of things equipment;
the internet of things devices are connected in an IP network segment or local area network through a network (which may be a wired network or a wireless network).
In the step, registration information of the Internet of things equipment can be imported into the Internet of things programming operation and maintenance base system through yaml files or command lines. Specifically, the yaml file contains device information such as the name, IP address, device type, and corresponding communication protocol type of the internet of things device.
In another embodiment, after the configuration of the internet of things device through the visual interface, the configuration information is imported into the information internet of things programming operation and maintenance base system at one time. Specifically, by creating a device name, inputting device information such as an IP address, a device name, a device type, a corresponding communication protocol type, and the like, a yaml file is automatically generated, and the yaml file is applied to a base system by executing a configuration command in the background, so that registration access of the internet of things device is realized.
Step S12, matching corresponding container mirror images for the Internet of things equipment in a container mirror image warehouse according to the type information of the communication protocol in the registration information;
wherein each container image comprises:
(i) A static driver for calling the bottom layer instruction of the Internet of things equipment based on a communication protocol;
(ii) Interfacing the container runtime instance to a conversion program of the static driver; the conversion program supports mapping from a system call interface of the Internet of things programming operation and maintenance base system to a north-south instruction of a public protocol or a private protocol of the Internet of things equipment.
(iii) A boot portal for launching the conversion program upon boot of the container image copy.
Step S13, copying a container mirror image corresponding to the Internet of things equipment to an Internet of things programming operation and maintenance base system, and starting the copied container mirror image copy to create a container operation state instance corresponding to the Internet of things equipment in the Internet of things programming operation and maintenance base system, so as to generate equipment digital twin with twin interaction capability with the Internet of things equipment;
step S14, an application programming interface of the equipment digital twin is opened to a user so as to allow the user to program the equipment digital twin by calling the application programming interface, and further data acquisition and control operation of the Internet of things equipment are realized; the application programming interface is in butt joint with the static driver through the conversion program to call the bottom layer instruction of the Internet of things device.
When the container mirror image copy is started, the conversion program converts a read request from the application programming interface into a north instruction of the Internet of things device to acquire data of the Internet of things device, and converts a write request from the application programming interface into a south instruction of the Internet of things device to control the Internet of things device.
Therefore, after the device digital twin construction is completed, the data acquisition and control operation of the application program on the internet of things device can be realized through an application programming interface of the device digital twin (or container running state instance) opening corresponding to the internet of things device, namely, a developer programs the application programming interface of the device digital twin opening to realize the data acquisition and control operation of the internet of things device.
For example, in an automated shop scenario, the internet of things device involved includes a robotic arm and a camera, and an application obtains spatial positions of the robotic arm and an object using the camera and moves the object to a specified position using the robotic arm. When the application program is developed, the method provided by the invention can be adopted to create equipment digital twin for the Internet of things equipment and perform standardized programming operation and maintenance, and specifically comprises the following steps:
(1) Connecting the mechanical arm and the camera in an IP network segment or a local area network through a network (which can be a wired network or a wireless network);
(2) The equipment information of each equipment is used as registration information to be imported into the Internet of things programming operation and maintenance base system so as to realize equipment registration access; the device information includes a device name, an IP address, a device type, a corresponding communication protocol, and the like, and the registration information may be imported by any one of the methods described above, so as to implement device access.
(3) After the equipment is accessed, matching corresponding container images for all the Internet of things equipment in a container image warehouse according to the communication protocol type in the registration information;
(4) Copying the container mirror image corresponding to each Internet of things device to an Internet of things programming operation and maintenance base system, and starting the copied container mirror image copy in the Internet of things programming operation and maintenance base system to create a container running state instance corresponding to each Internet of things device, so that device digital twin with the capability of carrying out twin interaction with the Internet of things device is generated.
In process (4), multiple copies of the container running state instance are created corresponding to each internet of things device as disaster recovery backups.
At this time, the data acquisition and control operation of the application program on the internet of things device can be realized through an application programming interface with an opened device digital twin (or container running state instance) corresponding to the internet of things device, namely, a developer programs the application programming interface with the opened device digital twin to realize the data acquisition and control operation on the mechanical arm and the camera.
In addition, according to another embodiment of the present invention, a non-transitory computer readable storage medium is also disclosed, which is used for storing a non-transitory software program, a non-transitory computer executable program, and a module, such as a program or an instruction corresponding to a method of digital twin construction of a device, programming operation and maintenance of the internet of things, and the like in the foregoing embodiment of the present invention. The processor realizes the methods of equipment digital twin construction, internet of things programming operation and maintenance and the like in the method embodiment by running a non-transient software program or instruction.
The processor may be a central processing unit (CentralProcessingUnit, CPU), or other general purpose processor, digital signal processor (DigitalSignalProcessor, DSP), application specific integrated circuit (Application SpecificIntegratedCircuit, ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or a combination thereof.
Although the present invention has been described in more detail by way of the above embodiments, the present invention is not limited to the above embodiments, and modifications and equivalents to the technical solutions of the embodiments of the present invention should not depart from the spirit and scope of the technical solutions of the embodiments of the present invention without departing from the inventive concept.

Claims (10)

1. The Internet of things programming operation and maintenance method based on the digital twinning of the equipment is characterized by comprising the following steps of:
step S11, acquiring registration information imported by the Internet of things equipment when the Internet of things equipment is accessed into an Internet of things programming operation and maintenance base system, wherein the registration information comprises type information of a communication protocol supported by the Internet of things equipment;
step S12, matching corresponding container mirror images for the Internet of things equipment in a container mirror image warehouse according to the type information of the communication protocol in the registration information; wherein the container image comprises: a static driver for calling the bottom instruction of the Internet of things equipment based on the communication protocol, a conversion program for connecting the container running state instance pair to the static driver, and a starting inlet for starting the conversion program when the container mirror copy is started;
Step S13, copying the container mirror image corresponding to the Internet of things equipment to the Internet of things programming operation and maintenance base system, and starting the copied container mirror image copy to create a container operation state instance corresponding to the Internet of things equipment in the Internet of things programming operation and maintenance base system, so that equipment digital twin with the capability of carrying out twin interaction with the Internet of things equipment is generated;
step S14, an application programming interface of the equipment digital twin is opened to a user so as to allow the user to program the equipment digital twin by calling the application programming interface, and further data acquisition and control operation of the Internet of things equipment are realized; and the application programming interface is in butt joint with the static driver through the conversion program so as to call the bottom layer instruction of the Internet of things device.
2. The internet of things programming operation and maintenance method according to claim 1, wherein when the container mirror copy is started, the conversion program converts a read request from the application programming interface into a north instruction of the internet of things device to perform data collection on the internet of things device, and converts a write request from the application programming interface into a south instruction of the internet of things device to perform control operation on the internet of things device.
3. The internet of things programming operation and maintenance method of claim 2, wherein the conversion program supports mapping of a system call interface of the internet of things programming operation and maintenance base system to north-south instructions of a public protocol or a private protocol of the internet of things device.
4. The internet of things programming operation method of claim 1, wherein the container image is preconfigured in the container image repository by: packaging the static driver, the instruction conversion and data transparent program, the startup entry script and a lightest program runtime mirror image, generating a container mirror image, and uploading the container mirror image to the container mirror image warehouse; the instruction conversion and data transparent transmission program is used for realizing the bottom instruction mapping conversion and data transparent transmission function from the application programming interface to the static driver under the communication protocol; and the starting entry script is used for starting the instruction conversion and data transparent transmission program when the container mirror image copy is started, so as to activate the running state of the static driver in the container running state instance, and the container running state instance has the capability of carrying out twin interaction with the Internet of things equipment.
5. The internet of things programming operation and maintenance method of claim 1, wherein the registration information is imported into the internet of things programming operation and maintenance base system through a configuration file, a command line or a visual interface.
6. An internet of things programming operation and maintenance base system based on equipment digital twinning, which is characterized by comprising:
the device access module is used for accessing various Internet of things devices with Internet of things conditions into the Internet of things programming operation and maintenance base system; the Internet of things equipment is connected with the Internet of things programming operation and maintenance base system, wherein registration information is imported when the Internet of things equipment is connected with the Internet of things programming operation and maintenance base system, and comprises type information of a communication protocol supported by the Internet of things equipment;
the device digital twin creation module is configured to create a device digital twin corresponding to the internet of things device according to the registration information when the internet of things device is accessed, and includes:
matching corresponding container images for the Internet of things equipment in a container image warehouse according to the type information of the communication protocol in the registration information; wherein the container image comprises: a static driver for calling the bottom instruction of the Internet of things equipment based on the communication protocol, a conversion program for connecting the container running state instance pair to the static driver, and a starting inlet for starting the conversion program when the container mirror copy is started;
Copying the container mirror image corresponding to the Internet of things equipment to the Internet of things programming operation and maintenance base system, starting the copied container mirror image copy to create a container operation state instance corresponding to the Internet of things equipment in the Internet of things programming operation and maintenance base system, thereby generating equipment digital twin with the capability of carrying out twin interaction with the Internet of things equipment, allowing a user to program the equipment digital twin by calling an application programming interface opened by the equipment digital twin, and further realizing data acquisition and control operation of the Internet of things equipment; the application programming interface is in butt joint with the static driver through the conversion program to call a bottom instruction of the Internet of things device;
the automatic operation and maintenance module is used for carrying out automatic operation and management on the whole life cycle of the digital twin of the equipment;
the safety communication module is used for realizing data communication among the digital twins of the equipment in the Internet of things programming operation and maintenance base system;
and the operation log monitoring module is used for carrying out log collection and operation state data collection on the equipment digital twin so as to support visual monitoring on the equipment digital twin.
7. The internet of things programming operation and maintenance base system of claim 6, wherein the automated operation and maintenance module comprises:
at least one workbench comprising container sets twinned with the internet of things device, each container set comprising one container runtime instance and at least one container runtime instance copy of the container runtime instance;
and the main control platform is communicated with the workbench and is used for detecting the state of the workbench, and when the detection result is abnormal, a control instruction is sent to the workbench so as to operate the container running state instance or the container running state instance copy.
8. The internet of things programming operation and maintenance base system of claim 7, wherein the anomaly comprises: a fault signal or a resource overload signal appears in the container running state instance of the workbench; when the container running state instance of the workbench generates the fault signal or the resource overload signal, the operation of the main control platform on the container running state instance copy comprises copying, expelling, restarting or stopping.
9. The internet of things programming operation and maintenance base system of claim 6, wherein the container image is preconfigured in the container image warehouse by: packaging the static driver, the instruction conversion and data transparent program, the startup entry script and a lightest program runtime mirror image, generating a container mirror image, and uploading the container mirror image to the container mirror image warehouse; the instruction conversion and data transparent transmission program is used for realizing the bottom instruction mapping conversion and data transparent transmission function from the application programming interface to the static driver under the communication protocol; and the starting entry script is used for starting the instruction conversion and data transparent transmission program when the container mirror image copy is started, so as to activate the running state of the static driver in the container running state instance, and the container running state instance has the capability of carrying out twin interaction with the Internet of things equipment.
10. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the internet of things programming operation method of any one of claims 1-5.
CN202310276230.XA 2023-03-21 2023-03-21 Internet of things programming operation and maintenance base system and method based on equipment digital twin Active CN116610516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310276230.XA CN116610516B (en) 2023-03-21 2023-03-21 Internet of things programming operation and maintenance base system and method based on equipment digital twin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310276230.XA CN116610516B (en) 2023-03-21 2023-03-21 Internet of things programming operation and maintenance base system and method based on equipment digital twin

Publications (2)

Publication Number Publication Date
CN116610516A true CN116610516A (en) 2023-08-18
CN116610516B CN116610516B (en) 2024-01-02

Family

ID=87677079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310276230.XA Active CN116610516B (en) 2023-03-21 2023-03-21 Internet of things programming operation and maintenance base system and method based on equipment digital twin

Country Status (1)

Country Link
CN (1) CN116610516B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
CN111585958A (en) * 2020-04-01 2020-08-25 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform
CN113673948A (en) * 2021-08-02 2021-11-19 江苏杰瑞信息科技有限公司 Industrial Internet-based digital twin foundation development platform
US20220036301A1 (en) * 2019-11-05 2022-02-03 Strong Force Vcn Portfolio 2019, Llc Internet of things resources for control tower and enterprise management platform
CN114424167A (en) * 2019-05-06 2022-04-29 强力物联网投资组合2016有限公司 Platform for promoting intelligent development of industrial Internet of things system
CN114661535A (en) * 2022-03-02 2022-06-24 新奥数能科技有限公司 Operation and maintenance management method and device for Internet of things equipment, electronic equipment and storage medium
CN115335810A (en) * 2020-03-27 2022-11-11 微软技术许可有限责任公司 Digital twinning of IT infrastructure
CN115423278A (en) * 2022-08-19 2022-12-02 天津天智融合科技有限公司 MIXBASE general digital twin visual monitoring platform
CN115549914A (en) * 2022-08-05 2022-12-30 泽恩科技有限公司 Twin intelligence sharing service assembly based on digital twin and operation method thereof
CN115617628A (en) * 2022-09-20 2023-01-17 上海科梁信息科技股份有限公司 Digital twin system, research and development method, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
CN114424167A (en) * 2019-05-06 2022-04-29 强力物联网投资组合2016有限公司 Platform for promoting intelligent development of industrial Internet of things system
US20220036301A1 (en) * 2019-11-05 2022-02-03 Strong Force Vcn Portfolio 2019, Llc Internet of things resources for control tower and enterprise management platform
CN115335810A (en) * 2020-03-27 2022-11-11 微软技术许可有限责任公司 Digital twinning of IT infrastructure
CN111585958A (en) * 2020-04-01 2020-08-25 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform
CN113673948A (en) * 2021-08-02 2021-11-19 江苏杰瑞信息科技有限公司 Industrial Internet-based digital twin foundation development platform
CN114661535A (en) * 2022-03-02 2022-06-24 新奥数能科技有限公司 Operation and maintenance management method and device for Internet of things equipment, electronic equipment and storage medium
CN115549914A (en) * 2022-08-05 2022-12-30 泽恩科技有限公司 Twin intelligence sharing service assembly based on digital twin and operation method thereof
CN115423278A (en) * 2022-08-19 2022-12-02 天津天智融合科技有限公司 MIXBASE general digital twin visual monitoring platform
CN115617628A (en) * 2022-09-20 2023-01-17 上海科梁信息科技股份有限公司 Digital twin system, research and development method, equipment and storage medium

Also Published As

Publication number Publication date
CN116610516B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
US8910172B2 (en) Application resource switchover systems and methods
US9542302B2 (en) System and method for remote debugging of an application in an image forming apparatus over a network
US9348771B1 (en) Cloud-based instrument driver system
CN113206763B (en) Simulation test system and method suitable for Internet of things management platform
CN108270726B (en) Application instance deployment method and device
JP2006033829A (en) Distributed application framework capable of porting
US20130246838A1 (en) Discovering boot order sequence of servers belonging to an application
CN111324599B (en) Block chain experiment system and management method
US20190379576A1 (en) Providing dynamic serviceability for software-defined data centers
US20130111473A1 (en) Passive monitoring of virtual systems using extensible indexing
CN111611054B (en) Application deployment method and device
CN114205342B (en) Service debugging routing method, electronic equipment and medium
CN106919485A (en) A kind of system based on configuration hardware testing instrument on server
CN115617610A (en) Kubernetes-based full-behavior monitoring method and system in bypass non-invasive application operation
CN115357308B (en) Docker-based edge Internet of things agent device, system and application method
CN111600760B (en) Quality detection system, method and equipment of power grid operation monitoring system
JP2024504393A (en) Testing distributed immutable data objects
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN116610516B (en) Internet of things programming operation and maintenance base system and method based on equipment digital twin
US20200344144A1 (en) Testing virtualized network functions
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN113127009A (en) Automatic deployment method and device for big data management platform
US20230221940A1 (en) Methods and systems for dynamically creating upgrade specifications based on per device capabilities
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant