CN106408684A - Fault information storage method and device - Google Patents

Fault information storage method and device Download PDF

Info

Publication number
CN106408684A
CN106408684A CN201610874080.2A CN201610874080A CN106408684A CN 106408684 A CN106408684 A CN 106408684A CN 201610874080 A CN201610874080 A CN 201610874080A CN 106408684 A CN106408684 A CN 106408684A
Authority
CN
China
Prior art keywords
fault message
storage
storage region
fault
storing
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
CN201610874080.2A
Other languages
Chinese (zh)
Other versions
CN106408684B (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.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN201610874080.2A priority Critical patent/CN106408684B/en
Publication of CN106408684A publication Critical patent/CN106408684A/en
Application granted granted Critical
Publication of CN106408684B publication Critical patent/CN106408684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/068Hybrid storage device
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a fault information storage method and device. The method comprises the steps of detecting the data volume of fault information needed to be stored currently; checking the remained space of a first storage area for storing fault information in the random access memory in a vehicle; If the difference between the data volume of the fault information to be stored currently and the remained space of the first storage area is larger than or equal to a first preset value and smaller than a second preset value, the stored fault information in the first storage area is partially or wholly transferred to a read-only EEPROM which is both electrically erasable and programmable, and fault information needing to be stored currently is transferred to and stored in the first storage area. The technical scheme not only can wholly record the existent information of the faults which already occur, but also can timely store the fault information of newly emerged faults, thereby enhancing the utilization rate of the storage space.

Description

A kind of method and device of fault message storage
Technical field
The present invention relates to automobile technical field, more particularly, to a kind of method and device of fault message storage.
Background technology
In the face of increasingly severe energy and environment problem, energy-conservation and new-energy automobile are just becoming the heat of current various countries research Point.As one kind of energy-conservation and new-energy automobile, pure electric automobile has emission-free discharge, energy efficiency in the process of moving The multiple advantages such as height, low, the recoverable energy of noise.With the fast development of pure electric automobile, integrated control becomes pure electricity The trend of electrical automobile current development.Integrated control, as the term suggests, rely on the powerful computing capability of microprocessor at this stage, enrich Function and external resource, the separate controller that will be responsible for difference in functionality effectively integrates, by common hardware resource, real The institute now originally being completed by multiple independent controls is functional.
System is at any time for onboard diagnostic system (On-Board Diagnostic, abbreviation OBD) in car load integrated manipulator The ruuning situation of monitoring entire car controller, once find there is abnormal situation, trouble light (Malfunction Indication Lamp, abbreviation MIL) emergency warning lamp is bright, fault message can be stored in memory by OBD system simultaneously, by the diagnostic instrments of standard and Diagnosis interface can read relevant information in the form of DTC.According to the prompting of DTC, maintenance personal can be quickly and accurately Determine property and the position of fault.
Because the fault that car load integrated manipulator is responsible for diagnosing gets more and more, freeze the fault messages such as frame information also increasingly Many, if to each it may happen that fault, all random access memory (Random Access Memory, referred to as RAM reserve storage fault message in space in), then the ram space of car load integrated manipulator is by wretched insufficiency.Additionally, at present Entire car controller typically can use the ram space of regular length to store the fault message of fixed qty, only when electricity under car load, will In fault message write EEPROM.And in car load running, if the fault message of storage is excessive in RAM, there is new event During barrier, then new fault message can cover original fault message, so that fault message record is not comprehensive.
Content of the invention
Embodiments provide a kind of method and device of fault message storage, transported with the car load solving prior art The limited problem of fault message stored number during row.
In order to solve above-mentioned technical problem, the present invention adopts the following technical scheme that:
A kind of first aspect, there is provided method of fault message storage, including:
Detection is currently needed for the data volume of the fault message of storage;
For storing the residual capacity of the first storage region of fault message in detection automobile random access memory;
If the difference of the residual capacity of the described data volume of fault message being currently needed for storing and described first storage region Value more than or equal to the first preset value and is less than the second preset value, then by the fault message of storage in described first storage region Completely or partially it is transferred in EEPROM EEPROM, the described fault message being currently needed for storing is deposited Store up to described first storage region.
The method of fault message storage provided in an embodiment of the present invention, the fault that can break down in complete documentation is believed The fault message of new fault while breath, can be stored again in time, improve the utilization rate of memory space.
Further, it is used for storing the surplus of the first storage region of fault message in described detection automobile random access memory After the step of covolume amount, methods described also includes:
If the difference of the residual capacity of the described data volume of fault message being currently needed for storing and described first storage region Value is more than or equal to the second preset value, then deposit the described partial fault information Store being currently needed for storing at random in described automobile In second storage region of reservoir;
Wherein, described partial fault information is:In the described fault message being currently needed for storing, exceed the event of residual capacity The fault message of unnecessary described second preset value quantity part in barrier information.
Further, it is transferred in EEPROM in the described fault message by storage in described first storage region, will During the described fault message being currently needed for storing stores to described first storage region, methods described also includes:
The fault newly writing described first storage region is recorded in the 3rd storage region of described automobile random access memory The storage location of information, newly write the storage location of the fault message of described second storage region, and update storage location and send out The storage location of the fault message of changing.
Further, it is transferred in EEPROM in the described fault message by storage in described first storage region, will After the described fault message being currently needed for storing stores the step to described first storage region, methods described also includes:
The reading instruction of detection read failure information;
According to the storage location information recording fault message in described 3rd storage region, determine that described reading instruction is wanted The storage location of the fault message reading;
Read failure information from the storage location determining.
Further, described by described be currently needed for store fault message store the step to described first storage region Rapid inclusion:
By the DTC, malfunction and the freeze frame information Store that are currently needed for storing in described first storage region In.
Further, described by described be currently needed for store fault message store the step to described first storage region Rapid inclusion:
By the sequence number of the DTC being currently needed for storing, malfunction and freeze frame information Store in the described first storage In region;
Wherein, the serial number of described DTC:When defining the DTC of each fault, the numbering to each DTC.
A kind of second aspect, there is provided device of fault message storage, including:
First detection module, is currently needed for the data volume of the fault message of storage for detection;
Second detection module, is used in automobile random access memory storing the first storage region of fault message for detecting Residual capacity;
First processing module, for described being currently needed for data volume and described first memory block of the fault message storing When the difference of the residual capacity in domain is more than or equal to the first preset value and is less than the second preset value, by described first storage region The fault message of storage is completely or partially transferred in EEPROM EEPROM, is currently needed for described The fault message of storage stores to described first storage region.
The device of fault message storage provided in an embodiment of the present invention, the fault that can break down in complete documentation is believed The fault message of new fault while breath, can be stored again in time, improve the utilization rate of memory space.
Further, described device also includes:
Second processing module, for described being currently needed for data volume and described first memory block of the fault message storing When the difference of the residual capacity in domain is more than or equal to the second preset value, by the described partial fault information Store being currently needed for and storing In the second storage region of described automobile random access memory;
Wherein, described partial fault information is:In the described fault message being currently needed for storing, exceed the event of residual capacity The fault message of unnecessary described second preset value quantity part in barrier information.
Further, described device also includes:
Logging modle, deposits for recording new write described first in the 3rd storage region of described automobile random access memory The storage location of the storage location of the fault message in storage area domain, the newly fault message of described second storage region of write, Yi Jigeng The storage location of the fault message that new storage location changes.
Further, described device also includes:
3rd detection module, the reading for detecting read failure information instructs;
Determining module, for according to the storage location information recording fault message in described 3rd storage region, determining institute State the storage location reading instruction fault message to be read;
Read module, for read failure information from the storage location determining.
Further, described first processing module specifically for:By be currently needed for store DTC, malfunction and Freeze frame information Store is in described first storage region.
Further, described first processing module specifically for:By the sequence number of the DTC being currently needed for storing, fault shape State and freeze frame information Store are in described first storage region;
Wherein, the serial number of described DTC:When defining the DTC of each fault, the numbering to each DTC.
The invention has the beneficial effects as follows:
Whether technique scheme, by detecting the data volume of new fault message, thus judge to have in RAM enough may be used Memory space, when an insufficient storage space exists, the fault message of storage in RAM is transferred to EEPROM, thus discharging RAM Memory space to store new fault message, so, while the fault message that complete documentation has broken down, and The fault message of new fault can be stored in time, improve the utilization rate of memory space.
Brief description
The flow chart that Fig. 1 represents the method for fault message storage that first embodiment of the invention provides;
The flow chart that Fig. 2 represents the method for read failure information that first embodiment of the invention provides;
Fig. 3 represents the block diagram of the device of fault message storage that second embodiment of the invention provides.
Specific embodiment
It is more fully described the exemplary embodiment of the present invention below with reference to accompanying drawings.Although showing the present invention in accompanying drawing Exemplary embodiment it being understood, however, that may be realized in various forms the present invention and should not be by embodiments set forth here Limited.On the contrary, these embodiments are provided to be able to be best understood from the present invention, and can be by the scope of the present invention Complete conveys to those skilled in the art.
First embodiment
Embodiments provide a kind of method of fault message storage, as shown in figure 1, including:
S101, detection are currently needed for the data volume of the fault message of storage.
Whether in the embodiment of the present invention, can detect currently to have in real time or regularly needs the fault message of storage, Yi Jixu The data volume of fault message to be stored.
For storing the residual capacity of the first storage region of fault message in S102, detection automobile random access memory.
In the embodiment of the present invention, can work as after the fault message currently with needs storage is detected, detection automobile is random Memory (hereinafter referred to as RAM) is used for storing the residual capacity of the first storage region of fault message, to determine the first memory block Whether the residual capacity in domain can store the fault message being currently needed for storing;Can also be currently whether to there are needs in detection While the data volume of fault message of the fault message of storage and needs storage, the remaining appearance of detection the first storage region Amount, to improve processing speed.Of course, it should be understood that other achievable modes can also be adopted, concrete condition, can be according to reality Border demand selects.
If the data volume of fault message that S103 is currently needed for storing is big with the difference of the residual capacity of the first storage region In or be equal to the first preset value and be less than the second preset value, then by the fault message of storage in the first storage region all or portion Divide and be transferred in EEPROM EEPROM, the fault message being currently needed for storing is stored to the first storage In region.
In the embodiment of the present invention, need the fault message of storage and the fault message needing storage when determining currently to have Data volume when, the difference relationship of the residual capacity of the data volume of the fault message storing as needed and the first storage region, It is further processed.
The data volume of the fault message if desired storing is pre- less than first with the difference of the residual capacity of the first storage region If value, then directly the fault message needing storage is stored in the first storage region.Wherein, needs storage described here The data volume of fault message is that the data volume needing the fault message storing subtracts with the difference of the residual capacity of the first storage region Go the difference of the residual capacity of the first storage region.First preset value is a numerical value less than or equal to 0, the choosing of concrete data Take and can determine according to the actual requirements.Difference is less than the first preset value and illustrates that the residual capacity of the first storage region be enough to store currently Need the fault message of storage.
The data volume of the fault message if desired storing is more than or equal to the difference of the residual capacity of the first storage region First preset value and be less than or equal to the second preset value, then need by the fault message of storage in the first storage region all or portion Divide and be transferred in EEPROM, the fault message being currently needed for storing is stored to the first storage region.So, it is in car load During running status, can either the fault message that broken down of complete documentation, the storage that again can discharge the first storage region is empty Between, to store the fault message of new fault, realize the multiplexing of the first memory space.
Wherein, the second preset value is a numerical value more than 0, and the selection of concrete data can determine according to the actual requirements.Enter The purpose that row second preset value limits is:Ensure can to have in the first storage region enough can memory space storage new Fault message, therefore when difference is more than or equal to the first preset value and less than the second preset value, for ensureing the first storage region Can have the new fault message of enough residual capacity storages, need to will be whole for the fault message of storage in the first storage region Or part is transferred in EEPROM, the fault message being currently needed for storing is stored to the first storage region.
Need certain time due to the fault message in the first storage region is transferred to EEPROM, therefore process for reduction Time, when in the new fault message of guarantee can store completely to the first storage region, can only partial fault information be shifted To EEPROM.As when in the first storage region existing 80% memory space occupied, when needing transfer part fault message When being transferred in EEPROM, can only transferase 45 0% quantity fault message, the fault message for remaining 30% quantity do not carry out Transfer.
Further, if being currently needed for the difference of the residual capacity of the data volume of fault message and the first storage region storing Value is more than or equal to the second preset value, then will be currently needed for the partial fault information Store storing in second storage region of RAM In.This second storage region is a reserved buffer area, when the fault message being currently needed for storing is excessive, and in the first storage region When the fault message of storage has little time all to write EEPROM, can temporarily partly new fault message be stored to the second storage In region, to avoid the loss of fault message.In subsequent process, the fault message in the second storage region can be transferred to first In storage region or in EEPROM, concrete condition, can design according to the actual requirements.
Wherein, partial fault information described here is:It is currently needed in the fault message storing, exceed residual capacity The fault message of unnecessary second preset value quantity part in fault message.
Further, in the embodiment of the present invention, fault message includes:DTC (or sequence number of DTC), malfunction And freeze frame information etc..Therefore, storage fault message is by the DTC (or sequence number of DTC) being currently needed for storing, event Barrier state and freeze frame information Store are in the first storage region or the second storage region.
Wherein, the serial number of DTC described here:When defining the DTC of each fault, the volume to each DTC Number.For example, defined in flash memory (Flash EEPROM Memory, abbreviation FLASH) during the DTC of each fault, to fault Code division is not ranked up numbering, and so both having facilitated the record of fault message, and simultaneously because only needing record number, therefore can reduce number According to the occupancy to memory space.
Further, in the embodiment of the present invention, for the ease of failure diagnostic apparatus read failure information, can be the 3rd of RAM the The new storage location of fault message writing the first storage region, the new fault writing the second storage region is recorded in storage region The storage location of information, and update the storage location of the fault message that storage location changes.
Wherein, as shown in Figure 2, it is determined whether there is the operation of read failure information and the realization side processing reading process Method is:
S201, the reading instruction of detection read failure information, if existing, enter S202.
Wherein, entire car controller can be periodically detected and whether follow unified diagnostic service (Unified Diagnostic Services, abbreviation UDS) agreement failure diagnostic apparatus read failure information instruction.
S202, the storage location information according to record fault message in the 3rd storage region, determine that reading instruction will read The storage location of the fault message taking.
In query script, can first judging whether fault message to be read is stored in EEPROM, if existing, entering Enter S203;If not existing, judge whether fault message to be read is stored in first storage region of RAM, if existing, Then entering S203, if not existing, judging whether fault message to be read is stored in second storage region of RAM, if Exist, then enter S203.
S203, from determine storage location read failure information.
This step is according to the judgement of S202, read failure information from the storage location determining.
In sum, the method for fault message storage provided in an embodiment of the present invention, by detecting new fault message Data volume, thus judging whether there is available enough memory space in RAM, when an insufficient storage space exists, will store in RAM Fault message be transferred to EEPROM, thus discharging the memory space of RAM, to store new fault message, so, complete While recording the fault message having broken down, the fault message of new fault can be stored again in time, improve memory space Utilization rate.
Second embodiment
Embodiments provide a kind of device of fault message storage, as shown in figure 3, including:
First detection module 301, is currently needed for the data volume of the fault message of storage for detection.
In the embodiment of the present invention, whether first detection module 301 can detect currently to have in real time or regularly needs storage Fault message, and need the data volume of the fault message of storage.
Second detection module 302, is used in automobile random access memory storing the first memory block of fault message for detecting The residual capacity in domain.
In the embodiment of the present invention, first detection module 301 can be worked as and the fault message currently with needs storage is detected Afterwards, detect automobile random access memory (hereinafter referred to as RAM) for storing the first storage of fault message by the second detection module 302 Whether the residual capacity in region, can store the fault letter being currently needed for storing with the residual capacity determining the first storage region Breath;Can also detect that the fault message currently whether with needs storage and needs store in first detection module 301 While the data volume of fault message, detected the residual capacity of the first storage region by the second detection module 302, to improve process Speed.Of course, it should be understood that other achievable modes, concrete condition can also be adopted, can select according to the actual requirements.
First processing module 303, for data volume and first storage region of fault message that are currently needed for storing The difference of residual capacity is more than or equal to the first preset value and during less than the second preset value, by storage in the first storage region Fault message is completely or partially transferred in EEPROM EEPROM, by the fault letter being currently needed for storing Breath stores to the first storage region.
In the embodiment of the present invention, need fault message and the need of storage when first detection module 301 determines currently to have During the data volume of fault message to be stored, the data volume of the fault message that first processing module 303 can store as needed with The difference relationship of the residual capacity of the first storage region, is further processed.
The data volume of the fault message if desired storing is pre- less than first with the difference of the residual capacity of the first storage region If during value, then directly the fault message needing storage is stored in the first storage region.Wherein, described here need to store The residual capacity of the data volume of fault message and the first storage region difference be the fault message needing storage data volume Deduct the difference of the residual capacity of the first storage region.First preset value is a numerical value less than or equal to 0, concrete data Selection can determine according to the actual requirements.Difference is less than the first preset value and illustrates that the residual capacity of the first storage region is worked as enough to store The front fault message needing storage.
The data volume of the fault message if desired storing is more than or equal to the difference of the residual capacity of the first storage region First preset value and be less than or equal to the second preset value, then need by the fault message of storage in the first storage region all or portion Divide and be transferred in EEPROM, the fault message being currently needed for storing is stored to the first storage region.So, it is in car load During running status, can either the fault message that broken down of complete documentation, the storage that again can discharge the first storage region is empty Between, to store the fault message of new fault, realize the multiplexing of the first memory space.
Wherein, the second preset value is a numerical value more than 0, and the selection of concrete data can determine according to the actual requirements.Enter The purpose that row second preset value limits is:Ensure can to have in the first storage region enough can memory space storage new Fault message, therefore when difference is more than or equal to the first preset value and less than the second preset value, for ensureing the first storage region Can have the new fault message of enough residual capacity storages, need to will be whole for the fault message of storage in the first storage region Or part is transferred in EEPROM, the fault message being currently needed for storing is stored to the first storage region.
Need certain time due to the fault message in the first storage region is transferred to EEPROM, therefore process for reduction Time, when in the new fault message of guarantee can store completely to the first storage region, can only partial fault information be shifted To EEPROM.As when in the first storage region existing 80% memory space occupied, when needing transfer part fault message When being transferred in EEPROM, can only transferase 45 0% quantity fault message, the fault message for remaining 30% quantity do not carry out Transfer.
Further, this device also includes:
Second processing module, for being currently needed for the data volume of fault message and the residue of the first storage region that store When the difference of capacity is more than or equal to the second preset value, the partial fault information Store being currently needed for storing is deposited at random in automobile In second storage region of reservoir.
This second storage region is a reserved buffer area, when the fault message being currently needed for storing is excessive, and the first storage When in region, the fault message of storage has little time all to write EEPROM, can temporarily will be partly new by Second processing module Fault message stores to the second storage region, to avoid the loss of fault message.In subsequent process, can be by the second storage region In fault message be transferred in the first storage region or in EEPROM, concrete condition, can design according to the actual requirements.
Wherein, partial fault information described here is:It is currently needed in the fault message storing, exceed residual capacity The fault message of unnecessary second preset value quantity part in fault message.
Further, in the embodiment of the present invention, fault message includes:DTC (or sequence number of DTC), malfunction And freeze frame information etc..Therefore, first processing module 303 specifically for:By DTC (or the DTC being currently needed for storing Sequence number), malfunction and freeze frame information etc. and be stored in the first storage region or the second storage region.
Wherein, the serial number of DTC described here:When defining the DTC of each fault, the volume to each DTC Number.For example, defined in flash memory (Flash EEPROM Memory, abbreviation FLASH) during the DTC of each fault, to fault Code division is not ranked up numbering, and so both having facilitated the record of fault message, and simultaneously because only needing record number, therefore can reduce number According to the occupancy to memory space.
Further, this device also includes:
Logging modle, for recording new write the first storage region in the 3rd storage region of automobile random access memory The storage location of fault message, the storage location of the fault message of new write the second storage region, and update storage location and send out The storage location of the fault message of changing.
For the ease of failure diagnostic apparatus read failure information, when storing fault message, can by logging modle by each The storage location information record of the corresponding fault message of fault in the 3rd storage region of RAM to inquire about.
Further, this device also includes:
3rd detection module, the reading for detecting read failure information instructs.
Wherein, the 3rd detection module can be periodically detected and whether follow unified diagnostic service (Unified Diagnostic Services, abbreviation UDS) agreement failure diagnostic apparatus read failure information instruction.
Determining module, for according to the storage location information recording fault message in the 3rd storage region, determining that reading refers to Make the storage location of fault message to be read.
In determining module query script, can first judge whether fault message to be read is stored in EEPROM, if Existing, then read failure information from this storage region, if not existing, judging whether fault message to be read is stored in In first storage region of RAM, if existing, read failure information from this storage region;If still not existing, judge to be wanted Whether the fault message reading is stored in second storage region of RAM.
Read module, for read failure information from the storage location determining.
Read module can from storage location determined by determining module read failure information.
In sum, the device of fault message storage provided in an embodiment of the present invention, by detecting new fault message Data volume, thus judging whether there is available enough memory space in RAM, when an insufficient storage space exists, will store in RAM Fault message be transferred to EEPROM, thus discharging the memory space of RAM, to store new fault message, so, complete While recording the fault message having broken down, the fault message of new fault can be stored again in time, improve memory space Utilization rate.
Above-described is the preferred embodiment of the present invention it should be pointed out that the ordinary person for the art comes Say, some improvements and modifications can also be made under the premise of without departing from principle of the present invention, these improvements and modifications also exist In protection scope of the present invention.

Claims (12)

1. a kind of method of fault message storage is it is characterised in that include:
Detection is currently needed for the data volume of the fault message of storage;
For storing the residual capacity of the first storage region of fault message in detection automobile random access memory;
If the described data volume of fault message being currently needed for storing is big with the difference of the residual capacity of described first storage region In or be equal to the first preset value and be less than the second preset value, then will be whole for the fault message of storage in described first storage region Or part be transferred in EEPROM EEPROM, by described be currently needed for store fault message store to In described first storage region.
2. the method for fault message storage according to claim 1 is it is characterised in that detect automobile random storage described After being used for the step of the residual capacity of the first storage region storing fault message in device, methods described also includes:
If the described data volume of fault message being currently needed for storing is big with the difference of the residual capacity of described first storage region In or be equal to the second preset value, then by described be currently needed for store partial fault information Store in described automobile random access memory The second storage region in;
Wherein, described partial fault information is:In the described fault message being currently needed for storing, exceed the fault letter of residual capacity The fault message of unnecessary described second preset value quantity part in breath.
3. the method for fault message according to claim 2 storage is it is characterised in that described by described first memory block In domain, the fault message of storage is transferred in EEPROM, and the described fault message being currently needed for storing is stored to described first During in storage region, methods described also includes:
The fault message newly writing described first storage region is recorded in the 3rd storage region of described automobile random access memory Storage location, newly write the storage location of the fault message of described second storage region, and update storage location and become The storage location of the fault message changed.
4. the method for fault message according to claim 3 storage is it is characterised in that described by described first memory block In domain, the fault message of storage is transferred in EEPROM, and the described fault message being currently needed for storing is stored to described first After step in storage region, methods described also includes:
The reading instruction of detection read failure information;
According to the storage location information recording fault message in described 3rd storage region, determine that described reading instructs and will read Fault message storage location;
Read failure information from the storage location determining.
5. method according to claim 1 is it is characterised in that described store the described fault message being currently needed for storing Step to described first storage region includes:
By the DTC, malfunction and the freeze frame information Store that are currently needed for storing in described first storage region.
6. method according to claim 1 is it is characterised in that described store the described fault message being currently needed for storing Step to described first storage region includes:
By the sequence number of the DTC being currently needed for storing, malfunction and freeze frame information Store in described first storage region In;
Wherein, the serial number of described DTC:When defining the DTC of each fault, the numbering to each DTC.
7. a kind of device of fault message storage is it is characterised in that include:
First detection module, is currently needed for the data volume of the fault message of storage for detection;
Second detection module, is used in automobile random access memory storing the residue of the first storage region of fault message for detecting Capacity;
First processing module, for data volume and described first storage region of fault message that ought described be currently needed for storing When the difference of residual capacity is more than or equal to the first preset value and is less than the second preset value, will deposit in described first storage region The fault message of storage is completely or partially transferred in EEPROM EEPROM, is currently needed for storing by described Fault message store to described first storage region.
8. the device of fault message storage according to claim 7 is it is characterised in that described device also includes:
Second processing module, for data volume and described first storage region of fault message that ought described be currently needed for storing When the difference of residual capacity is more than or equal to the second preset value, by the described partial fault information Store being currently needed for storing in institute State in the second storage region of automobile random access memory;
Wherein, described partial fault information is:In the described fault message being currently needed for storing, exceed the fault letter of residual capacity The fault message of unnecessary described second preset value quantity part in breath.
9. the device of fault message storage according to claim 8 is it is characterised in that described device also includes:
Logging modle, newly writes described first memory block for recording in the 3rd storage region of described automobile random access memory The storage location of the fault message in domain, newly write the storage location of the fault message of described second storage region, and update and deposit Storage space puts the storage location of the fault message changing.
10. the device of fault message storage according to claim 9 is it is characterised in that described device also includes:
3rd detection module, the reading for detecting read failure information instructs;
Determining module, for according to the storage location information recording fault message in described 3rd storage region, determining described reading The storage location of instruction fetch fault message to be read;
Read module, for read failure information from the storage location determining.
11. devices according to claim 7 it is characterised in that described first processing module specifically for:To be currently needed for The DTC of storage, malfunction and freeze frame information Store are in described first storage region.
12. devices according to claim 7 it is characterised in that described first processing module specifically for:To be currently needed for The sequence number of DTC of storage, malfunction and freeze frame information Store are in described first storage region;
Wherein, the serial number of described DTC:When defining the DTC of each fault, the numbering to each DTC.
CN201610874080.2A 2016-09-30 2016-09-30 A kind of method and device of fault message storage Active CN106408684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610874080.2A CN106408684B (en) 2016-09-30 2016-09-30 A kind of method and device of fault message storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610874080.2A CN106408684B (en) 2016-09-30 2016-09-30 A kind of method and device of fault message storage

Publications (2)

Publication Number Publication Date
CN106408684A true CN106408684A (en) 2017-02-15
CN106408684B CN106408684B (en) 2019-10-18

Family

ID=59228633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610874080.2A Active CN106408684B (en) 2016-09-30 2016-09-30 A kind of method and device of fault message storage

Country Status (1)

Country Link
CN (1) CN106408684B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765626A (en) * 2018-05-19 2018-11-06 深圳市图灵奇点智能科技有限公司 Running data storage method and system, the device and service platform that travel object
CN109557907A (en) * 2018-12-20 2019-04-02 中车大连电力牵引研发中心有限公司 Failure logging and resolution system for trailer system
CN110389881A (en) * 2019-09-17 2019-10-29 潍柴动力股份有限公司 A kind of SD card redundant data processing method based on warning function
CN111445598A (en) * 2020-01-09 2020-07-24 陕西华燕航空仪表有限公司 Optical fiber attitude and heading reference system information processing method, device, equipment and storage medium
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium
CN111966285A (en) * 2020-07-20 2020-11-20 四川虹美智能科技有限公司 Method, main control chip and system for storing data into EEPROM
CN112052192A (en) * 2020-09-15 2020-12-08 东莞市高标软件科技有限公司 Electric vehicle fault recording and reading method and device
CN112685424A (en) * 2021-01-04 2021-04-20 潍柴动力股份有限公司 Processing method and device for engine fault storage
CN114311029A (en) * 2021-12-22 2022-04-12 珠海一微半导体股份有限公司 Data management method and chip of robot and robot
CN114362435A (en) * 2022-03-08 2022-04-15 天津飞旋科技股份有限公司 Magnetic suspension bearing monitoring system, method and device, motor equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000231452A (en) * 1987-10-07 2000-08-22 George G Gorbatenko Memory space array
CN101493756A (en) * 2009-03-11 2009-07-29 威盛电子股份有限公司 Data writing-in method and apparatus
CN103500077A (en) * 2013-10-16 2014-01-08 北京国双科技有限公司 File storage method and device
CN103858092A (en) * 2013-12-19 2014-06-11 华为技术有限公司 Data migration method and device
CN104572113A (en) * 2015-01-21 2015-04-29 深圳市中兴移动通信有限公司 Automatic storage space arranging method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000231452A (en) * 1987-10-07 2000-08-22 George G Gorbatenko Memory space array
CN101493756A (en) * 2009-03-11 2009-07-29 威盛电子股份有限公司 Data writing-in method and apparatus
CN103500077A (en) * 2013-10-16 2014-01-08 北京国双科技有限公司 File storage method and device
CN103858092A (en) * 2013-12-19 2014-06-11 华为技术有限公司 Data migration method and device
CN104572113A (en) * 2015-01-21 2015-04-29 深圳市中兴移动通信有限公司 Automatic storage space arranging method and mobile terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765626A (en) * 2018-05-19 2018-11-06 深圳市图灵奇点智能科技有限公司 Running data storage method and system, the device and service platform that travel object
CN109557907A (en) * 2018-12-20 2019-04-02 中车大连电力牵引研发中心有限公司 Failure logging and resolution system for trailer system
CN110389881A (en) * 2019-09-17 2019-10-29 潍柴动力股份有限公司 A kind of SD card redundant data processing method based on warning function
CN111445598A (en) * 2020-01-09 2020-07-24 陕西华燕航空仪表有限公司 Optical fiber attitude and heading reference system information processing method, device, equipment and storage medium
CN111694341A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Fault data storage method and device, vehicle-mounted equipment and storage medium
CN111966285B (en) * 2020-07-20 2022-09-06 四川虹美智能科技有限公司 Method, main control chip and system for storing data into EEPROM
CN111966285A (en) * 2020-07-20 2020-11-20 四川虹美智能科技有限公司 Method, main control chip and system for storing data into EEPROM
CN112052192A (en) * 2020-09-15 2020-12-08 东莞市高标软件科技有限公司 Electric vehicle fault recording and reading method and device
CN112052192B (en) * 2020-09-15 2024-04-05 广东高标智能科技股份有限公司 Electric vehicle fault recording and reading method and device
CN112685424B (en) * 2021-01-04 2022-08-23 潍柴动力股份有限公司 Processing method and device for engine fault storage
CN112685424A (en) * 2021-01-04 2021-04-20 潍柴动力股份有限公司 Processing method and device for engine fault storage
CN114311029A (en) * 2021-12-22 2022-04-12 珠海一微半导体股份有限公司 Data management method and chip of robot and robot
CN114362435A (en) * 2022-03-08 2022-04-15 天津飞旋科技股份有限公司 Magnetic suspension bearing monitoring system, method and device, motor equipment and storage medium

Also Published As

Publication number Publication date
CN106408684B (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN106408684A (en) Fault information storage method and device
CN103425122B (en) The failure management method of new energy vehicle controller
CN102568054B (en) Information record carrier
CN107128312A (en) Hybrid vehicle fault diagnosis management system and method
CN101477482B (en) Method for recovering flash memory data at power-off of built-in Linux system
CN111694341A (en) Fault data storage method and device, vehicle-mounted equipment and storage medium
CN102456240A (en) CAN (controller area network) bus based vehicle-mounted recording device and method for controlling stored data thereof
CN202448490U (en) Printing-supplies storage chip
CN101887985A (en) Digital cell network
CN102063266A (en) Nonvolatile memory controller and method for writing data to nonvolatile memory
CN106227620B (en) Recoverable Flash data storage method
CN105912086A (en) Power module fault diagnosis method, power module and whole cabinet server
CN102043689A (en) Fault tolerance design method for solid-state memory device
CN106527410A (en) Data recording gateway for vehicle and diagnosis system based on gateway
CN101286738A (en) Method, device and system for loading logic files based on equipment information
CN108664655A (en) The log storing method and system of embedded system
CN111258600A (en) Mirror image type embedded program firmware upgrading method
CN102147587A (en) Resetting method for imaging box chip and imaging box chip
CN105204818B (en) Method for the failure message for managing motor vehicles
CN108365283A (en) Device battery and unmanned plane
CN109947364A (en) A kind of method for storing real-time data in FLASH/EEPROM
CN107766174A (en) Electronic-controlled installation and its information storage means
CN108197046A (en) A kind of system and method for realizing atomic operation
US20170242080A1 (en) Method for operating a battery system, and battery management system
CN109144832A (en) A kind of power supply power-fail processing method and processing device

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