CN112083646A - Redundancy control method, device and control system - Google Patents

Redundancy control method, device and control system Download PDF

Info

Publication number
CN112083646A
CN112083646A CN202010850995.6A CN202010850995A CN112083646A CN 112083646 A CN112083646 A CN 112083646A CN 202010850995 A CN202010850995 A CN 202010850995A CN 112083646 A CN112083646 A CN 112083646A
Authority
CN
China
Prior art keywords
controller
slave
power consumption
master controller
slave controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010850995.6A
Other languages
Chinese (zh)
Inventor
林孝鹏
周葆林
陈军平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010850995.6A priority Critical patent/CN112083646A/en
Publication of CN112083646A publication Critical patent/CN112083646A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B9/00Safety arrangements
    • G05B9/02Safety arrangements electric
    • G05B9/03Safety arrangements electric with multiple-channel loop, i.e. redundant control systems

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a redundancy control method, a redundancy control device and a redundancy control system. Wherein, the method comprises the following steps: the slave controller acquires the running state of the master controller; judging whether the running state of the main controller is a first power consumption running state, wherein the first power consumption running state means that the actual power consumption is greater than or equal to a first preset threshold value; and if the operation is the first power consumption operation, distributing tasks through the slave controllers. According to the invention, the running state of the master controller is actively acquired by the slave controller through the active detection of the running state among the controllers, and under the condition that the running state of the master controller is the first power consumption running, tasks are allocated by the slave controller, so that the probability of high-load running of the controller is reduced, the occurrence of controller faults can be effectively reduced, the reliability of the system is improved, and the service life is prolonged.

Description

