Data interconnection method and device between industrial control devices and industrial control device

By deploying services on industrial control devices and adopting publish-subscribe, request-response, and broadcast patterns to achieve data interconnection, the problem of data interconnection between industrial control devices relying on complex applications is solved, improving interaction efficiency and reducing computing resource requirements.

CN117193092BActive Publication Date: 2026-11-24BWTON TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311237943.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2026-11-24
Estimated Expiration
2043-09-22

AI Technical Summary

Technical Problem

In existing technologies, data interconnection between industrial control equipment relies on complex applications, resulting in high computing resource requirements and increased development and maintenance costs.

Method used

By deploying services on industrial control equipment, data interconnection is achieved using publish-subscribe, request-response, and broadcast modes, avoiding the use of applications as intermediaries.

Benefits of technology

It reduces reliance on computing resources, improves the efficiency of interaction and cooperation between industrial control equipment, and reduces the complexity of applications and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117193092B_ABST
    Figure CN117193092B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, and industrial control equipment (ICE) for data interconnection between ICE devices. Each ICE device is deployed with at least one service. The service run by one ICE device is the target service for acquiring data. The ICE device running the target service is the data receiver, and other ICE devices sending data are data senders. The method for data interconnection between ICE devices includes: the data sender acquiring the data to be transmitted within its deployed service; the data having an applicable communication mode; the data sender sending the data to be transmitted to the data receiver according to the communication mode; and the target service acquiring the data to be transmitted received by the data receiver, thus completing the data interconnection between the ICE devices. This application achieves data interconnection and interaction through its deployed service, solving the problem of current reliance on complex applications in various fields to enable data interconnection between a large number of ICE devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing, specifically to methods, apparatus, and industrial control equipment for data interconnection between industrial control equipment. Background Technology

[0002] With the development and application of industrial control technology, it has entered various aspects of social life, providing assistance for specific applications in these areas. For example, in the transportation sector, subway systems utilize the cooperation of multiple industrial control devices to automatically identify users, deduct balances, and open gates, thereby assisting in the normal operation of subway transportation.

[0003] Nowadays, the implementation of auxiliary functions for industrial equipment in various fields requires the interaction and cooperation between multiple industrial control devices. Commonly, multiple industrial control devices are controlled by an application program. The industrial control devices use the application program as a "transfer station" for data interconnection, and then the industrial control devices operate based on the data obtained from the data interconnection, thereby realizing their auxiliary functions.

[0004] However, with the development of technology in various fields, the assistance provided to these fields requires increasingly more industrial control equipment for interaction and coordination. This necessitates a significant increase in the complexity of application programs to enable them to function as "transfer stations" for data interconnection between industrial control equipment, thereby achieving interaction and coordination among a large number of industrial control devices and ultimately completing the auxiliary functions for various fields. The above method not only requires better computing resource configuration for the application to function properly, but also increases the application development and maintenance costs.

[0005] As can be seen from the above, the interaction and coordination between a large number of industrial control devices relies on complex applications to achieve data interconnection between these devices, ultimately enabling auxiliary functions in various fields.

[0006] Therefore, how to achieve data interconnection between a large number of industrial control devices without relying on complex applications is a pressing challenge that needs to be addressed. Summary of the Invention

[0007] The purpose of this application is to solve the technical problem of how to interconnect a large number of industrial control devices without relying on complex applications.

[0008] According to one aspect of the embodiments of this application, this application provides a method for data interconnection between industrial control devices, wherein the industrial control devices are deployed with at least one service, and the service running on one of the industrial control devices is the target service for acquiring data;

[0009] In contrast to the acquisition of the data, the industrial control equipment running the target service is the data receiving end, while other industrial control equipment that sends the data is the data sending end;

[0010] The method for data interconnection between industrial control devices includes:

[0011] The data sending end obtains the data to be transmitted from the service it has deployed, and the data has an applicable communication mode;

[0012] The data sending end sends the data to be transmitted to the data receiving end according to the communication mode;

[0013] The target service acquires the data to be transmitted received by the data receiving end and completes the data interconnection between the industrial control devices.

[0014] According to one aspect of the embodiments of this application, the communication mode includes a publish-subscribe mode, and before the data sending end obtains the data to be transmitted from its deployed service, the method further includes:

[0015] The data receiving end sends the subscription information of the message topic to the data sending end, receives a successful subscription response for the message topic, and the message topic is transformed into the subscribed topic of the data receiving end;

[0016] The data sending end records the logical address of the target service on the data receiving end, and the logical address is used for data transmission by the data sending end.

[0017] According to one aspect of the embodiments of this application, the data sending end obtains the data to be transmitted from its own deployed service, including:

[0018] The service deployed at the data sending end runs within a container, waiting for new data to be generated in the subscribed topic supported by the service.

[0019] The new data generated by the data sending end in response to the service is the data to be transmitted.

[0020] According to one aspect of the embodiments of this application, the communication mode includes a request-response mode, and before the data sending end obtains the data to be transmitted from its deployed service, the method further includes:

[0021] The data receiving end sends a message topic request information to the data sending end, the message topic is transformed into a requested topic of the data receiving end, and the data sending end supports the existing data of the requested topic as the data to be transmitted in response to the request information of the data sending end.

[0022] According to one aspect of the embodiments of this application, the communication mode includes a request-response mode and a publish-subscribe mode. Before the data sending end obtains the data to be transmitted from its deployed service, the method further includes:

[0023] The service deployed on the data sending end obtains the permission level information of the data receiving end based on the request information or subscription information sent by the data receiving end;

[0024] The service deployed on the data sending end performs authentication through the permission level information of the data receiving end to determine that the data receiving end is a data open object, and the data open object is authorized to obtain the data to be transmitted.

[0025] According to one aspect of an embodiment of this application, the data sending end sends the data to be transmitted to the data receiving end according to the communication mode, including:

[0026] For the acquired data to be transmitted, the data sending end performs data caching in the corresponding message queue according to the communication mode applicable to the data to add a new queue message. The newly added queue message includes the logical address of the target service, the message topic, and the data.

[0027] The message queue is split into individual messages, and the resulting communication mode is used as an identifier to encapsulate the message subject and data packet to obtain the message to be transmitted.

[0028] Based on the logical address of the target service, the communication mode transmits the packet-obtained message to the data receiving end, thus completing the message transmission between services.

[0029] According to one aspect of the embodiments of this application, the step of performing data caching in the corresponding message queue to add new queue messages according to the communication mode includes:

[0030] In the publish-subscribe mode, for new data generated on a subscribed topic, the logical addresses of the subscribed topic records are traversed, and the new data of the subscribed topic at the logical address is passed to the message queue corresponding to the publish-subscribe mode to add a queue message.

[0031] According to one aspect of the embodiments of this application, this application provides a data interconnection device between industrial control equipment, including:

[0032] In contrast to the acquisition of the data, the industrial control equipment running the target service is the data receiving end, while other industrial control equipment that sends the data is the data sending end;

