CN110320896A - The command sending method of vehicle diagnostic equipment - Google Patents

The command sending method of vehicle diagnostic equipment Download PDF

Info

Publication number
CN110320896A
CN110320896A CN201910734790.9A CN201910734790A CN110320896A CN 110320896 A CN110320896 A CN 110320896A CN 201910734790 A CN201910734790 A CN 201910734790A CN 110320896 A CN110320896 A CN 110320896A
Authority
CN
China
Prior art keywords
data
frame
order
vehicle
flash file
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
CN201910734790.9A
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.)
Shanghai Xingrong Automobile Technology Co Ltd
Original Assignee
Shanghai Xingrong Automobile Technology 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 Shanghai Xingrong Automobile Technology Co Ltd filed Critical Shanghai Xingrong Automobile Technology Co Ltd
Priority to CN201910734790.9A priority Critical patent/CN110320896A/en
Publication of CN110320896A publication Critical patent/CN110320896A/en
Pending legal-status Critical Current

Links

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/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

A kind of command sending method of vehicle diagnostic equipment, include: that computer is connected into Two Channels CAN Bus analyzer, the Two Channels CAN Bus analyzer is connected into vehicle diagnostics mouth, passes through the CAN_FLASH file of the corresponding order of ECANTolls software development on the computer;CAN_FLASH file is uploaded to Cloud Server;When sending order to vehicle, the order that diagnostic device is selected according to user obtains corresponding frame ID, meanwhile, corresponding CAN_FLASH file is downloaded from the Cloud Server according to the order of user's selection;The data in the CAN_FLASH file are read, CAN protocol is based on, and according to the frame ID, frame data are found from data, and then find the valid data in frame data;The valid data are sent to vehicle diagnostics mouth by the frame ID by the diagnostic device.The present invention is simple, efficient, can widely be used in automobile diagnosis technique field.

Description