Redundancy control method, device and control system
Technical Field
The invention relates to the technical field of redundancy control, in particular to a redundancy control method, a redundancy control device and a redundancy control system.
Background
The controller acts as the brain controlling the system and, if damaged, will cause the system to crash. In applications with high interference and high reliability requirements, the controller is very badly damaged.
At present, aiming at the problem of controller damage, redundancy control is generally used, namely a master controller and a slave controller are arranged, however, in the existing redundancy control method, when the master controller fails, the master controller is switched to the slave controller for control operation, and only the master controller and the slave controller are passively switched when the master controller fails, and the occurrence of master controller failure cannot be effectively reduced actually.
Disclosure of Invention
The embodiment of the invention provides a redundancy control method, a redundancy control device and a redundancy control system, which at least solve the problem that the redundancy control method in the prior art cannot effectively reduce the faults of a main controller.
In order to solve the above technical problem, an embodiment of the present invention provides a redundancy control method, including:
the slave controller acquires the running state of the master controller;
judging whether the running state of the main controller is a first power consumption running state, wherein the first power consumption running state means that the actual power consumption is greater than or equal to a first preset threshold value;
and if the operation is the first power consumption operation, distributing tasks through the slave controllers.
Optionally, after the slave controller acquires the operating state of the master controller, the method further includes:
judging whether the running state of the main controller is a fault or not;
and if the fault is detected, switching the slave controller to the master controller to execute control operation.
Optionally, switching the slave controller to the master controller to perform a control operation includes:
the slave controller determines that the slave controller has no fault;
the slave controller is switched to be the master controller, and operation data of the original master controller are obtained;
the slave controller continues to operate according to the operation data of the original master controller to execute control operation, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is smaller than or equal to a second preset threshold value, and the first preset threshold value is larger than the second preset threshold value;
and the slave controller outputs the fault information of the original master controller.
Optionally, the step of determining whether the operating state of the main controller is a fault is performed before the step of determining whether the operating state of the main controller is the first power consumption operation, or is performed after the step of determining whether the operating state of the main controller is the first power consumption operation, or is performed simultaneously with the step of determining whether the operating state of the main controller is the first power consumption operation.
Optionally, the task is shared by the slave controller, including:
the slave controller determines that the slave controller has no fault;
the slave controller acquires the operation data of the master controller;
the slave controller distributes partial task operation of the master controller according to the acquired operation data, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is smaller than or equal to a second preset threshold, and the first preset threshold is larger than the second preset threshold.
Optionally, after the slave controller apportions part of tasks of the master controller to run according to the acquired running data, the method further includes:
after the apportioned tasks run for a preset time, if the running state of the main controller is still the first power consumption running, the slave controller is switched to the main controller, and the running is continued according to the running data of the original main controller to execute the control operation, wherein the original main controller is switched to the slave controller, and the running state of the original main controller is changed from the first power consumption running to the second power consumption running.
Optionally, the obtaining of the operation data of the main controller includes: the slave controller reads the operation data of the master controller from the memory; the memory is respectively connected to the slave controller and the master controller, and is used for recording the operation data of the slave controller and the master controller in real time.
Optionally, the obtaining, by the slave controller, the operating state of the master controller includes:
the slave controller and the master controller interact respective state signals in real time through signal pins, wherein the slave controller is connected with the master controller through the signal pins;
and the slave controller acquires the running state of the master controller according to the state signal sent by the master controller.
Optionally, the acquiring, by the slave controller, the operating state of the master controller according to the status signal sent by the master controller includes:
the slave controller reads a first level value sent by a first signal pin and a second level value sent by a second signal pin of the master controller;
the slave controller combines the first level value and the second level value according to a preset sequence to obtain a combined value;
and the slave controller determines the running state of the master controller according to the combined value.
Optionally, if the number of the slave controllers is at least two, when the operating state of the master controller is a fault, one of the at least two slave controllers is selected to be switched to the master controller to perform a control operation.
Optionally, if the number of the slave controllers is at least two, selecting at least one slave controller from the at least two slave controllers to share the task when the operation state of the master controller is the first power consumption operation.
An embodiment of the present invention further provides a redundancy control apparatus, including:
the acquisition module is used for acquiring the running state of the main controller;
the first judgment module is used for judging whether the running state of the main controller is first power consumption running or not, wherein the first power consumption running means that the actual power consumption is greater than or equal to a first preset threshold value;
and the apportionment module is used for apportioning the tasks through the slave controller if the first power consumption operation is performed.
An embodiment of the present invention further provides a control system, including: at least two controllers, wherein at least one controller is used as a master controller, and the rest controllers except the master controller are used as slave controllers; each controller comprises the redundancy control device of the embodiment of the invention.
Optionally, any two controllers are connected through a signal pin, so that the operating state of the controllers is transmitted through the signal pin.
Optionally, the control system further includes: and the memory is respectively connected with each controller and is used for recording the operation data of each controller in real time.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a redundancy control method according to an embodiment of the present invention.
By applying the technical scheme of the invention, the running state of the main controller is actively acquired by the slave controller through the active detection of the running state among the controllers, and under the condition that the running state of the main controller is the first power consumption running, tasks are shared by the slave controller, so that the probability of high-load running of the controller is reduced, the occurrence of controller faults can be effectively reduced, the system reliability is improved, and the service life is prolonged.
Drawings
FIG. 1 is a flowchart of a redundancy control method according to an embodiment of the present invention;
fig. 2 is a block diagram of a redundancy control apparatus according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a control system provided in a third embodiment of the present invention;
fig. 4 is a flowchart of the switching operation of the controller according to the fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment provides a redundancy control method, which can realize redundancy control of a controller, improve the reliability of a system and prolong the service life of the system.
Fig. 1 is a flowchart of a redundancy control method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
and S101, acquiring the running state of the master controller from the slave controller.
S102, judging whether the running state of the main controller is a first power consumption running state, wherein the first power consumption running state means that the actual power consumption is larger than or equal to a first preset threshold value.
And S103, if the power consumption operation is the first power consumption operation, distributing tasks through the slave controllers.
The running state of the main controller can be as follows: fault, normal operation or first power consumption operation. The first power consumption operation means that the actual power consumption of the controller is greater than or equal to a first preset threshold, the value of the first preset threshold is a larger value, and the first power consumption operation means that the controller is heavy in task and is in high-load operation, so that the power consumption is higher. If the main controller is in the first power consumption operation, tasks are shared by the sub-controllers, so that the situation that the main controller is always in the high power consumption operation and is easy to damage is avoided, and the service life is prolonged.
In the control system of this embodiment, the controllers have the same structure and different identities, and are used as the master controller or the slave controller. Generally, when a control system operates, only the main controller plays a practical control role, the sub-controllers are in low-power-consumption operation and in a standby state, energy consumption can be saved, and the sub-controllers can be shared or switched in time when needed, so that the reliability of the system is ensured. Specifically, the operation state of the slave controller is a second power consumption operation, where the second power consumption operation means that the actual power consumption of the controller is less than or equal to a second preset threshold, the second preset threshold takes a smaller value, and the first preset threshold is greater than the second preset threshold, that is, the second power consumption operation is a low power consumption operation.
According to the embodiment, the running state of the main controller is actively obtained from the controller through active detection of the running state between the controllers, and under the condition that the running state of the main controller is the first power consumption running, tasks are shared from the controller, so that the probability of high-load running of the controller is reduced, the occurrence of controller faults can be effectively reduced, the system reliability is improved, and the service life is prolonged.
In an optional embodiment, after acquiring the operating status of the master controller from the slave controller, the method further comprises: judging whether the running state of the main controller is a fault or not; and if the fault is detected, switching the slave controller to the master controller to execute control operation. When the master controller fails, the slave controller is switched to the master controller to execute control operation, and the controller in the system can normally execute the control operation, so that the system can stably and reliably run.
According to the embodiment, the running state of the main controller is actively acquired from the slave controller through active detection of the running state between the controllers, and dynamic master-slave relationship switching is performed under the condition that the running state of the main controller is in a fault, so that the controller in the control system can normally run, and the stable running of the system is ensured.
It should be noted that the step of determining whether the operation state of the main controller is a fault may be performed before the step of determining whether the operation state of the main controller is the first power consumption operation, or may be performed after the step of determining whether the operation state of the main controller is the first power consumption operation, or may be performed simultaneously with the step of determining whether the operation state of the main controller is the first power consumption operation.
Specifically, switching the slave controller to the master controller to perform a control operation includes: the slave controller determines that the slave controller has no fault; the slave controller is switched to be the master controller, and operation data of the original master controller are obtained; the slave controller continues to operate according to the operation data of the original master controller to execute control operation, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is smaller than or equal to a second preset threshold value, and the first preset threshold value is larger than the second preset threshold value; and the slave controller outputs the fault information of the original master controller.
After the master controller and the slave controller are switched, the slave controller is not in the standby second power consumption running state any more, but is in normal running as the master controller to execute control operation.
In the embodiment, under the condition that the running state of the master controller is in failure and the slave controller has no failure, the slave controller replaces the original master controller through master-slave switching to continue to execute normal control operation, so that the normal running of the controller in the system is ensured, and the control reliability of the system is improved. And, through outputting the original master controller trouble information, can in time remind the user to maintain or change the controller of damage.
Specifically, when the operating state of the master controller is the first power consumption operation, the task sharing by the slave controller includes: the slave controller determines that the slave controller has no fault; the slave controller acquires the operation data of the master controller; the slave controller distributes partial task operation of the master controller according to the acquired operation data, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is smaller than or equal to a second preset threshold, and the first preset threshold is larger than the second preset threshold. Specifically, the task sharing may be performed according to a predetermined ratio, for example, 40% of the calculation tasks are shared by the slave controller. After the tasks are shared, the slave controller is not in the second power consumption operation any more, but normally operates to execute the shared tasks.
In the embodiment, when the operation state of the master controller is the first power consumption operation and the slave controller has no fault, the slave controller distributes part of operation tasks of the master controller so as to reduce the operation load of the master controller.
Further, after the slave controller apportions part of tasks of the master controller to operate according to the acquired operation data, the method further includes: after the apportioned tasks run for a preset time, if the running state of the main controller is still the first power consumption running, the slave controller is switched to the main controller, and the running is continued according to the running data of the original main controller to execute the control operation, wherein the original main controller is switched to the slave controller, and the running state of the original main controller is changed from the first power consumption running to the second power consumption running.
The preset time period can be set according to requirements, for example, set to 5 minutes. After the apportionment task runs for the preset time, the main controller is still in the first power consumption running state, which indicates that the apportionment task cannot improve the load condition of the main controller and needs further processing.
According to the embodiment, the master controller is in the high-power-consumption running state for a long time, and master-slave switching is performed under the condition that high load cannot be improved even though tasks are shared by the slave controllers, so that the original master controller is used as the slave controller and enters the low-power-consumption running state, cooling is facilitated, easy damage caused by long-term high-power-consumption running of a single controller is avoided, and the service life is prolonged.
In an alternative embodiment, obtaining operational data of the master controller includes: the slave controller reads the operation data of the master controller from the memory; the memory is respectively connected to the slave controller and the master controller, and is used for recording the operation data of the slave controller and the master controller in real time. Specifically, the master controller and the slave controller transmit respective operation data to the memory in real time.
According to the embodiment, the memory is arranged, so that data sharing among the controllers is realized, when the master controller fails, the slave controllers can be quickly switched and keep the original control progress according to the data in the memory, data calling is facilitated, reliable switching is realized, and the stable operation of a system is guaranteed; and the data in the memory can be called to check the fault record, so that the fault reason can be conveniently searched for maintenance.
In an optional embodiment, the obtaining the operation state may be performed through a signal pin connected between controllers, and specifically, the obtaining the operation state of the master controller from the slave controller includes: the slave controller and the master controller interact respective state signals in real time through signal pins (also called digital signal lines), wherein the slave controller and the master controller are connected through the signal pins; and the slave controller acquires the running state of the master controller according to the state signal sent by the master controller.
The controller transmits the high-low level signal of the signal pin of the controller as a state signal. The corresponding relation between the high and low level signals of the signal pin and the running state of the controller can be preset, and the running state of the controller can be obtained through the high and low level signals transmitted by the signal pin.
Compared with a mode of transmitting the running state by using a communication network, the mode of transmitting the running state by using the signal pins is easier to detect, has high reliability, does not delay, and has better real-time performance so as to ensure timely matching switching or sharing.
Further, for the four operation states (fault, normal operation, first power consumption operation, and second power consumption operation) involved in the present embodiment, the interaction of the operation states may be realized using a simple combination of digital signals. Specifically, the acquiring, by the slave controller, the operating state of the master controller according to the status signal sent by the master controller includes: the slave controller reads a first level value sent by a first signal pin and a second level value sent by a second signal pin of the master controller; the slave controller combines the first level value and the second level value according to a preset sequence to obtain a combined value; and the slave controller determines the running state of the master controller according to the combined value.
The first signal pin and the second signal pin are output pins of the master controller and are connected to corresponding input pins on the slave controller, the first signal pin and the second signal pin are used for outputting a state signal (namely a level value) of the master controller to the slave controller in real time, and the slave controller detects the state signal in real time through the corresponding input pins to prepare switching or sharing at any time. Similarly, the slave controller may use its own two output pins as signal pins to connect with the master controller for outputting status signals to the master controller. The preset order may be set according to requirements, for example, the first level value precedes and the second level value succeeds. Illustratively, 00 represents a controller failure; 01 denotes a controller first power consumption operation; 10 denotes a controller second power consumption operation; and 11 indicates that the controller is operating normally.
The embodiment realizes the interaction of the running states of the controllers through simple digital signal combination, and is simple, reliable, high in real-time performance and easy to realize.
In an optional embodiment, if the number of the slave controllers is at least two, when the operation state of the master controller is a failure, one of the at least two slave controllers is selected to be switched to the master controller to perform a control operation. And if the number of the slave controllers is at least two, selecting at least one slave controller from the at least two slave controllers to share the task under the condition that the operation state of the master controller is the first power consumption operation.
Specifically, the priority of each controller may be set in advance, and the slave controllers may be selected according to the priority of the controller, for example, one or more slave controllers having the highest priority among at least two slave controllers may be selected as the selection result. And at least one slave controller is selected to share tasks, so that the long-term high-power-consumption operation of the master controller can be avoided, and the situation that one slave controller cannot effectively share can also be avoided.
In the case of having at least two slave controllers, the present embodiment can select an appropriate slave controller to perform master-slave switching or apportion tasks, thereby ensuring control reliability.
Example two
Based on the same inventive concept, the present embodiment provides a redundancy control apparatus, which can be used to implement the redundancy control method described in the above embodiments. The device may be implemented by software and/or hardware, and the device may be generally integrated into a controller.
Fig. 2 is a block diagram of a redundant control apparatus according to a second embodiment of the present invention, and as shown in fig. 2, the redundant control apparatus includes:
an obtaining module 21, configured to obtain an operating state of the main controller;
the first judging module 22 is configured to judge whether an operation state of the main controller is a first power consumption operation, where the first power consumption operation is that actual power consumption is greater than or equal to a first preset threshold;
and the apportioning module 23 is configured to apportion the tasks by the slave controller if the first power consumption operation is performed.
Optionally, the apparatus further comprises:
the second judgment module is used for judging whether the running state of the main controller is a fault or not after the running state of the main controller is acquired by the slave controller;
and the first switching module is used for switching the slave controller to the master controller to execute control operation if the fault occurs.
Optionally, the first switching module includes:
a first determination unit configured to determine that there is no failure of itself;
a switching unit for switching the slave controller to the master controller;
the first acquisition unit is used for acquiring the operation data of the original main controller;
the first operation unit is used for continuing to operate according to the operation data of the original master controller so as to execute control operation, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is less than or equal to a second preset threshold value, and the first preset threshold value is greater than the second preset threshold value;
and the output unit is used for outputting the fault information of the original main controller.
Optionally, the second determining module may perform the step of determining whether the operating state of the main controller is a fault before the first determining module performs the step of determining whether the operating state of the main controller is the first power consumption operation, or perform the step of determining whether the operating state of the main controller is a fault after the first determining module performs the step of determining whether the operating state of the main controller is the first power consumption operation, or perform the step of determining whether the operating state of the main controller is a fault while the first determining module performs the step of determining whether the operating state of the main controller is the first power consumption operation.
Optionally, the apportioning module 23 includes:
a second determination unit for determining that there is no failure of itself;
the second acquisition unit is used for acquiring the operation data of the main controller;
and the second operation unit is used for distributing partial task operation of the master controller according to the acquired operation data, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is less than or equal to a second preset threshold, and the first preset threshold is greater than the second preset threshold.
Optionally, the apparatus further comprises: and the second switching module is used for switching the task to be the master controller if the running state of the master controller is still the first power consumption running after the task runs for the preset duration, and continuing running according to the running data of the original master controller to execute the control operation, wherein the original master controller is switched to be the slave controller, and the running state of the original master controller is changed from the first power consumption running to the second power consumption running.
Optionally, the first obtaining unit and the second obtaining unit both include: the first reading subunit is used for reading the operation data of the main controller from the memory; the memory is respectively connected to the slave controller and the master controller, and is used for recording the operation data of the slave controller and the master controller in real time.
Optionally, the obtaining module 21 includes:
the interaction unit is used for interacting respective state signals with the master controller in real time through signal pins, wherein the slave controller is connected with the master controller through the signal pins;
and the third acquisition unit is used for acquiring the running state of the main controller according to the state signal sent by the main controller.
Optionally, the third obtaining unit includes:
a second reading subunit, configured to read a first level value sent from a first signal pin of the main controller and a second level value sent from a second signal pin;
the combining subunit is configured to combine the first level value and the second level value according to a preset sequence to obtain a combined value;
and the determining subunit is used for determining the running state of the main controller according to the combined value.
Optionally, if the number of the slave controllers is at least two, the first switching module is configured to select one slave controller from the at least two slave controllers to be switched to the master controller to perform the control operation when the operating state of the master controller is a fault.
Optionally, if the number of the slave controllers is at least two, the allocating module 23 is configured to select at least one slave controller from the at least two slave controllers to allocate the task when the operation state of the master controller is the first power consumption operation.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
EXAMPLE III
The present embodiment provides a control system, including: at least two controllers, wherein at least one controller is used as a master controller, and the rest controllers except the master controller are used as slave controllers; each of the controllers includes the redundant control device described in the above embodiments.
According to the embodiment, the running state of the main controller is actively obtained from the controller through active detection of the running state between the controllers, and under the condition that the running state of the main controller is the first power consumption running, tasks are shared from the controller, so that the probability of high-load running of the controller is reduced, the occurrence of controller faults can be effectively reduced, the system reliability is improved, and the service life is prolonged.
Optionally, any two controllers are connected to each other through a signal pin (also referred to as a digital signal line) to transmit the operation state of the controllers through the signal pin.
Optionally, the control system further includes: and the memory is respectively connected with each controller and is used for recording the operation data of each controller in real time.
Referring to fig. 3, taking two controllers as an example, the control system includes: controller 100, controller 200, memory 300 and corresponding signal lines.
Wherein the controller 100 and the controller 200 are identical. The memory 300 is used to store shared data between the controller 100 and the controller 200. The signal pins S1, S2 are used to transmit status signals between the controller 100 and the controller 200. The signal pins S1, S2 represent the current operating state of the controller by a combination of high (set to 1) or low (clear to 0).
S1, S2 have 4 combination states, for example, 00 indicates a controller failure; 01 denotes controller high power operation; 10 denotes controller low power operation; and 11 indicates that the controller is operating normally.
Two controllers in the control system send self states in real time through signal pins S1 and S2, and the other controller detects the states in real time and prepares for switching at any time.
The storage device records important data such as operation parameters and fault parameters of the two controllers in real time, so that the two controllers share data, one controller can quickly switch and keep the original operation state when a fault occurs, and the storage device is convenient to check fault records by calling the data of the storage device after the fault occurs.
When the system operates, one controller plays an actual control role, and the other controller operates in a low power consumption state and is in a standby state; the controller that is actually controlling acts as the master controller, while the opposite controller is the slave controller.
The slave controller sends the state signal of the slave controller in real time and detects the state signal of the master controller, the master-slave relationship is dynamically switched according to the state of the master controller, the running data in the memory is called to guarantee the stable running of the system, and the reliability and the service life of the system are improved.
Example four
The redundancy control scheme is described below with reference to a specific embodiment, however, it should be noted that the specific embodiment is only for better describing the present application and is not to be construed as limiting the present application. The same or corresponding terms as those of the above-described embodiments are explained, and the description of the present embodiment is omitted.
Based on the control system shown in fig. 3, the controller coordination and switching operation strategy in the control system is shown in fig. 4, and includes the following steps:
s401, judging whether the main controller fails, namely judging whether the running state of the main controller is 00, if so, going to S402, and if not, going to S406.
S402, it is determined whether the slave controller is normal (i.e., whether there is no failure), and if so, the process proceeds to step S403, and if not, the process proceeds to step S412.
And S403, switching the slave controller into the master controller.
S404, the slave controller (namely the switched master controller) reads the operation data of the original master controller in the memory and continues to operate.
S405, the slave controller (namely the switched master controller) reports that the original master controller is damaged and needs to be maintained.
S406, determine whether the main controller is operating at a high load (i.e. whether it is operating at the first power consumption), if yes, go to step S407, otherwise, go to step S411. It should be noted that the execution sequence of the determination steps of S401 and S406 is only an example, and in practical applications, it may be determined whether the main controller is operating at a high load first, or S401 and S406 are executed at the same time.
And S407, distributing the calculation tasks from the controllers.
And S408, judging whether the main controller is normal after 5min, if so, entering the step S411, and if not, entering the step S409.
And S409, switching the slave controller into the master controller.
And S410, the original master controller is used as a slave controller, and the low-power-consumption operation is realized.
And S411, the master controller operates normally, and the slave controller operates in a low-power-consumption mode.
And S412, the control system may not work normally and reports faults.
According to the steps, when the state of the master controller is 00 and the slave controller is normal, the master controller and the slave controller are switched. And the switched main controller keeps the original running state according to the running parameters stored in the memory, and reminds the user that the sub-controller is damaged through fault alarm.
When the state of the master controller is 01, the controller is high in power consumption and serious in heat generation, and the slave controller needs to share operation tasks or transfer to the slave controller to continue to control the system to operate. At the moment, the slave controller is preferentially changed from the 10 state to the 11 state, part of calculation tasks are distributed, and the running load of the master controller is reduced; when the master controller still keeps the state of 01 for 5min continuously, the master controller and the slave controllers are switched with each other, the switched master controller calls the running parameters in the memory to continue running, and the switched slave controllers enter a low-power-consumption running state so as to cool and prolong the service life.
By the switching operation strategy, the normal operation of one controller in the system is ensured, the probability of high-load operation is reduced, the reliability of the system is improved, and the service life is prolonged.
EXAMPLE five
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the redundancy control method as described in the above embodiments.
EXAMPLE six
The present embodiment provides an electronic device, including: at least one processor; and a first memory communicatively coupled to the at least one processor; wherein the first memory stores instructions executable by the at least one processor to enable the at least one processor to implement the redundancy control method according to the above embodiment.
The first memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the redundancy control method in the embodiments of the present invention. The processor executes various functional applications and data processing by executing the nonvolatile software programs, instructions, and modules stored in the first memory, that is, the redundancy control method described above is implemented.
The first memory may include a storage program area and a storage data area, wherein the storage program area may store an operating device, an application program required for at least one function; the storage data area may store relevant operation data of the controller, etc. Further, the first memory may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A redundancy control method, comprising:
the slave controller acquires the running state of the master controller;
judging whether the running state of the main controller is a first power consumption running state, wherein the first power consumption running state means that the actual power consumption is greater than or equal to a first preset threshold value;
and if the operation is the first power consumption operation, distributing tasks through the slave controllers.
2. The method of claim 1, wherein after obtaining the operational status of the master controller from the slave controller, the method further comprises:
judging whether the running state of the main controller is a fault or not;
and if the fault is detected, switching the slave controller to the master controller to execute control operation.
3. The method of claim 2, wherein switching the slave controller to a master controller to perform control operations comprises:
the slave controller determines that the slave controller has no fault;
the slave controller is switched to be the master controller, and operation data of the original master controller are obtained;
the slave controller continues to operate according to the operation data of the original master controller to execute control operation, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is smaller than or equal to a second preset threshold value, and the first preset threshold value is larger than the second preset threshold value;
and the slave controller outputs the fault information of the original master controller.
4. The method according to claim 2, wherein the step of determining whether the operation state of the main controller is a failure is performed before the step of determining whether the operation state of the main controller is the first power consumption operation, or is performed after the step of determining whether the operation state of the main controller is the first power consumption operation, or is performed simultaneously with the step of determining whether the operation state of the main controller is the first power consumption operation.
5. The method of claim 1, wherein apportioning tasks by the slave controller comprises:
the slave controller determines that the slave controller has no fault;
the slave controller acquires the operation data of the master controller;
the slave controller distributes partial task operation of the master controller according to the acquired operation data, and the operation state of the slave controller is changed from second power consumption operation to normal operation, wherein the second power consumption operation means that the actual power consumption is smaller than or equal to a second preset threshold, and the first preset threshold is larger than the second preset threshold.
6. The method of claim 5, wherein after the slave controller apportions partial task operations of the master controller according to the acquired operational data, the method further comprises:
after the apportioned tasks run for a preset time, if the running state of the main controller is still the first power consumption running, the slave controller is switched to the main controller, and the running is continued according to the running data of the original main controller to execute the control operation, wherein the original main controller is switched to the slave controller, and the running state of the original main controller is changed from the first power consumption running to the second power consumption running.
7. The method of claim 3 or 5, wherein obtaining operational data of the master controller comprises:
the slave controller reads the operation data of the master controller from the memory;
the memory is respectively connected to the slave controller and the master controller, and is used for recording the operation data of the slave controller and the master controller in real time.
8. The method of claim 1, wherein obtaining the operational status of the master controller from a slave controller comprises:
the slave controller and the master controller interact respective state signals in real time through signal pins, wherein the slave controller is connected with the master controller through the signal pins;
and the slave controller acquires the running state of the master controller according to the state signal sent by the master controller.
9. The method of claim 8, wherein the slave controller obtaining the operating status of the master controller according to the status signal sent by the master controller comprises:
the slave controller reads a first level value sent by a first signal pin and a second level value sent by a second signal pin of the master controller;
the slave controller combines the first level value and the second level value according to a preset sequence to obtain a combined value;
and the slave controller determines the running state of the master controller according to the combined value.
10. The method according to claim 2, wherein if the number of the slave controllers is at least two, when the operation status of the master controller is failure, one of the at least two slave controllers is selected to be switched to the master controller to perform the control operation.
11. The method according to any one of claims 1 to 6, wherein if the number of the slave controllers is at least two, at least one slave controller is selected from the at least two slave controllers to share the task when the operation state of the master controller is the first power consumption operation.
12. A redundant control apparatus, comprising:
the acquisition module is used for acquiring the running state of the main controller;
the first judgment module is used for judging whether the running state of the main controller is first power consumption running or not, wherein the first power consumption running means that the actual power consumption is greater than or equal to a first preset threshold value;
and the apportionment module is used for apportioning the tasks through the slave controller if the first power consumption operation is performed.
13. A control system, comprising: at least two controllers, wherein at least one controller is used as a master controller, and the rest controllers except the master controller are used as slave controllers; each of the controllers includes the redundant control apparatus of claim 12.
14. The control system of claim 13, wherein any two controllers are connected by a signal pin to transmit the operation state of the controllers through the signal pin.
15. The control system of claim 13, further comprising:
and the memory is respectively connected with each controller and is used for recording the operation data of each controller in real time.
16. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing a redundancy control method according to any one of claims 1 to 11.
CN202010850995.6A 2020-08-21 2020-08-21 Redundancy control method, device and control system Pending CN112083646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010850995.6A CN112083646A (en) 2020-08-21 2020-08-21 Redundancy control method, device and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010850995.6A CN112083646A (en) 2020-08-21 2020-08-21 Redundancy control method, device and control system