[0033] The device for data interconnection between industrial control equipment includes:

[0034] The acquisition module is used by the data sending end to acquire the data to be transmitted from the service it has deployed, and the data has an applicable communication mode.

[0035] The sending module is used by the data sending end to send the data to be transmitted to the data receiving end according to the communication mode;

[0036] The receiving module is used by the target service to obtain the data to be transmitted received by the data receiving end, and to complete the data interconnection between the industrial control devices.

[0037] According to one aspect of an embodiment of this application, the sending module includes:

[0038] The caching module is used to cache the acquired data to be transmitted. The data sending end performs data caching in the corresponding message queue according to the communication mode applicable to the data to add a new queue message. The newly added queue message includes the logical address of the target service, the message topic, and the data.

[0039] The splitting module is used to split the message queue one by one, and use the obtained communication mode as an identifier to encapsulate the message topic and data packet to obtain the message to be transmitted.

[0040] The transmission unit is used to transmit the message to be transmitted from the packet obtained by the communication mode to the data receiving end according to the logical address of the target service, thereby completing the message transmission between services.

[0041] According to one aspect of an embodiment of this application, this application provides an industrial control device, including:

[0042] Memory, which stores readable instructions for industrial control equipment;

[0043] The processor reads readable instructions for industrial control equipment stored in the memory to execute any of the methods described above.

[0044] In this embodiment, to enable interaction between a large number of industrial control devices (ICDs), each ICD is deployed with at least one service. The service running on one ICD is designated as the target service for data acquisition. The ICD running the target service is the data receiver, and other ICDs sending the data are data senders. The method for data interconnection between ICDs includes: first, the data sender acquires the data to be transmitted from its deployed service, which has an applicable communication mode; second, the data sender sends the data to be transmitted to the data receiver according to the communication mode; and finally, the target service acquires the data received by the data receiver, completing the data interconnection between the ICDs.

[0045] Data interconnection between industrial control devices is achieved through services deployed on the devices, avoiding the need for applications to act as "intermediaries." Therefore, even with a large number of industrial control devices, applications do not need to use a lot of computing resources to help them achieve data interconnection. This avoids dependence on applications in the implementation of data interconnection and improves the efficiency of interaction and cooperation between industrial control devices because applications are not needed as "intermediaries" for data interconnection.

[0046] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.

[0047] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0048] The above and other objectives, features and advantages of this application will become more apparent from the detailed description of exemplary embodiments thereof with reference to the accompanying drawings.

[0049] Figure 1 An architecture diagram according to one embodiment of this application is shown.

[0050] Figure 2 A schematic diagram showing the identifiers corresponding to three communication modes according to one embodiment of this application is illustrated.

[0051] Figure 3 An example diagram of a message to be transmitted according to an embodiment of this application is shown.

[0052] Figure 4 A flowchart of a data interconnection method between industrial control devices according to an embodiment of this application is shown.

[0053] Figure 5 A rough schematic diagram is shown of a data transmitter using broadcast mode to send a message to be delivered according to an embodiment of this application.

[0054] Figure 6 A schematic diagram illustrating a data transmitter using broadcast mode to send a message according to an embodiment of this application is shown.

[0055] Figure 7 The diagram illustrates a flowchart of a data transmitter initiating a broadcast for device discovery when the communication mode between the data receiver and the data transmitter according to an embodiment of the present application is a broadcast mode.

[0056] Figure 8 A flowchart illustrating the process of a data transmitter using broadcast mode to take a device offline according to an embodiment of this application is shown.

[0057] Figure 9 The flowchart illustrates a method for data interconnection between industrial control devices, which includes a publish-subscribe communication mode according to an embodiment of this application, before the data sending end obtains the data to be transmitted from its own deployed service.

[0058] Figure 10 A flowchart illustrating how a data sender, according to an embodiment of this application, obtains data to be transmitted from its deployed service is shown.

[0059] Figure 11 The diagram illustrates a flowchart of a data interconnection method between industrial control devices before the data sending end obtains the data to be transmitted from its deployed service, according to an embodiment of this application.

[0060] Figure 12 A flowchart illustrating how a data transmitter sends the data to be transmitted to a data receiver according to a communication mode, based on an embodiment of this application, is shown.

[0061] Figure 13 A rough flowchart illustrating the data interconnection between the data receiver and the data sender according to an embodiment of this application, when the communication mode between the data receiver and the data sender is a publish-subscribe mode, is shown.

[0062] Figure 14 A detailed flowchart illustrating data interconnection when the communication mode between the data receiver and the data sender according to an embodiment of this application is a publish-subscribe mode is shown.

[0063] Figure 15 The diagram illustrates a scenario where, according to an embodiment of this application, the communication mode between a data receiver and a data sender is a publish-subscribe mode, and the data receiver subscribes to the data sender's operational information.

[0064] Figure 16 A rough flowchart illustrating the data interconnection between the data receiver and the data sender when the communication mode between them according to an embodiment of this application is a request-response mode is shown.

[0065] Figure 17 A detailed flowchart illustrating the data interconnection between the data receiver and the data sender in a request-response mode according to an embodiment of this application is shown.

[0066] Figure 18 This illustration shows a schematic diagram of a data receiver requesting hardware resource information from a data sender when the communication mode between the data receiver and the data sender according to an embodiment of this application is a request-response mode.

[0067] Figure 19 A schematic diagram of hardware resource information according to another embodiment of this application is shown.

[0068] Figure 20 The illustration shows a flowchart of a process where the data receiver requests hardware resource information from the data sender for authentication when the communication mode between the data receiver and the data sender according to an embodiment of the present application is a request-response mode.

[0069] Figure 21 The diagram illustrates a request from the data receiver to control the data sender when the communication mode between the data receiver and the data sender according to an embodiment of the present application is a request-response mode.

[0070] Figure 22 A schematic diagram of a data interconnection device between industrial control devices according to an embodiment of this application is shown.

[0071] Figure 23 A schematic diagram of a transmitting module according to an embodiment of this application is shown.

[0072] Figure 24 A structural diagram of an industrial control device capable of operating an interconnection method between industrial control devices according to an embodiment of this application is shown. Detailed Implementation

[0073] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make the description of this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The drawings are merely illustrative of this application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.

[0074] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more exemplary embodiments. Numerous specific details are provided in the following description to give a full understanding of exemplary embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced with one or more of the specific details omitted, or other methods, components, steps, etc., can be employed. In other instances, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.

[0075] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0076] Please see Figure 1 , Figure 1 An architecture diagram according to an embodiment of this application is shown. The architecture may include: at least one industrial control device as a data transmitter 11, and at least one industrial control device as a data receiver 12, for receiving data transmitted by the data transmitter 11, and realizing data interconnection between the data transmitter 11 and the data receiver 12 through the execution of the method implemented in this application.

[0077] Some technical solutions in the embodiments of this application can be based on, for example... Figure 1 The system architecture shown or its variants are used for specific implementation.