The command sending method of vehicle diagnostic equipment
Technical field
The present invention relates to vehicle diagnostic equipment technical field more particularly to a kind of order senders of vehicle diagnostic equipment Method.
Background technique
Currently, when vehicle diagnostic equipment sends to vehicle and orders, it usually needs obtain data from HEX file.HEX text Part is a kind of hexadecimal text file, itself contains a large amount of data.Such as ECU chip is write with a brush dipped in Chinese ink with HEX formatted file, It first has to parse every segment data, then every segment data is burnt at the corresponding position of ECU chip to the data sectional in HEX file.
By taking HEX file data shown in Fig. 2 as an example, wherein the address of first character section 30 is 8,000 0000 (referring to black Color box), the address of last bit byte 03 (referring to black box) is 8000 02EF, it is necessary first to be divided the data into according to address Several segments, parse every segment data, then replace these data originally in the position of ECU chip, such mode trouble, efficiency It is low.
Summary of the invention
Based on this, in view of the above technical problems, a kind of command sending method of vehicle diagnostic equipment is provided.
In order to solve the above technical problems, the present invention adopts the following technical scheme:
A kind of command sending method of vehicle diagnostic equipment, comprising:
Computer is connected into Two Channels CAN Bus analyzer, the Two Channels CAN Bus analyzer is connected into vehicle diagnostics Mouthful, pass through the CAN_FLASH file of the corresponding order of ECANTolls software development on the computer;
CAN_FLASH file is uploaded to Cloud Server;
When sending order to vehicle, the order that diagnostic device is selected according to user obtains corresponding frame ID, meanwhile, according to The order of user's selection downloads corresponding CAN_FLASH file from the Cloud Server;
The data in the CAN_FLASH file are read, CAN protocol is based on, and according to the frame ID, are found from data Frame data, and then find the valid data in frame data;
The valid data are sent to vehicle diagnostics mouth by the frame ID by the diagnostic device.
The diagnostic device provides the command selection interface for selecting for user.
There is order and the corresponding table of frame ID in the database of the diagnostic device.
The present invention uses CAN_FLASH file when sending order, compares traditional approach, eliminates the place to data sectional Reason, because CAN_FLASH File has inherently divided the data of section, it is only necessary to the number in CAN_FLASH file According to parsing, this method is simpler, more efficiently, and basic 90% or more automobile electric control system is to use CAN protocol communication, therefore, CAN_FLASH formatted file can widely be used in automobile diagnosis technique field.
Detailed description of the invention
The following describes the present invention in detail with reference to the accompanying drawings and specific embodiments:
Fig. 1 is the schematic diagram data in CAN_FLASH file of the invention;
Fig. 2 is the schematic diagram data of HEX file.
Specific embodiment
A kind of command sending method of vehicle diagnostic equipment, comprising:
One, computer connected into Two Channels CAN Bus analyzer, examine Two Channels CAN Bus analyzer connection vehicle Fracture passes through the CAN_FLASH file (file of .CAN format) of the corresponding order of ECANTolls software development on computer.
CAN_FLASH documenting process is as follows:
1, ECANTolls software is opened, into setup parameter interface: selecting device type (such as USBCAN-V5);Point impact It opens up standby;It selects operating mode (such as normal mode);Selection and the consistent baud rate of vehicle ECU;Point determines.Production is corresponding different The CAN_FLASH file of order only need to set corresponding parameter, and details are not described herein again.
2, enter software after setting parameter, the sys lamp of CAN bus analyzer can enter flashing state at this time, with vehicle ECU communication carries out log message data, at this point, the CAN lamp that CAN bus analyzer receives the respective channel of message can dodge It is bright.
3, it after the completion of recording, clicks the interface upper left corner and saves data, select autoexec, desired CAN_ can be obtained FLASH file.
Two, CAN_FLASH file is uploaded to Cloud Server.
Three, it is sent to vehicle when ordering (diagnostic device is connect with vehicle diagnostics mouth), diagnostic device is selected according to user Order, obtains corresponding frame ID, meanwhile, corresponding CAN_FLASH file is downloaded from Cloud Server according to the order of user's selection.
Wherein, mentioned order includes that ECU writes with a brush dipped in Chinese ink function, time data stream, Read fault code, clear error code, reading version information etc..
Diagnostic device provides command selection interface for selecting for user, have in the database of diagnostic device order with The correspondence table of frame ID, user have selected that corresponding frame ID can be found after order.
Four, the data in CAN_FLASH file are read, CAN protocol is based on, and according to above-mentioned frame ID, are found from data Frame data, and then find the valid data in frame data.
The present invention uses CAN_FLASH file when sending order, compares traditional approach, eliminates the place to data sectional Reason, because CAN_FLASH File has inherently divided the data of section, it is only necessary to the number in CAN_FLASH file According to parsing, this method is simpler, more efficiently, and basic 90% or more automobile electric control system is to use CAN protocol communication, therefore, can widely be used in automobile diagnosis technique field.
In order to make it easy to understand, opening the data content after CAN_FLASH file by file editor referring to Fig. 1.
According to CAN protocol, every every data of a line are defined as follows (from left to right) in Fig. 1:
1) first: frame time interval;
2) second: standard frame 0 extends frame 1;
3) third position: data frame 0, remote frame 1;
4) the 4th: frame ID;
4) the 5th: frame data.
As a result, by matching frame ID, we can find frame data, and then pass through the definition in CAN protocol to frame data.
By taking Fig. 1 as an example, in the first row, 03 be effective byte length, i.e., 3, followed by order 22 F1 94.? In two rows, 10 represent multiframe, and 0E represents effective byte length, i.e., 14, therefore valid data can be in second, the 4th, fifth line In find, 62 F1 94 32 37 35 in the second row, in 37 37 30 33 35 30 32 and fifth line in fourth line 30, amount to 14.(fourth line primary 21 and fifth line first 22 are considered as label, serial number, without practical meaning Justice).
Five, valid data are sent to vehicle diagnostics mouth by above-mentioned frame ID by diagnostic device.
It is exemplified below:
1, in diagnosis, user has selected ECU flash command on diagnostic device, and corresponding frame ID is 18DAF100, together When, diagnostic device writes with a brush dipped in Chinese ink the corresponding CAN_FLASH file of function from Cloud Server downloading ECU.
2, the data in CAN_FLASH file are read, data match 18DAF100 referring to Fig. 1, the 2nd, 4,5, 7, the frame data that corresponding 18DAF100 is found in 9,10 rows, in the frame data (10 0E, 62 F1 94 32 37 35) of the 2nd row In, first 10 represents multiframe, and second 0E represents effective byte length, i.e., 14, then takes 14 to be had since 62 Imitate data:
62 F1 94 32 37 35 37 37 30 33 35 30 32 30。
3, diagnostic device passes through above-mentioned frame ID (18DAF100) for valid data (62 F1 94 32 37 35 37 37 30 30) 33 35 30 32 are sent to vehicle diagnostics mouth, vehicle identification frame ID learns that receiving is ECU flash command, and then will 62 F1 94 32 37 35 37 37 30 33 35 30 32 30 replacement corresponding position in ECU chip.
But those of ordinary skill in the art it should be appreciated that more than embodiment be intended merely to illustrate this Invention, and be not used as limitation of the invention, as long as in spirit of the invention, to embodiment described above Variation, modification will all fall within the scope of claims of the present invention.

Claims (3)

1. a kind of command sending method of vehicle diagnostic equipment characterized by comprising
Computer is connected into Two Channels CAN Bus analyzer, the Two Channels CAN Bus analyzer is connected into vehicle diagnostics mouth, is led to Cross the CAN_FLASH file of the corresponding order of ECANTolls software development on the computer;
CAN_FLASH file is uploaded to Cloud Server;
When sending order to vehicle, the order that diagnostic device is selected according to user obtains corresponding frame ID, meanwhile, according to user The order of selection downloads corresponding CAN_FLASH file from the Cloud Server;
The data in the CAN_FLASH file are read, CAN protocol is based on, and according to the frame ID, frame number is found from data According to, and then find the valid data in frame data;
The valid data are sent to vehicle diagnostics mouth by the frame ID by the diagnostic device.
2. a kind of command sending method of vehicle diagnostic equipment according to claim 1, which is characterized in that the diagnosis is set The standby command selection interface provided for being selected for user.
3. a kind of command sending method of vehicle diagnostic equipment according to claim 1 or 2, which is characterized in that described to examine There is order and the corresponding table of frame ID in the database of disconnected equipment.
CN201910734790.9A 2019-08-09 2019-08-09 The command sending method of vehicle diagnostic equipment Pending CN110320896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910734790.9A CN110320896A (en) 2019-08-09 2019-08-09 The command sending method of vehicle diagnostic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910734790.9A CN110320896A (en) 2019-08-09 2019-08-09 The command sending method of vehicle diagnostic equipment

Publications (1)

Publication Number Publication Date
CN110320896A true CN110320896A (en) 2019-10-11

Family

ID=68125817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910734790.9A Pending CN110320896A (en) 2019-08-09 2019-08-09 The command sending method of vehicle diagnostic equipment

Country Status (1)

Country Link
CN (1) CN110320896A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102226877A (en) * 2011-05-16 2011-10-26 湖南南车时代电动汽车股份有限公司 General CAN (controller area network) monitoring method based on network protocols
CN102798833A (en) * 2012-08-23 2012-11-28 浙江吉利汽车研究院有限公司杭州分公司 Automatic test system and method for diagnosis instrument
CN105025058A (en) * 2014-04-28 2015-11-04 广州汽车集团股份有限公司 Vehicle remote diagnosis method, vehicle remote monitoring method and vehicle-mounted terminal
CN106648590A (en) * 2016-09-29 2017-05-10 成都雅骏新能源汽车科技股份有限公司 Configuration method for upper computer software of motor controller
WO2017104112A1 (en) * 2015-12-16 2017-06-22 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Security processing method and server
CN106950864A (en) * 2017-04-11 2017-07-14 重庆长安汽车股份有限公司 The CAN communication program creating method and device of a kind of entire car controller
CN107479525A (en) * 2016-12-23 2017-12-15 宝沃汽车(中国)有限公司 Vehicle remote diagnosis system and its control method
CN109814531A (en) * 2019-01-28 2019-05-28 深圳市元征科技股份有限公司 A kind of automatic diagnosis method based on cloud platform, system and relevant device
CN109995872A (en) * 2019-04-09 2019-07-09 上海星融汽车科技有限公司 Vehicle communication analogy method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102226877A (en) * 2011-05-16 2011-10-26 湖南南车时代电动汽车股份有限公司 General CAN (controller area network) monitoring method based on network protocols
CN102798833A (en) * 2012-08-23 2012-11-28 浙江吉利汽车研究院有限公司杭州分公司 Automatic test system and method for diagnosis instrument
CN105025058A (en) * 2014-04-28 2015-11-04 广州汽车集团股份有限公司 Vehicle remote diagnosis method, vehicle remote monitoring method and vehicle-mounted terminal
WO2017104112A1 (en) * 2015-12-16 2017-06-22 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Security processing method and server
CN106648590A (en) * 2016-09-29 2017-05-10 成都雅骏新能源汽车科技股份有限公司 Configuration method for upper computer software of motor controller
CN107479525A (en) * 2016-12-23 2017-12-15 宝沃汽车(中国)有限公司 Vehicle remote diagnosis system and its control method
CN106950864A (en) * 2017-04-11 2017-07-14 重庆长安汽车股份有限公司 The CAN communication program creating method and device of a kind of entire car controller
CN109814531A (en) * 2019-01-28 2019-05-28 深圳市元征科技股份有限公司 A kind of automatic diagnosis method based on cloud platform, system and relevant device
CN109995872A (en) * 2019-04-09 2019-07-09 上海星融汽车科技有限公司 Vehicle communication analogy method

Similar Documents

Publication Publication Date Title
CN111024405B (en) Automobile diagnosis method, related device and system
US6373822B1 (en) Data network protocol conformance test system
CN108965293B (en) Message analysis method and device and electronic equipment
CN101651683B (en) Method for generating analysis source code of signaling message
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
CN110223415A (en) Diagnostic method and its system based on the identification of vehicle electrically controlling module software information
CN105161130A (en) Method for on-line burning and verifying method of EEPROM of automobile instrument
CN110658777A (en) HMI-based method for realizing communication, interaction and alarm management between control terminals
CN106444619B (en) A kind of one-stop control system of industrial instrumentation based on industrial personal computer
CN109660436B (en) Dual-CAN channel data processing method, gateway equipment and system
CN205721746U (en) BIOS starts module and system board
US7143155B1 (en) Standardized method and apparatus for gathering device identification and/or configuration information via a physical interface
CN110320896A (en) The command sending method of vehicle diagnostic equipment
CN110995533A (en) Ethernet streaming test system
CN107577220A (en) A kind of restorative procedure of program, device and electronic equipment
US10608933B2 (en) Data reproduction device for plant-monitoring control system
CN116074232A (en) Processing method for generating vehicle-mounted gateway routing table based on DBC file analysis
WO2020150863A1 (en) Optical communication module testing method and apparatus and terminal device
CN105718395B (en) A kind of multiple serial communication system and method based on FPGA
CN205121274U (en) Serial ports stipulations message signal testing terminal row
CN102722592B (en) Universal digital information recording device and method
CN107171824B (en) Wifi disconnection processing method of terminal, terminal and storage device
CN108536085A (en) A kind of monobus means of communication and system
CN105554172B (en) Iversion controller addressing method, iversion controller, main control device addressing control method and main control device in landscape lamp system
CN115981679A (en) Automobile controller writing method capable of editing burning process

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191011