[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105955850A - Abnormal reset processing method and system for vehicle control unit - Google Patents

Abnormal reset processing method and system for vehicle control unit Download PDF

Info

Publication number
CN105955850A
CN105955850A CN201610339184.3A CN201610339184A CN105955850A CN 105955850 A CN105955850 A CN 105955850A CN 201610339184 A CN201610339184 A CN 201610339184A CN 105955850 A CN105955850 A CN 105955850A
Authority
CN
China
Prior art keywords
data
reset
control unit
space
exceptional
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
Application number
CN201610339184.3A
Other languages
Chinese (zh)
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.)
Anhui Jianghuai Automobile Group Corp
Original Assignee
Anhui Jianghuai Automobile Group Corp
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 Anhui Jianghuai Automobile Group Corp filed Critical Anhui Jianghuai Automobile Group Corp
Priority to CN201610339184.3A priority Critical patent/CN105955850A/en
Publication of CN105955850A publication Critical patent/CN105955850A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2015Redundant power supplies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention provides an abnormal reset processing method and system for a vehicle control unit. The method comprises the steps of pre-determining abnormal reset detection parameters; pre-arranging a data temporary storage space and a data backup space for the abnormal reset detection parameters; after the control unit is powered on, when data of the abnormal reset detection parameters is changed, storing the changed data in the corresponding data temporary storage space until the control unit is powered off; and if abnormal reset occurs to the control unit, storing the data of the data temporary storage space in the data backup space. The data temporary storage space is not subjected to data initialization when a system is started, and the abnormal reset detection parameters are related to the abnormal reset, so that the data of the data temporary storage space can be stored in the data backup space during the abnormal reset, the data loss is avoided, and a reason for the abnormal reset can be analyzed according to the backup data.

Description

