CN101625568B - Synchronous data controller based hot standby system of main control unit and method thereof - Google Patents

Synchronous data controller based hot standby system of main control unit and method thereof Download PDF

Info

Publication number
CN101625568B
CN101625568B CN2009101159599A CN200910115959A CN101625568B CN 101625568 B CN101625568 B CN 101625568B CN 2009101159599 A CN2009101159599 A CN 2009101159599A CN 200910115959 A CN200910115959 A CN 200910115959A CN 101625568 B CN101625568 B CN 101625568B
Authority
CN
China
Prior art keywords
data
master control
main control
control board
control borad
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.)
Expired - Fee Related
Application number
CN2009101159599A
Other languages
Chinese (zh)
Other versions
CN101625568A (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.)
Beifang Lianchuang Communication Co ltd
Original Assignee
Jiangxi Lianchuang Communication 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 Jiangxi Lianchuang Communication Co Ltd filed Critical Jiangxi Lianchuang Communication Co Ltd
Priority to CN2009101159599A priority Critical patent/CN101625568B/en
Publication of CN101625568A publication Critical patent/CN101625568A/en
Application granted granted Critical
Publication of CN101625568B publication Critical patent/CN101625568B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention discloses a synchronous data controller based hot standby system of a main control unit and a method thereof. The hot standby system comprises two main control boards with the same structure, a mother board and more than one service board; the data and address bus and the control signals of the main control boards are connected with the data and address bus and the control pins of the service boards through the mother board, the main control boards and the service boards are all fixed to the mother board through connectors, and the main control boards are mainly responsible for communicating with the service boards and controlling the whole system. A hardware circuit is combined with software to realize reliable hot standby for the main control unit and improve synchronous efficiency and reliability between the main control boards respectively for main application and standby application, a data/state update process after the system operates is completed by the hardware, and the powered and initialized system has no need to send data messages to complete data/state update. The invention is capable of increasing the utilization rate of system resources, decreasing the complexity of the system software, and improving the synchronous performance of main/standby state without influence on normal communication services.

Description

