CN106033220A - Method of detecting ECU Flash erasing and writing state and system thereof - Google Patents
Method of detecting ECU Flash erasing and writing state and system thereof Download PDFInfo
- Publication number
- CN106033220A CN106033220A CN201510115779.6A CN201510115779A CN106033220A CN 106033220 A CN106033220 A CN 106033220A CN 201510115779 A CN201510115779 A CN 201510115779A CN 106033220 A CN106033220 A CN 106033220A
- Authority
- CN
- China
- Prior art keywords
- software
- ecu flash
- refreshing
- flash
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention provides a method of detecting an ECU Flash erasing and writing state. The method comprises the following steps of acquiring a predicted service life frequency of the ECU Flash, a current refreshing frequency and a current refreshing attempt frequency; determining whether the acquired current refreshing frequency or the current refreshing attempt frequency is less than the acquired predicted service life frequency; if the acquired current refreshing frequency or the current refreshing attempt frequency is less than the acquired predicted service life frequency, determining that the ECU Flash erasing and writing state is normal; and if the acquired current refreshing frequency or the current refreshing attempt frequency is not less than the acquired predicted service life frequency, determining that the ECU Flash erasing and writing state changes. In an embodiment of the invention, the ECU Flash does not need to be dismounted and the erasing and writing state can be directly and effectively detected; and through acquiring an erasing and writing record of the ECU Flash, a reason that refreshing of the ECU Flash is failed is determined.
Description
Technical field
The present invention relates to vehicle electronics technical field, particularly relate to a kind of method and system detecting the erasable state of ECU Flash.
Background technology
Development along with automotive electronic technology, automotive circuit diagram degree is more and more higher, various software is applied in automobile the most more and more, it is not only applied only on the entertainment systems of automobile, it is also applied to some basic driving functionally, as turned to, brake and acceleration etc., even the driving of higher level is functionally, such as adaptive cruise control system and automatic parking etc..It is true that by the application of above-mentioned software, although can easily diagnose and solve automobile produced problem, but also due to software self Bug and result in the probability that driving is dangerous.Generally software Bug needs main engine plants or components supplying business to be solved by updating software, and in automobile research engineering, it is also desirable to the regular renewal using updating software to complete parts function, therefore, in automobile research and stage after sale, the frequency of software refreshing is more and more higher.
The Flash of vehicle-mounted electronic control unit (Electronic Control Unit, hereinafter referred to as ECU) mainly is carried out wiping and programming, to complete function renewal by software refreshing by diagnostic device.At present, most of main engine plants or supplier are only after ECU refreshes unsuccessfully, just can go hardware device is detected, check whether Flash goes wrong or reach its service life according to conditions such as output voltages, like this just cannot play preventive effect, and the inspection of Flash is only limitted to Flash can normally work, and concrete reason cannot be refined, be unfavorable for investigation and the experience accumulation of problem
Therefore, in view of Flash important function in ECU software refreshes and different Flash are in performance and the difference on service life, need a kind of method badly and certain monitoring is carried out for the Flash in ECU, can promote that automobile research and after-sale service are preferably carried out, the most also vehicle-mounted ECU can be refreshed problem preferably to monitor, review and refresh failed reason.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that a kind of detection ECU
The method and system of the erasable state of Flash, it is possible to be not required to dismantle ECU Flash and directly effectively detect its erasable state, and can be by obtaining the erasable record of ECU Flash, it is judged that ECU Flash refreshes failed reason.
In order to solve above-mentioned technical problem, embodiments providing a kind of method detecting the erasable state of ECU Flash, described method includes:
Obtain the predicted life number of times of ECU Flash, current refreshing frequency and currently refresh number of attempt;
The current refreshing frequency that gets described in judgement or current refresh number of attempt whether be less than described in the predicted life number of times that gets;
If it is, determine that the erasable state of described ECU Flash is normal;
If it is not, then determine that the erasable state of described ECU Flash occurs aging.
Wherein, described method farther includes:
When the erasable state of described ECU Flash is defined as normal, it is directly entered software refreshing pattern, to described ECU
Software on Flash refreshes.
Wherein, described method farther includes:
When the erasable state of described ECU Flash is defined as aging, obtain the classification of updating software the most further;
When the classification getting described updating software is safety member uncorrelated with traffic safety, then it is directly entered software refreshing pattern, the software on described ECU Flash is refreshed;
When the classification getting described updating software is the safety member being associated with traffic safety, then stop to refresh.
Wherein, described in be directly entered software refreshing pattern, the concrete steps refreshing the software on described ECU Flash include:
Wipe the Current software on described ECU Flash, and download described updating software;
Judge whether the Current software on described ECU Flash is wiped successfully;
If it is, described current refreshing number of attempt is added one, and described updating software is refreshed according to the refurbishing procedure preset, after described updating software Flushing success, described current refreshing frequency is added one;
If it is not, then stop to refresh.
Wherein, described method farther includes:
When described updating software refreshes unsuccessfully, then stop to refresh, keep described current refreshing frequency constant.
Wherein, described ECU Flash current refreshing frequency and current refresh number of attempt all can be by specific equipment to running under DASE or described ECU Flash under boot software environment is read out and obtains.
The embodiment of the present invention additionally provides a kind of system detecting the erasable state of ECU Flash, and described system includes:
Acquiring unit, for obtaining the predicted life number of times of ECU Flash, current refreshing frequency and currently refreshing number of attempt;
Judging unit, the current refreshing frequency got described in judge or current refresh number of attempt whether be less than described in the predicted life number of times that gets;
First status determining unit, is normal for determining the erasable state of described ECU Flash;
Second status determining unit, for determining that the erasable state of described ECU Flash occurs aging.
Wherein, described system also includes:
The software refreshing unit of the first state, for when the erasable state of described ECU Flash is defined as normal, is directly entered software refreshing pattern, refreshes the software on described ECU Flash.
Wherein, described system also includes:
The software refreshing unit of the second state, for when the erasable state of described ECU Flash is defined as aging, obtains the classification of updating software the most further;When the classification getting described updating software is safety member uncorrelated with traffic safety, then it is directly entered software refreshing pattern, the software on described ECU Flash is refreshed;When the classification getting described updating software is the safety member being associated with traffic safety, then stop to refresh.
Wherein, current refreshing frequency and the current refreshing number of attempt of described ECU Flash all can be by the specific equipment described ECU to running under DASE or under boot software environment
Flash is read out and obtains.
Implement the embodiment of the present invention, have the advantages that
1, in embodiments of the present invention, owing to reading the ECU Flash current refreshing frequency under DASE or under boot software environment by particular device (such as ancillary equipment) and currently refreshing number of attempt, compare with the predicted life number of times dispatched from the factory, thus realize being not required to dismantle ECU Flash, and can the most effectively review the erasing and writing life of ECU Flash, and it is the most aging with Flash relevant to judge that ECU Flash refreshes failed reason accurately, auxiliary automobile research and after sale problem investigation;
2, in embodiments of the present invention, due to the erasable record by obtaining ECU Flash, it is judged that the service life that ECU Flash is possible, anticipation ECU
Flash is aging may refresh, on ECU, the impact that cause, reduce ECU refresh unsuccessfully and on the whole vehicle functions even impact of traffic safety.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, the accompanying drawing obtaining other according to these accompanying drawings still falls within scope of the invention.
The flow chart of the method for the detection erasable state of ECU Flash that Fig. 1 provides for the embodiment of the present invention;
The structural representation of DID definition in the method application scenarios of the detection erasable state of ECU Flash that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the system of the detection erasable state of ECU Flash that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
As it is shown in figure 1, a kind of method detecting the erasable state of ECU Flash provided for the embodiment of the present invention, described method includes:
Step S101, obtain the predicted life number of times of ECU Flash, current refreshing frequency and currently refresh number of attempt;
In embodiments of the present invention, based on UDS(Unified
Diagnostic Services, unified Diagnosis Service) agreement, define two for recording ECU
The DID(Data Identifer of Flash erasing and writing life, Data Identification): refreshing frequency and refreshing number of attempt, DID is specifically defined as in figure 2 it is shown, refreshing frequency and refreshing two DID of number of attempt can record the Flash refreshing frequency of up to 65535 times.
Owing to the predicted life number of times of ECU Flash is designed by manufacturer self, if therefore the predicted life of ECU Flash exceedes refreshing frequency and refreshes the definition upper limit of number of attempt, can expand to meet requirement to DID size.
It should be noted that, the refreshing frequency of ECU Flash and refreshing number of attempt all can be by the specific equipment (such as the ancillary equipment) ECU to running under DASE or under boot software environment
Flash is read out and obtains, even if so that in the case of software on ECU Flash is wiped free of, it is possible to refresh number of attempt and refreshing frequency is reviewed ECU and refreshed failed reason by reading.
Step S102, judge described in the current refreshing frequency that gets or current refresh number of attempt whether be less than described in the predicted life number of times that gets;If it is, perform next step S103;If it is not, then jump procedure S104;
Step S103, the erasable state determining described ECU Flash are normal;
Step S104, determine described ECU Flash erasable state occur aging.
In embodiments of the present invention, in order to realize the integrated High Level of the electronics of ECU, ECU is being detected
The erasable state of Flash be normal after, software refreshing should be performed, therefore the method farther includes: when the erasable state of ECU Flash is defined as normal, is directly entered software refreshing pattern, refreshes the software on ECU Flash.
In like manner, when the erasable state detecting ECU Flash is aging, need to judge that the classification of this software is the most relevant with traffic safety for needing the software of refreshing badly, just can be effectively prevented the generation of the situation affecting traffic safety, therefore, method farther includes:
When the erasable state of ECU Flash is defined as aging, obtain the classification of updating software the most further;
When the classification getting updating software is safety member uncorrelated with traffic safety, then it is directly entered software refreshing pattern, the software on ECU Flash is refreshed;
When the classification getting updating software is the safety member being associated with traffic safety, then stop to refresh.
It should be noted that, safety member uncorrelated with traffic safety is before entering software refreshing pattern, it may appear that indicating risk.
In embodiments of the present invention, being directly entered software refreshing pattern, the concrete steps refreshing the software on ECU Flash include:
Current software on step S1, erasing ECU Flash, and download updating software;
Whether step S2, the Current software judged on ECU Flash are wiped successfully;If it is, perform next step S3;If it is not, then jump procedure S4;
Step S3, add one by currently refreshing number of attempt, and updating software is refreshed according to the refurbishing procedure preset, after software refreshing to be refreshed success, current refreshing frequency is added one;
Step S4, termination refresh.
It should be noted that, before updating software enters software refreshing pattern, it is necessary to make car load or ECU be maintained at the state that can refresh.When updating software refreshes unsuccessfully, then stop to refresh, keep current refreshing frequency constant.The refurbishing procedure preset can be for according to the refresh flow defined in ISO specification.
To sum up, it appeared that, when the current refreshing frequency got is equal with current refreshing number of attempt, it is aging with ECU Flash relevant that ECU Flash refreshes failed reason, and when the current refreshing frequency got is unequal with current refreshing number of attempt, ECU Flash refreshes failed reason need to detect ECU Flash predicted life number of times further, just can discriminate whether aging with ECU Flash relevant, therefore according to the current refreshing frequency read and currently can refresh number of attempt, be used for assisting automobile research and problem after sale to investigate.
As it is shown on figure 3, a kind of detection ECU provided for the embodiment of the present invention
The system of the erasable state of Flash, described system includes:
Acquiring unit 110, for obtaining the predicted life number of times of ECU Flash, current refreshing frequency and currently refreshing number of attempt;
Judging unit 120, the current refreshing frequency got described in judge or current refresh number of attempt whether be less than described in the predicted life number of times that gets;
First status determining unit 130, is normal for determining the erasable state of described ECU Flash;
Second status determining unit 140, for determining that the erasable state of described ECU Flash occurs aging.
Wherein, described system also includes:
The software refreshing unit of the first state, for when the erasable state of described ECU Flash is defined as normal, is directly entered software refreshing pattern, refreshes the software on described ECU Flash.
Wherein, described system also includes:
The software refreshing unit of the second state, for when the erasable state of described ECU Flash is defined as occurring aging, obtains the classification of updating software the most further;When the classification getting described updating software is safety member uncorrelated with traffic safety, then it is directly entered software refreshing pattern, the software on described ECU Flash is refreshed;When the classification getting described updating software is the safety member being associated with traffic safety, then stop to refresh.
Wherein, current refreshing frequency and the current refreshing number of attempt of ECU Flash all can be by the specific equipment ECU to running under DASE or under boot software environment
Flash is read out and obtains.
Implement the embodiment of the present invention, have the advantages that
1, in embodiments of the present invention, owing to reading the ECU Flash current refreshing frequency under DASE or under boot software environment by particular device (such as ancillary equipment) and currently refreshing number of attempt, compare with the predicted life number of times dispatched from the factory, thus realize being not required to dismantle ECU Flash, and can the most effectively review the erasing and writing life of ECU Flash, and it is the most aging with Flash relevant to judge that ECU Flash refreshes failed reason accurately, auxiliary automobile research and after sale problem investigation;
2, in embodiments of the present invention, due to the erasable record by obtaining ECU Flash, it is judged that the service life that ECU Flash is possible, anticipation ECU
Flash is aging may refresh, on ECU, the impact that cause, reduce ECU refresh unsuccessfully and on the whole vehicle functions even impact of traffic safety.
It should be noted that in said system embodiment, each included system unit is to carry out dividing according to function logic, but is not limited to above-mentioned division, as long as being capable of corresponding function;It addition, the specific name of each functional unit is also only to facilitate mutually distinguish, it is not limited to protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method can be by program and completes to instruct relevant hardware, described program can be stored in a computer read/write memory medium, described storage medium, such as ROM/RAM, disk, CD etc..
Above disclosed it is only one preferred embodiment of the present invention, certainly can not limit the interest field of the present invention, the equivalent variations therefore made according to the claims in the present invention with this, still belong to the scope that the present invention is contained.
Claims (10)
1. the method detecting the erasable state of ECU Flash, it is characterised in that described method includes:
Obtain the predicted life number of times of ECU Flash, current refreshing frequency and currently refresh number of attempt;
The current refreshing frequency that gets described in judgement or current refresh number of attempt whether be less than described in the predicted life number of times that gets;
If it is, determine that the erasable state of described ECU Flash is normal;
If it is not, then determine that the erasable state of described ECU Flash occurs aging.
2. the method for claim 1, it is characterised in that described method farther includes:
When the erasable state of described ECU Flash is defined as normal, it is directly entered software refreshing pattern, the software on described ECU Flash is refreshed.
3. the method for claim 1, it is characterised in that described method farther includes:
When the erasable state of described ECU Flash is defined as aging, obtain the classification of updating software the most further;
When the classification getting described updating software is safety member uncorrelated with traffic safety, then it is directly entered software refreshing pattern, to described ECU
Software on Flash refreshes;
When the classification getting described updating software is the safety member being associated with traffic safety, then stop to refresh.
4. as claimed in claim 2 or claim 3 method, it is characterised in that described in be directly entered software refreshing pattern, the concrete steps refreshing the software on described ECU Flash include:
Wipe the Current software on described ECU Flash, and download updating software;
Judge whether the Current software on described ECU Flash is wiped successfully;
If it is, described current refreshing number of attempt is added one, and described updating software is refreshed according to the refurbishing procedure preset, after described updating software Flushing success, described current refreshing frequency is added one;
If it is not, then stop to refresh.
5. method as claimed in claim 4, it is characterised in that described method farther includes:
When described updating software refreshes unsuccessfully, then stop to refresh, keep described current refreshing frequency constant.
6. the method for claim 1, it is characterized in that, the current refreshing frequency of described ECU Flash and current refresh number of attempt all can be by specific equipment to running under DASE or described ECU Flash under boot software environment is read out and obtains.
7. the system detecting the erasable state of ECU Flash, it is characterised in that described system includes:
Acquiring unit, for obtaining the predicted life number of times of ECU Flash, current refreshing frequency and currently refreshing number of attempt;
Judging unit, the current refreshing frequency got described in judge or current refresh number of attempt whether be less than described in the predicted life number of times that gets;
First status determining unit, is normal for determining the erasable state of described ECU Flash;
Second status determining unit, for determining that the erasable state of described ECU Flash occurs aging.
8. system as claimed in claim 7, it is characterised in that described system also includes:
The software refreshing unit of the first state, for when the erasable state of described ECU Flash is defined as normal, is directly entered software refreshing pattern, refreshes the software on described ECU Flash.
9. system as claimed in claim 7, it is characterised in that described system also includes:
The software refreshing unit of the second state, for when the erasable state of described ECU Flash is defined as aging, obtains the classification of updating software the most further;When the classification getting described updating software is safety member uncorrelated with traffic safety, then it is directly entered software refreshing pattern, the software on described ECU Flash is refreshed;When the classification getting described updating software is the safety member being associated with traffic safety, then stop to refresh.
10. system as claimed in claim 7, it is characterized in that, the current refreshing frequency of described ECU Flash and current refresh number of attempt all can be by specific equipment to running under DASE or described ECU Flash under boot software environment is read out and obtains.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510115779.6A CN106033220A (en) | 2015-03-17 | 2015-03-17 | Method of detecting ECU Flash erasing and writing state and system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510115779.6A CN106033220A (en) | 2015-03-17 | 2015-03-17 | Method of detecting ECU Flash erasing and writing state and system thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106033220A true CN106033220A (en) | 2016-10-19 |
Family
ID=57151062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510115779.6A Pending CN106033220A (en) | 2015-03-17 | 2015-03-17 | Method of detecting ECU Flash erasing and writing state and system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106033220A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240259A (en) * | 2018-07-16 | 2019-01-18 | 深圳市元征科技股份有限公司 | Vehicular diagnostic method, device, equipment and storage medium |
CN112435706A (en) * | 2020-11-05 | 2021-03-02 | 北京中电华大电子设计有限责任公司 | Nonvolatile memory application level erasing life evaluation method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266492A (en) * | 2008-04-29 | 2008-09-17 | 上海汽车集团股份有限公司 | Vehicle diagnostic device calibration software configuration administrative system and method |
US20090119657A1 (en) * | 2007-10-24 | 2009-05-07 | Link Ii Charles M | Methods and systems for software upgrades |
CN101825875A (en) * | 2010-05-25 | 2010-09-08 | 奇瑞汽车股份有限公司 | Method and device for updating software |
CN102237117A (en) * | 2010-05-04 | 2011-11-09 | 国民技术股份有限公司 | Method and device for calculating service life of mobile storage device |
US20130079950A1 (en) * | 2011-09-22 | 2013-03-28 | Kia Motors Corporation | Vehicle upgrade system and method thereof |
CN103246280A (en) * | 2012-12-04 | 2013-08-14 | 奇瑞汽车股份有限公司 | Electric automobile diagnostic system |
-
2015
- 2015-03-17 CN CN201510115779.6A patent/CN106033220A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090119657A1 (en) * | 2007-10-24 | 2009-05-07 | Link Ii Charles M | Methods and systems for software upgrades |
CN101266492A (en) * | 2008-04-29 | 2008-09-17 | 上海汽车集团股份有限公司 | Vehicle diagnostic device calibration software configuration administrative system and method |
CN102237117A (en) * | 2010-05-04 | 2011-11-09 | 国民技术股份有限公司 | Method and device for calculating service life of mobile storage device |
CN101825875A (en) * | 2010-05-25 | 2010-09-08 | 奇瑞汽车股份有限公司 | Method and device for updating software |
US20130079950A1 (en) * | 2011-09-22 | 2013-03-28 | Kia Motors Corporation | Vehicle upgrade system and method thereof |
CN103246280A (en) * | 2012-12-04 | 2013-08-14 | 奇瑞汽车股份有限公司 | Electric automobile diagnostic system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240259A (en) * | 2018-07-16 | 2019-01-18 | 深圳市元征科技股份有限公司 | Vehicular diagnostic method, device, equipment and storage medium |
CN112435706A (en) * | 2020-11-05 | 2021-03-02 | 北京中电华大电子设计有限责任公司 | Nonvolatile memory application level erasing life evaluation method |
CN112435706B (en) * | 2020-11-05 | 2023-06-30 | 北京中电华大电子设计有限责任公司 | Nonvolatile memory application level erasing life evaluation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100748011B1 (en) | Method for identifying the condition of an energy accumulator | |
CN102163255B (en) | The health forecast of the complication system of operational failure modeling | |
CN102043680B (en) | Method and system for refreshing ECU (Electronic Control Unit) embedded software and downloading program | |
US20130158779A1 (en) | Method for operating a fault diagnosis system of a vehicle and vehicle | |
US8321158B2 (en) | Method and system for monitoring freshness of fuel in vehicles | |
JPH09230929A (en) | Method and device for diagnosing fault of on-vehicle controller | |
US7801652B2 (en) | Method for storing data concerning an operating fault of a device | |
US8260490B2 (en) | Method for improving diagnosis of a possible breakdown in a vehicle | |
CN113110909A (en) | Vehicle instrument testing method and device | |
US20220374992A1 (en) | System and Method for Use of Carbon Emissions in Characterizing Driver Performance | |
US9128630B2 (en) | System and method for monitoring memory stack size | |
CN106033220A (en) | Method of detecting ECU Flash erasing and writing state and system thereof | |
KR101104442B1 (en) | Method and apparatus for diagnosing radar trouble | |
JP4281808B2 (en) | VEHICLE CONTROL DEVICE AND ITS CONTROL METHOD | |
US20100082199A1 (en) | Failure determination apparatus for vehicle, failure determination method and computer readable medium for failure determination | |
US9501347B2 (en) | Documentation of faults in a fault memory of a motor vehicle | |
Harris | Embedded software for automotive applications | |
CN203658989U (en) | ECU (electronic control unit) embedding software refreshing and program downloading system | |
CN111145386A (en) | Method, equipment and medium for managing vehicle computer data based on block chain | |
CN115946673B (en) | Fault diagnosis method, system, equipment and medium for automobile brake | |
CN108804254A (en) | Method and system for troubleshooting during vehicle medium-long range installation software | |
US20240118969A1 (en) | Storage abnormality detection device, storage abnormality detection method, and computer-readable storage medium | |
JP7205245B2 (en) | electronic controller | |
CN115426607A (en) | Audio diagnosis method and device, electronic equipment and storage medium | |
CN117496617A (en) | Recording method and device for driving records and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161019 |
|
RJ01 | Rejection of invention patent application after publication |