CN115883617A - Communication take-over circuit and method for controller, system and electric vehicle - Google Patents

Communication take-over circuit and method for controller, system and electric vehicle Download PDF

Info

Publication number
CN115883617A
CN115883617A CN202211465336.6A CN202211465336A CN115883617A CN 115883617 A CN115883617 A CN 115883617A CN 202211465336 A CN202211465336 A CN 202211465336A CN 115883617 A CN115883617 A CN 115883617A
Authority
CN
China
Prior art keywords
control unit
signal converter
signal
communication
controller
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.)
Pending
Application number
CN202211465336.6A
Other languages
Chinese (zh)
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.)
Chery New Energy Automobile Co Ltd
Original Assignee
Chery New Energy Automobile 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 Chery New Energy Automobile Co Ltd filed Critical Chery New Energy Automobile Co Ltd
Priority to CN202211465336.6A priority Critical patent/CN115883617A/en
Publication of CN115883617A publication Critical patent/CN115883617A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a communication take-over circuit, a communication take-over method, a communication take-over controller, a communication take-over system and an electric vehicle, and belongs to the technical field of communication control for electric vehicle controllers. The circuit comprises a first micro control unit, a second micro control unit, a control circuit and a communication transceiver; the control circuit includes at least: the GPIO control pin of the second micro control unit is connected with the TX port of the first micro control unit through a level control circuit; the invention solves the problem that the bus communication is failed along with the failure of the main MCU, meets the safety requirement of the electric vehicle, does not add an additional communication transceiver chip and an additional circuit, and saves the cost.

Description