[0078] The data interconnection method between industrial control devices described in this application is accomplished through services deployed on the industrial control devices. It should be clarified that industrial control devices refer to machines and equipment controlled by industrial control computers in industrial production to achieve automated or semi-automated operation, such as textile machinery, lifting machinery, printing machinery, and transportation machinery. More specifically, an example is a turnstile at a station entrance / exit point in transportation machinery.

[0079] Before interconnecting industrial control equipment, services corresponding to the usage requirements of each piece of equipment should be deployed on each device. It's important to clarify that a service refers to program code deployed on the operating system of the industrial control equipment, used to directly receive user operation commands or operation commands from applications deployed on the computer, thereby driving the industrial control equipment to perform specific functions.

[0080] It needs to be further clarified that the target service is the service that enables interaction and cooperation between multiple industrial control devices by acquiring data from the message subject of the data sender or controlling the operation of the data sender's functions. The configuration and implementation of the target service on the industrial control devices can be based on the needs of application functionality or on the user's desired cooperative effect between the industrial control devices. For functions that require interaction and cooperation between industrial control devices, at least one service will be designated as the target service. This target service is used to implement the function desired by the application or the user, and the number of target services must be at least one.

[0081] The industrial control equipment deployed with the target service acts as the data receiving end; the industrial control equipment that provides data or functional support to the target service through its own deployed service acts as the data sending end. The data receiving end and the data sending end use the data interconnection method described in this application to interconnect data, thereby completing the interaction and cooperation between the industrial control equipment.

[0082] It should be further clarified that when the data receiving end and the data sending end interconnect data in one embodiment of this application, a specific communication protocol is used. This communication protocol supports the above-mentioned broadcast mode, publish-subscribe mode and request-response mode.

[0083] Specifically, under this communication protocol, the format of the message to be transmitted includes three parts: (1) Identifier, which is used to indicate the communication mode applicable to the data to be transmitted; (2) Subject, which is used to indicate the message subject to which the data to be transmitted belongs in the message to be transmitted; and (3) Data to be transmitted.

[0084] Please see Figure 2 , Figure 2 A schematic diagram illustrating the identifiers corresponding to three communication modes according to an embodiment of this application is shown. Publish / Subscribe (Encrypted) represents the publish-subscribe mode; Request / Response (Encrypted) represents the request-response mode; Broadcast (Encrypted) represents the broadcast mode; and Encrypted indicates that the data portion is encrypted in the above modes.

[0085] Please see Figure 3 , Figure 3 An example diagram of a message to be transmitted according to an embodiment of this application is shown. As shown, a message to be transmitted includes an identifier, a message subject, and data to be transmitted, separated by spaces. The data to be transmitted is divided into two modes: unencrypted and encrypted.

[0086] In sending and receiving messages, the aforementioned specific protocol is used. On the one hand, it is compatible with three communication modes: request-response mode, publish-subscribe mode, and broadcast mode. It is not necessary to change the message format of the messages to be transmitted because different industrial control devices use different communication modes. On the other hand, it also avoids the situation where data interconnection cannot be achieved due to different communication protocols used in the data interconnection of multiple industrial control devices.

[0087] Please refer to the details. Figure 4 , Figure 4A flowchart illustrating a data interconnection method between industrial control devices according to an embodiment of this application is shown. Each industrial control device is deployed with at least one service, with the service running on one industrial control device serving as the target service for acquiring data. The industrial control device running the target service is the data receiving end, and other industrial control devices sending the data are data sending ends. This application embodiment provides the steps of a data interconnection method between industrial control devices, including:

[0088] Step S410: The data sending end obtains the data to be transmitted from its own deployed service, and the data has an applicable communication mode.

[0089] Step S420: The data sending end sends the data to be transmitted to the data receiving end according to the communication mode;

[0090] Step S430: The target service obtains the data received by the data receiving end and completes the data interconnection between industrial control devices.

[0091] The above three steps are described in detail below.

[0092] In step S410, the data sending end refers to the industrial control equipment that provides functional response and data support for the implementation of the target service. The data sending end is deployed with a service that responds to the target service. This service obtains the corresponding data from the industrial control equipment, i.e., the data sending end, as the data to be transmitted based on the needs of the target service. The data to be transmitted is used to send to the data receiving end to realize the feedback of data support or functional response to the needs of the target service.

[0093] It needs to be clarified that the feedback for the functional response can be specifically manifested as follows: when the target service requires the data sender to run its own configured specific functions to realize the interaction and cooperation between the data sender and the data receiver, the industrial control equipment where the target service is located, as the data receiver, will send a control request to the data sender through the operation of the target service, thereby controlling the operation of the corresponding function in the data sender; the data sender will provide corresponding feedback to the data receiver in response to the control request, that is, the feedback of the functional response, such as feedback of successful request, or feedback of failed request and the reason for the failure.

[0094] It should be further clarified that the data to be transmitted obtained by the data sending end includes feedback data generated by the data sending end in response to requests or subscriptions related to the target service, as well as broadcast data issued by the service deployed on the data sending end based on its own settings, such as offline broadcasts, to indicate that the data sending end is offline and no longer provides data support and functional response.

[0095] It is further important to clarify that each piece of data to be transmitted has a corresponding communication mode, including publish-subscribe, request-response, and broadcast modes. The communication mode used for the data to be transmitted depends on the communication mode used by the data receiver to request data support or a functional response. Exceptionally, in broadcast mode, the data sender can choose to send the data to be transmitted to the data receiver via broadcast even without requesting data support or a functional response from the data receiver.

[0096] In one embodiment of this application, when the communication mode of the data to be transmitted is broadcast, the service deployed on the data sending end inputs the data to be transmitted and the message topic to which the data to be transmitted belongs into the broadcast message queue of the data sending end for caching, and obtains the queue message.

[0097] The message broadcasting unit at the data receiving end encapsulates the identifier corresponding to the broadcast mode, the data to be transmitted, and the message topic to which the data to be transmitted belongs to obtain the message to be transmitted. The message broadcasting unit sends the message to be transmitted to all industrial control devices within the local area network. The message broadcasting unit refers to a functional unit at the data sending end used in broadcast mode for interconnection between industrial control devices to send messages to be transmitted and to receive messages to be transmitted broadcast by other industrial control devices.

[0098] If industrial control devices within the same local area network are configured to accept broadcast messages, they will automatically receive the broadcast messages from the data sender. For an example, please refer to [link to example]. Figure 5 , Figure 5 A rough schematic diagram is shown illustrating a data transmitter using broadcast mode to send a message according to an embodiment of this application. Figure 5 As shown, the data sender indiscriminately transmits the message to be delivered (subject + data). If the industrial control device is configured to accept broadcast topics, it will receive the message to be delivered broadcast by the data sender. If it is not configured to accept broadcast topics, it will not receive the message to be delivered broadcast by the data sender. Please refer to [link / reference]. Figure 6 , Figure 6 A schematic diagram illustrating a data transmitter using broadcast mode to send a message according to an embodiment of this application is shown. Figure 6 As shown, the data sender directly sends the message to be transmitted to the data receiver. The message to be transmitted includes: broadcast (corresponding to the identifier in the communication protocol) and topic data (corresponding to the message topic in the communication protocol, and data). Among them, broadcast means broadcast; topic data means topic data.