A kind of vehicle control unit exceptional reset processing method and system
Technical field
The present invention relates to technical field of automobile control, abnormal multiple particularly to a kind of vehicle control unit Position processing method and system.
Background technology
Along with developing rapidly of automobile electronics, car load electric function increase causes the control list of car load Unit, such as electronic control unit (Electronic Control Unit, ECU), microprocessing unit The quantity of control units such as (Microcontroller Unit, MCU) is greatly increased, ECU etc. simultaneously The control logic complexity of control unit is also improving constantly, and which adds control unit abnormal The risk resetted.
Control unit exceptional reset is exactly in control unit normally works, because of self software fault, hard The factors such as part design defect or external interference, cause the phenomenon that control unit is restarted.When control unit is different When often resetting, its load system controlled will be in unknown state, and specific works state is it is possible to be in Unexpected state, and for automobile electronics, this runaway condition means driver, takes advantage of The personal safety and safety of property of member is by serious threat, and therefore, control unit exceptional reset is unacceptable 's.In order to ensure stability and the reliability of control unit, exceptional reset detection, process just seem outstanding For important.
Summary of the invention
The present invention provides a kind of vehicle control unit exceptional reset processing method and system, it is intended to solve The reluctant problem of control unit exceptional reset in prior art.
The invention provides a kind of vehicle control unit exceptional reset processing method, including:
Predetermined exceptional reset detection parameter, described exceptional reset detection parameter includes: microcontroller list Unit's reset source, also includes following any one or more parameter: code when occurring that resets perform address and Before resetting, code execution path, control unit when occurring that resets run load and state, network-bus fortune Row state, nonvolatile memory running status, each reset source frequency, supply voltage state;
It is that each abnormal reset detection parameter divides data temporary memory space and data backup space in advance, Wherein, data temporary memory space does not carry out data initialization, described data backup when system start-up Space is appointment region in nonvolatile memory;
After control unit powers on, when the data of exceptional reset detection parameter occur change, by change Data store the data temporary memory space of correspondence;
If control unit generation exceptional reset, then each data of data temporary memory space are stored in number According to backup space.
Preferably, described data temporary memory space is appointment region in random access memory.
Preferably, described data backup space includes at least one memory area, and each memory area is used The data of exceptional reset detection parameter in time storing an exceptional reset.
Preferably, control unit exceptional reset is electrification reset, wakes up up outside reset and internal reset Control unit resets.
Preferably, described exceptional reset detection parameter includes: control unit when occurring that resets runs load And state and micro-control unit reset source, also include following any one or more parameter: reset and occur Time code perform address and reset before code execution path, reset occur time control unit run load and State, network-bus running status, nonvolatile memory running status, each reset source frequency, Supply voltage state;
Described method also includes: if control unit generation exceptional reset, then store sky from data temporarily Read control unit when occurring that resets between and run initial as corresponding parameter of the data of load and state Data.
Preferably, described method also includes:
When system exception power-off, using uninterrupted power source as the power supply of system, data are stored temporarily Each data in space are stored in data backup space.
Correspondingly, additionally provide a kind of vehicle control unit exceptional reset processing system, including:
Parameter determination module, is used for predefining exceptional reset detection parameter, and described exceptional reset detects Parameter includes: micro-control unit reset source, also includes following any one or more parameter: reset and send out Before time raw, code performs address and resets, code execution path, control unit when occurring that resets run load And state, network-bus running status, nonvolatile memory running status, each reset source occur secondary Number, supply voltage state;
Space partitioning module, stores sky for dividing data for each abnormal reset detection parameter in advance temporarily Between and data backup space, wherein, data temporary memory space is not carried out at the beginning of data when system start-up Beginningization, described data backup space is appointment region in nonvolatile memory;
Data memory module, after electricity on the control unit, when the data of exceptional reset detection parameter When there is change, the data of change are stored the data temporary memory space of correspondence;
Data backup module, if for control unit generation exceptional reset, then stored data temporarily Each data in space are stored in data backup space.
Preferably, described data temporary memory space is appointment region in random access memory.
Preferably, described exceptional reset detection parameter includes: control unit when occurring that resets runs load And state and micro-control unit reset source, also include following any one or more parameter: reset and occur Time code perform address and reset before code execution path, reset occur time control unit run load and State, network-bus running status, nonvolatile memory running status, each reset source frequency, Supply voltage state;
Described system also includes: data repair module, if for control unit generation exceptional reset, From data temporary memory space, then read control unit when occurring that resets run load and the data of state Primary data as corresponding parameter.
Preferably, described system also includes:
Uninterrupted power source, for when system exception power-off, using uninterrupted power source as the power supply of system, Perform data backup module.
The invention discloses a kind of vehicle control unit exceptional reset processing method and system, predetermined Exceptional reset detection parameter, and be that each abnormal reset detection parameter divides data temporary memory space and number According to backup space, after control unit powers on, when there is change in the data of exceptional reset detection parameter, The data of change are stored the data temporary memory space of correspondence, until control unit power down, period, If control unit generation exceptional reset, then each data of data temporary memory space are stored in data standby Part space.Owing to data temporary memory space does not carry out data initialization, described number when system start-up It is appointment region in nonvolatile memory according to backup space, when control unit generation exceptional reset, The data of the storage of data temporary memory space then can be stored in data backup space, and abnormal multiple Position detection parameter includes: micro-control unit reset source, also includes following any one or more parameter: multiple Before when position occurs, code performs address and resets, code execution path, control unit when occurring that resets are run Load and state, network-bus running status, nonvolatile memory running status, each reset source are sent out Raw number of times, supply voltage state;These parameters be all rule of thumb accumulation or abundant experimental results statistics, What analysis obtained can be so that attendant, user, developer be according to exceptional reset detection parameter The reason of data analysis generation exceptional reset, with the problem fundamentally solving control unit exceptional reset.
Further, described data temporary memory space is appointment region in random access memory, so Can guarantee that the efficient data temporary memory space that in real time data of change are stored correspondence.Described number According to backup space be in nonvolatile memory appointment region, when so can guarantee that system power failure, not because of Cause loss of vital data for random access memory power down, related data information during exceptional reset is entered Row backup.
Further, the data backup space that the present invention provides includes at least one memory area, Mei Gecun Storage area territory is the data of exceptional reset detection parameter when exceptional reset of storage.As such, it is possible to root The data that how many times exceptional reset is relevant are stored according to the requirements set of client or attendant etc., it is simple to point There is the reason of exceptional reset in analysis, with the problem fundamentally solving control unit exceptional reset.And Data can be stored according to the principle of first in first out, so will not take too much memory space, and will not Cause too much redundant data.
Further, the invention provides the detection method of control unit exceptional reset: control unit upper Reset, wake up up reset and internal reset outside reset be exceptional reset, so can be the fastest Whether the prompt reset judging current control unit is exceptional reset.
Further, described exceptional reset detection parameter includes: control unit when occurring that resets is run negative Carry and state and micro-control unit reset source, also include following any one or more parameter: reset and send out Before time raw, code performs address and resets, code execution path, control unit when occurring that resets run load And state, network-bus running status, nonvolatile memory running status, each reset source occur secondary Number, supply voltage state;Described method also includes: if control unit generation exceptional reset, then from Data temporary memory space reads control unit when occurring that resets and runs load and the data conduct of state The primary data of corresponding parameter.So, when control unit generation exceptional reset, can the very first time From data temporary memory space, read the data of control unit operation load and state when occurring that reset make Primary data for corresponding parameter, it is to avoid owing to exceptional reset causes control unit to run load, such as Car door lock, child lock etc. are likely to be at unknown state, the problem of serious threat occupant safety.
Further, the method that the present invention provides also includes: when system exception power-off, with uninterruptedly Each data of data temporary memory space, as the power supply of system, are stored in data backup space by power supply. So, when system exception power-off, each data of data temporary memory space can be stored in data standby Part space, it is to avoid the loss of data of important parameter, helps analyze abnormal cause or preserve work at present shape The data of each abnormal reset detection parameter of state.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to enforcement In example, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only Some embodiments described in the present invention, for those of ordinary skill in the art, it is also possible to according to these Accompanying drawing obtains other accompanying drawing.
Fig. 1 is the vehicle control unit exceptional reset processing method that provides according to the embodiment of the present invention A kind of flow chart;
Fig. 2 determines the stream of exceptional reset detection parameter for the Delphi method provided according to the embodiment of the present invention Cheng Tu;
Fig. 3 is the vehicle control unit exceptional reset processing system that provides according to the embodiment of the present invention A kind of structural representation;
Fig. 4 is the vehicle control unit exceptional reset processing system that provides according to the embodiment of the present invention Another kind of structural representation.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, its In the most same or similar label represent same or similar element or there is same or like merit The element of energy.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining this Bright, and be not construed as limiting the claims.
Vehicle control unit exceptional reset processing method and the system that the present invention provides, first according to reality In the application of border, the importance of each parameter of system, determines that the exceptional reset needing to prevent loss of data detects Parameter, and specify the data not carrying out data initialization when system start-up to store for these parameters temporarily Space, these spaces are for storing the data of up-to-date exceptional reset detection parameter, when control unit is sent out During raw exceptional reset, it is possible to the data before resetting store the data backup space of correspondence, with right These data back up, it is simple to be analyzed and troubleshooting according to each data of backup.
In order to be better understood from technical scheme and technique effect, below with reference to flow chart and Specific embodiment is described in detail.
Embodiments provide a kind of vehicle control unit exceptional reset processing method, its flow process As it is shown in figure 1, comprise the following steps:
S01, predetermined exceptional reset detection parameter, described exceptional reset detection parameter includes: micro-control Unit reset source processed, also includes following any one or more parameter: code when occurring that resets performs ground Location and code execution path before resetting, reset when occurring that control unit runs load and state, network are total Line running status, nonvolatile memory running status, each reset source frequency, supply voltage shape State.
In the present embodiment, each parameter of control unit of system and exception in can applying according to reality The dependency resetted, determines the exceptional reset detection parameter needing to prevent loss of data, this control unit Can be ECU, MCU etc., the exceptional reset detection parameter of different control units needs according to actual need Ask and determine.
To illustrate as a example by entire car controller (Body Control Module, BCM), BCM is controlled Object processed gets more and more, and the function of associated electronic device also gets more and more, and various functions are required for passing through BCM realizes so that BCM function is more powerful, and the information sharing between each electronic equipment is more Coming the most, an information can be simultaneously for many parts, and this just requires the data communication function of BCM Increasingly stronger, and must assure that the reliability of the data of its relevant parameter is higher, once occur multiple Position phenomenon, then its load system controlled will be in unknown state, and specific works state is it is possible to non- Expecting state, this person directly affecting occupant and property safety.
Which supplemental characteristic is analyzed according to experience or the abundant experimental results of accumulation during research and development or use With exceptional reset correlation maximum, and be easy to analyze exceptional reset reason, using these parameters as different Often reset detection parameter, for example, it is possible to beforehand through Experts consultation method, as the most true in Delphi method etc. The exceptional reset detection parameter of fixed various control units, Delphi method determines exceptional reset detection parameter Flow chart is as shown in Figure 2.
In a specific embodiment, described exceptional reset detection parameter includes: micro-control unit resets Source, also includes following any one or more parameter: before code when occurring that resets performs address and resets Code execution path, reset occur time control unit run load and state, network-bus running status, Nonvolatile memory running status, micro-control unit reset source, each reset source frequency, power supply Voltage status.Preferably, when occurring with micro-control unit reset source, reset, code performs address and answers The front code execution path in position, control unit when occurring that resets run load and state, network-bus operation State detects parameter as exceptional reset.System resource allow in the case of or according to the actual requirements, Other parameters can also detect parameter as exceptional reset, and certainly, other influences controller runs load The parameter of factor, according to different system characteristic, can make a concrete analysis of.
S02, is that each abnormal reset detection parameter divides data temporary memory space and data backup is empty in advance Between, wherein, data temporary memory space does not carry out data initialization, described data when system start-up Backup space is appointment region in nonvolatile memory.
In the present embodiment, described data temporary memory space is appointment region in random access memory, Specifically, random access memory can be effumability random access memory (Ramdom Access Memory, RAM) etc. the memorizer of zero access, its advantage is that access time is equal, and and address Unrelated, such as calculator memory etc..It is initial that data temporary memory space does not carry out data when system start-up Changing, on main ECU chip or MCU, divide certain RAM district, this RAM district is in system start-up Time do not do data initialization, for retain current reset occur before data.Specifically, to needs heat Starting the variable kept, use _ _ at keyword is specified the mode in certain region to realize, is the most no longer described in detail.
After resetting, being recorded data and be stored in internal memory, these part data will be lost after a power failure Lose, it is therefore desirable to divide a panel region in the nonvolatile memory for these part data and go through for backup History data, if needing the corresponding data before recording repeatedly exceptional reset, it is necessary to divide multiple storage Region, each memory area is the data of exceptional reset detection parameter when exceptional reset of storage. As such, it is possible to store what how many times exceptional reset was correlated with according to the requirements set of client or attendant etc. Data, it is simple to analyze the reason that exceptional reset occurs, fundamentally to solve control unit exceptional reset Problem.And data can be stored according to the principle of first in first out, so will not take too much storage Space, and do not result in too much redundant data.Specifically, described data backup space can be non-easily The property lost memorizer, such as nonvolatile storage (Electrically Erasable Programmable Read-Only Memory, EEPROM), nonvolatile random access memory (Non-Volatile Random Access Memory, NVRAM), when so can guarantee that system power failure, not because at random Memorizer power down and cause loss of vital data, related data information during exceptional reset is backed up.
Step S03, after control unit powers on, when there is change in the data of exceptional reset detection parameter, The data of change are stored the data temporary memory space of correspondence, until control unit power down.
In the present embodiment, i.e. start after control unit powers on to monitor exceptional reset detection parameter in real time Whether data change, and after finding data change, the data that will change store the number of correspondence According to temporary memory space, until control unit power down.So can ensure that the data of backup are for abnormal multiple Latest data before the generation of position, is conducive to analyzing the real causes that exceptional reset occurs.
Step S04, if control unit generation exceptional reset, then each by data temporary memory space Data are stored in data backup space.
In actual applications, when needing to analyze exceptional reset occurrence cause, can be by data backup space Data read-out, for example, it is possible to by UDS Diagnosis Service, $ 22 service realizes digital independent, It is 4K to the maximum because it reads data, digital independent function can be realized by a plurality of service.Can certainly Take other prior aries to carry out digital independent, do not limit at this.
Further, described exceptional reset detection parameter includes: control unit when occurring that resets is run negative Carry and state and micro-control unit reset source, also include following any one or more parameter: reset and send out Before time raw, code performs address and resets, code execution path, control unit when occurring that resets run load And state, network-bus running status, nonvolatile memory running status, each reset source occur secondary Number, supply voltage state;Described method also includes: if control unit generation exceptional reset, then from Data temporary memory space reads control unit when occurring that resets and runs load and the data conduct of state The primary data of corresponding parameter.
In actual applications, it is achieved after exceptional reset identification, it is possible to realize exceptional reset troubleshooting. Troubleshooting seeks to the most quickly eliminate the impact that exceptional reset causes.Specifically, can be by Before system reset, (control unit when occurring that resets runs load and the number of state to each load operation conditions According to) record is at data temporary memory space, when exceptional reset being detected, by the control load of record And running status, the very first time load control bit is returned to record running status, eliminate it and cause Impact, it is to avoid system disorders, provide safeguard for occupant safety.
In embodiments of the present invention, determine need to prevent loss of data exceptional reset detection parameter after, Specifying data temporary memory space for these parameters, these spaces are for storing up-to-date exceptional reset inspection Survey the data of parameter, when control unit generation exceptional reset, owing to this data temporary memory space exists Data initialization is not carried out, it is possible to by the data of the storage of data temporary memory space during system start-up It is stored in data backup space, and exceptional reset detection parameter includes: micro-control unit reset source, also wraps Include following any one or more parameter: before code when occurring that resets performs address and resets, code performs Load and state, network-bus running status, non-volatile are run in path, control unit when occurring that resets Property memorizer running status, micro-control unit reset source, each reset source frequency, supply voltage shape State;These parameters be all rule of thumb accumulation or abundant experimental results statistics, analyze obtain can so that Attendant, user, developer are analyzed and troubleshooting according to the data of exceptional reset detection parameter.
In other embodiments, present invention also offers the detection method of control unit exceptional reset, tool Body ground, control unit exceptional reset is electrification reset, wakes up the control list resetted and outside internal reset up Unit resets.
In a specific embodiment, control unit exceptional reset can be by the reset of MCU chip Source obtains.General MCU chip can provide following several wake source, electrification reset, external wake Interruption reset condition, RESET pin reset (outer watchdog reset), software reset, low voltage resetting, Illegal instruction reset etc.;These reset source can be divided into four classes, and 1, electrification reset: i.e. in system The reset occurred during electricity;2, wake up reset up: i.e. system is when resting state, waken up up by external wake source Reset;3, internal reset: i.e. software reset, this is reset to system and receives what diagnosis request triggered Reset the reset occurred when normal application jumps to downloaded software with system;4, exceptional reset. Above-mentioned front 3 classes are reset to system normal reset, and the reset occurred in the case of other is exceptional reset, Common exceptional reset includes but not limited to: illegally instruct reset, data overflow reset, task time-out Reset, low voltage resetting, watchdog reset etc..Specifically, the detection method of electrification reset is that system is broken Again power on after electricity, read electrification reset parameter, it appeared that: often power-off of experience powers on, on The data of reset parameter can add up;The detection method waking up reset up is to possess the electricity of dormancy awakening function Control unit, system in a dormant state under, trigger wake events, after system wake-up, reading is called out Awake reset parameter, the most often wake actions of experience, the data waking up reset parameter up can add up;In The detection method that portion resets be internal reset be software positive return, at ECU self diagnosis and soft After part renewal in restarting process, typically during renewal completes an application software (App), 2 internal resets can occur, the most often complete an App and update, the data of internal reset parameter can be tired out Add 2 times.
In another embodiment, the method that the present invention provides also includes: when system exception power-off, Using uninterrupted power source as the power supply of system, each data of data temporary memory space are stored in data standby Part space.
In the present embodiment, uninterrupted power source, such as UPS or on-board battery etc., when system exception breaks During electricity, each data of data temporary memory space can be stored in data backup space, it is to avoid important ginseng The loss of data of number, helps analyze abnormal cause or preserve each abnormal reset detection of current operating state The data of parameter.
Correspondingly, present invention also offers the vehicle control unit exceptional reset corresponding with said method Processing system, as it is shown on figure 3, include:
Parameter determination module 301, is used for predefining exceptional reset detection parameter, described exceptional reset Detection parameter includes: micro-control unit reset source, also includes following any one or more parameter: multiple Before when position occurs, code performs address and resets, code execution path, control unit when occurring that resets are run Load and state, network-bus running status, nonvolatile memory running status, each reset source are sent out Raw number of times, supply voltage state;
Space partitioning module 302, deposits for dividing data for each abnormal reset detection parameter in advance temporarily Storage space and data backup space, wherein, data temporary memory space does not counts when system start-up According to initialization, described data backup space is appointment region in nonvolatile memory;
Data memory module 303, after electricity on the control unit, when exceptional reset detection parameter When data occur change, the data of change are stored the data temporary memory space of correspondence,
Data backup module 304, if for control unit generation exceptional reset, then data are interim Each data of memory space are stored in data backup space.
Preferably, described exceptional reset detection parameter includes above-mentioned all parameters.These parameters are all bases Experience accumulation or abundant experimental results are added up, analysis obtains, and the dependency of these parameters and exceptional reset is relatively Greatly, i.e. can be according to the reason of the data analysis generation exceptional reset of these parameters, in order to carry out troubleshooting, enter And ensure the safety of occupant.
In the present embodiment, described data temporary memory space is appointment region in random access memory; Described data backup space is appointment region in nonvolatile memory.When so can guarantee that system power failure, Do not cause loss of vital data because of random access memory power down, dependency number during exceptional reset be it is believed that Breath backs up.
Preferably, described data backup space includes at least one memory area, and each memory area is used The data of exceptional reset detection parameter in time storing an exceptional reset.It is specially how many memory areas, Can according to demand depending on.
Further, for avoiding because system cut-off causes the loss of data of exceptional reset detection parameter, institute System of stating also includes: uninterrupted power source, for when system exception power-off, using uninterrupted power source as The power supply of system, performs data backup module 304.
A kind of vehicle control unit exceptional reset processing system that the embodiment of the present invention provides, by ginseng Number determines that module 301 predefines exceptional reset detection parameter, by space partitioning module 302 in advance Data temporary memory space and data backup space, wherein, number is divided for each abnormal reset detection parameter Not carrying out data initialization when system start-up according to temporary memory space, described data backup space is non- Volatile memory is specified region, by data memory module 303 when exceptional reset detection parameter When data occur change, the data of change are stored the data temporary memory space of correspondence, by number According to backup module 304 when control unit generation exceptional reset, by each number of data temporary memory space According to being stored in data backup space.Owing to data temporary memory space is not carried out at the beginning of data when system start-up Beginningization, can store the latest data of exceptional reset detection parameter, when control unit generation exceptional reset Time, by data backup module 304, each data of data temporary memory space can be stored in data standby Part space, it is simple to attendant, user, developer divide according to the data of exceptional reset detection parameter There is the reason of exceptional reset in analysis, with the problem fundamentally solving control unit exceptional reset.
In other embodiments, as shown in Figure 4, the another kind of vehicle provided for the embodiment of the present invention is used The structural representation of control unit exceptional reset processing system includes:
Described exceptional reset detection parameter include: reset occur time control unit run load and state and Micro-control unit reset source, also includes following any one or more parameter: code when occurring that resets is held When row address and the front code execution path that resets, reset generation, control unit runs load and state, net Network bus running status, nonvolatile memory running status, each reset source frequency, power supply electricity Pressure condition;Described system also includes: data repair module 405, if occurring different for control unit Often reset, then from data temporary memory space, read control unit when occurring that resets run load and shape The data of state are as the primary data of corresponding parameter.
In embodiments of the present invention, after realizing exceptional reset identification, it is possible to repair mould by data Block 405 realizes exceptional reset troubleshooting.It is abnormal the most multiple that troubleshooting seeks to as far as possible quickly elimination The impact that position is caused.Such as can be by data memory module 303 by each load fortune before system reset Row state (control unit when occurring that resets runs load and the data of state) record is deposited in data temporarily Storage space, when exceptional reset being detected, by data memory module 303 record control load and Running status, the very first time utilize data repair module 405 load control bit is returned to record fortune Row state, eliminates its impact caused, it is to avoid system disorders, provides safeguard for occupant safety.
Each embodiment in this specification all uses the mode gone forward one by one to describe, phase between each embodiment As homophase, part sees mutually.For system embodiment, due to its basic phase Being similar to embodiment of the method, so describing fairly simple, relevant part sees the part of embodiment of the method Illustrate.System embodiment described above is only schematically, wherein said as separating The unit of part description can be or may not be physically separate, the portion shown as unit Part can be or may not be physical location, i.e. may be located at a place, or can also divide Cloth is on multiple artificial windows.Some or all of module therein can be selected according to the actual needs Realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creative work In the case of, i.e. it is appreciated that and implements.
Although the present invention discloses as above with preferred embodiment, but is not limited to the present invention.Appoint What those of ordinary skill in the art, without departing under technical solution of the present invention ambit, all can profit With the method for the disclosure above and technology contents, technical solution of the present invention made many possible variations and repair Decorations, or it is revised as the Equivalent embodiments of equivalent variations.Therefore, every without departing from technical solution of the present invention Content, according to the technical spirit of the present invention to any simple modification made for any of the above embodiments, equivalent Change and modification, all still fall within the range of technical solution of the present invention protection.

