Dual-processor control method and system used under mine

By adopting a dual processor control method in the mine control system, a high-performance main processor and a stable and reliable microcontroller subprocessor are used, combined with heartbeat monitoring and external memory backup mechanism, the problem of insufficient microcontroller performance is solved and the system stability is achieved Operational and efficient processing capabilities.

CN118915535APending Publication Date: 2024-11-08SANY INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410973227.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the existing mine control system, the performance and capacity of the microcontroller is insufficient, and it cannot carry complex intelligent programs and smart related equipment such as cameras, making it difficult to adapt to scenarios such as the network that require large data processing.

Method used

Dual processor control method is adopted, where the main processor uses a high-performance processor of Linux or Android system, which can carry complex intelligent programs and cameras and other intelligent related devices; the sub-processor uses a microcontroller, which is stable and reliable, and realizes the basis of high stability requirements. Control and use the heartbeat monitoring mechanism to control and use the heartbeat monitoring mechanism to restart the data through the other party, and the data can be backed up in external memory to ensure the stable operation of the system.

Benefits of technology

It realizes the stable operation of the mine control system, can carry complex intelligent programs and intelligent equipment, ensures that the system can automatically recover in the event of a failure, and improves the reliability and processing capabilities of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915535A_ABST
    Figure CN118915535A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of control systems, in particular to a dual-processor control method and system used under a mine, and the dual-processor control method is applied to a main processor and comprises the steps: sending a heartbeat monitoring signal to an auxiliary processor in a preset period; if the heartbeat feedback signal is received and the first action signal is received, a first control action signal is sent to the auxiliary processor; sending a first control backup signal to an external memory; and when the first data feedback signal is received, obtaining first backup data. The main processor adopts a high-performance processor of a Linux or Android system, and can bear complex intelligent programs, cameras and other intelligent related devices; the auxiliary processor adopts a single-chip microcomputer, is stable and reliable, and realizes basic control with a high stability requirement. Heartbeat monitoring is used between the two processors, one processor can be restarted through the other processor when going wrong, data are backed up in an external memory, and stable operation of the system can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of control systems, and in particular to a dual-processor control method and system for use in mines. Background Art

[0002] Hydraulic supports are commonly used in mines to protect the safety of equipment and personnel. During coal mining operations, hydraulic supports need to be moved, pushed, and slid. With the popularization of electric control systems for hydraulic supports, electric control systems are currently widely used in mines to replace manual hydraulic control systems. Existing control systems generally use single-chip microcomputers as core processors and run single-chip microcomputer language systems.

[0003] However, the performance and capacity of single-chip microcomputers are relatively low, and they cannot carry complex intelligent programs or intelligent-related devices such as cameras. They are also difficult to adapt to scenarios such as networks that require large amounts of data processing. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems that the single-chip microcomputer has low performance and capacity, cannot carry complex intelligent programs, cannot carry intelligent related devices such as cameras, and is difficult to adapt to scenarios such as the network that require large amounts of data processing.

[0005] To this end, the present application provides a dual-processor control method for use in mines. The main processor uses a high-performance processor of the Linux or Android system, which can carry complex intelligent programs and intelligent related devices such as cameras; the secondary processor uses a single-chip microcomputer, which is stable and reliable and realizes basic control with high stability requirements. Heartbeat monitoring is used between the dual processors. If a problem occurs on one side, it can be restarted by the other side, and the data is backed up in the external memory, which can ensure the stable operation of the system.

[0006] The present application also provides a dual-processor control system for use in a mine, including the dual-processor control method described above.

[0007] According to a first aspect of the present application, a dual-processor control method for use in a mine is applied to a main processor, and the dual-processor control method includes: sending a heartbeat monitoring signal to a sub-processor at a preset period; the heartbeat monitoring signal is used to monitor the status of the sub-processor; if a heartbeat feedback signal is received and a first action signal is received, sending a first control action signal to the sub-processor; the first action signal is an instruction signal sent by a host computer, which is used to instruct a first peripheral device to perform a first preset action; the first control action signal is used to control the sub-processor to send a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; the first peripheral device is a peripheral device controlled by the sub-processor; sending a first control backup signal to an external memory; the first control backup signal is used to back up the first control action signal to the external memory; when a first data feedback signal is received, obtaining first backup data; the first data feedback signal is a feedback signal sent by the sub-processor after receiving the first data fed back by the first peripheral device; the first backup data is the first data backed up by the sub-processor in the external memory; the first data is data fed back after the first peripheral device performs the first preset action.

[0008] Optionally, if no heartbeat feedback signal is received within a preset period after the heartbeat monitoring signal is sent, a first heartbeat inquiry signal is sent to the sub-processor; the first heartbeat inquiry signal has the highest priority for instruction execution on the sub-processor; the heartbeat feedback signal is a feedback signal sent by the sub-processor; if no heartbeat feedback signal is received within a preset period after the first heartbeat inquiry signal is sent, a sub-processor restart signal is sent to the sub-processor; the sub-processor restart signal is used to restart the sub-processor.