Communication take-over circuit and method for controller, system and electric vehicle
Technical Field
The invention relates to the technical field of communication control for an electric vehicle controller, in particular to a communication pipe connecting circuit, a communication pipe connecting method, a communication pipe connecting system, a communication pipe connecting controller, a communication pipe connecting system and an electric vehicle.
Background
The statements in this section merely provide background information related to the present disclosure and may not constitute prior art.
With the development requirements of safety, intelligent driving, intelligent cockpit and energy conservation and environmental protection of electric vehicles, a plurality of new electronic control systems for automobiles are produced, a large amount of data needs to be communicated among the controllers, and the communication modes mainly include LIN, CAN, CANFD, flexRay and the like.
The inventor finds that the communication mode is basically formed by an MCU (Microcontroller Unit) and a corresponding communication transceiver chip, and once the MCU has a fault, such as a runaway, a hardware fault, or the like, message information sent by the controller to the communication bus will be in an uncontrollable state, which affects the signal processing logic of other controllers on the bus to the faulty controller, and may affect the driving safety of the electric vehicle in a serious case.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a communication connection pipe circuit, a communication connection pipe method, a communication connection pipe controller, a communication connection pipe system and an electric vehicle for a controller, solves the problem that bus communication fails when a main MCU fails, meets the safety requirement of the electric vehicle, does not have an additional communication transceiver chip and an additional circuit, and saves cost.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a communication pipe-taking circuit for a controller.
A communication takeover circuit for a controller, comprising:
the device comprises a first micro control unit, a second micro control unit, a control circuit and a communication transceiver;
the control circuit includes at least: a first signal converter, a second signal converter, a third signal converter and a fourth signal converter;
the transmitting port of the first micro control unit is connected with the transmitting port of the communication transceiver through a first signal converter, the transmitting port of the second micro control unit is connected with the transmitting port of the communication transceiver through a second signal converter, and the output end of the first signal converter and the output end of the second signal converter are connected with the power supply through a first resistor after being converged;
a receiving port of the communication transceiver is respectively connected with an input end of a third signal converter and an input end of a fourth signal converter, an output end of the third signal converter is connected with a receiving port of the first micro control unit, and an output end of the fourth signal converter is connected with a receiving port of the second micro control unit;
and a control pin of the second micro control unit is connected with a sending port of the first micro control unit through a level control circuit.
As an optional implementation manner, the level control circuit includes: the device comprises a PMOS tube, an NMOS tube, a second resistor and a third resistor;
the grid electrode of the PMOS tube is connected with the drain electrode of the NMOS tube, the source electrode of the PMOS tube is connected with the power supply, and the source electrode of the PMOS tube is connected with the drain electrode of the NMOS tube through a second resistor;
the source electrode of the NMOS tube is grounded, and the grid electrode of the NMOS tube is connected with the control pin of the first micro-control unit through a third resistor.
As an optional implementation manner, an output end of the fourth signal converter is connected to the power supply through a fourth resistor, and an output end of the third signal converter is connected to the power supply through a fifth resistor.
As an optional implementation manner, the power supplies are all +5V.
As an optional implementation manner, the value range of the first resistor is: greater than or equal to 0.5K Ω and less than or equal to 10K Ω.
As an optional implementation manner, the first signal converter, the second signal converter, the third signal converter, and the fourth signal converter have the same structure, and each of the first signal converter, the second signal converter, the third signal converter, and the fourth signal converter includes a not gate and an NMOS transistor, an input end of the not gate is used as an input end of the signal converter, an output end of the not gate is connected to a gate of the NMOS transistor, a source of the NMOS transistor is grounded, and a drain of the NMOS transistor is used as an output end of the signal converter.
The invention provides a communication takeover method for a controller.
A method for taking over communication for a controller, which utilizes a communication take-over circuit for a controller according to a first aspect of the present invention, includes the following steps:
when the second micro control unit detects that the first micro control unit works abnormally, a high level signal is output through a control pin of the second micro control unit, so that the level control circuit outputs the high level signal to a sending port of the first micro control unit, and the output of the first signal converter is in a high impedance state;
the output serial port signal of the second micro control unit is converted from a continuous high level state to a low level state, and is normally communicated with the communication transceiver through the second signal converter.
As an optional implementation manner, the second micro control unit monitors the operation condition of the first micro control unit in real time, and when it is monitored that the first micro control unit operates normally, an output serial port pin of the second micro control unit continuously outputs a high level;
the output of the second signal converter is in a high-impedance state, the state does not affect the output signal waveform of the first signal conversion, the sending port of the first micro control unit normally sends a signal, and when the sending port of the first micro control unit is in a low level, the first signal converter outputs a low level signal;
when the sending port of the first micro control unit is at a high level, the output end of the first signal converter and the output end of the second signal converter are pulled up to the corresponding voltage of the power supply through the first resistor, and the output end of the first signal converter is at a high level.
As an optional implementation manner, when the first micro control unit normally communicates with the communication transceiver, the communication transceiver first sends the communication signal to the third signal converter and the fourth signal converter through the sending port;
the signal sent by the sending port of the communication transceiver passes through the third signal converter to the receiving port of the first micro control unit and passes through the fourth signal converter to the receiving port of the second micro control unit, and at the moment, the first micro control unit and the second micro control unit both normally receive the signal of the receiving port of the communication transceiver.
As an optional implementation manner, when the level control circuit includes a PMOS transistor, an NMOS transistor, a second resistor, and a third resistor;
when the second micro control unit detects that the first micro control unit works abnormally, a high level signal is output through a control pin of the second micro control unit, a grid electrode of the NMOS tube is in a high level through a third resistor, when the grid electrode of the NMOS tube is in the high level, a source electrode of the NMOS tube is grounded, grid voltage of the NMOS tube is higher than that of the source electrode, a drain electrode of the NMOS tube is conducted with the ground, and drain voltage of the NMOS tube is in a low level;
the drain electrode of the NMOS tube is connected with the gate electrode of the PMOS tube, the gate voltage of the PMOS tube is also low level, the source electrode of the PMOS tube is connected with the high level of the power supply, the gate voltage of the PMOS tube is lower than the source voltage, the source electrode and the drain electrode of the PMOS tube are conducted, the sending port of the first micro-control unit is conducted with the power supply, and the sending port of the first micro-control unit is high level;
when the first micro control unit normally communicates, the control pin of the second micro control unit continuously outputs low level, the grid voltage and the source voltage of the NMOS tube are the same, the NMOS tube is in a closed state, the grid voltage and the source voltage of the PMOS tube are the same through the second resistor, the PMOS tube is continuously in a disconnected state, the PMOS tube does not affect the signal of the sending port of the first micro control unit, and when the NMOS tube is closed, the grid voltage and the source voltage of the PMOS tube are kept the same through the second resistor, so that the PMOS tube is turned off.
A third aspect of the present invention provides a controller, which includes the communication takeover circuit for the controller according to the first aspect of the present invention.
A fourth aspect of the invention provides a control system comprising a controller according to the third aspect of the invention and at least one external controller communicatively connected to the controller.
In a fifth aspect, the present invention provides a vehicle, comprising the communication pipe connection circuit for the controller according to the first aspect of the present invention; alternatively, a controller according to the third aspect of the invention; alternatively, a control system according to the fourth aspect of the invention is included.
Compared with the prior art, the invention has the beneficial effects that:
1. the communication take-over circuit, the method, the controller, the system and the electric vehicle for the controller solve the problem that bus communication is failed when a main MCU is failed, meet the safety requirement of the electric vehicle, and save the cost because no additional communication transceiver chip and an auxiliary circuit are added.
2. According to the communication take-over circuit, the method, the controller and the system for the controller and the electric vehicle, the TX pin of the backup MCU (namely the second micro control unit) continuously outputs high level, the TX signal communication between the main MCU (namely the first micro control unit) and the communication transceiver is not influenced, the TX signal level and logic are not changed, the main MCU (namely the first micro control unit) can normally send the TX signal to the TX pin of the communication transceiver, and the mutual influence between the main MCU and the backup MCU is avoided.
3. According to the communication take-over circuit, the method, the controller, the system and the electric vehicle for the controller, the RX pins of the main MCU (namely the first micro control unit) and the RX pins of the backup MCU (namely the second micro control unit) are isolated from each other by arranging the third signal converter and utilizing the unidirectionality of the signal converter, so that the RX pins are not influenced mutually, and meanwhile, a time delay Tdelay is generated, so that the time delays of the RX and the TX are synchronous.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, are included to provide a further understanding of the invention, and are included to illustrate an exemplary embodiment of the invention and not to limit the invention.
Fig. 1 is a schematic connection diagram of a communication connection circuit according to embodiment 1 of the present invention.
Fig. 2 is a circuit connection diagram of a signal converter according to embodiment 1 of the present invention.
Fig. 3 is a schematic circuit connection diagram of a control system provided in embodiment 4 of the present invention.
Detailed Description
The invention is further described with reference to the following figures and examples.
It is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
The embodiments and features of the embodiments of the invention may be combined with each other without conflict.
Example 1:
as shown in fig. 1, embodiment 1 of the present invention provides a communication pipe connection circuit for a controller, including: the device comprises a main MCU, a backup MCU, a communication transceiver, a control circuit and a power supply.
When the controller normally operates, the main MCU is responsible for signal acquisition, logic control and communication functions of the controller; the backup MCU is also responsible for the signal acquisition function of the controller, simultaneously monitors the running condition of the main MCU, and is responsible for taking over the communication function of the main MCU under the abnormal condition of the main MCU;
the communication transceiver is responsible for converting a serial port signal (namely TX in figure 2) sent by the main MCU or the backup MCU into a communication signal required by the bus, such as a LIN or CAN signal; meanwhile, the communication transceiver converts a communication signal sent by the controller n into a serial port signal (namely RX in figure 2) and sends the serial port signal to the main MCU and the backup MCU;
the power supply module is responsible for supplying +5V power supply which is necessary for normal operation to all modules of the controller, namely +5V in the figure 2;
the main functions of the control circuit are as follows: (1) When the main MCU works normally, TX and RX signals between the main MCU and the communication transceiver are transmitted normally, and the signal level and the logic are kept consistent; (2) And when the main MCU is abnormal, the TX signal of the main MCU is forbidden to be sent, meanwhile, the TX signal of the backup MCU is transmitted to the communication transceiver, and the RX signal of the communication transceiver is transmitted to the backup MCU.
As shown in fig. 2, the control circuit in fig. 1 is detailed for the partial circuit composition inside the controller and related to the present invention.
The control circuit specifically includes: the signal conversion circuit comprises a signal conversion 1 (i.e., a first signal converter), a signal conversion 2 (i.e., a first signal converter), a signal conversion 3 (i.e., a first signal converter), a signal conversion 4 (i.e., a first signal converter), a resistor R1 (i.e., a first resistor), a resistor R2 (i.e., a second resistor), a resistor R3 (i.e., a third resistor), a resistor R4 (i.e., a fourth resistor), a resistor R5 (i.e., a fifth resistor), a PMOS transistor Q1, and an NMOS transistor Q2.
The TX output of the main MCU is connected to the input IN and the PMOS drain (D) of the signal conversion 1, the output OUT of the signal conversion 1 is connected to the TX of the communication transceiver and the first end of a resistor R1, and the second end of the resistor R1 is connected with a power supply +5V;
the output TX of the backup MCU is connected to the input IN of the signal converter 2, and the output OUT of the signal converter 2 is connected to the TX of the communication transceiver and the first terminal of the resistor R1.
The RX output of the communications transceiver is connected to the input IN of signal switch 3 and the input IN of signal switch 4, the output OUT of signal switch 3 is connected to the RX of the backup MCU and to a first terminal of resistor R5, and the output OUT of signal switch 4 is connected to the RX of the main MCU and to a first terminal of resistor R4.
The second end of the resistor R4 is connected to the +5V power supply, and the second end of the resistor R5 is connected to the +5V power supply.
A grid electrode (G) of the PMOS tube Q1 is connected to a drain electrode (D) of the NMOS tube Q2 and a first end of the resistor R2, and a source electrode (S) of the PMOS tube Q1 and a second end of the resistor R2 are both connected to a power supply +5V; and a source electrode (S) of the NMOS tube Q2 is connected with a ground GND of the controller, and a grid electrode (G) of the Q2 is connected with a GPIO control pin of the backup MCU.
As shown IN fig. 3, the internal circuits of the signal conversion 1, the signal conversion 2, the signal conversion 3 and the signal conversion 4 are completely identical, and the internal circuits mainly include a logic not gate and an NMOS, the input IN of the signal converter is connected to the input of the logic not gate, the output of the logic not gate is connected to the gate (G) of the NMOS transistor Q, the source (S) of the NMOS transistor Q is connected to the ground GND of the controller, the drain (D) of the NMOS transistor Q is connected to the output OUT of the signal converter, and since the NMOS transistor is an open-drain output, the logical relationship between the input IN and the output OUT of the signal converter is as follows:
IN H L
OUT z (high impedance state) L
Because the signal converter has an output state of Z (high impedance state), the TX outputs of the main MCU and the backup MCU can be connected in parallel by utilizing the characteristic to communicate with the communication transceiver, so that the functions of only transmitting one TX signal and forbidding the other TX signal are achieved, and mutual interference of the two TX signals is avoided.
Example 2:
an embodiment 2 of the present invention provides a communication takeover method for a controller, where using the communication takeover circuit for a controller described in embodiment 1 includes the following steps:
the backup MCU monitors the running condition of the main MCU in real time through SPI communication, when the normal running of the main MCU is monitored, a TX pin of the backup MCU continuously outputs a high level, an OUT of the signal conversion 2 is in a high impedance state, and the state does not influence the waveform of an OUT output signal of the signal conversion 1, namely, the TX pin of the backup MCU is pulled up to be combined with the signal conversion 2, so that the TX signal of the backup MCU is shielded;
the main MCU normally transmits a TX signal, and when the main MCU transmits the TX signal as a low-level signal, the signal conversion 1 outputs the low-level signal; when the main MCU sends a signal with TX being high level, the OUT output of the signal conversion 1 is pulled up to +5V through the resistor R1, so that the OUT output of the signal conversion 1 is a high level signal with +5V;
the pull-up resistor R1 is used for outputting a determined high-level signal to the OUT of the signal conversion 1 or 2 through the pull-up +5V level of the resistor R1 when the OUT of the signal conversion 1 or 2 is in a high-resistance state;
when the signal conversion 1 or 2 outputs OUT as a low level signal, the resistor R1 will not affect the low level signal and the rising and falling edges of the signal, and the resistor R1 should also play a role of current limiting to prevent the +5V from being directly connected to the output MOS of the signal conversion 1 or 2, so the resistance value selection range of R1 is 0.5K Ω ≤ R1 ≤ 10K Ω.
The signal relationship between the input and the output of signal conversion 1 at this time is therefore as follows:
IN H L
OUT H L
in summary, the TX pin of the backup MCU continuously outputs a high level, which does not affect the TX signal communication between the main MCU and the communication transceiver, and the TX signal level and logic are not changed, so that the main MCU can normally transmit the TX signal to the TX pin of the communication transceiver. There is a time delay Tdelay between input IN and output OUT due to the TX signal going through signal transition 1; because the signal converter is a pure hardware signal converter, the time delay Tdelay is very small, generally, tdelay is less than or equal to 10ns, and the signal transmission is not influenced.
IN summary, the signal converter has one-way, and the signal can only flow from the input IN to the output OUT; because TX and RX between the main MCU or the backup MCU and the communication transceiver are directional, the signal converter is very suitable for signal transmission.
When the main MCU normally communicates with the communication transceiver, the communication transceiver also sends a communication signal to the signal conversion 3 and the signal conversion 4 through the RX pin, the RX signal is transmitted to the RX pin of the main MCU through the signal conversion 3 and is transmitted to the RX pin of the backup MCU through the signal conversion 4, and at the moment, the main MCU and the backup MCU can normally receive the RX signal of the communication transceiver without mutual influence; the resistor R4 and the resistor R5 have the same function as the resistor R1, and are pull-up resistors at the output terminal of the signal converter OUT.
The main functions of increasing the signal conversion 3 are: (1) The RX pins of the main MCU and the backup MCU are isolated by utilizing the unidirectionality of the signal converter, so that the main MCU and the backup MCU are not influenced mutually; (2) A time delay Tdelay is generated to synchronize the time delays of RX and TX.
When the backup MCU detects that the main MCU works abnormally through the SPI, a high level signal is output through a GPIO pin of the backup MCU, a grid (G) of an NMOS tube Q2 is made to be a high level through a resistor R3, and the resistor R3 is used for current limiting and signal transmission;
when the grid (G) of the NMOS tube Q2 is in a high level, the source (S) is grounded GND, the voltage of the grid (G) is higher than that of the source (S), so that the drain (D) of the NMOS tube Q2 is conducted with the ground GND, and the voltage of the drain (D) of the NMOS tube Q2 is in a low level;
the drain electrode (D) of the Q2 is connected with the grid electrode (G) of the PMOS tube Q1, so that the grid electrode (G) voltage of the PMOS tube Q1 is also IN a low level, the source electrode (S) of the PMOS tube Q1 is connected with a +5V high level, the grid electrode (G) voltage of the Q1 is lower than the source electrode (S) voltage, the source electrode (S) and the drain electrode (D) of the PMOS tube Q1 are conducted, the TX pin of the main MCU is conducted with a +5V power supply, the TX pin of the main MCU is forced to be pulled high, the input IN of the TX signal conversion 1 of the main MCU is connected, so that the IN of the signal conversion 1 is IN a high level, and due to the characteristic of the signal conversion 1, when the input IN is IN a high level, the output is IN a high-resistance state;
similar to the TX function of the shielded backup MCU described above, when the main MCU is out of order, the TX function of the main MCU is shielded by pulling up the input IN of the signal conversion 1.
Simultaneously with the shielding of the TX function of the main MCU, the TX signal of the backup MCU is changed into a normal transmitting state from the previous continuous high level state, and is normally communicated with the communication transceiver through the signal conversion 2, the working principle is consistent with the communication principle of the TX signal of the main MCU and the communication transceiver, and the description is omitted;
the RX signal transmitted by the communication transceiver can be normally received by the RX pin of the backup MCU after being converted by the signal converter 3, which is consistent with the RX signal communication principle of the main MCU and is not described herein again; therefore, the communication between the main MCU and the communication transceiver can be shielded, the normal communication between the backup MCU and the communication transceiver can be realized, and the purpose that the backup MCU takes over the communication of the main MCU in an emergency situation is realized.
When the main MCU is in normal communication, the GPIO pin of the backup MCU connected with the resistor R3 continuously outputs low level, the grid (G) voltage and the source (S) voltage of the NMOS tube Q2 are the same, and the Q2 is in a closed state; at the moment, due to the existence of the pull-up resistor R2, the grid electrode (G) voltage and the source electrode (S) voltage of the PMOS tube are the same, the PMOS tube Q1 is continuously in a disconnected state, and the Q1 cannot influence a TX signal of the main MCU; pull-up resistor R2 functions to keep the gate (G) and source (S) voltages of Q1 the same when Q2 is off, thereby turning off Q1.
The exemplary communications transceivers described above are TX and RX two-wire communications, which may be multi-wire communications.
Example 3:
embodiment 3 of the present invention provides a controller, including the communication pipe connection circuit for the controller described in embodiment 1.
Example 4:
as shown in fig. 3, embodiment 4 of the present invention provides a control system, which includes the controller described in embodiment 3, where the controller communicates information with the controller 1, the controller 2 \ 8230and the controller n through communication buses, where the number of the communication buses may be a single bus (such as LIN communication) or a double bus (such as CAN communication).
Example 5:
embodiment 5 of the present invention provides a vehicle, including the communication pipe connection circuit for a controller described in embodiment 1 of the present invention; or, a controller as described in embodiment 3 of the present invention; or, the control system described in embodiment 4 of the present invention is included.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A communication pipe connecting circuit for a controller is characterized in that:
the method comprises the following steps:
the system comprises a first micro control unit, a second micro control unit, a control circuit and a communication transceiver;
the control circuit includes at least: a first signal converter, a second signal converter, a third signal converter and a fourth signal converter;
the sending port of the first micro control unit is connected with the sending port of the communication transceiver through a first signal converter, the sending port of the second micro control unit is connected with the sending port of the communication transceiver through a second signal converter, and the output end of the first signal converter and the output end of the second signal converter are connected with a power supply through a first resistor after being connected in a tandem way;
the receiving port of the communication transceiver is respectively connected with the input end of a third signal converter and the input end of a fourth signal converter, the output end of the third signal converter is connected with the receiving port of the first micro-control unit, and the output end of the fourth signal converter is connected with the receiving port of the second micro-control unit;
and a control pin of the second micro control unit is connected with a sending port of the first micro control unit through a level control circuit.
2. A communication take-over circuit for a controller as claimed in claim 1, wherein:
a level control circuit comprising: the device comprises a PMOS (P-channel metal oxide semiconductor) tube, an NMOS (N-channel metal oxide semiconductor) tube, a second resistor and a third resistor;
the grid electrode of the PMOS tube is connected with the drain electrode of the NMOS tube, the source electrode of the PMOS tube is connected with the power supply, and the source electrode of the PMOS tube is connected with the drain electrode of the NMOS tube through a second resistor;
the source electrode of the NMOS tube is grounded, and the grid electrode of the NMOS tube is connected with the control pin of the first micro-control unit through the third resistor.
3. The communication takeover circuit for the controller as claimed in any one of claims 1-2, wherein:
the output end of the fourth signal converter is connected with the power supply through a fourth resistor, and the output end of the third signal converter is connected with the power supply through a fifth resistor.
4. The communication takeover circuit for the controller as claimed in any one of claims 1-2, wherein:
the power supplies are all +5V.
5. A communication take-over circuit for a controller as claimed in claim 1, wherein:
the value range of the first resistor is as follows: greater than or equal to 0.5K Ω and less than or equal to 10K Ω.
6. A communication take-over circuit for a controller as claimed in claim 1, wherein:
the first signal converter, the second signal converter, the third signal converter and the fourth signal converter are identical in structure and respectively comprise a NOT gate and an NMOS (N-channel metal oxide semiconductor) tube, the input end of the NOT gate is used as the input end of the signal converter, the output end of the NOT gate is connected with the grid electrode of the NMOS tube, the source electrode of the NMOS tube is grounded, and the drain electrode of the NMOS tube is used as the output end of the signal converter.
7. A communication pipe connecting method for a controller is characterized by comprising the following steps:
a communication take-over circuit for use with a controller as claimed in any one of claims 1 to 6, comprising the steps of:
when the second micro control unit detects that the first micro control unit works abnormally, a high level signal is output through a control pin of the second micro control unit, so that the level control circuit outputs the high level signal to a sending port of the first micro control unit, and the output of the first signal converter is in a high impedance state;
the output serial port signal of the second micro control unit is changed from a continuous high level state to a low level state, and is normally communicated with the communication transceiver through the second signal converter.
8. A communication takeover method for a controller in accordance with claim 7 wherein:
the second micro control unit monitors the running condition of the first micro control unit in real time, and when the first micro control unit is monitored to run normally, an output serial port pin of the second micro control unit continuously outputs high level;
the output of the second signal converter is in a high-impedance state, the state does not affect the waveform of an output signal converted by the first signal, the sending port of the first micro-control unit sends a signal normally, and when the sending port of the first micro-control unit is in a low level, the first signal converter outputs a low level signal;
when the sending port of the first micro control unit is at a high level, the output end of the first signal converter is at a high level because the output ends of the first signal converter and the second signal converter are pulled up to the corresponding voltage of the power supply through the first resistor.
9. A communication takeover method for a controller in accordance with claim 7 wherein:
when the first micro control unit normally communicates with the communication transceiver, the communication transceiver firstly sends a communication signal to the third signal converter and the fourth signal converter through the sending port;
and a signal sent by a sending port of the communication transceiver passes through the third signal converter to a receiving port of the first micro control unit and passes through the fourth signal converter to a receiving port of the second micro control unit, and at the moment, the first micro control unit and the second micro control unit both normally receive the signal of the receiving port of the communication transceiver.
10. A communication takeover method for a controller according to claim 7, which comprises:
when the level control circuit comprises a PMOS tube, an NMOS tube, a second resistor and a third resistor;
when the second micro control unit detects that the first micro control unit works abnormally, a high level signal is output through a control pin of the second micro control unit, a grid electrode of the NMOS tube is at a high level through a third resistor, when the grid electrode of the NMOS tube is at the high level, a source electrode of the NMOS tube is grounded, grid voltage of the NMOS tube is higher than that of the source electrode, a drain electrode of the NMOS tube is conducted with the ground, and drain voltage of the NMOS tube is at a low level;
the drain electrode of the NMOS tube is connected with the gate electrode of the PMOS tube, the gate voltage of the PMOS tube is also low level, the source electrode of the PMOS tube is connected with the high level of the power supply, the gate voltage of the PMOS tube is lower than the source voltage, the source electrode and the drain electrode of the PMOS tube are conducted, the sending port of the first micro-control unit is conducted with the power supply, and the sending port of the first micro-control unit is high level;
when the first micro control unit normally communicates, the control pin of the second micro control unit continuously outputs low level, the grid voltage and the source voltage of the NMOS tube are the same, the NMOS tube is in a closed state, the grid voltage and the source voltage of the PMOS tube are the same through the second resistor, the PMOS tube is continuously in a disconnected state, the PMOS tube does not affect the signal of the sending port of the first micro control unit, and when the NMOS tube is closed, the grid voltage and the source voltage of the PMOS tube are kept the same through the second resistor, so that the PMOS tube is turned off.
11. A controller, characterized by:
comprising a communication take-over circuit for a controller according to any of claims 1-6.
12. A control system, characterized by:
comprising the controller of claim 11 and at least one external controller communicatively coupled to the controller.
13. A vehicle, characterized in that:
a communication take-over circuit for a controller comprising any one of claims 1 to 6; or, comprising the controller of claim 11; or, comprising a control system according to claim 12.
CN202211465336.6A 2022-11-22 2022-11-22 Communication take-over circuit and method for controller, system and electric vehicle Pending CN115883617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211465336.6A CN115883617A (en) 2022-11-22 2022-11-22 Communication take-over circuit and method for controller, system and electric vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211465336.6A CN115883617A (en) 2022-11-22 2022-11-22 Communication take-over circuit and method for controller, system and electric vehicle

