CN117434824A - Redundant control board power-on main and standby determination method - Google Patents

Redundant control board power-on main and standby determination method Download PDF

Info

Publication number
CN117434824A
CN117434824A CN202311754003.XA CN202311754003A CN117434824A CN 117434824 A CN117434824 A CN 117434824A CN 202311754003 A CN202311754003 A CN 202311754003A CN 117434824 A CN117434824 A CN 117434824A
Authority
CN
China
Prior art keywords
board card
main
main control
control board
standby
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.)
Granted
Application number
CN202311754003.XA
Other languages
Chinese (zh)
Other versions
CN117434824B (en
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.)
Tianjin Aviation Mechanical and Electrical Co Ltd
Original Assignee
Tianjin Aviation Mechanical and Electrical Co Ltd
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 Tianjin Aviation Mechanical and Electrical Co Ltd filed Critical Tianjin Aviation Mechanical and Electrical Co Ltd
Priority to CN202311754003.XA priority Critical patent/CN117434824B/en
Publication of CN117434824A publication Critical patent/CN117434824A/en
Application granted granted Critical
Publication of CN117434824B publication Critical patent/CN117434824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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)
  • Power Sources (AREA)

Abstract

The invention belongs to the field of electrical control, and particularly relates to a method for determining the power-on master and slave of a redundant control board. Is applied to any board card, and comprises: outputting the information that the current board card is installed; carrying out the BIT test of the current board card, and under the condition that the BIT test has no fault: reading information about whether the opposite-side plate card is installed or not: when the side board card is not installed, outputting the current board card discrete quantity to be high level, and declaring the current board card discrete quantity to be in a main control state; when the side board card is indicated to be installed, the main and standby state information of the current board card recorded in the storage area when the last power supply is performed is read; and determining the active and standby state information of the current board card according to the active and standby state information of the current board card and the real state information of the opposite board card recorded during the last power supply.

Description