[0009] Optionally, if the heartbeat feedback signal is not received within a first preset time after the secondary processor restart signal is sent, a secondary processor fault signal is sent to the host computer.

[0010] Optionally, when a second action signal is received, a second control instruction is sent to the second peripheral device; the second action signal is an instruction signal sent by the host computer, used to instruct the second peripheral device to perform a second preset action; the second control instruction is used to control the second peripheral device to perform the second preset action; a second action backup signal is sent to the external memory; the second action backup signal is used to back up the second action signal to the external memory; when the second data is received, a second data backup signal is sent to the external memory; the second data is the data fed back after the second peripheral device performs the second preset action; the second data backup signal is used to back up the second data to the external memory.

[0011] Optionally, when the main processor is restarted, the backup data in the external memory is obtained; and the work before the restart is restored according to the backup data.

[0012] Optionally, the dual-processor control method also includes: an initialization step; the initialization step includes: sending a handshake signal to the sub-processor, the handshake signal is used to confirm whether the communication between the main processor and the sub-processor is normal; if a handshake feedback signal is received within a second preset time after the handshake signal is sent, a handshake protocol is sent to the sub-processor, and the handshake protocol includes: a preset period and a data exchange frequency; the handshake feedback signal is a response signal sent by the sub-processor; if no handshake feedback signal is received within the second preset time after the handshake signal is sent, querying the communication counter, the communication counter is used to record the statistical number of handshake signals sent; if the statistical number of the communication counter is greater than the preset number, an initialization fault signal is sent to the host computer.

[0013] According to a dual-processor control method for use in a mine according to the second aspect of the embodiment of the present application, the dual-processor control method is applied to the secondary processor, and the dual-processor control method includes: when a heartbeat monitoring signal is received, a heartbeat feedback signal is sent to the main processor; when a first control action signal is received, a first control instruction is sent to a first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; when first data is received, a first data backup signal is sent to an external memory; the first data backup signal is used to back up the first data to an external memory; the first data is data fed back after the first peripheral device performs the first preset action; and a first data feedback signal is sent to the main processor.

[0014] Optionally, if the heartbeat monitoring signal is not received within a preset period, a second heartbeat inquiry signal is sent to the main processor; the second heartbeat inquiry signal has the highest priority for instruction execution on the main processor; if the heartbeat monitoring signal is not received within a preset period after the second heartbeat inquiry signal is sent, a main processor restart signal is sent to the main processor; the main processor restart signal is used to restart the main processor.

[0015] According to a dual-processor control method for use in a mine in accordance with an embodiment of the third aspect of the present application, the dual-processor control method is applied to a host computer, and the dual-processor control method includes: if a sub-processor fault signal and a main processor fault signal are received within a third preset time, a communication fault alarm is sent; the sub-processor fault signal is a fault signal sent by the main processor according to a program judgment, and the main processor fault signal is a fault signal sent by the sub-processor according to a program judgment; if only the main processor fault signal is received within the third preset time, a main processor fault alarm is sent; if only the sub-processor fault signal is received within the third preset time, a sub-processor fault alarm is sent.

[0016] According to an embodiment of the fourth aspect of the present application, a dual-processor control system for use in a mine includes: a main processor, a sub-processor, an external memory and a host computer, wherein the external memory is configured to store data sent by the main processor and the sub-processor; the main processor is configured to execute a dual-processor control method for use in a mine according to an embodiment of the first aspect of the present application; the sub-processor is configured to execute a dual-processor control method for use in a mine according to an embodiment of the second aspect of the present application; and the host computer is configured to execute a dual-processor control method for use in a mine according to an embodiment of the third aspect of the present application.

[0017] Optionally, the main processor, the sub-processor and the external memory are powered by independent power modules respectively.

[0018] Optionally, data transmission between the main processor, the sub-processor and the external memory is isolated by photoelectric coupling.

[0019] One of the above technical solutions has at least the following advantages or beneficial effects:

[0020] For a dual-processor control method for use in a mine in an embodiment of the present application, the dual-processor control method is applied to a main processor, including: sending a heartbeat monitoring signal to a sub-processor at a preset period; the heartbeat monitoring signal is used to monitor the status of the sub-processor; if a heartbeat feedback signal is received and a first action signal is received, sending a first control action signal to the sub-processor; the first action signal is an instruction signal sent by a host computer for instructing a first peripheral device to perform a first preset action; the first control action signal is used to control the sub-processor to send a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; the first peripheral device is a peripheral device controlled by the sub-processor; sending a first control backup signal to an external memory; the first control backup signal is used to back up the first control action signal to the external memory; when a first data feedback signal is received, obtaining first backup data; the first data feedback signal is a feedback signal sent by the sub-processor after receiving the first data fed back by the first peripheral device; the first backup data is the first data backed up by the sub-processor in the external memory; the first data is data fed back after the first peripheral device performs the first preset action. The main processor uses a high-performance processor of Linux or Android system, which can carry complex intelligent programs and intelligent related devices such as cameras; the secondary processor uses a single-chip microcomputer, which is stable and reliable and can achieve basic control with high stability requirements. Heartbeat monitoring is used between the dual processors. If a problem occurs on one side, it can be restarted by the other side, and the data is backed up in the external memory to ensure the stable operation of the system.

[0021] A dual-processor control system for use in a mine provided in an embodiment of the present application is provided with the above-mentioned dual-processor control method. Since the dual-processor control method has the above-mentioned technical effects, a dual-processor control system for use in a mine provided with the dual-processor control method should also have corresponding technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A structural block diagram of a dual-processor control system for use in a mine provided by an embodiment of the present application is shown;

[0023] Figure 2 A schematic diagram of a flow chart of a dual-processor control method for use in a mine provided by an embodiment of the present application applied to a main processor is shown;

[0024] Figure 3 A schematic flow chart of a dual-processor control method for use in a mine provided by an embodiment of the present application and applied to a secondary processor is shown;

[0025] Figure 4 A schematic diagram of a communication instruction flow of a first action signal provided in an embodiment of the present application is shown;

[0026] Figure 5 A schematic diagram of a communication instruction flow of a second action signal provided in an embodiment of the present application is shown;

[0027] Figure 6 A schematic flow chart of the main processor initialization steps provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0029] As mentioned above, hydraulic supports are structures used to control the pressure of coal mining faces. Their main function is to support and fix infrastructure such as mines and mine tunnels during coal mining to ensure safety and stability during mining. At the same time, hydraulic supports can also improve mining efficiency, reduce potential accidents, and provide operators with a safer and more stable working environment.

[0030] With the continuous improvement of automation, the electric control system of hydraulic support has become popular. At present, electric control system is widely used in underground mines to replace manual hydraulic control system. The existing control system generally uses single chip microcomputer as the core processor and runs single chip microcomputer language system.

[0031] A single-chip microcomputer, also known as a microcontroller or MCU (Microcontroller Unit), is an integrated circuit chip whose original design was to integrate the basic functions of a computer system into a single chip, that is, a single chip integrates multiple functions such as a processor (Central Processing Unit, CPU), memory, I / O interface, etc., making the entire system small in size, light in weight, and low in power consumption, and very suitable for controlling peripheral devices such as sensors, various interface modules, and solenoid valves. However, the processing power of a single-chip microcomputer processor is weak and cannot process large amounts of data and complex algorithms; and the storage capacity of a single-chip microcomputer is relatively small, and it can usually only store a small amount of data and programs, and cannot carry complex intelligent programs, cannot carry intelligent-related devices such as cameras, and is difficult to adapt to scenarios such as networks that require large amounts of data processing.

[0032] High-performance processors, such as ARM (Advanced RISC Machine) microprocessors, can run intelligent systems such as Linux or Android, support intelligent programs that require high-performance processing such as wireless network functions, audio functions, and cameras, and can realize multi-scenario intelligent applications. However, the working conditions under the mine are very harsh. When high-performance processors run under such conditions, operating systems such as Linux and Android are less stable than single-chip systems due to their complexity, and there is a risk of freezing and resetting.

[0033] In order to at least solve one of the technical problems existing in the prior art or related technology, the present application provides a dual-processor control method and system for use in a mine. The dual-processor control method is applied to a main processor, including: sending a heartbeat monitoring signal to a sub-processor at a preset period; the heartbeat monitoring signal is used to monitor the state of the sub-processor; if a heartbeat feedback signal is received and a first action signal is received, a first control action signal is sent to the sub-processor; the first action signal is an instruction signal sent by a host computer for instructing a first peripheral device to perform a first preset action; the first control action signal is used to control the sub-processor to send a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; the first peripheral device is a peripheral device controlled by the sub-processor; sending a first control backup signal to an external memory; the first control backup signal is used to back up the first control action signal to the external memory; when a first data feedback signal is received, obtaining first backup data; the first data feedback signal is a feedback signal sent by the sub-processor after receiving the first data fed back by the first peripheral device; the first backup data is the first data backed up by the sub-processor in the external memory; the first data is the data fed back after the first peripheral device performs the first preset action. The main processor uses a high-performance processor of Linux or Android system, which can carry complex intelligent programs and intelligent related devices such as cameras; the secondary processor uses a single-chip microcomputer, which is stable and reliable and can achieve basic control with high stability requirements. Heartbeat monitoring is used between the dual processors. If a problem occurs on one side, it can be restarted by the other side, and the data is backed up in the external memory to ensure the stable operation of the system.

[0034] The following describes a dual-processor control method and system for use in a mine according to some embodiments provided by the present application with reference to the accompanying drawings.

[0035] See also Figures 1 to 5 , a dual-processor control method for use in a mine provided in an embodiment of the first aspect of the present application is applied to a main processor. The main processor adopts a high-performance processor and can run intelligent systems such as Linux or Android, such as an ARM (Advanced RISC Machine) processor. The ARM processor is a high-performance microprocessor based on the RISC (Reduced Instruction Set Computing) architecture, designed and authorized by the British company ARM, and adopts an efficient instruction set and pipeline design, so that the processor can execute instructions quickly and provide excellent computing performance; in addition, the ARM processor also supports multi-core parallel processing, which can further improve the overall performance of the system.

[0036] The dual processor control method comprises:

[0037] S100: initialization step.

[0038] The initialization step is generally run when the system is turned on to ensure that the main processor can correctly and safely start and run the operating system and application programs, including: loading the boot program into the appropriate memory location and setting the execution starting point of the main processor. The boot program is the first code segment when the system starts and is responsible for loading the core code of the operating system; configuring the interrupt controller so that it can correctly respond to interrupt requests from peripherals; through the memory mapping table, the main processor can correctly access the external memory; according to system requirements, initialize various peripheral interfaces, such as serial port, SPI (Serial Peripheral Interface), I2C (Inter-Integrated Circuit), etc.

[0039] The initialization steps also include:

[0040] S101: Sending a handshake signal to the secondary processor, where the handshake signal is used to confirm whether the communication between the main processor and the secondary processor is normal.

[0041] The main processor sends a handshake signal to the sub-processor through a predetermined communication interface, such as SPI, I2C, serial port, etc. The handshake signal can be a specific byte sequence, a high-level signal or an interrupt signal, etc. After receiving the handshake signal, the sub-processor will perform necessary processing, and then the sub-processor will send a response signal to the main processor, that is, a handshake feedback signal, indicating that the sub-processor is ready to receive data or can execute the next step.

[0042] S102: If a handshake feedback signal is received within a second preset time after the handshake signal is sent, a handshake protocol is sent to the sub-processor, where the handshake protocol includes: a preset period and a data exchange frequency; the handshake feedback signal is a response signal sent by the sub-processor.

[0043] The main processor receives a handshake feedback signal within the second preset time, for example 500ms, indicating that the communication between the main processor and the sub-processor is normal and the working status of the sub-processor is also normal. Then, the main processor sends a handshake protocol, which includes information such as the preset period and data exchange frequency, and then waits for the sub-processor to respond.

[0044] S103: If a handshake protocol feedback signal is received within a second preset time after the handshake protocol is sent, and the handshake protocol feedback signal is a response signal sent by the secondary processor, the main processor and the secondary processor complete the handshake, indicating that the status is normal and the subsequent steps can be performed.

[0045] S104: If no handshake feedback signal is received within a second preset time after the handshake signal is sent, query a communication counter, where the communication counter is used to record the number of times the handshake signal is sent.

[0046] If the main processor does not receive a handshake feedback signal after waiting for 500ms, it queries the communication counter. For example, if the preset number of times is 5 and the communication counter is 1, and the communication counter is less than the preset number of times, the communication counter is increased by 1, and then jumps to step S101 to resend the handshake signal.

[0047] S105: If the statistical number of the communication counter is greater than the preset number, an initialization fault signal is sent to the upper computer.

[0048] If the communication counter is 6 times, which is greater than the preset number of 5 times, it means that the main processor has sent multiple handshake signals but has not responded. The sub-processor may be faulty and sends an initialization fault signal to the host computer to remind the operator to handle it.

[0049] S110: Sending a heartbeat monitoring signal to the sub-processor at a preset period; the heartbeat monitoring signal is used to monitor the status of the sub-processor.

[0050] The main processor and the sub-processor monitor the running status by means of heartbeat monitoring. The main processor sends a heartbeat monitoring signal to the sub-processor at a preset period, for example, 100ms / time. After receiving the heartbeat monitoring signal, the sub-processor returns a heartbeat feedback signal. When the main processor receives the heartbeat feedback signal, it indicates that the running status of the sub-processor is normal.

[0051] S111: If no heartbeat feedback signal is received within a preset period after the heartbeat monitoring signal is sent, a first heartbeat inquiry signal is sent to the sub-processor; the first heartbeat inquiry signal has the highest priority for instruction execution on the sub-processor; the heartbeat feedback signal is a feedback signal sent by the sub-processor.

[0052] If the main processor does not receive the heartbeat feedback signal within the preset period, it means that the operation of the secondary processor is abnormal, and it is necessary to send the first heartbeat inquiry signal to the secondary processor. The first heartbeat inquiry signal has the highest priority of instruction execution on the secondary processor, for example, by using the interrupt interface of the single-chip microcomputer to achieve the highest priority of instruction execution.

[0053] The interrupt interface of the MCU is responsible for processing the interrupt request sent by the external device to the MCU. When the priority of the interrupt request is the highest priority, the MCU will suspend the execution of the current program and give priority to the highest priority interrupt request. Generally, the abnormal operation of the MCU is caused by the program entering a certain dead loop. Through the first heartbeat inquiry signal, the execution of the current program is interrupted, so that the program can jump out of the dead loop, or the program can be restored to a fixed point to start execution, so that the secondary processor can resume normal operation. When the secondary processor resumes normal operation, it will send a heartbeat feedback signal to the main processor.

