Mining multi-protocol gateway bus communication switching method based on dual-computer hot standby

By establishing a dual-machine hot standby mechanism for mining multi-protocol gateways at the edge of the coal mine power monitoring system, the problem of abnormal communication between the mining multi-protocol gateway and the microcomputer integrated protection device inside the high and low voltage switch cabinet and the feed switch is solved, and the continuous operation and reliability of the system are improved.

CN120034422AInactive Publication Date: 2025-05-23CHINA COAL TECH & ENG GRP CHONGQING RES INST CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510195746.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-05-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the coal mine power monitoring system, the mining multi-protocol gateway communicates abnormally with the microcomputer integrated protection device inside the high and low voltage switch cabinet and the feed switch, resulting in interruption of data transmission and failure of control, posing safety hazards.

Method used

The mining multi-protocol gateway bus communication switching method based on dual-machine hot standby is adopted. By establishing a dual-machine hot standby mechanism of two mining multi-protocol gateways at the edge, the rapid switching between the main and spare machines is achieved to ensure the continuous operation of the system.

Benefits of technology

It improves the reliability and continuous operation capability of the coal mine power monitoring system, avoids data transmission interruption and control failure caused by the failure of the mining multi-protocol gateway, and enhances the system's emergency response capabilities to emergencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034422A_ABST
    Figure CN120034422A_ABST
Patent Text Reader

Abstract

The invention relates to a mining multi-protocol gateway bus communication switching method based on hot standby, and belongs to the technical field of coal mine power monitoring systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of coal mine power monitoring systems and relates to a mine-used multi-protocol gateway bus communication switching method based on dual-machine hot standby. Background Art

[0002] The coal mine power monitoring system plays a vital role in coal mine safety production. It can monitor and control the operating status of underground high and low voltage switchgear, feeder switches and other power equipment in real time, detect and handle faults in time, ensure the stable and reliable operation of the power system, and thus ensure the smooth production of coal mines and the safety of personnel.

[0003] As an edge device, the multi-protocol gateway for mines connects cloud devices and end devices, normalizes data processing for devices with different communication interfaces and different communication protocols, and realizes interconnection. It can transmit data from various underground devices to the ground power monitoring system platform software, realize real-time data transmission and communication, and provide important support for the operation of coal mine power monitoring systems.

[0004] At present, most coal mine power monitoring systems have been configured with redundancy functions at the cloud level, such as master-slave switching for servers, power supplies, hard disk storage, platform software, network partitions, etc., to improve the system's reliability and continuous operation capabilities.

[0005] However, in actual production and operation, the communication anomaly and data transmission interruption between the mine multi-protocol gateway and the microcomputer integrated protection device inside the high and low voltage switch cabinet and the feeder switch still occur frequently. This will cause the coal mine power monitoring system to lose information data and control failure of the feeder switch and other power equipment in the area where the mine multi-protocol gateway is located, which may bring safety hazards to the property and personnel of the coal mine enterprise.

[0006] In order to solve the problem of insufficient reliability of multi-protocol gateways for mines in the prior art, the present invention proposes a bus communication switching method for multi-protocol gateways for mines based on dual-machine hot standby. The method strengthens the stable operation of the coal mine power monitoring system from the edge level by establishing a dual-machine hot standby mechanism for multi-protocol gateways for mines, improves the safety of production of coal mine enterprises, and protects the lives of employees. Summary of the invention

[0007] In view of this, the purpose of the present invention is to provide a bus communication switching method for a multi-protocol gateway for mining based on dual-machine hot standby. The technical problem to be solved by this scheme is to establish a dual-machine hot standby mechanism with two multi-protocol gateways for mining at the edge end, improve the reliable redundancy capability and continuous and stable operation capability of the coal mine power monitoring system, and effectively ensure the stability and safety of coal mine production.

[0008] In order to achieve the above object, the present invention provides the following technical solutions:

[0009] A method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby includes the following steps:

[0010] Step 1: Initialize and configure the parameters and IP network communication addresses of two mining multi-protocol gateways, and configure one as the host and the other as the backup;

[0011] Step 2: When the host is working normally, the CPU module of the host outputs a dog feeding signal to the watchdog monitoring chip within the specified time, and the watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit so that the host can communicate with multiple devices on the bus;

[0012] Step 3: When an abnormal situation occurs in the host, the CPU module of the host cannot output the dog feeding signal to the watchdog monitoring chip within the specified time, and the watchdog monitoring chip stops outputting the control signal, so that the devices on the bus establish a communication loop with the standby machine, and determine that the 485 bus communication link between the host and the standby machine is faulty;