Redundant control board power-on main and standby determination method
Technical Field
The invention belongs to the field of electrical control, and particularly relates to a method for determining the power-on master and slave of a redundant control board.
Background
In the communication field or the control field of the electrical profession, there is some critical equipment functions to be important, in order to guarantee the functional reliability of the critical equipment, the main control board card in the equipment generally takes the form of double main control board cards, and during normal operation, one main control board card is in a main control state, so as to realize all relevant functions of the equipment, and the other main control board card is in a hot standby state. The system or the equipment based on the double main control boards needs to determine the main and standby roles of the two main control boards in the power-on stage, and the main and standby roles are generally carried out by the two main control boards in a hard-wire handshake and bus communication mode, but the basic reliability of the realization of the main and standby switching function is reduced by introducing a bus, and the complexity of logic realization is increased.
The main and standby determination is realized by adopting a hard wire signal, the heartbeat monitoring signal and the reset control signal are adopted in part of the technical route, the monitoring and reset control between the two boards are realized, the reset control signal is introduced, the control function is newly added to a hardware circuit for main and standby determination, and the fault phenomenon that the main control board card on the opposite side is reset by mistake by the main control board card on the opposite side exists.
The state detection is realized only through hard-wire handshake signals, and in order to prevent oscillation in the primary-secondary determining process, unbalanced filtering functions are added in the handshake signals in part of technical routes, so that the complexity of the primary-secondary determining circuit is synchronously increased.
Disclosure of Invention
The invention aims to: aiming at the redundant control board system adopted in the key equipment, the method for determining the power-on master and slave of the redundant control board is provided, the state is monitored based on hardware handshake signals, and higher reliability is realized through software logic.
The technical scheme is as follows:
the method for determining the power-on master and slave of the redundant control board comprises a CPU, a discrete quantity input circuit, a discrete quantity output circuit and a storage unit, wherein the CPU is connected with the input end of the discrete quantity output circuit through two IO pins; the CPU is connected with the output end of the discrete quantity input circuit through the other two IO pins; the output end of the discrete quantity output circuit is connected with the input end of a discrete quantity input circuit in another board card; the input end of the discrete quantity input circuit is connected with the output end of the discrete quantity output circuit in another board card, the storage unit is used for storing the main and standby states of the board card in the power supply period, the CPU realizes the output function of 2 discrete quantities through the IO pins, the 2 discrete quantities respectively represent whether the board card is installed or not and the main and standby states of the board card,
the redundant control board power-on main and standby determination method is applied to any board card and comprises the following steps:
outputting the information that the current board card is installed;
carrying out the BIT test of the current board card, and under the condition that the BIT test has no fault:
reading information about whether the opposite-side plate card is installed or not:
when the side board card is not installed, outputting the current board card discrete quantity to be high level, and declaring the current board card discrete quantity to be in a main control state;
when the side board card is indicated to be installed, the main and standby state information of the current board card recorded in the storage area when the last power supply is performed is read; and determining the active and standby state information of the current board card according to the active and standby state information of the current board card and the real state information of the opposite board card recorded during the last power supply.
Further, determining the active/standby state information of the current board card according to the active/standby state information of the current board card and the real state information of the opposite board card recorded during last power supply, specifically including:
step 1: when the current board card is in a main control state during the last power supply, waiting for a preset delay time: reading the main and standby states of the opposite-side board card after the delay is finished, and outputting and storing standby state information of the current board card if the opposite-side board card is in the main state; if the opposite-side board card is in the standby state, outputting main state information by the current board card;
step 2: when the last power supply is performed, the current board card is in a standby control state, the main and standby states of the opposite board card are collected, and if the opposite board card is in the main state, the main and standby states of the current board card are determined according to the position of the physical slot and stored; and if the opposite-side board card is in the standby state, outputting and storing the main state information by the current board card.
Further, in step 2, the active/standby state of the current board card is determined and stored according to the physical slot position, specifically: if the slot on the side is close to the side wall of the case, the main control board card on the side is in a main control state.
Further, in step 2, the active/standby state of the current board card is determined and stored according to the physical slot position, specifically: if the slot on the side is positioned at the middle position in the case, the main control board card on the side is in a main control state.
The beneficial effects are that:
the method for determining the main and standby roles of the dual-main control board card in the power-on stage is realized, and the method for determining the main and standby policies by the delay policies, the opposite main and standby state reconfirming policies and the slot positions can solve the abnormal scene in the power-on main and standby confirmation process of the dual-main control board card. The invention has the characteristics of small number of devices, low cost and high reliability, and can be widely applied to an electrical system with double main control boards.
Drawings
FIG. 1 is a flow chart of a redundant control board power-on master-slave determination.
Detailed Description
The invention provides a method for determining a role of powering on a main and standby of a redundant control board card aiming at a double-master control system, wherein the method comprises hardware state detection, main and standby state recording, main and standby competition logic, board card slot position identification, fault identification and strategy under double-master control operation conditions. The hard wire interaction of the double main control board cards is realized through the back board wiring of the double main control board cards. The board card should pass the board card BIT test at first, confirm whether can take on the master control role (whether BIT has trouble) to whether to install the curb plate card based on the discrete volume handshake signal between the board card. When the double main control board cards are installed and the main control board card on the side can take on the main control role, the main control board card on the side should read the main and standby state record information of the last power supply period. When the recording result is the main control, the main control board card at the side in the current power-on period is converted into a backup state, the delay is started, whether the main control board card at the opposite side is in the main control state or not is judged through handshake signals after the delay is finished, and if the opposite side is not in the main control state, the main-standby competition mechanism is started to compete the main state. When the recording result of the master control board card at the home side is backup, the master control board card at the home side should be converted into a master control state in the current power-on period. When two main control boards compete for the main control state or the backup state at the same time only when the two main control boards appear, a strategy of determining the main and backup roles based on the positions of the installation slots is adopted. The mechanism for switching the main and standby states along with power-on and the strategy for determining the main and standby based on the conflict positions can enable two main control board cards in a double main control system to enter the main control state in a rotating way under normal conditions, so that the condition that one main control board card is always in the main control state in all running states due to the working characteristics of devices is prevented, and the other main control board card is always in the backup state, so that hidden faults cannot be exposed; meanwhile, the problem of conflict between two boards is solved, and the safety is high.
The main control board card should execute according to the sequence of carrying out BIT test first and then carrying out the confirmation of the main and standby roles, so that the situation that the main role cannot complete a preset task due to failure after the determination of the main and standby roles is prevented, and the backup main control board card cannot bear the main control role and cannot complete the task is prevented.
The power-on determination of the main control board card follows the logic of power-on switching, and based on the logic, the main and standby roles of the main control board card can be rotated along with the power supply period, so that certain hidden faults can not be found.
The main control board card confirms the design logic of the opposite side state again after the main role is confirmed, and the two main control board cards can be prevented from running in the main control role.
Whether the main control board card is installed or not is realized through a power signal, and whether the main role can be played or not is determined based on a board card BIT detection result. The main and standby states of the board indicate the state of the board and the main control state or the standby state, and the state is controlled by IO of the CPU.
The method for realizing the agreed primary and standby determination of the double-main control board card is provided by the invention, and a specific flow is shown in fig. 1.
2 pairs of discrete quantity input and output signals are arranged on the main control board cards, and the two main control board cards realize the main and standby confirmation of the power-on stage through 2 pairs of discrete quantity handshake signals. The discrete quantity handshake signals are connected to the backboard inside the equipment through the internal connector of the main control board card of the side, and are connected to the circuit of the main control board card of the side through the internal connector of the main control board card of the side.
The main control board card is provided with a CPU, the output of discrete quantity is controlled by the CPU on the board card, and the acquisition result of the discrete quantity is input to an IO pin of the CPU.
For the purpose of describing the embodiments in detail, the nomenclature is now as follows. The two main control board cards are named as a left main control board card and a right main control board card based on the installation positions, the slot of the left main control board card is number 1, and the slot of the right main control board card is number 4.
The left main control board card outputs discrete quantity signals L1 and L2 to the right main control board card, and states of the left main control board card are represented, namely whether the board card is installed (L1) and a real board card main and standby state (L2). The high level represents that the board card is installed, the real state of the board card is a main control state, and the low level represents that the board card is not installed, and the real state of the board card is a backup state.
The right main control board card outputs discrete quantity signals R1 and R2 to the right main control board card, and states of the left main control board card are represented as whether the board card is installed (R1) or not and the main and standby states (R2) of the board card respectively. The high level represents that the board card is installed, the main and standby states of the board card are main control states, and the low level represents that the board card is not installed, and the main and standby states of the board card are standby states.
As shown in fig. 1, the specific implementation process is as follows:
1. after the main control board card is electrified, the installed discrete quantity (L1/R1) of the board card is output to be high level preferentially, and the board card is indicated to be installed.
2. And the main control board card performs board BIT test, and the BIT test has no faults.
3. The main control board card at the side reads the information whether the main control board card at the opposite side is installed or not, if the side control board card at the opposite side is not installed, the step 8 is directly skipped, otherwise, the next operation is continued.
4. The main control board card reads the main and standby state information recorded when the power is supplied last time in the storage area.
5. When the recording result is in the main control state, the main control board card at the current power-on side should operate in the backup state based on the principle of switching between the main control board card and the backup main control board card, so that the main control board card at the current power-on side starts timing, and waits for confirmation of the opposite main control board card to take on the main control role. Step 7 is performed.
6. When the recording result is the backup state, the main control board card at the current power-on side should operate in the main control state based on the principle of switching between the main control board card and the backup main control board card, so that the 8 th step is executed.
7. After the delay time is over, the master control board card on the side confirms whether the opposite side board card is in the master control state or not by reading the real state information discrete quantity R2 of the master control board card on the opposite side, and when the discrete quantity R2 of the master control board card on the opposite side indicates a high level, namely the master control board card on the opposite side indicates the master control state, the master control board card on the side keeps continuously keeping the discrete quantity output on the low level, and the master and slave state information of the current power-on is recorded in a storage area to be in a backup state. And when the discrete quantity R2 of the side master control board is indicated to be low level, namely the side master control board does not bear the master control role, the main control board at the side executes the step 8.
8. The output of the discrete quantity L2 of the main control board card at the side is high level, and the main control state is declared at the side.
9. The side main control board card collects the real state information discrete quantity R2 of the opposite side main control board card, confirms whether the opposite side board card is in the main control state at the moment, and prevents the double main control board cards from running in the main control state.
10. If the discrete quantity R2 of the opposite-side main control board card indicates a high level, that is, the opposite-side main control board card indicates a main control state, the main control board card of the opposite side should read the installation position information of the main control board card of the opposite side, and determine the main and standby states based on the slot number information. Step 12 is subsequently performed.
11. If the discrete quantity R2 of the opposite-side main control board card indicates a low level, namely the opposite-side main control board card indicates a backup state, the main control board card keeps on keeping the discrete quantity L2 at a high level, is declared to be a main control state, and keeps running in the main control state in a subsequent normal working stage, and the process is ended.
12. If the information of the slot number on the side is the slot number 1, the main control board card on the side keeps the discrete quantity L2 at a high level, is declared to be in a main control state, and keeps running in the main control state in the subsequent normal working stage. The flow ends.
13. If the information of the slot number on the side is the slot number 4, the output state of the modified discrete quantity L2 of the main control board card on the side is low level, and is declared to be a backup state, and the main control board card keeps running in the backup state in the subsequent normal working stage. The flow ends.
Considering that there is an abnormal scene, the following is:
1) And when the last power supply states of the two main control board cards are all main, in the power-on main and standby confirmation process, the two main control board cards delay, after the delay time is finished, the main control state is simultaneously contended, and the main and standby roles are determined through time sequence or slot information.
2) And if the last power supply states of the two main control board cards are standby, the two main control board cards can generate the simultaneous competition main control state in the power-on main standby confirmation process, and the main standby roles are determined through time sequence or slot information.
Through the steps, the master-slave role confirmation task of the two master control board cards in the power-on stage can be realized.