[0054] S112: If no heartbeat feedback signal is received within a preset period after the first heartbeat inquiry signal is sent, a sub-processor restart signal is sent to the sub-processor; the sub-processor restart signal is used to restart the sub-processor.

[0055] If the main processor still does not receive the heartbeat feedback signal within the preset period, it means that the operation of the sub-processor is seriously abnormal and cannot be recovered by means of an interrupt request. At this time, it is necessary to send a sub-processor restart signal to restart the sub-processor, for example, through the reset terminal (RESET terminal) of the microcontroller to achieve restart. The reset terminal of the microcontroller is used to reset the internal state and registers of the microcontroller to the initial state. When the reset signal is activated, all memory units, registers, ports and state variables are cleared and return to the initial state of the microcontroller.

[0056] When the secondary processor is restarted, it will send a heartbeat feedback signal to the main processor. At this time, the main processor can obtain the previously backed-up first control action signal through the external memory, and then resend it to the secondary processor, so that the secondary processor can continue to complete the previous work.

[0057] S113: If the heartbeat feedback signal is not received within the first preset time after the secondary processor restart signal is sent, a secondary processor fault signal is sent to the host computer.

[0058] The main processor waits for a first preset time, which is greater than the time it takes for the secondary processor to restart. If the main processor has not received the heartbeat feedback signal, it means that the secondary processor has a serious fault. At this time, the secondary processor fault signal is sent to the host computer through the second communication module, such as a wired network, a wireless network, Bluetooth, etc., to prompt the operator to handle it.

[0059] S120: If a heartbeat feedback signal is received and a first action signal is received, a first control action signal is sent to the sub-processor; the first action signal is a command signal sent by the host computer and is used to instruct the first peripheral device to perform a first preset action; the first control action signal is used to control the sub-processor to send a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; the first peripheral device is a peripheral device controlled by the sub-processor.

[0060] The secondary processor controls the first peripheral device, such as a sensor, an interface control module or a solenoid valve controller, etc. The host computer is generally in the control room and is used by operators to remotely operate the control system. Figure 4 As shown, when the main processor receives the heartbeat feedback signal, it indicates that the operating status of the sub-processor is normal. At this time, it receives the first action signal sent by the host computer, such as controlling the sensor to collect data, controlling the interface module action, or controlling the solenoid valve action, etc.; the main processor generates a first control action signal based on the first action signal and sends it to the sub-processor, so that the sub-processor sends a first control instruction to the corresponding first peripheral device; the first peripheral device will execute the corresponding first preset action after receiving the first control instruction.

[0061] S121: Sending a first control backup signal to an external memory; the first control backup signal is used to back up the first control action signal to the external memory.

[0062] The main processor backs up the first control action signal in the external memory. This design allows recovery after the secondary processor restarts abnormally, thereby ensuring stable operation of the system.

[0063] S122: When a first data feedback signal is received, first backup data is obtained; the first data feedback signal is a feedback signal sent by the sub-processor after receiving the first data fed back by the first peripheral device; the first backup data is the first data backed up by the sub-processor in the external memory; the first data is the data fed back after the first peripheral device executes the first preset action.

[0064] After executing the first preset action, the first peripheral device will feedback the first data to the sub-processor; the sub-processor will back up the first data to the external memory, and then send a first data feedback signal to the main processor; after receiving the first data feedback signal, the main processor can read the external memory to obtain the first backup data, that is, obtain the first data fed back by the first peripheral device. This design can save the storage resources of the sub-processor and prevent the loss of the first data when the sub-processor is abnormal. At the same time, there is no need for a large amount of data exchange between the main processor and the sub-processor, which can significantly reduce the communication overhead, including data transmission time, bandwidth occupancy, and potential conflict resolution overhead; reducing data exchange can make the main processor and the sub-processor more focused on their respective task processing without frequently waiting for data transmission or synchronization, which helps to optimize resource allocation and improve the processing efficiency of the overall system.

[0065] S123: Process the first backup data.

[0066] After acquiring the first backup data, the main processor can use the high performance of the main processor to process the first backup data according to the requirements of the intelligent program. For example, the data can be intelligently analyzed using a deep learning method and the analysis results can be uploaded to the host computer, or new control instructions can be generated based on the analysis results and sent to the sub-processor, so as to achieve the control system with real-time communication collection and intelligent processing capabilities.

[0067] S130: When a second action signal is received, a second control instruction is sent to the second peripheral device; the second action signal is a command signal sent by the host computer and is used to instruct the second peripheral device to perform a second preset action; the second control instruction is used to control the second peripheral device to perform the second preset action.

[0068] The main processor controls the secondary peripheral devices, such as cameras, audio modules, etc. Figure 5 As shown, when the main processor receives the second action signal sent by the host computer, such as controlling the camera to take pictures, controlling the audio module to play, etc.; the main processor generates a second control instruction based on the second action signal and sends it to the corresponding second peripheral device; the second peripheral device will execute the corresponding second preset action after receiving the second control instruction.

[0069] S131: Sending a second action backup signal to the external memory; the second action backup signal is used to back up the second action signal to the external memory.

[0070] The main processor backs up the second action signal in the external memory. This design can restore the main processor after an abnormal restart, thereby ensuring the stable operation of the system.

[0071] S132: receiving second data. After the second peripheral device executes the second preset action, it will feed back second data to the main processor, and the main processor receives the second data.

[0072] S133: When receiving the second data, sending a second data backup signal to the external memory; the second data is data fed back after the second peripheral device executes the second preset action; the second data backup signal is used to back up the second data to the external memory.

[0073] The main processor backs up the second data in the external memory. This design can save the storage resources of the main processor and prevent the loss of the second data when the main processor restarts abnormally.

[0074] S134: Process the second data. The main processor may process the second data according to the requirements of the intelligent program. For example, a deep learning method may be used to perform intelligent analysis on the data, and the analysis results may be uploaded to the host computer, or a new control instruction may be generated based on the analysis results and sent to the second peripheral device, so as to achieve the control system having the capabilities of real-time communication collection and intelligent processing.

[0075] The second aspect of the present application provides a dual-processor control method for use in a mine, which is applied to a sub-processor. The sub-processor uses a single-chip microcomputer, such as a 51 single-chip microcomputer, an AVR (Advanced Virtual RISC) single-chip microcomputer, etc. The single-chip microcomputer integrates various functional components on a crystal chip, has high integration, small size, light weight, and high reliability, and is very suitable for controlling a first peripheral device, such as sensors, various interface modules, and solenoid valves.

[0076] Dual processor control methods include:

[0077] S200: Initialization step. The initialization step is generally executed when the system is turned on to ensure that the secondary processor can start and run correctly and safely.

[0078] When a handshake signal sent by the main processor is received, a handshake feedback signal is sent to the main processor.

[0079] When receiving the handshake protocol sent by the main processor, the handshake protocol is parsed, the heartbeat interval, communication data packet, etc. are configured according to the preset period and data exchange frequency in the handshake protocol, and a handshake protocol feedback signal is sent to the main processor to complete the handshake.

[0080] S210: When a heartbeat monitoring signal is received, a heartbeat feedback signal is sent to the main processor.

[0081] The main processor and the sub-processor monitor the running status by means of heartbeat monitoring. The main processor sends a heartbeat monitoring signal to the sub-processor at a preset period, for example, 100ms / time. After receiving the heartbeat monitoring signal, the sub-processor returns a heartbeat feedback signal. If the sub-processor receives the heartbeat monitoring signal, it means that the running status of the main processor is normal.

[0082] S211: If no heartbeat monitoring signal is received within a preset period, a second heartbeat inquiry signal is sent to the main processor; the second heartbeat inquiry signal has the highest priority for instruction execution on the main processor.

[0083] If the secondary processor does not receive the heartbeat monitoring signal within the preset period, it means that the operation of the main processor is abnormal, and it is necessary to send a second heartbeat inquiry signal to the main processor. The second heartbeat inquiry signal has the highest priority of instruction execution on the main processor, for example, by using the interrupt interface of the ARM processor to achieve the highest priority of instruction execution.

[0084] The interrupt interface of the ARM processor is responsible for processing the interrupt requests sent by external devices to the ARM processor. When the priority of the interrupt request is the highest priority, the ARM processor will suspend the execution of the current program and give priority to the highest priority interrupt request. Generally, the abnormal operation of the ARM processor is caused by the program entering a certain dead loop. Through the second heartbeat inquiry signal, the execution of the current program is interrupted, so that the program can jump out of the dead loop, or the program can be restored to a fixed point to start execution, so that the main processor can resume normal operation. When the main processor resumes normal operation, it will send a heartbeat monitoring signal to the secondary processor.

[0085] S212: If the heartbeat monitoring signal is not received within a preset period after the second heartbeat inquiry signal is sent, a main processor restart signal is sent to the main processor; the main processor restart signal is used to restart the main processor.

[0086] If the secondary processor still does not receive the heartbeat monitoring signal within the preset period, it means that the operation of the main processor is seriously abnormal and cannot be recovered through an interrupt request. At this time, it is necessary to send a main processor restart signal to restart the main processor, such as through the reset end (RESET end) of the ARM processor. The reset end of the ARM processor is used to reset the internal state and registers of the ARM processor to the initial state. When the reset signal is activated, all memory units, registers, ports and state variables are cleared and return to the initial state of the ARM processor.

[0087] When the main processor is restarted, the backup data in the external memory is obtained; according to the backup data, the work before the restart is restored. For example, the main processor continues to send the second control instruction to the second peripheral device according to the backup second action signal; or the main processor continues to run the intelligent program for data analysis according to the backup first data, and sends a heartbeat monitoring signal to the secondary processor.

[0088] S213: If the heartbeat monitoring signal is not received within a fourth preset time after the main processor restart signal is sent, a main processor fault signal is sent to the host computer.

[0089] The secondary processor waits for a fourth preset time, which is greater than the time for the primary processor to restart. If the secondary processor has not received the heartbeat monitoring signal, it indicates that the primary processor has a serious fault. At this time, the primary processor fault signal is sent to the upper computer through the first communication module, such as the CAN bus, RS485 and other interface data protocols, prompting the operator to handle it.

[0090] S220: When receiving the first control action signal, sending a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action;

[0091] The sub-processor controls the first peripheral device, such as a sensor, an interface control module or a solenoid valve controller; when the sub-processor receives the first control action signal sent by the main processor, such as controlling the sensor to collect data, controlling the interface module action or controlling the solenoid valve action, the sub-processor generates a first control instruction according to the first control action signal and sends it to the corresponding first peripheral device; the first peripheral device will perform corresponding actions after receiving the first control instruction.

[0092] S221: When the first data is received, a first data backup signal is sent to the external memory; the first data backup signal is used to back up the first data to the external memory; the first data is data fed back after the first peripheral device executes the first preset action.

[0093] After executing the first preset action, the first peripheral device will feedback the first data to the secondary processor. The secondary processor will back up the first data to the external memory, so that the design can save the storage resources of the secondary processor and the communication overhead between the main processor and the secondary processor.

[0094] S222: Sending a first data feedback signal to the main processor. This is designed to notify the main processor that it can read the external memory, so as to obtain the first data fed back by the first peripheral device.

[0095] The second aspect of the present application provides a dual-processor control method for use in mines, which is applied to a host computer, which can be a mobile phone, tablet computer, desktop computer, server, industrial computer, or other device with storage and computing functions, generally in a control room, to execute human-computer interaction instructions and display data.

[0096] Dual processor control methods include:

[0097] If the secondary processor fault signal and the main processor fault signal are received within the third preset time, a communication fault alarm is sent; the secondary processor fault signal is a fault signal sent by the main processor according to the program judgment, and the main processor fault signal is a fault signal sent by the secondary processor according to the program judgment; if only the main processor fault signal is received within the third preset time, a main processor fault alarm is sent. If only the secondary processor fault signal is received within the third preset time, a secondary processor fault alarm is sent.

[0098] The upper computer can play an arbitration role. For example, the third preset time is 1s. When the sub-processor fault signal and the main processor fault signal are received at the same time within 1s, the upper computer arbitrates and determines that there is a communication failure between the main and sub-processors, and there is no failure between the sub-processor and the main processor. At this time, a communication failure alarm is sent to prompt the operator to handle it; when only the main processor fault signal is received within 1s, but the sub-processor fault signal is not received, the upper computer arbitrates and determines that the main processor is working abnormally, sends a main processor fault alarm, and prompts the operator to handle it; when only the sub-processor fault signal is received within 1s, but the main processor fault signal is not received, the upper computer arbitrates and determines that the sub-processor is working abnormally, sends a sub-processor fault alarm, and prompts the operator to handle it.

[0099] A fourth aspect of the present application provides a dual-processor control system for use in a mine, such as Figure 1 , including: a main processor, a sub-processor, an external memory and a host computer, wherein the external memory is configured to store data sent by the main processor and the sub-processor; the main processor is configured to execute the above-mentioned first aspect of a dual-processor control method for use in a mine; the sub-processor is configured to execute the above-mentioned second aspect of a dual-processor control method for use in a mine; the host computer is configured as the above-mentioned third aspect of a dual-processor control method for use in a mine.

[0100] In an illustrative embodiment, the main processor, the secondary processor and the external memory are powered by independent power modules. Using independent power modules can ensure that the main processor, the secondary processor and the external memory obtain stable and reliable power supply. Due to the harsh working conditions in the mine, the use of independent power supply can significantly reduce the risk of system failure caused by power supply problems.

[0101] In an illustrative embodiment, the data transmission between the main processor, the sub-processor and the external memory is isolated by photoelectric coupling. Photoelectric coupling realizes the isolated transmission of electrical signals through internal photoelectric conversion, which can achieve complete isolation of electrical signals, effectively prevent interference and electrical breakdown between circuits, and improve the stability and reliability of the system.

[0102] Since the dual-processor control system for use in a mine provided in this embodiment has the dual-processor control method provided in any of the above embodiments, the dual-processor control system has all the beneficial effects of the dual-processor control method provided in any of the above embodiments, which will not be repeated here.

[0103] It should be noted that the terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0104] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "exemplary embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0105] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in the field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A dual processor control method for use in a mine, applied to a main processor, characterized in that: The dual processor control method comprises: Sending a heartbeat monitoring signal to the secondary processor at a preset period; the heartbeat monitoring signal is used to monitor the status of the secondary processor; If a heartbeat feedback signal is received and a first action signal is received, a first control action signal is sent to the sub-processor; the first action signal is a command signal sent by the host computer and used to instruct the first peripheral device to perform a first preset action; the first control action signal is used to control the sub-processor to send a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; the first peripheral device is a peripheral device controlled by the sub-processor; Sending a first control backup signal to an external memory; the first control backup signal is used to back up the first control action signal to the external memory; When a first data feedback signal is received, first backup data is obtained; the first data feedback signal is a feedback signal sent by the sub-processor after receiving the first data fed back by the first peripheral device; the first backup data is the first data backed up by the sub-processor in the external memory; the first data is data fed back after the first peripheral device executes the first preset action.

