CN110843705A - Vehicle-mounted CAN bus monitoring system - Google Patents

Vehicle-mounted CAN bus monitoring system Download PDF

Info

Publication number
CN110843705A
CN110843705A CN201911037926.7A CN201911037926A CN110843705A CN 110843705 A CN110843705 A CN 110843705A CN 201911037926 A CN201911037926 A CN 201911037926A CN 110843705 A CN110843705 A CN 110843705A
Authority
CN
China
Prior art keywords
bus
automobile
vehicle
parameter
data
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
CN201911037926.7A
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.)
Liuzhou Railway Vocational Technical College
Original Assignee
Liuzhou Railway Vocational Technical College
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 Liuzhou Railway Vocational Technical College filed Critical Liuzhou Railway Vocational Technical College
Priority to CN201911037926.7A priority Critical patent/CN110843705A/en
Publication of CN110843705A publication Critical patent/CN110843705A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • B60R16/0232Circuits relating to the driving or the functioning of the vehicle for measuring vehicle parameters and indicating critical, abnormal or dangerous conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Engineering (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention relates to a vehicle-mounted CAN bus monitoring system, which comprises a CAN bus analyzer and a monitoring node, wherein the CAN bus analyzer is respectively connected with the monitoring node and a vehicle-mounted diagnostic instrument of an automobile, the monitoring node comprises a controller, a photoelectric isolation module, a CAN transceiver, a power module and a display module, the output end of the power module is connected with the controller, the input end and the output end of the display module are respectively connected with the controller, the input end and the output end of the photoelectric isolation module are respectively connected with the controller, the input end and the output end of the CAN transceiver are respectively connected with the photoelectric isolation module, and the input end and the output end of the CAN transceiver are respectively connected with the CAN bus analyzer. The invention acquires and visually displays the parameter data of each ECU of the automobile so as to monitor the automobile state and diagnose the fault, which has important function for realizing the safe operation of the automobile.

Description

Vehicle-mounted CAN bus monitoring system
Technical Field
The invention relates to a monitoring system, in particular to a vehicle-mounted CAN bus monitoring system.
Background
At present, the state of an automobile in the running process is only limited information which is displayed through a vehicle-mounted instrument panel, and a lot of important information cannot be displayed visually, such as fault alarm information and the like. With the continuous development of automobile electronic technology, automobile bus technology becomes the main technical achievement in the development process of modern automobiles as the combination of computer network technology and industrial field bus control technology. The appearance of the system simplifies wiring harnesses and refines the functions of electric control units of each system, and more ECU modules can be carried on the automobile, so that the functions of the whole automobile network are increasingly complicated. Meanwhile, in the normal use process of the vehicle, the vehicle condition of the vehicle continuously changes along with the increase of the driving distance, the reliability, the dynamic property and the safety of the vehicle also continuously decrease, the failure rate is obviously improved, and great hidden danger is caused to the safe driving of the vehicle. Therefore, for testers, the functional test of the automobile diagnosis service can be completed through a given diagnosis protocol, and meanwhile, the current faults of the automobile can be diagnosed timely and accurately, and the reasons of the faults can be reasonably checked, so that the development trend of the modern automobile diagnosis technology is formed.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a vehicle CAN bus monitoring system is provided.
The technical scheme for solving the technical problems is as follows: the utility model provides an on-vehicle CAN bus monitored control system, includes CAN bus analysis appearance and control node, CAN bus analysis appearance is connected with the on-vehicle diagnostic apparatus of control node and car respectively, the control node includes controller, optoelectronic isolation module, CAN transceiver, power module and display module, power module's output and controller are connected, and display module's input/output end is connected with the controller respectively, and optoelectronic isolation module's input/output end is connected with the controller respectively, and the input/output end of CAN transceiver is connected with optoelectronic isolation module respectively, and the input/output end of CAN transceiver is connected with CAN bus analysis appearance respectively.
The further technical scheme of the invention is as follows: CAN bus analysis appearance passes through PC and is connected with the control node, and CAN bus analysis appearance passes through CANPro and CANoe and is connected with the control node, and CAN bus analysis appearance passes through OBD II and is connected with on-vehicle diagnostic device.
The vehicle-mounted diagnostic instrument and the CAN bus analyzer form a protocol data acquisition tool for physical parameters of the automobile, and capture and display protocol data frames are acquired through the CAN Pro, and a communication protocol of the parameters is analyzed and analyzed; according to the parameter communication protocol, a CANoe semi-physical simulation platform is set up for verifying the accuracy of the parameter communication protocol; the monitoring node is connected with a CAN line of an automobile-mounted OBD II through a CAN bus interface according to the parameter communication protocol, so that physical parameter application is carried out on an automobile ECU, a physical parameter protocol data frame is obtained, physical parameters are obtained after analysis, and real-time monitoring is carried out.
CAN bus analysis appearance is to CAN bus data analysis, and the car couples together through OBD interface and CAN bus network fast, and CANpro snatchs and shows the data frame on the on-vehicle CAN bus, through information such as ID field, data length of analysis data frame, carries out contrastive analysis with car physical parameter to resolve out the communication protocol of car physical parameter.
Building a semi-physical simulation model through the CANoe, directly communicating with an automobile ECU through an OBD II interface, acquiring and displaying automobile physical parameters; thereby verifying the communication protocol of the automobile physical parameters analyzed in the foregoing.
The OBD II interface is used for being connected with a vehicle computer, collecting parameter data in the vehicle computer according to the received instruction and sending the parameter data to the CAN transceiver.
Due to the adoption of the technical scheme, the vehicle-mounted CAN bus monitoring system has the following beneficial effects:
the invention mainly designs an automobile diagnosis test system based on a CANoe development environment tool based on a CAN bus protocol, which CAN acquire and visually display parameter data of each ECU of an automobile so as to monitor and diagnose faults of the automobile, and has an important function for realizing safe operation of the automobile. The invention not only CAN carry out diagnosis and test on the ECU module on the CAN bus, but also provides a way for testing personnel to quickly and accurately confirm the fault reason of the ECU module, and has good application prospect and considerable practical significance for the automobile industry.
The technical features of a vehicle-mounted CAN bus monitoring system according to the present invention will be further described with reference to the drawings and the specific embodiments.
Drawings
FIG. 1: and the system schematic block diagram of the CAN bus monitoring system.
FIG. 2: the monitoring node forms a schematic block diagram.
Detailed Description
The utility model provides an on-vehicle CAN bus monitored control system, includes CAN bus analysis appearance and control node, CAN bus analysis appearance is connected with the on-vehicle diagnostic apparatus of control node and car respectively, the control node includes controller (chip), optoelectronic isolation module, CAN transceiver, power module and display module, power module's output and controller are connected, and display module's input/output end is connected with the controller respectively, and optoelectronic isolation module's input/output end is connected with the controller respectively, and the input/output end of CAN transceiver is connected with optoelectronic isolation module respectively, and the input/output end of CAN transceiver is connected with CAN bus analysis appearance respectively. The CAN bus analyzer is connected with the monitoring node through a PC (computer), the CAN bus analyzer is connected with the monitoring node through a CANPro and a CANoe, and the CAN bus analyzer is connected with the vehicle-mounted diagnostic instrument through an OBD II. The CAN bus analyzer is respectively connected with the monitoring node and the vehicle-mounted diagnostic apparatus through a CAN bus and a CAN interface. The vehicle-mounted diagnostic instrument and the CAN bus analyzer form a protocol data acquisition tool of a certain physical parameter of the automobile, and a communication protocol of the parameter is analyzed and analyzed by acquiring a capture and display protocol data frame through the CAN Pro; according to the parameter communication protocol, a CANoe semi-physical simulation platform is set up for verifying the accuracy of the parameter communication protocol; the monitoring node is connected with a CAN of an automobile-mounted OBD II through a CAN interface according to the parameter communication protocol, so that physical parameter application is carried out on an automobile ECU, a physical parameter protocol data frame is obtained, physical parameters are obtained after analysis, and real-time monitoring is carried out.
The vehicle-mounted diagnostic instrument is used for sending an automobile physical parameter data request instruction to an automobile ECU (electronic control Unit) through an OBD II interface. The CAN bus analyzer is used for analyzing CAN bus data, an automobile is quickly connected with a CAN bus network through an OBD interface, a CANpro captures and displays data frames on a vehicle-mounted CAN bus, and information such as an ID field, a data field and data length of the data frames is analyzed to be compared with automobile physical parameters, so that a communication protocol of the automobile physical parameters is analyzed. The CANoe has the functions of building a semi-physical simulation model, building the semi-physical simulation model through the CANoe, directly communicating with the automobile ECU through an OBD II interface, acquiring and displaying physical parameters of the automobile; thereby verifying the communication protocol of the automobile physical parameters analyzed in the foregoing. The OBD II interface is used for being connected with a vehicle computer, collecting parameter data in the vehicle computer according to the received instruction and sending the parameter data to the CAN transceiver. The photoelectric isolator is used for isolating interference generated in data transmission between the controller and the CAN transceiver. The CAN transceiver is used for transferring data transmission between the OBD II interface and the controller.
The controller is used for making a parameter application for a request instruction of an automobile physical parameter to an automobile ECU through the photoelectric isolation, the CAN transceiver and the CAN bus, and the automobile ECU sends a protocol data frame containing the physical parameter to the CAN bus after receiving the application instruction; the controller receives the protocol data frame through the CAN bus, the CAN transceiver and the photoelectric isolation, analyzes the protocol according to the protocol, acquires the physical parameters and displays the physical parameters on the display. The display is used for displaying the analysis result sent by the controller. The power supply module is used for providing power required by the controller.
The controller chip model is LPC 1768. The chip model of the CAN transceiver is TJA 1051. The model of the optoelectronic isolator is 6N 137. The display module is a display, and the display is a DMT10600T070_ A2W 7 inch serial port capacitive touch screen. The CAN bus analyzer is CANalyst-II. The model of the vehicle-mounted diagnostic instrument is ISCAMAR.
Application example: the following describes the process of obtaining and analyzing vehicle parameters by taking the example of obtaining the engine speed of a mass vehicle as an example. The CAN bus application layer protocol of the mass automobile adopts a standard frame format, so that the CAN data of the Skodak automobile is extracted and analyzed in the standard frame format.
1. Extraction scheme of CAN data: CAN communication data of the Scokada car are collected by a CAN bus analyzer and a vehicle-mounted diagnostic instrument ISCANCAR VAG. The automobile diagnosis instrument is connected into a CAN bus of a mass automobile through an OBD-II interface, the automobile is started, then the automobile diagnosis instrument is switched to a 007 channel, and the rotating speed of an engine is requested to be read. Connecting a CAN interface of a CAN bus analyzer with a CAN bus pin in an OBD-II interface, and configuring the CAN baud rate of CANPro computer-side software of the CAN bus analyzer to be 500 kbps; the CANPro protocol analysis platform can acquire the protocol data of the engine speed with the data flow channel number of 07.
2. Analyzing CAN data: analyzing the data of the engine rotating speed applied by the automobile diagnostic instrument, which is acquired by the CAN bus analyzer:
(1) the two frames of data with serial number 0 and serial number 1 indicate successful entry into the Engine system of the automobile (Engine), and the handshake is successful. In these two frame data blocks: and (3) sending: 01C 00010000301, receiving: 00D 00003400701. The 0 th byte "01" in the transmission line indicates the trigger address code of the engine system, and the fifth byte and the sixth byte "0701" in the reception frame indicate the system address code of the engine system.
(2) The two data frames, sequence number 2 and sequence number 3, are idle frames, indicating that a data stream is waiting to be read or other task is being performed.
(3) Frame number 4 is a request frame from the CAN bus analyzer for the engine 07 set of parameters, where "0221" represents a command word; "07" indicates a parameter set number.
(4) Frame IDs of 0x300 with numbers 6 to 9 and 12 to 15 indicate response frames of the ECU of the automobile engine, and the last two bytes "0113" and "0213" of the 6 th and 12 th frames received are the rotational speed data of the engine. Data of the received ECU frame are extracted, and the calculation formula of the rotating speed is as follows: (buf 6. multidot. buf 7)/5.
3. Building a simulation system: the simulation system comprises 3 nodes of an Engine control unit (Engine), a control node (control) and a sending node (Send). The engine control unit node is used for analyzing the engine rotating speed data protocol frame and displaying the rotating speed data on the display panel. The sending node is used for sending a request frame of the engine speed parameter at regular time, applying for engine speed data to the ECU, and sending an engine speed data protocol frame after the ECU receives the request. And the control node is used for simulating the automobile ECU to send a rotating speed data frame after receiving the engine rotating speed parameter application frame in a full simulation mode. Under the CANoe semi-physical simulation mode, an OBDII interface of the monitoring system is directly connected with a vehicle-mounted CAN bus to replace a control node, and at the moment, a sending node sends an engine rotating speed parameter request frame to an automobile ECU.
CANdb + + is a database operation tool integrated in the CANoe development environment, and comprises configuration of various nodes of the whole system, environment variables, setting of messages and relative positions of signals in the messages. The method comprises the steps of editing each parameter and message information defined by an automobile CAN application layer protocol into a database by using a database editing tool CANdb + +, defining a message data frame in a message form, defining each parameter in a signal form, and finally importing the established database DBC file into a simulation system. And (4) making a table according to the analyzed automobile engine rotating speed protocol data.
Table 1 database editing application table
After the network nodes, messages, signals and environment variables are created and associated with each other, a network database is basically formed, attributes of the network, the nodes, the messages and the signals in the database are established, and a Panel is edited by using a Panel Designer tool carried in CANoe software.
CAPL language programming
The established network database and the design of the display panel, but the nodes are not communicated with each other, and the sent messages can not be responded and processed, so that the nodes need to be programmed in CAPL language to realize corresponding functions. The programming uses a system event (on start), a CAN message event (on message), a time event (on time), an environment variable event (on envVar), and the like.
The Engine system node Engine is used for acquiring a protocol data frame of the rotating speed of the automobile Engine from the CAN bus, analyzing the rotating speed and displaying the analyzed rotating speed on a display panel:
on message Enginemsg
{
If(this.byte(7)==0x13)
{
putValue(EnvEngineSpeedMeter,this.EngineSpeed.phys);
}
else
{
this.EngineSpeed=0;
}
}
the sending node Send is used for sending the engine speed request data frame at fixed time, and the fixed time is 200 ms:
variables
{
Messagesendmsgmsg1; msTimertimer2;
}
on start
{
setTimer(timer2,200);}
on timer timer2 {
setTimer(timer2,200);
msg1.byte(0)=0x12;msg1.byte(1)=0x00;
msg1.byte(2)=0x02;msg1.byte(3)=0x21;
msg1.byte(4)=0x07;
output(msg1);
}
4. analyzing the operation result of the simulation system: and according to the obtained engine speed data and the result displayed by the instrument. When communication is carried out in the simulation system, messages which can be normally sent and received can be checked from a Trace tracking window of CANoe software, and the simulation system can be verified to be capable of normally communicating. The tracking window records a message for acquiring the engine speed parameter, and simultaneously displays a corresponding engine speed value on a display panel in the CANoe.
And obtaining the engine rotating speed value of the Skodak automobile by using an automobile diagnostic instrument. The simulation system obtains that the engine speed is consistent with that of the automobile diagnostic instrument. Therefore, the accuracy of the analyzed protocol of the engine system rotating speed parameter is verified.
5. Monitoring the nodes: the monitoring node controller provides an automobile physical parameter application to an automobile ECU through a photoelectric isolation and CAN transceiver and a CAN bus, and the automobile ECU sends a protocol data frame containing physical parameters to the CAN bus after receiving an application instruction; the controller receives the protocol data frame through the CAN bus, the CAN transceiver and the photoelectric isolation, analyzes the protocol according to the protocol, acquires the physical parameters and displays the physical parameters on the display.
On the monitoring system, the same data acquisition and analysis method can be used for acquiring main parameters and alarm information in the running process of the automobile and displaying the parameters in real time, so that the running state parameters of the automobile are visualized, a driver can know the running state of the automobile conveniently, and the driving safety is improved.

Claims (6)

1. The utility model provides a vehicle-mounted CAN bus monitored control system which characterized in that: including CAN bus analysis appearance and control node, CAN bus analysis appearance is connected with the on-vehicle diagnostic apparatus of control node and car respectively, the control node includes controller, optoelectronic isolation module, CAN transceiver, power module and display module, power module's output is connected with the controller, and display module's input/output end is connected with the controller respectively, and optoelectronic isolation module's input/output end is connected with the controller respectively, and CAN transceiver's input/output end is connected with optoelectronic isolation module respectively, and CAN transceiver's input/output end is connected with CAN bus analysis appearance respectively.
2. The on-board CAN bus monitoring system of claim 1, wherein: CAN bus analysis appearance passes through PC and is connected with the control node, and CAN bus analysis appearance passes through CANPro and CANoe and is connected with the control node, and CAN bus analysis appearance passes through OBD II and is connected with on-vehicle diagnostic device.
3. The on-board CAN bus monitoring system of claim 2, wherein: the vehicle-mounted diagnostic instrument and the CAN bus analyzer form a protocol data acquisition tool for physical parameters of the automobile, and capture and display protocol data frames are acquired through the CAN Pro, and a communication protocol of the parameters is analyzed and analyzed; according to the parameter communication protocol, a CANoe semi-physical simulation platform is set up for verifying the accuracy of the parameter communication protocol; and the monitoring node is connected with a CAN bus of the vehicle-mounted OBD II of the automobile through a CAN interface according to the parameter communication protocol, so that physical parameter application is carried out on the automobile ECU, a physical parameter protocol data frame is obtained, and the physical parameters are obtained after analysis for real-time monitoring.
4. The on-board CAN bus monitoring system of claim 3, wherein: CAN bus analysis appearance is to CAN bus data analysis, and the car couples together through OBD interface and CAN bus network fast, and CANpro snatchs and shows the data frame on the on-vehicle CAN bus, through information such as ID field, data length of analysis data frame, carries out contrastive analysis with car physical parameter to resolve out the communication protocol of car physical parameter.
5. The on-board CAN bus monitoring system of claim 3, wherein: building a semi-physical simulation model through the CANoe, directly communicating with an automobile ECU through an OBD II interface, acquiring and displaying automobile physical parameters; thereby verifying the communication protocol of the automobile physical parameters analyzed in the foregoing.
6. The on-board CAN bus monitoring system of claim 3, wherein: the OBD II interface is used for being connected with a vehicle computer, collecting parameter data in the vehicle computer according to the received instruction and sending the parameter data to the CAN transceiver.
CN201911037926.7A 2019-10-29 2019-10-29 Vehicle-mounted CAN bus monitoring system Pending CN110843705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911037926.7A CN110843705A (en) 2019-10-29 2019-10-29 Vehicle-mounted CAN bus monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911037926.7A CN110843705A (en) 2019-10-29 2019-10-29 Vehicle-mounted CAN bus monitoring system

Publications (1)

Publication Number Publication Date
CN110843705A true CN110843705A (en) 2020-02-28

Family

ID=69598111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911037926.7A Pending CN110843705A (en) 2019-10-29 2019-10-29 Vehicle-mounted CAN bus monitoring system

Country Status (1)

Country Link
CN (1) CN110843705A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083710A (en) * 2020-09-04 2020-12-15 南京信息工程大学 Vehicle-mounted network CAN bus node monitoring system and method
CN113688397A (en) * 2021-08-20 2021-11-23 泰安北航科技园信息科技有限公司 System for automatically detecting bus defect loophole

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083710A (en) * 2020-09-04 2020-12-15 南京信息工程大学 Vehicle-mounted network CAN bus node monitoring system and method
CN113688397A (en) * 2021-08-20 2021-11-23 泰安北航科技园信息科技有限公司 System for automatically detecting bus defect loophole

Similar Documents

Publication Publication Date Title
CN105573296B (en) Vehicle diagnosis automatization test system and method based on hardware in loop
CN110233768B (en) UDS-based CAN bus test system and CAN bus test method
CN103412562B (en) Automotive universal Diagnostic Test Set
CN110162008B (en) CAN bus analysis method for new energy vehicle
JP2019516145A (en) Method and apparatus for remote diagnosis of automobile
CN107222362A (en) A kind of vehicle CAN network automatic test platform and its optimization method
US7987002B2 (en) Arrangement for distributed measurement system for measurement and simulation in distributed control systems
CN103217969B (en) Based on the remote automobile diagnostic system of a key navigation mobile service platform
CN102621979A (en) Data acquisition and fault diagnosis terminal for vehicle
WO2015112813A1 (en) Automotive inspection system using network-based computing infrastructure
CN106338978A (en) CAN bus communication function test system and test method thereof
CN103471621A (en) Testing method and device applicable to vehicle navigation multimedia terminal
Hu et al. Developing PC-based automobile diagnostic system based on OBD system
CN112327807A (en) Automobile fault diagnosis and monitoring system and method based on IVI host
CN107450354B (en) Interface simulation system of train control vehicle-mounted equipment and train control data testing method
CN202677184U (en) Data acquisition and fault diagnosis terminal for vehicle
CN103778688A (en) Car operation data acquisition device based on car diagnosis technology
CN110843705A (en) Vehicle-mounted CAN bus monitoring system
CN111381574A (en) Vehicle remote fault diagnosis system and method
CN203534602U (en) Testing equipment suitable for vehicle-mounted navigation multimedia terminal
CN110647139B (en) Evaluation test tool and evaluation test method for OBD (on-Board diagnostics) mass production vehicle
CN103676659A (en) Diagnostic apparatus with intelligent recording function and recording method thereof
CN201842089U (en) Device and system for remote automobile diagnosis and automobile
CN108389282A (en) A kind of vehicle mounted failure self diagnosis early warning cloud system
CN212148720U (en) Vehicle-mounted CAN bus monitoring 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