Claims (4)

1. The method is characterized in that the two main control board cards comprise a CPU, a discrete quantity input circuit, a discrete quantity output circuit and a storage unit, wherein the CPU is connected with the input end of the discrete quantity output circuit through two IO pins; the CPU is connected with the output end of the discrete quantity input circuit through the other two IO pins; the output end of the discrete quantity output circuit is connected with the input end of a discrete quantity input circuit in another board card; the input end of the discrete quantity input circuit is connected with the output end of the discrete quantity output circuit in another board card, the storage unit is used for storing the main and standby states of the board card in the power supply period, the CPU realizes the output function of 2 discrete quantities through the IO pins, the 2 discrete quantities respectively represent whether the board card is installed or not and the main and standby states of the board card,
the redundant control board power-on main and standby determination method is applied to any board card and comprises the following steps:
outputting the information that the current board card is installed;
carrying out the BIT test of the current board card, and under the condition that the BIT test has no fault:
reading information about whether the opposite-side plate card is installed or not:
when the side board card is not installed, outputting the current board card discrete quantity to be high level, and declaring the current board card discrete quantity to be in a main control state;
when the side board card is indicated to be installed, the main and standby state information of the current board card recorded in the storage area when the last power supply is performed is read; and determining the active and standby state information of the current board card according to the active and standby state information of the current board card and the real state information of the opposite board card recorded during the last power supply.
2. The method for determining the power-on master/slave status of a redundant control board card according to claim 1, wherein the method for determining the master/slave status of the current board card according to the master/slave status information of the current board card and the real status information of the opposite board card recorded during the last power supply specifically comprises the following steps:
step 1: when the current board card is in a main control state during the last power supply, waiting for a preset delay time: reading the main and standby states of the opposite-side board card after the delay is finished, and outputting and storing standby state information of the current board card if the opposite-side board card is in the main state; if the opposite-side board card is in the standby state, outputting main state information by the current board card;
step 2: when the last power supply is performed, the current board card is in a standby control state, the main and standby states of the opposite board card are collected, and if the opposite board card is in the main state, the main and standby states of the current board card are determined according to the position of the physical slot and stored; and if the opposite-side board card is in the standby state, outputting and storing the main state information by the current board card.
3. The method for determining the power-on master/slave status of a redundant control board card according to claim 2, wherein in step 2, the master/slave status of the current board card is determined and stored according to the physical slot position, specifically: if the slot on the side is close to the side wall of the case, the main control board card on the side is in a main control state.
4. The method for determining the power-on master/slave status of a redundant control board card according to claim 3, wherein in step 2, the master/slave status of the current board card is determined and stored according to the physical slot position, specifically: if the slot on the side is positioned at the middle position in the case, the main control board card on the side is in a main control state.
CN202311754003.XA 2023-12-20 2023-12-20 Redundant control board power-on main and standby determination method Active CN117434824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311754003.XA CN117434824B (en) 2023-12-20 2023-12-20 Redundant control board power-on main and standby determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311754003.XA CN117434824B (en) 2023-12-20 2023-12-20 Redundant control board power-on main and standby determination method

Publications (2)

Publication Number Publication Date
CN117434824A true CN117434824A (en) 2024-01-23
CN117434824B CN117434824B (en) 2024-04-09

Family

ID=89548367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311754003.XA Active CN117434824B (en) 2023-12-20 2023-12-20 Redundant control board power-on main and standby determination method

Country Status (1)

Country Link
CN (1) CN117434824B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1321004A (en) * 2000-04-25 2001-11-07 华为技术有限公司 Method and equipment for swapping active with standby switches
CN101834748A (en) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 Method and device for main and standby competition
CN109408297A (en) * 2018-10-30 2019-03-01 北京东土军悦科技有限公司 A kind of method, apparatus of main and standby competition, equipment and storage medium
WO2019052069A1 (en) * 2017-09-18 2019-03-21 通鼎互联信息股份有限公司 Master/standby contention method and device, and application equipment
CN110380911A (en) * 2019-08-14 2019-10-25 北京交大思诺科技股份有限公司 A kind of active and standby knowledge method for distinguishing of redundant system
CN117192958A (en) * 2023-09-08 2023-12-08 陕西航空电气有限责任公司 Aviation power distribution redundancy control system and method based on double DSP and FPGA architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1321004A (en) * 2000-04-25 2001-11-07 华为技术有限公司 Method and equipment for swapping active with standby switches
CN101834748A (en) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 Method and device for main and standby competition
WO2019052069A1 (en) * 2017-09-18 2019-03-21 通鼎互联信息股份有限公司 Master/standby contention method and device, and application equipment
CN109408297A (en) * 2018-10-30 2019-03-01 北京东土军悦科技有限公司 A kind of method, apparatus of main and standby competition, equipment and storage medium
CN110380911A (en) * 2019-08-14 2019-10-25 北京交大思诺科技股份有限公司 A kind of active and standby knowledge method for distinguishing of redundant system
CN117192958A (en) * 2023-09-08 2023-12-08 陕西航空电气有限责任公司 Aviation power distribution redundancy control system and method based on double DSP and FPGA architecture

Also Published As

Publication number Publication date
CN117434824B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN101378267B (en) Primary and secondary switching device, and switching method using the same
JPH10161778A (en) Uninterrupted power supply
CN110286852A (en) Dual control framework distributed memory system, method for reading data, device and storage medium
CN205068150U (en) Redundant control system
CN117434824B (en) Redundant control board power-on main and standby determination method
CN115083510A (en) Solid state disk testing method and device, storage medium, power supply and electronic equipment
CN108415866B (en) Intelligent platform management controller
CN111726563A (en) Video storage device for train video monitoring system
CN213782953U (en) Main and standby power supply switching device and system
CN115728665A (en) Power failure detection circuit, method and system
US6801973B2 (en) Hot swap circuit module
CN109739673A (en) A kind of register write protection method, logic device and communication equipment
CN101834748A (en) Method and device for main and standby competition
CN114996069A (en) Mainboard test method, device and medium
CN114355266A (en) Health monitoring management system of ATE (automatic test equipment) and control method thereof
CN211603369U (en) Server DC power-down fault positioning system
CN106294045B (en) A method of based on BMC automatic detection burning main board power supply module chip data
CN108388488A (en) A kind of intelligent platform management system and fault handling method
CN106814643B (en) A kind of control method and system of two-node cluster hot backup
CN113665639A (en) Restarting method and system for interlocking equipment of all-electronic computer
US7711869B1 (en) Method for communicating plural signals generated at a source to a remote destination through a single wire
JP3110125B2 (en) Hot-swap control
CN115981880B (en) Method, device, system, storage medium and chip for avoiding deadlock of host access slave
CN118011974A (en) Control module applied to DCS system and control method thereof
JP2578467Y2 (en) Power failure detection timer

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
GR01 Patent grant
GR01 Patent grant