CN105487374B - The GPIO control devices and its control method of hot backup system - Google Patents

The GPIO control devices and its control method of hot backup system Download PDF

Info

Publication number
CN105487374B
CN105487374B CN201511030525.0A CN201511030525A CN105487374B CN 105487374 B CN105487374 B CN 105487374B CN 201511030525 A CN201511030525 A CN 201511030525A CN 105487374 B CN105487374 B CN 105487374B
Authority
CN
China
Prior art keywords
standby
main
level signal
master
address wire
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.)
Active
Application number
CN201511030525.0A
Other languages
Chinese (zh)
Other versions
CN105487374A (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.)
Dalian Jiecheng Technology Co Ltd
Original Assignee
Dalian Jiecheng Technology 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 Dalian Jiecheng Technology Co Ltd filed Critical Dalian Jiecheng Technology Co Ltd
Priority to CN201511030525.0A priority Critical patent/CN105487374B/en
Publication of CN105487374A publication Critical patent/CN105487374A/en
Application granted granted Critical
Publication of CN105487374B publication Critical patent/CN105487374B/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)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses the GPIO control devices and its control method of a kind of hot backup system;The GPIO control devices include:Configure the main controllable switch in master board;It configures in master board, the master controller being connected with main address wire, preparation controller and main logic circuit;It configures in master board, the main logic circuit being connected with main controllable switch, main address wire and master control line;Configure the standby controllable switch on standby control panel;Configuration is on standby control panel, with standby address wire, master controller and the preparation controller being connected for logic circuit;Configuration is on standby control panel, with standby controllable switch, standby address wire and the standby logic circuit being connected for control line;The present invention can realize that the active and standby control between internal system physical interface and exterior GPIO interface is automatically switched, using hardware controls mode, control mode based on software and program in compared with the existing technology, reliability and safety for guarantee system are advantageously.

Description