A kind of main control unit hot backup system and implementation method based on the data sync controller
Technical field
The present invention relates to a kind of communication apparatus of industrial control field, relate in particular to a kind of main control unit hot backup system based on the data sync controller.
Background technology
At communication field, very high to the reliability requirement of communication system, no matter require under which kind of situation, business must be unimpeded.Main control unit in case break down, will cause the total system running undesired as the total system core, and business is interrupted immediately.
The appearance of main control unit Hot Spare technology can be good at addressing the above problem; Adopt " 1+1 " backup mode; When the main control board of main control unit breaks down; System cuts off former main control board and total system automatically, and former slave control board automatically switches to main control board, has guaranteed that communication traffic is not interrupted.
In traditional main control unit Hot Spare technology, great majority adopt soft backup mode, realize data backup through the form of sending " data-message " between the central processing unit (CPU) of central processing unit of master control borad (CPU) and slave control board.When the communication system portfolio is big, probably too much interrupt normal business because of transmission " message ", reduced the reliability of system.In addition, if system has increased new type of service, the type of message between main control board and the slave control board also will increase, thereby has increased the complexity of system software.
Summary of the invention
The objective of the invention is to: in order to improve state synchronized reliability, real-time and the validity of main control unit hot backup system; Protection is professional to greatest extent is not interrupted, reduces because of main control unit CPU (central processing unit) resource, reduction system software complexity that pass-along message between main control board and the slave control board consumes, and a kind of novel a kind of main control unit Hot Spare implementation method and system based on the data sync controller are provided.
Main control unit hot backup system based on the data sync controller of the present invention is made up of the identical master control borad of two block structures, motherboard and an above business board; The data of master control borad, address bus, control signal link to each other with data address bus, the control pin of each business board through motherboard; Master control borad all is fixed on the motherboard through connector with each business board; Be responsible for communicating by letter as the master control borad of main usefulness with business board, and the control total system; Two master control borads are formed by central processing unit (CPU), backup arbitration unit, buses isolator, data sync controller; Central processing unit (CPU): control whole master control borad; The data bus of central processing unit, address bus and read-write, chip selection signal are connected with the data sync controller with the buses isolator of this master control borad respectively; Central processing unit is provided with a pin; Pulse heartbeat signal of this pin output is to backup arbitration unit, supplies backup arbitration unit to detect the CPU operate as normal of whether working; Backup arbitration unit: the primary and backup relation that is used for confirming two master control borads; In system when operation,, whether the heartbeat signal that is used to detect this master control borad is normal; When the work of this master control borad is undesired; This master control borad CPU stops to export heartbeat signal immediately; This moment, this backup arbitration unit notified this buses isolator to cut off being electrically connected of main control board and total system; And master control borad is set to alarm status, simultaneously former slave control board upgraded to main control board, and the notice buses isolator that upgrades to the new main control board of main control board is opened being electrically connected of this master control borad and system; Take over total system by new main control board, guaranteed professional uninterrupted normal operation; Buses isolator: be used for being electrically connected between opening/closing master control borad and the motherboard.Buses isolator has two ports; One of two ports link to each other with data, address bus and the control signal of the central processing unit of this master control borad, and the another port then links to each other with data, address bus and the control signal of business board, and the enable signal of buses isolator links to each other with the backup arbitration unit of this master control borad; When the bus enable signal is effective; Two ports are got through, and the data flow of two ports of direction control signal control bus isolator is when direction control signal when being high; Data flow direction be a port flow to the another port, otherwise then data flow is opposite; Data sync controller: be used for data sync between main control board and the slave control board; During business board data arrives main control board; The data sync controller transfers to slave control board simultaneously with the new business data; Make the time strict synchronism of the business datum that obtains between main control board and the slave control board, after main control board and slave control board obtain professional new data simultaneously, carry out identical treatment scheme; Make the state consistency of main control board and slave control board, accomplished main control board and slave control board state synchronized.
The data sync controller of master control borad of the present invention all adopts hardware to realize that the bus data of can running simultaneously has two bus ports that independently are used for reading and writing data, address strobe and signal controlling respectively.
The present invention also provides a kind of main control unit hot backup system main control unit heat backup method based on the data sync controller, may further comprise the steps:
(a) system powers on, and a backup arbitration unit confirms that according to system state the master of this plate uses, stand-by state:
Backup arbitration unit judges at first whether the other side's master control borad is the main state of using; If the other side's master control borad has been the main state of using; Then backup arbitration unit unconditionally is changed to stand-by state with this master control borad, if the other side's master control borad is a stand-by state, this backup arbitration unit detects " whether heartbeat signal is normal " of central processing unit; If normal, then this master control borad is changed to the main state of using; Otherwise, this master control borad is changed to stand-by state, and this master control borad of alarm prompt fault;
(b) corresponding buses isolator is electrically connected according to the bus that the master uses or standby opens or closes between this master control borad and the motherboard:
Be in the master and open this master control borad buses isolator with the master control borad in the state; Two ports of the buses isolator of this master control borad are got through; The data, address bus and the control signal that are central processing unit are communicated with business board data, address bus and control pin; Be in the master and weigh, can control total system with the operation that the master control borad in the state has obtained whole external bus; Simultaneously, the backup arbitration unit of this master control borad is closed reading and writing data, the address strobe port of this plate data sync controller, makes to be in to lead can only obtain data from external data bus with the master control borad in the state;
Another master control borad then is a stand-by state; The backup arbitration unit of this master control borad is closed the buses isolator of this master control borad; Two ports of this buses isolator all are blocked; Be data, address bus and control signal and business board data, address bus and the blocking-up of control pin of the central processing unit of this plate, the master control borad of stand-by state is abandoned the operation power of whole external bus, uncontrollable total system; Simultaneously; The master control borad backup arbitration unit of stand-by state is opened reading and writing data, the address strobe port of the data sync controller of this master control borad; Make the port data of this plate data sync controller come into force, make the master control borad of stand-by state obtain data from reading and writing data, the address strobe port of the data sync controller of this master control borad;
(c) after slave control board powered on, initiatively with the main control board contact, the request main control board sent " system status information ";
(d) after main control board is received " request transmitting system state " order that slave control board sends, start " initial data transfer module " system status information is sent to slave control board;
(e) slave control board starts the status data that " primary data is accepted module " receives the main control board transmission, accomplishes the initialization of slave control board state, makes its state consistent with main control board;
(f) after the above-mentioned completion of step; The reading and writing data of the data sync controller of slave control board, address strobe port obtain main control board from business board data deposit the data sync controller of slave control board in; Incense is read notebook data with master control borad from the read-write of this plate data sync controller data, address strobe port; Slave control board is identical with the data that main control board obtains; So main control board and slave control board are then carried out identical flow chart of data processing, realize the main control board and the slave control board state synchronized of main control unit.
(g) when the backup arbitration unit of main control board detects this master control borad operation irregularity; Promptly when the heartbeat signal of main control board central processing unit stops; The backup arbitration unit of main control board notifies the buses isolator of this master control borad to cut off this master control borad and external data, address bus and control signal; And this master control borad is changed to stand-by state, and this master control borad of alarm prompt fault;
When (h) subsequent use backup arbitration unit detects main control board and transfers stand-by state to; Immediately this master control borad is changed to the main state of using; Simultaneously; The backup arbitration unit of this master control borad enables the buses isolator of this plate, and two ports of this master control borad buses isolator are all got through, and promptly the data of the central processing unit of this master control borad, address bus and control signal are communicated with business board data, address bus and control pin; This master control borad has obtained the operation power of whole external bus, can control total system; Simultaneously; The backup arbitration unit of this master control borad is closed the reading and writing data address port enable signal of its data sync controller; The control port data of notebook data isochronous controller are invalid, make this master control borad obtain data from external data bus, and this master control borad upgrades to main control board; Take over former main control board and work on, the control total system.
System status information described in the inventive method comprises: loop trunks application status, digital junction state.
The transmission of system state data according to the invention and acceptance just power on the back execution once at slave control board.
Said data sync controller is separately all arranged in main control board according to the invention and the slave control board; When professional new data arrives the master control main board; The data sync controller copies to self storage unit according to the data synchronizing signal on the main control board with the business board data sync on the slave control board, and incense is read with master control borad.In the data sync controller relation of address and data fully and business board transfer to main control board address and data consistent.
The situation of main control board operation irregularity according to the invention comprises: the main control board that main control board program fleet, master control borad fault, hand-reset and a variety of causes cause restarts.
The present invention is through hardware circuit and combine software mode; Realize a kind of reliable main control unit Hot Spare; Improve synchronous efficiency and reliability between main control unit main control board and the slave control board, the postrun data of system/state renewal process is accomplished by hardware, need not software behind system's power-up initializing and accomplishes data/state renewal through the form of sending " data-message "; Improved resource utilization ratio; Reduce the complexity of system software, strengthened the real-time of active/standby state synchronized, and do not influenced normal communication service.Compare with prior art, the invention has the advantages that:
System and method of the present invention is to guarantee that business datum arrives main control board and slave control board simultaneously; Because main control board and slave control board are the synchronization gain business datums; And carried out identical program circuit; So the state of main control board and slave control board is consistent, also just realized the state backup of slave control board, in case the main control board operation irregularity to main control board; Immediately slave control board is switched to the master and use major state, take over former main control board and work on.Different with other master control borad backups is; The data sync mode that the transmission data that native system and method do not need central processing unit (CPU) between main control board and slave control board, not stop reach main control board and slave control board realizes main control plate thermal redundancy; The postrun Data Update of system does not rely on software and accomplishes; The master adopts duplicate hardware circuit with master control and subsequent use master control, uses identical application software, has reduced the complexity of Hot Spare.The data sync controller is based on the hardware circuit completion, has improved central processing unit (CPU) operational efficiency and resource utilization ratio, and has strengthened the real-time of backup, greatly reduces professional interrupted probability.
Description of drawings
Fig. 1 main control unit hot backup system overall construction drawing;
The active and standby arbitration process figure of Fig. 2;
Fig. 3 buses isolator workflow diagram.
Embodiment
Below in conjunction with embodiment and contrast accompanying drawing the present invention is elaborated.
The main control unit hot backup system of present embodiment is made up of the identical master control borad of two block structures (master control borad A and master control borad B), motherboard and n business board.The data address bus of master control borad, control signal link to each other with data address bus, the control pin of each business board through motherboard.Master control borad and business board all are fixed on the motherboard through connector.Master control borad is responsible for communicating by letter with business board, and the control total system.
Master control borad A: form by central processing unit (CPU) A1, backup arbitration unit A2, buses isolator A3, data sync controller A4.As shown in Figure 1.
Master control borad central processing unit (CPU) A1 is common central processing unit, is responsible for the whole master control borad of control.The data bus of central processing unit A1, address bus and read-write, chip selection signal are connected with data sync controller A4 with buses isolator A3 respectively.Central processing unit A1 is provided with a pin, and a pulse of output (being commonly called as heartbeat signal) supplies active and standby stamping-out unit A2 to detect whether operate as normal of this master control borad A central processing unit A1 to backup arbitration unit A2 on this pin.
Backup arbitration unit A2 is used for confirming the primary and backup relation of two master control borads; In system when operation,, whether the heartbeat signal that is used to detect master control borad A is normal; When master control borad A works when undesired, the CPU of master control borad A stops to export heartbeat signal immediately, and this moment, backup arbitration unit A2 notice buses isolator A3 cut off being electrically connected of main control board A and total system, and master control borad A is set to alarm status.Simultaneously former slave control board (master control borad B) is upgraded to main control board; Notice buses isolator B3 opens being electrically connected of new main control board (master control borad B) and system; Take over total system by new main control board (master control borad B), guaranteed professional uninterrupted normal operation.
Buses isolator A3: be used for the bus between opening/closing master control borad A and the motherboard.Buses isolator A3 has A11 and two bus ports of A12, and bus enable signal and data direction control signal are arranged.When the bus enable signal was effective, A11 bus port and A12 bus port were got through.The data flow of data direction control signal control A11, A12 bus port.When direction control signal when being high, data flow direction be through the A11 port flow to the A12 port, otherwise data stream through the A12 port flow to the A11 port.The A11 port of buses isolator A3 links to each other with data, the address bus of central processing unit A1; The A12 port links to each other with data, the address bus of business board.The enable signal of buses isolator A3 links to each other with backup arbitration unit A2, and direction control signal links to each other with the read signal of central processing unit A1.
Data sync controller A4: be used for data sync between main control board and the slave control board.During business board data arrives main control board, the data sync controller transfers to slave control board simultaneously with the new business data.Make the time strict synchronism of the business datum that obtains between main control board and the slave control board.After main control board and slave control board obtain professional new data simultaneously, carry out identical treatment scheme, make the state consistency of main control board and slave control board, accomplished main control board and slave control board state synchronized.
The described data sync controller of present embodiment A4 is different with general data sync controller, and the notebook data isochronous controller adopts hardware to realize the bus data of can running simultaneously.Generally speaking, two central processing units are operated a logical outside parallel bus (can be expressed as data, the address bus of business board herein) simultaneously, will inevitably cause bus collision, cause bus work gross error.Notebook data isochronous controller A4 is made up of two sets of data read-writes, address strobe and control port and built-in shared drive zone; Two overlap independently, and port is A13 port and A14 port.A13 port data, address bus link to each other with data, the address bus of central processing unit A1; A13 port reads, write signal link to each other with the reading and writing signal of the central processing unit A1 of master control borad A, and the enabling of the backup arbitration unit A2 of A13 port enable signal and this plate exported signal and linked to each other.The data of A14 port, address bus link to each other with the data address bus of business board, and the read signal of A14 port is unsettled, and the write signal of A14 port links to each other with the read signal of business board, and the enable signal of A14 port links to each other with the enable signal of business board.A13 port and A14 port all can carry out read-write operation to built-in shared drive.
As shown in Figure 1, master control borad B and master control borad A structure are identical, are made up of central processing unit (CPU) B1, backup arbitration unit B2, buses isolator B3, data sync controller B4.Buses isolator B3 has B11 and two bus ports of B12, and bus enable signal and data direction control signal are arranged.Data sync controller B4 is made up of two sets of data read-writes, address strobe and control port and built-in shared drive zone; Two overlap independently, and port is B13 port and B14 port, and the B11-B14 port function of master control borad B and connected mode are all identical with master control borad A.That is: B13 port data, the address bus of data sync control B link to each other with data, the address bus of central processing unit B1; B13 port reads, write signal link to each other with the reading and writing signal of the central processing unit B1 of master control borad B; The enabling of the backup arbitration unit B2 of B13 port enable signal and this plate exported signal and linked to each other; The data of B14 port, address bus link to each other with the data address bus of business board; The read signal of B14 port is unsettled, and the write signal of B14 port links to each other with the read signal of business board, and the enable signal of B14 port links to each other with the enable signal of business board.
When master control borad A is in mainly when use state, backup arbitration unit A2 closes the A13 port Enable Pin of data sync controller A4, makes data sync controller A4 inefficacy.Master control borad B is in stand-by state; The B13 port Enable Pin of backup arbitration unit B2 activation data isochronous controller B4; At this moment; As long as master control borad A read-write external business plate data; The data that the data sync controller B4 of master control borad B can read master control borad A are automatically write by the B14 port in the built-in shared drive of data sync controller B4, and the central processing unit of slave control board (master control borad B) can fetch data through the B13 port reads of data sync controller B4, has realized the data sync between main control board and the slave control board.
Present embodiment related based on data sync controller main control unit heat backup method, can realize the main control board of main control unit and the state of slave control board are carried out synchronously, this method may further comprise the steps:
(1) system powers on, and backup arbitration unit confirms that according to system state the master of this master control borad uses, stand-by state.
As shown in Figure 2, backup arbitration unit judges at first whether the other side's master control borad is that the master uses state, uses state if the other side's master control borad has been the master, and then backup arbitration unit unconditionally is changed to stand-by state with this master control borad.If the other side's master control borad is a stand-by state, backup arbitration unit detects " whether heartbeat signal is normal " of central processing unit, if normal, then this master control borad is changed to the main state of using; Otherwise, this master control borad is changed to stand-by state, and this master control borad of alarm prompt fault.
This instance is illustrated with " master control borad A serve as main use state, master control borad B be stand-by state " a kind of situation, and other situation all can be implemented with reference to this situation.
(2) buses isolator is electrically connected according to the bus between main usefulness/standby this master control borad of opening/closing and the motherboard, and is as shown in Figure 3.
Because master control borad A is the main state of using; Backup arbitration unit A2 enables buses isolator A3; A11 port and the A12 port of buses isolator A3 are got through, and promptly the data of central processing unit A1, address bus and control signal are communicated with external devices (like business board) data, address bus and control pin.Master control borad A has obtained the operation power of whole external bus, can control total system.Simultaneously, backup arbitration unit A2 closes the A13 port enable signal of data sync controller A4, and the A13 port data of data sync controller A4 is invalid, makes master control borad A obtain data from external data bus.
Because master control borad B is a stand-by state; Backup arbitration unit B2 closes buses isolator B3; B11 port and the B12 port of buses isolator B3 are blocked, i.e. the data of central processing unit, address bus and control signal and external devices (like business board) data, address bus and the blocking-up of control pin.Master control borad B has abandoned the operation power of whole external bus, uncontrollable total system.Simultaneously, backup arbitration unit B2 opens the B13 port enable signal of data sync controller B4, and the B13 port data of data sync controller B4 comes into force, and makes master control borad B obtain data from the A13 port of data sync controller B4.
(3) after slave control board (being master control borad B) powered on, initiatively with main control board (master control borad A) contact, request master control borad A sent " system status information ".System status information comprises: loop trunks application status table, digital junction state table.
(4) after main control board (being master control borad A) is received " request transmitting system state " order that master control borad B sends, start " initial data transfer module " system status information is sent to slave control board
(5) slave control board (master control borad B) starts the status data that " primary data is accepted module " receives the main control board transmission, accomplishes the initialization of this slave control board state, makes its state consistent with main control board (master control borad A).
(6) after step (5) is accomplished; The B14 port of the data sync controller B4 of master control borad B deposits master control borad A the built-in shared drive of data sync controller B4 in from the data that external devices or integrated circuit board (like business board) obtain, and supplies master control borad B to fetch data from the B13 port reads of data sync controller B4.Because slave control board (master control borad B) is identical with the data that main control board (master control borad A) obtains, so master control borad A and master control borad B just carry out identical flow chart of data processing, has realized the main control board and the slave control board state synchronized of main control unit.
(7) when backup arbitration unit A2 detects master control borad A operation irregularity (heartbeat signal like central processing unit A1 stops); Backup arbitration unit A2 notice buses isolator A3 cuts off master control borad A and external data, address bus and control signal; And master control borad A is changed to stand-by state, and this master control borad of alarm prompt fault.
When (8) backup arbitration unit detects B and detects master control borad A and be stand-by state, immediately master control borad B is changed to the main state of using.Simultaneously; Backup arbitration unit B2 enables buses isolator B3; B11 port and the B12 port of buses isolator B3 are got through, and promptly the data of central processing unit B1, address bus and control signal are communicated with external devices (like business board) data, address bus and control pin.Master control borad B has obtained the operation power of whole external bus, can control total system.Simultaneously, backup arbitration unit B2 closes the B13 port enable signal of data sync controller B4, and the B13 port data of data sync controller B4 is invalid, makes master control borad B obtain data from external data bus.Master control borad B upgrades to main control board, takes over former main control board (master control borad A) and works on, the control total system.
Wherein, in the said step (1), said plate backup arbitration unit confirmed the main and standby relation of this plate according to system state, is to be accomplished by hardware circuit fully, and main control board and slave control board all have " backup arbitration unit " separately.
Wherein, in the said step (2), said buses isolator is by " arbitration control module " control, and buses isolator opens or closes the bus between local terminal master control borad and the bus according to the arbitration control module, and buses isolator is made up of hardware circuit.
Wherein, in the said step (3) (4) (5), the transmission of system state data and acceptance just power on the back execution once at slave control board.In execution in step (3) (4) (5), the data sync controller of master control borad A and master control borad B is not all worked
Wherein, in the said step (6), said data sync controller is separately arranged all in main control board and the slave control board.When professional new data arrived the master control main board, the data sync controller copied to self storage unit according to the data synchronizing signal on the main control board with the business board data sync on the slave control board, and incense is read with master control borad.In the data sync controller relation of address and data fully and business board transfer to main control board address and data consistent.
Wherein, in the said step (6), the data sync controller is meant the data sync controller on the slave control board, and the data sync controller of main control board is not worked, and the business datum of main board directly obtains from business board.
Wherein, in the said step (7), the situation of main control board operation irregularity comprises: the main control board that main control board program fleet, master control borad fault, hand-reset and a variety of causes cause restarts.
The above is merely preferred embodiment of the present invention, is not limited to the present invention, and is all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the main control unit hot backup system based on the data sync controller is characterized in that: be made up of the identical master control borad of two block structures, motherboard and an above business board; The data of master control borad, address bus, control signal link to each other with data address bus, the control pin of each business board through motherboard; Master control borad all is fixed on the motherboard through connector with each business board; Be responsible for communicating by letter as the master control borad of main usefulness with business board, and the control total system;
Two master control borads are formed by central processing unit (CPU), backup arbitration unit, buses isolator, data sync controller;
Central processing unit (CPU): control whole master control borad; The data bus of central processing unit, address bus and read-write, chip selection signal are connected with the data sync controller with the buses isolator of this master control borad respectively; Central processing unit is provided with a pin; Pulse heartbeat signal of this pin output is to backup arbitration unit, supplies backup arbitration unit to detect the CPU operate as normal of whether working;
Backup arbitration unit: the primary and backup relation that is used for confirming two master control borads; In system when operation,, whether the heartbeat signal that is used to detect this master control borad is normal; When the work of this master control borad is undesired; This master control borad CPU stops to export heartbeat signal immediately; This moment, this backup arbitration unit notified this buses isolator to cut off being electrically connected of main control board and total system; And this master control borad is set to alarm status, simultaneously former slave control board is upgraded to main control board, and the notice buses isolator that upgrades to the new main control board of main control board is opened being electrically connected of this master control borad and system; Take over total system by new main control board, guaranteed professional uninterrupted normal operation;
Buses isolator: be used for being electrically connected between opening/closing master control borad and the motherboard, buses isolator has two ports, and one of two ports link to each other with data, address bus and the control signal of the central processing unit of this master control borad; The another port then links to each other with data, address bus and the control signal of business board; The enable signal of buses isolator links to each other with the backup arbitration unit of this master control borad, and when the bus enable signal was effective, two ports were got through; The data flow of two ports of direction control signal control bus isolator; When direction control signal when being high, data flow direction be a port flow to the another port, otherwise then data flow is opposite;
Data sync controller: be used for data sync between main control board and the slave control board; During business board data arrives main control board; The data sync controller transfers to slave control board simultaneously with the new business data; Make the time strict synchronism of the business datum that obtains between main control board and the slave control board, after main control board and slave control board obtain professional new data simultaneously, carry out identical treatment scheme; Make the state consistency of main control board and slave control board, accomplished main control board and slave control board state synchronized.
2. the main control unit hot backup system based on the data sync controller according to claim 1; It is characterized in that: the data sync controller of the two master control borads i.e. first data sync controller (A), the second data sync controller (B) all adopts hardware to realize; The bus data of can running simultaneously has two bus ports that independently are used for reading and writing data, address strobe and signal controlling respectively: A13 port and A14 port, B13 port and B14 port;
A) data of the A13 port of the first data sync controller (A), address bus link to each other with data, the address port of first central processing unit (A1); A13 port reads, write signal link to each other with the reading and writing signal of first central processing unit (A1) of first master control borad (A); The enabling of the backup arbitration unit of A13 port enable signal and this master control borad exported signal and linked to each other; The data of A14 port, address bus link to each other with the data address bus of business board; The read signal of A14 port is unsettled, and the write signal of A14 port links to each other with the read signal of business board, and the enable signal of A14 port links to each other with the enable signal of business board;
B) B13 port data, the address bus of second data sync control (B) link to each other with data, the address bus of second central processing unit (B1); B13 port reads, write signal link to each other with the reading and writing signal of second central processing unit (B1) of second master control borad (B); The enabling of the backup arbitration unit of B13 port enable signal and this master control borad exported signal and linked to each other; The data of B14 port, address bus link to each other with the data address bus of business board; The read signal of B14 port is unsettled, and the write signal of B14 port links to each other with the read signal of business board, and the enable signal of B14 port links to each other with the enable signal of business board.
3. the main control unit heat backup method of the described main control unit hot backup system based on the data sync controller of an application such as claims 2 is characterized in that: may further comprise the steps:
(a) system powers on, and a backup arbitration unit confirms that according to system state the master of this master control borad uses, stand-by state:
Backup arbitration unit judges at first whether the other side's master control borad is the main state of using; If the other side's master control borad has been the main state of using; Then backup arbitration unit unconditionally is changed to stand-by state with this master control borad, if the other side's master control borad is a stand-by state, this backup arbitration unit detects " whether heartbeat signal is normal " of central processing unit; If normal, then this master control borad is changed to the main state of using; Otherwise, this master control borad is changed to stand-by state, and this master control borad of alarm prompt fault;
(b) corresponding buses isolator is electrically connected according to the bus that the master uses or standby opens or closes between this master control borad and the motherboard:
Be in the master and open this master control borad buses isolator with the master control borad in the state; Two ports of the buses isolator of this master control borad are got through; The data, address bus and the control signal that are central processing unit are communicated with business board data, address bus and control pin; Be in the master and weigh, can control total system with the operation that the master control borad in the state has obtained whole external bus; Simultaneously, the backup arbitration unit of this master control borad is closed reading and writing data, the address strobe port of this main control board data isochronous controller, makes to be in to lead can only obtain data from external data bus with the master control borad in the state;
Another master control borad then is a stand-by state; The backup arbitration unit of this master control borad is closed the buses isolator of this master control borad; Two ports of this buses isolator all are blocked; Be data, address bus and control signal and business board data, address bus and the blocking-up of control pin of the central processing unit of this master control borad, the master control borad of stand-by state is abandoned the operation power of whole external bus, uncontrollable total system; Simultaneously; The master control borad backup arbitration unit of stand-by state is opened reading and writing data, the address strobe port of the data sync controller of this master control borad; Make the port data of this main control board data isochronous controller come into force, make the master control borad of stand-by state obtain data from reading and writing data, the address strobe port of the data sync controller of this master control borad;
(c) after slave control board powered on, initiatively with the main control board contact, the request main control board sent " system status information ";
(d) after main control board is received " request transmitting system state " order that slave control board sends, start " initial data transfer module " system status information is sent to slave control board;
(e) slave control board starts the status data that " primary data is accepted module " receives the main control board transmission, accomplishes the initialization of slave control board state, makes its state consistent with main control board;
(f) after the above-mentioned completion of step; The reading and writing data of the data sync controller of slave control board, address strobe port obtain main control board from business board data deposit the data sync controller of slave control board in; Incense is read notebook data with master control borad from this main control board data isochronous controller reading and writing data, address strobe port; Slave control board is identical with the data that main control board obtains; So main control board and slave control board are then carried out identical flow chart of data processing, realize the main control board and the slave control board state synchronized of main control unit;
(g) when the backup arbitration unit of main control board detects this master control borad operation irregularity; Promptly when the heartbeat signal of main control board central processing unit stops; The backup arbitration unit of main control board notifies the buses isolator of this master control borad to cut off this master control borad and external data, address bus and control signal; And this master control borad is changed to stand-by state, and this master control borad of alarm prompt fault;
When (h) subsequent use backup arbitration unit detects main control board and transfers stand-by state to; Immediately this master control borad is changed to the main state of using; Simultaneously; The backup arbitration unit of this master control borad enables the buses isolator of this master control borad, and two ports of this master control borad buses isolator are all got through, and promptly the data of the central processing unit of this master control borad, address bus and control signal are communicated with business board data, address bus and control pin; This master control borad has obtained the operation power of whole external bus, can control total system; Simultaneously; The backup arbitration unit of this master control borad is closed the reading and writing data address port enable signal of its data sync controller; The control port data of notebook data isochronous controller are invalid, make this master control borad obtain data from external data bus, and this master control borad upgrades to main control board; Take over former main control board and work on, the control total system.
4. the main control unit hot backup system main control unit heat backup method based on the data sync controller according to claim 3, it is characterized in that: system status information comprises: loop trunks application status table, digital junction state table.
5. according to claim 3 or 4 described main control unit hot backup system main control unit heat backup methods based on the data sync controller; It is characterized in that: among said step (c), (d), (e); The transmission of system state data and acceptance just power on the back execution once at slave control board; In carrying out (c), (d), (e) step, the data sync controller of two master control borads is not all worked.
6. according to claim 3 or 4 described main control unit hot backup system main control unit heat backup methods based on the data sync controller; It is characterized in that: in the said step (f); Said data sync controller is separately all arranged in main control board and the slave control board; When professional new data arrives the master control main board; The data sync controller copies to self storage unit according to the data synchronizing signal on the main control board with the business board data sync on the slave control board, and incense is read with master control borad, in the data sync controller relation of address and data fully and business board transfer to main control board address and data consistent.
7. according to claim 3 or 4 described main control unit hot backup system main control unit heat backup methods based on the data sync controller; It is characterized in that: wherein; In the said step (g), the situation of main control board operation irregularity comprises: the main control board that main control board program fleet, master control borad fault, hand-reset and a variety of causes cause restarts.
CN2009101159599A 2009-08-14 2009-08-14 Synchronous data controller based hot standby system of main control unit and method thereof Expired - Fee Related CN101625568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101159599A CN101625568B (en) 2009-08-14 2009-08-14 Synchronous data controller based hot standby system of main control unit and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101159599A CN101625568B (en) 2009-08-14 2009-08-14 Synchronous data controller based hot standby system of main control unit and method thereof

