CN107300910A - A kind of battery failures diagnostic method based on OBD system - Google Patents

A kind of battery failures diagnostic method based on OBD system Download PDF

Info

Publication number
CN107300910A
CN107300910A CN201710613352.8A CN201710613352A CN107300910A CN 107300910 A CN107300910 A CN 107300910A CN 201710613352 A CN201710613352 A CN 201710613352A CN 107300910 A CN107300910 A CN 107300910A
Authority
CN
China
Prior art keywords
dtc
battery
byte
data
obd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710613352.8A
Other languages
Chinese (zh)
Other versions
CN107300910B (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.)
Institute of Electrical Engineering of CAS
Original Assignee
Institute of Electrical Engineering of CAS
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 Institute of Electrical Engineering of CAS filed Critical Institute of Electrical Engineering of CAS
Priority to CN201710613352.8A priority Critical patent/CN107300910B/en
Publication of CN107300910A publication Critical patent/CN107300910A/en
Application granted granted Critical
Publication of CN107300910B publication Critical patent/CN107300910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Abstract

A kind of battery failures diagnostic method based on OBD system, battery management system monitors battery status in real time first, when monitoring cell malfunctions, BMS generates DTC, then the DTC of generation is sent in CAN progress DTC transmission by BMS, and entire car controller receives after DTC DTC being stored in memory cell.When being repaired, the DTC stored in entire car controller is read out by OBD interfaces.Maintenance personal can be reduced using these DTCs to the working condition of battery at that time, and help is provided for maintenance work.

Description

A kind of battery failures diagnostic method based on OBD system
Technical field
The present invention relates to a kind of battery failures diagnostic method based on OBD system.
Background technology
Automobile becomes to become increasingly complex because a large amount of using computer control system, contacts also more tight between each control system It is close.When some part is broken down, whole control system may be caused even more than control system cisco unity malfunction, if Failure situation can not be found in time and is dealt carefully with, failure is may result in and further expands, and seriously damage automobile usability Energy.The control unit of Hyundai Motor computer control system has the function that whole system situation is monitored and assessed, this It is exactly OBD (On Board Diagnosis) i.e. onboard diagnostic systems.
As world energy sources crisis and problem of environmental pollution are more and more tighter to the ambient influnence of World Economics and human survival Weight, the electric automobile by the use of rechargeable battery as power source also turns into an important directions of development of automobile.In electric automobile In, it is wherein the most key part again as the battery system of power source.Because present OBD system is also primarily directed to biography System internal-combustion engines vehicle and set, to the battery system of electric automobile also without relevant regulations, therefore main on orthodox car It is used to diagnose and introduces electric automobile with motor vehicle emission about the OBD system of failure, is just intended to the failure using its standard Code and increasingly complete technical principle, fault diagnosis and maintenance work for electric automobile provide more convenient.
Diagnostic method in patent " 201110335690.2 ", adopting for battery and motor is received by failure diagnostic apparatus Collect data, by processing unit diagnostic data, by acquisition device, for determining battery and motor according to diagnostic data State outcome carry out failure judgement state.This method needs the processing and judgement that isolated system is carried out, and is unfavorable for the system integration.
The content of the invention
The purpose of the present invention is the disadvantages mentioned above for overcoming prior art, proposes that a kind of battery failures based on OBD system are examined Disconnected method.
In order to which the fault diagnosis to electric automobile and maintenance provide convenient, of the invention is mainly used in examining on orthodox car It is disconnected to introduce batteries of electric automobile fault diagnosis with motor vehicle emission about the OBD system of failure.When automobile is repaired, people is repaired Member can be reduced using these DTCs to the working condition of battery at that time.Strong help is provided for maintenance work.
The battery failures diagnostic method of the present invention comprises the following steps:Battery management system monitors battery status in real time, when When monitoring cell malfunctions, failure code table is inquired about according to battery status battery management system (BMS) and generates DTC, battery The DTC of generation is transferred to entire car controller by management system through CAN, and entire car controller is received event after DTC Barrier code is stored in memory cell.When being repaired, the DTC stored in entire car controller is read out by OBD interfaces.
Each DTC that battery management system is generated takes two byte datas, including byte 1 and byte 2, failure Code is shown in hexadecimal form.
The data bit concrete regulation of DTC is as follows:B7, b6 two in byte 1 represents system under test (SUT);In byte 1 Two representing fault code main bodys of b5, b4;The affiliated subsystem of b3, b2, b1, b0 representing fault in byte 1.B7 in byte 2, B3, b2, b1, b0 tetra- that b6, b5, b4 tetra- is represented in specific DTC 1, byte 2 represents specific DTC 2.
DTC is defined:The b7b6=00 of byte 1, expression system under test (SUT) is power drive system;Byte 1 B5b4=01, it is manufacturer's failure definition code to represent DTC main body.The b3b2b1b0=1011 and b3b2b1b0=of byte 1 1100 the two numerical value, the affiliated subsystem of representing fault is battery subsystem DTC.So, battery system DTC is with 16 System is expressed as:1Bxx represents level fault;1Cxx represents secondary failure.For the ease of identification, in the failure code table of establishment Before each DTC power drive system is represented plus identification code P, P.
The DTC generated is transferred to entire car controller by battery management system by the CAN of Full Vehicle System.Therefore Barrier code transmitting message data be made up of 8 bytes, specially DATA0, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, including control parameter and DTC two parts;DATA0, DATA1 are control parameter, and DATA0 is that PID represents it The parameter name representated by data afterwards, PID=43 represents that data thereafter are DTC, DATA1 representing fault grades, its number It is worth for 1 or 2, numerical value 1 is level fault, numerical value 2 is secondary failure;Each DTC takes two bytes, each data message At most transmission 3 DTCs, DTC 1 be DATA2, DATA3, DTC 2 be DATA4, DATA5, DTC 3 be DATA6, DATA7;If the DTC of diagnosis is less than 3, idle byte is set to 0, met the requirements with the length for ensureing whole data.
Failure decoding transmission method is as follows:
(1) CAN is initialized:It is normal mode to set CAN working methods, set CAN baud rates with and system matches, set CAN wave filters are to filter information;
(2) CAN message is sent:It is divided into 48 ID by 29 first to be transmitted;Then idle transmission buffering area is selected, Data frame is determined whether, if it is, framing is sent;If not directly transmitting.After being sent completely, clear to send mark Position;
(3) CAN message is received:CAN message receives and uses interrupt mode, when there is information in CAN, receiving node one While message feeding wave filter is filtered, while data to be stored in the back buffer for receiving buffering, when examination passes through, the letter Breath is moved into reception buffering area, and to the full state flag bit set of buffering, triggering CAN reception bufferings are full to interrupt.Then at application Reason program can just directly read the data for receiving foreground buffering, finally remove buffering full scale will, release foreground buffering, to receive Follow-up CAN message.
Entire car controller is received after DTC by CAN, and DTC storage is arrived into memory cell.
During maintenance, maintenance personal reads the DTC that entire car controller is stored by OBD interfaces.
Brief description of the drawings
Fig. 1 is the battery failures diagnostic method block diagram based on OBD system;
Fig. 2 is CAN initialization flowcharts;
Fig. 3 is CAN message transmission flow figure;
Fig. 4 is that CAN message receives flow chart;
Fig. 5 battery standing state experimental results;
The monomer voltage of Fig. 6 battery modules 8.
Embodiment
The present invention is further illustrated to embodiment below in conjunction with accompanying drawing.
The present invention battery failures diagnostic method step be:Battery management system monitors battery status in real time, when monitoring During cell malfunctions, failure code table is inquired about according to battery status battery management system (BMS) and generates DTC, battery management system The DTC of generation is transferred to entire car controller by system through CAN, and entire car controller receives after DTC and to deposit DTC Storage is in memory cell.When being repaired, the DTC stored in entire car controller is read out by OBD interfaces.
Battery management system is generated in DTC, and each DTC takes two byte datas:Byte 1 and byte 2.Therefore Barrier code shows that the definition to 16 data bit is as shown in table 1 in hexadecimal form:
The DTC data bit of table 1 is defined
In table 1:
B7, b6 two in byte 1 represents system under test (SUT);Two representing fault code main bodys of b5, b4 in byte 1;Byte 1 In the affiliated subsystem of b3, b2, b1, b0 representing fault.B7, b6, b5, b4 tetra- in byte 2 represents specific DTC 1, word B3, b2, b1, b0 tetra- in section 2 represents specific DTC 2.
The definition of DTC is specially:The b7b6=00 of byte 1, expression system under test (SUT) is power drive system;Byte 1 B5b4=01, it is manufacturer's failure definition code to represent DTC main body.The b3b2b1b0=1011 and b3b2b1b0=of byte 1 1100 the two numerical value, the affiliated subsystem of representing fault is battery subsystem DTC.
Battery system DTC is with hexadecimal representation:1Bxx represents level fault;1Cxx represents secondary failure.
For the ease of identification, plus identification code P before each DTC in the failure code table of establishment, P represents that power is passed Dynamic system.Table 2 is battery level fault code table, and table 3 is battery secondary failure code table.
The battery system level fault failure code table of table 2
The battery system secondary failure failure code table of table 3
After DTC generation, battery management system is transmitted DTC to entire car controller by CAN.
As shown in table 4, DTC transmitting message data is made up of 8 bytes, specially DATA0, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, including control parameter and DTC two parts;DATA0, DATA1 join for control Number, DATA0 is PID, represents parameter name thereafter representated by data, and PID=43 represents that subsequent data is DTC, DATA1 Representing fault grade, its numerical value is 1 or 2, and numerical value 1 is level fault, and numerical value 2 is secondary failure;Each DTC takes two Byte, each data message at most transmission 3 DTCs, DTC 1 be DATA2, DATA3, DTC 2 be DATA4, DATA5, DTC 3 is DATA6, DATA7;If the DTC of diagnosis is less than 3, idle byte is set to 0, to ensure whole data Length meets the requirements.
The DTC transmitting message data of table 4
DTC transmitting step is as follows:
(1) CAN is initialized:Setting working method be normal mode, set CAN baud rates with and system matches, set CAN Wave filter is to filter information;
(2) CAN message is sent:It is divided into 48 ID by 29 first to be transmitted;Then idle transmission buffering area is selected, Data frame is determined whether, if it is, framing is sent;If not directly transmitting.After being sent completely, clear to send mark Position;
(3) CAN message is received:CAN message receives and uses interrupt mode, when there is information in CAN, receiving node one While message feeding wave filter is filtered, while data to be stored in the back buffer for receiving buffering, when examination passes through, the letter Breath is moved into reception buffering area, and to the full state flag bit set of buffering, triggering CAN reception bufferings are full to interrupt.Then at application Reason program can just directly read the data for receiving foreground buffering, finally remove buffering full scale will, release foreground buffering, to receive Follow-up CAN message.
Entire car controller is received after DTC by CAN, and DTC storage is arrived into memory cell.
During maintenance, maintenance personal is read out by OBD interfaces to the DTC stored in entire car controller.
Battery is tested according to foregoing method for diagnosing faults:Battery management system monitors battery shape in real time State, when monitoring cell malfunctions, battery management system (BMS) generates DTC, and then battery management system is by generation DTC is sent to progress DTC in CAN and is transferred to entire car controller, and entire car controller is received event after DTC Barrier code is stored in memory cell.DTC is read out by OBD interfaces, interface is read as shown in figure 5, to the battery of reading Fault message is analyzed, and examines whether fault diagnosis result is consistent with the running status of battery, is carried out validation fault with this and is examined The diagnosis effect of disconnected method.Battery system is detected that testing result has balanced event according to interface display under static condition Barrier, DTC is P1B4F.Inquire about failure code table and find that the battery cell that P1B4F is represented in battery module 8 exists unbalanced existing As.The magnitude of voltage of battery cell in battery module 8 is analyzed, as shown in Figure 6, it can be seen that:Highest monomer voltage in battery module 8 The difference overwhelming majority with average voltage is all in more than 20mV;The unbalanced alarm threshold value set herein is 20mV, it is seen that battery mould Really balanced failure is occurred in that in block 8.Expert System for Faults Diagnosis of Battery can be correct in battery management system hardware platform Operation, can ensure the parameters such as voltage, electric current, temperature and the dump energy of battery in rational scope, to electrokinetic cell Failure carries out diagnosis promptly and accurately, it is ensured that the safe and reliable operation of battery system.

Claims (6)

1. a kind of battery failures diagnostic method based on OBD system, it is characterised in that:Battery management system monitors battery shape in real time State, when monitoring cell malfunctions, inquires about failure code table according to battery status battery management system (BMS) and generates failure The DTC of generation is transferred to entire car controller by code, battery management system through CAN, and entire car controller receives DTC DTC is stored in memory cell afterwards.When being repaired, the DTC stored in entire car controller is carried out by OBD interfaces Read.
2. the battery failures diagnostic method according to claim 1 based on OBD system, it is characterised in that:Described in each DTC takes two byte datas, including byte 1 and byte 2, and DTC is shown in hexadecimal form;The definition of data bit It is specific as follows:B7, b6 two in byte 1 represents system under test (SUT);Two representing fault code main bodys of b5, b4 in byte 1;Byte Tetra- affiliated subsystems of representing fault of b3, b2, b1, b0 in 1;B7, b6, b5, b4 tetra- in byte 2 represents specific DTC 1, b3, b2, b1, b0 tetra- in byte 2 represents specific DTC 2;The definition of DTC is specially:The b7b6 of byte 1 =00, expression system under test (SUT) is power drive system;The b5b4=01 of byte 1, it is that manufacturer defines event to represent DTC main body Hinder code;The affiliated subsystem of b3b2b1b0=1011 and b3b2b1b0=1100 representing faults of byte 1 is battery subsystem failure Code;Battery system DTC is with hexadecimal representation:1Bxx represents level fault;1Cxx represents secondary failure;In establishment In failure code table power drive system is represented before each DTC plus identification code P, P.
3. the battery failures diagnostic method according to claim 1 based on OBD system, it is characterised in that:Described battery The DTC generated is transferred to whole by management system in DTC transmitting message data mode by the CAN of Full Vehicle System Vehicle controller;
Failure decoding transmission method is as follows:
(1) the CAN initialization of Full Vehicle System:Battery management system sets CAN working methods to be normal mode, set CAN bauds Rate with and system matches, CAN wave filters are set to filter information;
(2) CAN message is sent:First, battery management system is divided into 48 ID transmissions by 29;Then, idle send is selected Buffering area, determines whether data frame, if it is, framing is sent;If not directly transmitting;After being sent completely, hair is removed Send flag bit;
(3) CAN message is received:CAN message receives and uses interrupt mode, when there is information in CAN, and receiving node will be while will Message is sent into wave filter and is filtered, while data to be stored in the back buffer for receiving buffering, when examination passes through, the information quilt Shift-in receives buffering area, and to buffering completely state flag bit set, triggering CAN receives the full interruption of buffering;Then application handles journey Sequence directly reads the data for receiving foreground buffering, finally removes buffering full scale will, and release foreground buffering is believed with receiving follow-up CAN Breath.
4. the battery failures diagnostic method according to claim 3 based on OBD system, it is characterised in that:Described failure Code transmitting message data be made up of 8 bytes, specially DATA0, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, including control parameter and DTC two parts;DATA0, DATA1 are control parameter, and DATA0 is that PID represents data thereafter Representative parameter name, PID=43 represents that data are DTC thereafter, and DATA1 representing fault grades, its numerical value is 1 or 2, Numerical value 1 is level fault, and numerical value 2 is secondary failure;Each DTC takes two bytes, the at most transmission 3 of each data message Individual DTC, DTC 1 is DATA2, DATA3, and DTC 2 is DATA4, DATA5, and DTC 3 is DATA6, DATA7;If The DTC of diagnosis is less than 3, and idle byte is set to 0, met the requirements with the length for ensureing whole data.
5. the battery failures diagnostic method according to claim 1 based on OBD system, it is characterised in that:Entire car controller Received by CAN after DTC, memory cell is arrived into DTC storage.
6. the battery failures diagnostic method according to claim 1 based on OBD system, it is characterised in that:During maintenance, maintenance Personnel read the DTC that entire car controller is stored by OBD interfaces.
CN201710613352.8A 2017-07-25 2017-07-25 A kind of battery failures diagnostic method based on OBD system Active CN107300910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710613352.8A CN107300910B (en) 2017-07-25 2017-07-25 A kind of battery failures diagnostic method based on OBD system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710613352.8A CN107300910B (en) 2017-07-25 2017-07-25 A kind of battery failures diagnostic method based on OBD system

Publications (2)

Publication Number Publication Date
CN107300910A true CN107300910A (en) 2017-10-27
CN107300910B CN107300910B (en) 2019-11-26

Family

ID=60133045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710613352.8A Active CN107300910B (en) 2017-07-25 2017-07-25 A kind of battery failures diagnostic method based on OBD system

Country Status (1)

Country Link
CN (1) CN107300910B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108189689A (en) * 2017-12-29 2018-06-22 智车优行科技(北京)有限公司 The cell managing device and method of integrated security unit
CN113110371A (en) * 2021-03-16 2021-07-13 佛山市飞驰汽车科技有限公司 Vehicle fault code storage and transmission system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100004812A1 (en) * 2008-07-01 2010-01-07 Merrick Andrew D Method for On-Board Data Backup for Configurable Programmable Parameters
CN101782629A (en) * 2009-01-21 2010-07-21 清华大学 Battery system monitoring method and device based on OBD-II
CN104834303A (en) * 2014-12-19 2015-08-12 北汽福田汽车股份有限公司 Vehicle fault diagnosis method and system, and vehicle
CN106444718A (en) * 2016-11-02 2017-02-22 天津市捷威动力工业有限公司 BMS remote software upgrading and fault diagnosis method as well as diagnosis maintenance system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100004812A1 (en) * 2008-07-01 2010-01-07 Merrick Andrew D Method for On-Board Data Backup for Configurable Programmable Parameters
CN101782629A (en) * 2009-01-21 2010-07-21 清华大学 Battery system monitoring method and device based on OBD-II
CN104834303A (en) * 2014-12-19 2015-08-12 北汽福田汽车股份有限公司 Vehicle fault diagnosis method and system, and vehicle
CN106444718A (en) * 2016-11-02 2017-02-22 天津市捷威动力工业有限公司 BMS remote software upgrading and fault diagnosis method as well as diagnosis maintenance system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李秀娟: "《嵌入式系统设计》", 31 August 2013 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108189689A (en) * 2017-12-29 2018-06-22 智车优行科技(北京)有限公司 The cell managing device and method of integrated security unit
CN108189689B (en) * 2017-12-29 2021-07-16 智车优行科技(北京)有限公司 Battery management device and method of integrated safety unit
CN113110371A (en) * 2021-03-16 2021-07-13 佛山市飞驰汽车科技有限公司 Vehicle fault code storage and transmission system and method

Also Published As

Publication number Publication date
CN107300910B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN106502853B (en) Embedded intelligence fault detect alarm system
CN109240277A (en) Control system diagnostic function real steering vectors automate platform and test method
EP3425878A1 (en) Communication method, apparatus and system for remote diagnosis of automobile
CN103246280B (en) A kind of electric automobile diagnostic system
CN105955233B (en) A kind of car fault diagnosis method and system based on data mining
CN106647275B (en) Remote monitoring system of new energy automobile
CN112895900B (en) Hydrogen energy tramcar hydrogen redundancy monitoring protection device and method
CN103760890A (en) Hardware-in-loop testing device and method for vehicle-mounted battery charger control device of new-energy automobile
CN109278675A (en) A kind of entire car controller self checking method of pure electric automobile
CN206673990U (en) A kind of detecting system of communication message
CN109398092A (en) A kind of method, apparatus and equipment preventing vehicle wrong report failure
CN109960237A (en) A kind of car fault diagnosis and data analysis system and vehicle
CN107300910A (en) A kind of battery failures diagnostic method based on OBD system
CN113555591A (en) Fuel cell diagnostic device and corresponding diagnostic method, vehicle and vehicle system
CN106671898A (en) Whole vehicle control method and device for pure electric vehicle
CN109839549A (en) The method of real-time and device of vehicle activation system working condition
CN103760895A (en) Hardware-in-loop test device and method for vehicle-mounted charger control device of new energy automobile
CN111381574A (en) Vehicle remote fault diagnosis system and method
CN101604165A (en) A kind of hybrid vehicle onboard diagnostic system and diagnostic method thereof
CN107589377B (en) battery pack running state acquisition device
CN205333750U (en) Portable battery management system diagnostic equipment
CN207790730U (en) A kind of rail transit train fault data on-line detecting system based on 4G networks
CN104378246B (en) A kind of network equipment failure alignment system, method and device
CN202073640U (en) Monitoring device for state of automobile engine
CN104391462A (en) Joint debugging control system of pure electric automobile whole-automobile chassis and method thereof

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