Main and standby control method, device and equipment based on dual-computer hot standby system
By obtaining the operating status of the controller in the dual-machine hot standby system and using the interlocking controller to perform main and standby switching, the problem of poor versatility in the existing technology is solved, and automated hot standby switching and security improvement is achieved.
Patent Information
- Application Number
- CN202411307801.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing dual-machine hot standby system has poor versatility in the main and standby control process, and additional processors are required to burn control logic, which makes it difficult to replace and adjust the device.
By obtaining the operating status of the local and extension controllers, the two interlocked controllers are used to switch the main and standbys to avoid the intervention of additional processors and realize automated hot standby switching.
It improves the versatility of the main and backup control of the dual-machine hot standby system, reduces the complexity of equipment replacement and adjustment, saves costs, and enhances the safety of train operation.
Smart Images

Figure CN119024675A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of rail transit technology, and in particular to a method, device and equipment for active-standby control based on a dual-machine hot standby system. Background Art
[0002] In the existing train operation process, in order to ensure control safety, a dual-machine hot standby redundant system is generally used for control, that is, two sets of computing devices with the same hardware configuration, running the same software, and realizing the switching of the master and standby machines through the master-standby switching unit. When the host controls the external equipment, the standby machine keeps synchronous operation with the host. When the host fails, the standby machine switches to the host and takes over control.
[0003] At present, in the existing dual-machine hot standby system, the active-standby control process is generally carried out using a separate active-standby switching unit, in which an additional processor is provided, and a fixed control logic is pre-burned in the processor, and when active-standby control is required, control and management are performed through the processor. However, in actual applications, the existing control method obviously requires an additional processor to use the burned-in control logic for control, which results in the need to re-burn the control logic once the computing device in the dual-machine hot standby system is changed and adjusted, making the existing dual-machine hot standby control process less versatile. Summary of the invention
[0004] The embodiments of the present application provide a method, device and equipment for active-standby control based on a dual-machine hot standby system, the main purpose of which is to solve the problem of poor versatility in the current active-standby control process based on a dual-machine hot standby system.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a master-slave control method based on a dual-machine hot standby system, the method comprising:
[0007] Respectively obtain the running status of the local controller and the running status of the extension controller, wherein the local controller is a controller whose driving end is connected to the local controller, and the extension controller is a controller whose driving end is connected to another computing device other than the local controller, and the running status is used to determine whether the current device is a host;
[0008] When it is determined that the local machine is the host and it is determined that the local machine has a fault, the driving of the local machine controller is stopped so that the local machine controller switches to a non-working state and interrupts the operation of the local machine so that another computing device becomes the host state and operates;
[0009] When it is determined that the machine is a standby machine and it is determined that there is a fault in the machine, the driving of the controller of the machine is stopped so that the controller of the machine remains in a non-working state and the machine continues to remain in a standby state.
[0010] Optionally, when it is determined that the local machine is a host and it is determined that the local machine has a fault, stopping driving the local machine controller includes:
[0011] When it is determined that the machine is the host, the fault level of the machine is determined, the fault level includes a dangerous level and a general level, and the dangerous level is used to indicate whether the current fault affects the safe operation of the train;
[0012] When it is determined that the fault level of the machine is a dangerous level, the driving of the machine controller is stopped, and the machine is controlled to perform a shutdown operation.
[0013] Optionally, the general level is used to characterize that the current fault affects some control functions but does not affect the safe operation of the train;
[0014] After determining the fault level of the local machine when the local machine is determined to be the host machine, the method further includes:
[0015] When it is determined that the local fault level is a general level and it is determined that another computing device does not have a fault, driving the local controller is stopped.
[0016] Optionally, when the local machine is determined to be a host, after determining the fault level of the local machine, the method further includes:
[0017] When it is determined that the fault level of the local device is a general level, and when it is determined that the fault level of another computing device is also a general level, prompt information is output to the user to prompt whether the user needs to perform a primary-standby switching operation.
[0018] Optionally, after respectively acquiring the operating status of the local controller and the operating status of the extension controller, the method further includes:
[0019] Controlling the machine to maintain real-time communication with another computing device and determining whether they are synchronized;
[0020] When it is determined that the local machine is a standby machine, and it is determined that the local machine is not synchronized with the host machine, the driving of the local controller is stopped, so that the local controller remains in a non-working state and the local machine continues to remain in the standby state.
[0021] In a second aspect, the present application further provides a master-slave control device based on a dual-machine hot standby system, comprising:
[0022] an acquisition unit, used to respectively acquire the operating status of the local controller and the operating status of the extension controller, wherein the local controller is a controller whose driving end is connected to the local controller, and the extension controller is a controller whose driving end is connected to another computing device other than the local controller, and the operating status is used to determine whether the current device is a host;
[0023] A first control unit is used for, when it is determined that the local machine is a host machine and that there is a fault in the local machine, to stop driving the local machine controller so that the local machine controller switches to a non-working state and interrupts the local machine operation so that another computing device becomes a host machine and operates;
[0024] The second control unit is used to stop driving the local controller when it is determined that the local machine is a standby machine and when it is determined that the local machine has a fault, so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0025] Optionally, the first control unit is further specifically used to determine the fault level of the machine when it is determined that the machine is a host machine, the fault level including a dangerous level and a general level, the dangerous level being used to characterize how the current fault affects the safe operation of the train; and, when it is determined that the fault level of the machine is a dangerous level, stop driving the local controller and control the machine to perform a shutdown operation.
[0026] Optionally, the general level is used to characterize that the current fault affects some control functions but does not affect the safe operation of the train;
[0027] The first control unit is further specifically configured to stop driving the local controller when it is determined that the local fault level is a general level and when it is determined that another computing device does not have a fault.
[0028] Optionally, the first control unit is further specifically used to output prompt information to the user when it is determined that the fault level of the local device is a general level and when it is determined that the fault level of another computing device is also a general level, so as to prompt the user whether to perform a master-slave switching operation.
[0029] Optionally, the device further comprises:
[0030] A communication unit, used to control the machine to maintain real-time communication with another computing device and determine whether to synchronize;
[0031] The third control unit is used to stop driving the local controller when it is determined that the local machine is a standby machine and is not synchronized with the host machine, so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0032] In a third aspect, the present application further provides a master-slave control device based on a dual-machine hot standby system, comprising:
[0033] Two controllers, wherein each of the controllers is respectively connected to a computing device in an external dual-machine hot standby system; the two controllers are interlocked;
[0034] The controller is used to output working status information to the computing device and receive feedback information, and the feedback information is used to switch the operating state of the controller.
[0035] Furthermore, the controller specifically includes relays; a driving end of each of the relays is connected to one of the computing devices respectively; and a state acquisition end of the relay is connected to two of the computing devices respectively.
[0036] In a fourth aspect, an embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the master-standby control method based on a dual-machine hot standby system as described in any one of the first aspects.
[0037] In the fifth aspect, an embodiment of the present application provides a master-standby control device based on a dual-machine hot standby system, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the master-standby control method based on the dual-machine hot standby system described in any one of the first aspects is executed.
[0038] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0039] The present application provides a method, device and equipment for active-standby control based on a dual-machine hot standby system. The present application includes two controllers, wherein each of the controllers is respectively connected to a computing device in an external dual-machine hot standby system; the two controllers are interlocked; the controller is used to output working status information to the computing device and receive feedback information, and the feedback information is used to switch the operating status of the controller, thereby realizing the active-standby control function based on the dual-machine hot standby system. Compared with the prior art, the present application no longer requires an additional processor to perform the master-slave control during the master-slave control process, but can perform the control based on the two controllers in the device. Since the two controllers are interlocked, that is, when one controller operates normally, the computing device connected to it can also operate normally, while the other controller will be locked due to the interlocking, and the computing device connected to the locked controller will be in a non-working mode. In this way, it can be ensured that when only one computing device is in the working state of the host, the other computing device is in the standby mode. At the same time, since the controller can also control the operating state based on feedback information, once the computing device as the host fails or is abnormal, it can control the controller connected to it to shut down based on the feedback information, so that the other controller can start and make the other computing device as the standby machine operate normally and become the host. This realizes the function of realizing master-slave switching without the need for additional processor management. Compared with the prior art, no additional processor is required, and no corresponding control logic needs to be burned additionally. In this way, no matter which computing device of the dual-machine hot standby system is replaced, automatic hot standby switching can be realized in the above manner, which has good versatility. At the same time, since the present application can rely on only two controllers for active-standby switching without the need for intervention of other processors, with the help of the two computing devices built into the dual-machine hot standby system, it can not only save the need to specially set up corresponding control circuits to ensure the operation of additional processors, but also achieve the effect of saving costs.
[0040] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0042] Figure 1A module schematic diagram of a master-slave control device based on a dual-machine hot standby system provided in an embodiment of the present application is shown;
[0043] Figure 2 A module schematic diagram of another active-standby control device based on a dual-machine hot standby system provided in an embodiment of the present application is shown;
[0044] Figure 3 A flow chart of a master-slave control method based on a dual-machine hot standby system provided in an embodiment of the present application is shown;
[0045] Figure 4 Another flow chart of a master-slave control method based on a dual-machine hot standby system provided in an embodiment of the present application is shown;
[0046] Figure 5 A block diagram showing a composition of a master-slave control device based on a dual-machine hot standby system provided in an embodiment of the present application is shown;
[0047] Figure 6 A block diagram of another active-standby control device based on a dual-machine hot standby system provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0049] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0050] The present application also provides a master-slave control device based on a dual-machine hot standby system. Figure 1 As shown, the device includes:
[0051] Two controllers 11, wherein each of the controllers is respectively connected to a computing device in an external dual-machine hot standby system; the two controllers are interlocked;
[0052] The controller is used to output working status information to the computing device and receive feedback information, and the feedback information is used to switch the operating state of the controller.
[0053] Since the two controllers are interlocked, that is, when one controller operates normally, the computing device connected to it can also operate normally, and the other controller is locked due to the interlocking, then the computing device connected to the locked controller will be in a non-working mode, so that only one computing device is in the working state of the host, and the other computing device is in the standby mode. In addition, since the controller can also control the operating state based on feedback information, that is, whether each controller is started or shut down depends on the control of the computing device currently connected to it, once the computing device as the host fails or is abnormal, it can control the controller connected to it to shut down based on feedback information. At this time, the other controller is interlocked with the currently closed controller. At this time, as long as one is shut down, the other will start, which can make the other computing device as the standby (that is, the computing device connected to the started controller) operate normally and become the host. In this way, the function of realizing the master-slave switching can be realized without the need for additional processors for management. Compared with the prior art, no additional processor is required, and no additional corresponding control logic needs to be burned. In this way, no matter which computing device of the dual-machine hot standby system is replaced, automatic hot standby switching can be realized in the above manner, which has good versatility.
[0054] Further, in some embodiments, Figure 2 As shown, the controller in the above-mentioned master-slave control device can also be specifically a relay 21; the driving end 211 of each relay is respectively connected to one of the computing devices; and the state acquisition end 212 of the relay is respectively connected to two of the computing devices.
[0055] In this embodiment, the relay is provided with a driving end and a state acquisition end, wherein the driving end is used to receive feedback information sent by the computing device, so that the computing device can control the relay to work or close through the feedback information. The state acquisition end, as the name implies, is used to send the current operation status of the relay to the computing device, indicating whether it is in an open state or a closed state. In this way, by connecting the driving end of each relay to a computing device, it can be ensured that each relay is controlled by a computing device, so that the effect of each computing device controlling the relay connected to it separately during the control process is ensured, so that the control process is more flexible, and there is no need to cause the problem of complex control circuits due to the control of a computing device. At the same time, by connecting the state acquisition end of the relay to two computing devices respectively, it can be ensured that the operation status of each relay can be collected by each computing device, thereby eliminating the process that the two computing devices still need to synchronize their respective relay operation statuses after only collecting the operation status of one relay, thereby improving the analysis efficiency, and avoiding the situation of data loss or loss that may be caused by synchronizing data, thereby improving the accuracy of the master-slave control process.
[0056] The present application also provides a method for controlling a master-slave relationship based on a dual-machine hot standby system. Figure 3 As shown, the method includes:
[0057] 301. Obtain the operating status of the local controller and the operating status of the extension controller respectively.
[0058] Wherein, the local controller is a controller whose driving end is connected to the local controller, the extension controller is a controller whose driving end is connected to another computing device other than the local controller, and the running state is used to determine whether the current device is a host;
[0059] In this embodiment, each computing device is provided with a corresponding controller, and the local controller is the controller connected to the current computing device, which can control its on or off through the feedback information of the local device, so that the local device can switch between the main device and the backup device. The extension controller is the controller corresponding to another computing device.
[0060] In this embodiment, when the dual-machine hot standby system is turned on, since it is currently unknown which of the two computing devices is the host and which is the standby, and the controllers are interlocked, that is, only one of the two can operate normally, and the other can only be in a closed state, then the status of these two controllers can reflect the identification of the master and standby status of the computing device corresponding to each controller. Therefore, at this time, it is necessary to obtain the operating status of the local controller and the extension controller respectively according to the method of this step.
[0061] 302. When it is determined that the local machine is the host and it is determined that the local machine has a fault, stop driving the local controller so that the local controller switches to a non-working state and interrupts the operation of the local machine to enable another computing device to become the host state and run.
[0062] When it is determined that the current local controller is operating normally, it means that the local machine runs faster after the system is turned on, and it has "grabbed" the host mode first. In this case, if the local machine is the host, it is necessary to consider whether a master-slave switch is required. That is, when it is determined that there is a fault in the local machine, the local machine is not suitable for running as a host at present, so it is necessary to stop driving the local controller. Since the local controller and the extension controller are interlocked, only one of them can run. When the local controller that is running at this time is stopped and turned off, the standby controller will start running, and the other computing device connected to it can also run normally as a host and take over the control function. This ensures that when the local machine is the host and there is a fault, it can switch to the standby machine for control in time, realizing the master-standby switching function of the dual-machine hot standby system.
[0063] 303. When it is determined that the local machine is a standby machine and it is determined that there is a fault in the local machine, the driving of the local controller is stopped so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0064] When it is determined that the operating status of the local controller corresponding to this machine is closed, this means that the machine has not been able to "grab" the host authority after the system is started, then the machine is a backup machine. At this time, it is also necessary to detect whether the machine is faulty. When a fault is detected in the machine, it means that the machine is not suitable for master-slave switching when there is a problem with the host. Therefore, the driving of the local controller should be terminated at this time. This ensures that when the host switches to this machine, the control abnormality caused by the failure of the local machine is avoided, and the possible control accidents are avoided, thereby ensuring the safety of the control process during train operation.
[0065] The present embodiment provides a method for controlling the master and standby of a dual-machine hot standby system. The present embodiment can obtain the running state of the local controller and the running state of the branch controller respectively, wherein the local controller is a controller whose driving end is connected to the local machine, and the branch controller is a controller whose driving end is connected to another computing device outside the local machine, and the running state is used to determine whether the current device is a host; then, on the one hand, when it is determined that the local machine is the host, and when it is determined that the local machine has a fault, the driving of the local controller is stopped, so that the local controller switches to a non-working state and interrupts the local machine to make the other computing device become the host state and run; finally, on the other hand, when it is determined that the local machine is a standby machine, and when it is determined that the local machine has a fault, the driving of the local controller is stopped, so that the local controller remains in a non-working state and the local machine continues to remain in a standby state, thereby realizing the master and standby control function based on the dual-machine hot standby system. Compared with the prior art, the present embodiment can perform master and standby switching based on the existing computing device in the master and standby control process without the need for an additional processor for control, which enables the method described in the present embodiment to be deployed in two computing devices for control, and can use the existing computing device to save costs. At the same time, since in the master-slave control process, when this machine is the master, the master-slave switch can be performed by stopping driving the local controller based on the method of the embodiment of the present application, thereby avoiding the influence of the fault on the control function of the dual-machine hot standby system, and improving the safety of train operation. In addition, when this machine is the standby machine, the problem of fault is also considered, which avoids the influence on the safety of train operation when the faulty standby machine is switched to the master, thereby further improving the safety of train operation.
[0066] To explain in more detail below, the present application embodiment provides another active-standby control method based on a dual-machine hot standby system, specifically as follows: Figure 4 As shown, the method includes:
[0067] 401. Obtain the operating status of the local controller and the operating status of the extension controller respectively.
[0068] Among them, the local controller is a controller whose driving end is connected to the local machine, and the extension controller is a controller whose driving end is connected to another computing device outside the local machine. The operating status is used to determine whether the current device is a host.
[0069] In this embodiment, the descriptions of the local controller, extension controller, operating status, etc. are consistent with those in the previous embodiments and are not repeated here.
[0070] At the same time, the method described in this embodiment is also deployed in two computing devices in the dual-machine hot standby system, that is, the execution method described in this step can actually be performed on two computing devices at the same time.
[0071] 402. When it is determined that the local machine is the host and it is determined that the local machine has a fault, the driving of the local controller is stopped so that the local controller switches to a non-working state and interrupts the operation of the local machine to enable another computing device to become the host state and run.
[0072] Since in actual applications, when this machine is the host, it means that the computing device currently deployed by this method is the main device for train operation control in the dual-machine hot standby system, then the normal operation of its equipment will affect the control function and may even affect the normal operation of the train. Therefore, this embodiment also considers the implementation process of the main and standby control under different fault conditions. Further, this step can be executed as follows:
[0073] 4021. When the machine is determined to be the host, determine the fault level of the machine.
[0074] Among them, the fault level includes a danger level and a general level, and the danger level is used to characterize the impact of the current fault on the safe operation of the train. In this embodiment, the danger level can be understood as a fault that affects the control safety of the dual-machine hot standby system. For example, an input feedback anomaly is used to characterize that there is no response feedback when a control command is issued, or there is no control command but a response feedback is received. This kind of fault that seriously affects the safety of train driving will cause a safety accident on the train.
[0075] 4022. When it is determined that the fault level of the machine is a dangerous level, the driving of the machine controller is stopped, and the machine is controlled to perform a shutdown operation.
[0076] When the fault level of this machine is determined to be a dangerous level, it means that the current machine is no longer suitable as the host machine to control the train operation. In this case, it is necessary to stop driving the local controller in time, so that this machine will no longer be controlled as the host machine, but can be controlled by the backup machine. Of course, in order to ensure further operation safety, the backup machine can also be controlled to perform downtime operation at the same time, so that after the local machine is down, it will not be used as the host machine again for control due to the backup machine performing the master-slave switch.
[0077] Furthermore, among many faults, there is a type of fault that does not cause serious safety impact on train operation. The fault level of this type of fault can be classified as a general level, which is used to characterize that the current fault affects some control functions but does not affect the safe operation of the train.
[0078] In step 4021, when it is determined that the local machine is a host machine, after determining the fault level of the local machine, the method further includes:
[0079] 4023. When it is determined that the fault level of the local device is a general level and it is determined that there is no fault in another computing device, stop driving the local controller.
[0080] At this time, when it is determined that the fault level of this machine is a general level, and it is determined that another computing device, that is, the standby machine, is not faulty, then for the sake of control accuracy, the driving of the local controller can be stopped, and the sub-machine controller corresponding to the standby machine can operate normally, and the standby machine connected to it becomes the main machine and takes over the control function. This ensures that when the machine fails, even if it does not affect the safety of operation, the main and standby switching can still be performed, making the subsequent control process of the dual-machine hot standby system more accurate.
[0081] Furthermore, in step 4021, when it is determined that the local machine is a host, after determining the fault level of the local machine, the method further includes:
[0082] 4024. When it is determined that the fault level of the local device is a general level, and when it is determined that the fault level of another computing device is also a general level, a prompt message is output to the user to prompt whether a primary-standby switching operation needs to be performed. In this embodiment, the general level of faults includes but is not limited to the following, which are respectively based on interfaces, hardware-induced interaction faults, hardware board faults, or logic abnormal faults, such as data acquisition faults.
[0083] Since the fault level of this machine is a general level, the other computing device, that is, the backup machine, also has a general level fault. In this case, manual intervention is required, that is, a prompt message is sent to the user. In this way, it can be ensured that when both computing devices involve some "minor problems", manual intervention is used to perform the primary and backup switching, thereby avoiding the problem that direct primary and backup switching may affect the normal operation of subsequent control functions.
[0084] Of course, when this step is executed, if the user pre-sets the control strategy so that both computing devices are involved in general level failures and no active / standby switching is performed, then the local controller can continue to be controlled to operate normally, without performing active / standby switching.
[0085] 403. When it is determined that the local machine is a standby machine and it is determined that the local machine has a fault, the driving of the local controller is stopped so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0086] When determining that this machine is the backup machine, if it is determined that there is a fault in this machine, it is best to stop ensuring the local controller. This avoids the problem of the subsequent host switching to the main machine causing the fault to affect the control function of the dual-machine hot standby system.
[0087] 404. Control the local device to maintain real-time communication with another computing device, and determine whether to synchronize.
[0088] Furthermore, since the process of switching between the master and the standby may involve synchronization issues of communication interaction, and the two are not synchronized, once the master and the standby are switched, it is likely to affect the safe operation of the train. In view of this, after step 403, the method of this step can also be used to maintain the communication between the local machine and the standby machine, and determine whether the data between the two is synchronized. If the two are synchronized, it means that the master and standby switching can be performed at any time. Otherwise, it means that there is a problem with the current device or the standby machine, and it is not recommended to switch between the master and the standby machine.
[0089] It should be noted that the method described in step 404 in this embodiment can actually be executed after step 401 during the specific implementation process, and it is not necessarily performed in the order described in this embodiment. That is to say, in the process of performing steps 402 and 403, the methods of steps 404-405 can be executed simultaneously, that is, in the process of performing active-standby switching, it can be determined whether it is necessary to terminate driving the local controller based on the communication situation. The order described in this step is only exemplary.
[0090] 405. When it is determined that the local machine is a standby machine and it is determined that the local machine is not synchronized with the host machine, the driving of the local controller is stopped so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0091] In this embodiment, when it is determined that this machine is a backup machine, it means that the other computing device in the dual-machine hot standby system is controlling the train operation at this time. If it is found that this machine is not synchronized with the host machine at this time, it means that the backup machine is likely to have an abnormality (the host machine has been controlling the train operation in real time, and its data must be the latest and normal). Then it is necessary to stop driving the local controller at this time. This can ensure that the master-slave switch to this machine and the machine acts as the host, thus avoiding the problem of affecting the train operation due to the current abnormality of the machine.
[0092] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned master-standby control method based on the dual-machine hot standby system.
[0093] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides a master-standby control device based on a dual-machine hot standby system, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the above-mentioned master-standby control method based on the dual-machine hot standby system is executed.
[0094] Furthermore, as a response to the above Figure 3 and Figure 4 In order to realize the method shown in the figure, another embodiment of the present application also provides a master-slave control device based on a dual-machine hot standby system. The master-slave control device embodiment based on a dual-machine hot standby system corresponds to the aforementioned method embodiment. For ease of reading, the master-slave control device embodiment based on a dual-machine hot standby system will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the system in this embodiment can correspond to all the contents of the aforementioned method embodiment. Specifically, Figure 5 As shown, the active-standby control device based on the dual-machine hot standby system includes:
[0095] The acquisition unit 51 may be used to respectively acquire the operating status of the local controller and the operating status of the extension controller, wherein the local controller is a controller whose driving end is connected to the local controller, and the extension controller is a controller whose driving end is connected to another computing device other than the local controller, and the operating status may be used to determine whether the current device is a host;
[0096] The first control unit 52 may be used to stop driving the local controller when the acquisition unit 51 determines that the local device is the host and determines that the local device has a fault, so that the local controller switches to a non-working state and interrupts the local device to enable another computing device to become the host and run;
[0097] The second control unit 53 can be used to stop driving the local controller when the acquisition unit 51 determines that the local machine is a standby machine and determines that the local machine has a fault, so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0098] Further, such as Figure 6 As shown, the first control unit 52 can also be specifically used to determine the fault level of the local machine when it is determined that the local machine is the host machine, the fault level includes a dangerous level and a general level, and the dangerous level can be used to characterize the impact of the current fault on the safe operation of the train; and, when it is determined that the fault level of the local machine is a dangerous level, stop driving the local controller and control the local machine to perform a shutdown operation.
[0099] Further, such as Figure 6As shown, the general level can be used to indicate that the current fault affects some control functions but does not affect the safe operation of the train;
[0100] The first control unit 52 may also be specifically configured to stop driving the local controller when it is determined that the local fault level is a general level and when it is determined that another computing device does not have a fault.
[0101] Further, such as Figure 6 As shown, the first control unit 52 can also be specifically used to output prompt information to the user when it is determined that the fault level of the local device is a general level and when it is determined that the fault level of another computing device is also a general level, so that the prompt can be used to indicate whether a master-slave switching operation needs to be performed.
[0102] Further, such as Figure 6 As shown, the device also includes:
[0103] The communication unit 54 can be used to control the local device to maintain real-time communication with another computing device and determine whether to synchronize;
[0104] The third control unit 55 can be used to stop driving the local controller when it is determined based on the communication unit 54 that the local machine is a standby machine and that the local machine is not synchronized with the host machine, so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
[0105] The embodiment of the present application provides a method, device and equipment for master-slave control based on a dual-machine hot standby system. Compared with the prior art, the embodiment of the present application can perform master-slave switching based on existing computing devices during the master-slave control process without the need for an additional processor for control. This enables the method described in the present embodiment to be deployed in two computing devices for control, and can be performed using existing computing devices, thereby saving costs. At the same time, since the master machine can be used as the host machine during the master-slave control process, the master-slave switching can be performed by terminating the driving of the local controller based on the method of the embodiment of the present application, thereby avoiding the impact of the fault on the control function of the dual-machine hot standby system, and improving the safety of train operation. In addition, when the master machine is the standby machine, the problem of fault is also considered, thereby avoiding the impact of the faulty standby machine switching to the host machine on the safety of train operation, thereby further improving the safety of train operation.
[0106] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned active-standby control method based on the dual-machine hot standby system.
[0107] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0108] An embodiment of the present application also provides a master-standby control device based on a dual-machine hot standby system, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the above-mentioned master-standby control method based on the dual-machine hot standby system is executed.
[0109] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: respectively obtaining the operating status of a local controller and the operating status of an extension controller, wherein the local controller is a controller whose driving end is connected to the local machine, and the extension controller is a controller whose driving end is connected to another computing device outside the local machine, and the operating status is used to determine whether the current device is a host; when it is determined that the local machine is the host and that a fault exists in the local machine, the driving of the local controller is terminated so that the local machine controller is switched to a non-working state and then the local machine is interrupted to enable the other computing device to become the host machine and run; when it is determined that the local machine is a standby machine and that a fault exists in the local machine, the driving of the local controller is terminated so that the local machine controller remains in a non-working state and then the local machine continues to remain in a standby state.
[0110] Optionally, when it is determined that the local machine is a host and it is determined that the local machine has a fault, stopping driving the local machine controller includes:
[0111] When it is determined that the machine is the host, the fault level of the machine is determined, the fault level includes a dangerous level and a general level, and the dangerous level is used to indicate whether the current fault affects the safe operation of the train;
[0112] When it is determined that the fault level of the machine is a dangerous level, the driving of the machine controller is stopped, and the machine is controlled to perform a shutdown operation.
[0113] Optionally, the general level is used to characterize that the current fault affects some control functions but does not affect the safe operation of the train;
[0114] After determining the fault level of the local machine when the local machine is determined to be the host machine, the method further includes:
[0115] When it is determined that the local fault level is a general level and it is determined that another computing device does not have a fault, driving the local controller is stopped.
[0116] Optionally, when the local machine is determined to be a host, after determining the fault level of the local machine, the method further includes:
[0117] When it is determined that the fault level of the local device is a general level, and when it is determined that the fault level of another computing device is also a general level, prompt information is output to the user to prompt whether the user needs to perform a primary-standby switching operation.
[0118] Optionally, after respectively acquiring the operating status of the local controller and the operating status of the extension controller, the method further includes:
[0119] Controlling the machine to maintain real-time communication with another computing device and determining whether they are synchronized;
[0120] When it is determined that the local machine is a standby machine, and it is determined that the local machine is not synchronized with the host machine, the driving of the local controller is stopped, so that the local controller remains in a non-working state and the local machine continues to remain in the standby state.
[0121] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing program code that is initialized with the following method steps: respectively obtaining the operating status of a local controller and the operating status of an extension controller, wherein the local controller is a controller whose driving end is connected to the local machine, and the extension controller is a controller whose driving end is connected to another computing device outside the local machine, and the operating status is used to determine whether the current device is a host; when it is determined that the local machine is the host, and when it is determined that the local machine has a fault, terminating the driving of the local controller, so that after the local controller switches to a non-working state, the local machine is interrupted and the other computing device becomes the host and runs; when it is determined that the local machine is a standby machine, and when it is determined that the local machine has a fault, terminating the driving of the local controller, so that after the local controller remains in a non-working state, the local machine continues to remain in a standby state.
[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0123] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0124] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0126] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0127] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0128] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0129] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0131] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A master-slave control device based on a dual-machine hot standby system, characterized in that: The device comprises: Two controllers, wherein each of the controllers is respectively connected to a computing device in an external dual-machine hot standby system; the two controllers are interlocked; The controller is used to output working status information to the computing device and receive feedback information, and the feedback information is used to switch the operating state of the controller.
2. The device according to claim 1, characterized in that The controller specifically includes relays; the driving end of each relay is connected to one of the computing devices respectively; and the state acquisition end of the relay is connected to two of the computing devices respectively.
3. A master-slave control method based on a dual-machine hot standby system, characterized in that: The method is applied to the active / standby control device according to claim 1, and the method comprises: Respectively obtain the running status of the local controller and the running status of the extension controller, wherein the local controller is a controller whose driving end is connected to the local controller, and the extension controller is a controller whose driving end is connected to another computing device other than the local controller, and the running status is used to determine whether the current device is a host; When it is determined that the local machine is the host and it is determined that the local machine has a fault, the driving of the local machine controller is stopped so that the local machine controller switches to a non-working state and interrupts the operation of the local machine so that another computing device becomes the host state and operates; When it is determined that the machine is a standby machine and it is determined that there is a fault in the machine, the driving of the controller of the machine is stopped so that the controller of the machine remains in a non-working state and the machine continues to remain in a standby state.
4. The method according to claim 3, characterized in that When it is determined that the local machine is the host and it is determined that the local machine has a fault, stopping driving the local machine controller includes: When it is determined that the machine is the host, the fault level of the machine is determined, the fault level includes a dangerous level and a general level, and the dangerous level is used to indicate whether the current fault affects the safe operation of the train; When it is determined that the fault level of the machine is a dangerous level, the driving of the machine controller is stopped, and the machine is controlled to perform a shutdown operation.
5. The method according to claim 4, characterized in that The general level is used to indicate that the current fault affects some control functions but does not affect the safe operation of the train; After determining the fault level of the local machine when the local machine is determined to be the host machine, the method further includes: When it is determined that the local fault level is a general level and it is determined that another computing device does not have a fault, driving the local controller is stopped.
6. The method according to claim 5, characterized in that After determining the fault level of the local machine when the local machine is determined to be the host machine, the method further includes: When it is determined that the fault level of the local device is a general level, and when it is determined that the fault level of another computing device is also a general level, prompt information is output to the user to prompt whether the user needs to perform a primary-standby switching operation.
7. The method according to claim 3, characterized in that After respectively acquiring the operating status of the local controller and the operating status of the extension controller, the method further includes: Controlling the local device to maintain real-time communication with another computing device and determining whether they are synchronized; When it is determined that the local machine is a standby machine, and it is determined that the local machine is not synchronized with the host machine, the driving of the local controller is stopped, so that the local controller remains in a non-working state and the local machine continues to remain in the standby state.
8. A master-slave control device based on a dual-machine hot standby system, characterized in that: The device comprises: an acquisition unit, used to respectively acquire the operating status of the local controller and the operating status of the extension controller, wherein the local controller is a controller whose driving end is connected to the local controller, and the extension controller is a controller whose driving end is connected to another computing device other than the local controller, and the operating status is used to determine whether the current device is a host; A first control unit is used for, when it is determined that the local machine is a host machine and that there is a fault in the local machine, to stop driving the local machine controller so that the local machine controller switches to a non-working state and interrupts the local machine operation so that another computing device becomes a host machine and operates; The second control unit is used to stop driving the local controller when it is determined that the local machine is a standby machine and when it is determined that the local machine has a fault, so that the local controller remains in a non-working state and the local machine continues to remain in a standby state.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the active-standby control method based on a dual-machine hot standby system according to any one of claims 3 to 7.
10. A master-slave control device based on a dual-machine hot standby system, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the active-standby control method based on a dual-machine hot standby system according to any one of claims 3 to 7 is executed.
Citation Information
Patent Citations
Method for switching between main machine and standby machine
CN112130448A
Dual-computer hot standby control method and device and dual-computer hot standby system
CN113625540A
Establishment method of double-machine complete-machine-level hot standby system
CN114490152A