Claims (10)

1. a vehicle control unit exceptional reset processing method, it is characterised in that including:
Predetermined exceptional reset detection parameter, described exceptional reset detection parameter includes: microcontroller list Unit's reset source, also includes following any one or more parameter: code when occurring that resets perform address and Before resetting, code execution path, control unit when occurring that resets run load and state, network-bus fortune Row state, nonvolatile memory running status, each reset source frequency, supply voltage state;
It is that each abnormal reset detection parameter divides data temporary memory space and data backup space in advance, Wherein, data temporary memory space does not carry out data initialization, described data backup when system start-up Space is appointment region in nonvolatile memory;
After control unit powers on, when the data of exceptional reset detection parameter occur change, by change Data store the data temporary memory space of correspondence;
If control unit generation exceptional reset, then each data of data temporary memory space are stored in number According to backup space.
Method the most according to claim 1, it is characterised in that described data temporary memory space For random access memory is specified region.
Method the most according to claim 1, it is characterised in that described data backup space includes At least one memory area, the exceptional reset detection when exceptional reset of storage of each memory area The data of parameter.
Method the most according to claim 1, it is characterised in that control unit exceptional reset is upper Reset, wake up up reset and internal reset outside control unit reset.
5. according to the method described in any one of Claims 1-4, it is characterised in that
Described exceptional reset detection parameter include: reset occur time control unit run load and state and Micro-control unit reset source, also includes following any one or more parameter: code when occurring that resets is held When row address and the front code execution path that resets, reset generation, control unit runs load and state, net Network bus running status, nonvolatile memory running status, each reset source frequency, power supply electricity Pressure condition;
Described method also includes: if control unit generation exceptional reset, then store sky from data temporarily Read control unit when occurring that resets between and run initial as corresponding parameter of the data of load and state Data.
6. according to the method described in any one of Claims 1-4, it is characterised in that described method is also Including:
When system exception power-off, using uninterrupted power source as the power supply of system, data are stored temporarily Each data in space are stored in data backup space.
7. a vehicle control unit exceptional reset processing system, it is characterised in that including:
Parameter determination module, is used for predefining exceptional reset detection parameter, and described exceptional reset detects Parameter includes: micro-control unit reset source, also includes following any one or more parameter: reset and send out Before time raw, code performs address and resets, code execution path, control unit when occurring that resets run load And state, network-bus running status, nonvolatile memory running status, each reset source occur secondary Number, supply voltage state;
Space partitioning module, stores sky for dividing data for each abnormal reset detection parameter in advance temporarily Between and data backup space, wherein, data temporary memory space is not carried out at the beginning of data when system start-up Beginningization, described data backup space is appointment region in nonvolatile memory;
Data memory module, after electricity on the control unit, when the data of exceptional reset detection parameter When there is change, the data of change are stored the data temporary memory space of correspondence;
Data backup module, if for control unit generation exceptional reset, then stored data temporarily Each data in space are stored in data backup space.
System the most according to claim 7, it is characterised in that
Described data temporary memory space is appointment region in random access memory.
9. according to the system described in claim 7 or 8, it is characterised in that
Described exceptional reset detection parameter include: reset occur time control unit run load and state and Micro-control unit reset source, also includes following any one or more parameter: code when occurring that resets is held When row address and the front code execution path that resets, reset generation, control unit runs load and state, net Network bus running status, nonvolatile memory running status, each reset source frequency, power supply electricity Pressure condition;
Described system also includes: data repair module, if for control unit generation exceptional reset, From data temporary memory space, then read control unit when occurring that resets run load and the data of state Primary data as corresponding parameter.
10. according to the system described in claim 7 or 8, it is characterised in that described system also includes:
Uninterrupted power source, for when system exception power-off, using uninterrupted power source as the power supply of system, Perform data backup module.
CN201610339184.3A 2016-05-18 2016-05-18 Abnormal reset processing method and system for vehicle control unit Pending CN105955850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610339184.3A CN105955850A (en) 2016-05-18 2016-05-18 Abnormal reset processing method and system for vehicle control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610339184.3A CN105955850A (en) 2016-05-18 2016-05-18 Abnormal reset processing method and system for vehicle control unit

