CN101441453B - Real time checking method for hybrid electric vehicle entire vehicle control software - Google Patents
Real time checking method for hybrid electric vehicle entire vehicle control software Download PDFInfo
- Publication number
- CN101441453B CN101441453B CN2008101862645A CN200810186264A CN101441453B CN 101441453 B CN101441453 B CN 101441453B CN 2008101862645 A CN2008101862645 A CN 2008101862645A CN 200810186264 A CN200810186264 A CN 200810186264A CN 101441453 B CN101441453 B CN 101441453B
- Authority
- CN
- China
- Prior art keywords
- task
- verification
- memory
- checking
- real time
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000006870 function Effects 0.000 claims abstract description 11
- 238000012795 verification Methods 0.000 claims description 39
- 238000011156 evaluation Methods 0.000 claims description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000011143 downstream manufacturing Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a real-time check method for entire vehicle control software of a hybrid vehicle. A memory of a flash memory is divided into different memory areas, and checking of each memory area is used as one task. Only one task is executed in each cycle, while one corresponding memory area is checked. The checking of the memory areas is passed, only when checking of each line of the memory area is passed. If an executive code in certain line is checked to be destroyed, all functions of the hybrid vehicle are forbidden, thereby switching into a refresh mode. The method for checking by the divided task is used to verify reliability of the executive code through the real-time calculation of line scanning, thereby checking all memory media of the flash memory as well as meeting a limit requirement on the executive time of a program code, thus the requirement on code safety of the vehicle control software of the hybrid vehicle is met.
Description
Technical field
The present invention relates to a kind of code security method of calibration that is used on the hybrid vehicle, the security that is used for improving the hybrid electric vehicle entire vehicle control software code, thereby the security that improves hybrid vehicle.
Background technology
Along with improving constantly of vehicle product quality, increasing automotive electronics is applied to automotive field, along with a large amount of widespread use of control electron device able to programme on automobile and hybrid vehicle.The safety of Control Software code becomes one of key factor that influences car load safety all the time.For this reason, the slip-stick artist who is engaged in related fields explores this, successively proposes the method for calibration that some are used for car load communication and internal memory inspection, as: CRC, parity checking, Gray code verification or the like.But these methods of calibration all have its limitation, can not satisfy the real-time verification requirement of the flash memory run time version of big memory size.And the time that the execution of traditional method of calibration needs is long, can not satisfy the requirement of verification.
Summary of the invention
Because be stored in the flash memory is run time version, security needs in order to ensure run time version are carried out real-time verification to code in the memory field, simultaneously can not take the too much execution time of hybrid vehicle Control Software, and ensureing this program code before carrying out, this section actuating code is by verification.The present invention adopts the method for the real-time verification of branch task effectively to address this problem in the requirement in conjunction with the real-time verification of jumbo flash memory.Concrete technical scheme is as follows.
A kind of real time checking method that is used for hybrid electric vehicle entire vehicle control software, the internal memory of flash memory is divided into different memory blocks, the verification of each memory block is as a task, in each circulation, only carry out a task, verification is carried out in a corresponding memory block, each row verification of having only the memory block is when all passing through, and the verification of this section memory block is only to be passed through, each task can be finished this task executions according to the permission situation of major cycle time.Each verification task executions time is less than 30% of the major cycle time.
Further, each verification task is all handled by task checking treatment function, in task checking treatment function, line scanning in real time needs the flash memory memory field of verification, whether the evaluation of checking each row by calculating equates with the check code that is stored in this line endings, judges whether this row run time version was destroyed before carrying out.If judge that this row run time version is not destroyed, withdraw from this task, continue to carry out major cycle; If judge that this row run time version is destroyed, all functions with the forbidding hybrid power enter refresh mode.
The binary file that the binary file of non-Motorola data layout is needed at first to convert to by convert file Motorola's data layout.
The present invention adopts the method for branch task verification, to need the flash memory of verification to resolve into different tasks by different memory pages, under the situation of each timeslice permission, carry out a verification task, read the numerical value of each row executable code and compare in real time in this verification task, check whether this line code is correct with the check code of end of line.
The present invention is calculating by real-time line scanning, the reliability of checking run time version.Meet the requirement of automobile or hybrid vehicle Control Software code security.
Description of drawings
Fig. 1: file layout conversion;
Fig. 2: the numerical value of the major cycle timeslice that the verification task takies;
Fig. 3: verification task handling process flow diagram.
Embodiment
Introduce the specific embodiment of the present invention below in conjunction with accompanying drawing.
The present invention is only applicable to the binary file that execute file is Motorola's data layout.Therefore, as shown in Figure 1, the binary file H12 file of non-Motorola data layout is converted to the binary file S19 file of Motorola's data layout by convert file SRecCvt.exe.This document line data form is fixed, and the line width byte number fixes, and handling for follow-up line scanning provides definition standard, makes things convenient for the routine processes of back simultaneously.
In the S19 file, the numerical value of each row run time version is carried out verification calculate, and result calculated is placed on last byte of this line endings, the check code that calculates as run time version verification in the internal memory of back.
The benefit of Chu Liing like this:
Can arrive on the fixing address of each row, scan for inquiries is to the data with specific meanings, such as: proof test value makes things convenient for the down-stream processing.
The present invention carries out the verification inspection at jumbo storage medium.As: the time that disposable inspection needs to the flash memory of 256k is greater than 25ms, this section program implementation time will surpass the execution time of sheet basic time, for this reason, characteristics according to motorola chip flash memory, the internal memory of flash memory is divided into different memory blocks, the verification of each memory block is as a task, in each circulation, only carry out a task verification is carried out in a corresponding memory block, when having only each row verification all to pass through, this section memory block verification is only to be passed through, each task can be finished this task executions according to the permission situation of major cycle time.Since can check all storage mediums of flash memory like this, can satisfy the requirement for restriction of program code execution time simultaneously again.
As shown in Figure 2, consider the entire vehicle control software master routine requirement for restriction of timeslice execution time simultaneously, according to permitting the execution time to be divided into different tasks, each major time slice is only carried out one of them task with flash memory, and each verification task executions time is less than 30% of major time slice.
As shown in Figure 3, the present invention is resolved into flash memory the TU task unit of different sizes according to the difference of different flash capacity sizes.Then, a plurality of different tasks will be carried out the management and the distribution of this task by task verification allocation manager function; Can handle by task checking treatment function each verification task, in task checking treatment function, line scanning in real time needs the flash memory memory field of verification, whether whether the evaluation of checking each row by calculating equate with the check code that is stored in this line endings, judges whether this row run time version was destroyed before carrying out.If do not destroyed, withdraw from this task, continue to carry out major cycle, if destroyed, program will be forbidden all functions of hybrid power, enter refresh mode, the safety of protection hybrid vehicle.
Claims (4)
1. real time checking method that is used for hybrid electric vehicle entire vehicle control software, the internal memory of flash memory is divided into different memory blocks, the verification of each memory block is as a task, in each major cycle, only carry out a task, verification is carried out in a corresponding memory block, the verification of each row run time version of having only the memory block is when all passing through, this section memory block verification is only to be passed through, each task is all according to the permission situation of major cycle time, finish this task executions, it is characterized in that: the execute file of the software of institute's verification is the binary file of Motorola's data layout, and each verification task executions time is less than 30% of the major cycle time.
2. real time checking method as claimed in claim 1, it is characterized in that: each verification task is all handled by task checking treatment function, in task checking treatment function, line scanning in real time needs the flash memory memory field of verification, whether the evaluation of checking each row run time version by calculating equates with the check code that is stored in this line endings, judges whether this row run time version was destroyed before carrying out.
3. real time checking method as claimed in claim 2 is characterized in that: if judge that this row run time version is not destroyed, withdraw from this task, continue to carry out major cycle; If judge that this row run time version is destroyed, all functions with the forbidding hybrid power enter refresh mode.
4. real time checking method as claimed in claim 1 or 2 is characterized in that: the binary file that the binary file needs of non-Motorola data layout is at first converted to Motorola's data layout by convert file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101862645A CN101441453B (en) | 2008-12-22 | 2008-12-22 | Real time checking method for hybrid electric vehicle entire vehicle control software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101862645A CN101441453B (en) | 2008-12-22 | 2008-12-22 | Real time checking method for hybrid electric vehicle entire vehicle control software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101441453A CN101441453A (en) | 2009-05-27 |
CN101441453B true CN101441453B (en) | 2010-12-22 |
Family
ID=40725916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101862645A Expired - Fee Related CN101441453B (en) | 2008-12-22 | 2008-12-22 | Real time checking method for hybrid electric vehicle entire vehicle control software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101441453B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722421A (en) * | 2010-12-17 | 2012-10-10 | 奇瑞汽车股份有限公司 | Method for checking contents of nonvolatile memory of automobile controller |
DE102016223341A1 (en) * | 2016-11-24 | 2018-05-24 | Robert Bosch Gmbh | Integrated circuit with hardware check unit for checking selected memory accesses |
CN112347467B (en) * | 2019-08-07 | 2024-06-18 | 联合汽车电子有限公司 | Starting method and system of vehicle-mounted controller |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1324466A (en) * | 1998-10-27 | 2001-11-28 | 联合想象计算机公司 | Method for checking tables paces involved in referential integrity |
CN1480953A (en) * | 2002-09-07 | 2004-03-10 | 鸿富锦精密工业(深圳)有限公司 | Method for storing check code in memory and its device |
CN1851826A (en) * | 2006-01-25 | 2006-10-25 | 华为技术有限公司 | Random storage failure detection processing method and its system |
-
2008
- 2008-12-22 CN CN2008101862645A patent/CN101441453B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1324466A (en) * | 1998-10-27 | 2001-11-28 | 联合想象计算机公司 | Method for checking tables paces involved in referential integrity |
CN1480953A (en) * | 2002-09-07 | 2004-03-10 | 鸿富锦精密工业(深圳)有限公司 | Method for storing check code in memory and its device |
CN1851826A (en) * | 2006-01-25 | 2006-10-25 | 华为技术有限公司 | Random storage failure detection processing method and its system |
Also Published As
Publication number | Publication date |
---|---|
CN101441453A (en) | 2009-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101441453B (en) | Real time checking method for hybrid electric vehicle entire vehicle control software | |
CN110991741B (en) | Section constraint probability early warning method and system based on deep learning | |
CN104281831A (en) | Handwriting verification method and device | |
CN108108262B (en) | Integrated circuit with hardware check unit for checking selected memory accesses | |
CN112818462A (en) | Method and device for generating wheel parameter model, storage medium and computer equipment | |
Zhang | QBF encoding of temporal properties and QBF-based verification | |
CN118313023A (en) | Drawing file detection method and device, computer storage medium and electronic equipment | |
CN100489781C (en) | Method and apparatus for positioning target file | |
CN103150227A (en) | Safe processing method for variable signature uniqueness based on redundant coding | |
US6895582B1 (en) | Method and apparatus for high assurance computing using virtual machines on general purpose computing resources | |
CN109582516B (en) | SSD back-end performance analysis method and device, computer equipment and storage medium | |
CN114936417A (en) | Precompression analysis model construction method and system, readable storage medium and computer | |
Niu et al. | Analysis of confidence lower limits of reliability and hazard rate for electronic stability control systems | |
CN113742252B (en) | Method and device for detecting memory disorder | |
CN107767977A (en) | A kind of used in nuclear power station method of controlling security and system | |
CN112883590A (en) | System reliability verification test scheme determination method | |
Schromm et al. | Automatic generation of cross sections from computed tomography data of mechanical joining elements for quality analysis | |
EP2229646A1 (en) | Software identification | |
CN111695797A (en) | Construction method, device and system of license authority and liability assignment effect evaluation model | |
CN110910172A (en) | Photovoltaic installed capacity evaluation method, device and equipment | |
CN118573489B (en) | Industrial Internet information security assessment method and system | |
CN118134056B (en) | Intelligent path planning method, device, equipment and storage medium for building construction | |
CN117744408B (en) | Test method, system, terminal and storage medium of constraint solving engine | |
Björk | Proceedings of ELM 2021: Theory, Algorithms and Applications | |
CN116468297A (en) | Power grid basic data checking method and device and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101222 Termination date: 20201222 |
|
CF01 | Termination of patent right due to non-payment of annual fee |