High-speed communication backboard with redundant controller and communication method thereofTechnical Field
The invention relates to the field of high-speed backboard bus communication in an industrial control system, and particularly provides a high-speed communication backboard with a redundant controller. The backboard ensures the reliability, the safety and the high-speed data exchange of the system communication through a hardware redundancy mechanism and a bus communication protocol.
Background
In an industrial control system, a communication backboard is responsible for connecting a plurality of IO board cards, at least one main controller card and a power card, and a physical layer generally adopts a differential serial communication or parallel communication mode. The serial communication adopts CAN and RS485 bus communication solution, the single bus does not exceed 10Mbps, and the data exchange speed is low. The data exchange speed and line width of parallel communication are in direct proportion, for example, PCI or CPCI bus needs to occupy a lot of control lines, and special communication chip is adopted, so that the cost is high and the electromagnetic compatibility is poor. At present, the back board scheme in the domestic industrial control system mostly lacks hardware and bus communication protocol redundancy control mechanism, because the back board bus often adopts a single controller card, a single power supply and a single back board bus technical scheme, when any part of the technical scheme breaks down, the whole communication back board control system is down, the reliability is low, and the communication data exchange speed is also low. With the increasing speed of IO applications in industrial control systems, reliability and security requirements are continually increasing, and the backplane bus communication speed, reliability and security are both modern high-speed backplane solutions that must be faced and considered.
Disclosure of Invention
The invention aims at overcoming the defects in the application of the industrial control backboard bus communication system, and provides a high-speed communication protocol backboard with a redundant controller, which ensures the communication reliability, safety and high-speed data exchange of the system through a hardware redundancy mechanism and a bus communication protocol.
The technical scheme adopted by the invention for achieving the purpose is as follows: a high-speed communication backboard with a redundant controller comprises a backboard connector, and at least one main controller card and at least one IO board card which are inserted on the backboard connector;
the main controller card is used for carrying out data interaction with the IO board card to complete the identity verification of the IO board card and the input and output control of IO signals; monitoring states of an activated main controller card and an online IO board card in backboard communication, and when the main controller card in a hot standby state monitors that a heartbeat signal of the activated main controller card stops or LVDS communication is overtime, immediately activating the hot standby main controller card;
the IO board card is used for receiving the request data message of the main controller card and sending the response data message to the active state main controller card so as to complete identity verification and IO signal input and output control.
The main controller card is internally provided with a backboard redundant controller which comprises a backboard power supply functional block, a backboard state functional block and a controller state functional block;
the backboard power supply functional block is used for giving out a low-level signal by the IO board card when the IO board card is in short circuit, controlling the relay to cut off backboard power supply of the IO board card and isolating the failed IO board card;
the backboard state functional block is used for detecting states of all level signals given out on the IO board card;
the controller state functional block is used for controlling the redundant power supply output of the hot standby master controller card and monitoring the heartbeat pulse signal and LVDS communication state of the activated master controller card; and when the heartbeat signal of the active main controller card is monitored to stop or LVDS communication is overtime, the back plate redundant controller in the hot standby main controller card immediately activates the hot standby main controller card.
And data hot standby is carried out among a plurality of main controller cards through an LVDS communication interface, so that the redundancy of the controller cards is realized.
The main controller card and the IO board card are respectively provided with two redundant MLVDS communication interfaces, and the redundant MLVDS communication interfaces are used for data exchange between the main controller card and the IO board card.
The back plate redundant controller in the main controller is used for monitoring the states of the main controller card and the IO board card which are online in back plate communication, and comprises the working states of the main controller card, IO board card plug monitoring, IO board card addresses, IO board card types, IO board card power supply states and IO board card interrupt authority allocation and scheduling.
When two main controllers in the communication backboard work normally, one is in a hot standby redundant state and the other is in an active state; when the main controller card in the active state is powered down, the heartbeat signal stops or LVDS communication is overtime, the back plate redundant controller activates the controller in the hot standby redundant state, and immediately takes over the control authority of the communication back plate bus after activation.
An independent power control function block is arranged on the slot position of the IO board card in the communication backboard, and when communication abnormality or power failure occurs to the IO board card, the backboard redundant controller cuts off the power supply of the IO board card through the power control function block on the backboard, so that physical isolation is realized.
Independent hardware addresses and types are arranged on the IO board card in the communication backboard so as to acquire the addresses and types of the IO board card in real time and be used for identity verification and plug state hardware monitoring of equipment.
A high-speed communication backboard communication method with a redundant controller comprises the following steps:
after the communication backboard is electrified, a first communication period is adopted, the main controller card in an activated state sends request data messages to each online IO board card, each IO board card sends response data messages, and identity verification and timestamp configuration are completed in the first period;
the next communication period enters a multiplexing time slot message period, and each IO board card sequentially sends messages according to a scheduling sequence configured in the main controller card; when the communication backboard enters into the multiplexing time slot message period, the backboard redundant controller in the main controller card in an activated state monitors the hot plug action of the IO board card, the communication backboard enters into asynchronous interrupt communication after the multiplexing time slot message period is finished, the main controller card sends asynchronous request data, the IO board card sends asynchronous response data, identity verification and time stamp configuration are carried out on the inserted IO board card, and the extracted IO board card is moved out of the multiplexing time slot message period sequence.
The response data message or request data message format comprises: destination address, source address, type, timestamp, status bits, data length, data, CRC check; the method is used for identity verification, time synchronization, state monitoring and data verification.
The invention has the following beneficial effects and advantages:
1. the backboard bus has a simple structure. The designed backboard bus uses two MLVDS differential serial buses, pins of a high-speed connector of each IO board card are completely consistent, the IO board cards can be mixed and inserted, and the main controller hardware and backboard bus communication protocol support hot plug of IO modules, so that the use convenience is improved.
2. The backboard bus has high communication reliability. The designed backboard bus uses two main controllers, and a high-speed LVDS communication interface is used for data hot standby between two main controller cards, so that the redundancy of the controller cards is realized. The main controller card and the IO board card are interconnected through two high-speed MLVDS communication interfaces, so that the communication redundancy of the backboard bus is realized. And redundant power supply functional blocks in the two main controllers supply power to the backboard at the same time, so that backboard power supply redundancy is realized.
3. And (5) failure board card isolation. An independent power control function block is arranged on the slot position of the IO board card in the communication backboard, and when communication abnormality or power failure occurs to the IO board card, the backboard redundant controller cuts off the power supply of the IO board card through the power control function block on the backboard, so that physical isolation is realized.
4. The backboard bus has high communication security. And the back plate redundant controller in the main controller monitors the IO board card address and the IO board card type in real time, and completes identity verification together with information in a back plate bus communication protocol message, so that the data safety and reliability are ensured.
5. The backboard bus communication data exchange efficiency is high. When the main controller card and the IO board card carry out bus data communication, a request response mode is used in non-periodic communication, and a combination mode of multiplexing time slots and asynchronous communication is used in periodic communication. The bus communication protocol supports an optimized sequence combination working mode during periodic communication, and the high-speed equipment and the low-speed equipment reasonably configure the scheduling time of each IO board card, so that the communication idle time is reduced, and the bus data exchange speed is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the principle of the invention;
FIG. 1 is a schematic diagram of a backplane bus hardware component connection with a redundant controller;
FIG. 2 is a schematic diagram of a backplane redundancy controller;
FIG. 3 is a Master controller "request data" message and IO Module "response data" message;
FIG. 4 is a "request reply" data exchange of the host controller and IO module during non-periodic communication;
FIG. 5 is a diagram of the "multiplexing time slots" and "asynchronous communications" data exchanges of the host controller and IO module while performing periodic communications;
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
The back board communication has amain controller card 1, amain controller card 2, a plurality of IO board cards and a communication back board with a plurality of high-speed connectors. And a high-speed LVDS communication interface is used for data hot standby between the two main controller cards, so that the redundancy of the controller cards is realized. The main controller card and the IO board card are interconnected through two high-speed MLVDS communication interfaces, so that the redundancy of the backboard communication bus is realized.
The main controller card is provided with a backboard redundant controller and is responsible for monitoring the states of the main controller card and the IO board card which are online in backboard communication. The method mainly comprises the steps of working state of a main controller card, insertion and extraction monitoring of the IO board card, address of the IO board card, type of the IO board card, power state of the IO board card and distribution and scheduling of interruption authority of the IO board card. When a communication abnormality or power failure occurs to a certain IO board card, the backboard redundant controller cuts off the power supply of the IO board card through a power control functional block on the communication backboard, and improves the stability and reliability of the communication backboard through physical isolation.
When the main controller card and the IO board card carry out bus data communication, a request response mode is used in non-periodic communication, and a combination mode of multiplexing time slots and asynchronous communication is used in periodic communication. The bus communication protocol supports an optimized sequence combination working mode during periodic communication, and the high-speed equipment and the low-speed equipment can reach the optimal system through reasonable configuration, so that the bus data exchange speed is improved. The bus communication protocol message comprises a destination address, a source address, a type, a time stamp, a status bit, a data length, data, CRC check and the like. The message content can be used for identity verification, time synchronization, state monitoring and data verification, and data security and reliability are ensured.
As shown in fig. 1, a high-speed communication backplane with a redundant controller according to the present invention mainly includes: the device comprises two main controller card slot high-speed backboard connectors, a plurality of IO board card slot high-speed backboard connectors, two MLVDS interface communication buses, a main controller communication LVDS interface communication bus and a backboard redundancy controller. The communication speed of the two MLVDS interfaces is not less than 200Mbps, and the communication speed of the LVDS interfaces is not less than 100Mbps.
Two MLVDS interface communication buses in the backboard are respectively connected with two MLVDS interfaces on the main controller card and the IO board card. When the system works normally, the same data can be transmitted simultaneously through the two communication buses, the main controller and the IO board card judge the data from the two buses, only when the data content is completely consistent, the data is received, and when the data is inconsistent, the accounting number of the main controller is accumulated, and the failure information can be reported when the accounting number is accumulated to a certain time.
And the main controller in an activated state sends the data and the configuration information acquired on the high-speed communication backboard to the hot standby redundant controller in real time through an LVDS interface communication bus. When the hot standby redundant controller is activated, the data can be used for quickly recovering to the normal working state of the high-speed backboard.
As shown in fig. 2, the back panel redundant controller in the main controller is mainly composed of three functional blocks of a back panel power supply, a back panel state and a controller state.
Backboard power supply: the external direct current power supply provides multiple paths of independent secondary direct current power supplies for the bus backboard through a redundant power supply functional block in the main controller card, and the backboard power supply functional block is responsible for distributing the secondary direct current power supplies to power supply pins of the high-speed connectors of all IO board card slots on the high-speed backboard and simultaneously monitors the level states given by the power supply monitoring chips on the IO board card. When the IO module is short-circuited, the power supply monitoring chip gives out low level, and the backboard power supply functional block controls the relay to cut off backboard power supply of the IO module, so that the failed IO board card is isolated.
Backboard state: each IO board card is provided with an IO board card state functional block, which comprises an IO board card slot address, an IO type, a reset signal, a synchronous signal, an interrupt signal and the like. And the backboard state functional block is responsible for transmitting the combined states of the high-low level signals in the IO board card state functional block to the backboard redundant controller.
Controller state: and the main controller redundant power supply is responsible for enabling output, monitoring the heartbeat pulse level and the communication state of the controller. When the heartbeat is detected to stop or communication is lost, the controller state functional block gives a low-level signal to the backboard redundant controller, and the backboard redundant controller activates the hot standby main controller.
As shown in fig. 3, the messages respectively include a message of "response data" of the IO board card and a message of "request data" of the main controller card, and the bus communication protocol message includes a destination address, a source address, a type, a timestamp, a status bit, a data length, data, CRC check, and the like. The message content can be used for identity verification, time synchronization, state monitoring and data verification, and data security and reliability are ensured.
As shown in fig. 4 and fig. 5, after the communication backboard is powered on, the main controller in the active state in the first communication period sends a "request data" message to each on-line IO board card, and each IO board card sends a "response data" message, and the identity verification and the time stamp configuration need to be completed in the first period. The next communication period enters a 'multiplexing time slot' message period, and each IO board card sequentially sends messages according to a scheduling sequence of the main controller. When the communication backboard enters a multiplexing time slot message period, and when the backboard redundancy controller monitors hot plug action of the IO board card, the communication backboard enters asynchronous interrupt communication after the multiplexing time slot message period is finished, the main controller sends asynchronous request data, the IO module sends asynchronous response data, identity verification and time stamp configuration are carried out on the inserted IO board card, the IO board card is pulled out, and the IO board card is moved out of the multiplexing time slot message period sequence.