CN102880143A - Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof - Google Patents

Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof Download PDF

Info

Publication number
CN102880143A
CN102880143A CN201210365609XA CN201210365609A CN102880143A CN 102880143 A CN102880143 A CN 102880143A CN 201210365609X A CN201210365609X A CN 201210365609XA CN 201210365609 A CN201210365609 A CN 201210365609A CN 102880143 A CN102880143 A CN 102880143A
Authority
CN
China
Prior art keywords
data
bus
controller
receive unit
receive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210365609XA
Other languages
Chinese (zh)
Other versions
CN102880143B (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.)
719th Research Institute of CSIC
Original Assignee
719th Research Institute of CSIC
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 719th Research Institute of CSIC filed Critical 719th Research Institute of CSIC
Priority to CN201210365609.XA priority Critical patent/CN102880143B/en
Publication of CN102880143A publication Critical patent/CN102880143A/en
Application granted granted Critical
Publication of CN102880143B publication Critical patent/CN102880143B/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

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a single control area network (CAN) controller hot-redundant CAN bus system and relates to the field of CAN buses. The system comprises two buses and a plurality of CAN node circuits, wherein each of CAN node circuits is connected to two buses at the same time, each of CAN node circuits comprises a micro processor, a fault processing circuit, a CAN controller, an arbitration receiving and selecting unit, a first separating receiving-transmitting unit and a second separating receiving-transmitting unit, first separating receiving-transmitting units and second separating receiving-transmitting units are used for transmitting data received by buses to arbitration receiving and selecting units, arbitration receiving and selecting units are used for transmitting data to CAN controllers, and CAN controllers are used for transmitting data to micro processors, and fault processing circuits are used for receiving data from arbitration receiving and selecting units and micro processors and respectively transmitting enable control signals to first separating receiving-transmitting units and second separating receiving-transmitting units. The system has the advantages that the operation is simple, the reliability of data receiving and transmitting is high, the hardware cost is low and the difficulty of redundant bus development is simplified greatly.

Description

