CN116886350A - New energy automobile control working method - Google Patents

New energy automobile control working method Download PDF

Info

Publication number
CN116886350A
CN116886350A CN202310795827.5A CN202310795827A CN116886350A CN 116886350 A CN116886350 A CN 116886350A CN 202310795827 A CN202310795827 A CN 202310795827A CN 116886350 A CN116886350 A CN 116886350A
Authority
CN
China
Prior art keywords
interface
capacitor
data transmission
microcontroller
bus
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
CN202310795827.5A
Other languages
Chinese (zh)
Other versions
CN116886350B (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.)
Caic New Energy Technology Co ltd
China Automotive Engineering Research Institute Co Ltd
Original Assignee
Caic New Energy Technology Co ltd
China Automotive Engineering Research Institute 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 Caic New Energy Technology Co ltd, China Automotive Engineering Research Institute Co Ltd filed Critical Caic New Energy Technology Co ltd
Priority to CN202310795827.5A priority Critical patent/CN116886350B/en
Publication of CN116886350A publication Critical patent/CN116886350A/en
Application granted granted Critical
Publication of CN116886350B publication Critical patent/CN116886350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1416Event detection, e.g. attack signature detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1425Traffic logging, e.g. anomaly detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Abstract

The invention provides a new energy automobile control working method, which comprises the following steps: step A: collecting all periodic messages of the whole vehicle local area network through a signal receiving and transmitting unit; and (B) step (B): corresponding each message period with the message ID through a signal period analysis unit; step C: detecting the load rate a of the bus unauthorised forwarding bus through a bus load detection unit; step D: and sending a message with the period of 10ms and undefined ID (identity) of the whole vehicle function through the signal receiving and transmitting unit, so that the bus load reaches a+10% and a+10% is less than 70%, and observing whether the whole vehicle function is abnormal or not after the state lasts for 1 minute. The invention CAN achieve the aim of attack by increasing the CAN load rate, and verify the stability of the ECU.

Description