[0099] In another embodiment of this application, when the data sender goes offline, it broadcasts an offline message a set number of times or for a set time. The offline message indicates that the data sender will no longer respond to data requests or subscriptions, nor will it respond to function control requests from the target service. When the data sender comes online, it broadcasts an online message a set number of times or for a set time, indicating that the data sender can respond to data requests or subscriptions, and can also respond to function control requests from the target service. It should be noted that the above-mentioned method of transmitting messages via broadcast can be performed not only in a local area network (LAN) but also in a wide area network (WAN). For example, in broadcast transmission, the data receiver sends the message to be transmitted to a broadcast address, and all devices on the network can obtain the message by accessing the broadcast address.

[0100] The broadcast address refers to the address of a message to be transmitted in broadcast mode on a network. A broadcast address is a special IP address (Internet Protocol Address) used to identify all industrial control devices on the network. When a message arrives at a router or switch in the network, it forwards the message to all interfaces on the network to ensure that all industrial control devices can receive the message.

[0101] Please see Figure 7 , Figure 7 The illustration shows a flowchart of a data transmitter initiating a broadcast for device discovery when the communication mode between the data receiver and the data transmitter according to an embodiment of this application is broadcast mode. It should be noted that when the data transmitter broadcasts online information, it carries its own hardware resource information, which can be based on the settings of the data transmitter itself.

[0102] like Figure 7 As shown, the service deployed on the data sending end broadcasts its own hardware resource information as the message to be transmitted to other industrial control devices in the same local area network. After receiving the message to be transmitted broadcast by the data sending end, the other industrial control devices can know that the data sending end is online and what data can be requested or what functional responses can be made. This allows the target service on the data receiving end to subscribe to or request data from the data sending end, enabling the data sending end to provide data support or functional responses.

[0103] The message to be transmitted at the data sending end includes: broadcast (identifier), device-info (message subject), and (basic, device_id, os, container, hw, uart, res, pl) which are the data to be transmitted. Specifically, broadcast: broadcast (identifier, indicating the communication mode); device-info: device information (message subject); basic: basic device information; device_id: device ID; os: operating system; container: whether it is running within a container; hw: hardware resource list; uart: device serial port; res: list of operable serial port ports; pl: port operation permissions (controls devices with permissions greater than this value can operate the serial port).

[0104] When the data sender does not want to directly broadcast its own hardware resource information, it hides this information in the broadcast message to be transmitted. The transmitted data only contains the sender's `broadcast` (identifier), `device-info` (message subject), and the data content itself (`basic`, `device_id`, `os`, `container`). Here, `broadcast` indicates the communication mode; `device-info` is the device information (message subject); `basic` provides basic device information; `device_id` is the device ID; `os` indicates the operating system; and `container` indicates whether the device is running within a container.

[0105] In another embodiment of this application, the data transmitter also informs other jointly controlled devices that the data transmitter has gone offline and will no longer provide data support or functional response in the manner described above. Please refer to [link to relevant documentation]. Figure 8 , Figure 8 A flowchart illustrating the process of a data transmitter using broadcast mode to take a device offline according to an embodiment of this application is shown. Figure 8 As shown, the data sender sends an offline broadcast to the data receiver.

[0106] The data to be transmitted contains only the broadcast (identifier) ​​of the data sender, device-info (message topic), and (basic, device_id, os, container) which are the data contents to be transmitted.

[0107] Wherein: broadcast: broadcast (identifier, indicating the communication mode); device-info: device information (message topic); basic: basic device information; device_id: device ID; os: operating system; container: whether it is running inside a container.

[0108] In another embodiment of this application, when the data receiving end sends a subscription message to the data sending end in a publish-subscribe mode to subscribe to the message topic of the data sending end, the communication mode of the data to be transmitted, as described above, depends on which communication mode the data receiving end uses to request data support or functional response from the data receiving end. Therefore, in the current embodiment, the communication mode of the data to be transmitted corresponds to the data receiving end's subscription to the message topic, which is a publish-subscribe mode.

[0109] Specifically, please refer to Figure 9 , Figure 9 The flowchart illustrates a data interconnection method between industrial control devices according to an embodiment of the present application, where the communication mode includes a publish-subscribe pattern, and the data sending end obtains the data to be transmitted from its deployed service. The present application provides a flowchart of the steps of a data interconnection method between industrial control devices, including:

[0110] Step S301: The data receiving end sends the subscription information of the message topic to the data sending end, receives a successful subscription response for the message topic, and the message topic is changed to the subscribed topic of the data receiving end.

[0111] Step S302: The data sending end records the logical address of the target service on the data receiving end. The logical address is used for data transmission by the data sending end.

[0112] The two steps described above are described in detail below.

[0113] In step S301, when the communication mode between the data receiver and the data sender is publish-subscribe, the target service caches the subscription information and the logical address of the data sender in the publish-subscribe message queue of the data sender to obtain the corresponding queue message. The subscription information includes the message topic that the data receiver wants to subscribe to, as well as the basic information of the data receiver. The message topic indicates the message topic on which the target service subscribes to data from the data sender.

[0114] In one embodiment of this application, the basic information of the data receiving end includes: device ID, operating system, and whether it is running inside a container.

[0115] The message subscription unit at the data receiver splits the queue messages to obtain the message topic, basic information of the data receiver, and the logical address of the data sender. It then generates an identifier corresponding to the publish-subscribe mode. The message topic, basic information of the data receiver, and the identifier are repackaged to obtain the subscription information. Finally, the data receiver sends the subscription information to the message publishing unit at the data sender based on the logical address of the data sender. It is important to clarify that the message subscription unit refers to a functional unit at the data receiver that sends subscription information and receives messages to be delivered from the data sender during data interconnection using the publish-subscribe mode. The message publishing unit refers to a functional unit at the data sender that receives subscription information and publishes messages to be delivered during data interconnection using the publish-subscribe mode.

[0116] When receiving a subscription message, the message publishing unit of the data sending end obtains the source of the subscription message, which is the logical address of the data receiving end. Based on the identifier, the message publishing unit of the data sending end loads the obtained logical address of the data sending end and the subscription information into the message queue of the data sending end's subscription and publish mode to perform caching and obtain the corresponding queue message.

[0117] The service deployed on the data sending end reads queue messages from the message queue in the publish-subscribe pattern, responds to the subscribed messages, and receives a successful subscription response for the message topic subscribed to by the subscribed message. At the same time, the service deployed on the data sending end transforms the subscribed message topic into the subscribed topic of the data receiving end.

[0118] The service deployed on the data sending end caches the subscription success response and the logical address of the data receiving end in the publish-subscribe message queue, obtaining the corresponding queue message. The message publishing unit on the data sending end retrieves the queue message, splits it to obtain the subscription success response and the logical address of the data receiving end. The message publishing unit on the data sending end then sends the subscription success reply to the data receiving end based on the logical address of the data receiving end.

[0119] In step S302, after sending a subscription success response to the data receiver based on the logical address of the data receiver, the data sender records the logical address of the data sender, which is used by the data sender to provide the logical address of the data receiver when it needs to send data to the data receiver.

[0120] Please see Figure 10 , Figure 10 A flowchart illustrating a data sending end obtaining data to be transmitted within its deployed service according to an embodiment of this application is shown. This application provides step S410 of a data sending end obtaining data to be transmitted within its deployed service, including:

[0121] Step S411: The service deployed on the data sending end runs in a container, and new data is generated in the subscribed topics supported by the service.

[0122] In step S412, the data sending end obtains new data from the service, which is the data to be transmitted.

[0123] The two steps described above are described in detail below.

[0124] It should be clarified that each industrial control device is equipped with a container in this embodiment, so that the same application and services can be deployed and run on each industrial control device even if the operating system and / or core processor are different. This allows the services deployed on any industrial control device to interact with the services deployed on other industrial control devices and to control other industrial control devices without being affected by the inconsistency of the operating system and / or core processor of the industrial control devices.

[0125] In step S411, the service deployed at the data sending end runs within a container, waiting for the subscribed topic to generate new data.

[0126] In step S412, the data sender obtains the data generated by the subscribed topic, which is the data to be transmitted, corresponding to the subscription message of the data receiver. The communication mode of the data to be transmitted is publish-subscribe mode.

[0127] In another embodiment of this application, when the communication mode between the data sender and the data receiver is a request-response mode, the target service caches the request information and the logical address of the data sender in the message queue of the request-response mode to obtain the corresponding queue message.

[0128] The request information includes basic information about the data receiver and the message topic to be requested. The message topic indicates which message topic the target service is requesting data from the data sender.

[0129] The message request unit at the data receiver splits the queue message to obtain the message subject, basic information of the data receiver, and logical address of the data sender. It then generates an identifier corresponding to the request mode and repackages the message subject, basic information of the data receiver, and identifier into a request message. The message request unit at the data sender sends the request message to the data sender based on the logical address of the data receiver.

[0130] It is important to clarify that a message request unit refers to a functional unit on the data receiving end that sends request information and receives messages to be delivered from the data sending end during data interconnection using a request-response mode. Correspondingly, a message response unit is also deployed on the data receiving end. This message response unit is a functional unit on the data sending end that receives request information and responds to messages to be delivered during data interconnection using a publish-subscribe mode.

[0131] The message response unit of the data sender obtains the logical address and subscription information of the data sender based on the received request information, and sends the subscription information and the logical address of the data receiver to the message queue of the publish-subscribe mode to perform caching and obtain the corresponding queue message.

[0132] The service deployed on the data receiving end retrieves queue messages from the request-response message queue and splits them to obtain the request information. This service reads the request information and determines whether it possesses the message topic requested in the request information. If so, it updates the requested message topic in the request information to the requested topic on the data receiving end. Then, the service retrieves the already generated data for the requested topic as the data to be transmitted. The communication mode for this data to be transmitted is request-response mode.

[0133] Please see Figure 11 , Figure 11 This document illustrates a flowchart of a data interconnection method between industrial control devices before the data sending end obtains the data to be transmitted from its deployed service, according to an embodiment of this application. The communication modes include request-response mode and publish-subscribe mode. This application provides the steps of a data interconnection method between industrial control devices, including:

[0134] Step S501: The service deployed on the data sending end obtains the permission level information of the data receiving end based on the request information or subscription information sent by the data receiving end.

[0135] In step S502, the service deployed on the data sending end performs authentication through the permission level information of the data receiving end to determine that the data receiving end is a data open object, and the data open object is authorized to obtain the data to be transmitted.

[0136] The two steps described above are described in detail below.

[0137] In step S501, the service deployed on the data sending end, after obtaining the queue message from the message queue of the corresponding communication mode, splits and reads the queue message to obtain subscription information or request information, and before updating the message topic subscribed to by the subscription message to the subscribed topic, or before updating the message topic requested by the request message to the requested topic, obtains the permission level of the data receiving end contained in the subscription information or request information.

[0138] In step S502, the service deploying the data receiver compares the permission level of the data receiver with the permission level required to obtain the data of the message topic. If the permission level of the data receiver is lower, the service deployed on the data receiver will no longer provide any feedback or response to the received subscription message or request message.

[0139] In step S420, the data sending end encapsulates the data to be transmitted according to the communication mode of the data to be transmitted to obtain the message to be transmitted, and loads the message to be transmitted into the message queue of the data sending end for transmission to the data receiving end.

[0140] Please see Figure 12 , Figure 12 A flowchart illustrating how a data transmitter sends data to a data receiver according to a communication mode, based on an embodiment of this application, is shown. This application provides step S420, whereby the data transmitter sends the data to a data receiver according to the communication mode, including:

[0141] Step S421: For the acquired data to be transmitted, the data sending end performs data caching in the corresponding message queue according to the communication mode applicable to the data to add a new queue message. The new queue message includes the logical address of the target service, the message topic, and the data.

[0142] Step S422: Split the message queue messages one by one, and use the obtained communication mode as an identifier to encapsulate the message subject and data packet to obtain the message to be transmitted;

[0143] Step S423: Based on the logical address of the target service, the message to be transmitted is sent from the packet obtained by the communication mode to the data receiving end, thus completing the message transmission between services.

[0144] The three steps described above are described in detail below.

[0145] In step S421, the service deployed on the data sending end, after acquiring the data to be transmitted, caches the acquired data to be transmitted, the message topic, and the logical address of the target service in the message pair queue of the corresponding communication mode to form the corresponding queue message.

[0146] The logical address of the target service originates from the subscribed message or the requested message; the message topic is the subscribed topic or the requested topic that produces the data to be processed; the communication mode of the data to be transmitted depends on whether the data to be transmitted was generated by the subscribed topic or the requested topic.

[0147] If the data to be transmitted is generated by a subscribed topic, then the communication mode for the data to be transmitted is the publish-subscribe mode; if the data to be processed is generated by a requested topic, then the communication mode for the data to be transmitted is the request-response mode.

[0148] In one embodiment of this application, when the communication mode is publish-subscribe mode, the data generated by the subscribed topics is used as the data to be transmitted. The logical addresses of the data receiving ends recorded by the subscribed topics are traversed, and the data is cached in the publish-subscribe message queue in the data sending end according to the logical addresses of different data receiving ends, and queue messages are generated respectively.

[0149] In step S422, the message sending unit of the data sender obtains a queue message from the message queue, splits the queue message to obtain the logical address of the data receiver, and generates an identifier representing the communication mode applicable to the data to be processed. Then, the identifier, the data to be processed, and the message subject are encapsulated to obtain the message to be transmitted. The message sending unit of the data sender includes a message publishing unit and a message acknowledgment unit, used to send the message to be transmitted and receive messages sent by the data receiver. Correspondingly, the data receiver is equipped with a message receiving unit, which includes a message subscription unit and a message request unit, used to receive the message to be transmitted and send messages to the data sender.