Publications (2)

Publication Number Publication Date
CN101625568A CN101625568A (en) 2010-01-13
CN101625568B true CN101625568B (en) 2012-08-08

Family

ID=41521442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101159599A Expired - Fee Related CN101625568B (en) 2009-08-14 2009-08-14 Synchronous data controller based hot standby system of main control unit and method thereof

Country Status (1)

Country Link
CN (1) CN101625568B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202244B (en) * 2010-03-23 2014-08-13 中兴通讯股份有限公司 Method and device for improving protective performance of passive optical network
CN102368223A (en) * 2011-10-08 2012-03-07 深圳和而泰智能控制股份有限公司 Dual-core embedded system and control method
CN102880485A (en) * 2012-08-30 2013-01-16 浪潮(北京)电子信息产业有限公司 Method and system for upgrading double controllers
CN104077205B (en) * 2013-03-29 2016-08-17 上海航空电器有限公司 A kind of complete Hot Spare alarm equipment based on multiple peripheral hardware and dispatching method thereof
CN104753710B (en) * 2013-12-30 2019-09-10 北京大唐高鸿软件技术有限公司 The active-standby switch system and method for double WAN mouthfuls of network equipments
CN103809429B (en) * 2014-01-26 2016-09-14 武汉第二船舶设计研究所 Hardware mediation hybrid redundancy intelligent controller and redundancy backup method
CN105975364B (en) * 2016-05-03 2019-07-05 杭州迪普科技股份有限公司 Data back up method and device
CN106059070A (en) * 2016-06-02 2016-10-26 孙文兵 Novel intelligent power distribution terminal for rural power distribution network
CN106936646B (en) * 2017-04-24 2019-12-06 新华三技术有限公司 method and device for determining main master control board
CN109782578A (en) * 2018-12-24 2019-05-21 中国船舶重工集团公司第七一0研究所 A kind of high reliability deep-sea autonomous underwater vehicle control method
CN109991899A (en) * 2019-04-01 2019-07-09 上海电气泰雷兹交通自动化系统有限公司 Half dynamic synchronization method of data between the active and standby controller of Rail Transit System
CN111478947B (en) * 2020-03-20 2023-02-17 珠海高凌信息科技股份有限公司 Method and system for real-time synchronization of main control board and standby control board
CN111478863B (en) * 2020-04-14 2022-02-11 深圳市风云实业有限公司 Switch system and network port time synchronization method thereof