Publications (1)

Publication Number Publication Date
CN105955850A true CN105955850A (en) 2016-09-21

Family

ID=56909273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610339184.3A Pending CN105955850A (en) 2016-05-18 2016-05-18 Abnormal reset processing method and system for vehicle control unit

Country Status (1)

Country Link
CN (1) CN105955850A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707233A (en) * 2017-11-03 2018-02-16 中国电子科技集团公司第五十四研究所 A kind of reset circuit for preventing instant power-down from causing secondary reset
CN108062259A (en) * 2017-11-01 2018-05-22 联创汽车电子有限公司 MCU internal data store ECC processing systems and its processing method
CN108073474A (en) * 2016-11-18 2018-05-25 大陆汽车电子(芜湖)有限公司 Suitable for the data processing method of automobile instrument
CN108768783A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of method and system of loop test network connectivty
CN112345926A (en) * 2019-08-07 2021-02-09 青岛鼎信通讯股份有限公司 Electronic actuator reset detection method
CN113759872A (en) * 2021-08-30 2021-12-07 上海伊控动力系统有限公司 Processing method after controller reset
CN114200874A (en) * 2022-02-17 2022-03-18 四川创智联恒科技有限公司 Device and method for detecting equipment reset event
CN115167194A (en) * 2022-05-26 2022-10-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing reset start time of automotive AUTOSAR standard real-time controller
CN115933493A (en) * 2022-12-27 2023-04-07 上海临港电力电子研究有限公司 A method and system for processing abnormal information of electronic control monitoring software

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949113A (en) * 2005-10-11 2007-04-18 株式会社电装 Vehicle abnormality monitoring apparatus
US20120105637A1 (en) * 2010-11-03 2012-05-03 Broadcom Corporation Multi-Level Video Processing Within A Vehicular Communication Network
CN103135525A (en) * 2013-01-11 2013-06-05 北奔铁马重型汽车研发(北京)有限公司 Finished automobile parameter configuration method
CN105431337A (en) * 2013-07-31 2016-03-23 株式会社爱德克斯 Vehicle control device
CN105564440A (en) * 2014-10-31 2016-05-11 富士重工业株式会社 Travel control apparatus for vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949113A (en) * 2005-10-11 2007-04-18 株式会社电装 Vehicle abnormality monitoring apparatus
US20120105637A1 (en) * 2010-11-03 2012-05-03 Broadcom Corporation Multi-Level Video Processing Within A Vehicular Communication Network
CN103135525A (en) * 2013-01-11 2013-06-05 北奔铁马重型汽车研发(北京)有限公司 Finished automobile parameter configuration method
CN105431337A (en) * 2013-07-31 2016-03-23 株式会社爱德克斯 Vehicle control device
CN105564440A (en) * 2014-10-31 2016-05-11 富士重工业株式会社 Travel control apparatus for vehicle

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073474A (en) * 2016-11-18 2018-05-25 大陆汽车电子(芜湖)有限公司 Suitable for the data processing method of automobile instrument
CN108062259B (en) * 2017-11-01 2021-03-30 联创汽车电子有限公司 MCU internal data storage ECC processing system and processing method thereof
CN108062259A (en) * 2017-11-01 2018-05-22 联创汽车电子有限公司 MCU internal data store ECC processing systems and its processing method
CN107707233A (en) * 2017-11-03 2018-02-16 中国电子科技集团公司第五十四研究所 A kind of reset circuit for preventing instant power-down from causing secondary reset
CN107707233B (en) * 2017-11-03 2020-09-01 中国电子科技集团公司第五十四研究所 Reset circuit for preventing instantaneous power failure from causing secondary reset
CN108768783A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of method and system of loop test network connectivty
CN108768783B (en) * 2018-06-08 2021-10-22 郑州云海信息技术有限公司 A method and system for loop testing network connectivity
CN112345926A (en) * 2019-08-07 2021-02-09 青岛鼎信通讯股份有限公司 Electronic actuator reset detection method
CN112345926B (en) * 2019-08-07 2023-03-14 青岛鼎信通讯股份有限公司 Electronic actuator reset detection method
CN113759872A (en) * 2021-08-30 2021-12-07 上海伊控动力系统有限公司 Processing method after controller reset
CN114200874A (en) * 2022-02-17 2022-03-18 四川创智联恒科技有限公司 Device and method for detecting equipment reset event
CN115167194A (en) * 2022-05-26 2022-10-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing reset start time of automotive AUTOSAR standard real-time controller
CN115167194B (en) * 2022-05-26 2024-06-11 中国第一汽车股份有限公司 Method, system, equipment and storage medium for optimizing resetting starting time of automotive AUTOSAR standard real-time controller
CN115933493A (en) * 2022-12-27 2023-04-07 上海临港电力电子研究有限公司 A method and system for processing abnormal information of electronic control monitoring software

Similar Documents

Publication Publication Date Title
CN105955850A (en) Abnormal reset processing method and system for vehicle control unit
US8108733B2 (en) Monitoring distributed software health and membership in a compute cluster
JP5382084B2 (en) Vehicle equipment
CN107735767B (en) Apparatus and method for virtual machine migration
EP2386921A2 (en) Method to separate and persist static and dynamic portions of a control application
CN106020865A (en) System upgrading method and device
CN109614153B (en) Multi-core chip and system
CN105431862A (en) Key rotation for a memory controller
CN102509046A (en) Globally valid measured operating system launch with hibernation support
CN103927239A (en) Method and device for restoring system of terminal equipment
CN109361542A (en) The fault handling method of client, device, system, terminal and server
CN113341924A (en) ECU power-off method, device, equipment and storage medium
US10261720B2 (en) Method for optimizing the use of a non-volatile memory in a motor vehicle computer for monitoring a functional member
US10831578B2 (en) Fault detection circuit with progress register and status register
CN110737504A (en) deep learning model training fault-tolerant method, system, terminal and storage medium
CN101960435B (en) Method and apparatus for performing a host enumeration process
CN103890713A (en) Apparatus and method for managing register information in processing system
CN108073474A (en) Suitable for the data processing method of automobile instrument
CN103455750B (en) The high peace verification method of a kind of embedded device and device
JP4279593B2 (en) Elevator control device
CN102736957B (en) Resetting method and device
CN110865906B (en) Motor initial position angle storage method and device, vehicle and storage medium
CN117539386A (en) Disk array data processing method, device, equipment and storage medium
US12260305B2 (en) Battery learn cycle management
CN104850472B (en) System software backup and reduction method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 230601 Anhui Province, Hefei City Industrial Park, the Peach Blossom Road No. 669

Applicant after: Anhui Jianghuai Automobile Group Limited by Share Ltd

Address before: 230601 Anhui Province, Hefei City Industrial Park, the Peach Blossom Road No. 669

Applicant before: Anhui Jianghuai Automotive Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921

RJ01 Rejection of invention patent application after publication