Single CAN controller hot redundant CAN bus system and its implementation
Technical field
The present invention relates to CAN(Controller Area Network, controller local area network) specifically the bus field is a kind of single CAN controller hot redundant CAN bus system and its implementation.
Background technology
The CAN bus has been widely used in auto industry, mechanical industry, farm machinery, textile machine, robot, numerically-controlled machine, medicine equipment, household electrical appliance and sensor field as a kind of fieldbus with international standard.The CAN bus has following characteristics: ⑴ CAN bus is how main working method, on the bus arbitrary node all can be at any time initiatively on the bus other node send data, regardless of the principal and subordinate; ⑵ CAN bus adopts non-destruction arbitration, and less its priority of message identifier is higher, priority high message prior send, priority is low initiatively withdraws from the bus free time such as bus and resends; ⑶ CAN node comes transceiving data by can realize the modes such as point-to-point, point-to-points and broadcasting to message identifier filtering.Although the CAN bus itself has very high reliability, on-the-spot in the Industry Control of a lot of inclement conditions, still happening occasionally disconnection, short circuit appear or occurs the fault such as of short duration communicating interrupt because of electromagnetic interference (EMI) in bus cable.
In order to improve the bus communication system reliability, much control the place and adopted redundant CAN bus: namely lay two independently CAN buses, connect up to avoid to occur simultaneously these faults by different physical locations.A complete CAN Bus Node Circuit comprises a bus transceiver, a bus controller and a microprocessor at least.Thereby, realize that redundant CAN bus generally has 3 kinds of modes:
1) bus transceiver, bus controller and microprocessor are all redundant, namely all configure two.This mode is equivalent to each CAN bus node complete copy one time, and hardware cost is too high, does not generally consider.
2) bus transceiver and bus controller are redundant, and microprocessor only configures one.This implementation method is more at present, and still, owing to wanting polygamy to put bus controller, hardware cost is higher; Software programming is complicated, needs the complete CAN bus communication correlated variables of configuration 2 covers, is a very large expense to the less microprocessor of memory capacity.When particularly two buses are received data simultaneously, how data are merged quite trouble of processing.Therefore, some redundancy schemes are with regard to compromise: adopt cold redundancy, namely only allow wherein bus work, switch to another bus again when this bus breaks down.
Summary of the invention
For the defective that exists in the prior art, the object of the present invention is to provide a kind of single CAN controller hot redundant CAN bus system and its implementation, it is simple to operate, and the transceiving data reliability is high, and hardware cost is low, greatly simplifies the difficulty of exploitation redundant bus.
For reaching above purpose, the hot redundant CAN bus of a kind of single CAN controller of the present invention system, comprise two buses and a plurality of CAN node circuit, each CAN node circuit connects two buses simultaneously, each CAN node circuit comprises microprocessor, fault processing unit, the CAN controller, receive the arbitration selected cell, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, first the isolation Transmit-Receive Unit be connected the isolation Transmit-Receive Unit connect respectively a bus, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit jointly are connected to and receive the arbitration selected cell, receive the arbitration selected cell and connect the CAN controller, CAN controller peripheral hardware be connected to microprocessor or in be placed in microprocessor, connect respectively simultaneously the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, microprocessor also connects fault processing unit, and fault processing unit connects respectively to receive arbitrates selected cell, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit; The first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit will be sent to by the data that bus receives and receive the arbitration selected cell, receive the arbitration selected cell data are sent to the CAN controller, the CAN controller imports data into microprocessor, fault processing unit receives from the data that receive arbitration selected cell and microprocessor, and transmission enables control signal to the first isolation Transmit-Receive Unit, the second isolation Transmit-Receive Unit respectively.
On the basis of technique scheme, described reception arbitration selected cell comprises the first univibrator and the second univibrator, the two connects respectively the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, and receive its data, and rest-set flip-flop of the two common connection, rest-set flip-flop connects respectively the first Sheffer stroke gate and the second Sheffer stroke gate, and the first Sheffer stroke gate is connected to first phase inverter; The second Sheffer stroke gate is connected to second phase inverter, the first phase inverter be connected phase inverter common connect one or.
On the basis of technique scheme, described or door connects the CAN controller, the first Sheffer stroke gate be connected Sheffer stroke gate and all connect failure processor, and receive the control signal that enables from failure processor.
On the basis of technique scheme, described the first univibrator data communication device is crossed rest-set flip-flop and is sent into the second Sheffer stroke gate, and the second univibrator data communication device is crossed rest-set flip-flop and sent into the first Sheffer stroke gate.
On the basis of technique scheme, described the first isolation Transmit-Receive Unit comprises interconnective the first isolating device and a CAN transceiver, the second isolation Transmit-Receive Unit comprises interconnective the second isolating device and the 2nd CAN transceiver, and a described CAN transceiver and the 2nd CAN the transceiver respectively bus corresponding with it connect.
On the basis of technique scheme, described the first isolating device connects respectively the first univibrator, the first Sheffer stroke gate, and data are sent into the first univibrator and the first Sheffer stroke gate; The first isolating device also connects respectively CAN controller and fault processing unit, and receives the data from CAN controller and fault processing unit.
On the basis of technique scheme, described the second isolating device connects respectively the second univibrator, the second Sheffer stroke gate, and data are sent into the second univibrator and the second Sheffer stroke gate; The second isolating device also connects respectively CAN controller and fault processing unit, and receives the data from CAN controller and fault processing unit.
On the basis of technique scheme, described the first isolation Transmit-Receive Unit is identical with the second isolation Transmit-Receive Unit.
The present invention also designs a kind of implementation method based on the hot redundant CAN bus of single CAN controller system in the claim 1, the data receiver face, microprocessor sends data to the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit simultaneously by controller, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit are sent to corresponding bus simultaneously with data, simultaneously shielding is the return signal of a bus wherein, if data are sent completely rear inerrancy and produce, then when sending, lower secondary data shields in the manner described above the return signal of another bus, later every secondary data sends circulation shielding, and data send the data receiver of rear two buses of immediate recovery; The data receiver aspect, receive the arbitration selected cell and receive respectively two bus specified number certificates by the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, and according to the order that the priority of data arrives, import the data that arrive first into microprocessor, the data conductively-closed that then receives.
On the basis of technique scheme, described data receiver face is if data are sent completely rear wrong generation, then the corresponding bus of mark is wrong, when lower secondary data sent, by the fault processing unit that microprocessor connects, the isolation Transmit-Receive Unit that links to each other with this bus was closed in control.
Beneficial effect of the present invention is:
1. each CAN node circuit only has the redundant architecture of a CAN controller, two isolation Transmit-Receive Unit and dual bus, has guaranteed reliability and the fault-tolerant ability of whole communication system, has reduced hardware cost, has simplified developer's Software for Design.
2. during data receiver, accept data that the arbitration selected cell selects to arrive first as this communication data, then data are sent on two buses simultaneously when externally sending; Article two, bus is simultaneously in running order, is real heat redundancy.
3. when or active passive when any bus appearance was wrong, the bus that breaks down was by automatic shield, and normal bus is worked always, does not have switching time, does not affect reception and the transmission of another bus data.
Description of drawings
Fig. 1 is the hot redundant CAN bus system schematic of the single CAN controller of the embodiment of the invention;
Fig. 2 is the system schematic of each CAN node circuit among Fig. 1;
Fig. 3 is the detailed system schematic diagram of Fig. 2;
Fig. 4 is the circuit theory diagrams of isolation Transmit-Receive Unit among Fig. 2;
Fig. 5 is CAN controller data processing flow chart among Fig. 2.
Reference numeral:
Microprocessor 1, fault processing unit 2, CAN controller 3 receives arbitration selected cell 4, the first univibrator 41, the second but hear multivibrator 42, rest-set flip-flop 43, the first Sheffer stroke gates 44, the second Sheffer stroke gate 45, the first phase inverters 46, the second phase inverters 47, or door 48, the first isolation Transmit-Receive Units 5, the first isolating devices 51, the one CAN transceiver 52, the second isolation Transmit-Receive Units 6, the second isolating devices 61, the 2nd CAN transceiver 62, the first buses 10, the second buses 20.
Embodiment
Below in conjunction with drawings and Examples the present invention is described in further detail.
As shown in Figure 1, the hot redundant CAN bus of the single CAN controller of the present invention system comprises two buses and a plurality of CAN node circuit, and each CAN node circuit connects two buses simultaneously, for convenient narration, bus is designated as the first bus 10 and the second bus 20.
As shown in Figure 2, be the system schematic of each CAN node circuit, it comprise a microprocessor 1, fault processing unit 2, CAN controller 3, one receive arbitration selected cell 4 and one first isolation Transmit-Receive Unit 5 and one second isolation Transmit-Receive Unit 6.Described first the isolation Transmit-Receive Unit 5 be connected the isolation Transmit-Receive Unit 6 connect respectively a bus, in the present embodiment, the first isolation Transmit-Receive Unit 5 connects the first bus 10, the second isolation Transmit-Receive Unit 6 connects the second bus 20, the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6 jointly are connected to and receive arbitration selected cell 4, receive arbitration selected cell 4 and connect CAN controller 3, CAN controller 3 peripheral hardwares be connected to microprocessor 1 or in be placed in microprocessor 1, connect respectively simultaneously the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6, microprocessor 1 also connects fault processing unit 2, and fault processing unit 2 connects respectively to receive arbitrates selected cell 4, the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6.The first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6 will be sent to by the data that bus receives and receive arbitration selected cell 4, receive arbitration selected cell 4 data are sent to CAN controller 3, CAN controller 3 imports data into microprocessor 1, fault processing unit 2 receives from the data that receive arbitration selected cell 4 and microprocessor 1, and transmission enables control signal to the first isolation Transmit-Receive Unit 5, the second isolation Transmit-Receive Unit 6 respectively.Wherein, fault processing unit 2 is arranged in microprocessor 1, and 4 control signals are arranged, and comprises that two windings receipts enable control signal and two groups of transmissions enable control signal, in order to realization two groups of bus reiving/transmitting states is controlled, and can realize the processing to bus failure.
As shown in Figure 3, described reception arbitration selected cell 4 comprises the first univibrator 41 and the second univibrator 42, the two connects respectively the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6, and receive its data, and rest-set flip-flop 43 of the two common connection, rest-set flip-flop 43 connects respectively the first Sheffer stroke gate 44 and the second Sheffer stroke gate 45, the first univibrator 41 data communication devices are crossed rest-set flip-flop 43 and are sent into the second Sheffer stroke gate 45, the second univibrators 42 data communication devices and cross rest-set flip-flop 43 and send into the first Sheffer stroke gate 44.The first Sheffer stroke gate 44 is connected to first phase inverter 46; The second Sheffer stroke gate 45 is connected to the second phase inverter 47, the first phase inverters 46 and is connected that phase inverter 47 is common to connect one or 48.Described or door 48 connects CAN controllers 3, the first Sheffer stroke gates 44 and is connected Sheffer stroke gate 45 and all connects failure processor 2, and receives the control signal that enables from failure processor 2.Described the first isolation Transmit-Receive Unit 5 comprises the first continuous isolating device 51 and a CAN transceiver 52, the second isolation Transmit-Receive Unit 6 comprises the second continuous isolating device 61 and the 2nd CAN transceiver 62, a described CAN transceiver 51 connects the first bus 10, the two CAN transceivers 52 and connects bus 8.Described the first isolating device 51 connects respectively the first univibrator 41, the first Sheffer stroke gate 44, and data are sent in the first univibrator 41 and the first Sheffer stroke gate 44; The first isolating device 51 also connects respectively CAN controller 3 and fault processing unit 2, and receives the data from CAN controller 3 and fault processing unit 2.Described the second isolating device 61 connects respectively the second univibrator 42, the second Sheffer stroke gate 45, and data are sent into the second univibrator 42 and the second Sheffer stroke gate 45; The second isolating device 61 also connects respectively CAN controller 3 and fault processing unit 2, and receives the data from CAN controller 3 and fault processing unit 2.
As shown in Figure 3 and Figure 4, the first isolation Transmit-Receive Unit 5 is identical with the second isolation Transmit-Receive Unit 6 in the present embodiment, it all uses model to be the isolating device of ADuM5401, and model is the CAN transceiver of TJA1050CAN, realizes bus and the complete electrical isolation of microprocessor internal circuit with this.Take the first isolation Transmit-Receive Unit 5 as example, wherein isolating device 51 is returned CAN transceiver 52 isolation 5V power supply is provided when the isolation receiving and transmitting signal is provided.Isolating device 51 pin ones connect the 5V power supply identical with the CAN controller, pin two, 5,8 ground connection, and pin 7 is unsettled, and pin one 6 provides the 5V power supply of isolation to 52 power supplies of CAN transceiver, and pin one 0 connects insulating power supply, and pin 9 is the ground of isolation, pin one 5 also connects isolator.The signal that 4 groups of isolation are each side arranged of isolating device 51, wherein pin 3 connects the transmitted signal of CAN controller 52, and pin 4 receives and sends and enables control signal, and pin 6 connects the reception signal of CAN controller 52.The pin 3 of CAN transceiver 52 connects the pin one 6 of isolating device 51, and the pin two of CAN controller 52 connects isolating device 51 pins 9.The pin one of CAN controller 52 connects the pin one 4 of isolating device 51, and the pin 4 of CAN controller 52 connects the pin one 1 of isolating device 51, and the pin 8 of CAN controller 52 connects the pin one 3 of isolating device 51.The pin 6 of CAN controller 52 and pin 7 connect two differential signal lines of bus.Like this, CAN controller 52 is not only kept apart fully with the CAN controller circuitry, and its required power supply also provides by isolating device 51, does not need additional power supply.The pin 8 of CAN controller 52 is used for sending control, when this pin connects high level, the transmission of CAN controller 52 is under an embargo, can not send data to bus, when this bus occurs sending fault, can be by pin 4 input high levels of isolating device 51 be forbidden that this transceiver sends data to bus.
As shown in Figure 3, the implementation method of the hot redundant CAN bus of the single CAN controller of the present invention system comprises:
The data receiver face, microprocessor 1 sends data to the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6 simultaneously by controller 3, and send data to two buses simultaneously, for mistake is positioned, when sending data simultaneously to two buses, artificially receiving cable is shielded selection.Microprocessor 1 is by selecting the control signal that enables of the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6.
Specific implementation is: before sending data, the isolation Transmit-Receive Unit shields first the return signal of the first bus 10, gives the first Sheffer stroke gate 44 input low levels, so that the output of phase inverter 46 is fixed as low level.Like this, or door 48 output just depends on the rreturn value of the second bus 20, and the data conductively-closed that the first bus 10 is returned only has the return data of the second bus to send to CAN controller 3.If after data are sent completely, 20 inerrancies of the second bus produce, and just select shielding the second bus 20 when then send next time, and the reception enable signal of namely giving the second Sheffer stroke gate 45 is for adding low level, check the whether wrong generation in process of transmitting of the first bus 10.So later every secondary data is sent circulation shielding, guarantee in time to find bus error and switch.If produce mistake in the process of transmitting, then the mark respective bus is wrong, and next time is when sending data, and the transmission by fault processing unit 2 enables control signal, closes the sending function of CAN transceiver on the corresponding bus.Be noted that: send in case finish data, reception that will two buses of immediate recovery enables control signal, in order to can receive simultaneously the data of two buses.
As shown in Figure 5, concrete CAN controller data is processed and is comprised the steps:
S1. node initializing arranges various data and interrupts Processing Interface;
S2. judged whether that data send, if enter S3; If not, return and rejudge;
S3. judge whether the bus that sent data last time is wrong, if enter S4; If not, enter S5;
S4. forbid reception and the transmission of this bus, select another bus to send data, enter S6;
S5. forbid the reception of this bus, select another bus to send data, enter S6;
S6. judge whether wrong generation, if enter S7; If not, enter S8;
S7. marked erroneous bus is moved into the sending and receiving of this bus, enters S2;
S8. allowing to be under an embargo receives the receiving function of bus, enters S2.
As shown in Figures 2 and 3, the data receiver aspect, according to the characteristics of CAN bus, data receiver and data send and can not occur simultaneously, therefore send as long as no data, and the reception that fault processing unit 2 just must be opened two passages simultaneously enables.Fault processing unit 2 enables control signal to two receptions for the first isolation Transmit-Receive Unit 5 and the second isolation Transmit-Receive Unit 6 and all sets high level, allows external data to arbitrate selected cell 4 by reception and carries out the selection of receive data.The first univibrator 41 and the second univibrator 42 all adopt 74HC123 in the present embodiment, rest-set flip-flop 43 adopts NAND gate circuit 74HC132 to build, the first Sheffer stroke gate 44 and the second Sheffer stroke gate 45 all adopt 74HC10, the first phase inverter 46 and the second phase inverter 47 all adopt 74HC132 to build, or door 48 adopts 74HC32, each part mentioned above has formed one and has received arbitration selected cell 4, its effect is: receive respectively two bus specified number certificates by the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, and the order that arrives according to the priority of data, the bus that arrives first data obtains right of priority, or the Output rusults of door 48 equals to arrive first the bus data of data, import the data that arrive first into microprocessor, then arrive data or countless bus data conductively-closed according to arriving.
Such as Fig. 2, Fig. 3 and shown in Figure 4, by a specific embodiment principle of the present invention is described.According to the agreement regulation of CAN bus, it is recessive that bus is when idle, and reaction is high level at the reception pin of a CAN transceiver 52 and the 2nd CAN transceiver 62.When on the CAN bus data transmission being arranged, first of transmission is start of frame bits, and this position is dominant, and reaction is low levels at the reception pin of a CAN transceiver 52 and the 2nd CAN transceiver 62.Because the physical characteristicss such as the device property of two CAN buses, cable length can be not just the same, the data that cause a CAN transceiver 52 and the 2nd CAN transceiver 62 to be received can not arrive definitely simultaneously, must have successively.Suppose that a CAN transceiver 52 receives first data, then the input of the first univibrator 41 produces a negative edge, and it will export the high level of a period of time.Because 12 at the maximum intervals of CAN bus data just have the level upset, bus data can constantly trigger univibrator output high level, and therefore, the time constant of the first univibrator 41 gets final product about 0.1ms.Simultaneously, 42 inputs of the second univibrator remain high level, and its output is still low level.So the output of rest-set flip-flop 43 is just had any different, its output low level is given the second Sheffer stroke gate 45, and the high level of output is given the first Sheffer stroke gate 44.The output of the first Sheffer stroke gate 44 is exactly the anti-phase of the first bus 10 input values, and by behind the first phase inverter 46, its value has just become the bus input value again.Meanwhile, 1 tunnel of the second Sheffer stroke gate 45 is input as low level, and then its input is just irrelevant with the input value of the second bus 20, but fixing high level, behind the second phase inverter 47, its value is fixed as low level.Like this, at last by or door 48 and the data that enter CAN controller 3, be exactly the data of receiving first the first bus 10 of data, the data of the second bus 20 of then receiving data are with regard to conductively-closed.After the data of the 2nd CAN transceiver 62 arrived, the input of the first Sheffer stroke gate 44 also was high level, and according to the characteristics of rest-set flip-flop, it is constant that original state is kept in the output of rest-set flip-flop 43.Countless according to when transmitting-receiving when bus, the output of the first univibrator 41 and the second univibrator 42 can return to low level.When having new data to arrive, the data of the first bus 10 and the second bus 20 re-start arbitration and select, and principle as mentioned above.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, under the prerequisite that does not break away from the principle of the invention, can also make some improvements and modifications, and these improvements and modifications also are considered as within protection scope of the present invention.The content that is not described in detail in this instructions belongs to the known prior art of this area professional and technical personnel.