[0150] In step S423, the message sending unit of the data sending end sends the message to be delivered to the data receiving end according to the logical address of the data receiving end. When the communication mode of the message to be delivered is publish-subscribe mode, the message to be delivered is sent using the message publishing unit; when the communication mode of the message to be delivered is request-response mode, the message to be delivered is sent using the message response unit.

[0151] In step S430, the information receiving unit of the data receiving end receives the message to be transmitted, splits it, identifies the identifier contained in the message to be transmitted to obtain the communication mode corresponding to the message to be transmitted, and then performs caching on the data to be transmitted and the message subject in the message queue of the corresponding communication mode to obtain the queue message. The target service retrieves the queue message from the message queue and splits the queue message to obtain the data to be transmitted.

[0152] The following describes the application of the method in this application in specific scenarios through some specific embodiments.

[0153] Please see Figure 13 , Figure 13This diagram illustrates a rough flowchart of the data interconnection between a data receiver and a data sender in a publish-subscribe mode according to an embodiment of this application. The data receiver sends subscription information to the data sender, including a subscription topic, i.e., a subscribed message topic. The data sender obtains the data to be delivered for the subscription topic based on the subscription information and publishes the message to be delivered to the data sender. The message to be delivered includes the subscription topic and the data generated by the subscription topic.

[0154] Please see Figure 14 , Figure 14 A detailed flowchart illustrating data interconnection when the communication mode between the data receiver and the data sender according to an embodiment of this application is a publish-subscribe mode. Figure 14 As can be seen in one embodiment of this application, if the communication mode between the data receiving end and the data sending end is a publish-subscribe mode, the data receiving end sends subscription information to the data sending end, the data sending end receives the subscription information, and sends a subscription success confirmation to the data receiving end to indicate that the data sending end has accepted the data request from the data receiving end. Then, the IP address of the data receiving end is recorded and used to publish new data generated by the message topic it has subscribed to to the data receiving end. If multiple data receiving ends have subscribed to the same message topic, all the IP addresses of the data receiving ends are recorded. When the message topic subscribed to by the data receiving end generates new data, the data generated by the subscribed topic is used as the data to be transmitted. The logical addresses of the data receiving ends recorded in the subscribed topics are traversed, and according to the logical addresses of different data receiving ends, they are cached sequentially in the publish-subscribe message queue in the data sending end, and queue messages are generated respectively. The message publishing unit of the data sending end obtains the queue message from the message queue, splits the queue message to obtain the logical address of the data receiving end, and generates an identifier representing the communication mode applicable to the data to be processed. Then, the identifier, the data to be processed, and the message topic are encapsulated to obtain the message to be transmitted and sent to the data receiving end.

[0155] After obtaining the data to be transmitted from the message to be transmitted, the target service at the data receiving end will also send a publish acceptance response back to the data sending end to indicate that the data receiving end has received the data to be transmitted.

[0156] However, if the target service does not send a publish / accept response to the data sender within the set time, it means that the data receiver has not successfully received the data to be transmitted. In this case, the data sender will resend the message to be transmitted to the data receiver, or send a message indicating that the data transmission failed.

[0157] Please see Figure 15 , Figure 15This diagram illustrates a scenario where, according to an embodiment of this application, the communication mode between a data receiver and a data sender is a publish-subscribe mode, and the data receiver subscribes to the data sender's operational information. Figure 15 It can be seen that the target service sends subscription information to the data sender via the data receiver to subscribe to the power consumption data of the data sender. The subscription message includes: subscribe (the identifier in the corresponding communication protocol), power-info (the message topic in the corresponding communication protocol), and (device_id, os, container) basic information of the data receiver, which is the data part in the communication protocol.

[0158] Where `subscribe` indicates subscription; `power-info` provides power consumption information (indicating the message topics the data receiver wants to subscribe to); `device_id` is the device ID; `os` is the operating system; and `container` indicates whether it's running within a container. After receiving the subscription message, the sending end updates the data receiver's subscribed topics to the subscribed topics and periodically retrieves new data generated by the subscribed topics, sending it to the data receiver. As... Figure 15 The published information includes: publish (the identifier in the communication protocol), power-info (the message topic in the communication protocol), and (device_id, os, container, power, voltage, current) which are the basic information of the data receiving end, that is, the data part in the communication protocol.

[0159] publish: publish (identifier corresponding to the communication mode, corresponding to subscribe: subscribe); power-info power consumption information (to indicate the message topics that the data receiver wants to subscribe to) device_id: device ID; os: operating system; container: whether it is running in a container; power: the message topic being subscribed to; voltage: voltage, 219.2V; current: current: 3.7A.

[0160] Please see Figure 16 , Figure 16 This diagram illustrates a rough flowchart of the data interconnection between a data receiver and a data sender in a request-response mode according to an embodiment of this application. The data receiver sends request information to the data sender, including a requested message subject and requested data, such as basic data receiver information. The data receiver first determines whether it can request the relevant data based on the request subject in the request information. If it can, it responds to the request and sends a message to be transmitted to the data sender.

[0161] For details, please refer to Figure 17 , Figure 17 This document illustrates a detailed flowchart of the data interconnection between a data receiver and a data sender in a request-response mode according to an embodiment of this application. The data receiver sends request information to the data sender, which includes a request topic and requested data. The data receiver first sends a message to be transmitted to the data sender based on the request topic in the request information. The request information includes: request and topic data, where request (the request corresponds to the communication mode) and topic data (the message topic data of the request). The message to be transmitted in response includes: response and topic data, where response (the response corresponds to the communication mode) and topic data (the message topic data of the response).

[0162] Please see Figure 18 , Figure 18 This illustration shows a schematic diagram of a data receiver requesting hardware resource information from a data sender when the communication mode between the data receiver and the data sender according to an embodiment of this application is a request-response mode. In this embodiment, the data sender broadcasts its own basic information as a message to be transmitted to other industrial control devices acting as data receivers. The data receivers then learn that the data sender is online and can provide data support or a functional response.

[0163] The data receiver sends a request to the data sender for hardware resource information from the sender. This request includes `request` (an identifier in the communication protocol), `device-info` (a message topic in the communication protocol), and basic data receiver information (`basic`, `device_id`, `os`, `container`, `pl`). `request`: an identifier for the communication mode, indicating a request-response pattern; `device-info`: device information (the message topic of the request); `basic`: basic device information; `device_id`: device ID; `os`: operating system; `container`: whether it's running within a container; `pl`: port access permissions (data receivers with permissions greater than this value can operate the serial port). Upon receiving the request, the service deployed on the data sender determines if the data receiver's permissions are greater than its port access permissions. If so, it sends the hardware resource information to the data receiver via a pending message from the data sender.

