CN104216391B - Automotive type recognition method of automobile decoder - Google Patents
Automotive type recognition method of automobile decoder Download PDFInfo
- Publication number
- CN104216391B CN104216391B CN201310215281.8A CN201310215281A CN104216391B CN 104216391 B CN104216391 B CN 104216391B CN 201310215281 A CN201310215281 A CN 201310215281A CN 104216391 B CN104216391 B CN 104216391B
- Authority
- CN
- China
- Prior art keywords
- vehicle
- automobile
- diagnosis
- decoder
- corresponding relation
- 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
Links
Landscapes
- Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides an automobile decoder and an automotive type recognition method thereof. The method includes the steps: the automobile decoder establishes diagnosis communication connection with an electronic control unit of a current automobile through a diagnosis port of the automobile decoder; the automobile decoder acquires feature information of the current automobile by means of diagnosis communication connection, and feature information of various types of automobiles is stored in the automobile decoder; the automobile decoder compares the feature information of the current automobile with the stored feature information of various types of automobiles and recognizes the type of the current automobile according to comparison results. After the decoder is mounted on a corresponding type of automobile by a user, the decoder starts self-learning during electrification for initialization for each time so as to acquire automobile information to automatically recognize various automobile types, and the whole process is simple, quick and effective.
Description
Technical field
The present invention relates to automobile technical field, and in particular to a kind of method of automobile decoder and its identification vehicle.
Background technology
With developing rapidly for automotive electronic technology, on-vehicle information communication is increasingly becoming automobile factory with information entertainment
The focus that business pursues.And bus signals and diagnostic message are to realize the indispensable content of car entertainment information, this gives Hou Zhuan cities
Field automobile decoder prevailing brings certain challenge.
At present, the decoder great majority on market are all to be confined to OBD(OBD)Information, or
It is confined to decode the information of a certain vehicle.Because the In-vehicle networking of different automobile types is different, its bus data storehouse, diagnostic data
Storehouse is also different, therefore decoder can only be individually developed for a certain vehicle, it is impossible to the various vehicles of automatic identification, it is impossible to
Decoder is adapted to into various vehicles.
The content of the invention
The features and advantages of the present invention are partly stated in the following description, or can from the description it is clear that or
Person can be learnt by putting into practice the present invention.
To overcome problem of the prior art, a kind of method that the present invention provides automobile decoder and its identification vehicle to solve
The deficiency of the specificity that current decoder device is present, makes the various vehicles of decoder automatic identification, so as to adapt to various vehicles.
The technical scheme adopted by present invention solution above-mentioned technical problem is as follows:
According to an aspect of the present invention, there is provided a kind of method that automobile decoder recognizes vehicle, including:
S1, automobile decoder set up diagnosis communication company by the electronic control unit of diagnosis interface thereon and Current vehicle
Connect;
S2, automobile decoder connect the characteristic information for obtaining Current vehicle by diagnosis communication, store in automobile decoder
There is the characteristic information of various vehicle automobiles;
The characteristic information of S3, automobile decoder by the characteristic information of the Current vehicle of acquisition with the various vehicles of storage is carried out
Relatively, and according to comparative result recognize the vehicle of Current vehicle.
According to one embodiment of present invention, characteristic information include it is following in one or more:The request communication of vehicle
Address designator, reply address identifier and its corresponding relation;The request service identifiers of vehicle, reply service identifiers and its
Corresponding relation;The service identifiers of vehicle and the corresponding relation of Diagnosis Service subfunction;The event that vehicle is supported with electronic control unit
The corresponding relation of barrier code state;The corresponding relation of vehicle and DTC byte length;The corresponding relation of vehicle and vehicle identification code;
The corresponding relation of vehicle and electronic control unit transport layer parameters.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its during corresponding relation, the request address identifier of each vehicle that is stored with automobile decoder, returns
Multiple address identifier and its corresponding relation;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier for being stored, from the electronics control of automobile
Whether unit processed replys address identifier and obtains the address identifier that the vehicle is supported;
In step s3, the address identifier supported according to acquired vehicle, analysis reply address mark
Relation between symbol and request address identifier, with the request address identifier for being stored and reply address mark
The corresponding relation known between symbol is compared, and recognizes vehicle according to whether comparative result matches.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its corresponding relation, and vehicle request service identifiers, when replying service identifiers and its corresponding relation,
The request address identifier of each vehicle is stored in automobile decoder, address identifier and its corresponding relation is replied, and
Store the request service identifiers of each vehicle, reply service identifiers and its corresponding relation;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier for being stored, from the electronics control of automobile
The message content that unit processed is replied obtains the service identifiers that the vehicle is supported;
In step s3, the service identifiers supported according to acquired vehicle, analyze the service identifiers replied logical with request
The relation between request service identifiers in the diagnosis request message of news address designator, with the request service identifiers that stored with
The corresponding relation replied between service identifiers is compared, and recognizes vehicle according to whether comparative result matches.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its corresponding relation, and the service identifiers of vehicle and Diagnosis Service subfunction corresponding relation when, in vapour
The request address identifier of each vehicle is stored in car decoder, address identifier and its corresponding relation is replied, and is deposited
Store up the service identifiers of each vehicle and the corresponding relation of Diagnosis Service subfunction;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 10, $ 27 or $ 19, obtains the vehicle from the message content of the electronic control unit reply of automobile
The Diagnosis Service subfunction of support;
In step s3, the Diagnosis Service subfunction supported according to acquired vehicle, each vehicle that inquiry is stored
The corresponding relation of service identifiers and Diagnosis Service subfunction is recognizing vehicle.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its corresponding relation, and the DTC state supported with electronic control unit of vehicle corresponding relation when,
The request address identifier of each vehicle is stored in automobile decoder, address identifier and its corresponding relation is replied,
And store the corresponding relation of the DTC state that each vehicle is supported with electronic control unit;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 19, is $ 01 by Diagnosis Service subfunction value, is replied from the electronic control unit of automobile
Message content obtains the DTC state that the electronic control unit of the vehicle is supported;
In step s3, the DTC state supported according to the electronic control unit of the acquired vehicle, inquiry are deposited
The corresponding relation of the DTC state that each vehicle and the electronic control unit of storage is supported is recognizing vehicle.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its corresponding relation, and vehicle and DTC byte length corresponding relation when, in automobile decoder
Store the request address identifier of each vehicle, reply address identifier and its corresponding relation, and store each vehicle with
The corresponding relation of DTC byte length;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 19, is $ 02 by Diagnosis Service subfunction value, is replied from the electronic control unit of automobile
Message content obtains the DTC byte length of the vehicle;
In step s3, according to acquired DTC byte length, inquire about each vehicle and DTC byte for being stored
The corresponding relation of length is recognizing vehicle.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its corresponding relation, and vehicle and vehicle identification code corresponding relation when, store in automobile decoder
The request address identifier of each vehicle, address identifier and its corresponding relation are replied, and store each vehicle and vehicle
The corresponding relation of identification code;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, the diagnosis request of request address identifier is sent according to the address identifier for being stored
Message, and be $ 09 by the service identifiers value in diagnosis request message, it is $ 02 by type value, from the Electronic Control list of automobile
The message content that unit is replied obtains the vehicle identification code of the vehicle;
In step s3, according to acquired vehicle identification code, inquire about each vehicle for being stored right with vehicle identification code
Should be related to recognize vehicle.
According to one embodiment of present invention, when characteristic information includes the request address identifier of vehicle, replys logical
News address designator and its corresponding relation, and vehicle and electronic control unit transport layer parameters corresponding relation when, in automobile
The request address identifier of each vehicle is stored in decoder, address identifier and its corresponding relation is replied, and is stored
The corresponding relation of each vehicle and electronic control unit transport layer parameters;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, the diagnosis report of request address identifier is sent according to the address identifier for being stored
Text, and be $ 2E by the service identifiers value in diagnosis request message, the message content replied from the electronic control unit of automobile is obtained
Take the electronic control unit transport layer parameters of the vehicle;
In step s3, according to acquired electronic control unit transport layer parameters, inquire about each vehicle and electricity for being stored
The corresponding relation of sub-control unit transport layer parameters is recognizing vehicle.
According to another aspect of the present invention, there is provided a kind of automobile decoder, including:
Memorizer, for the characteristic information of various vehicle automobiles is stored in automobile decoder;
Diagnosis interface unit, sets up diagnosis communication for the electronic control unit with vehicle and is connected, and obtains the characteristic of vehicle
Information;
Microprocessor, is carried out for the characteristic information by the characteristic information of the vehicle of acquisition with the various vehicle automobiles of storage
Relatively, and according to comparative result recognize the vehicle of vehicle.
The invention provides a kind of characteristic information that vehicle is obtained by diagnostic mode so that automobile decoder can be automatic
Recognize various vehicles.Producer is integrated in the communications database and diagnostic data base of different automobile types inside one decoder, decoding
Device integrated diagnosis function, from the ECU of vehicle(Electronic control unit)Characteristic information is obtained in diagnostic message, according to different characteristics
Information automatic identification vehicle, and the communications database and diagnostic data base of corresponding vehicle are called, define one and adapt to difference
The versatility decoder of vehicle.As long as user is arranged on decoder above corresponding vehicle, in each power up initialization process, solution
Code device can self-teaching, obtain information of vehicles, the various vehicles of automatic identification, whole process is simple, quick, effectively.
By reading description, those of ordinary skill in the art will be best understood the feature of these technical schemes and interior
Hold.
Description of the drawings
The present invention is specifically described below with reference to accompanying drawing and with reference to example, advantages of the present invention and implementation will
Become apparent from, wherein shown in accompanying drawing, content is only used for explanation of the present invention, and does not constitute to the present invention in all senses
On restriction, in the accompanying drawings:
Fig. 1 is embodiment of the present invention automobile decoder structural representation;
Fig. 2 is the structural representation that embodiment of the present invention automobile decoder is connected with automobile;
Fig. 3 is that the embodiment of the present invention diagnoses interface diagram;
Fig. 4 is the method flow schematic diagram that embodiment of the present invention automobile decoder recognizes vehicle;
Communications database and diagnostic data base are integrated into the signal in the EEPROM of decoder for the embodiment of the present invention for Fig. 5
Figure;
Vehicle property list is integrated into the schematic diagram in the Flash ROM of decoder for the embodiment of the present invention by Fig. 6;
Fig. 7 is embodiment of the present invention automobile decoder by diagnosing the schematic diagram that interface is connected with automobile.
Specific embodiment
As depicted in figs. 1 and 2, the embodiment of the present invention provides a kind of automobile decoder 100, including:
Memorizer, which includes EEPROM(EEPROM)110 and Flash ROM(Flash memory)Memorizer
120, EEPROM110 for storing the communication data information and diagnostic data information of various vehicle automobiles in automobile decoder,
The communications database and diagnostic data base of various vehicle automobiles are stored for example;Flash ROM memories 120 are for decoding in automobile
The characteristic information of various vehicle automobiles, such as property list 1, property list 2... property lists 7, or property list n are stored in device.
Diagnosis interface unit 140, sets up diagnosis communication for the electronic control unit with vehicle, obtains the characteristic letter of vehicle
Breath.Decoder supports CAN(Controller local area network)Diagnosis communication, sets up diagnosis communication by CAN and vehicle, and transmission is examined
Vehicle ECU is given in disconnected order(Electronic control unit).Diagnosis interface unit 140 includes CAN controller and CAN transceiver, CAN transmitting-receivings
Device is the interface between CAN controller and physics CAN, and CAN controller is for realizing meeting the communication of CAN protocol.
Microprocessor 130, for will obtain vehicle characteristic information with storage various vehicle automobiles characteristic information
It is compared, and the vehicle of vehicle is recognized according to comparative result.
In the embodiment of the present invention, diagnosis interface includes 2 tunnel high-speed CAN communication interfaces.It is illustrated in figure 3 diagnosis interface to illustrate
Figure, digital 1-16 therein represent pin, and being specifically defined for pin is shown in Table 1:
Table 1 diagnoses interface definition
Pin | Description |
1 | It is reserved |
2 | It is reserved |
3 | It is reserved |
Pin | Description |
4 | Ground (is grounded) |
5 | Ground (is grounded) |
6 | CAN-HforPCAN |
7 | K lines |
8 | It is reserved |
9 | It is reserved |
10 | It is reserved |
11 | It is reserved |
12 | It is reserved |
13 | It is reserved |
14 | Mono- LforPCAN of CAN |
15 | L lines |
16 | Cell voltage |
Decoder supports CAN diagnostic functions, can be connected with the OBD interfaces of different automobile types by diagnosing interface, and foundation is examined
Open close news, obtain diagnostic message.In fig. 2, interface unit 140 is diagnosed by passing through with the OBD interfaces of various vehicle automobiles 200
CAN connects, so that the electronic control unit of decoder and automobile(ECU)Connection, such as ECU#1, ECU#2, ECU#
3......ECU#n。
Meanwhile, the CAN diagnostic commands that decoder support matrix 2 is enumerated, CAN ID(Address identifier)Using property list 1
In value.10th, the specific descriptions of 19,27,22 services are designed according to the definition of diagnosis regulation ISO14229, data form ginseng
Examine ISO15765-2;And 09 pattern is OBD Diagnosis Service, specific requirement is shown in Abgasgesetz ISO 15031-5.
Table 2CAN radiodiagnosis x orders
As shown in figure 4, the present invention provides a kind of method that automobile decoder recognizes vehicle, including:
S1, automobile decoder set up diagnosis communication company by the electronic control unit of diagnosis interface thereon and Current vehicle
Connect;
S2, automobile decoder connect the characteristic information for obtaining Current vehicle by diagnosis communication, store in automobile decoder
There is the characteristic information of various vehicle automobiles;
The characteristic information of S3, automobile decoder by the characteristic information of the Current vehicle of acquisition with the various vehicles of storage is carried out
Relatively, and according to comparative result recognize the vehicle of Current vehicle.
The communication data information and diagnostic data information of various vehicle automobiles are stored in automobile decoder also;Automobile is decoded
Device calls the communication data information and diagnostic data information of corresponding vehicle to parse the data for gathering after identification vehicle.
Above-mentioned characteristic information can include it is following in one or more:The request address identifier of vehicle, return
Multiple address identifier and its corresponding relation;The request service identifiers of vehicle, reply service identifiers and its corresponding relation;Vehicle
Service identifiers and Diagnosis Service subfunction corresponding relation;Vehicle is corresponding with the DTC state that electronic control unit is supported
Relation;The corresponding relation of vehicle and DTC byte length;The corresponding relation of vehicle and vehicle identification code;Vehicle and Electronic Control
The corresponding relation of unit transport layer parameters.
As shown in figure 5, in the embodiment of the present invention, the car load communications database and diagnostic data library storage of each vehicle are arrived
In the EEPROM of decoder.As shown in fig. 6, the property list of each vehicle is integrated in the flash storage of decoder.Each
Vehicle suffers from the characteristic information of oneself, and the characteristic information that self-learning method proposed by the present invention is adopted is mainly from vehicle diagnosis
Message is obtaining.
Define according to ISO15765-2 diagnostic criterias, diagnosis message format is as shown in table 3:
Table 3 diagnoses message format
Message | CANframedatafield |
Byte0 | Byte1 | Byte2 | Byte3-7 | ||
Request message | Request CANID | Data length | Service ID | Subfunction | Other data |
Reply message | Reply CANID | Data length | Service ID | Subfunction | Other data |
As shown in fig. 7, when the present invention is using diagnosis interface identification vehicle, concrete operation step is as follows:
1)Vehicle ignition;
2) decoder power-up initializing;
3)Characteristic information is obtained by diagnostic command;
4)Contrastive feature information;
5)It is vehicle #1, vehicle #2, or vehicle #n that vehicle is distinguished by characteristic information, and characteristic information can be a certain car
Only characteristic of type, it is also possible to distinguished by several property combinations;
6) corresponding communications database and diagnostic data base are called.
The method that lower mask body introduces several automatic identification vehicles, these methods described below can be used alone,
Can be used in combination with several method, so as to accurate identification vehicle.
Method one:By CANID(Address identifier)Partition characteristic automatic identification vehicle
When characteristic information includes the request address identifier of vehicle, replys address identifier and its corresponding relation
When, the request address identifier of each vehicle that is stored with automobile decoder, reply address identifier and its correspondence
Relation;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier for being stored, from the electronics control of automobile
Whether unit processed replys address identifier and obtains the address identifier that the vehicle is supported;
In step s3, the address identifier supported according to acquired vehicle, analysis reply address mark
Relation between symbol and request address identifier, with the request address identifier for being stored and reply address
Corresponding relation between identifier is compared, and recognizes vehicle according to whether comparative result matches.
Property list 1:CANID data bases
In ECU power up initialization process, decoder sends diagnosis request, according to the CANID in property list 1 and its distribution rule
Then automatic identification vehicle is vehicle #1, or vehicle #2, vehicle #n.Comprise the following steps that:
1) external equipment is connected to each vehicle OBD mouth, and the CANID in transfer characteristic table 1 scans what car load ECU was supported
Diagnosis CANID;
2) the diagnosis CANID that the vehicle is supported is obtained from whether ECU replys CANID, if ECU is responded, then it represents that should
Vehicle supports this CANID;If no ECU responses, then it represents that the vehicle does not support this CANID;
3) CANID supported from the vehicle for obtaining, analysis reply the relation between CANID and request CANID, and inquire about spy
Property table 1, sits in the right seat and specifically which vehicle is drawn.
Method two:By the various vehicles of service ID property list automatic identifications of vehicle;
When characteristic information includes the request address identifier of vehicle, replys address identifier and its correspondence pass
System, and vehicle request service identifiers, reply service identifiers and its during corresponding relation, each vehicle is stored in automobile decoder
Request address identifier, reply address identifier and its corresponding relation, and store the request service mark of each vehicle
Know, reply service identifiers and its corresponding relation;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier for being stored, from the electronics control of automobile
The message content that unit processed is replied obtains the service identifiers that the vehicle is supported;
In step s3, the service identifiers supported according to acquired vehicle, analyze the service identifiers replied logical with request
The relation between request service identifiers in the diagnosis request message of news address designator, with the request service identifiers that stored with
The corresponding relation replied between service identifiers is compared, and recognizes vehicle according to whether comparative result matches.
Property list 2:Service ID database
In ECU power up initialization process, decoder sends and asks diagnosis request, according to Diagnosis Service ID in property list 2 and
Its regular automatic identification vehicle is vehicle #1, or vehicle #2, vehicle #n.Comprise the following steps that:
1)External equipment is connected to each vehicle OBD mouth, sends diagnosis request message.CANID takes the number in property list 1
Value, scans Diagnosis Service ID that car load ECU is supported, from 0x00-0xff single passes;
2)The message content replied from ECU is analyzed the vehicle and supports which services, if ECU replys negative response $
NRC11 (service is not supported), then it represents that the vehicle does not support this service ID;If ECU positive responses or negative response,
Negative response code is not $ NRC11 (service is not supported), then it represents that the vehicle supports this service ID;
3)From the service ID that the vehicle for obtaining is supported, and property list 2 is compareed, recognize vehicle.
Method three:By the various vehicles of service subfunction property list automatic identification of vehicle;
When characteristic information includes the request address identifier of vehicle, replys address identifier and its correspondence pass
System, and the service identifiers of vehicle and Diagnosis Service subfunction corresponding relation when, each vehicle is stored in automobile decoder
Request address identifier, reply address identifier and its corresponding relation, and store the service identifiers of each vehicle and examine
The corresponding relation of disconnected service subfunction;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 10, $ 27 or $ 19, obtains the vehicle from the message content of the electronic control unit reply of automobile
The Diagnosis Service subfunction of support;
In step s3, the Diagnosis Service subfunction supported according to acquired vehicle, each vehicle that inquiry is stored
The corresponding relation of service identifiers and Diagnosis Service subfunction is recognizing vehicle.
Property list 3:Service subfunction data base
In ECU power up initialization process, decoder sends diagnosis request, according to the Diagnosis Service subfunction in property list 3
Automatic identification vehicle is vehicle #1, or vehicle #2, vehicle #n.Comprise the following steps that:
1) external equipment is connected to each vehicle OBD mouth, sends diagnosis request message.CANID takes the number in property list 1
Value, service ID take $ 10, $ 27 and $ 19 and service, and scan the Diagnosis Service subfunction that car load ECU is supported, from 0x00-0xff once
Scanning;
2) message content replied from ECU can analyze which service subfunction is the vehicle support, if ECU replys no
Provisioning response $ NRC12 (subfunction is not supported), then it represents that the vehicle does not support this service subfunction;If ECU positive responses or
Person is negative response, and negative response code is not NRC12 (subfunction is not supported), then it represents that the vehicle supports this sub- work(of service
Energy;
3)From the service subfunction that the vehicle for obtaining is supported, and property list 3 is compareed, recognize vehicle.
Method four:The DTC Status supported by vehicle ECU(DTC state)The various vehicles of property list automatic identification;
When characteristic information includes the request address identifier of vehicle, replys address identifier and its correspondence pass
System, and the DTC state supported of vehicle and electronic control unit corresponding relation when, each car is stored in automobile decoder
The request address identifier of type, address identifier and its corresponding relation are replied, and store each vehicle and Electronic Control
The corresponding relation of the DTC state that unit is supported;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 19, is $ 01 by Diagnosis Service subfunction value, is replied from the electronic control unit of automobile
Message content obtains the DTC state that the electronic control unit of the vehicle is supported;
In step s3, the DTC state supported according to the electronic control unit of the acquired vehicle, inquiry are deposited
The corresponding relation of the DTC state that each vehicle and the electronic control unit of storage is supported is recognizing vehicle.
Property list 4:DTC Status
In ECU power up initialization process, decoder sends asks diagnosis request 1901, obtains the DTC state that ECU is supported
Position, control 4 automatic identification vehicle of property list is vehicle #1, or vehicle #2, vehicle #n.Comprise the following steps that:
1) external equipment is connected to each vehicle OBD mouth, sends diagnosis request message.CANID takes the number in property list 1
Value, service ID take $ 19 and service, and subfunction is $ 01;
2) message content replied from ECU can obtain the DTC Status of ECU supports;
3) the DTC Status for supporting the vehicle for obtaining, compare property list 4, recognize vehicle.
Method five:The DTC codes supported by vehicle ECU(DTC)The various vehicles of byte number automatic identification;
When characteristic information includes the request address identifier of vehicle, replys address identifier and its correspondence pass
System, and vehicle and DTC byte length corresponding relation when, the request of each vehicle is stored in automobile decoder communicatively
Location identifier, reply address identifier and its corresponding relation, and store each vehicle pass corresponding with DTC byte length
System;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 19, is $ 02 by Diagnosis Service subfunction value, is replied from the electronic control unit of automobile
Message content obtains the DTC byte length of the vehicle;
In step s3, according to acquired DTC byte length, inquire about each vehicle and DTC byte for being stored
The corresponding relation of length is recognizing vehicle.
Property list 5:DTC code byte lengths
In ECU power up initialization process, decoder sends asks diagnosis request 1902, obtains the DTC that ECU is supported, control
5 automatic identification vehicle of property list is vehicle #1, or vehicle #2, vehicle #n.Comprise the following steps that:
1)External equipment is connected to each vehicle OBD mouth, sends diagnosis request message.CANID takes the number in property list 1
Value, service ID take $ 19 and service, and subfunction is $ 02;
2)The message content replied from ECU can obtain the DTC of ECU supports;
3)The DTC byte length sizes that the vehicle for obtaining is supported, compare property list 5, recognize vehicle.
Method six:By vehicle VIN codes(Vehicle identification code)The various vehicles of automatic identification;
When characteristic information includes the request address identifier of vehicle, replys address identifier and its correspondence pass
System, and vehicle and vehicle identification code corresponding relation when, the request address mark of each vehicle is stored in automobile decoder
Know symbol, reply address identifier and its corresponding relation, and store the corresponding relation of each vehicle and vehicle identification code;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, the diagnosis request of request address identifier is sent according to the address identifier for being stored
Message, and be $ 09 by the service identifiers value in diagnosis request message, it is $ 02 by type value, from the Electronic Control of automobile
The message content that unit is replied obtains the vehicle identification code of the vehicle;
In step s3, according to acquired vehicle identification code, inquire about each vehicle for being stored right with vehicle identification code
Should be related to recognize vehicle.
Property list 6:VIN code data bases
In ECU power up initialization process, decoder sends asks diagnosis request 0902, obtains the VIN codes of vehicle, compares characteristic
6 automatic identification vehicle of table is vehicle #1, or vehicle #2, vehicle #n.Comprise the following steps that:
1) external equipment is connected to each vehicle OBD mouth, sends diagnosis request message.CANID takes the number in property list 1
Value, service ID take 09 patterns of $, and type is 02, VIN codes;
2) message content replied from ECU can obtain the VIN codes of vehicle;
3) the VIN codes that will be obtained, compare property list 6, recognize vehicle.
Method seven:By the various vehicles of time parameter automatic identification of vehicle ECU transport layers;
When characteristic information includes the request address identifier of vehicle, replys address identifier and its correspondence pass
System, and vehicle and electronic control unit transport layer parameters corresponding relation when, store each vehicle in automobile decoder please
Seek address identifier, reply address identifier and its corresponding relation, and store each vehicle and pass with electronic control unit
The corresponding relation of defeated layer parameter;
In step sl, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step s 2, the diagnosis report of request address identifier is sent according to the address identifier for being stored
Text, and be $ 2E by the service identifiers value in diagnosis request message, the message content replied from the electronic control unit of automobile is obtained
Take the electronic control unit transport layer parameters of the vehicle;
In step s3, according to acquired electronic control unit transport layer parameters, inquire about each vehicle and electricity for being stored
The corresponding relation of sub-control unit transport layer parameters is recognizing vehicle.
Property list 7:Transport layer parameters data base
In ECU power up initialization process, decoder sends and please diagnose multiframe request message, obtains ECU transport layer parameters, right
It is vehicle #1 according to 7 automatic identification vehicle of property list, or vehicle #2, vehicle #n.Comprise the following steps that:
1) external equipment is connected to each vehicle OBD mouth, sends diagnosis request message.CANID takes the number in property list 1
Value, service ID take $ 2E services;
2) message content replied from ECU can obtain the parameter value of ECU transport layers;
3) parameter value that will be obtained, compares property list 7, recognizes vehicle.
Several method set forth above is more specific example, may be used alone, can also be used in combination to recognize
Vehicle, it is adaptable to CAN diagnosis, the vehicle based on UDS (the unified vehicle-mounted computer self diagnosis service in the whole world) Protocol diagnostic function.
The invention provides a kind of method of power-up initializing self study so that decoder can adapt to different cars
Type, the bus data storehouse of multiple vehicles and diagnostic data base are integrated in a decoder, and decoder is according to different vehicles
Call different data bases.As long as user is arranged on decoder above corresponding vehicle, in each power up initialization process, decoding
Device can self-teaching, obtain information of vehicles, the various vehicles of automatic identification, whole process is simple, quick, effectively.
Above by reference to the preferred embodiments of the present invention have been illustrated, those skilled in the art are without departing from the scope of the present invention
And essence, there can be various flexible programs to realize the present invention.For example, as the shown partially of one embodiment or description
Feature can be used for another embodiment to obtain another embodiment.Preferably feasible embodiment of the invention is these are only, not
Therefore limit to the interest field of the present invention, the equivalence changes made by all utilization description of the invention and accompanying drawing content are both contained in
Within the interest field of the present invention.
Claims (6)
1. a kind of method that automobile decoder recognizes vehicle, it is characterised in that include:
S1, automobile decoder are set up diagnosis communication with the electronic control unit of Current vehicle by diagnosis interface thereon and are connected;
S2, the automobile decoder connect the characteristic information for obtaining the Current vehicle, the automobile by the diagnosis communication
Be stored with decoder the characteristic information of various vehicle automobiles;
S3, the automobile decoder by obtain the Current vehicle characteristic information with storage various vehicles characteristic information
It is compared, and the vehicle of the Current vehicle is recognized according to comparative result;
When the characteristic information includes the request address identifier of vehicle, replys address identifier and its corresponding relation
When, the request address identifier of each vehicle that is stored with automobile decoder, reply address identifier and its correspondence
Relation;
In step S1, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step S2, diagnosis request message is sent according to the address identifier for being stored, from the electronics control of automobile
Whether unit processed replys address identifier and obtains the address identifier that the vehicle is supported;
In step S3, according to the address identifier that acquired vehicle is supported, address mark is replied in analysis
Relation between symbol and request address identifier, with the request address identifier for being stored and reply address mark
The corresponding relation known between symbol is compared, and recognizes vehicle according to whether comparative result matches.
2. the method that automobile decoder according to claim 1 recognizes vehicle, it is characterised in that when the characteristic information also
Request service identifiers including vehicle, when replying service identifiers and its corresponding relation, each vehicle is stored in automobile decoder
Request address identifier, reply address identifier and its corresponding relation, and store each vehicle request service identifiers,
Reply service identifiers and its corresponding relation;
In step S1, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step S2, diagnosis request message is sent according to the address identifier for being stored, from the electronics control of automobile
The message content that unit processed is replied obtains the service identifiers that the vehicle is supported;
In step S3, according to the service identifiers that acquired vehicle is supported, the service identifiers replied are analyzed logical with request
The relation between request service identifiers in the diagnosis request message of news address designator, with the request service identifiers that stored with
The corresponding relation replied between service identifiers is compared, and recognizes vehicle according to whether comparative result matches.
3. the method that automobile decoder according to claim 1 recognizes vehicle, it is characterised in that when the characteristic information also
Including service identifiers and the Diagnosis Service subfunction of vehicle corresponding relation when, the request of each vehicle is stored in automobile decoder
Address identifier, reply address identifier and its corresponding relation, and store the service identifiers and diagnosis clothes of each vehicle
The corresponding relation of business subfunction;
In step S1, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step S2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 10, $ 27 or $ 19, obtains the vehicle from the message content of the electronic control unit reply of automobile
The Diagnosis Service subfunction of support;
In step S3, each vehicle stored according to the Diagnosis Service subfunction that acquired vehicle is supported, inquiry
The corresponding relation of service identifiers and Diagnosis Service subfunction is recognizing vehicle.
4. the method that automobile decoder according to claim 1 recognizes vehicle, it is characterised in that when the characteristic information also
During the corresponding relation of the DTC state supported with electronic control unit including vehicle, each vehicle is stored in automobile decoder
Request address identifier, reply address identifier and its corresponding relation, and store each vehicle and electronic control unit
The corresponding relation of the DTC state of support;
In step S1, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step S2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 19, is $ 01 by Diagnosis Service subfunction value, is replied from the electronic control unit of automobile
Message content obtains the DTC state that the electronic control unit of the vehicle is supported;
In step S3, according to the DTC state that the electronic control unit of the acquired vehicle is supported, inquiry is deposited
The corresponding relation of the DTC state that each vehicle and the electronic control unit of storage is supported is recognizing vehicle.
5. the method that automobile decoder according to claim 1 recognizes vehicle, it is characterised in that when the characteristic information also
Including vehicle and DTC byte length corresponding relation when, the request address mark of each vehicle is stored in automobile decoder
Know symbol, reply address identifier and its corresponding relation, and store the corresponding relation of each vehicle and DTC byte length;
In step S1, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step S2, diagnosis request message is sent according to the address identifier that stored, and by diagnosis request report
Service identifiers value in text is $ 19, is $ 02 by Diagnosis Service subfunction value, is replied from the electronic control unit of automobile
Message content obtains the DTC byte length of the vehicle;
In step S3, according to acquired DTC byte length, each vehicle and DTC byte for being stored is inquired about
The corresponding relation of length is recognizing vehicle.
6. the method that automobile decoder according to claim 1 recognizes vehicle, it is characterised in that when the characteristic information also
Including vehicle and electronic control unit transport layer parameters corresponding relation when, the request that each vehicle is stored in automobile decoder is led to
News address designator, reply address identifier and its corresponding relation, and store each vehicle and electronic control unit transport layer
The corresponding relation of parameter;
In step S1, the diagnosis interface of automobile decoder is connected to into the OBD interface of automobile;
In step S2, the diagnosis report of request address identifier is sent according to the address identifier for being stored
Text, and be $ 2E by the service identifiers value in diagnosis request message, the message content replied from the electronic control unit of automobile is obtained
Take the electronic control unit transport layer parameters of the vehicle;
In step S3, according to acquired electronic control unit transport layer parameters, each vehicle and electricity for being stored is inquired about
The corresponding relation of sub-control unit transport layer parameters is recognizing vehicle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310215281.8A CN104216391B (en) | 2013-05-31 | 2013-05-31 | Automotive type recognition method of automobile decoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310215281.8A CN104216391B (en) | 2013-05-31 | 2013-05-31 | Automotive type recognition method of automobile decoder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104216391A CN104216391A (en) | 2014-12-17 |
CN104216391B true CN104216391B (en) | 2017-04-19 |
Family
ID=52097998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310215281.8A Active CN104216391B (en) | 2013-05-31 | 2013-05-31 | Automotive type recognition method of automobile decoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104216391B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105374083B (en) * | 2015-10-23 | 2018-06-26 | 深圳市元征软件开发有限公司 | vehicle identification method and device |
CN106896802B (en) * | 2017-03-01 | 2020-02-28 | 深圳市元征科技股份有限公司 | Automobile model increasing method and device |
CN108573198A (en) * | 2017-03-14 | 2018-09-25 | 优信互联(北京)信息技术有限公司 | A kind of method and device identifying vehicle information according to Vehicle Identify Number |
CN107037804A (en) * | 2017-04-21 | 2017-08-11 | 深圳市元征科技股份有限公司 | Method, system and the computer-readable recording medium of simulated automotive communication |
WO2018218534A1 (en) * | 2017-05-31 | 2018-12-06 | 深圳市爱夫卡科技股份有限公司 | Vehicle information identification method, identifying apparatus, and computer readable storage medium |
CN107579890B (en) * | 2017-07-31 | 2020-11-17 | 北汽福田汽车股份有限公司 | Vehicle-mounted terminal and self-adaption method and device for vehicle-mounted terminal |
CN107688644A (en) * | 2017-08-30 | 2018-02-13 | 清华大学苏州汽车研究院(吴江) | A kind of querying method and system of vehicle specification information |
CN108958224B (en) * | 2018-07-27 | 2021-08-10 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, diagnosis terminal and diagnosis box |
CN108803580B (en) * | 2018-08-15 | 2021-08-17 | 深圳市元征科技股份有限公司 | Method for matching vehicle CAN protocol and related equipment |
CN113904864A (en) * | 2018-12-28 | 2022-01-07 | 阿波罗智联(北京)科技有限公司 | Method and device for analyzing message |
CN110374751A (en) * | 2019-06-20 | 2019-10-25 | 深圳市元征科技股份有限公司 | A kind of vehicle launch control method, device and mobile unit |
CN110703734A (en) * | 2019-10-23 | 2020-01-17 | 武汉格罗夫氢能汽车有限公司 | Fault diagnosis method, device and system for hydrogen energy automobile and storage medium |
CN111708353A (en) * | 2020-06-30 | 2020-09-25 | 深圳市元征科技股份有限公司 | Data display method and system for vehicle diagnosis equipment and related equipment |
CN112562117A (en) * | 2020-11-16 | 2021-03-26 | 东风汽车集团有限公司 | Automobile data acquisition equipment |
DE102021205383A1 (en) * | 2021-05-27 | 2022-12-01 | Robert Bosch Gesellschaft mit beschränkter Haftung | Method for diagnosing a vehicle electrical system |
CN113778065A (en) * | 2021-09-23 | 2021-12-10 | 深圳市星卡科技有限公司 | Vehicle action testing method and device and computer equipment |
CN114115189A (en) * | 2021-11-23 | 2022-03-01 | 国汽智控(北京)科技有限公司 | Sensor data analysis method and device and vehicle |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0982697A2 (en) * | 1998-08-17 | 2000-03-01 | MANNESMANN Aktiengesellschaft | Method and device for processing an emergency call transmitted from a vehicle to a central unit |
CN102645929A (en) * | 2012-05-04 | 2012-08-22 | 武汉英泰斯特电子技术有限公司 | General description method for vehicle fault diagnostic protocols |
CN202632094U (en) * | 2012-04-23 | 2012-12-26 | 肇庆高新区车秘信息科技有限公司 | Information acquisition device and remote vehicle diagnosis system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091549A (en) * | 2000-09-19 | 2002-03-29 | Mitsubishi Motors Corp | Device and method for diagnosing fault for vehicle electronic control system |
CN100511040C (en) * | 2006-08-02 | 2009-07-08 | 北京金奔腾汽车科技有限公司 | Self-learning judging method of automobile decoder |
US20080167772A1 (en) * | 2007-01-04 | 2008-07-10 | Sterling Du | Method and system for processing and transmitting automotive emission data |
JP4476320B2 (en) * | 2007-11-26 | 2010-06-09 | 三菱電機株式会社 | On-vehicle electronic control device having a supervisory control circuit |
CN101382470A (en) * | 2008-10-22 | 2009-03-11 | 深圳市元征科技股份有限公司 | Method and system for acquiring automobile four-wheel positioning model data |
-
2013
- 2013-05-31 CN CN201310215281.8A patent/CN104216391B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0982697A2 (en) * | 1998-08-17 | 2000-03-01 | MANNESMANN Aktiengesellschaft | Method and device for processing an emergency call transmitted from a vehicle to a central unit |
CN202632094U (en) * | 2012-04-23 | 2012-12-26 | 肇庆高新区车秘信息科技有限公司 | Information acquisition device and remote vehicle diagnosis system |
CN102645929A (en) * | 2012-05-04 | 2012-08-22 | 武汉英泰斯特电子技术有限公司 | General description method for vehicle fault diagnostic protocols |
Also Published As
Publication number | Publication date |
---|---|
CN104216391A (en) | 2014-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104216391B (en) | Automotive type recognition method of automobile decoder | |
CN108107875B (en) | Automobile diagnosis method and device and vehicle communication interface | |
CN103604612B (en) | A kind of vehicle remote diagnosis system and diagnostic method | |
CN107291068A (en) | Vehicular diagnostic method and vehicle diagnostic equipment | |
CN101458525A (en) | Automatic identification method for electric-controlled unit collocation | |
CN102262404A (en) | End-of-line configuration system and configuration method for finished vehicle | |
CN105589719A (en) | System for remotely upgrading full vehicle-mounted controller softwares and upgrading method thereof | |
CN107765676A (en) | A kind of onboard diagnostic system and its method based on Ethernet | |
CN113093687B (en) | Fault diagnosis system and method based on domain controller | |
CN113282072B (en) | Vehicle remote diagnosis method, device, storage medium and system | |
CN106325231A (en) | Method and system for remote fault detection of vehicles on production line | |
US20090306849A1 (en) | System for diagnosis of motor vehicles, and for reception of vehicles at a repair facility | |
CN103178896B (en) | Wireless data communication method between vehicle and central apparatus | |
CN102804698A (en) | Method For Operating A Bus System, In Particular A Can Bus | |
US10803681B2 (en) | Server side security preventing spoofing of vin provisioning service | |
CN102780713A (en) | Vehicle diagnostic system and vehicle diagnostic method | |
WO2022037150A1 (en) | Vehicle ecu identification method and system, and vehicle diagnosis device | |
CN104699686A (en) | Vehicle-mounted control module and matching method thereof | |
CN111273931B (en) | Parallel upgrading method and device for vehicle-mounted traveling crane computers | |
US9174648B2 (en) | System for using short text messaging for remote diagnostic | |
CN101261519A (en) | Configuration method for accomplishing vehicle body control system function configuration through diagnosis communication | |
CN109788023A (en) | Embedded modem feature extension based on temperature | |
CN105005539A (en) | Authenticating data at a microcontroller using message authentication codes | |
US10996255B2 (en) | Voltage-characteristic-based vehicle identification number | |
CN102081394A (en) | Method and device for acquiring vehicle status information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |