CN107300910B - 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
CN107300910B
CN107300910B CN201710613352.8A CN201710613352A CN107300910B CN 107300910 B CN107300910 B CN 107300910B CN 201710613352 A CN201710613352 A CN 201710613352A CN 107300910 B CN107300910 B CN 107300910B
Authority
CN
China
Prior art keywords
error code
battery
byte
code
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710613352.8A
Other languages
Chinese (zh)
Other versions
CN107300910A (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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)
  • Tests Of Electric Status Of Batteries (AREA)

Abstract

A kind of battery failures diagnostic method based on OBD system, battery management system real-time monitoring battery status first, when monitoring cell malfunctions, BMS generates error code, then the error code of generation is sent in CAN bus progress error code transmission by BMS, and entire car controller receives and error code is stored in storage unit after error code.When repairing, the error code stored in entire car controller is read out by OBD interface.Maintenance personal can restore the working condition of battery at that time using these error code, provide help 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 technique
Automobile contacts also more tight because largely becoming to become increasingly complex using computer control system between each control system It is close.When some part is broken down, entire control system may cause even more than control system cisco unity malfunction, if It cannot find in time fault condition and deal carefully with, may result in failure further expansion, seriously damage automobile usability Energy.The control unit of Hyundai Motor computer control system has the function that whole system situation is monitored and is assessed, this It is exactly OBD (On Board Diagnosis) i.e. onboard diagnostic system.
As world energy sources crisis and problem of environmental pollution are more and more tighter on the influence of the environment of world economy and human survival Weight, also becomes an important directions of development of automobile using rechargeable battery as the electric car of power source.In electric car In, the battery system as power source is wherein the most key part again.Since present OBD system is also primarily directed to biography System internal-combustion engines vehicle and set, to the battery system of electric car, there are no relevant regulations, therefore main on orthodox car It is used to diagnose and introduces electric car with motor vehicle emission in relation to the OBD system of failure, be just intended to the failure using its standard Code and increasingly complete technical principle, provide more convenience for the fault diagnosis of electric car and maintenance work.
Diagnostic method in patent " 201110335690.2 " receives adopting for battery and driving motor by failure diagnostic apparatus Collect data, by processing unit diagnostic data, by acquisition device, for determining battery and driving motor according to diagnostic data State outcome judge malfunction.The processing and judgement that this method needs isolated system to carry out, are unfavorable for the system integration.
Summary of the invention
The purpose of the present invention is overcoming the disadvantages mentioned above of the prior art, propose that a kind of battery failures based on OBD system are examined Disconnected method.
In order to electric car fault diagnosis and maintenance provide convenient, the present invention on orthodox car being mainly used for examining It is disconnected to introduce batteries of electric automobile fault diagnosis with motor vehicle emission in relation to the OBD system of failure.When automobile repairs, people is repaired Member can restore the working condition of battery at that time using these error code.Strong help is provided for maintenance work.
Battery failures diagnostic method of the invention the following steps are included: battery management system real-time monitoring battery status, when When monitoring cell malfunctions, failure code table is inquired according to battery status battery management system (BMS) and generates error code, battery The error code of generation is transferred to entire car controller through CAN bus by management system, and entire car controller will be former after receiving error code Barrier code is stored in storage unit.When repairing, the error code stored in entire car controller is read out by OBD interface.
Battery management system each error code generated occupies two byte datas, including byte 1 and byte 2, failure Code is shown in hexadecimal form.
The data bit concrete regulation of error code is as follows: b7, b6 two in byte 1 represent 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, B6, b5, b4 tetra- represent specific error code 1, and b3, b2, b1, b0 tetra- in byte 2 represent specific error code 2.
Error code definition specifically: the b7b6=00 of byte 1, expression system under test (SUT) are power drive system;Byte 1 B5b4=01, expression error code main body are manufacturer's failure definition code.The b3b2b1b0=1011 and b3b2b1b0=of byte 1 1100 the two numerical value, the affiliated subsystem of representing fault are battery subsystem error code.So battery system error code is with 16 System indicates are as follows: 1Bxx represents level fault;1Cxx represents secondary failure.For the ease of identification, in the failure code table of establishment Identification code P is added before each error code, P indicates power drive system.
Error code generated is transferred to entire car controller by the CAN bus of Full Vehicle System by battery management system.Therefore Barrier code transmitting message data be made of 8 bytes, specially DATA0, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, including control parameter and error code two parts;DATA0, DATA1 are control parameter, and DATA0 is that PID indicates it Parameter name representated by data afterwards, PID=43 indicate that data thereafter are error code, DATA1 representing fault grade, number Value is 1 or 2, and numerical value 1 is level fault, and numerical value 2 is secondary failure;Each error code occupies two bytes, each data message At most transmission 3 error code, error code 1 be DATA2, DATA3, error code 2 be DATA4, DATA5, error code 3 be DATA6, DATA7;If the error code of diagnosis is less than 3, idle byte is set 0, to guarantee that the length of entire data meets the requirements.
Failure decoding transmission method is as follows:
(1) CAN initialize: setting CAN working method be normal mode, be arranged CAN baud rate with and system matches, be arranged CAN filter is to filter information;
(2) CAN message is sent: being divided into 48 ID for 29 first and is sent;Then selection is idle sends buffer area, Data frame is judged whether it is, if it is, framing is sent;If not directly transmitting.After being sent completely, clear to send mark Position;
(3) CAN message receives: CAN message, which receives, uses interrupt mode, when there is information in CAN bus, receiving node one While message feeding filter is filtered, data are stored in the back buffer for receiving buffering, when examination passes through, the letter on one side Breath, which is moved into, receives buffer area, and to completely state flag bit set is buffered, triggering CAN receives the full interruption of buffering.Then at application Reason program can directly read the data for receiving foreground buffering, finally remove buffering full scale will, release foreground buffering, to receive Subsequent CAN message.
After entire car controller receives error code by CAN bus, by error code storage to storage unit.
When maintenance, maintenance personal reads the error code of entire car controller storage by OBD interface.
Detailed description of the invention
Fig. 1 is the battery failures diagnostic method block diagram based on OBD system;
Fig. 2 is CAN initialization flowchart;
Fig. 3 is CAN message transmission flow figure;
Fig. 4 is that CAN message receives flow chart;
Fig. 5 battery standing state experimental result;
8 monomer voltage of Fig. 6 battery module.
Specific embodiment
The present invention is further illustrated to specific embodiment below in conjunction with attached drawing.
Battery failures diagnostic method step of the invention are as follows: battery management system real-time monitoring battery status, when monitoring When cell malfunctions, failure code table is inquired according to battery status battery management system (BMS) and generates error code, battery management system The error code of generation is transferred to entire car controller through CAN bus by system, and entire car controller deposits error code after receiving error code Storage is in storage unit.When repairing, the error code stored in entire car controller is read out by OBD interface.
In the generated error code of battery management system, each error code occupies two byte datas: byte 1 and byte 2.Therefore Barrier code is shown in hexadecimal form, as shown in table 1 to the definition of 16 data bit:
The definition of 1 error code data bit of table
In table 1:
B7, b6 two in byte 1 represent 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 represent specific error code 1, word B3, b2, b1, b0 tetra- in section 2 represent specific error code 2.
The definition of error code specifically: the b7b6=00 of byte 1, expression system under test (SUT) are power drive system;Byte 1 B5b4=01, expression error code main body are manufacturer's failure definition code.The b3b2b1b0=1011 and b3b2b1b0=of byte 1 1100 the two numerical value, the affiliated subsystem of representing fault are battery subsystem error code.
Battery system error code hexadecimal representation are as follows: 1Bxx represents level fault;1Cxx represents secondary failure.
For the ease of identification, identification code P is added before each error code in the failure code table of establishment, P indicates that power passes Dynamic system.Table 2 is battery level fault code table, and table 3 is battery secondary failure code table.
2 battery system level fault failure code table of table
3 battery system secondary failure failure code table of table
After error code generates, error code is transmitted to entire car controller by CAN bus by battery management system.
As shown in table 4, error code transmitting message data is made of 8 bytes, specially DATA0, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, including control parameter and error code two parts;DATA0, DATA1 are control ginseng Number, DATA0 PID indicate parameter name representated by data thereafter, and PID=43 indicates that subsequent data is error code, DATA1 Representing fault grade, numerical value are 1 or 2, and numerical value 1 is level fault, and numerical value 2 is secondary failure;Each error code occupies two Byte, each data message at most transmit 3 error code, and error code 1 is DATA2, DATA3, and error code 2 is DATA4, DATA5, Error code 3 is DATA6, DATA7;If the error code of diagnosis is less than 3, idle byte is set 0, to guarantee entire data Length meets the requirements.
4 error code transmitting message data of table
Error code transmitting step is as follows:
(1) CAN initialize: setting working method be normal mode, setting CAN baud rate with and system matches, setting CAN Filter is to filter information;
(2) CAN message is sent: being divided into 48 ID for 29 first and is sent;Then selection is idle sends buffer area, Data frame is judged whether it is, if it is, framing is sent;If not directly transmitting.After being sent completely, clear to send mark Position;
(3) CAN message receives: CAN message, which receives, uses interrupt mode, when there is information in CAN bus, receiving node one While message feeding filter is filtered, data are stored in the back buffer for receiving buffering, when examination passes through, the letter on one side Breath, which is moved into, receives buffer area, and to completely state flag bit set is buffered, triggering CAN receives the full interruption of buffering.Then at application Reason program can directly read the data for receiving foreground buffering, finally remove buffering full scale will, release foreground buffering, to receive Subsequent CAN message.
After entire car controller receives error code by CAN bus, by error code storage to storage unit.
When maintenance, maintenance personal is read out the error code stored in entire car controller by OBD interface.
Battery is tested according to mentioned-above method for diagnosing faults: battery management system real-time monitoring battery shape State, when monitoring cell malfunctions, battery management system (BMS) generates error code, and then battery management system is by generation Error code is sent to progress error code in CAN bus and is transferred to entire car controller, and entire car controller will be former after receiving error code Barrier code is stored in storage unit.Error code is read out by OBD interface, reads interface as shown in figure 5, battery to reading Fault message is analyzed, and examines whether fault diagnosis result is consistent with the operating status of battery, is carried out validation fault with this and is examined The diagnosis effect of disconnected method.Battery system is detected under static condition, and testing result has balanced event according to interface display Barrier, error code is P1B4F.The discovery of failure code table is inquired, P1B4F represents the battery cell in battery module 8, and there are unbalanced existing As.The voltage value of battery cell in battery module 8 is analyzed, as shown in Figure 6, it will thus be seen that highest monomer voltage in battery module 8 The difference overwhelming majority with average voltage is all in 20mV or more;The unbalanced alarm threshold value set herein is 20mV, it is seen that battery mould Really occurs balanced failure 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 remaining capacity of battery in reasonable range, to power battery Failure carries out diagnosis promptly and accurately, guarantees the safe and reliable operation of battery system.