Claims (10)

1. the hot redundant CAN bus of single CAN controller system, comprise two buses and a plurality of CAN node circuit, each CAN node circuit connects two buses simultaneously, it is characterized in that: each CAN node circuit comprises microprocessor, fault processing unit, the CAN controller, receive the arbitration selected cell, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, first the isolation Transmit-Receive Unit be connected the isolation Transmit-Receive Unit connect respectively a bus, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit jointly are connected to and receive the arbitration selected cell, receive the arbitration selected cell and connect the CAN controller, CAN controller peripheral hardware be connected to microprocessor or in be placed in microprocessor, connect respectively simultaneously the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, microprocessor also connects fault processing unit, and fault processing unit connects respectively to receive arbitrates selected cell, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit; The first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit will be sent to by the data that bus receives and receive the arbitration selected cell, receive the arbitration selected cell data are sent to the CAN controller, the CAN controller imports data into microprocessor, fault processing unit receives from the data that receive arbitration selected cell and microprocessor, and transmission enables control signal to the first isolation Transmit-Receive Unit, the second isolation Transmit-Receive Unit respectively.
2. the hot redundant CAN bus of single CAN controller as claimed in claim 1 system, it is characterized in that: described reception arbitration selected cell comprises the first univibrator and the second univibrator, the two connects respectively the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, and receive its data, and rest-set flip-flop of the two common connection, rest-set flip-flop connects respectively the first Sheffer stroke gate and the second Sheffer stroke gate, and the first Sheffer stroke gate is connected to first phase inverter; The second Sheffer stroke gate is connected to second phase inverter, the first phase inverter be connected phase inverter common connect one or.
3. the hot redundant CAN bus of single CAN controller as claimed in claim 2 system is characterized in that: described or door connects the CAN controller, the first Sheffer stroke gate be connected Sheffer stroke gate and all connect failure processor, and receive the control signal that enables from failure processor.
4. the hot redundant CAN bus of single CAN controller as claimed in claim 3 system, it is characterized in that: described the first univibrator data communication device is crossed rest-set flip-flop and is sent into the second Sheffer stroke gate, and the second univibrator data communication device is crossed rest-set flip-flop and sent into the first Sheffer stroke gate.
5. the hot redundant CAN bus of single CAN controller as claimed in claim 3 system, it is characterized in that: described the first isolation Transmit-Receive Unit comprises interconnective the first isolating device and a CAN transceiver, the second isolation Transmit-Receive Unit comprises interconnective the second isolating device and the 2nd CAN transceiver, and a described CAN transceiver and the 2nd CAN the transceiver respectively bus corresponding with it connect.
6. the hot redundant CAN bus of single CAN controller as claimed in claim 5 system, it is characterized in that: described the first isolating device connects respectively the first univibrator, the first Sheffer stroke gate, and data are sent into the first univibrator and the first Sheffer stroke gate; The first isolating device also connects respectively CAN controller and fault processing unit, and receives the data from CAN controller and fault processing unit.
7. the hot redundant CAN bus of single CAN controller as claimed in claim 5 system, it is characterized in that: described the second isolating device connects respectively the second univibrator, the second Sheffer stroke gate, and data are sent into the second univibrator and the second Sheffer stroke gate; The second isolating device also connects respectively CAN controller and fault processing unit, and receives the data from CAN controller and fault processing unit.
8. the hot redundant CAN bus of single CAN controller as claimed in claim 1 system is characterized in that: described the first isolation Transmit-Receive Unit is identical with the second isolation Transmit-Receive Unit.
9. implementation method based on the hot redundant CAN bus of single CAN controller system in the claim 1 is characterized in that:
The data receiver face, microprocessor sends data to the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit simultaneously by controller, the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit are sent to corresponding bus simultaneously with data, simultaneously shielding is the return signal of a bus wherein, if data are sent completely rear inerrancy and produce, then when sending, lower secondary data shields in the manner described above the return signal of another bus, later every secondary data sends circulation shielding, and data send the data receiver of rear two buses of immediate recovery;
The data receiver aspect, receive the arbitration selected cell and receive respectively two bus specified number certificates by the first isolation Transmit-Receive Unit and the second isolation Transmit-Receive Unit, and according to the order that the priority of data arrives, import the data that arrive first into microprocessor, the data conductively-closed that then receives.
10. the implementation method of the hot redundant CAN bus of single CAN controller as claimed in claim 9 system, it is characterized in that: described data receiver face, if data are sent completely rear wrong generation, then the corresponding bus of mark is wrong, when lower secondary data sends, by the fault processing unit that microprocessor connects, the isolation Transmit-Receive Unit that links to each other with this bus is closed in control.
CN201210365609.XA 2012-09-27 2012-09-27 Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof Expired - Fee Related CN102880143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210365609.XA CN102880143B (en) 2012-09-27 2012-09-27 Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210365609.XA CN102880143B (en) 2012-09-27 2012-09-27 Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof

Publications (2)

Publication Number Publication Date
CN102880143A true CN102880143A (en) 2013-01-16
CN102880143B CN102880143B (en) 2014-10-22

Family

ID=47481514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210365609.XA Expired - Fee Related CN102880143B (en) 2012-09-27 2012-09-27 Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof

Country Status (1)

Country Link
CN (1) CN102880143B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104816635A (en) * 2015-04-20 2015-08-05 上海电机学院 Automobile dashboard and implementation method thereof
CN105260331A (en) * 2015-10-09 2016-01-20 天津国芯科技有限公司 Dual-bus memory controller
CN106227124A (en) * 2016-10-09 2016-12-14 浙江中控技术股份有限公司 A kind of control system
CN106292385A (en) * 2015-05-13 2017-01-04 北京电子工程总体研究所 The hot redundancy control system of a kind of dual CAN bus and method
CN106506245A (en) * 2016-12-28 2017-03-15 武汉智能控制工业技术研究院有限公司 A kind of mobile unit failure reconnects bus interface module
CN107395476A (en) * 2017-06-30 2017-11-24 珠海格力电器股份有限公司 Control area net(CAN) network CAN chips
CN108075954A (en) * 2016-11-16 2018-05-25 迈来芯科技有限公司 The transceiver circuit for controller LAN with improved security
CN109062184A (en) * 2018-08-10 2018-12-21 中国船舶重工集团公司第七〇九研究所 Two-shipper emergency and rescue equipment, failure switching method and rescue system
CN109639546A (en) * 2018-12-28 2019-04-16 浙江中控研究院有限公司 A kind of CAN bus based redundant system
CN110768880A (en) * 2019-10-30 2020-02-07 中船动力研究院有限公司 Ethernet network node, fault processing method, computer device and storage medium
CN112134773A (en) * 2020-09-17 2020-12-25 通号城市轨道交通技术有限公司 MVB bus redundancy communication method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1987004828A1 (en) * 1986-01-29 1987-08-13 Digital Equipment Corporation Apparatus and method responding to an aborted signal exchange between subsystems in a data processing system
US5551010A (en) * 1991-11-19 1996-08-27 Fujitsu Limited Arithmetic operation unit and memory accessing device for accessing primary and secondary cache memories independently of a CPU
JP2002041449A (en) * 2000-07-21 2002-02-08 Samsung Electronics Co Ltd Bus system and method for controlling execution sequence of the bus system
CN1432929A (en) * 2003-02-14 2003-07-30 威盛电子股份有限公司 Arbitration structure and method for responding interruption service request in multiple microprocessor system
CN101814012A (en) * 2010-05-20 2010-08-25 锐迪科科技有限公司 SDRAM (Synchronous Dynamic Random Access Memory) memory structure and data reading and writing method
CN102055633A (en) * 2010-09-29 2011-05-11 航天东方红卫星有限公司 Satellite-borne double-CAN (Controller Area Network) bus node failure self-restoration system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1987004828A1 (en) * 1986-01-29 1987-08-13 Digital Equipment Corporation Apparatus and method responding to an aborted signal exchange between subsystems in a data processing system
US5551010A (en) * 1991-11-19 1996-08-27 Fujitsu Limited Arithmetic operation unit and memory accessing device for accessing primary and secondary cache memories independently of a CPU
JP2002041449A (en) * 2000-07-21 2002-02-08 Samsung Electronics Co Ltd Bus system and method for controlling execution sequence of the bus system
CN1432929A (en) * 2003-02-14 2003-07-30 威盛电子股份有限公司 Arbitration structure and method for responding interruption service request in multiple microprocessor system
CN101814012A (en) * 2010-05-20 2010-08-25 锐迪科科技有限公司 SDRAM (Synchronous Dynamic Random Access Memory) memory structure and data reading and writing method
CN102055633A (en) * 2010-09-29 2011-05-11 航天东方红卫星有限公司 Satellite-borne double-CAN (Controller Area Network) bus node failure self-restoration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曹俊敏等: "单个CAN控制器的双总线冗余网络实现", 《微处理机》, vol. 28, no. 4, 31 August 2007 (2007-08-31) *
汪孟寅等: "基于STM32F105微控制器的双CAN冗余设计", 《杭州电子科技大学学报》, vol. 31, no. 2, 30 April 2011 (2011-04-30) *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104816635A (en) * 2015-04-20 2015-08-05 上海电机学院 Automobile dashboard and implementation method thereof
CN106292385A (en) * 2015-05-13 2017-01-04 北京电子工程总体研究所 The hot redundancy control system of a kind of dual CAN bus and method
CN105260331A (en) * 2015-10-09 2016-01-20 天津国芯科技有限公司 Dual-bus memory controller
CN105260331B (en) * 2015-10-09 2018-08-28 天津国芯科技有限公司 A kind of dual bus Memory Controller Hub
CN106227124A (en) * 2016-10-09 2016-12-14 浙江中控技术股份有限公司 A kind of control system
CN106227124B (en) * 2016-10-09 2019-01-29 浙江中控技术股份有限公司 A kind of control system
CN108075954B (en) * 2016-11-16 2021-09-03 迈来芯科技有限公司 Transceiver circuit for controller area network with improved security
CN108075954A (en) * 2016-11-16 2018-05-25 迈来芯科技有限公司 The transceiver circuit for controller LAN with improved security
CN106506245A (en) * 2016-12-28 2017-03-15 武汉智能控制工业技术研究院有限公司 A kind of mobile unit failure reconnects bus interface module
CN107395476A (en) * 2017-06-30 2017-11-24 珠海格力电器股份有限公司 Control area net(CAN) network CAN chips
CN109062184A (en) * 2018-08-10 2018-12-21 中国船舶重工集团公司第七〇九研究所 Two-shipper emergency and rescue equipment, failure switching method and rescue system
CN109062184B (en) * 2018-08-10 2021-05-14 中国船舶重工集团公司第七一九研究所 Double-machine emergency rescue equipment, fault switching method and rescue system
CN109639546B (en) * 2018-12-28 2021-07-30 浙江中控研究院有限公司 Redundancy system based on CAN bus
CN109639546A (en) * 2018-12-28 2019-04-16 浙江中控研究院有限公司 A kind of CAN bus based redundant system
CN110768880A (en) * 2019-10-30 2020-02-07 中船动力研究院有限公司 Ethernet network node, fault processing method, computer device and storage medium
CN112134773A (en) * 2020-09-17 2020-12-25 通号城市轨道交通技术有限公司 MVB bus redundancy communication method and device

Also Published As

Publication number Publication date
CN102880143B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN102880143B (en) Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof
CN100496048C (en) Multi-host communication system
CN102857397B (en) The how main asynchronous duplex differential bus of one and the means of communication
CN101296065B (en) Method and system for improving reliability of redundancy main station
CN102724092A (en) Profibus-DP communication protocol redundancy master station
WO2019196483A1 (en) Air conditioning system and communication method between units in air conditioning system
CN202870586U (en) Single CAN controller hot-redundancy CAN bus system
CN105652726A (en) Robot safety control apparatus
CN107453913A (en) Possesses the gateway redundancy method of high-speed communication between processor
CN104301191A (en) Bus system
CN102353118B (en) Control method for judging master-slave relation of double wire controllers of air conditioner
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
CN104901857A (en) Bus analyzer
CN105922261B (en) A kind of robot controller and its control method
CN115442178B (en) Multi-axis servo bus control circuit and multi-axis servo system
CN105743927B (en) A kind of CANopen and DP protocol data conversion method
CN104135411A (en) Device and method of implementing multi-node communication based on RS232 interface
CN102868583A (en) FlexRay bus joint with fault diagnosis function
CN109802877A (en) A kind of CAN bus based Communication System Design
CN107347003A (en) The method and apparatus and wind power generating set of automatic switchover communication line
CN2749167Y (en) Terminal of power load monitoring and management system using controller LAN
CN113253652A (en) Unit communication control device, method and unit
CN106304241A (en) A kind of data transmission method, transponder and gateway
CN103135483A (en) Protocol conversion module and intelligent circuit breaker of Profibus and Modbus
US10991235B2 (en) Fire-prevention control unit

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141022

Termination date: 20210927

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