2. A dual-processor control method for use in a mine as claimed in claim 1, characterized in that: If no heartbeat feedback signal is received within the preset period after the heartbeat monitoring signal is sent, sending a first heartbeat inquiry signal to the secondary processor; The first heartbeat inquiry signal has the highest priority for instruction execution on the secondary processor; the heartbeat feedback signal is a feedback signal sent by the secondary processor; If the heartbeat feedback signal is not received within the preset period after the first heartbeat inquiry signal is sent, sending a secondary processor restart signal to the secondary processor; The CPU restart signal is used to restart the CPU.

3. A dual-processor control method for use in a mine as claimed in claim 2, characterized in that: If the heartbeat feedback signal is not received within a first preset time after the secondary processor restart signal is sent, a secondary processor fault signal is sent to the host computer.

4. A dual-processor control method for use in a mine as claimed in claim 1, characterized in that: When a second action signal is received, a second control instruction is sent to the second peripheral device; the second action signal is a command signal sent by the host computer and is used to instruct the second peripheral device to perform a second preset action; the second control instruction is used to control the second peripheral device to perform the second preset action; Sending a second action backup signal to the external memory; the second action backup signal is used to back up the second action signal to the external memory; When receiving the second data, sending a second data backup signal to the external memory; The second data is data fed back after the second peripheral device executes the second preset action; and the second data backup signal is used to back up the second data to the external memory.

5. A dual-processor control method for use in a mine as claimed in claim 1, characterized in that: When the main processor is restarted, the backup data in the external memory is obtained; Restore the work before the restart based on the backup data.

6. A dual-processor control method for use in a mine as claimed in claim 1, characterized in that: The dual processor control method further comprises: an initialization step; The initialization step includes: Sending a handshake signal to the secondary processor, wherein the handshake signal is used to confirm whether the communication between the main processor and the secondary processor is normal; If a handshake feedback signal is received within a second preset time after the handshake signal is sent, a handshake protocol is sent to the secondary processor, the handshake protocol including: the preset period and the data exchange frequency; the handshake feedback signal is a response signal sent by the secondary processor; If the handshake feedback signal is not received within the second preset time after the handshake signal is sent, querying a communication counter, the communication counter being used to record the statistical number of times the handshake signal is sent; If the statistical number of the communication counter is greater than the preset number, an initialization fault signal is sent to the host computer.

7. A dual processor control method for use in a mine, applied to a secondary processor, characterized in that: The dual processor control method comprises: When a heartbeat monitoring signal is received, a heartbeat feedback signal is sent to the main processor; When receiving the first control action signal, sending a first control instruction to the first peripheral device; the first control instruction is used to control the first peripheral device to perform a first preset action; When the first data is received, a first data backup signal is sent to the external memory; the first data backup signal is used to back up the first data to the external memory; the first data is data fed back after the first peripheral device executes the first preset action; A first data feedback signal is sent to the main processor.

8. A dual-processor control method for use in a mine as claimed in claim 7, characterized in that: If the heartbeat monitoring signal is not received within a preset period, sending a second heartbeat inquiry signal to the main processor; The second heartbeat inquiry signal has the highest priority for instruction execution on the main processor; If the heartbeat monitoring signal has not been received within the preset period after the second heartbeat inquiry signal is sent, sending a main processor restart signal to the main processor; The main processor restart signal is used to restart the main processor.

9. A dual-processor control method for use in a mine, applied to a host computer, characterized in that: The dual processor control method comprises: If a secondary processor fault signal and a main processor fault signal are received within a third preset time, a communication fault alarm is sent; the secondary processor fault signal is a fault signal sent by the main processor according to program judgment, and the main processor fault signal is a fault signal sent by the secondary processor according to program judgment; If only the main processor fault signal is received within the third preset time, a main processor fault alarm is sent; If only the secondary processor failure signal is received within the third preset time, a secondary processor failure alarm is sent.

10. A dual-processor control system for use in a mine, characterized in that: include: A main processor, a sub-processor, an external memory and a host computer, wherein the external memory is configured to store data sent by the main processor and the sub-processor; The main processor is configured to execute a dual-processor control method for use in a mine as claimed in any one of claims 1 to 6; The secondary processor is configured to execute a dual-processor control method for use in a mine as claimed in any one of claims 7 to 8; The host computer is configured to execute the dual-processor control method for use in a mine as described in claim 9.

11. A dual-processor control system for use in a mine as claimed in claim 10, characterized in that: The main processor, the sub-processor and the external memory are respectively powered by independent power modules.

12. A dual-processor control system for use in a mine as claimed in claim 10, characterized in that: The data transmission among the main processor, the sub-processor and the external memory is isolated by photoelectric coupling.

Citation Information

Cited By

  • Cooperative control system for precise positioning and emergency response of mine hoisting cage

    CN121500837A