Data Interaction Method and Gateway Based on Mine Interconnection Operating System
By using a data interaction method between the heterogeneous network gateway and the mining equipment collaborative server, the problems of large conversion workload and poor stability in the data interaction between the mine interconnection operating system and the DCS control system are solved, achieving efficient and secure data interaction and protecting the core technology of the DCS system.
Patent Information
- Application Number
- CN202610982670.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-11-17
AI Technical Summary
In the existing technology, the data interaction process between the mine interconnection operating system and the DCS control system involves a large workload and poor stability in data format conversion, which poses a risk of leakage of core technologies.
The heterogeneous network gateway is used to interact with the mining equipment collaborative server. Active real-time data push is achieved through WebSocket network communication. The TCP protocol is used to maintain a long-term connection. Combined with redundant configuration and heartbeat mechanism, the stability and security of data interaction are ensured.
It reduces the workload of data format conversion, improves data interaction efficiency and stability, protects the core technology of the DCS system from being exposed, and realizes safe and efficient data interaction between the mine interconnection operating system and the DCS control system.
Smart Images

Figure CN123123374A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data analysis technology, and in particular to a data interaction method and gateway based on a mining interconnection operating system. Background Technology
[0002] Currently, the adapter pattern is used to configure the API (Application Programming Interface) of the mining interconnection operating system onto the interface relied upon by the DCS control system for data exchange. The underlying data structure or communication interface of the DCS control system is the core technology of the DCS manufacturer. Using the adapter pattern to connect the DCS control system interface requires exposing the underlying communication to the mining system manufacturer, posing a risk of core technology leakage. The mining interconnection operating system is an industrial-grade IoT operating system for the mining industry based on HarmonyOS, namely the Mining Hong system. Traditional DCS control systems mostly use Windows or Linux systems, whose API interfaces are almost incompatible with the Mining Hong system. An adapter is needed to convert the received data commands from the Mining Hong system into a data format that the DCS control system can recognize before transmitting them to the DCS control system, and then convert the data fed back from the DCS control system back into a data format that the Mining Hong system can recognize. Each data interaction requires multiple compilation and conversion of data formats between the two systems. Therefore, a large amount of API function compilation and modification is required during data transmission, resulting in a huge workload for function conversion during data interaction and poor stability of the data conversion results. Summary of the Invention
[0003] This invention provides a data interaction method and gateway based on a mine interconnection operating system, to at least solve the problems of large workload and poor stability of data format conversion during data interaction. The technical solution of this invention is as follows: According to a first aspect of the present invention, a data interaction method based on a mine interconnection operating system is applied to a gateway. The gateway is used for data communication between the mine interconnection operating system and a DCS control system. The gateway includes a heterogeneous network internet gateway and a mine equipment collaborative server. The heterogeneous network internet gateway is located on the gateway side of the mine interconnection operating system, and the mine equipment collaborative server is located on the controller side of the DCS control system. The gateway side and the DCS control system controller side are communicatively connected. The method includes: responding to a page request from a mobile terminal of the operating system, calling the mine equipment collaborative server to transmit a first static information file of a target controller to the heterogeneous network internet gateway; according to the page request, calling the heterogeneous network internet gateway to extract page requirement information from the first static information file and generate a first standard format text; sending the first standard format text back to the mobile terminal of the operating system and rendering and displaying a first page; the first page represents a human-computer interaction page containing the first static information file; responding to a subscription instruction from the mobile terminal of the operating system for target data in the first standard format text, calling the mine equipment collaborative server to monitor real-time data of the target data and transmitting the real-time data of the target data to the heterogeneous network internet gateway; calling the heterogeneous network internet gateway to send the real-time data back to the mobile terminal of the operating system; and updating the target data of the first page.
[0004] As one implementation method, in response to the operation commands of the mobile terminal of the operating system, the heterogeneous network Internet gateway is invoked to send the operation commands to the mine equipment collaborative server; the mine equipment collaborative server is invoked to send the operation commands to the target controller, and the operation execution results and operation logs of the target controller are transmitted to the heterogeneous network Internet gateway.
[0005] As one implementation method, a network communication connection is established between the heterogeneous network Internet gateway and the operating system mobile terminal to receive subscription instructions or operation instructions sent by the operating system mobile terminal and forward them to the mine equipment collaborative server; the mine equipment collaborative server connects to the heterogeneous network Internet gateway protocol on the predefined port of the target controller.
[0006] In this implementation, WebSocket network communication enables proactive and real-time data push to the operating system's mobile device, ensuring efficient data interaction. Since the gateway and controller typically require continuous and frequent data exchange, using the TCP protocol ensures that once a connection is established, it can be maintained for an extended period, guaranteeing the stability of data interaction.
[0007] As one implementation, a page request represents a subscription instruction for the target controller's first static information file.
[0008] In response to a page request from the operating system's mobile terminal, the mining equipment collaboration server is invoked to transmit the first static information file of the target controller to the heterogeneous network gateway. Specifically, this includes: initiating a protocol connection between the heterogeneous network gateway and the mining equipment collaboration server; receiving a page request from the operating system's mobile terminal for the target controller; having the heterogeneous network gateway send the page request to the mining equipment collaboration server; invoking the mining equipment collaboration server to obtain the configuration information of the monitored target controller to get the first static information file; and transmitting the first static information file to the heterogeneous network gateway.
[0009] As one implementation method, after sending the first standard format text back to the mobile terminal of the operating system and rendering and displaying the first page, the method further includes: calling the mine equipment collaborative server to monitor the configuration information of the target controller in real time; when an update to the configuration information is detected, obtaining a second static information file; transmitting the second static information file to the heterogeneous network Internet gateway; calling the heterogeneous network Internet gateway to extract the page requirement information in the second static information file and generate the second standard format text; sending the second standard format text back to the mobile terminal of the operating system and rendering and displaying the second page; the second page represents a human-computer interaction page containing the second static information file.
[0010] In this implementation, when the heterogeneous network gateway establishes a connection with the mining equipment collaborative server, it sends the controller configuration information to the heterogeneous network gateway and monitors the changes in the controller configuration information in real time. When the controller configuration information is updated, it immediately sends the static information file of the current controller configuration information to the heterogeneous network gateway. The heterogeneous network gateway then re-extracts the page requirement information from the static information file to update the operating system mobile terminal page.
[0011] As one implementation method, subscription instructions include one-time subscription instructions, periodic subscription instructions, and modified subscription instructions.
[0012] In response to the operating system mobile terminal's subscription instruction for target data in the first standard format text, the system calls the mine equipment collaborative server to monitor the real-time data of the target data and transmits the real-time data of the target data to the heterogeneous network Internet gateway. Specifically, this includes: in response to the operating system mobile terminal's subscription instruction for the target data, the heterogeneous network Internet gateway sends the subscription instruction to the mine equipment collaborative server; calling the mine equipment collaborative server to monitor the real-time data of the target data in real time and obtain the updated target data; and transmitting the updated target data to the heterogeneous network Internet gateway according to the subscription instruction.
[0013] In this implementation, the scope of accessed data is controlled by different subscription instructions such as periodic subscription and subscription after change, thereby limiting the data access scope to a very small range, reducing the amount of data transmission, and improving the efficiency of data interaction.
[0014] As one implementation method, before the heterogeneous network Internet gateway and the mine equipment collaborative server start the connection, the controller is configured with redundancy. The redundancy configuration means that after the heterogeneous network Internet gateway starts, the fixed addresses of the two controllers are predefined and the two controller station numbers are identified in the configuration information.
[0015] In this implementation, due to the dual-network redundancy or device redundancy function of the DCS control system, it is necessary to synchronously configure the redundancy of the heterogeneous network Internet gateway to ensure stability during data interaction and avoid network problems causing interaction interruption.
[0016] As one implementation method, the heterogeneous network internet gateway and the mine equipment collaborative server forward heartbeat packets to each other; the heartbeat packets include the controller online status and the controller primary / backup status; after responding to the page request from the operating system mobile terminal, the heterogeneous network internet gateway is called to identify the controller online status in the first static information file; if it is identified that there are two controller station numbers, both controllers are online or one controller is offline, then the controller is online; if it is identified that both controllers are offline, then the controller is offline.
[0017] As one implementation method, after responding to the subscription command from the mobile terminal of the operating system, the mine equipment collaborative server is invoked to monitor the primary and backup status of the target controller in real time; when the target controller is identified as being in primary control status, the configuration information of the target controller and the real-time data of the target data are obtained according to the subscription command; when the target controller is identified as being in backup status, the acquisition of the configuration information of the target controller and the real-time data of the target data is stopped.
[0018] According to a second aspect of the present invention, a gateway based on a mine interconnection operating system is provided, the gateway comprising a heterogeneous network Internet gateway and a mine equipment collaborative server.
[0019] The heterogeneous network internet gateway connects with the operating system mobile terminal network communication connection to receive subscription instructions or operation instructions sent by the operating system mobile terminal and forward them to the mine equipment collaborative server.
[0020] The mine equipment collaborative server connects to the heterogeneous network Internet gateway protocol on the predefined port of the target controller; it is used to respond to subscription instructions or operation instructions forwarded by the heterogeneous network Internet gateway, and to obtain the configuration information of the target controller, real-time data of the target data or controller operation results and operation logs.
[0021] A data interaction method based on a mining interconnect operating system, configured to perform as in the first aspect and any of its possible implementations.
[0022] According to a third aspect of the present invention, a data interaction device is provided, the device being configured to perform a data interaction method based on a mining interconnection operating system as described in the first aspect and any possible implementation thereof.
[0023] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which instructions are stored, such that when the instructions in the computer-readable storage medium are executed by a processor of a data interaction device, the data interaction device is able to perform a data interaction method based on a mining interconnection operating system, as described in the first aspect and any possible implementation thereof.
[0024] According to a fifth aspect of the present disclosure, a computer program product is provided, the computer program product including computer instructions, which, when executed on a data interaction device, cause the data interaction device to execute the data interaction method based on the mining interconnection operating system described in the first aspect and any possible implementation thereof.
[0025] The technical solution provided by the embodiments of the present invention brings at least the following beneficial effects: The gateway serves as a data interaction channel connecting the mine interconnection operating system and the DCS control system. The heterogeneous network gateway in the gateway connects to the gateway side of the mine interconnection operating system, and the mine equipment collaborative service terminal in the gateway connects to the equipment controller side of the DCS control system. The hierarchical structure of the gateway effectively isolates the mine interconnection operating system and the DCS control system completely, ensuring confidentiality and security during data interaction. Simultaneously, data interaction is completed through communication between the heterogeneous network gateway and the mine equipment collaborative service terminal, thereby realizing data interaction between the mine interconnection operating system and the DCS control system. Furthermore, during data interaction, it is no longer necessary to perform multiple mutual compilation and conversion of data formats between the two systems. Only when receiving static information files and dynamic data from the controller, the heterogeneous network gateway is used to convert and parse the data into a standard format recognizable by the mine interconnection operating system, facilitating the generation of corresponding display pages. This reduces the workload of mutual data format conversion during data interaction and ensures the stability of the data interaction results. Furthermore, after the mining equipment collaborative server returns the static information file of the target controller, it only responds to the subscription command of the operating system mobile terminal, monitors and returns the real-time changes of the target data in the subscription command, thereby reducing the amount of data that needs to be converted each time the data is updated and improving the efficiency of data interaction.
[0026] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0027] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0028] Figure 1 This is a schematic diagram illustrating a gateway based on a mining interconnection operating system according to an exemplary embodiment; Figure 2 This is a flowchart illustrating a data interaction method based on a mine interconnection operating system according to an exemplary embodiment; Figure 3 This is a schematic diagram illustrating a data interaction device according to an exemplary embodiment. Detailed Implementation
[0029] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0030] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0031] Before providing a detailed description of the data interaction method based on the mining interconnection operating system provided in this application embodiment, let's first briefly introduce the application scenarios and implementation environment involved in this application embodiment.
[0032] First, a brief introduction to the application scenarios involved in this application will be given.
[0033] Research has revealed that the coal mining industry suffers from a wide variety of equipment, complex operating systems, and numerous internationally recognized protocols, making interoperability difficult. The HarmonyOS system is a unified operating system for interconnecting equipment in the coal mining industry. Through unique "soft bus" technology and a unified HCP protocol, it interconnects equipment from different manufacturers, helping coal mining enterprises build "intelligent sensing, intelligent decision-making, and automatic execution," gradually achieving automation in coal mining, transportation, and management, and ultimately, unmanned operation. However, coal mining systems already have mature and stable DCS distributed control systems that have been in operation for many years. These systems employ a basic design philosophy of decentralized control and centralized operation and management, using a multi-level, hierarchical, and cooperative autonomous structure. Developing a completely new system based on HarmonyOS in a short period is virtually impossible. Integrating existing DCS systems with HarmonyOS-based mining equipment is a pressing task. Due to the relatively closed nature of different DCS manufacturers' technologies and the unique characteristics of the coal mining industry, there are currently no mature products on the market that can connect DCS control systems with specific HarmonyOS equipment. First, the underlying communication protocols of DCS systems are core secrets of the manufacturers, who are rarely willing to fully open up their underlying communication. If the Mininghong system is adopted, the core technology will need to be opened up to the Mininghong system manufacturer to some extent, posing a risk of technology leakage. Second, traditional DCS systems mostly use Windows or Linux systems, but the API interfaces of these systems are almost incompatible with the Mininghong system. The current adapter mode requires a large number of API functions to be compiled and modified, resulting in a huge workload for data conversion and a high risk of stability issues.
[0034] To address the aforementioned issues, this application proposes a data interaction method based on a mine interconnection operating system. This method transforms the integration of the DCS system and the mine control system into an inter-device communication problem through inter-network communication, thus better protecting the core technologies of manufacturers using the DCS system. Simultaneously, data interaction is achieved through communication between the heterogeneous network internet gateway in the gateway and the mine equipment collaborative server, realizing data interaction between the mine interconnection operating system and the DCS control system.
[0035] Secondly, the implementation architecture involved in this application will be briefly introduced below.
[0036] Figure 1 This is a schematic diagram of a gateway based on a mining interconnection operating system provided in this application. Figure 1 As shown, the gateway includes a heterogeneous network Internet gateway 11 and a mining equipment collaborative server 12.
[0037] The heterogeneous network Internet gateway 11 and the mine equipment collaborative server 12 are connected via communication.
[0038] The heterogeneous network Internet gateway 11 is installed on the gateway side of the mining interconnection operating system.
[0039] The mine equipment collaborative server 12 is installed on the equipment controller side of the DCS control system.
[0040] The heterogeneous network Internet gateway 11 is connected to the operating system mobile terminal network communication, and is used to receive subscription instructions or operation instructions sent by the operating system mobile terminal and forward them to the mine equipment collaborative server 12.
[0041] The mine equipment collaborative server 12 is connected to the heterogeneous network Internet gateway 11 via a predefined port of the target controller; it is used to respond to subscription instructions or operation instructions forwarded by the heterogeneous network Internet gateway 11, and to obtain the configuration information of the target controller, real-time data of the target data, or controller operation results and operation logs.
[0042] The gateway is configured to respond to a page request from the operating system's mobile terminal by invoking the mine equipment collaboration server to transmit the first static information file of the target controller to the heterogeneous network internet gateway; based on the page request, it invokes the heterogeneous network internet gateway to extract the page requirement information from the first static information file and generate a first standard format text; it then sends the first standard format text back to the operating system's mobile terminal to render and display a first page; the first page represents a human-computer interaction page containing the first static information file; in response to the operating system's mobile terminal's subscription instruction for target data in the first standard format text, it invokes the mine equipment collaboration server to monitor the real-time data of the target data and transmits the real-time data of the target data to the heterogeneous network internet gateway; it then invokes the heterogeneous network internet gateway to send the real-time data back to the operating system's mobile terminal; and finally, it updates the target data on the first page.
[0043] In one implementation, the gateway is configured to respond to operation commands from the operating system's mobile terminal by calling the heterogeneous network gateway to send the operation commands to the mine equipment collaboration server; calling the mine equipment collaboration server to send operation commands to the target controller; and transmitting the operation execution results and operation logs of the target controller to the heterogeneous network gateway.
[0044] In one implementation, the gateway is configured as a network communication connection between the heterogeneous network Internet gateway and the operating system mobile terminal, receiving subscription instructions or operation instructions sent by the operating system mobile terminal and forwarding them to the mine equipment collaboration server; the mine equipment collaboration server connects to the heterogeneous network Internet gateway protocol on a predefined port of the target controller.
[0045] In one implementation, the gateway is configured such that a page request represents a subscription instruction for a first static information file of the target controller. In response to a page request from the operating system mobile terminal, the mine equipment collaborative server is invoked to transmit the first static information file of the target controller to the heterogeneous network internet gateway. Specifically, this includes: initiating a protocol connection between the heterogeneous network internet gateway and the mine equipment collaborative server; receiving the page request from the operating system mobile terminal for the target controller; having the heterogeneous network internet gateway send the page request to the mine equipment collaborative server; invoking the mine equipment collaborative server to obtain the first static information file from the monitored configuration information of the target controller; and transmitting the first static information file to the heterogeneous network internet gateway.
[0046] In one implementation, the gateway is configured to send back the first standard format text to the mobile terminal of the operating system. After rendering and displaying the first page, the method further includes: calling the mine equipment collaborative server to monitor the configuration information of the target controller in real time; when an update to the configuration information is detected, obtaining a second static information file; transmitting the second static information file to the heterogeneous network Internet gateway; calling the heterogeneous network Internet gateway to extract the page requirement information from the second static information file and generate the second standard format text; sending the second standard format text back to the mobile terminal of the operating system and rendering and displaying the second page; the second page represents a human-computer interaction page containing the second static information file.
[0047] In one implementation, the gateway is configured to accept subscription instructions including single subscription instructions, periodic subscription instructions, and modified subscription instructions. In response to a subscription instruction from the operating system mobile terminal for target data in a first standard format text, the gateway invokes the mine equipment collaborative server to monitor the real-time data of the target data and transmits the real-time data of the target data to the heterogeneous network internet gateway. Specifically, this includes: in response to the subscription instruction from the operating system mobile terminal for the target data, the heterogeneous network internet gateway sends the subscription instruction to the mine equipment collaborative server; invoking the mine equipment collaborative server to monitor the real-time data of the target data in real time to obtain the updated target data; and transmitting the updated target data to the heterogeneous network internet gateway according to the subscription instruction.
[0048] As one implementation method, the gateway is configured to perform redundant configuration on the controller before the heterogeneous network Internet gateway starts the connection with the mining equipment collaborative server. The redundant configuration represents the predefined fixed addresses of the two controllers after the heterogeneous network Internet gateway starts, and the identification of two controller station numbers in the configuration information.
[0049] In one implementation, the gateway is configured to forward heartbeat packets between the heterogeneous network internet gateway and the mining equipment collaborative server; the heartbeat packet includes the controller online status and the controller primary / backup status; in response to a page request from the operating system mobile terminal, the heterogeneous network internet gateway is invoked to identify the controller online status in the first static information file; if two controller station numbers are identified, and both controllers are online or one controller is offline, then the controller is online; if both controllers are identified as offline, then the controller is offline.
[0050] In one implementation, the gateway is configured to respond to the subscription command from the operating system's mobile terminal, and then call the mine equipment collaborative server to monitor the primary and backup status of the target controller in real time. When the target controller is identified as being in primary control status, the gateway obtains the configuration information of the target controller and the real-time data of the target data according to the subscription command. When the target controller is identified as being in backup status, the gateway stops obtaining the configuration information of the target controller and the real-time data of the target data.
[0051] Figure 2 This is a flowchart illustrating a data interaction method based on a mine interconnection operating system according to an exemplary embodiment, such as... Figure 2 As shown, the data interaction method based on the mining interconnection operating system includes the following steps.
[0052] S21, in response to a page request from the operating system's mobile terminal, calls the mine equipment collaborative server to transmit the first static information file of the target controller to the heterogeneous network Internet gateway.
[0053] The mining interconnection operating system represents the mining system, while the mobile terminal of the operating system represents applications or smart devices based on the mining system.
[0054] By adding a program on both the controller and gateway sides, data interaction between the DCS control system and the mining system is achieved through data communication between the programs.
[0055] Among them, the heterogeneous network Internet gateway installed on the gateway side of the MineHarmony system is named mhgw (MineHarmony Gateway).
[0056] mhgw heterogeneous network internet gateways connect to applications or smart devices (i.e., mobile operating systems) based on mining systems.
[0057] A mine equipment collaborative server with a gateway installed on the controller side of the DCS control system is named s4mh (Server for Mine Harmony).
[0058] The s4mh mine equipment collaborative server connects with the DCS system control components and interface programs.
[0059] First, establish data communication between the three.
[0060] Specifically, a network communication connection is established between the heterogeneous network internet gateway and the operating system mobile terminal. The gateway receives subscription or operation commands from the operating system mobile terminal and forwards them to the mine equipment collaboration server. The mine equipment collaboration server connects to the heterogeneous network internet gateway protocol via a predefined port on the target controller.
[0061] In one implementation, the heterogeneous network gateway and the operating system mobile terminal communicate via WebSocket. After the mine equipment collaborative server starts, it waits on a predefined port of the target controller for the heterogeneous network gateway in the gateway to connect via TCP protocol. The mine equipment collaborative server transmits data with the control components and interface programs of the DCS system via plaintext JSON format.
[0062] In this implementation, WebSocket network communication enables proactive and real-time data push to the operating system's mobile device, ensuring efficient data interaction. Since the gateway and controller typically require continuous and frequent data exchange, using the TCP protocol ensures that once a connection is established, it can be maintained for an extended period, guaranteeing the stability of data interaction.
[0063] Secondly, send the controller's static information file to the heterogeneous network Internet gateway.
[0064] A page request represents a subscription instruction for the target controller's first static information file.
[0065] Static information files represent the configuration information of the controller.
[0066] The subscription command supports the subscription of configuration information. After the heterogeneous network Internet gateway and the mining equipment collaborative server start the connection, the subscription command for configuration information is immediately sent to the s4mh mining equipment collaborative server. The s4mh mining equipment collaborative server will immediately send the static information files required by the operating system mobile terminal to the mhgw heterogeneous network Internet gateway.
[0067] Specifically, the protocol connection between the heterogeneous network internet gateway and the mine equipment collaborative server is initiated, the page request from the operating system mobile terminal to the target controller is received, and the heterogeneous network internet gateway sends the page request to the mine equipment collaborative server; the mine equipment collaborative server calls the configuration information of the monitored target controller to obtain the first static information file; and the first static information file is transmitted to the heterogeneous network internet gateway.
[0068] S22, based on the page request, the heterogeneous network gateway is invoked to extract the page requirement information from the first static information file and generate a first standard format text. The first standard format text is then sent back to the mobile terminal of the operating system for rendering and displaying the first page.
[0069] Among them, standard format text represents XML format text.
[0070] The static information files of the controllers at the heterogeneous network gateway are extracted and parsed, and the complex DCS model is described in a text form that is easy to understand.
[0071] The XML format file contains the information required for pages such as card list, hardware point list, device list, and individual device details.
[0072] After receiving the first static information file, the MHGW heterogeneous network gateway dynamically generates XML-formatted text based on the page request. This XML-formatted text is then sent back to the mobile operating system client. The mobile operating system client renders the first page based on the XML-formatted text and extracts subsequent subscription and operation information from it.
[0073] Based on step S21 above, when the heterogeneous network gateway establishes a connection with the mine equipment collaborative server, it sends the controller's configuration information to the heterogeneous network gateway and monitors the changes in the controller's configuration information in real time. When the controller's configuration information changes, it immediately sends the static information file of the current controller configuration information to the heterogeneous network gateway. The heterogeneous network gateway then re-extracts the page requirement information from the static information file to update the operating system's mobile terminal page.
[0074] Specifically, the system calls the mine equipment collaborative server to monitor the configuration information of the target controller in real time; when an update to the configuration information is detected, a second static information file is obtained; the second static information file is transmitted to the heterogeneous network Internet gateway; the heterogeneous network Internet gateway is called to extract the page requirement information in the second static information file and generate a second standard format text; the second standard format text is sent back to the operating system mobile terminal to render and display the second page.
[0075] The second page represents the human-computer interaction page containing the second static information file.
[0076] In one implementation, after obtaining the first static information file of the target controller, the S4MH mining equipment collaborative server is invoked to monitor changes in the configuration static information file on the controller. If a change is detected, the changed second static information file is sent to the MHGW heterogeneous network gateway. The MHGW heterogeneous network gateway is then invoked to extract the second static information file and generate a new XML format text. The operating system mobile terminal generates a second page based on the new XML format text.
[0077] Optionally, when switching pages on the mobile operating system, the subscription to the target data on the first page will be unsubscribed.
[0078] S23, in response to the operating system mobile terminal's subscription command for target data in the first standard format text, calls the mine equipment collaborative server to monitor the real-time data of the target data and transmits the real-time data of the target data to the heterogeneous network Internet gateway. The heterogeneous network Internet gateway is then called to send the real-time data back to the operating system mobile terminal, updating the target data on the first page.
[0079] Subscription instructions include one-time subscription instructions, periodic subscription instructions, and modified subscription instructions.
[0080] All information follows a publish / subscribe mechanism, and information is only sent to the MHGW heterogeneous network gateway after subscription.
[0081] Specifically, in response to the subscription command for target data from the operating system's mobile terminal, the heterogeneous network internet gateway sends the subscription command to the mine equipment collaboration server; the mine equipment collaboration server calls the real-time data of the target data to obtain the updated target data; and the updated target data is transmitted to the heterogeneous network internet gateway according to the subscription command.
[0082] Based on step S22 above, the operating system mobile terminal extracts the object name and attribute name from the XML format text. The operating system mobile terminal establishes WebSocket network communication with the MHGW heterogeneous network gateway, sends the subscription instruction to the MHGW heterogeneous network gateway, and then forwards it to the S4MH mining equipment collaboration server. The S4MH mining equipment collaboration server receives the subscription instruction for real-time target data sent by the MHGW heterogeneous network gateway. This subscription instruction can be customized as periodic feedback or feedback after changes. The S4MH mining equipment collaboration server sends the subscribed target data to the MHGW heterogeneous network gateway periodically or after changes in the target data according to the subscription requirements. Upon receiving the returned real-time data, the operating system mobile terminal updates the target data on the first page.
[0083] The subscription command is bidirectional. It allows users to subscribe to or unsubscribe from the Kuanghong system gateway for available information, including configuration information and real-time target data. On the controller side, a new card algorithm is added; upon receiving gateway data, the `set_field` command is used to modify the channel data on the card.
[0084] In this implementation, the scope of data access is controlled by different subscription commands such as subscription and unsubscription, periodic subscription, and subscription after changes. This keeps the data access scope within a very small range, thereby reducing the amount of data transmitted and improving the efficiency of data interaction.
[0085] Based on step S21 above, the operating system mobile terminal extracted operation information from the XML format text.
[0086] Optionally, in response to an operation command from the operating system's mobile terminal, the heterogeneous network gateway is invoked to send the operation command to the mine equipment collaboration server. The mine equipment collaboration server is then invoked to send the operation command to the target controller, and the operation execution result and operation log of the target controller are transmitted to the heterogeneous network gateway.
[0087] Understandably, the operating system's mobile client generates a corresponding human-machine interface page based on the page information in the XML format text parsed by the heterogeneous network gateway. This page includes operation buttons for the target controller, allowing users to change the controller's state, such as "start" or "stop," by clicking the corresponding operation commands. When an operation command is issued, it is sent to the S4MH mining equipment collaboration server via the MHGW heterogeneous network gateway. The S4MH mining equipment collaboration server sends commands to the DPU controller, transmits the DPU controller's execution results back to the operating system's mobile client via the MHGW heterogeneous network gateway, and sends the corresponding operation log after processing the operation command.
[0088] In this way, by configuring the gateway's data communication, the Kuanghong system can achieve unified control and data interaction of the mine equipment under the DCS control system.
[0089] Based on the above step S21, when establishing data communication between the mhgw heterogeneous network Internet gateway and the s4mh mining equipment collaborative server, the specific configuration of the communication between the two ends of the gateway includes the following two points.
[0090] First, redundant configuration.
[0091] Redundancy configuration characterizes the fixed addresses of two controllers after the heterogeneous network Internet gateway is started, and identifies the presence of two controller station numbers in the configuration information.
[0092] The IP address bound to the network card that communicates between the controller DPU and the gateway is fixed and is the same in any rack.
[0093] Dual-network redundancy provides parallel communication paths for the controller (DPU / CPU) by deploying two independent, physically isolated networks.
[0094] Due to the dual-network redundancy or equipment redundancy function of the DCS control system, redundant configuration of the MHGW heterogeneous network Internet gateway is required to ensure stability during data interaction and avoid data interaction interruption caused by network problems or other line faults.
[0095] Secondly, s4mh and mhgw exchange heartbeat packets.
[0096] The S4MH mining equipment collaboration server needs to exchange heartbeats with the MHGW heterogeneous network internet gateway to prevent TCP connection drops due to lack of communication when real-time data remains unchanged during long-term operation. The S4MH mining equipment collaboration server can transmit the controller's online status and primary / standby status in the heartbeat packet, while the MHGW heterogeneous network internet gateway can include certain dynamic information about the gateway in the heartbeat packet.
[0097] Specifically, the heterogeneous network internet gateway and the mine equipment collaborative server forward heartbeat packets to each other; the heartbeat packets include the controller online status and the controller primary / backup status; after responding to the page request from the operating system mobile terminal, the heterogeneous network internet gateway is called to identify the controller online status in the first static information file; if it is identified that there are two controller station numbers, both controllers are online or one controller is offline, then the controller is online; if it is identified that both controllers are offline, then the controller is offline.
[0098] Optionally, after responding to the subscription command from the operating system's mobile terminal, the mine equipment collaborative server is invoked to monitor the primary and backup status of the target controller in real time; when the target controller is identified as being in primary control status, the configuration information of the target controller and the real-time data of the target data are obtained according to the subscription command; when the target controller is identified as being in backup status, the acquisition of the configuration information of the target controller and the real-time data of the target data is stopped.
[0099] The S4MH mine equipment collaborative server needs to determine the primary / standby status of the controller in real time. When in standby mode, it stops sending configuration and real-time information. Since the real-time data change assessments made by the standby station may not be reliable, real-time data can be sent unconditionally when switching from standby to primary control mode. After the MHGW heterogeneous network gateway reconnects to the S4MH mine equipment collaborative server, all subscription commands need to be resent.
[0100] In one implementation, after the MHGW heterogeneous network gateway starts, it connects to two predefined addresses and establishes a TCP connection. After the S4MH mining equipment collaborative server starts, it waits for the MHGW heterogeneous network gateway's TCP connection on a predefined port. After establishing the TCP connection, the same operation is performed on all communication paths. If the MHGW heterogeneous network gateway connects to two controllers, all subscription commands and operation commands need to be sent to the two configured controllers. Simultaneously, the operating system mobile terminal page displays whether the controller is redundantly configured and obtains the controller's configuration information. If the configuration information file shows the station numbers of two stations, it indicates a redundant configuration. In the non-redundant case, the information of the second controller is not displayed. The operating system mobile terminal page also checks whether the controller is offline; if it is currently redundantly configured, both controllers must be offline for the controller to be considered offline.
[0101] Thus, when the first controller in master mode fails, it can automatically switch to the second controller in standby mode. At this time, the S4MH mining equipment collaborative server monitors the controller status change, and the configuration information changes accordingly. It feeds back the change to the mobile terminal of the operating system through the MHGW heterogeneous network Internet gateway, and regenerates the XML format text of the second controller to generate a second page. The mobile terminal of the operating system re-extracts the subscription information and operation information from the XML format text and resends the subscription instruction or operation instruction to the S4MH mining equipment collaborative server.
[0102] In this implementation, by configuring an MHGW heterogeneous network gateway with dual network ports, the complex data structures of DCS dual-network redundancy or device redundancy are converted into plain field descriptions, i.e., XML format text, during data communication. The mobile terminal based on the Kuanghong system only needs to parse the fields and present them on the display page, without needing to perform underlying data analysis. The mobile terminal of the Kuanghong system only needs to describe the required operation instructions with a specified string to intervene in the complex control of the DCS, ensuring the confidentiality of data interaction.
[0103] Figure 3 This is a schematic diagram of a document processing device provided in this application. Figure 3 The file processing device 50 includes: a first processor 501, a communication bus 502, a memory 503, a communication interface 504, an output device 505, an input device 506, and a second processor 507.
[0104] The file processing device 50 may include at least one first processor 501 and a memory 503 for storing processor-executable instructions. The first processor 501 is configured to execute the instructions in the memory 503 to implement the file processing method described in the following embodiments.
[0105] In addition, the file processing device 50 may also include a communication bus 502, at least one communication interface 504, an input device 506, and an output device 505.
[0106] The first processor 501 may be a processor (central processing unit, CPU), a microprocessor unit, an ASIC, or one or more integrated circuits for controlling the execution of programs according to the present application.
[0107] The communication bus 502 may include a path for transmitting information between the aforementioned components.
[0108] Communication interface 504 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0109] Input device 506 is used to receive input signals and output device 505 is used to output signals.
[0110] Memory 503 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed discs, laser discs, optical discs, digital universal discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory may exist independently and be connected to the processing unit via a bus. Memory may also be integrated with the processing unit.
[0111] The memory 503 stores instructions for executing the scheme of this application, and the execution is controlled by the first processor 501. The first processor 501 executes the instructions stored in the memory 503 to realize the functions of the method of this application.
[0112] In a specific implementation, as one example, the first processor 501 may include one or more CPUs, for example... Figure 3 CPU0 and CPU1 in the CPU.
[0113] In a specific implementation, as one example, the file processing device 50 may include multiple processors, such as... Figure 3 The first processor 501 and the second processor 507 are described. Each of these processors can be a single-core processor or a multi-core processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).
[0114] This file processing device, such as Figure 3 The diagram shows a first processor 501 and a memory 503 for storing executable instructions of the first processor 501. The first processor 501 is configured to execute the executable instructions to implement the file processing method as described in any of the possible embodiments above. Since the same technical effects can be achieved, further details are omitted here to avoid repetition.
[0115] This application also provides a computer-readable storage medium, which, when executed by a processor of an electricity user classification device or electronic device, enables the electricity user classification device or electronic device to perform an electricity user classification method as described in any of the possible embodiments above. The same technical effects can be achieved, and to avoid repetition, further details are omitted here.
[0116] This application also provides a computer program product, including a computer program or instructions, which are executed by a processor as the electricity user classification method described in any of the possible implementations above. Since the same technical effects can be achieved, further details are omitted here to avoid repetition.
[0117] 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 following claims.
[0118] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A data interaction method based on a mine interconnection operating system, characterized in that, The application is to a gateway, which is used for data communication between the mine interconnection operating system and the DCS control system. The gateway includes a heterogeneous network Internet gateway and a mine equipment collaborative server. The heterogeneous network Internet gateway is set on the gateway side of the mine interconnection operating system, and the mine equipment collaborative server is set on the controller side of the DCS control system. The gateway side is communicatively connected to the controller side of the DCS control system; the method includes: In response to a page request from the mobile terminal of the operating system, the mining equipment collaborative server is invoked to transmit the first static information file of the target controller to the heterogeneous network Internet gateway. Based on the page request, the heterogeneous network gateway is invoked to extract the page requirement information from the first static information file and generate a first standard format text. The first standard format text is sent back to the mobile terminal of the operating system, and the first page is rendered and displayed; the first page represents a human-computer interaction page containing the first static information file. In response to the subscription instruction of the operating system mobile terminal for the target data in the first standard format text, the mining equipment collaborative server is invoked to monitor the real-time data of the target data and transmit the real-time data of the target data to the heterogeneous network Internet gateway; the heterogeneous network Internet gateway is invoked to transmit the real-time data back to the operating system mobile terminal and update the target data of the first page.
2. The data interaction method based on the mine interconnection operating system according to claim 1, characterized in that, The method further includes: In response to the operation command from the mobile terminal of the operating system, the heterogeneous network Internet gateway is invoked to send the operation command to the mining equipment collaborative server. The mining equipment collaborative server is invoked to send the operation command to the target controller, and the operation execution result and operation log of the target controller are transmitted to the heterogeneous network Internet gateway.
3. The data interaction method based on the mine interconnection operating system according to claim 1, characterized in that, The method further includes: The heterogeneous network gateway and the operating system mobile terminal are connected via network communication. The gateway receives subscription instructions or operation instructions sent by the operating system mobile terminal and forwards them to the mining equipment collaborative server. The mining equipment collaborative server connects to the heterogeneous network Internet gateway protocol via a predefined port on the target controller.
4. The data interaction method based on the mine interconnection operating system according to claim 3, characterized in that, The page request represents a subscription instruction for the first static information file of the target controller; The step of responding to a page request from the operating system's mobile terminal by invoking the mine equipment collaborative server to transmit the first static information file of the target controller to the heterogeneous network gateway specifically includes: The heterogeneous network gateway initiates the protocol connection between the heterogeneous network gateway and the mining equipment collaborative server, receives the page request from the operating system mobile terminal to the target controller, and sends the page request to the mining equipment collaborative server by the heterogeneous network gateway. The mine equipment collaboration server is invoked to obtain the first static information file by monitoring the configuration information of the target controller; The first static information file is transmitted to the heterogeneous network Internet gateway.
5. The data interaction method based on the mine interconnection operating system according to claim 4, characterized in that, After sending the first standard format text back to the mobile terminal of the operating system and rendering and displaying the first page, the method further includes: The system invokes the mine equipment collaborative server to monitor the configuration information of the target controller in real time; when an update to the configuration information is detected, a second static information file is obtained; and the second static information file is transmitted to the heterogeneous network Internet gateway. The heterogeneous network gateway is invoked to extract page requirement information from the second static information file and generate a second standard format text. The second standard format text is sent back to the mobile terminal of the operating system, and the second page is rendered and displayed; the second page represents a human-computer interaction page containing the second static information file.
6. The data interaction method based on the mine interconnection operating system according to claim 5, characterized in that, The subscription instructions include single subscription instructions, periodic subscription instructions, and modified subscription instructions; The step of responding to the subscription instruction of the target data in the first standard format text by the operating system mobile terminal, calling the mine equipment collaborative server to monitor the real-time data of the target data, and transmitting the real-time data of the target data to the heterogeneous network Internet gateway, specifically includes: In response to the subscription instruction for the target data from the operating system mobile terminal, the subscription instruction is sent from the heterogeneous network Internet gateway to the mining equipment collaborative server. The real-time data of the target data is monitored by the mining equipment collaboration server to obtain the updated target data. The updated target data will be transmitted to the heterogeneous network gateway according to the subscription instructions.
7. The data interaction method based on the mine interconnection operating system according to claim 3, characterized in that, The method further includes: Before the heterogeneous network internet gateway starts connecting with the mine equipment collaborative server, the controller is configured with redundancy. The redundancy configuration represents the predefined fixed addresses of two controllers after the heterogeneous network internet gateway starts, and identifies the existence of two controller station numbers in the configuration information.
8. The data interaction method based on the mine interconnection operating system according to claim 7, characterized in that, The method further includes: The heterogeneous network gateway and the mining equipment collaborative server forward heartbeat packets to each other; the heartbeat packets include the controller online status and the controller primary / standby status. In response to the page request from the mobile terminal of the operating system, the heterogeneous network gateway is invoked to identify the online status of the controller in the first static information file; If two controller station numbers are identified, and both controllers are online or one controller is offline, then the controller's online status is considered online. If both controllers are identified as offline, then the controllers are considered offline.
9. The data interaction method based on the mine interconnection operating system according to claim 8, characterized in that, The method further includes: After responding to the subscription command from the mobile terminal of the operating system, the mining equipment collaboration server is invoked to monitor the primary and backup status of the target controller in real time; When the target controller is identified as being in master control mode, the configuration information of the target controller and the real-time data of the target data are obtained according to the subscription instruction. When the target controller is identified as being in standby mode, the acquisition of the configuration information of the target controller and the real-time data of the target data is stopped.
10. A gateway based on a mining interconnection operating system, characterized in that, The gateway includes a heterogeneous network internet gateway and a mining equipment collaborative server; The heterogeneous network internet gateway is connected to the operating system mobile terminal network communication, and is used to receive subscription instructions or operation instructions sent by the operating system mobile terminal, and forward them to the mine equipment collaborative server. The mine equipment collaborative server connects to the heterogeneous network Internet gateway protocol at the predefined port of the target controller; it is used to respond to subscription instructions or operation instructions forwarded by the heterogeneous network Internet gateway, and to obtain the configuration information of the target controller, real-time data of the target data, or controller operation results and operation logs. It is configured to perform the data interaction method based on the mining interconnection operating system as described in any one of claims 1-9.