New energy automobile control working method
Technical Field
The invention relates to the technical field of vehicle-mounted network attack testing, in particular to a new energy automobile control working method.
Background
With the development of the internet of vehicles technology, the safety of the vehicle-mounted network is paid more attention to, the safety of the vehicle-mounted network system is related to the life and property safety of users, and if the vehicle-mounted network system is attacked maliciously, the whole system network cannot work normally, so that enterprise clients suffer significant losses. In order to improve the safety and stability of the CAN network, problems are found by network attack means in various aspects, and measures are taken in time to avoid risks.
The CAN is a serial communication protocol bus for real-time application and effectively supporting a distributed control system, is one of the most widely used field buses in global application, has high real-time property and strong anti-interference capability, and is suitable for automobiles and industrial control applications. The CAN bus adopts a communication mechanism of carrier sense multiple access/collision avoidance, and a self-receiving periodic message sending strategy leads to the need of ensuring the bus load rate to be about 40% when the bus is designed, otherwise, the bus message period is abnormal correspondingly.
Disclosure of Invention
The invention aims at least solving the technical problems existing in the prior art, and particularly creatively provides a new energy automobile control working method.
In order to achieve the above purpose of the present invention, the present invention provides a new energy automobile control working method, which achieves the purpose of attack by improving the load factor to manufacture a fault of bus signal delay, the test method comprises the following steps:
step A: collecting all periodic messages of the whole vehicle local area network through a signal receiving and transmitting unit;
and (B) step (B): corresponding each message period with the message ID through a signal period analysis unit;
step C: detecting the load rate a of the bus unauthorised forwarding bus through a bus load detection unit;
step D: through the signal receiving and transmitting unit, a message with the period of 10ms and the undefined ID of the whole vehicle function is transmitted, so that the bus load reaches a+10%, a+10% is less than 70%, the state lasts for 1 minute, whether the whole vehicle function is abnormal or not is observed, if the whole vehicle function is abnormal, the step E is skipped, and if the whole vehicle function is not abnormal, the step D is skipped;
step E: stopping the signal receiving and transmitting unit to transmit the message, starting the signal receiving and transmitting unit to transmit the message, increasing the load rate by 1%, recording the load rate and fault at the moment until the abnormality is observed, and performing the next fault attack after a=a+10% of attack succeeds, and jumping to the step D to perform the next fault attack.
In a preferred embodiment of the present invention, the above-mentioned step D and step E execute the following operations while executing the test method:
observing the current state of the tested equipment, judging whether the obtained current state accords with the expected state, if so, not making any further judgment, otherwise, judging that the state of the CAN tested equipment is changed due to an aggressiveness test;
and (3) observing and analyzing the period delay condition of each message and the attack degree of each controller due to the increase of the load.
The invention also discloses a new energy automobile control work test box, which comprises a diagnosis box body, wherein a PCB diagnosis circuit board fixed mounting seat for fixedly mounting a PCB diagnosis circuit board is arranged in the diagnosis box body, the PCB diagnosis circuit board is fixedly mounted on the PCB diagnosis circuit board fixed mounting seat, and a microcontroller U1, a USB data transmission module, a CAN data transmission module and an RS232 data transmission module are arranged on the PCB diagnosis circuit board;
the front face of the diagnosis box body is provided with a touch display screen fixing and mounting seat for fixedly mounting a touch display screen, and the touch display screen is fixedly mounted on the touch display screen fixing and mounting seat; the diagnosis box comprises a diagnosis box body, wherein a USB interface mounting seat for fixedly mounting a USB interface JP4 is arranged on the left side surface of the diagnosis box body, the USB interface JP4 is fixedly mounted on the USB interface mounting seat, CAN interface mounting seats for fixedly mounting a CAN interface JP1 and a CAN interface JP2 are arranged on the right side surface of the diagnosis box body, the CAN interface JP1 and the CAN interface JP2 are fixedly mounted on the CAN interface mounting seats, an RS232 interface mounting seat for fixedly mounting an RS232 interface JP6 is arranged on the front side surface of the diagnosis box body, and the RS232 interface JP6 is fixedly mounted on the RS232 interface mounting seat;
the USB data transmission end of the microcontroller U1 is connected with the data transmission end of the USB data transmission module, the CAN data transmission end of the microcontroller U1 is connected with the data transmission end of the CAN data transmission module, and the RS232 data transmission end of the microcontroller U1 is connected with the data transmission end of the RS232 data transmission module; the touch display end of the microcontroller U1 is connected with the touch display end of the touch display screen.
In a preferred embodiment of the present invention, the USB data transmission module includes: the power output end of the USB interface JP4 is respectively connected with the first end of the FUSE1 and the first end of the capacitor C23, the power output end of the USB interface JP4 outputs a power USB_VCC, the second end of the FUSE FUSE1 is respectively connected with the first end of the capacitor C27 and the power input end IN of the voltage reduction chip U2, the second end of the FUSE FUSE1 outputs a power +5V, the second end of the capacitor C27 is connected with the power ground, the power ground end GND of the voltage reduction chip U2 is connected with the power ground, the power output end of the voltage reduction chip U2 is respectively connected with the first end of the capacitor C26, the first end of the capacitor C28 and the first end of the FUSE FUSE2, the second end of the FUSE FUSE2 outputs a power 3V3, and the first end of the capacitor C26 and the first end of the capacitor C28 are respectively connected with the power ground;
the power output grounding end of the USB interface JP4 and the second end of the capacitor C23 are respectively connected with the power ground, the data USB negative end of the USB interface JP4 is connected with the first end of the resistor R6, the second end of the resistor R6 is respectively connected with the first end of the capacitor C24 and the USB data negative end DDM of the microcontroller U1, the data USB positive end of the USB interface JP4 is respectively connected with the first end of the resistor R5 and the first end of the resistor R7, the second end of the resistor R7 is respectively connected with the first end of the capacitor C25 and the USB data positive end DDP of the microcontroller U1, the second end of the capacitor C24 and the second end of the capacitor C25 are respectively connected with the power ground, the second end of the resistor R5 is connected with the collector of the triode Q1, the emitter of the triode Q1 is respectively connected with the power 3V3 and the first end of the resistor R16, and the second end of the resistor R17 is respectively connected with the USB control enabling end PA 8/RTSP 0/NPCS 3 of the microcontroller U1.
In a preferred embodiment of the invention, the CAN data transmission module comprises: the data receiving end RXD of the CAN transceiver U7 is respectively connected with the first end of the resistor R3 and the CAN data transmitting end PA19/CANRX of the microcontroller U1, and the data transmitting end TXD of the CAN transceiver U7 is connected with the CAN data receiving end PA20/CANTX of the microcontroller U1;
the power end VCC of the CAN transceiver U7 is respectively connected with a power supply +5V, the first end of a capacitor C21 and the first end of a capacitor C22, the second end of the capacitor C21 and the second end of the capacitor C22 are respectively connected with power supply ground, the grounding end GND of the CAN transceiver U7 is connected with the power supply ground, and the mode end RS of the CAN transceiver U7 is connected with the additional CAN mode end PA18/SPI0_SPCK of the microcontroller U1;
the CAN data high end CANH of the CAN transceiver U7 is respectively connected with the data high end of the CAN interface JP1 and the data high end of the CAN interface JP2, the CAN data low end CANL of the CAN transceiver U7 is respectively connected with the data low end of the CAN interface JP2 and the first end of the adjustable terminal resistor R4, and the second end of the adjustable terminal resistor R4 is connected with the data low end of the CAN interface JP 1.
In a preferred embodiment of the present invention, the RS232 data transmission module includes: the charge pump end V+ of the RS232 chip U3 is connected with the first end of the capacitor C30, the second end of the capacitor C30 is connected with the power ground, the positive end C1+ of the voltage doubling capacitor of the RS232 chip U3 is connected with the first end of the capacitor C32, the voltage doubling capacitor Rong Fuduan C1-of the RS232 chip U3 is connected with the second end of the capacitor C32, the transmitter input end T1in of the RS232 chip U3 is connected with the data end PA1/TXD0 of the microcontroller U1, the receiver output end R1out of the RS232 chip U3 is connected with the data end PA0/RXD0 of the microcontroller U1, the transmitter input end T2in of the RS232 chip U3 is connected with the data end PA28/DTXD 3 of the microcontroller U1, the receiver output end R2 of the RS232 chip U3 is connected with the data end PA27/DRXD/PCK3 of the microcontroller U1, the charge pump end V-of the RS232 chip U3 is connected with the first end of the capacitor C33, and the second end of the capacitor C33 is connected with the power ground;
the power end VCC of the RS232 chip U3 is connected with a power supply 3V3 and a first end of a capacitor C29 respectively, a second end of the capacitor C29 is connected with power supply ground, a voltage doubling capacitor Rong Fuduan C2-of the RS232 chip U3 is connected with a first end of the capacitor C31, a voltage doubling capacitor positive end C2+ of the RS232 chip U3 is connected with a second end of the capacitor C31, a transmitter output end T1out of the RS232 chip U3 is connected with a data receiving end of an RS232 interface JP6, a receiver input end R1out of the RS232 chip U3 is connected with a data transmitting end of the RS232 interface JP6, a grounding end of the RS232 interface JP6 is connected with power supply ground, a transmitter output end T2out of the RS232 chip U3 is connected with a data receiving end of an RS232 interface JP7, and a grounding end of the RS232 interface JP7 is connected with power supply ground; the ground GND of the RS232 chip U3 is connected to the power ground.
The invention also discloses a new energy automobile control working system, which comprises a vehicle to be diagnosed, an upper computer and a new energy automobile control working test box;
the new energy automobile control work test box is connected with the vehicle to be diagnosed through a CAN bus, and is connected with the upper computer through a USB;
the system also comprises a signal receiving and transmitting unit, a signal period analysis unit and a bus load rate detection unit;
the signal receiving and transmitting unit is used for transmitting a message with higher priority, so that the bus load rate is gradually increased to reach the attack condition;
the signal period analysis unit is used for analyzing whether the message period has a large delay or not and exceeds the maximum tolerable range of the ECU so as to cause the function of the whole vehicle to be abnormal;
the bus load rate detection unit is used for observing the bus load rate condition so as to judge the attack abnormality of the less type which occurs at each stage of the load rate, and is convenient for later analysis and correction.
In summary, by adopting the technical scheme, the invention CAN achieve the attack purpose by increasing the CAN load rate, and verify the stability of the ECU.
Additional aspects and advantages 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 foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
fig. 1 is a schematic block diagram of a flow of the present invention.
Fig. 2 is a schematic block diagram of the connection of the present invention.
Fig. 3 is a schematic circuit connection diagram of a USB data transmission module according to the present invention.
Fig. 4 is a schematic circuit connection diagram of the CAN data transmission module of the present invention.
Fig. 5 is a schematic diagram of circuit connection of the RS232 data transmission module according to the present invention.
Fig. 6 is a schematic circuit connection diagram of a data switching module according to the present invention.
FIG. 7 is a schematic diagram of a key set module circuit connection according to the present invention.
Fig. 8 is a schematic diagram of circuit connection of the indicator light assembly module according to the present invention.
FIG. 9 is a schematic diagram of the circuit connection of the test module of the present invention.
Fig. 10 is a schematic diagram of the circuit connections of the microcontroller of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
The invention discloses a new energy automobile control working method, which achieves the aim of attack through the fault of the delay of a manufacturing bus signal by improving the load rate, as shown in figure 1, the testing method comprises the following steps:
step A: collecting all periodic messages of the whole vehicle local area network through a signal receiving and transmitting unit;
and (B) step (B): corresponding each message period with the message ID through a signal period analysis unit;
step C: detecting the load rate a of the bus unauthorised forwarding bus through a bus load detection unit;
step D: through the signal receiving and transmitting unit, a message with the period of 10ms and the undefined ID of the whole vehicle function is transmitted, so that the bus load reaches a+10%, a+10% is less than 70%, the state lasts for 1 minute, whether the whole vehicle function is abnormal or not is observed, if the whole vehicle function is abnormal, the step E is skipped, and if the whole vehicle function is not abnormal, the step D is skipped;
step E: stopping the signal receiving and transmitting unit to transmit the message, starting the signal receiving and transmitting unit to transmit the message, increasing the load rate by 1%, recording the load rate and fault at the moment until the abnormality is observed, and performing the next fault attack after a=a+10% of attack succeeds, and jumping to the step D to perform the next fault attack.
In a preferred embodiment of the present invention, the above-mentioned step D and step E execute the following operations while executing the test method:
observing the current state of the tested equipment, judging whether the obtained current state accords with the expected state, if so, not making any further judgment, otherwise, judging that the state of the CAN tested equipment is changed due to an aggressiveness test;
and (3) observing and analyzing the period delay condition of each message and the attack degree of each controller due to the increase of the load.
The invention also discloses a new energy automobile control work test box, which comprises a diagnosis box body, wherein a PCB diagnosis circuit board fixed mounting seat for fixedly mounting a PCB diagnosis circuit board is arranged in the diagnosis box body, the PCB diagnosis circuit board is fixedly mounted on the PCB diagnosis circuit board fixed mounting seat, and as shown in figures 2-10, a microcontroller U1, a USB data transmission module, a CAN data transmission module, an RS232 data transmission module, a key set module and an indicator lamp set module are arranged on the PCB diagnosis circuit board;
the front of the diagnosis box body is provided with a touch display screen fixed mounting seat for fixedly mounting a touch display screen, a key set mounting seat for fixedly mounting a key set, and an indicator lamp set mounting seat for fixedly mounting an indicator lamp set, wherein the touch display screen is fixedly mounted on the touch display screen fixed mounting seat, the key set is fixedly mounted on the key set mounting seat, and the indicator lamp set is fixedly mounted on the indicator lamp set mounting seat; the diagnosis box comprises a diagnosis box body, wherein a USB interface mounting seat for fixedly mounting a USB interface JP4 is arranged on the left side surface of the diagnosis box body, the USB interface JP4 is fixedly mounted on the USB interface mounting seat, CAN interface mounting seats for fixedly mounting a CAN interface JP1 and a CAN interface JP2 are arranged on the right side surface of the diagnosis box body, the CAN interface JP1 and the CAN interface JP2 are fixedly mounted on the CAN interface mounting seat, an RS232 interface mounting seat for fixedly mounting an RS232 interface JP6 is arranged on the front side surface of the diagnosis box body, an RS232 interface JP6 is fixedly mounted on the RS232 interface mounting seat, a test interface mounting seat for fixedly mounting a test interface JP1 is arranged on the rear side surface of the diagnosis box body, and the test interface JP1 is fixedly mounted on the test interface mounting seat;
the USB data transmission end of the microcontroller U1 is connected with the data transmission end of the USB data transmission module, the CAN data transmission end of the microcontroller U1 is connected with the data transmission end of the CAN data transmission module, the RS232 data transmission end of the microcontroller U1 is connected with the data transmission end of the RS232 data transmission module, the key group end of the microcontroller U1 is connected with the key end of the key group module, and the indication lamp group end of the microcontroller U1 is connected with the indication end of the indication lamp group module; the touch display end of the microcontroller U1 is connected with the touch display end of the touch display screen.
In a preferred embodiment of the present invention, the USB data transmission module includes: the power output end of the USB interface JP4 is respectively connected with the first end of the FUSE1 and the first end of the capacitor C23, the power output end of the USB interface JP4 outputs a power USB_VCC, the second end of the FUSE FUSE1 is respectively connected with the first end of the capacitor C27 and the power input end IN of the voltage reduction chip U2, the second end of the FUSE FUSE1 outputs a power +5V, the second end of the capacitor C27 is connected with the power ground, the power ground end GND of the voltage reduction chip U2 is connected with the power ground, the power output end of the voltage reduction chip U2 is respectively connected with the first end of the capacitor C26, the first end of the capacitor C28 and the first end of the FUSE FUSE2, the second end of the FUSE FUSE2 outputs a power 3V3, and the first end of the capacitor C26 and the first end of the capacitor C28 are respectively connected with the power ground;
the power output grounding end of the USB interface JP4 and the second end of the capacitor C23 are respectively connected with the power ground, the data USB negative end of the USB interface JP4 is connected with the first end of the resistor R6, the second end of the resistor R6 is respectively connected with the first end of the capacitor C24 and the USB data negative end DDM of the microcontroller U1, the data USB positive end of the USB interface JP4 is respectively connected with the first end of the resistor R5 and the first end of the resistor R7, the second end of the resistor R7 is respectively connected with the first end of the capacitor C25 and the USB data positive end DDP of the microcontroller U1, the second end of the capacitor C24 and the second end of the capacitor C25 are respectively connected with the power ground, the second end of the resistor R5 is connected with the collector of the triode Q1, the emitter of the triode Q1 is respectively connected with the power 3V3 and the first end of the resistor R16, and the second end of the resistor R17 is respectively connected with the USB control enabling end PA 8/RTSP 0/NPCS 3 of the microcontroller U1. The resistance of the resistor R16 is 47K, the resistance of the resistor R17 is 1.2K, the model of the triode Q1 is 8550S, the resistance of the resistor R5 is 1.5K, the resistances of the resistor R6 and the resistor R7 are 25 omega, the capacitance of the capacitor C24 and the capacitor C25 is 15pF, the capacitance of the capacitor C23 is 100nF, the capacitance of the capacitor C27 and the capacitor C28 is 47uF, the capacitance of the capacitor C26 is 0.1F, and the model of the buck chip U2 is REG1117-3.3.
In a preferred embodiment of the invention, the CAN data transmission module comprises: the data receiving end RXD of the CAN transceiver U7 is respectively connected with the first end of the resistor R3 and the CAN data transmitting end PA19/CANRX of the microcontroller U1, and the data transmitting end TXD of the CAN transceiver U7 is connected with the CAN data receiving end PA20/CANTX of the microcontroller U1;
the power end VCC of the CAN transceiver U7 is respectively connected with a power supply +5V, the first end of a capacitor C21 and the first end of a capacitor C22, the second end of the capacitor C21 and the second end of the capacitor C22 are respectively connected with power supply ground, the grounding end GND of the CAN transceiver U7 is connected with the power supply ground, and the mode end RS of the CAN transceiver U7 is connected with the additional CAN mode end PA18/SPI0_SPCK of the microcontroller U1;
the CAN data high end CANH of the CAN transceiver U7 is respectively connected with the data high end of the CAN interface JP1 and the data high end of the CAN interface JP2, the CAN data low end CANL of the CAN transceiver U7 is respectively connected with the data low end of the CAN interface JP2 and the first end of the adjustable terminal resistor R4, and the second end of the adjustable terminal resistor R4 is connected with the data low end of the CAN interface JP 1. The resistance value of the resistor R3 is 1.5K, the model of the CAN transceiver U7 is TJA1050, the capacitor C21 is 104, the capacitance value of the capacitor C22 is 10uF, and the resistance value of the adjustable termination resistor R4 is 120Ω.
In a preferred embodiment of the present invention, the RS232 data transmission module includes: the charge pump end V+ of the RS232 chip U3 is connected with the first end of the capacitor C30, the second end of the capacitor C30 is connected with the power ground, the positive end C1+ of the voltage doubling capacitor of the RS232 chip U3 is connected with the first end of the capacitor C32, the voltage doubling capacitor Rong Fuduan C1-of the RS232 chip U3 is connected with the second end of the capacitor C32, the transmitter input end T1in of the RS232 chip U3 is connected with the data end PA1/TXD0 of the microcontroller U1, the receiver output end R1out of the RS232 chip U3 is connected with the data end PA0/RXD0 of the microcontroller U1, the transmitter input end T2in of the RS232 chip U3 is connected with the data end PA28/DTXD 3 of the microcontroller U1, the receiver output end R2 of the RS232 chip U3 is connected with the data end PA27/DRXD/PCK3 of the microcontroller U1, the charge pump end V-of the RS232 chip U3 is connected with the first end of the capacitor C33, and the second end of the capacitor C33 is connected with the power ground;
the power end VCC of the RS232 chip U3 is connected with a power supply 3V3 and a first end of a capacitor C29 respectively, a second end of the capacitor C29 is connected with power supply ground, a voltage doubling capacitor Rong Fuduan C2-of the RS232 chip U3 is connected with a first end of the capacitor C31, a voltage doubling capacitor positive end C2+ of the RS232 chip U3 is connected with a second end of the capacitor C31, a transmitter output end T1out of the RS232 chip U3 is connected with a data receiving end of an RS232 interface JP6, a receiver input end R1out of the RS232 chip U3 is connected with a data transmitting end of the RS232 interface JP6, a grounding end of the RS232 interface JP6 is connected with power supply ground, a transmitter output end T2out of the RS232 chip U3 is connected with a data receiving end of an RS232 interface JP7, and a grounding end of the RS232 interface JP7 is connected with power supply ground; the ground GND of the RS232 chip U3 is connected to the power ground. The capacitance values of the capacitor C29, the capacitor C30, the capacitor C31, the capacitor C32 and the capacitor C33 are 120nf, and the model number of the rs232 chip U3 is MAX3232.
In a preferred embodiment of the present invention, further comprising a data switching module, the data switching module comprising: the data output end of the data switching chip U6 is connected with the data receiving end PA5/RXD1 of the microcontroller U1, the data input end of the data switching chip U6 is connected with the data transmitting end PA6/TXD1 of the microcontroller U1, and the grounding end GND of the data switching chip U6 is connected with the power supply ground;
the power end of the data switching chip U6 is connected with a power supply +5V and the first end of the capacitor C34 respectively, and the second end of the capacitor C34 is connected with the power supply ground; the receiver data positive end of the data switching chip U6 is respectively connected with the first end of a resistor R9, the input end VIN2 of a transient suppressor U4 and the data first positive end of an interface JP5, the second end of the resistor R9 is connected with the power ground, the receiver data negative end of the data switching chip U6 is respectively connected with the first end of a resistor R8, the input end VIN1 of the transient suppressor U4 and the data first negative end of the interface JP5, the second end of the resistor R8 is connected with the power ground, and the ground end of the transient suppressor U4 is connected with the power ground;
the transmitter data negative terminal of the data switching chip U6 is respectively connected with the input end VIN1 of the transient suppressor U5 and the data second negative terminal of the interface JP5, the transmitter data positive terminal of the data switching chip U6 is respectively connected with the input end VIN2 of the transient suppressor U5 and the data second positive terminal of the interface JP5, and the grounding terminal of the transient suppressor U5 is connected with the power supply ground. The data switching chip U6 has a model number MAX488, the capacitor C34 has a capacitance value of 100nF, the resistors R8 and R9 have a resistance value of 3.3K, and the transient suppressor U4 and the transient suppressor U5 have a model number SM712.
In a preferred embodiment of the present invention, the key set module includes: the first end of the key S4 is connected with the first end of the power supply 3V3, the second end of the key S4 is connected with the ERASE end ERASE of the microcontroller U1, the first end of the key S2 is connected with the power supply ground, the second end of the key S2 is connected with the key end PA11/TWCK of the microcontroller U1, the first end of the key S3 is connected with the power supply ground, the second end of the key S3 is connected with the key end PA10/TWD of the microcontroller U1, the first end of the key S5 is connected with the power supply ground, and the second end of the key S5 is connected with the reset end NRST of the microcontroller U1. Wherein the model of the data switching chip U6 is MAX488, the capacitance value of the capacitor C34 is 100nF, the resistance values of the resistor R8 and the resistor R9 are 3.3K,
in a preferred embodiment of the present invention, the indicator light bank module includes: the cathode of the power indicator light LED3 is connected with power ground, the anode of the power indicator light LED3 is connected with the first end of the resistor R10, and the second end of the resistor R10 is connected with the power supply 3V 3; the negative electrode of the indicator light LED11 is connected with the power ground, the positive electrode of the indicator light LED11 is connected with the first end of the resistor R13, and the second end of the resistor R13 is connected with the indicator end PA13/SPI0_NPCS1/PCK1 of the microcontroller U1; the negative electrode of the indicator light LED22 is connected with the power ground, the positive electrode of the indicator light LED22 is connected with the first end of the resistor R14, and the second end of the resistor R14 is connected with the indicator end PA12/SPI0_NPCS0 of the microcontroller U1; the negative pole of pilot lamp LED44 links to each other with power ground, and the positive pole of pilot lamp LED44 links to each other with the first end of resistance R11, and the second end of resistance R11 links to each other with microcontroller U1's pilot terminal PA7/SCK1/SPI0_NPCS 1. The resistances of the resistors R10, R11, R13, and R14 are 2.2K.
In a preferred embodiment of the present invention, further comprising a test module, the test module comprising: the test data input end TDI of the microcontroller U1 is respectively connected with the first end of a resistor R55 and the test data output end of a test interface JP1, and the second end of the resistor R55 is connected with a power supply 3V 3; the test mode selection end TMS of the microcontroller U1 is respectively connected with the first end of the resistor R53 and the test mode selection end of the test interface JP1, and the second end of the resistor R53 is connected with the power supply 3V 3; the test clock end TCK of the microcontroller U1 is respectively connected with the first end of the resistor R51 and the test clock end of the test interface JP1, and the second end of the resistor R51 is connected with the power supply 3V 3; the test data output end of the microcontroller U1 is connected with the test data input end of the test interface JP 1; the wiper end NRST of the microcontroller U1 is respectively connected with the first end of the resistor R15 and the wiper end of the test interface JP1, and the second end of the resistor R15 is connected with the power supply 3V 3; the power supply 3V3 is connected to the first end of the resistor R57, the second end of the resistor R51 is connected to the first test end of the test interface JP1, the power supply 3V3 is connected to the second test end of the test interface JP1, and the ground end of the test interface JP1 is connected to the power supply ground. The resistance of the resistor R15 is 10K, and the resistances of the resistors R51, R53, R55, and R57 are 4.7K.
In a preferred embodiment of the present invention, the voltage stabilizing output terminal VDDOUT of the microcontroller U1 is connected to the power supply terminal VDDCORE of the microcontroller U1, the first terminal of the capacitor C3, the first terminal of the capacitor C4, the first terminal of the capacitor C5, the first terminal of the capacitor C6 and the first terminal of the capacitor C18, and the second terminal of the capacitor C3, the second terminal of the capacitor C4, the second terminal of the capacitor C5, the second terminal of the capacitor C6 and the second terminal of the capacitor C18 are connected to the power supply ground, respectively; the power supply end VDDIO of the microcontroller U1 is respectively connected with the first end of a capacitor C7, the first end of a capacitor C8, the first end of a capacitor C9, the first end of a capacitor C10, the first end of a capacitor C11 and a power supply 3V3, and the second end of the capacitor C7, the second end of the capacitor C8, the second end of the capacitor C9, the second end of the capacitor C10 and the second end of the capacitor C11 are respectively connected with power supply ground; the grounding end of the microcontroller U1 is connected with the power supply ground; the crystal oscillator end XIN of the microcontroller U1 is respectively connected with the first end of the capacitor C12 and the first end of the crystal oscillator Y1, the crystal oscillator end XOUT of the microcontroller U1 is respectively connected with the first end of the capacitor C13 and the second end of the crystal oscillator Y1, and the second end of the capacitor C12 and the second end of the capacitor C13 are respectively connected with power supply ground; the power supply end VDDCLL of the microcontroller U1 is respectively connected with the first end of the capacitor C14 and the voltage-stabilizing output end VDDOUT of the microcontroller U1, and the second end of the capacitor C14 is connected with power supply ground; the filter end of the microcontroller U1 is respectively connected with the first end of the capacitor C15 and the first end of the resistor R2, the second end of the resistor R2 is connected with the first end of the capacitor C16, and the second end of the capacitor C15 and the second end of the capacitor C16 are respectively connected with power ground; the power supply end VDDIN of the microcontroller U1 is respectively connected with a power supply 3V3, a first end of a capacitor C1 and a first end of a capacitor C17, and a second end of the capacitor C1 and a second end of the capacitor C17 are respectively connected with power supply ground; the power supply end VDDBSH of the microcontroller U1 is respectively connected with the power supply 3V3 and the first end of the capacitor C2, and the second end of the capacitor C2 is respectively connected with the power supply ground; the analog-digital voltage reference end of the microcontroller U1 is respectively connected with the first end of the capacitor C19 and the first end of the inductor L1, the second end of the inductor L1 is respectively connected with the first end of the capacitor C20 and the power supply 3V3, and the second end of the capacitor C19 and the second end of the capacitor C20 are respectively connected with the power supply ground. The capacitance value of the capacitor C18 is 10uF, the capacitance values of the capacitors C3-C11 are 100nF, the capacitance values of the capacitors C12 and C13 are 10pF, the frequency of the crystal oscillator Y1 is 18.4MHz, the capacitance value of the capacitor C15 is 1nF, the capacitance values of the capacitors C1, C2, C14, C17, C19 and C20 are 100nF, the capacitance value of the capacitor C16 is 10nF, and the model of the microcontroller U1 is ATM89C52.
The invention also discloses a new energy automobile control working system, which comprises a vehicle to be diagnosed, an upper computer and a new energy automobile control working test box;
the new energy automobile control work test box is connected with the vehicle to be diagnosed through a CAN bus, and the new energy automobile control work test box is connected with the upper computer through USB or/and RS 232;
the system also comprises a signal receiving and transmitting unit, a signal period analysis unit and a bus load rate detection unit;
the signal receiving and transmitting unit is used for transmitting a message with higher priority, so that the bus load rate is gradually increased to reach the attack condition;
the signal period analysis unit is used for analyzing whether the message period has a large delay or not and exceeds the maximum tolerable range of the ECU so as to cause the function of the whole vehicle to be abnormal;
the bus load rate detection unit is used for observing the bus load rate condition so as to judge the attack abnormality of the less type which occurs at each stage of the load rate, and is convenient for later analysis and correction.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.

Claims (4)

1. The new energy automobile control working method is characterized in that the aim of attack is achieved through the fault of the delay of the manufacturing bus signal of the load rate improvement, and the working method comprises the following steps:
step A: collecting all periodic messages of the whole vehicle local area network through a signal receiving and transmitting unit;
and (B) step (B): corresponding each message period with the message ID through a signal period analysis unit;
step C: detecting the load rate a of the bus unauthorised forwarding bus through a bus load detection unit;
step D: through the signal receiving and transmitting unit, a message with the period of 10ms and the undefined ID of the whole vehicle function is transmitted, so that the bus load reaches a+10%, a+10% is less than 70%, the state lasts for 1 minute, whether the whole vehicle function is abnormal or not is observed, if the whole vehicle function is abnormal, the step E is skipped, and if the whole vehicle function is not abnormal, the step D is skipped;
step E: stopping the signal receiving and transmitting unit to transmit the message, starting the signal receiving and transmitting unit to transmit the message, increasing the load rate by 1%, recording the load rate and fault at the moment until the abnormality is observed, and performing the next fault attack after a=a+10% of attack succeeds, and jumping to the step D to perform the next fault attack.
2. The method according to claim 1, wherein the step D and the step E execute the following operations while executing the test method:
observing the current state of the tested equipment, judging whether the obtained current state accords with the expected state, if so, not making any further judgment, otherwise, judging that the state of the CAN tested equipment is changed due to an aggressiveness test;
and (3) observing and analyzing the period delay condition of each message and the attack degree of each controller due to the increase of the load.
3. The new energy automobile control work test box comprises a diagnosis box body and is characterized in that a PCB diagnosis circuit board fixed mounting seat for fixedly mounting a PCB diagnosis circuit board is arranged in the diagnosis box body, the PCB diagnosis circuit board is fixedly mounted on the PCB diagnosis circuit board fixed mounting seat, and a microcontroller U1, a USB data transmission module, a CAN data transmission module and an RS232 data transmission module are arranged on the PCB diagnosis circuit board;
the front face of the diagnosis box body is provided with a touch display screen fixing and mounting seat for fixedly mounting a touch display screen, and the touch display screen is fixedly mounted on the touch display screen fixing and mounting seat; the diagnosis box comprises a diagnosis box body, wherein a USB interface mounting seat for fixedly mounting a USB interface JP4 is arranged on the left side surface of the diagnosis box body, the USB interface JP4 is fixedly mounted on the USB interface mounting seat, CAN interface mounting seats for fixedly mounting a CAN interface JP1 and a CAN interface JP2 are arranged on the right side surface of the diagnosis box body, the CAN interface JP1 and the CAN interface JP2 are fixedly mounted on the CAN interface mounting seats, an RS232 interface mounting seat for fixedly mounting an RS232 interface JP6 is arranged on the front side surface of the diagnosis box body, and the RS232 interface JP6 is fixedly mounted on the RS232 interface mounting seat;
the USB data transmission end of the microcontroller U1 is connected with the data transmission end of the USB data transmission module, the CAN data transmission end of the microcontroller U1 is connected with the data transmission end of the CAN data transmission module, and the RS232 data transmission end of the microcontroller U1 is connected with the data transmission end of the RS232 data transmission module; the touch display end of the microcontroller U1 is connected with the touch display end of the touch display screen.
4. The new energy automobile control working system is characterized by comprising a vehicle to be diagnosed, an upper computer and a new energy automobile control working test box;
the new energy automobile control work test box is connected with the vehicle to be diagnosed through a CAN bus, and is connected with the upper computer through a USB;
the system also comprises a signal receiving and transmitting unit, a signal period analysis unit and a bus load rate detection unit;
the signal receiving and transmitting unit is used for transmitting a message with higher priority, so that the bus load rate is gradually increased to reach the attack condition;
the signal period analysis unit is used for analyzing whether the message period has a large delay or not and exceeds the maximum tolerable range of the ECU so as to cause the function of the whole vehicle to be abnormal;
the bus load rate detection unit is used for observing the bus load rate condition so as to judge the attack abnormality of the less type which occurs at each stage of the load rate, and is convenient for later analysis and correction.
CN202310795827.5A 2023-06-30 2023-06-30 New energy automobile control working method Active CN116886350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310795827.5A CN116886350B (en) 2023-06-30 2023-06-30 New energy automobile control working method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310795827.5A CN116886350B (en) 2023-06-30 2023-06-30 New energy automobile control working method

Publications (2)

Publication Number Publication Date
CN116886350A true CN116886350A (en) 2023-10-13
CN116886350B CN116886350B (en) 2024-04-23

Family

ID=88257837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310795827.5A Active CN116886350B (en) 2023-06-30 2023-06-30 New energy automobile control working method

Country Status (1)

Country Link
CN (1) CN116886350B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2638142Y (en) * 2003-08-29 2004-09-01 清华大学 Portable CAN bus analysis recorder based on USB interface
CN104852825A (en) * 2014-09-15 2015-08-19 北汽福田汽车股份有限公司 Bus communication test method and system
CN105487403A (en) * 2015-10-30 2016-04-13 武汉华茂工业自动化有限公司 Establishment of motion control system based on CAN and simulation modeling method
US20160223620A1 (en) * 2015-02-04 2016-08-04 Liebert Corporation Method for detecting a failing rectifier or rectifier source
CN108932182A (en) * 2018-07-06 2018-12-04 许继集团有限公司 A kind of messaging bus performance test methods and system
US20210111923A1 (en) * 2017-04-25 2021-04-15 Mobile Devices Ingenierie Method to Write Requests on a Vehicle Diagnostic Bus
CN114666171A (en) * 2022-05-25 2022-06-24 杭州云动智能汽车技术有限公司 Method for realizing vehicle-mounted CAN network firewall

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2638142Y (en) * 2003-08-29 2004-09-01 清华大学 Portable CAN bus analysis recorder based on USB interface
CN104852825A (en) * 2014-09-15 2015-08-19 北汽福田汽车股份有限公司 Bus communication test method and system
US20160223620A1 (en) * 2015-02-04 2016-08-04 Liebert Corporation Method for detecting a failing rectifier or rectifier source
CN105487403A (en) * 2015-10-30 2016-04-13 武汉华茂工业自动化有限公司 Establishment of motion control system based on CAN and simulation modeling method
US20210111923A1 (en) * 2017-04-25 2021-04-15 Mobile Devices Ingenierie Method to Write Requests on a Vehicle Diagnostic Bus
CN108932182A (en) * 2018-07-06 2018-12-04 许继集团有限公司 A kind of messaging bus performance test methods and system
CN114666171A (en) * 2022-05-25 2022-06-24 杭州云动智能汽车技术有限公司 Method for realizing vehicle-mounted CAN network firewall

Also Published As

Publication number Publication date
CN116886350B (en) 2024-04-23

Similar Documents

Publication Publication Date Title
CN107991603B (en) Relay diagnosis method and system
CN102540998A (en) Real-time maintenance method and system for vehicle
CN104615037A (en) CAN based vehicle-mounted equipment reminding device and method
CN105070086A (en) Intelligent traffic signal lamp fault detection and alarm system and method
CN205450097U (en) Vehicle voltage warning system based on network communication
CN110406486A (en) Reduce method, system and the switching circuit of vehicle electronic device quiescent dissipation
CN106487612A (en) A kind of server node monitoring method, monitoring server and system
CN104601574A (en) Reading method for data acquisition of electric energy meter
CN104442831A (en) Method for intelligently diagnosing fault of electric vehicle based on CAN information
CN102426453A (en) Remote diagnosis device and method for automobile
CN116886350B (en) New energy automobile control working method
CN111026085B (en) DPF damage fault diagnosis system and method and heavy-duty diesel vehicle
CN109866710A (en) A kind of In-vehicle networking abnormality detection system
CN102476616B (en) Periodic self-detection method for electric equipment of vehicle
CN116700110B (en) Distributed driving new energy automobile control method based on multi-module division
CN204856917U (en) Traffic signal lamp trouble intellectual detection system , alarm system
CN203193675U (en) An apparatus capable of remotely waking up a vehicle-mounted terminal in real time
CN116841233A (en) Whole vehicle working system based on CAN bus layered control
CN205553953U (en) Composite power source pure electric vehicles's vehicle control unit
CN116684185A (en) Automatic road condition data synthesizing method
CN116827713A (en) Simulation working system for new energy automobile
CN116668175A (en) New energy automobile operating system
CN116594370A (en) Bus disconnection fault processing method and device, electronic equipment and storage medium
CN205643330U (en) Automatic device that restarts of sewage on -line monitoring equipment
CN104977924A (en) Real-time vehicle overhaul system

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
GR01 Patent grant
GR01 Patent grant