The GPIO control devices and its control method of hot backup system
Technical field
The invention belongs to electronic technology field, the GPIO control devices and its controlling party of specially a kind of hot backup system Method.
Background technology
Hot Spare processing must be done in the important module of broadcasting and TV application field, cabinet inside, so that going out in any module Now after exception, whole system remains able to normal operation and work, ensures to be not in interrupt during broadcast.Control in cabinet Control centre of the making sheet as system, the requirement based on Hot Spare have master board and standby control panel, under normal circumstances, Master board is completed to the control of entire cabinet and the scheduling feature of system, and standby control panel must not have any shadow to cabinet and system It rings, but in the case where exception occurs in master board, standby control panel wants can to take over the control of cabinet and system Scheduling power continues the normal work for keeping cabinet and system.When any control panel of master board or standby control panel currently has The control of cabinet and the scheduling power of system, correspondingly, the GPIO interface of the control panel then needs and GPIO external on cabinet Interface is connected, to realize the information exchange between the scheduling of system and distinct device.In the prior art, for master board or standby Connection between the GPIO interface of control panel and the GPIO interface of cabinet controls generally use software and program to realize, and by Master board known to upper and standby control panel should be isolated from each other, and connect each other again, using the connection controlling party of software and program Formula reliability is not high, safety is poor.
Invention content
The it is proposed of the present invention in view of the above problems, and develop a kind of the GPIO control devices and its controlling party of hot backup system Method.
The technological means of the present invention is as follows:
A kind of GPIO control devices of hot backup system, the hot backup system include master board, standby control panel and machine Case;The master board has main GPIO interface;The standby control panel has standby GPIO interface;The cabinet has cabinet GPIO Interface;The master board has main address wire;The standby control panel has for address wire, and the GPIO control devices include:
Configure the main controllable switch in master board;The main controllable switch is placed in the main GPIO interface and the machine Between case GPIO interface, for being switched on or switched off the connection between the main GPIO interface and the cabinet GPIO interface;
It configures in master board, the master controller being connected with main address wire, preparation controller and main logic circuit;It is described Master controller is used to read the level signal in main address wire, detects whether there is standby control panel, detecting the master board is No exception, and when there is no when exception, pass through master control line output with the level signal in the main address wire read for master board Consistent level signal is to main logic circuit, when master board is deposited when abnormal, is exported by master control line main with what is read The opposite level signal of level signal on the line of location is to main logic circuit, when master board there are exception and detects the presence of standby control When making sheet, active-standby switch signal is exported to preparation controller;
It configures in master board, the main logic circuit being connected with main controllable switch, main address wire and master control line;When When level signal in main address wire is consistent with the level signal on master control line, it is controllable that the main logic circuit controls the master Switch is closed, and then connects the connection between main GPIO interface and the cabinet GPIO interface;When the level letter in main address wire When number inconsistent with level signal on master control line, the main logic circuit control main controllable switch disconnects, and then disconnected Open the connection between main GPIO interface and the cabinet GPIO interface;
Configure the standby controllable switch on standby control panel;The standby controllable switch is placed in the standby GPIO interface and the machine Between case GPIO interface, for being switched on or switched off the connection between the standby GPIO interface and the cabinet GPIO interface;
Configuration is on standby control panel, with standby address wire, master controller and the preparation controller being connected for logic circuit;It is described Preparation controller is used to read the level signal in standby address wire, detects whether that, there are master board, detecting the standby control panel is No exception passes through standby control when not receiving active-standby switch signal that master controller transmits or standby control panel is deposited when abnormal Line processed exports the opposite level signal of the level signal in the standby address wire with reading to standby logic circuit;The preparation controller is also For when receive active-standby switch signal that master controller transmits and standby control panel is not deposited when abnormal, passing through standby control line The level signal consistent with the level signal in the standby address wire read is exported to standby logic circuit, and defeated by standby control line After going out the consistent level signal of the level signal in the standby address wire with reading to standby logic circuit, when there are different for standby control panel When often and detecting the presence of master board, standby main switching signal is exported to master controller;
Configuration is on standby control panel, with standby controllable switch, standby address wire and the standby logic circuit being connected for control line;When When level signal in standby address wire is consistent with the level signal on standby control line, the standby logic circuit control is described standby controllable Switch is closed, and then connects standby connection between GPIO interface and the cabinet GPIO interface;When the level letter in standby address wire When number inconsistent with level signal on standby control line, the standby logic circuit control standby controllable switch disconnection, and then break Open standby connection between GPIO interface and the cabinet GPIO interface;
Further, when master board there are exception and detects that the master controller exports there is no when standby control panel Warning message;When standby control panel there are exception and detects that the preparation controller exports warning message there is no when master board;
Further, the GPIO control devices further include for the power supply to main logic circuit and standby power logic circuitry VDD and for the power supply VCC to main controllable switch and the power supply of standby controllable switch;
Further, the main controllable switch uses relay RL1, the normally opened contact of relay RL1 to be serially connected in master Between GPIO interface and cabinet GPIO interface;The main logic circuit includes:XOR gate U1, XOR gate U2, resistance R1, switching tube Q1, resistance R2, capacitance C2 and diode D1;Two input terminals of the XOR gate U1 are separately connected main address wire and master control line; The output end of the XOR gate U1 connects an input terminal of the XOR gate U2, and another input terminal of the XOR gate U2 connects institute State power vd D anodes;The output end of the XOR gate U2 is via resistance R1 connecting valve pipe Q1 base stages;The switching tube Q1 transmittings Pole be grounded, the switching tube Q1 collectors via resistance R2 connection relay RL1 coils one end, relay RL1 coils it is another One end connects power supply VCC anodes;The capacitance C2 is in parallel with the resistance R2;The diode D1 is connected in parallel on relay RL1's Coil both ends;
Further, the standby controllable switch uses relay RL2, the normally opened contact of relay RL2 to be serially connected in standby Between GPIO interface and cabinet GPIO interface;The standby logic circuit includes:XOR gate U3, XOR gate U4, resistance R3, switching tube Q2, resistance R4, capacitance C4 and diode D2;Two input terminals of the XOR gate U3 are separately connected standby address wire and standby control line; The output end of the XOR gate U3 connects an input terminal of the XOR gate U4, and another input terminal of the XOR gate U4 connects institute State power vd D anodes;The output end of the XOR gate U4 is via resistance R3 connecting valve pipe Q2 base stages;The switching tube Q2 transmittings Pole be grounded, the switching tube Q2 collectors via resistance R4 connection relay RL2 coils one end, relay RL2 coils it is another One end connects power supply VCC anodes;The capacitance C4 is in parallel with the resistance R4;The diode D2 is connected in parallel on relay RL2's Coil both ends.
A kind of GPIO control methods of hot backup system, the hot backup system include master board, standby control panel and machine Case;The master board has main GPIO interface;The standby control panel has standby GPIO interface;The cabinet has cabinet GPIO Interface;The master board has main address wire;It includes such as that the standby control panel, which has standby address wire, the GPIO control methods, Lower step:
Main controllable switch, main logic circuit and master controller are configured in master board in advance, and on standby control panel With controllable switch of purchasing, standby logic circuit and preparation controller;The main controllable switch is placed in the main GPIO interface and the machine Between case GPIO interface, the standby controllable switch is placed between the standby GPIO interface and the cabinet GPIO interface;The master Controller is connected with main address wire, preparation controller, and connects main logic circuit by master control line;The main logic circuit with The main controllable switch, main address wire are connected;
Master controller reads the level signal in main address wire, detects whether there is standby control panel, and the detection master Whether control panel is abnormal, and when master board is there is no when exception, master controller passes through master control line and exports with the main address read The consistent level signal of level signal on line is to main logic circuit, and when master board is deposited when abnormal, master controller passes through master Control line exports the opposite level signal of the level signal in the main address wire with reading to main logic circuit, when master board is deposited In exception and when detecting the presence of standby control panel, master controller exports active-standby switch signal to preparation controller;When in main address wire Level signal it is consistent with the level signal on master control line when, the main logic circuit control main controllable switch is closed, in turn Connect the connection between main GPIO interface and the cabinet GPIO interface;When in the level signal and master control line in main address wire Level signal it is inconsistent when, the main logic circuit control main controllable switch disconnects, and then disconnects main GPIO interface and described Connection between cabinet GPIO interface;
Preparation controller reads the level signal in standby address wire, detects whether that there are master board, and detection are described standby Whether control panel is abnormal, when not receiving active-standby switch signal that master controller transmits or standby control panel is deposited when abnormal, Preparation controller exports the opposite level signal of the level signal in the standby address wire with reading by standby control line to standby logic electricity Road, when receiving active-standby switch signal that master controller transmits and standby control panel is not deposited when abnormal, preparation controller passes through Standby control line exports the consistent level signal of the level signal in the standby address wire with reading to standby logic circuit, and by standby After control line exports the consistent level signal of the level signal in the standby address wire with reading to standby logic circuit, when standby control For plate there are exception and when detecting the presence of master board, preparation controller exports standby main switching signal to master controller;When standby address When level signal on line is consistent with the level signal on standby control line, the standby logic circuit control standby controllable switch is closed, And then connect standby connection between GPIO interface and the cabinet GPIO interface;When the level signal in standby address wire is controlled with standby When level signal on line is inconsistent, the standby logic circuit control standby controllable switch disconnects, so disconnect standby GPIO interface with Connection between the cabinet GPIO interface;
Further, when master board there are exception and detects that the master controller exports there is no when standby control panel Warning message;When standby control panel there are exception and detects that the preparation controller exports warning message there is no when master board.
By adopting the above-described technical solution, the GPIO control devices and its controlling party of hot backup system provided by the invention Method, master board and the control of standby the control panel automatism isolation in physical connection, will not affect one another, can realize internal system Active and standby control between physical interface and exterior GPIO interface is automatically switched, using hardware controls mode, relative to existing Control mode based on software and program in technology, reliability and safety for guarantee system are advantageously.
Description of the drawings
Fig. 1 is the structure diagram of GPIO control devices of the present invention;
Fig. 2 is the circuit diagram of main logic circuit of the present invention;
Fig. 3 is the circuit diagram of standby logic circuit of the present invention.
Specific implementation mode
A kind of GPIO control devices of hot backup system as shown in Figure 1, Figure 2 and Figure 3, the hot backup system include master Control panel, standby control panel and cabinet;The master board has main GPIO interface;The standby control panel has standby GPIO interface; The cabinet has cabinet GPIO interface;The master board has main address wire;The standby control panel has standby address wire, institute Stating GPIO control devices includes:Configure the main controllable switch in master board;The main controllable switch is placed in the main GPIO Between interface and the cabinet GPIO interface, for being switched on or switched off between the main GPIO interface and the cabinet GPIO interface Connection;It configures in master board, the master controller being connected with main address wire, preparation controller and main logic circuit;It is described Master controller is used to read the level signal in main address wire, detects whether there is standby control panel, detecting the master board is No exception, and when there is no when exception, pass through master control line output with the level signal in the main address wire read for master board Consistent level signal is to main logic circuit, when master board is deposited when abnormal, is exported by master control line main with what is read The opposite level signal of level signal on the line of location is to main logic circuit, when master board there are exception and detects the presence of standby control When making sheet, active-standby switch signal is exported to preparation controller;Configuration is in master board, with main controllable switch, main address wire and master The main logic circuit that control line is connected;When the level signal in main address wire is consistent with the level signal on master control line, The main logic circuit control main controllable switch is closed, and then is connected between main GPIO interface and the cabinet GPIO interface Connection;When the level signal in the level signal and master control line in main address wire is inconsistent, the main logic circuit control It makes the main controllable switch to disconnect, and then disconnects the connection between main GPIO interface and the cabinet GPIO interface;Configuration is standby Standby controllable switch on control panel;The standby controllable switch is placed between the standby GPIO interface and the cabinet GPIO interface, For being switched on or switched off the connection between the standby GPIO interface and the cabinet GPIO interface;It configures on standby control panel, with The preparation controller that standby address wire, master controller are connected with standby logic circuit;The preparation controller is for reading standby address wire Level signal, detect whether there are master board, whether abnormal, when not receiving master controller biography if detecting the standby control panel The defeated active-standby switch signal to come or standby control panel are deposited when abnormal, by standby control line output in the standby address wire read The opposite level signal of level signal gives standby logic circuit;The preparation controller is additionally operable to transmit when receiving master controller Active-standby switch signal and standby control panel do not deposit when abnormal, pass through standby control line output with the level in the standby address wire read The consistent level signal of signal gives standby logic circuit, and believes with the level in the standby address wire read by standby control line output Number consistent level signal is given after standby logic circuit, defeated when standby control panel is there are exception and detects the presence of master board Go out standby main switching signal to master controller;Configuration is connected on standby control panel with standby controllable switch, standby address wire and standby control line The standby logic circuit connect;When the level signal in standby address wire is consistent with the level signal on standby control line, the standby logic Standby controllable switch described in circuit control is closed, and then connects standby connection between GPIO interface and the cabinet GPIO interface;When When level signal in standby address wire is inconsistent with level signal on standby control line, the standby logic circuit control is described for can Control switch disconnects, and then disconnects standby connection between GPIO interface and the cabinet GPIO interface;Further, work as master board There are exception and detect that the master controller exports warning message there is no when standby control panel;When standby control panel has exception And detect that the preparation controller exports warning message there is no when master board;Further, the GPIO control devices are also Include for main logic circuit and standby power logic circuitry power vd D and for standby opening to main controllable switch and controllably Close the power supply VCC of power supply;Further, the main controllable switch uses relay RL1, the normally opened contact string of relay RL1 It is connected between main GPIO interface and cabinet GPIO interface;The main logic circuit includes:XOR gate U1, XOR gate U2, resistance R1, Switching tube Q1, resistance R2, capacitance C2 and diode D1;Two input terminals of the XOR gate U1 are separately connected main address wire and master control Line processed;The output end of the XOR gate U1 connects an input terminal of the XOR gate U2, another input terminal of the XOR gate U2 Connect the power vd D anodes;The output end of the XOR gate U2 is via resistance R1 connecting valve pipe Q1 base stages;The switching tube Q1 emitters are grounded, and the switching tube Q1 collectors are via one end of resistance R2 connection relay RL1 coils, relay RL1 lines The other end connection power supply VCC anodes of circle;The capacitance C2 is in parallel with the resistance R2;The diode D1 is connected in parallel on relay The coil both ends of RL1;Further, the standby controllable switch uses relay RL2, the normally opened contact of relay RL2 to concatenate Standby between GPIO interface and cabinet GPIO interface;The standby logic circuit includes:XOR gate U3, it XOR gate U4, resistance R3, opens Close pipe Q2, resistance R4, capacitance C4 and diode D2;Two input terminals of the XOR gate U3 are separately connected standby address wire and standby control Line;The output end of the XOR gate U3 connects an input terminal of the XOR gate U4, and another input terminal of the XOR gate U4 connects Connect the power vd D anodes;The output end of the XOR gate U4 is via resistance R3 connecting valve pipe Q2 base stages;The switching tube Q2 Emitter is grounded, and the switching tube Q2 collectors are via one end of resistance R4 connection relay RL2 coils, relay RL2 coils Other end connection power supply VCC anode;The capacitance C4 is in parallel with the resistance R4;The diode D2 is connected in parallel on relay The coil both ends of RL2.
A kind of GPIO control methods of hot backup system, the hot backup system include master board, standby control panel and machine Case;The master board has main GPIO interface;The standby control panel has standby GPIO interface;The cabinet has cabinet GPIO Interface;The master board has main address wire;It includes such as that the standby control panel, which has standby address wire, the GPIO control methods, Lower step:
Main controllable switch, main logic circuit and master controller are configured in master board in advance, and on standby control panel With controllable switch of purchasing, standby logic circuit and preparation controller;The main controllable switch is placed in the main GPIO interface and the machine Between case GPIO interface, the standby controllable switch is placed between the standby GPIO interface and the cabinet GPIO interface;The master Controller is connected with main address wire, preparation controller, and connects main logic circuit by master control line;The main logic circuit with The main controllable switch, main address wire are connected;
Master controller reads the level signal in main address wire, detects whether there is standby control panel, and the detection master Whether control panel is abnormal, and when master board is there is no when exception, master controller passes through master control line and exports with the main address read The consistent level signal of level signal on line is to main logic circuit, and when master board is deposited when abnormal, master controller passes through master Control line exports the opposite level signal of the level signal in the main address wire with reading to main logic circuit, when master board is deposited In exception and when detecting the presence of standby control panel, master controller exports active-standby switch signal to preparation controller;When in main address wire Level signal it is consistent with the level signal on master control line when, the main logic circuit control main controllable switch is closed, in turn Connect the connection between main GPIO interface and the cabinet GPIO interface;When in the level signal and master control line in main address wire Level signal it is inconsistent when, the main logic circuit control main controllable switch disconnects, and then disconnects main GPIO interface and described Connection between cabinet GPIO interface;
Preparation controller reads the level signal in standby address wire, detects whether that there are master board, and detection are described standby Whether control panel is abnormal, when not receiving active-standby switch signal that master controller transmits or standby control panel is deposited when abnormal, Preparation controller exports the opposite level signal of the level signal in the standby address wire with reading by standby control line to standby logic electricity Road, when receiving active-standby switch signal that master controller transmits and standby control panel is not deposited when abnormal, preparation controller passes through Standby control line exports the consistent level signal of the level signal in the standby address wire with reading to standby logic circuit, and by standby After control line exports the consistent level signal of the level signal in the standby address wire with reading to standby logic circuit, when standby control For plate there are exception and when detecting the presence of master board, preparation controller exports standby main switching signal to master controller;When standby address When level signal on line is consistent with the level signal on standby control line, the standby logic circuit control standby controllable switch is closed, And then connect standby connection between GPIO interface and the cabinet GPIO interface;When the level signal in standby address wire is controlled with standby When level signal on line is inconsistent, the standby logic circuit control standby controllable switch disconnects, so disconnect standby GPIO interface with Connection between the cabinet GPIO interface;
Further, when master board there are exception and detects that the master controller exports there is no when standby control panel Warning message;When standby control panel there are exception and detects that the preparation controller exports warning message there is no when master board.
Main address wire of the present invention be master board more main address wires in one of, pass through more main addresses Level signal on line can obtain the address identification message of master board;The standby address wire is more standby ground of standby control panel One of in the line of location, the address identification message of standby control panel can be obtained by the level signal in more standby address wires; Switching tube Q1 and switching tube Q2 uses the NPN triode of model 2N3904;The XOR gate U1 and XOR gate U2 are used 74HC86 chips;Also parallel connection is connected to capacitance C1 and capacitance C3 between power vd D and ground;When standby control panel exists and is in normal shape When state, preparation controller continues to send standby control panel presence signal to master controller, when standby control panel is not present or exception occurs, Master controller does not receive the standby control panel presence signal that preparation controller sends over then, so master controller can determine out it is standby Control panel whether there is, and similarly, when master board exists and is in normal condition, master controller continues to send out to preparation controller Master board presence signal is sent, when master board is not present or exception occurs, preparation controller does not receive master controller hair then The master board presence signal brought, and then preparation controller can determine out that master board whether there is;When master board is deposited It in exception and detects there is no when standby control panel, the switching between master board and standby control panel, master controller can not be completed Export alarm message reminding user;When standby control panel there are exception and detects that there is no when master board, can not complete standby control Switching between making sheet and master board, preparation controller export alarm message reminding user;If currently taking over control by standby control panel System power and scheduling power (i.e. standby GPIO interface is connected with cabinet GPIO interface to be connected), then when standby control panel exists abnormal and detects To there are when master board, preparation controller exports standby main switching signal to master controller, if master board at this time is in normal shape State, then in main address wire of the master controller according to the standby main switching signal received again through master control line output with reading The consistent level signal of level signal is connected with cabinet GPIO interface and is connected to main logic circuit, main GPIO interface, and standby GPIO connects Connection between mouth and cabinet GPIO interface disconnects.
Information exchange between Broadcast and TV system, distinct device, be using GPIO interface it is the most simple and reliable, cabinet GPIO interface can define direction and function according to user, using flexible;The hot backup system of cabinet control panel needs master control Making sheet and standby control panel can be separately connected the external GPIO interface of cabinet if necessary, as shown in Fig. 2, when in main address wire When level signal is identical as the level signal on master control line, XOR gate U1 exports low level, then an input terminal of XOR gate U2 For low level, another input terminal connection power vd D anodes, are high level, and further, XOR gate U2 exports high level, switch Pipe Q1 conductings, relay RL1 coils are powered, and normally opened contact is closed, and then main GPIO interface is connected with cabinet GPIO interface and connected, Once master board operation irregularity, the level signal on master control line deflects and saltus step, when the level letter in main address wire When number inconsistent with the level signal on master control line (opposite), XOR gate U1 exports high level, then two inputs of XOR gate U2 End is high level, and further, XOR gate U2 exports low level, and switching tube Q1 cannot be connected, relay RL1 coil blackouts, The normally opened contact of relay RL1 is off, and then the connection between main GPIO interface and cabinet GPIO interface disconnects, together Sample, as shown in figure 3, when the level signal in standby address wire is identical as the level signal on standby control line, XOR gate U3 is defeated Go out low level, then an input terminal of XOR gate U4 is low level, and another input terminal connection power vd D anodes, are high level, into one Step ground, XOR gate U4 export high level, switching tube Q2 conductings, and relay RL2 coils are powered, and normally opened contact is closed, Jin Erbei GPIO interface is connected with cabinet GPIO interface and is connected, once standby control board work is abnormal, the level signal on standby control line occurs Deflection and saltus step, when the level signal and inconsistent (opposite) level signal on standby control line in standby address wire, XOR gate U3 exports high level, then two input terminals of XOR gate U4 are high level, and further, XOR gate U4 exports low level, switch Pipe Q2 cannot be connected, and relay RL2 coil blackouts, the normally opened contact of relay RL2 is off, and then standby GPIO interface Connection between cabinet GPIO interface disconnects.When master board exception, control and scheduling power release, standby control panel connect Pipe control and the power of dispatching continue to cabinet normal work, in standby control panel take over control and dispatch temporary, if standby control Plate is abnormal, then master board continues take over control and scheduling power continues to cabinet normal work;The present invention can safely may be used The good operation for ensureing hot backup system by ground can effectively ensure that during broadcast when for broadcasting and TV field and be not in It interrupts.
Master board of the present invention and the control of standby the control panel automatism isolation in physical connection, will not affect one another;This hair The bright control for being primarily adapted for use in GPIO external interfaces in hot backup system, can realize internal system physical interface and exterior Active and standby control between GPIO interface is automatically switched, using hardware controls mode, compared with the existing technology in be based on software and journey The control mode of sequence, reliability and safety for guarantee system are advantageously.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Any one skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (7)