Publications (1)

Publication Number Publication Date
CN112083646A true CN112083646A (en) 2020-12-15

Family

ID=73728605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010850995.6A Pending CN112083646A (en) 2020-08-21 2020-08-21 Redundancy control method, device and control system

Country Status (1)

Country Link
CN (1) CN112083646A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113352987A (en) * 2021-05-31 2021-09-07 湖北亿咖通科技有限公司 Method and system for controlling warning tone of vehicle machine
CN113778762A (en) * 2021-08-23 2021-12-10 珠海格力电器股份有限公司 Equipment redundancy backup method and device, computer equipment and storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883446A (en) * 2010-06-28 2010-11-10 华为终端有限公司 Wireless internet equipment, secure digital (SD) control chip and data communication method
CN102854871A (en) * 2012-10-11 2013-01-02 三一重工股份有限公司 Bus control system and engineering machinery
CN103019218A (en) * 2012-12-26 2013-04-03 北京国铁路阳技术有限公司 Railway signal device utilizing dual-CPU (central processing unit) redundancy and control method of railway signal device
CN103501136A (en) * 2013-10-22 2014-01-08 中国船舶重工集团公司第七一二研究所 Multi-motor synchronous coordination control method
CN103516043A (en) * 2012-06-26 2014-01-15 华为技术有限公司 Power switching control signal generation circuit, and system method for dual-power redundancy power supplying
CN104218584A (en) * 2014-09-16 2014-12-17 东南大学 Multi-parallel capacity optimal distributing method for active harmonic suppression device
CN104412560A (en) * 2013-05-06 2015-03-11 华为技术有限公司 SDN-based network configuration method, apparatus and system
CN204719427U (en) * 2015-07-10 2015-10-21 中国长江电力股份有限公司 A kind of master of intersecting hot backup redundancy joins not at pass level detecting and controlling unit
CN106224161A (en) * 2016-07-19 2016-12-14 沈阳华创风能有限公司 Independent pitch system and change oar method with controller strategy
US20170123675A1 (en) * 2013-04-30 2017-05-04 Inuron Method for layered storage of enterprise data
CN107559182A (en) * 2017-08-31 2018-01-09 广东工业大学 A kind of water pump control method and control system
CN107901036A (en) * 2017-10-25 2018-04-13 深圳市朗驰欣创科技股份有限公司 A kind of redundancy control system and control method for robot
CN107957692A (en) * 2016-10-14 2018-04-24 中国石油天然气集团公司 Controller redundancy approach, apparatus and system
CN108319258A (en) * 2018-03-15 2018-07-24 杭州佳汇技术有限公司 A kind of DC-DC module power source master controller heat backup method
CN109031939A (en) * 2018-05-03 2018-12-18 珠海格力电器股份有限公司 Primary, spare equipment switching method and device
CN109634184A (en) * 2018-12-24 2019-04-16 南京航空航天大学 A kind of load sharing formula double-core flight-control computer
CN110720157A (en) * 2017-06-09 2020-01-21 三星Sdi株式会社 Battery pack and method of controlling battery pack
CN111273541A (en) * 2020-04-03 2020-06-12 四川谊田集群科技有限公司 Control system and method of virtual redundant controller based on communication
CN210804118U (en) * 2019-04-23 2020-06-19 北京天元图灵科技有限公司 Unmanned aerial vehicle dual-redundancy flight control system based on CAN bus

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883446A (en) * 2010-06-28 2010-11-10 华为终端有限公司 Wireless internet equipment, secure digital (SD) control chip and data communication method
CN103516043A (en) * 2012-06-26 2014-01-15 华为技术有限公司 Power switching control signal generation circuit, and system method for dual-power redundancy power supplying
CN102854871A (en) * 2012-10-11 2013-01-02 三一重工股份有限公司 Bus control system and engineering machinery
CN103019218A (en) * 2012-12-26 2013-04-03 北京国铁路阳技术有限公司 Railway signal device utilizing dual-CPU (central processing unit) redundancy and control method of railway signal device
US20170123675A1 (en) * 2013-04-30 2017-05-04 Inuron Method for layered storage of enterprise data
CN104412560A (en) * 2013-05-06 2015-03-11 华为技术有限公司 SDN-based network configuration method, apparatus and system
CN103501136A (en) * 2013-10-22 2014-01-08 中国船舶重工集团公司第七一二研究所 Multi-motor synchronous coordination control method
CN104218584A (en) * 2014-09-16 2014-12-17 东南大学 Multi-parallel capacity optimal distributing method for active harmonic suppression device
CN204719427U (en) * 2015-07-10 2015-10-21 中国长江电力股份有限公司 A kind of master of intersecting hot backup redundancy joins not at pass level detecting and controlling unit
CN106224161A (en) * 2016-07-19 2016-12-14 沈阳华创风能有限公司 Independent pitch system and change oar method with controller strategy
CN107957692A (en) * 2016-10-14 2018-04-24 中国石油天然气集团公司 Controller redundancy approach, apparatus and system
CN110720157A (en) * 2017-06-09 2020-01-21 三星Sdi株式会社 Battery pack and method of controlling battery pack
CN107559182A (en) * 2017-08-31 2018-01-09 广东工业大学 A kind of water pump control method and control system
CN107901036A (en) * 2017-10-25 2018-04-13 深圳市朗驰欣创科技股份有限公司 A kind of redundancy control system and control method for robot
CN108319258A (en) * 2018-03-15 2018-07-24 杭州佳汇技术有限公司 A kind of DC-DC module power source master controller heat backup method
CN109031939A (en) * 2018-05-03 2018-12-18 珠海格力电器股份有限公司 Primary, spare equipment switching method and device
CN109634184A (en) * 2018-12-24 2019-04-16 南京航空航天大学 A kind of load sharing formula double-core flight-control computer
CN210804118U (en) * 2019-04-23 2020-06-19 北京天元图灵科技有限公司 Unmanned aerial vehicle dual-redundancy flight control system based on CAN bus
CN111273541A (en) * 2020-04-03 2020-06-12 四川谊田集群科技有限公司 Control system and method of virtual redundant controller based on communication

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113352987A (en) * 2021-05-31 2021-09-07 湖北亿咖通科技有限公司 Method and system for controlling warning tone of vehicle machine
CN113778762A (en) * 2021-08-23 2021-12-10 珠海格力电器股份有限公司 Equipment redundancy backup method and device, computer equipment and storage medium
CN113778762B (en) * 2021-08-23 2024-03-19 珠海格力电器股份有限公司 Device redundancy backup method and device, computer device and storage medium