Publications (1)

Publication Number Publication Date
CN115883617A true CN115883617A (en) 2023-03-31

Family

ID=85760479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211465336.6A Pending CN115883617A (en) 2022-11-22 2022-11-22 Communication take-over circuit and method for controller, system and electric vehicle

Country Status (1)

Country Link
CN (1) CN115883617A (en)

Similar Documents

Publication Publication Date Title
CN111427824B (en) Serial port communication circuit
CN105141491B (en) RS485 communication circuit and method for realizing spontaneous self-receiving
US10901041B2 (en) Semiconductor device, battery monitoring system and semiconductor device activation method
US20210250199A1 (en) Monolithic high-voltage transceiver connected to two different supply voltage domains
CN101470151B (en) CAN bus isolation circuit
CN109600288B (en) Isolation circuit and electronic control unit of controller area network CAN signal
CN111711552B (en) Terminal resistor access circuit, servo driver and control system
CN115883617A (en) Communication take-over circuit and method for controller, system and electric vehicle
CN216122468U (en) Double CAN redundant ring network communication gateway
CN214311733U (en) RS485 circuit capable of automatically controlling receiving and transmitting
CN103179012A (en) FlexRay network node adopting iCoupler magnetic isolation protecting measures
WO2022041001A1 (en) Intra-board communication circuit and device employing can communication
WO2022041000A1 (en) Can communication-based intra-board communication circuit and apparatus
CN216670542U (en) CAN bus interface circuit
CN111147341A (en) Communication conversion circuit and communication system for RGV
CN215498960U (en) High-speed CAN isolation transmission circuit and CAN transceiver
CN220043437U (en) Multi-path ARINC-429 bus control system
CN116743532B (en) Ringing suppression circuit and electronic equipment
JP2023531362A (en) Differential signal bidirectional isolation communication circuit and method
CN218897224U (en) Investigation array module
CN210297303U (en) Vehicle-mounted charging management circuit
CN103312407A (en) High-accuracy transmission method of time-frequency signals among satellite-borne devices
CN213817815U (en) Internet of things gateway control circuit
CN200962605Y (en) Data receiving and transmission module based on RS485 standard interface
CN217825004U (en) Output circuit of charger data through RS485 and CAN

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination