CN110850853B - Frozen frame reading method based on CANape tool - Google Patents

Frozen frame reading method based on CANape tool Download PDF

Info

Publication number
CN110850853B
CN110850853B CN202010034159.0A CN202010034159A CN110850853B CN 110850853 B CN110850853 B CN 110850853B CN 202010034159 A CN202010034159 A CN 202010034159A CN 110850853 B CN110850853 B CN 110850853B
Authority
CN
China
Prior art keywords
fault
data
canape
fault code
reading
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.)
Active
Application number
CN202010034159.0A
Other languages
Chinese (zh)
Other versions
CN110850853A (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.)
Shengrui Transmission Co Ltd
Original Assignee
Shengrui Transmission 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 Shengrui Transmission Co Ltd filed Critical Shengrui Transmission Co Ltd
Priority to CN202010034159.0A priority Critical patent/CN110850853B/en
Publication of CN110850853A publication Critical patent/CN110850853A/en
Application granted granted Critical
Publication of CN110850853B publication Critical patent/CN110850853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0275Fault isolation and identification, e.g. classify fault; estimate cause or root of failure

Abstract

The invention discloses a freeze frame reading method based on a CANape tool, which comprises a configuration project, a TCU and a data processing unit, wherein the configuration project is connected with the TCU; selecting a fault code table, importing the fault code table, and reading a fault code; selecting a fault to be analyzed; reading the fault code storage freeze frame data, and analyzing the freeze frame data; location and cause of failure; other fault needs are analyzed, the CANape-based freeze frame reading method is developed by using the scripting language support of the CANape, the operation is conveniently carried out in the modes of windows, menus, keys and the like, and the freeze frame reading efficiency and the accuracy are improved.

Description

Frozen frame reading method based on CANape tool
Technical Field
The invention belongs to the technical field of automatic transmission control, and particularly relates to a freeze frame reading method based on a CANape tool.
Background
The automatic transmission control unit TCU records fault codes and freeze frames during operation, and when reading the freeze frames, engineers need to analyze the freeze frame signals into signals with specific physical meanings (such as current gear, vehicle speed, transmission oil temperature, etc.) according to different fault codes, so as to determine the technical condition of the transmission case and find out the fault position and reason without disassembly.
Conventional freeze frame reading procedure: firstly, defining fault codes including codes corresponding to faults and definitions in software; secondly, establishing connection with the TCU, and setting an instruction for reading a fault code of the freeze frame by using a fixed interface and a fixed service according to a UDS protocol; then, reading the frozen frame data corresponding to the fault code by using an instruction; finally, analyzing the frozen frame data, and calculating the physical values of all DID signals according to the specified DID definition signal, Factor and offset so as to be used by engineers for analyzing fault positions and reasons.
In the process of implementing the invention, the inventor finds that the prior art has at least the following defects: the existing frozen frame reading method needs a plurality of pieces of software to be used in a matched mode, and relates to the use of a CANape interface and the query of a plurality of files, as shown in figure 1, the steps of an analysis process are complicated, more diagnosis knowledge needs to be known, and inconvenience is brought to the frozen frame reading work.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a freeze frame reading method based on a CANape tool, which overcomes the defects of the existing control method.
In order to solve the technical problems, the technical scheme of the invention is as follows: a freeze frame reading method based on a CANape tool is characterized by comprising the following steps:
the method comprises the following steps: configuring a freezing frame script project and preparing a fault code corresponding table;
step two: reading and importing a fault code corresponding table by using a self-contained script support function and a fixed language provided by a CANape, compiling and selecting a fault needing to be analyzed, and then compiling frozen frame data corresponding to the fault and analyzing the frozen frame data into a physical value code;
step three: and analyzing the fault position and the reason according to the physical value of the analyzed freezing frame data.
An optimization scheme, wherein the first step comprises the following steps:
starting at step 101, and then proceeding to step 102;
102, configuring a project and connecting a TCU; connecting a TCU (remote control Unit) with a CANape tool by using an engineering configured with a freeze frame script, and entering step 103;
103, judging whether the connection is successful, if so, entering a step 104, and if not, returning to the step 102;
step 104, selecting a fault code table, wherein the fault code table of each item is different, preparing a table corresponding to the TCU fault code and the fault displayed in the software in advance, selecting the fault code table of the corresponding item, and entering step 105.
An optimization scheme, the second step comprises:
step 105, importing a fault code table; the CANape software has a table reading function, programs for guiding the fault code table into the script use interface are written by using a fixed language, and the step 106 is entered;
step 106, confirming whether the fault code is successfully imported under the write window of the CANape software, if so, entering step 107, otherwise, returning to step 105;
step 107, reading a fault code; reading a fault code of the frozen frame data stored in the TCU by using a service 1903 instruction in the UDS protocol by the existing frozen frame script, replying a positive response by the service, checking a fault corresponding to the fault code in a fault code table according to the response, displaying the fault on a frozen frame reading interface, and then entering step 108;
step 108, selecting the fault to be analyzed; selecting a fault to be analyzed by using a selection button built in the CANape on a CANape freeze frame reading interface, and then entering step 109;
step 109, reading the fault code storage freeze frame data, recording the fault code as XX, reading the accessed UDS freeze frame data by using 1904 XX 01 in the UDS protocol, and then entering step 110;
step 110, analyzing frozen frame data; the frozen frame data comprises data addresses and data, the data addresses and the data are fixed in length, the data addresses and the data are classified correspondingly by using C language writing, the data have factors and offsets, A = B factor + offset formulas are written, a data physical value A is finally obtained, the meaning of the data and the data is displayed on a frozen frame reading interface, and then the operation enters step 111.
An optimization scheme, step three includes:
step 111, fault location and reason; according to all the frozen frame data, an engineer analyzes the fault position and the fault reason, and then the step 112 is carried out;
step 112, judging whether other faults need to be analyzed, if so, returning to step 108, otherwise, entering step 113;
and step 113, ending.
By adopting the technical scheme, compared with the prior art, the invention has the following advantages: the freeze frame reading method based on the CANape is developed by using the support of the scripting language of the CANape, so that the operation can be conveniently carried out in the modes of windows, menus, keys and the like, and the efficiency and the accuracy of the freeze frame reading are improved.
Drawings
FIG. 1 is a flow chart of a current conventional freeze frame reading process;
FIG. 2 is a block diagram of the freeze frame read tool in an embodiment of the present invention;
fig. 3 is a flow chart of freeze frame reading in an embodiment of the invention.
Detailed Description
In order to more clearly understand the technical features, objects and effects of the present invention, the embodiments of the present invention will be described with reference to the accompanying drawings, and it will be understood by those skilled in the art that the following should not be construed as limiting the scope of the present invention.
Embodiment, as shown in fig. 2 and fig. 3, a frozen frame reading method based on a CANape tool is based on the following parts: CAN signal acquisition equipment, PC (be equipped with CANape software), freeze the frame and read the script.
The CAN signal acquisition equipment is used for connecting the TCU to the PC; the freeze frame reading script is used for acquiring the fault of the TCU storage freeze frame in real time, analyzing each signal in the fault code freeze frame, calibrating each signal and the like.
A freeze frame reading method based on a CANape tool is characterized by comprising the following steps:
the method comprises the following steps: configuring a freezing frame script project and preparing a fault code corresponding table of the TCU;
step two: reading and importing a fault code corresponding table by using a self-contained script support function and a fixed language provided by a CANape, compiling and selecting a fault needing to be analyzed, and then compiling frozen frame data corresponding to the fault and analyzing the frozen frame data into a physical value code;
step three: and analyzing the fault position and the reason according to the physical value of the analyzed freezing frame data.
The first step comprises the following steps: starting at step 101, and then proceeding to step 102;
102, configuring a project and connecting a TCU; connecting a TCU (remote control Unit) with a CANape tool by using an engineering configured with a freeze frame script, and entering step 103;
103, judging whether the connection is successful, if so, entering a step 104, and if not, returning to the step 102;
104, selecting a fault code table, wherein the fault code table of each item is different, preparing a table corresponding to the TCU fault code and the fault displayed in the software in advance, selecting the fault code table of the corresponding item, and entering a step 105;
step two: step 105, importing a fault code table; the CANape software has a table reading function, programs for guiding the fault code table into the script use interface are written by using a fixed language, and the step 106 is entered;
step 106, confirming whether the fault code is successfully imported under the write window of the CANape software, if so, entering step 107, otherwise, returning to step 105;
step 107, reading a fault code; reading a fault code of the frozen frame data stored in the TCU by using a service 1903 instruction in the UDS protocol by the existing frozen frame script, replying a positive response by the service, checking a fault corresponding to the fault code in a fault code table according to the response, displaying the fault on a frozen frame reading interface, and then entering step 108;
step 108, selecting the fault to be analyzed; selecting a fault to be analyzed by using a selection button built in the CANape on a CANape freeze frame reading interface, and then entering step 109;
step 109, reading the fault code storage freeze frame data, recording the fault code as XX, reading the accessed UDS freeze frame data by using 1904 XX 01 in the UDS protocol, and then entering step 110;
step 110, analyzing frozen frame data; the frozen frame data comprises data addresses and data, the data addresses and the data are fixed in length, the data addresses and the data are classified correspondingly by using C language writing, the data have factors and offsets, A = B factor + offset formula is written, a data physical value A is finally obtained, the meaning of the data and the data is displayed on a frozen frame reading interface, and then the step 111 is carried out;
step three: step 111, fault location and reason; according to all the frozen frame data, an engineer analyzes the fault position and the fault reason, and then the step 112 is carried out;
step 112, judging whether other faults need to be analyzed, if so, returning to step 108, otherwise, entering step 113;
and step 113, ending.
The foregoing is illustrative of the best mode of the invention and details not described herein are within the common general knowledge of a person of ordinary skill in the art. The scope of the present invention is defined by the appended claims, and any equivalent modifications based on the technical teaching of the present invention are also within the scope of the present invention.

Claims (3)

1. A freeze frame reading method based on a CANape tool is characterized by comprising the following steps:
the method comprises the following steps: configuring a freezing frame script project and preparing a fault code corresponding table;
step two: reading and importing a fault code corresponding table by using a self-contained script support function and a fixed language provided by a CANape, compiling and selecting a fault needing to be analyzed, and then compiling frozen frame data corresponding to the fault and analyzing the frozen frame data into a physical value code;
step three: analyzing fault positions and reasons according to the physical values of the analyzed freezing frame data;
the first step comprises the following steps:
after the start, step 102 is entered;
102, configuring a project and connecting a TCU; connecting a TCU (remote control Unit) with a CANape tool by using an engineering configured with a freeze frame script, and entering step 103;
103, judging whether the connection is successful, if so, entering a step 104, and if not, returning to the step 102;
and 104, selecting a fault code table, wherein the fault code table of each item is different, preparing a table corresponding to the TCU fault code and the fault displayed in the software in advance, selecting the fault code table of the corresponding item, and entering the step two.
2. The CANape-tool-based frozen frame reading method of claim 1, wherein step two comprises:
step 105, importing a fault code table; the CANape software has a table reading function, programs for guiding the fault code table into the script use interface are written by using a fixed language, and the step 106 is entered;
step 106, confirming whether the fault code is successfully imported under the write window of the CANape software, if so, entering step 107, otherwise, returning to step 105;
step 107, reading a fault code; reading a fault code of the frozen frame data stored in the TCU by using a service 1903 instruction in the UDS protocol by the existing frozen frame script, replying a positive response by the service, checking a fault corresponding to the fault code in a fault code table according to the response, displaying the fault on a frozen frame reading interface, and then entering step 108;
step 108, selecting the fault to be analyzed; selecting a fault to be analyzed by using a selection button built in the CANape on a CANape freeze frame reading interface, and then entering step 109;
step 109, reading the fault code storage freeze frame data, recording the fault code as XX, reading the accessed UDS freeze frame data by using 1904 XX 01 in the UDS protocol, and then entering step 110;
step 110, analyzing frozen frame data; the frozen frame data comprises data addresses and data, the data addresses and the data are fixed in length, the data addresses and the data are classified correspondingly by using C language writing, the data have factors and offsets, A = B factor + offset formulas are written, a data physical value A is finally obtained, the meaning of the data and the data is displayed on a frozen frame reading interface, and then the step III is carried out.
3. The CANape tool-based frozen frame reading method of claim 2, wherein step three comprises:
step 111, fault location and reason; according to all the frozen frame data, an engineer analyzes the fault position and the fault reason, and then the step 112 is carried out;
step 112, judging whether other faults need to be analyzed, if so, returning to step 108, otherwise, entering step 113;
and step 113, ending.
CN202010034159.0A 2020-01-14 2020-01-14 Frozen frame reading method based on CANape tool Active CN110850853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010034159.0A CN110850853B (en) 2020-01-14 2020-01-14 Frozen frame reading method based on CANape tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010034159.0A CN110850853B (en) 2020-01-14 2020-01-14 Frozen frame reading method based on CANape tool