1. a kind of GPIO control devices of hot backup system, the hot backup system includes master board, standby control panel and cabinet; The master board has main GPIO interface;The standby control panel has standby GPIO interface;There is the cabinet cabinet GPIO to connect Mouthful;The master board has main address wire;The standby control panel has standby address wire, it is characterised in that the GPIO controls dress Set including:
Configure the main controllable switch in master board;The main controllable switch is placed in the main GPIO interface and the cabinet Between GPIO interface, for being switched on or switched off the connection between the main GPIO interface and the cabinet GPIO interface;
It configures in master board, the master controller being connected with main address wire, preparation controller and main logic circuit;The master control Device processed is used to read the level signal in main address wire, detects whether there is standby control panel, whether different detects the master board Often, and when master board is there is no when exception, the level signal exported by master control line in the main address wire with reading is consistent Level signal to main logic circuit, when master board is deposited when abnormal, pass through master control line output with the main address wire read On the opposite level signal of level signal to main logic circuit, when master board there are exception and detects the presence of standby control panel When, active-standby switch signal is exported to preparation controller;
It configures in master board, the main logic circuit being connected with main controllable switch, main address wire and master control line;When main When level signal on the line of location is consistent with the level signal on master control line, the main logic circuit controls the main controllable switch It is closed, and then connects the connection between main GPIO interface and the cabinet GPIO interface;When in main address wire level signal with When level signal on master control line is inconsistent, the main logic circuit control main controllable switch disconnects, and then disconnects master Connection between GPIO interface and the cabinet GPIO interface;
Configure the standby controllable switch on standby control panel;The standby controllable switch is placed in the standby GPIO interface and the cabinet Between GPIO interface, for being switched on or switched off the connection between the standby GPIO interface and the cabinet GPIO interface;
Configuration is on standby control panel, with standby address wire, master controller and the preparation controller being connected for logic circuit;The standby control Device processed is used to read the level signal in standby address wire, detects whether, there are master board, whether different to detect the standby control panel Often, when not receiving active-standby switch signal that master controller transmits or standby control panel is deposited when abnormal, pass through standby control line The level signal opposite with the level signal in the standby address wire read is exported to standby logic circuit;The preparation controller is additionally operable to When receiving active-standby switch signal that master controller transmits and standby control panel is not deposited when abnormal, passes through standby control line and export With the level signal in the standby address wire read, consistent level signal gives standby logic circuit, and same by standby control line output The consistent level signal of level signal in the standby address wire read is given after standby logic circuit, when standby control panel exist exception and When detecting the presence of master board, standby main switching signal is exported to master controller;
Configuration is on standby control panel, with standby controllable switch, standby address wire and the standby logic circuit being connected for control line;When standby ground When level signal on the line of location is consistent with the level signal on standby control line, the standby logic circuit controls the standby controllable switch It is closed, and then connects standby connection between GPIO interface and the cabinet GPIO interface;When in standby address wire level signal with When level signal on standby control line is inconsistent, the standby logic circuit control standby controllable switch disconnects, and then disconnects standby Connection between GPIO interface and the cabinet GPIO interface.
2. the GPIO control devices of hot backup system according to claim 1, it is characterised in that when there are different for master board Often and detect that the master controller exports warning message there is no when standby control panel;When standby control panel exists abnormal and detects To there is no when master board, the preparation controller exports warning message.
3. the GPIO control devices of hot backup system according to claim 1, it is characterised in that the GPIO control devices Further include for main logic circuit and standby power logic circuitry power vd D and for main controllable switch and standby controllable Switch the power supply VCC of power supply.
4. the GPIO control devices of hot backup system according to claim 3, it is characterised in that the main controllable switch is adopted It is serially connected between main GPIO interface and cabinet GPIO interface with the normally opened contact of relay RL1, relay RL1;The master patrols Collecting circuit includes:XOR gate U1, XOR gate U2, resistance R1, switching tube Q1, resistance R2, capacitance C2 and diode D1;The exclusive or Two input terminals of door U1 are separately connected main address wire and master control line;The output end of the XOR gate U1 connects the XOR gate U2 An input terminal, another input terminal of the XOR gate U2 connects the power vd D anodes;The output end of the XOR gate U2 passes through By resistance R1 connecting valve pipe Q1 base stages;The switching tube Q1 emitters ground connection, the switching tube Q1 collectors are via resistance R2 Connect one end of relay RL1 coils, the other end connection power supply VCC anodes of relay RL1 coils;The capacitance C2 with it is described Resistance R2 is in parallel;The diode D1 is connected in parallel on the coil both ends of relay RL1.
5. the GPIO control devices of hot backup system according to claim 3 or 4, it is characterised in that the standby controllable switch Using relay RL2, the normally opened contact of relay RL2 is serially connected between GPIO interface and cabinet GPIO interface;It is described standby Logic circuit includes:XOR gate U3, XOR gate U4, resistance R3, switching tube Q2, resistance R4, capacitance C4 and diode D2;It is described different Or two input terminals of door U3 are separately connected standby address wire and standby control line;The output end of the XOR gate U3 connects the XOR gate Another input terminal of an input terminal of U4, the XOR gate U4 connects the power vd D anodes;The output end of the XOR gate U4 Via resistance R3 connecting valve pipe Q2 base stages;The switching tube Q2 emitters ground connection, the switching tube Q2 collectors are via resistance One end of R4 connection relay RL2 coils, the other end connection power supply VCC anodes of relay RL2 coils;The capacitance C4 and institute It is in parallel to state resistance R4;The diode D2 is connected in parallel on the coil both ends of relay RL2.
6. a kind of GPIO control methods of hot backup system, the hot backup system includes master board, standby control panel and cabinet; The master board has main GPIO interface;The standby control panel has standby GPIO interface;There is the cabinet cabinet GPIO to connect Mouthful;The master board has main address wire;The standby control panel has standby address wire, it is characterised in that the GPIO controlling parties Method includes the following steps:
Main controllable switch, main logic circuit and master controller are configured in master board in advance, and is configured on standby control panel Standby controllable switch, standby logic circuit and preparation controller;The main controllable switch is placed in the main GPIO interface and the cabinet Between GPIO interface, the standby controllable switch is placed between the standby GPIO interface and the cabinet GPIO interface;The master control Device processed is connected with main address wire, preparation controller, and connects main logic circuit by master control line;The main logic circuit and institute State main controllable switch, main address wire is connected;
Master controller reads the level signal in main address wire, detects whether there is standby control panel, and the detection main control Whether plate is abnormal, and when master board is there is no when exception, master controller passes through master control line and exports in the main address wire read The consistent level signal of level signal to main logic circuit, when master board is deposited when abnormal, master controller passes through main control Line exports the opposite level signal of the level signal in the main address wire with reading to main logic circuit, when there are different for master board When often and detecting the presence of standby control panel, master controller exports active-standby switch signal to preparation controller;Electricity in main address wire When ordinary mail number is consistent with the level signal on master control line, the main logic circuit control main controllable switch is closed, and then is connected Connection between main GPIO interface and the cabinet GPIO interface;Electricity in the level signal and master control line in main address wire When ordinary mail number is inconsistent, the main logic circuit control main controllable switch disconnects, and then disconnects main GPIO interface and the cabinet Connection between GPIO interface;
Configuration is on standby control panel, with standby address wire, master controller and the preparation controller being connected for logic circuit;The standby control Device processed is used to read the level signal in standby address wire, detects whether, there are master board, whether different to detect the standby control panel Often, when not receiving active-standby switch signal that master controller transmits or standby control panel is deposited when abnormal, pass through standby control line The level signal opposite with the level signal in the standby address wire read is exported to standby logic circuit;The preparation controller is additionally operable to When receiving the active-standby switch signal that master controller transmits, by standby control line output in the standby address wire read The consistent level signal of level signal gives standby logic circuit, and is passing through the electricity in the standby same standby address wire read of control line output The consistent level signal of ordinary mail number is given after standby logic circuit, when standby control panel there are exception and detects the presence of master board When, standby main switching signal is exported to master controller;
Preparation controller reads the level signal in standby address wire, detects whether that there are master boards, and the detection standby control Whether plate is abnormal, when not receiving active-standby switch signal that master controller transmits or standby control panel is deposited when abnormal, standby control Device processed export the opposite level signal of the level signal in the standby address wire with reading by standby control line to for logic circuit, when It receives the active-standby switch signal that master controller transmits and standby control panel is not deposited when abnormal, preparation controller passes through standby control Line exports the consistent level signal of the level signal in the standby address wire with reading to standby logic circuit, and is passing through standby control line After the level signal consistent with the level signal in the standby address wire read is exported to standby logic circuit, when standby control panel exists Exception and when detecting the presence of master board, preparation controller exports standby main switching signal to master controller;When in standby address wire When level signal is consistent with the level signal on standby control line, the standby logic circuit control standby controllable switch is closed, Jin Erjie Logical standby connection between GPIO interface and the cabinet GPIO interface;When in the level signal and standby control line in standby address wire When level signal is inconsistent, the standby logic circuit control standby controllable switch disconnects, and then disconnects standby GPIO interface and the machine Connection between case GPIO interface.
7. the GPIO control methods of hot backup system according to claim 6, it is characterised in that when there are different for master board Often and detect that the master controller exports warning message there is no when standby control panel;When standby control panel exists abnormal and detects To there is no when master board, the preparation controller exports warning message.
CN201511030525.0A 2015-12-31 2015-12-31 The GPIO control devices and its control method of hot backup system Active CN105487374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511030525.0A CN105487374B (en) 2015-12-31 2015-12-31 The GPIO control devices and its control method of hot backup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511030525.0A CN105487374B (en) 2015-12-31 2015-12-31 The GPIO control devices and its control method of hot backup system

Publications (2)

Publication Number Publication Date
CN105487374A CN105487374A (en) 2016-04-13
CN105487374B true CN105487374B (en) 2018-10-12

Family

ID=55674424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511030525.0A Active CN105487374B (en) 2015-12-31 2015-12-31 The GPIO control devices and its control method of hot backup system

Country Status (1)

Country Link
CN (1) CN105487374B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111881A (en) * 2014-07-25 2014-10-22 中国航天科工集团第二研究院七〇六所 Arbitration device for double computer redundancy hot backup computer
CN104618009A (en) * 2015-02-15 2015-05-13 桂林恒毅金宇通信技术有限公司 Optical fiber tandem connection device hot backup protection system
CN104702386A (en) * 2015-03-17 2015-06-10 成都智慧之芯科技有限公司 Full-network-based centralized control system and method
CN204425346U (en) * 2015-02-15 2015-06-24 桂林恒毅金宇通信技术有限公司 Optical fiber serial connection equipment Hot Spare protection system
CN105159798A (en) * 2015-08-28 2015-12-16 浪潮集团有限公司 Dual-machine hot-standby method for virtual machines, dual-machine hot-standby management server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111881A (en) * 2014-07-25 2014-10-22 中国航天科工集团第二研究院七〇六所 Arbitration device for double computer redundancy hot backup computer
CN104618009A (en) * 2015-02-15 2015-05-13 桂林恒毅金宇通信技术有限公司 Optical fiber tandem connection device hot backup protection system
CN204425346U (en) * 2015-02-15 2015-06-24 桂林恒毅金宇通信技术有限公司 Optical fiber serial connection equipment Hot Spare protection system
CN104702386A (en) * 2015-03-17 2015-06-10 成都智慧之芯科技有限公司 Full-network-based centralized control system and method
CN105159798A (en) * 2015-08-28 2015-12-16 浪潮集团有限公司 Dual-machine hot-standby method for virtual machines, dual-machine hot-standby management server and system