Claims (3)

1. a kind of battery failures diagnostic method based on OBD system, it is characterised in that: battery management system real-time monitoring battery shape State inquires failure code table according to battery status battery management system (BMS) and generates failure when monitoring cell malfunctions The error code of generation is transferred to entire car controller through CAN bus by code, battery management system, and entire car controller receives error code Error code is stored in storage unit afterwards;When repairing, the error code stored in entire car controller is carried out by OBD interface It reads;
Each error code occupies two byte datas, including byte 1 and byte 2, and error code is shown in hexadecimal form Show;The definition of data bit is specific as follows: b7, b6 two in byte 1 represent system under test (SUT);B5, b4 two representatives in byte 1 Error code main body;Tetra- affiliated subsystems of representing fault of b3, b2, b1, b0 in byte 1;B7, b6, b5, b4 tetra- in byte 2 Position represents specific error code 1, and b3, b2, b1, b0 tetra- in byte 2 represent specific error code 2;The definition of error code specifically: The b7b6=00 of byte 1, expression system under test (SUT) are power drive system;The b5b4=01 of byte 1 indicates that error code main body is system It makes and decides through consultation adopted error code;The affiliated subsystem of b3b2b1b0=1011 and b3b2b1b0=1100 representing fault of byte 1 is battery Subsystem fault code;Battery system error code hexadecimal representation are as follows: 1Bxx represents level fault;1Cxx represents second level event Barrier;Identification code P is added before each error code in the failure code table of establishment, P indicates power drive system;
Error code generated is passed through Full Vehicle System by the battery management system in a manner of error code transmitting message data CAN bus is transferred to entire car controller;
Failure decoding transmission method is as follows:
(1) the CAN initialization of Full Vehicle System: it is normal mode, setting CAN baud that CAN working method, which is arranged, in battery management system Rate with and system matches, be arranged CAN filter to filter information;
(2) CAN message is sent: being sent firstly, battery management system is divided into 48 ID for 29;Then, selection is idle sends Buffer area judges whether it is 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 receives: CAN message, which receives, uses interrupt mode, and when there is information in CAN bus, receiving node on one side will Message is sent into filter and is filtered, and data are stored in the back buffer for receiving buffering, when examination passes through, the information quilt on one side Shift-in receives buffer area, and to completely state flag bit set is buffered, triggering CAN receives the full interruption of buffering;Then application processing journey Sequence directly reads the data for receiving foreground buffering, finally removes buffering full scale will, release foreground buffering, to receive subsequent CAN letter Breath;
The error code transmitting message data is made of 8 bytes, specially DATA0, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6, DATA7, including control parameter and error code two parts;DATA0, DATA1 are control parameter, DATA0 is that PID indicates parameter name representated by data thereafter, and PID=43 indicates that data are error code thereafter, and DATA1 is represented Fault level, numerical value are 1 or 2, and numerical value 1 is level fault, and numerical value 2 is secondary failure;Each error code occupies two bytes, Each data message at most transmits 3 error code, and error code 1 is DATA2, DATA3, and error code 2 is DATA4, DATA5, failure Code 3 is DATA6, DATA7;If the error code of diagnosis is less than 3, idle byte is set 0, to guarantee the length of entire data It meets the requirements.
2. the battery failures diagnostic method according to claim 1 based on OBD system, it is characterised in that: entire car controller After receiving error code by CAN bus, by error code storage to storage unit.
3. the battery failures diagnostic method according to claim 1 based on OBD system, it is characterised in that: when maintenance, maintenance Personnel read the error code of entire car controller storage by OBD interface.
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 CN107300910A (en) 2017-10-27
CN107300910B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8219279B2 (en) * 2008-07-01 2012-07-10 International Engine Intellectual Property Company, Llc Method for on-board data backup for configurable programmable parameters

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN107300910A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN103246280B (en) A kind of electric automobile diagnostic system
CN107472029B (en) High-voltage fault detection method for vehicle and vehicle
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
CN107300910B (en) A kind of battery failures diagnostic method based on OBD system
CN107340762B (en) Finished automobile abnormal function checking method and system
CA2601420A1 (en) Method and system of power management for a vehicle communication interface
CN105259458B (en) Verify battery bag management system insulating monitoring precision and earth leakage protective apparatus and method
CN112895900B (en) Hydrogen energy tramcar hydrogen redundancy monitoring protection device and method
CN109398092A (en) Method, device and equipment for preventing false alarm fault of finished automobile
CN103760895A (en) Hardware-in-loop test device and method for vehicle-mounted charger control device of new energy automobile
CN113555591A (en) Fuel cell diagnostic device and corresponding diagnostic method, vehicle and vehicle system
CN109839549A (en) The method of real-time and device of vehicle activation system working condition
CN110456761A (en) Test macro, method and the vehicle of energy management apparatus
Wang et al. Research on fault diagnosis system of electric vehicle power battery based on OBD technology
CN107589377B (en) battery pack running state acquisition device
CN109062188A (en) Test equipment and method for on-line checking GYK
CN103376407B (en) Method and device, storage battery and the motor vehicle of the Drive Diagnostics of contactor
CN109656231B (en) Communication test system for magnetic suspension traffic vehicle-mounted operation control
CN209514400U (en) Electric locomotive in-circuit diagnostic system
CN103640555A (en) HEV (Hybrid Electric Vehicle) control system manager
CN108089563B (en) A kind of ECU fast diagnosis method, terminal and system
CN108068648A (en) A kind of centralization cell management system of electric automobile
CN112009251B (en) Electric vehicle battery replacement system diagnosis method
CN115320380A (en) Method for increasing the availability of an energy storage or conversion system of a vehicle

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