[0013] Step 4: The standby machine starts working, and the CPU module of the standby machine outputs a dog feeding signal to the watchdog monitoring chip within a specified time. The watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit so that the standby machine communicates with multiple devices on the bus.

[0014] Furthermore, the step 1 further comprises:

[0015] The 485 buses of two mining multi-protocol gateways are connected through a bus communication switching circuit.

[0016] Furthermore, the step 2 further includes:

[0017] The 485 bus between the host and standby machines communicates using a fault detection method that combines loopback verification and timeout detection.

[0018] Further, the fault detection method combining loopback check and timeout detection comprises the following steps:

[0019] The host sends the message data containing its own device information status to the standby machine via the 485 bus;

[0020] The host machine requires the standby machine to return the received message data to the host machine;

[0021] Compare the data sent by the host machine and the data received by the standby machine for consistency;

[0022] Check whether the standby machine receives the message data from the master machine within the set time threshold.

[0023] Furthermore, the step three also includes:

[0024] If the data sent by the host and the data received by the standby are inconsistent in step 4, or the standby does not receive the message data from the host within the set time threshold, it is determined that the 485 bus communication link between the host and the standby is faulty.

[0025] Furthermore, the mining multi-protocol gateway further includes a CAN bus communication module, and the step 2 further includes:

[0026] The host communicates with multiple devices on the bus through the CAN bus.

[0027] Further, the mining multi-protocol gateway also includes an Ethernet communication module, and the step 2 also includes:

[0028] The host and cloud devices communicate via Ethernet.

[0029] Furthermore, the mining multi-protocol gateway further includes a switch module, and the step 2 further includes:

[0030] The host communicates with multiple devices through the switch module.

[0031] Furthermore, the mining multi-protocol gateway further includes a liquid crystal display module and an infrared remote control module, and the step 2 further includes:

[0032] The host performs human-computer interaction through the LCD display module and the infrared remote control module.

[0033] The beneficial effects of the present invention are:

[0034] (1) The present invention realizes rapid fault switching at the edge device level, ensures the continuous operation of the system, and effectively avoids data transmission interruption and control failure caused by failure of the mine multi-protocol gateway, thereby improving the reliability and continuous operation capability of the coal mine power monitoring system.

[0035] (2) The present invention can quickly switch to a backup machine when a failure occurs in the mine multi-protocol gateway, thereby ensuring the stable operation of the system, enhancing the system's emergency response capability to emergencies, and providing a strong guarantee for safe production in coal mines.

[0036] (3) The dual-machine hot standby mechanism of the mining multi-protocol gateway in the present invention allows maintenance or repair of one of the devices without affecting the normal operation of the entire system, thereby reducing the risk of equipment maintenance and improving the maintainability of the system.

[0037] (4) The dual-machine hot standby mechanism of the mining multi-protocol gateway in the present invention cooperates with the dual-machine hot standby mechanism of cloud-level devices such as system servers to form a multi-redundant architecture, which is convenient for the system to expand testing and upgrade verification of new functions, and enhances the scalability and reliability of the system.

[0038] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:

[0040] Figure 1 It is the principle block diagram of multi-protocol gateway bus communication switching;

[0041] Figure 2 This is the block diagram of the watchdog monitoring circuit;

[0042] Figure 3 This is the timing diagram of the WDI port and WDO# port of the watchdog monitoring chip;

[0043] Figure 4 It is a block diagram of the bus communication switching circuit;

[0044] Figure 5 This is a flow chart of the principle of determining the communication failure of the 485 bus of the main and backup machines. DETAILED DESCRIPTION

[0045] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.

[0046] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.

[0047] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0048] The mining multi-protocol gateway mentioned in this scheme consists of a CPU module, a watchdog module, a bus communication switching module, a 485 bus communication module, a CAN bus communication module, an Ethernet communication module, a switch module, an LCD display module, an infrared remote control module, a battery and charging and discharging management module, and an AC / DC intrinsically safe power supply module. The implementation steps of the mining multi-protocol gateway bus communication switching method based on dual-machine hot standby mentioned in this scheme are mainly divided into two parts: the watchdog monitoring hardware circuit and the bus communication switching hardware circuit design, and the 485 bus communication fault judgment principle between the host and the standby.

[0049] The principle diagram of bus communication switching of the mining multi-protocol gateway based on dual-machine hot standby mentioned in this scheme is as follows Figure 1As shown, the specific implementation path is as follows: initialize and configure the multi-protocol gateway parameters and IP network communication address, set multi-protocol gateway A to be the host, and multi-protocol gateway B to be the standby. When the host is working normally, the CPU module of the host outputs a signal to the dog feeding port of the selected watchdog monitoring chip at regular intervals. The time interval is much smaller than the selected watchdog monitoring chip dog feeding timeout parameter. The watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit to communicate with multiple microcomputer integrated protection devices on the bus. The response mechanism of the 485 bus between the host and the standby is normal. When the host has abnormal conditions such as CPU module program BUG, ​​hardware failure, etc., the CPU module of the host cannot be switched on within the specified time. The host computer outputs a dog-feeding signal to the watchdog monitoring chip, and the watchdog monitoring chip stops outputting control signals to drive the bus communication switching circuit, so that the microcomputer integrated protection device and the standby machine establish a bus communication loop. At the same time, the 485 bus communication between the host computer and the standby machine is determined to be a fault, and the standby machine starts working. The CPU module of the standby machine also outputs a dog-feeding signal to the watchdog monitoring chip within the specified time. The watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit to establish communication between the standby machine and multiple microcomputer integrated protection devices on the bus. The n in the figure represents the number of microcomputer integrated protection devices connected to each bus communication. The maximum number of connections designed in this scheme is 32, and the maximum number of connections can be increased by improving the load driving capability of the bus chip.

[0050] Among them, the watchdog monitoring circuit block diagram is as follows Figure 2 As shown in the figure, the timing diagram of the watchdog monitoring chip's feeding input WDI port and output WDO# port is as follows Figure 3 As shown, it is the feeding signal time of the dog, the overflow time of the watchdog cycle, and the duration of the reset signal.

[0051] Bus communication switching circuit such as Figure 4 As shown in the figure, the selected relay contains two sets of normally open contacts, and the control signal output by the watchdog monitoring chip WDO# port drives the multi-channel 485 bus communication switching circuit and the CAN bus communication switching circuit. The m in the figure represents the number of buses on a single mining multi-protocol gateway, including RS485 bus and CAN bus. This solution designs 6 RS485 buses and 2 CAN buses.

[0052] The principle of 485 bus communication fault judgment between the host and the standby is a fault detection method based on the combination of loopback check and timeout detection. The fault judgment workflow is shown in the figure below: Figure 5As shown, the host sends the message data containing its own device information status to the standby machine via the 485 bus, and requires the standby machine to return the received message data to the host, and compares the consistency of the data sent by the host and the data received by the standby machine. At the same time, it detects whether the standby machine receives the message data of the host within the set time threshold. The two are combined to determine whether the 485 bus communication link between the host and the standby machine is normal, and then determine the working status of the host and the standby machine.

[0053] The key link is the hardware switching circuit for bus communication between the host machine, standby machine and the microcomputer integrated protection device inside the feeder switch, which is designed based on the watchdog signal of the CPU module inside the mining multi-protocol gateway, as well as the communication fault judgment method based on the combination of loopback check and timeout detection to determine the bus communication status between the two mining multi-protocol gateways.

[0054] 1. System composition

[0055] The mining multi-protocol gateway of the present invention is composed of the following modules:

[0056] CPU module: responsible for controlling and managing the operation of the entire gateway.

[0057] Watchdog module: used to monitor the working status of the CPU module and reset it when an abnormality occurs in the CPU module.

[0058] Bus communication switching module: according to the control signal of the watchdog module, the bus communication path is switched to realize the switching between the host and the standby machine.

[0059] 485 bus communication module: responsible for communicating with devices on the 485 bus.

[0060] CAN bus communication module: responsible for communicating with devices on the CAN bus.

[0061] Ethernet communication module: responsible for communicating with cloud devices.

[0062] Switch module: used to connect multiple devices and realize communication between devices.

[0063] LCD display module: used to display system status information.

[0064] Infrared remote control module: used for human-computer interaction.

[0065] Battery and charging and discharging management module: provides backup power for the gateway.

[0066] AC / DC intrinsically safe power module: provides working power for the gateway.

[0067] 2. Watchdog monitoring hardware circuit design

[0068] The watchdog monitoring hardware circuit is mainly composed of a watchdog monitoring chip and a bus communication switching circuit. The watchdog monitoring chip is used to monitor the working status of the CPU module and output a control signal to the bus communication switching circuit when an abnormality occurs in the CPU module.

[0069] 3. Bus communication switching hardware circuit design

[0070] The bus communication switching hardware circuit is mainly composed of relays and bus chips. The relay switches the bus communication path according to the control signal of the watchdog monitoring chip to achieve the switch between the host and the standby. The bus chip is used to drive the devices on the 485 bus and the CAN bus.

[0071] 4. Principle of 485 bus communication failure judgment between the host and the standby

[0072] The 485 bus communication fault judgment between the host and the standby adopts a fault detection method that combines loopback verification and timeout detection. The host sends the message data containing its own device information status to the standby via the 485 bus, and requires the standby to return the received message data to the host. The consistency comparison is performed on the data sent by the host and the data received by the standby. At the same time, it is detected whether the standby receives the message data of the host within the set time threshold. The combination of the two is used to determine whether the 485 bus communication link between the host and the standby is normal, and then the working status of the host and the standby is determined.

[0073] 5. Workflow

[0074] Initialize the configuration parameters and IP network communication addresses of two mining multi-protocol gateways, and configure one as the host and the other as the backup.

[0075] When the host is working normally, the CPU module of the host outputs a dog feeding signal to the watchdog monitoring chip within a specified time, and the watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit so that the host can communicate with multiple devices on the bus.

[0076] The 485 bus between the host and standby machines communicates using a fault detection method that combines loopback verification and timeout detection.

[0077] If an abnormal situation occurs in the host, the CPU module of the host cannot output the dog feeding signal to the watchdog monitoring chip within the specified time. The watchdog monitoring chip stops outputting the control signal, so that the devices on the bus establish a communication loop with the standby machine and determine that the 485 bus communication link between the host and the standby machine is faulty.

[0078] The standby machine starts working, and the CPU module of the standby machine outputs a dog feeding signal to the watchdog monitoring chip within a specified time. The watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit so that the standby machine communicates with multiple devices on the bus.

[0079] The present invention realizes fast fault switching of the mining multi-protocol gateway through a dual-machine hot standby mechanism, thereby improving the reliability and continuous operation capability of the system.

[0080] The present invention adopts a fault detection method combining loopback check and timeout detection, which can accurately judge the communication status between the host machine and the standby machine and ensure the stable operation of the system.

[0081] The invention has the advantages of simple structure, high reliability, easy implementation, etc., and is suitable for occasions with high reliability requirements such as coal mine power monitoring systems.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.

Claims

1. A method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby, characterized in that: The following steps are involved: Step 1: Initialize and configure the parameters and IP network communication addresses of two mining multi-protocol gateways, and configure one as the host and the other as the backup; Step 2: When the host is working normally, the CPU module of the host outputs a dog feeding signal to the watchdog monitoring chip within the specified time, and the watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit so that the host can communicate with multiple devices on the bus; Step 3: When an abnormal situation occurs in the host, the CPU module of the host cannot output the dog feeding signal to the watchdog monitoring chip within the specified time, and the watchdog monitoring chip stops outputting the control signal, so that the devices on the bus establish a communication loop with the standby machine, and determine that the 485 bus communication link between the host and the standby machine is faulty; Step 4: The standby machine starts working, and the CPU module of the standby machine outputs a dog feeding signal to the watchdog monitoring chip within a specified time. The watchdog monitoring chip outputs a control signal to drive the bus communication switching circuit so that the standby machine communicates with multiple devices on the bus.

2. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 1 is characterized in that: The step one also includes: The 485 buses of two mining multi-protocol gateways are connected through a bus communication switching circuit.

3. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 1 is characterized in that: The step 2 also includes: The 485 bus between the host and standby machines communicates using a fault detection method that combines loopback verification and timeout detection.

4. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 3 is characterized in that: The fault detection method combining loopback check and timeout detection comprises the following steps: The host sends the message data containing its own device information status to the standby machine via the 485 bus; The host machine requires the standby machine to return the received message data to the host machine; Compare the data sent by the host machine and the data received by the standby machine for consistency; Check whether the standby machine receives the message data from the master machine within the set time threshold.

5. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 4 is characterized in that: The step three also includes: If the data sent by the host and the data received by the standby are inconsistent in step 4, or the standby does not receive the message data from the host within the set time threshold, it is determined that the 485 bus communication link between the host and the standby is faulty.

6. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 1 is characterized in that: The multi-protocol gateway for mining further includes a CAN bus communication module, and the step 2 further includes: The host communicates with multiple devices on the bus through the CAN bus.

7. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 1 is characterized in that: The multi-protocol gateway for mining further includes an Ethernet communication module, and the step 2 further includes: The host and cloud devices communicate via Ethernet.

8. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 1 is characterized in that: The multi-protocol gateway for mining further includes a switch module, and the step 2 further includes: The host communicates with multiple devices through the switch module.

9. The method for switching bus communication of a mining multi-protocol gateway based on dual-machine hot standby according to claim 1 is characterized in that: The multi-protocol gateway for mining further includes a liquid crystal display module and an infrared remote control module, and the step 2 further includes: The host performs human-computer interaction through the LCD display module and the infrared remote control module.

Citation Information

Cited By

  • A communication switching method for automatic adaptation of multi-protocol alarm terminals

    CN120812147B