Publications (2)

Publication Number Publication Date
CN110850853A CN110850853A (en) 2020-02-28
CN110850853B true CN110850853B (en) 2020-05-05

Family

ID=69610667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010034159.0A Active CN110850853B (en) 2020-01-14 2020-01-14 Frozen frame reading method based on CANape tool

Country Status (1)

Country Link
CN (1) CN110850853B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841271A (en) * 2012-05-10 2012-12-26 同济大学 Electromagnetic compatibility testing platform for electric control unit of double-clutch automatic transmission
WO2014037517A1 (en) * 2012-09-10 2014-03-13 Continental Automotive Gmbh Data recording device for a vehicle network
CN104848817A (en) * 2015-05-26 2015-08-19 安徽江淮汽车股份有限公司 Testing apparatus for filter oil suction port position properness and test method
CN205843949U (en) * 2016-07-25 2016-12-28 重庆红江机械有限责任公司 Cylinder of diesel engine oil syringe detection controller
CN107797540A (en) * 2016-09-07 2018-03-13 上海汽车集团股份有限公司 TRANS PROGRAM method of testing, device and terminal
CN107145140B (en) * 2017-05-18 2019-12-27 中国第一汽车股份有限公司 Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841271A (en) * 2012-05-10 2012-12-26 同济大学 Electromagnetic compatibility testing platform for electric control unit of double-clutch automatic transmission
WO2014037517A1 (en) * 2012-09-10 2014-03-13 Continental Automotive Gmbh Data recording device for a vehicle network
CN104848817A (en) * 2015-05-26 2015-08-19 安徽江淮汽车股份有限公司 Testing apparatus for filter oil suction port position properness and test method
CN205843949U (en) * 2016-07-25 2016-12-28 重庆红江机械有限责任公司 Cylinder of diesel engine oil syringe detection controller
CN107797540A (en) * 2016-09-07 2018-03-13 上海汽车集团股份有限公司 TRANS PROGRAM method of testing, device and terminal
CN107145140B (en) * 2017-05-18 2019-12-27 中国第一汽车股份有限公司 Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit

Also Published As

Publication number Publication date
CN110850853A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
WO2019205858A1 (en) Vehicle diagnosis method, apparatus, and device
WO2017000424A1 (en) Protocol detection method and apparatus
WO2009107174A1 (en) Automatic reproduction testing equipment in built-in system and method of testing automatic reproduction
CN203502040U (en) Test system for vehicle multimedia terminal
CN107766209B (en) Central control automation test method, device, equipment and computer readable storage medium
CN113190454A (en) Real-vehicle test method and system for vehicle-mounted terminal software
CN110221979A (en) Performance test methods, device, equipment and the storage medium of application program
CN110850853B (en) Frozen frame reading method based on CANape tool
CN113934804A (en) Automatic interpretation method for remote measurement parameters of control subsystem of deep space exploration spacecraft
CN112835755A (en) Test data acquisition method, device and equipment and computer storage medium
CN103676659A (en) Diagnostic apparatus with intelligent recording function and recording method thereof
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN107576864B (en) Self-learning type relay protection automatic test method and system
CN116079724A (en) Robot fault detection method and device, storage medium and robot
CN113691669B (en) Android mobile phone APP control vehicle full-process test analysis system and method
CN114879647A (en) ECU fault code test system, electronic controller and car
CN112579435B (en) Method and system for debugging HTML5APP on intelligent Linux television operating system
CN111008113B (en) SAS-Expander test method and tool
CN114115168A (en) Fault injection test system
JP2022084087A (en) Failure analyzing device and failure analyzing method
CN112987676A (en) Intelligent recognition system and method for automobile type
CN111930456A (en) Display method of test log, electronic device and storage medium
CN116541229B (en) Data-driven communication debugging method and system
CN112506095B (en) Automatic test system and method for touch keys
CN114001939B (en) Line connection device monitoring method, device, equipment and storage medium

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