Citations (2)

* 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
CN1815908A (en) * 2006-03-02 2006-08-09 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof

Patent Citations (2)

* 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
CN1815908A (en) * 2006-03-02 2006-08-09 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof

Also Published As

Publication number Publication date
CN101625568A (en) 2010-01-13

Similar Documents

Publication Publication Date Title
CN101625568B (en) Synchronous data controller based hot standby system of main control unit and method thereof
CN101645915B (en) Disk array host channel daughter card, on-line switching system and switching method thereof
CN101420328B (en) System, interface card and method for remote upgrading field programmable gate array
CN111767244B (en) Dual-redundancy computer equipment based on domestic Loongson platform
CN104345869B (en) Secure digital input/output unit, system and its control method
CN102724092A (en) Profibus-DP communication protocol redundancy master station
CN101271332A (en) Compact integrated redundancy controller and control method thereof
US20140136829A1 (en) Method, Network Card, and Hard Disk Card for Accessing Shut-Down Hard Disk
CN108255754B (en) A kind of I3C main equipment of compatible I2C, I3C master-slave equipment communication system and method
CN101196823B (en) Method, system and equipment for on-line software upgrade in open application structure
CN101000591A (en) Double-machine redundancy system based on embedded CPU
WO2018041093A1 (en) Storage system and method for transmitting signal in storage system
US20120331199A1 (en) Computer system, host-bus-adaptor control method, and program thereof
CN117148953A (en) Microcontroller and electronic device
CN101296063B (en) Main/standby switching device, method and single plate
KR20020011745A (en) schematic method of warm standby duplicating device
US7814356B2 (en) Apparatus and control method for initializing a phase adjusting part in response to a power supply cut signal
JP2000148664A (en) Device and method for controlling extension of pci function
CN104750638B (en) A kind of interface adapter and the method for cutting out compatible with Wishbone
CN113626363A (en) Multi-bus architecture device facing micro-nano satellite-borne computer and control method thereof
CN100361047C (en) Method and apparatus for raising reliability of bus transmission
CN113765827B (en) Switch firmware protection system
CN221784188U (en) EtherCAT slave station communication system
CN117827544B (en) Hot backup system, method, electronic device and storage medium
CN114741343B (en) Controller port expansion device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: BEIFANG LIANCHUANG COMMUNICATION CO., LTD.

Free format text: FORMER NAME: JIANGXI LIANCHUANG COMMUNICATION CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 330096, LIAN building, No. 168, Jingdong Avenue, Nanchang hi tech Development Zone, Jiangxi, China

Patentee after: BEIFANG LIANCHUANG COMMUNICATION Co.,Ltd.

Address before: 330096, LIAN building, No. 168, Jingdong Avenue, Nanchang hi tech Development Zone, Jiangxi, China

Patentee before: Jiangxi Lianchuang Communication Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120808

Termination date: 20210814

CF01 Termination of patent right due to non-payment of annual fee