[0164] The message to be transmitted includes: response (the identifier in the corresponding communication protocol), device-info (the message topic in the corresponding communication protocol), and hardware resource information (basic, device_id, os, container, hw), corresponding to the data portion of the communication protocol. Specifically, broadcast: broadcast; device-info: device information; basic: basic device information; device_id: device ID; os: operating system; container: whether it is running inside a container; hw: hardware resource list; sound: audio port; led: lighting port.

[0165] Please refer to 19. Figure 19 A schematic diagram illustrating hardware resource information according to another embodiment of this application is shown. As... Figure 19 As shown, the following are listed: response, device-info, basic, device_id, os, container, hw, uart, res, pl.

[0166] Among them, response: response (identifier of communication mode); device-info: device information (the requested message subject); basic: basic device information; device_id: device ID; os: operating system; container: whether it is running in a container; hw: hardware resource list; uart: device serial port; res: list of operable ports of the serial port; pl: port operation permissions (controls devices with permissions greater than this value can operate the serial port).

[0167] Please see Figure 20 , Figure 20 This illustration shows a flowchart of a process where, according to an embodiment of this application, the communication mode between a data receiver and a data sender is a request-response mode, the data receiver requests hardware resource information from the data sender for authentication. Figure 20 The data sender shown broadcasts a message to be delivered in broadcast mode. This message includes: broadcast (an identifier in the communication protocol), device-info (the message topic in the communication protocol), and the broadcast content (basic, device_id, os, container, hw), which is the data portion of the communication protocol. Specifically, broadcast: broadcast; device-info: device information; basic: basic device information; device_id: device ID; os: operating system; container: whether it is running within a container; hw: a list of hardware resources. The data receiver determines that the data sender is online and can provide data support or functional response by obtaining the message to be delivered broadcast by the data sender.

[0168] Then, the data receiver sends a request to the data sender to request hardware resource information from the sender. The request information includes: `request` (an identifier in the communication protocol, indicating the request-response mode), `device-info` (the request message subject), and basic data receiver information (`basic`, `device_id`, `os`, `container`, `pl`, `hw`). Where `basic`: basic device information; `device_id`: device ID; `os`: operating system; `container`: whether it is running within a container; `pl`: port operation permissions (data receivers with permissions greater than this value can operate the serial port); and `hw`: a list of hardware resources.

[0169] After receiving the request from the data sender, the data sender sends the data receiver's PL (permission level, i.e., port operation permission) to the platform-side authentication center to authenticate the data receiver and determine whether it has the authority to obtain the data sender's hardware resource information. Upon receiving the authentication request, the authentication center sends the authentication result to the data sender, such as... Figure 20 In the authentication center's response to the data sender's authentication request, "result: ok" indicates that the authentication result of the authentication center is positive, signifying that the data receiver can obtain the hardware resource information of the data sender.

[0170] The data sender, based on the authentication result sent by the authentication center, sends a message to be transmitted, including its own hardware resource information, to the data receiver. In this embodiment, the message to be transmitted includes: response (an identifier in the communication protocol), device-info (a message topic in the communication protocol), and (basic, device_id, os, container, hw) hardware resource information, which is the data part of the communication protocol. Wherein, response: response; device-info: device information; basic: basic device information; device_id: device ID; os: operating system; container: whether it is running within a container; hw: hardware resource list; sound: audio port; led: lighting port.

[0171] Please see Figure 21 , Figure 21 This illustration shows a schematic diagram of a data receiver requesting control of a data sender when the communication mode between the data receiver and the data sender according to an embodiment of this application is a request-response mode. As... Figure 21As shown, the target service sends a request to control the device from the data receiver to the data sender. The request information includes: `request` (an identifier in the communication protocol, indicating the request-response mode), `device-handle` (the message subject of the request), and basic information of the data receiver (`basic`, `device_id`, `os`, `container`, `hw`, `led`), which is the data portion of the communication protocol. Where `basic`: basic device information; `device_id`: device ID; `os`: operating system; `container`: whether it's running inside a container; `hw`: hardware resource list; `led`: the object to be controlled; `value`: `off`: the desired control result (turning the light off).

[0172] The service deployed on the data receiving end receives the request message from the data sending end and, through the hardware interface deployed on the data receiving end, generates operation commands for the underlying hardware of the data receiving end. Based on these operation commands, the operating system on the data receiving end controls the corresponding hardware, such as the light (the control object mentioned in the request message), to turn off the light (as requested in the request message).

[0173] Next, the service deployed on the data receiving end uses the control result as the data to be transmitted. The content of the data to be transmitted includes: response (an identifier in the communication protocol, indicating the request-response mode), device-handle (the message subject of the request), (basic, device_id, os, container, hw, led), the control result, and basic information of the data sending end, which is the data part of the communication protocol. basic: basic device information; device_id: device ID; os: operating system; container: whether it is running inside a container; hw: hardware resource list; led (light): the object to be controlled; result, ok: control result (completion of the control requested in the request message).

[0174] The acquired data to be transmitted, message topic, and logical address of the target service are cached in the message pair queue of the request-response mode to form the corresponding queue message. The message response unit of the data sender obtains the queue message from the message queue, splits the queue message to obtain the logical address of the target service, and generates an identifier representing the request-response mode. Then, the identifier, the data to be processed, and the message topic are encapsulated to obtain the message to be transmitted. Finally, the message to be transmitted, which includes the control result, is sent to the data receiver.

[0175] Please see Figure 22 , Figure 22A schematic diagram of a data interconnection device between industrial control devices according to an embodiment of this application is shown. Relative to the acquisition of data, the industrial control device running the target service is the data receiver, and other industrial control devices sending data are the data senders. The data interconnection device between industrial control devices includes:

[0176] The acquisition module 610 is used by the data sender to acquire the data to be transmitted from the service it has deployed, and the data has an applicable communication mode.

[0177] The sending module 620 is used by the data sending end to send the data to be transmitted to the data receiving end according to the communication mode;

[0178] The receiving module 630 is used by the target service to obtain the data to be transmitted received by the data receiving end, and to complete the data interconnection between industrial control equipment.

[0179] Please see Figure 23 , Figure 23 A schematic diagram of a transmitting module according to an embodiment of this application is shown. The transmitting module includes:

[0180] The caching module 621 is used to cache the acquired data to be transmitted. The data sending end performs data caching in the corresponding message queue according to the communication mode applicable to the data to add a new queue message. The new queue message includes the logical address of the target service, the message topic, and the data.

[0181] The splitting module 622 is used to split the message queue message one by one, and use the obtained communication mode as an identifier to encapsulate the message subject and data packet to obtain the message to be transmitted.

[0182] The transmission unit 623 is used to transmit the message to be transmitted from the packet obtained by the target service to the data receiving end according to the logical address of the target service, thereby completing the message transmission between services.

[0183] The method for data interconnection between industrial control devices according to the embodiments of this application can be derived from... Figure 24 This is achieved using industrial control equipment. See below for reference. Figure 24 This application describes an industrial control device according to embodiments thereof. Figure 24 The industrial control equipment shown is merely an example and should not impose any limitations on the functionality and scope of application of the embodiments of this application.

[0184] like Figure 24 As shown, industrial control equipment may be represented in the form of general-purpose computing devices. Components of industrial control equipment may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including storage unit 820 and processing unit 810).

[0185] The storage unit stores program code that can be executed by the processing unit 810, causing the processing unit 810 to perform the steps described in the exemplary method description section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 810 can perform actions such as... Figure 2 The steps shown are as follows.

[0186] Storage unit 820 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 8201 and / or cache memory 8202, and may further include a read-only memory (ROM) 8203.

[0187] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0188] Bus 830 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0189] The industrial control equipment can also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable users to interact with the industrial control equipment, and / or any device that enables the industrial control equipment to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be performed through input / output (I / O) interface 850. Furthermore, the industrial control equipment can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 860. As shown in the figure, network adapter 860 communicates with other modules of the industrial control equipment via bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the industrial control equipment, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0190] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the method according to the embodiments of this application.

[0191] In an exemplary embodiment of this application, a computer program medium is also provided, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the methods described in the above method embodiments.

[0192] According to one embodiment of this application, a program product for implementing the methods in the above-described method embodiments is also provided. This product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of this invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0193] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0194] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0195] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0196] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0197] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0198] Furthermore, although the steps of the method in this application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.

[0199] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the method according to the embodiments of this application.

[0200] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the appended claims.

Claims

1. A method for data interconnection between industrial control devices, characterized in that, The industrial control device is deployed with at least one service, with the service running on the industrial control device serving as the target service for acquiring data; In contrast to the acquisition of the data, the industrial control equipment running the target service is the data receiving end, while other industrial control equipment that sends the data is the data sending end; The method for data interconnection between industrial control devices includes: The data receiving end sends the subscription information of the message topic to the data sending end and obtains a successful subscription response for the message topic. The message topic is then transformed into the subscribed topic of the data receiving end. The data sending end records the logical address of the data receiving end; if multiple data receiving ends subscribe to the same message topic, then the logical address of each data receiving end is recorded. The data sending end obtains the data to be transmitted in its own deployed service. The steps include: the service deployed on the data sending end runs in a container. When the subscribed topic supported by the service generates new data, the new data is obtained as the data to be transmitted, and the communication mode applicable to the data to be transmitted is determined to be the publish-subscribe mode. The data sending end sends the data to be transmitted to the data receiving end according to the communication mode; the steps include: traversing the logical addresses of the data receiving ends recorded in the subscribed topics, and according to the logical addresses of different data receiving ends, caching the logical addresses of the data receiving ends, the subscribed topics, and the data to be transmitted to the publish-subscribe message queue in the data sending end in sequence, forming queue messages respectively; The message publishing unit of the data sending end obtains and splits the queue messages from the publish-subscribe message queue to obtain the logical address of the data receiving end, generates an identifier representing the publish-subscribe mode, and encapsulates the identifier, the subscribed topic, and the data to be transmitted into a message to be transmitted, and sends the message to be transmitted to the corresponding data receiving end according to the logical address of the data receiving end. The target service obtains the data to be transmitted received by the data receiving end; the steps include: the data receiving end receives and splits the message to be transmitted, identifies the message to be transmitted as corresponding to the publish-subscribe mode according to the identifier, caches the obtained subscribed topics and the data to be transmitted to the message queue corresponding to the publish-subscribe mode, and the target service obtains the data to be transmitted from the message queue; After obtaining the data to be transmitted, the target service sends a publish / receive response to the data sender. If the data sender does not receive the publish / receive response within a set time, it resends the message to be transmitted to the data receiver, thus completing the data interconnection between the industrial control devices.

2. The method according to claim 1, characterized in that, The communication mode includes a request-response mode. Before the data sending end obtains the data to be transmitted from its deployed service, the method further includes: The data receiving end sends a message topic request information to the data sending end, the message topic is transformed into a requested topic of the data receiving end, and the data sending end supports the existing data of the requested topic as the data to be transmitted in response to the request information of the data sending end.

3. The method according to claim 1 or 2, characterized in that, The communication modes include request-response mode and publish-subscribe mode. Before the data sending end obtains the data to be transmitted from its deployed service, the method further includes: The service deployed on the data sending end obtains the permission level information of the data receiving end based on the request information or subscription information sent by the data receiving end; The service deployed on the data sending end performs authentication through the permission level information of the data receiving end to determine that the data receiving end is a data open object, and the data open object is authorized to obtain the data to be transmitted.

4. A data interconnection device between industrial control equipment, characterized in that, include: In relation to the acquisition of the data, the industrial control equipment running the target service is the data receiving end, while other industrial control equipment that sends the data is the data sending end; The device for data interconnection between industrial control equipment includes: The data receiving end sends the subscription information of the message topic to the data sending end and obtains a successful subscription response for the message topic. The message topic is then transformed into the subscribed topic of the data receiving end. The data sending end records the logical address of the data receiving end; if multiple data receiving ends subscribe to the same message topic, then the logical address of each data receiving end is recorded. The acquisition module is used by the data sending end to acquire the data to be transmitted in the service it has deployed, including: the service deployed on the data sending end runs in a container, when the subscribed topic supported by the service generates new data, the new data is acquired as the data to be transmitted, and the communication mode applicable to the data to be transmitted is determined to be the publish-subscribe mode; The sending module is used by the data sending end to send the data to be transmitted to the data receiving end according to the communication mode, including: traversing the logical addresses of the data receiving ends recorded in the subscribed topics, and according to the logical addresses of different data receiving ends, caching the logical addresses of the data receiving ends, the subscribed topics and the data to be transmitted in the publish-subscribe message queue in the data sending end in sequence, forming queue messages respectively; The message publishing unit of the data sending end obtains and splits the queue messages from the publish-subscribe message queue to obtain the logical address of the data receiving end, generates an identifier representing the publish-subscribe mode, and encapsulates the identifier, the subscribed topic, and the data to be transmitted into a message to be transmitted, and sends the message to be transmitted to the corresponding data receiving end according to the logical address of the data receiving end. The receiving module is used for the target service to obtain the data to be transmitted received by the data receiving end, including: the data receiving end receives and splits the message to be transmitted, identifies the message to be transmitted as corresponding to the publish-subscribe mode according to the identifier, caches the obtained subscribed topics and the data to be transmitted to the message queue corresponding to the publish-subscribe mode, and the target service obtains the data to be transmitted from the message queue; After obtaining the data to be transmitted, the target service sends a publish / receive response to the data sender. If the data sender does not receive the publish / receive response within a set time, it resends the message to be transmitted to the data receiver, thus completing the data interconnection between the industrial control devices.

5. An industrial control device, characterized in that, include: Memory, which stores readable instructions for industrial control equipment; The processor reads industrial control equipment readable instructions stored in the memory to execute the method described in any one of claims 1-3.

Citation Information

Patent Citations

  • Data transmission method and device for household appliances and computer readable storage medium

    CN107800597A