Distributed multi-process integrated control system for guaranteeing safety of fully-mechanized mining production
By dividing the centralized control system into multiple independent modules and communicating through protocols such as http and mqtt, the problem of insufficient fault tolerance and scalability of the existing centralized control system is solved, and higher system reliability and response capabilities are achieved.
Patent Information
- Application Number
- CN202411397008.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-25
AI Technical Summary
The background program of the existing centralized control system is deployed on the same host, resulting in low fault tolerance and poor scalability, and the system cannot run normally when the resources of a single host are limited.
The distributed multi-process integrated control system is adopted, and the integrated control software is divided into multiple independent modules. Each module is responsible for a function and can be deployed separately on any host. The modules communicate through protocols such as http and mqtt.
It improves the fault tolerance and scalability of the integrated computer working face centralized control software, and ensures the integrity and rapid response capabilities of the centralized control software when resources of a single host are limited.
Smart Images

Figure CN119512776A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mining production safety, and in particular to a distributed multi-process integrated control system for ensuring comprehensive mining production safety. Background Art
[0002] With the continuous advancement of science and technology and the continuous development of mine production, traditional manual operation methods can no longer meet the needs of efficient, safe and intelligent production. The centralized control system can realize the automated control and monitoring of the entire mine production process, improve the efficiency of comprehensive mining, reduce human errors, reduce production risks, and also provide managers with more data support and decision-making basis. Therefore, the centralized control system is currently widely used in comprehensive mining working faces to improve production levels and management efficiency.
[0003] The current mainstream deployment solution for centralized control system software is to separate the interface and background program. The interface is deployed on both the underground centralized control host and the ground dispatch room host, while all background programs are deployed as a whole on the underground centralized control host or the ground dispatch room.
[0004] The disadvantage of the prior art is that the entire background program as a whole can only be deployed on the same host. If the load of a single host is too high, when the host fails or the resources are limited, the entire system will not be able to operate normally, and the fault tolerance is low. When new requirements arise, it is necessary to expand on the basis of the entire background program and then redeploy it, which is not flexible enough and has low scalability. Therefore, in response to the above problems, the present invention proposes a distributed multi-process integrated control system to ensure the safety of comprehensive mining production, improve the fault tolerance and scalability of the comprehensive mining working face centralized control software, and ensure the integrity and rapid response capability of the centralized control software functions when the resources of a single host are limited. Summary of the invention
[0005] In view of the above-mentioned defects and problems, the present invention provides a distributed multi-process integrated control system for ensuring the safety of comprehensive mining production. The entire centralized control software is divided into multiple independent modules. Each module is responsible for one function and can be deployed independently on any host. The modules communicate with each other through protocols such as http and mqtt, thereby improving the fault tolerance and scalability of the centralized control software of the comprehensive mining working face, and ensuring the integrity and rapid response capability of the centralized control software functions when the resources of a single host are limited.
[0006] The solution adopted by the present invention to solve the technical problem is: a distributed multi-process integrated control system to ensure the safety of comprehensive mining production, including a Consul process, an Mqtt Broker process, a machine video process, an algorithm process, a data storage process, a business process, an interface process, a TDengine database process, a system monitoring process, a daemon process and a device agent process, wherein: The Consul process is the basis for starting other processes. Other processes need to interact with the Consul process in both directions through the Http protocol. Its core functions include configuration center, registration center and health check. The Mqtt Broker process acts as a data forwarding center and communicates with other processes through the Mqtt protocol; The algorithm process is a set of indicator algorithm management system, which mainly includes multiple algorithms of various devices. In this process, each algorithm has multiple built-in indicator calculation methods, which can be selected according to needs; The data storage process is responsible for subscribing to various topics from the Mqtt Broker and then storing the received information in the TDengine database; The business process is responsible for logically processing related background business and provides all services through the http interface for other processes to call.
[0007] The functions of the interface process include data display, data entry, data analysis and data management.
[0008] The TDengine database process is a data storage and management tool for fully mechanized mining working faces; The system monitoring process is responsible for monitoring the running status of other processes; The daemon is responsible for ensuring the normal operation of services registered on Consul; The device proxy process is responsible for the communication between the centralized control system and the equipment related to comprehensive mining production. It integrates multiple plug-ins internally and supports the use of different protocols to communicate with different devices. Each process of the centralized control system is an independent module that can be deployed on any node. Each process is developed in the form of a plug-in. The type of plug-in to be loaded at startup can be dynamically selected according to the settings of the configuration center, and the plug-ins can interact with each other.
[0009] Furthermore, the Consul process, as the configuration center, needs to set the parameters of the comprehensive mining working face. Other processes need to read the necessary related parameters from Consul through http requests when they are started; and other processes register process services and interface services with Consul. At the same time, Consul will automatically perform health checks on the services registered by each process and maintain the status information corresponding to each service.
[0010] Furthermore, the interaction between the Mqtt Broker process and other processes is as follows: after the equipment agent process reads the data of the comprehensive mining face, it pushes the equipment data to the Mqtt Broker process by publishing a topic; the data storage process subscribes to a topic to prepare for data storage; when the algorithm process is running, it needs to subscribe to relevant topics and push the indicator calculation results to the Mqtt Broker process; the interface process monitors changes in relevant data points by subscribing to topics; the follow-up video process subscribes to topics related to the follow-up camera; the system monitoring process monitors all data points to determine whether there is a topic with abnormal updates; the business process monitors relevant data for business processing and pushes the processing results to the Mqtt Broker process.
[0011] Furthermore, the daemon process and other processes are deployed at the same time. When the daemon process is started, the process service is registered with Consul, and other services registered on Consul are checked regularly to see if they are running normally.
[0012] Furthermore, the algorithm process reads raw data from the database, stores the calculated index results in the database, and provides a unified http query interface to the outside world. When the index results already stored in the database cannot meet the needs, real-time calculations can be performed and the results can be returned.
[0013] Furthermore, the data display function of the interface process can intuitively display data information, the data entry function can realize the rapid input and update of information, the data analysis function can help users to deeply explore and analyze the data and provide useful decision-making support, and the data management function includes data storage, backup, recovery and authority control to ensure the integrity and security of the data; the interface process communicates with the Mqtt Broker data center to display the various working states of the current comprehensive mining working face; communicates with the business process background to handle various user needs; communicates with the system monitoring process to display the current working state of each process; communicates with the algorithm process to display various indicator analysis results.
[0014] Furthermore, the device proxy process reads configuration parameters from Consul, dynamically loads different plug-ins to communicate with the device, and then registers the process service with Consul, and registers the http interface service with Consul.
[0015] Furthermore, the Mqtt Broker data center can use EMQX or MQTT.fx.
[0016] High availability and fault tolerance: Distributed multi-process deployment can improve system availability and fault tolerance by deploying applications on multiple servers. If one process or server fails, other processes or servers can take over to ensure the continuous operation of the system. Load balancing: Load balancing can be achieved by distributing the application workload across multiple processes or servers, which can effectively avoid overloading a single server and improve the performance and responsiveness of the system; Scalability: By splitting the application into multiple independent processes, each of which is responsible for a specific function or service, modularization and decoupling can be achieved, and the application can be horizontally expanded to multiple servers to cope with the needs of processing larger-scale data and user requests, which can effectively improve the system's processing power and performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is the overall structure diagram of the integrated control system of the present invention; Figure 2 It is the Consul process interaction diagram of the present invention; Figure 3 It is the Mqtt Broker process interaction diagram of the present invention; Figure 4 This is a diagram of the interaction relationship of the daemon process of the present invention. DETAILED DESCRIPTION
[0018] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0019] See also Figure 1-4 The present invention provides a technical solution for a distributed multi-process integrated control system to ensure the safety of comprehensive mining production: Example
[0020] The overall structure of the distributed multi-process integrated control system to ensure the safety of comprehensive mining production is as follows Figure 1 As shown, the centralized control system mainly includes eleven processes: Consul process, Mqtt Broker process, video tracking process, algorithm process, data storage process, business process, interface process, TDengine database process, system monitoring process, daemon process and device agent process.
[0021] The functions of each process and the way in which the process interacts with other processes are as follows: Consul process: Its core functions include configuration center, registration center and health check. As the basis for starting other processes, it needs to be set to start automatically at boot. Other processes need to interact with the Consul process in a two-way manner through the Http protocol, such as Figure 2As shown. On the one hand, Consul, as a configuration center, needs to set parameters such as support, coal mining machine, three machines (scraper, transfer machine and crusher), belt, pump station and combination switch. Other processes need to read necessary related parameters from Consul through http requests when starting, so as to determine which plug-ins the process needs to load. On the other hand, when other processes are successfully started, they must register process services and interface services with Consul. At the same time, Consul will automatically perform health checks on the services registered by each process at a certain interval and maintain the status information corresponding to each service, including the IP of the node where the service is located, the startup time, whether there is an abnormality, etc.
[0022] Mqtt Broker process: As the data forwarding center, the Mqtt Broker process communicates with other processes through the Mqtt protocol and has functions such as topic subscription, message publishing, and will message retention. Other processes can subscribe to topics of interest from this process, and can also push any topic information to this process. When this process receives a topic message pushed by other processes, it will push the information to all processes subscribed to the topic. The interactive relationship between this process and other processes is as follows: Figure 3 As shown in the figure, after the device agent reads the data of the support, coal mining machine, three machines (scraper, transfer machine and crusher), belt, pump station and combination switch, it pushes the device data to the Mqtt Broker process by publishing topics. The data storage process subscribes to topics to prepare for data storage. When the algorithm process is running, it is necessary to subscribe to relevant topics to ensure the accuracy of the logic operation, and at the same time push some indicator calculation results to the Mqtt Broker process. The interface process monitors the changes of relevant data points by subscribing to topics and updates the interface in time; at the same time, during the interaction with the user, the user's operation results are pushed to the MqttBroker process in real time. To ensure that the monitoring screen follows the movement of the drum in real time, the follow-up video process subscribes to topics related to the follow-up camera. The system monitoring process monitors all data points to determine whether there is a topic with abnormal update. The business process monitors the relevant data for business processing and pushes the processing results to the Mqtt Broker process.
[0023] Daemon: In the distributed multi-process integrated control system that ensures the safety of comprehensive mining production, the function of the daemon is to ensure the normal operation of the services registered on Consul. Therefore, the daemon will not be deployed alone on a node, but will be deployed at the same time as other processes. And as long as there are other processes on a node, a daemon should be deployed specifically on that node. When the daemon is started, the process service is registered with Consul, and other services registered on Consul are checked regularly to see if they are running normally. When a service is abnormal, the service will be restarted until it returns to normal.
[0024] Equipment agent process: The equipment agent process is responsible for the communication between the centralized control system and the equipment related to comprehensive mining production. The comprehensive mining face support, coal mining machine, three machines (scraper, transfer machine and crusher), belt, pump station, combination switch and camera usually belong to different suppliers, and the supported protocols are different, usually CAN, RS485, Ethernet, etc. To ensure compatibility, the equipment agent process integrates a variety of plug-ins to support the use of different protocols to communicate with different devices. When the equipment agent process is started, it first reads the configuration parameters from Consul to determine the type of equipment, the number of equipment and the corresponding protocol of each equipment on the current working face, dynamically loads different plug-ins to communicate with the equipment, and then registers the process service with Consul. At the same time, in order to facilitate other processes to issue instructions to the device, it is necessary to register the http interface service with Consul. Other processes only need to call the corresponding http interface to send data to the corresponding device.
[0025] TDengine database process: Most of the data generated by the fully mechanized mining face is time series data, because the production process of the fully mechanized mining face is often continuous, persistent, and time-related. For example, when coal mining is carried out in the fully mechanized mining face, data such as the progress of the working face, the operating status of the coal mining machine, and the condition of the coal seam need to be recorded and monitored in time series. The characteristics of time series data are that it has a time sequence and is sensitive to time changes and trends. Therefore, the time series database can better meet the needs of fully mechanized mining faces for data storage and analysis, help the working face to monitor and control the production process in real time, and improve production efficiency and safety. Therefore, the time series database TDengine is used as a data storage and management tool for fully mechanized mining faces. And the TDengine database can also be replaced by other databases.
[0026] Data storage process: As a bridge between the Mqtt Broker data center and the TDengine database, the data storage process is mainly responsible for subscribing to various topics from the Mqtt Broker through the Mqtt protocol, and then storing the received information in the TDengine database through the http protocol. At the same time, the types of topics subscribed by this process support dynamic configuration functions, which can be added, deleted, and modified at any time to meet the needs of different miners.
[0027] Algorithm process: The algorithm process is a set of indicator algorithm management systems, which mainly include the operation status recognition algorithms and start-up rate algorithms of various equipment, the support automation rate algorithm, the coal machine automation rate algorithm, the coal machine position fusion algorithm, the complete knife recognition algorithm, etc. At the same time, different coal mines have different calculation methods for the same indicator. To meet the needs, each algorithm in this process needs to have multiple indicator calculation methods built in, which can be selected according to needs. On the one hand, the algorithm process reads the original data from the database regularly, and then stores the calculated indicator results in the database for the convenience of other processes to query; on the other hand, it provides a unified http query interface to the outside world. When the indicator results already stored in the database cannot meet the needs, real-time calculation can be performed and the results can be returned.
[0028] Business process: This process is mainly responsible for the logic processing of related background business, such as login management, authorization management, personnel positioning and locking, planning and cutting, one-key start and stop, etc. It provides all services through the http interface for other processes to call.
[0029] Interface process: The functions of the interface usually include data display, data entry, data analysis and data management. The data display function can intuitively display data information in the form of charts, tables, maps, etc.; the data entry function can realize the rapid input and update of information; the data analysis function can help users to deeply explore and analyze the data and provide useful decision support; the data management function includes data storage, backup, recovery and permission control, etc., to ensure the integrity and security of the data. Through the combination and optimization of these functions, the interface can better meet the needs of users and improve work efficiency and data management quality. This process communicates with the Mqtt Broker data center to display the various working states of the current comprehensive mining face; communicates with the business process background to handle various user needs; communicates with the system monitoring process to display the current working state of each process; communicates with the algorithm process to display various indicator analysis results.
[0030] Machine-following video process: During the production process of the fully mechanized mining face, the business process first conducts a comprehensive analysis of the position and posture of the coal mining machine and the posture of the support, and then determines the position of the camera that needs to be followed, the camera level and pitch angle, and finally pushes the relevant topics required for the machine-following video to the Mqtt Broker data center. The machine-following video process subscribes to the topic from the Mqtt Broker data center, and then calls the device proxy process to pull the stream from the camera and play the machine-following screen. At the same time, the machine-following video process supports functions such as manual camera switching and camera angle adjustment.
[0031] System monitoring process: The system monitoring process is mainly responsible for monitoring the running status of other processes, including the availability of http services, the status of the Mqtt Broker data center, throughput, topic publishing and push frequency, database connection status, storage rate and other indicators, and timely alarms when abnormal phenomena in these indicators are found to ensure the normal operation of the system. At the same time, these indicators are persisted to facilitate problem troubleshooting and tracing.
[0032] Each process can be regarded as an independent module and can be deployed on any node. Different processes interact with each other through http calls, data centers, etc., which facilitates dynamic expansion according to different needs. At the same time, each process is developed in the form of plug-ins. The type of plug-in to be loaded at startup can be dynamically selected according to the settings of the configuration center. The plug-ins interact with each other through EventBus and framework notifications, which reduces the coupling between plug-ins and improves development efficiency.
[0033] Coal mines usually deploy centralized control interfaces on underground tunnel hosts and ground dispatch room hosts, and sometimes also need to deploy them in other places such as comprehensive mining offices. With this solution, you only need to run a separate interface process on the host where the interface needs to be deployed to meet the needs, without the need to deploy background services again. The operation is simple and fast, and no additional configuration is required.
[0034] And because the performance of different hosts varies, the interface process, business process, algorithm process, database process, video tracking process, etc. are all deployed on the same host. If freezes or crashes occur, the processes that occupy more resources can be deployed on other hosts, or even each process can be deployed on a different host. This can effectively avoid overloading of a single server and improve the performance and responsiveness of the system.
[0035] The above description is only a preferred embodiment of the present invention and does not limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A distributed multi-process integrated control system for ensuring the safety of comprehensive mining production, characterized in that: The centralized control system includes Consul process, Mqtt Broker process, video tracking process, algorithm process, data storage process, business process, interface process, TDengine database process, system monitoring process, daemon process and device agent process, among which: The Consul process is the basis for starting other processes. Other processes need to interact with the Consul process in both directions through the Http protocol. Its core functions include configuration center, registration center and health check. The Mqtt Broker process acts as a data forwarding center and communicates with other processes through the Mqtt protocol; The algorithm process is a set of indicator algorithm management system, which mainly includes multiple algorithms of various devices. In this process, each algorithm has multiple built-in indicator calculation methods, which can be selected according to needs; The data storage process is responsible for subscribing to various topics from the Mqtt Broker and then storing the received information in the TDengine database; The business process is responsible for logically processing related background business and provides all services through the http interface for other processes to call.
2. The functions of the interface process include data display, data entry, data analysis and data management.
3. The TDengine database process is a data storage and management tool for fully mechanized mining working faces; The system monitoring process is responsible for monitoring the running status of other processes; The daemon is responsible for ensuring the normal operation of services registered on Consul; The device proxy process is responsible for the communication between the centralized control system and the equipment related to comprehensive mining production. It integrates multiple plug-ins internally and supports the use of different protocols to communicate with different devices. Each process of the centralized control system is an independent module that can be deployed on any node. Each process is developed in the form of a plug-in. The type of plug-in to be loaded at startup can be dynamically selected according to the settings of the configuration center, and the plug-ins can interact with each other.
4. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The Consul process acts as the configuration center and needs to set the parameters of the comprehensive mining working face. Other processes need to read the necessary related parameters from Consul through http requests when they are started; and other processes register process services and interface services with Consul. At the same time, Consul will automatically perform health checks on the services registered by each process and maintain the status information corresponding to each service.
5. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The interaction between the Mqtt Broker process and other processes is as follows: after the equipment agent process reads the data of the fully mechanized mining face, it pushes the equipment data to the Mqtt Broker process by publishing topics; the data storage process subscribes to topics to prepare for data storage; when the algorithm process is running, it needs to subscribe to relevant topics and push the indicator calculation results to the MqttBroker process at the same time; The interface process monitors changes in relevant data points by subscribing to topics; the tracking video process subscribes to topics related to the tracking camera; the system monitoring process monitors all data points to determine whether there are any topics with abnormal updates; the business process monitors relevant data for business processing and pushes the processing results to the Mqtt Broker process.
6. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The daemon process and other processes are deployed at the same time. When the daemon process starts, it registers the process service with Consul, and periodically checks whether other services registered on Consul are running normally.
7. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The algorithm process reads raw data from the database, stores the calculated index results in the database, and provides a unified http query interface to the outside world. When the index results already stored in the database cannot meet the needs, real-time calculations can be performed and the results can be returned.
8. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The data display function of the interface process can intuitively display data information, the data entry function can realize the rapid input and update of information, the data analysis function can help users to deeply explore and analyze the data and provide useful decision-making support, and the data management function includes data storage, backup, recovery and authority control to ensure the integrity and security of the data; the interface process communicates with the Mqtt Broker data center to display the various working states of the current comprehensive mining working face; communicates with the business process background to handle various user needs; communicates with the system monitoring process to display the current working state of each process; communicates with the algorithm process to display various indicator analysis results.
9. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The device proxy process reads configuration parameters from Consul, dynamically loads different plug-ins to communicate with the device, and then registers the process service with Consul and registers the http interface service with Consul.
10. The distributed multi-process integrated control system for ensuring comprehensive mining production safety according to claim 1 is characterized in that: The MQTT Broker data center can use EMQX or MQTT.fx.
Citation Information
Cited By
Fully mechanized coal mining task arrangement method, hydraulic support and computer readable storage medium
CN121279749A