Similar Documents

Publication Publication Date Title
CN107231430B (en) Charging pile, charging pile networking architecture and charging pile management method
CN101557315B (en) Method, device and system for active-standby switch
CN100470494C (en) Cluster availability management method and system
CN102402395B (en) Quorum disk-based non-interrupted operation method for high availability system
CN112653734B (en) Real-time master-slave control and data synchronization system and method for server cluster
CN112083646A (en) Redundancy control method, device and control system
CN101354606B (en) Method, system and apparatus for controlling energy consumption of magnetic disk array
CN103580891A (en) Data synchronization method and system and servers
CN205068150U (en) Redundant control system
CN109768884A (en) The implementation method of communication system and its high availability, device and computer equipment
CN103139033A (en) Primary device redundancy switching method of single main communication control bus
CN114265753A (en) Management method and management system of message queue and electronic equipment
CN109684257B (en) Remote memory expansion management system
US6219801B1 (en) Work inheriting system
US11874786B2 (en) Automatic switching system and method for front end processor
CN103324554A (en) Standby system device, a control method, and a program thereof
CN115729164B (en) Industrial communication system management method and device and industrial communication system
CN114553900B (en) Distributed block storage management system, method and electronic equipment
CN115047954B (en) Equipment heat dissipation control method, system, device, equipment and storage medium
CN113220509B (en) Double-combination alternating shift system and method
CN106776152B (en) Data backup method and device
CN114115140B (en) System and method for synchronizing data between multi-core main controller and main and auxiliary multi-core controllers
CN106326042B (en) Method and device for determining running state
KR20230064270A (en) Apparatus, method and system for high-speed control platform for voltage direct current transmission network
CN113467955A (en) Intelligent distribution method and system for data acquisition link of distribution network master station

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201215

RJ01 Rejection of invention patent application after publication