Also Published As

Publication number Publication date
CN105487374A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN103474842B (en) A kind of intelligent socket system
CN108536066A (en) A kind of intelligent terminal control system towards laboratory safety
CN103927862B (en) G3 data forwarder and meter recording method for same
CN102342732A (en) Intelligent mailbox
CN107404030A (en) Smart jack
CN105487374B (en) The GPIO control devices and its control method of hot backup system
CN105676052B (en) A kind of method and system of serial ports line sequence identification
CN205353147U (en) IC -card targets in place and detects power control circuit
CN208369751U (en) A kind of recognition of face intelligent doorbell
CN205485355U (en) GPIO controlling means of hot backup system
CN109324553A (en) A kind of standardization detection module interface
CN205920141U (en) Intelligent ammeter inspection device and checkout system
CN109547010A (en) Passive isolated form RS232 serial communication circuit
CN107977333A (en) A kind of cipher card and the method for communication
CN111356123B (en) Electrical device for accessing a mobile telephone network in an alternative operating mode
CN208257832U (en) A kind of POE power supply unit based on RS485
CN107257370A (en) A kind of data collecting system and data processing method
CN107065957A (en) The complete management system of smart home
CN208257787U (en) A kind of communication interface circuit
CN207351569U (en) A kind of high-low voltage electric power distribution cabinet circuit intelligent testing and warning system
CN202978424U (en) Intelligent communication circuit breaker
CN207938062U (en) A kind of energy-saving Image Acquisition access control system
CN108873746A (en) A kind of control method for showing equipment and showing equipment
CN207250792U (en) Intelligent socket
CN208488954U (en) A kind of intelligent sound control circuit based on infrared detection circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant