CN110334486A - Application integrity method of calibration and equipment - Google Patents
Application integrity method of calibration and equipment Download PDFInfo
- Publication number
- CN110334486A CN110334486A CN201910579896.6A CN201910579896A CN110334486A CN 110334486 A CN110334486 A CN 110334486A CN 201910579896 A CN201910579896 A CN 201910579896A CN 110334486 A CN110334486 A CN 110334486A
- Authority
- CN
- China
- Prior art keywords
- verified
- application program
- application
- key procedure
- characteristic value
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 155
- 238000012795 verification Methods 0.000 claims abstract description 43
- 230000000737 periodic effect Effects 0.000 claims description 31
- 230000015654 memory Effects 0.000 claims description 21
- 239000000976 ink Substances 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 12
- 238000012937 correction Methods 0.000 claims description 11
- 230000005055 memory storage Effects 0.000 claims description 2
- 238000012360 testing method Methods 0.000 claims 1
- 230000004044 response Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 238000013461 design Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000033001 locomotion Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1044—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices with specific ECC/EDC distribution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
- G06F21/125—Restricting unauthorised execution of programs by manipulating the program code, e.g. source code, compiled code, interpreted code, machine code
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention provides a kind of application integrity method of calibration and equipment, and this method includes that the key procedure in the application area where treating verification Application program carries out completeness check, obtains the characteristic value of the key procedure;According to the characteristic value of the key procedure, judge whether the key procedure is complete;If the key procedure is complete, the application program to be verified is executed.The embodiment of the present invention can shorten checking time, make ECU quick start, to improve the response speed to user input instruction, and then promote user experience by only verifying to the important procedure in application program.
Description
Technical field
The present embodiments relate to program ver-ify technical field more particularly to a kind of application integrity method of calibration and
Equipment.
Background technique
BootLoader is first carried out when powering in electronic control unit (Electronic Control Unit, ECU), so
After jump to application program.For the safe and reliable operation for guaranteeing application program in ECU, it is right before jumping to application program to need
Program in ECU does integrity checking.
Check that ECU process integrity is usually to check in BootLoader entire program area in the prior art,
It is whether consistent by the characteristic value and preset characteristic value in determining program area, determine the integrality of application program.
However, the checking time of above-mentioned check system changes with the size of entire program area, it can if program area is larger
There is the very long problem of checking time, causes ECU that cannot timely respond to user command when powering on.
Summary of the invention
The embodiment of the present invention provides a kind of application integrity method of calibration and equipment, to improve sound when ECU is powered on
Speed is answered, user experience is promoted
In a first aspect, the embodiment of the present invention provides a kind of application integrity method of calibration, comprising:
The key procedure treated in the application area where verification Application program carries out completeness check, obtains the pass
The characteristic value of stroke sequence;
According to the characteristic value of the key procedure, judge whether the key procedure is complete;
If the key procedure is complete, the application program to be verified is executed.
In a kind of possible design, the key procedure includes the first generation verified to the application area
Code;If the key procedure is complete, after executing the application program to be verified, further includes:
In the periodic scheduling task of the application program to be verified, to be verified answered according to the first code to described
Completeness check is carried out with program, obtains the characteristic value of the application program to be verified;
According to the characteristic value of the application program to be verified, judge whether the application program to be verified is complete;
If the application program to be verified is imperfect, electronic control unit ECU is resetted.
It is described in the periodic scheduling task of the application program to be verified in a kind of possible design, according to institute
It states first code and completeness check is carried out to the application program to be verified, obtain the characteristic value of the application program to be verified,
Include:
It is described in the periodic scheduling task of the application program to be verified, by segment processing, according to described first
Code carries out completeness check to the application program to be verified.
It is described in the periodic scheduling task of the application program to be verified in a kind of possible design, by dividing
Section processing carries out completeness check to the application program to be verified according to the first code, obtains the application to be verified
The characteristic value of program, comprising:
According to preset rules by the procedure division to be verified be multistage subprogram;
Within the period 1 in the periodic scheduling task of the application program to be verified, according to the first code pair
The first subprogram in the multistage subprogram is verified, and the First Eigenvalue is obtained;
Within the second round in the periodic scheduling task of the application program to be verified, according to the first code with
The First Eigenvalue verifies the second subprogram in the multistage subprogram, obtains Second Eigenvalue;
Within the period 3 in the periodic scheduling task of the application program to be verified, according to the first code with
The Second Eigenvalue verifies the third subprogram in the multistage subprogram, obtains third feature value;
And so on, it is finished until the multistage subprogram is verified, obtains the feature of the application program to be verified
Value.
In a kind of possible design, the characteristic value according to the application program to be verified judges described to be verified
After whether application program is complete, further includes:
If the application program to be verified is complete, the application program to be verified is continued to execute.
In a kind of possible design, key procedure in the application area treated where verification Application program into
Before row completeness check, further includes:
It whether there is when judgement executes bootstrap and write with a brush dipped in Chinese ink instruction;
Instruction is write with a brush dipped in Chinese ink if it does not exist, then the key procedure treated in the application area where verification Application program has carried out
Whole property verification.
In a kind of possible design, whether the characteristic value according to the key procedure judges the key procedure
Completely, comprising:
Judge whether characteristic value and the default characteristic value in the key procedure area are consistent;
If the characteristic value in the key procedure area is consistent with default characteristic value, the key procedure is complete.
Second aspect, the embodiment of the present invention provide a kind of application integrity calibration equipment, comprising:
First correction verification module, the key procedure for treating in the application area where verification Application program carry out complete
Property verification, obtain the characteristic value of the key procedure;The key procedure includes the verified to the application area
One code;
First judgment module judges whether the key procedure is complete for the characteristic value according to the key procedure;
First execution module executes the application program to be verified if complete for the key procedure.
The third aspect, the embodiment of the present invention provide a kind of application integrity calibration equipment, comprising: at least one processing
Device and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of memory storage so that it is described at least one
Processor executes method described in the various possible designs of first aspect and first aspect as above.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Computer executed instructions are stored in matter, when processor execute the computer executed instructions when, realize first aspect as above with
And method described in the various possible designs of first aspect.
Application integrity method of calibration and equipment provided in this embodiment, this method is by treating verification Application program
Key procedure in the application area at place carries out completeness check, obtains the characteristic value of the key procedure;According to described
The characteristic value of key procedure judges whether the key procedure is complete;If the key procedure is complete, execute described to be verified
Application program.It can be by only being verified to the important procedure in application program, shortening checking time makes ECU quick start,
To improve the response speed to user input instruction, and then promote user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the subregion schematic diagram for the memory block ECU that one embodiment of the invention provides;
Fig. 2 is the flow diagram for the application integrity method of calibration that further embodiment of this invention provides;
Fig. 3 is the flow diagram for the application integrity method of calibration that further embodiment of this invention provides;
Fig. 4 is the flow diagram for the application integrity method of calibration that further embodiment of this invention provides;
Fig. 5 is the structural schematic diagram for the application integrity calibration equipment that further embodiment of this invention provides;
Fig. 6 is the structural schematic diagram for the application integrity calibration equipment that further embodiment of this invention provides;
Fig. 7 is the hardware structural diagram for the application integrity calibration equipment that further embodiment of this invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the subregion schematic diagram for the memory block ECU that one embodiment of the invention provides.As shown in Figure 1, the memory block ECU is extremely
It less include the area bootstrap (Bootloader), application area and verification and memory block.When ECU is powered on, it is first carried out and deposits
The Bootloader program for being stored in the program area Bootloader initializes hardware device, establishes memory headroom mapping graph,
To take the hardware environment of system to a proper states, to call application program to get out correct ring to be final
Then border executes the application program being stored in application area.For guarantee application program safety, in executing application
Before, completeness check is first carried out to application program, whether detection application program mistake occurs or distorted by people.The verification
Journey can be executed by the processor of terminal device, such as ECU itself, can also be executed by background server, the application is to this
It is not construed as limiting.
During specific implementation, Bootloader is finished, and terminal device or server are in application area
Application program is verified and is calculated, obtain the application program verification and, and by the verification being calculated and be stored in
Prestoring in verification and memory block verifies and is compared, if unanimously, showing that application program is complete, then executes and applies journey
Sequence.If inconsistent, it is unable to executing application, needs to carry out application program the operation such as to refresh.
It can be seen that the time that ECU is powered on includes the time for calculating the verification sum of application area application program.On ECU
The speed of electroresponse user command and the calculating verify and time correlation, that is to say, that if application program in application area
It is very big, then it needs to take a long time the calculating for carrying out verification sum, user command cannot be carried out when then ECU is powered on timely
Response.Based on this, the embodiment of the present invention provides a kind of application integrity method of calibration, to improve application integrity
The efficiency of verification shortens response time when ECU is powered on to user command.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below
Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 2 is the flow diagram for the application integrity method of calibration that further embodiment of this invention provides.Such as Fig. 2 institute
Show, this method comprises:
201, the key procedure treated in the application area where verification Application program carries out completeness check, obtains institute
State the characteristic value of key procedure.
In practical application, the executing subject of the present embodiment can be terminal device or server, and terminal device can be to appoint
Anticipate a kind of ECU, such as Engine ECU, hydraulic ECU etc..
In the present embodiment, the key procedure is the certain applications program in application area in application program.Be for
Complete the program of ECU basic function.All programs in application program in addition to key procedure are non-key program, the non-key journey
Sequence is to complete the program of ECU additional function.For example, the key procedure includes at least engine start for Engine ECU
Program, non-key program can be the program of the signal acquisitions such as air-conditioning switch, environment temperature.For in bull-dozer or excavator
Hydraulic ECU for, key procedure include at least control complete advance, retreat, crawl etc. basic functions program, non-key journey
Sequence can be the program of the additional functions such as control seat adjustment.
202, according to the characteristic value of the key procedure, judge whether the key procedure is complete.
Optionally, the characteristic value can for signature or verification and.Obtain this feature value can by many algorithms come
It completes.Such as it can not limited this using CRC algorithm, hash algorithm or MD5 algorithm, the application.
Specifically, judging whether the characteristic value in the key procedure area and default characteristic value are consistent.
If the characteristic value in the key procedure area is consistent with default characteristic value, the key procedure is complete.
It obtains the algorithm needs of this feature value it is appreciated that carrying out completeness check and obtains the algorithm phase of default characteristic value
Unanimously, it can correctly be compared.
If 203, the key procedure is complete, the application program to be verified is executed.
In practical application, if key procedure is detected completely, ECU can control corresponding hardware device and complete substantially
Function.It therefore can be with executing application.Such as engine can execute normal starting strategy, before hydraulic device can be made
Into elemental motions such as retrogressings.
Application integrity method of calibration provided in this embodiment, by treating the application journey where verification Application program
Key procedure in sequence area carries out completeness check, obtains the characteristic value of the key procedure;According to the spy of the key procedure
Value indicative judges whether the key procedure is complete;If the key procedure is complete, the application program to be verified is executed.Energy
It is enough to shorten checking time, make ECU quick start by only being verified to the important procedure in application program, with raising to
The response speed of family input instruction, and then promote user experience.
It is considered that even if the additional function of non-key process control is more secondary in application program, but if it is non-key
There are problems for program, still will cause a degree of influence.Fig. 3 is that the application program that further embodiment of this invention provides is complete
The flow diagram of property method of calibration.On the basis of the above embodiments, the present embodiment carries out the verification of non-key program
It is described in detail.As shown in figure 3, this method comprises:
301, the key procedure treated in the application area where verification Application program carries out completeness check, obtains institute
State the characteristic value of key procedure.
302, according to the characteristic value of the key procedure, judge whether the key procedure is complete.
If 303, the key procedure is complete, the application program to be verified is executed.
Step 301 is similar to step 203 with step 201 in above-described embodiment to step 303 in the present embodiment, herein not
It repeats again.
304, the key procedure includes the first code verified to the application area;It to be verified is answered described
With in the periodic scheduling task of program, completeness check is carried out to the application program to be verified according to the first code,
Obtain the characteristic value of the application program to be verified.
In the present embodiment, after the periodic scheduling task refers to that ECU is initialized, signal acquisition can be periodically executed
Or the task of signal processing.By taking Engine ECU as an example, after engine start, gas pedal can be acquired with the period of 10ms
Aperture, can also be controlled with the period of 10ms and match oil mass, amendment can also acquire some with oily parameter with the period of 100ms
The switching value of trouble light.
In practical application, when being verified to key procedure, need to the subsequent periodicity in application program to be verified
Algorithmic code used by further completeness check in scheduler task carry out completeness check, i.e., to the first code into
Row verification.To guarantee the accuracy further verified in periodic scheduling task.
In view of the period of periodic scheduling task is shorter, therefore application program to be verified can be segmented,
One section of code is verified in each period.
It is described in the periodic scheduling task of the application program to be verified in a kind of specific implementation, pass through
Segment processing carries out completeness check to the application program to be verified according to the first code, may include:
It 3041, is multistage subprogram by the procedure division to be verified according to preset rules.
It specifically, program to be verified can be divided according to preset length, such as by procedure division to be verified is 16K
Size.
3042, within the period 1 in the periodic scheduling task of the application program to be verified, according to described first
Code verifies the first subprogram in the multistage subprogram, obtains the First Eigenvalue.
3043, within the second round in the periodic scheduling task of the application program to be verified, according to described first
Code and the First Eigenvalue, verify the second subprogram in the multistage subprogram, obtain Second Eigenvalue.
3044, within the period 3 in the periodic scheduling task of the application program to be verified, according to described first
Code and the Second Eigenvalue, verify the third subprogram in the multistage subprogram, obtain third feature value.
3045, and so on, it is finished until the multistage subprogram is verified, obtains the application program to be verified
Characteristic value.
It is described in the periodic scheduling task of the application program to be verified in another specific implementation, lead to
Segment processing is crossed, completeness check is carried out to the application program to be verified according to the first code, may include:
It 3046, is multistage subprogram by the procedure division to be verified according to preset rules.
3047, within the period 1 in the periodic scheduling task of the application program to be verified, according to described first
Code verifies the first subprogram in the multistage subprogram, obtains the First Eigenvalue.
3048, within the second round in the periodic scheduling task of the application program to be verified, according to described first
Code verifies the second subprogram in the multistage subprogram, obtains Second Eigenvalue.
3049, and so on, it is finished until the multistage subprogram is verified, obtains the application program to be verified
Multiple characteristic values, and calculate according to multiple characteristic value the characteristic value of application program to be verified.
305, according to the characteristic value of the application program to be verified, judge whether the application program to be verified is complete.
Optionally, the characteristic value can for signature or verification and.Obtain this feature value can by many algorithms come
It completes.Such as CRC algorithm, hash algorithm or MD5 algorithm can be used, the application compares without limitation.
Specifically, judging whether the characteristic value of the application program to be verified and default characteristic value are consistent.
If the characteristic value of the application program to be verified is consistent with default characteristic value, the key procedure is complete.
It obtains the algorithm needs of this feature value it is appreciated that carrying out completeness check and obtains the algorithm phase of default characteristic value
Unanimously, it can correctly be compared.
If 306, the application program to be verified is imperfect, electronic control unit ECU is resetted.
If 307, the application program to be verified is complete, the application program to be verified is continued to execute.
Application integrity method of calibration provided in this embodiment, is treated by completing in algorithms for periodic task scheduling
The completeness check of verification Application program, can guarantee entire application program it is complete with it is safe.
In view of application program updating or failure are refreshed, Fig. 4 is the application that further embodiment of this invention provides
The flow diagram of process integrity method of calibration.On the basis of the above embodiments, such as the base of embodiment shown in Fig. 1
On plinth, the present embodiment monitors refreshing instruction, as shown in figure 4, this method comprises:
401, it whether there is when judgement executes bootstrap and write with a brush dipped in Chinese ink instruction.
402, write with a brush dipped in Chinese ink instruction if it does not exist, then treat key procedure in the application area where verification Application program into
Row completeness check obtains the characteristic value of the key procedure;The key procedure includes to carry out school to the application area
The first code tested.
403, according to the characteristic value of the key procedure, judge whether the key procedure is complete.
Specifically, judging whether the characteristic value in the key procedure area and default characteristic value are consistent.
If the characteristic value in the key procedure area is consistent with default characteristic value, the key procedure is complete.
If 404, the key procedure is complete, the application program to be verified is executed.
If 405, the key procedure is imperfect, rest in Bootloader.
Step 402 is similar with step 203 to step 403 and step 201 in above-described embodiment in the present embodiment, herein not
It repeats again.
In practical application, if necessary to upgrade to application program, it can input and write with a brush dipped in Chinese ink instruction to application program progress
It writes with a brush dipped in Chinese ink.After Bootloader is finished, before being verified to application program, instruction is write with a brush dipped in Chinese ink to this and is monitored, if deposited
Instruction is being write with a brush dipped in Chinese ink, then need not carry out completeness check and subsequent application program executes operation.Directly carry out application program brush
Write operation.
Application integrity method of calibration provided in this embodiment can be simplified by being monitored to writing with a brush dipped in Chinese ink instruction
Process reduces unnecessary checking time.
Fig. 5 is the structural schematic diagram for the application integrity calibration equipment that further embodiment of this invention provides.Such as Fig. 5 institute
Show, which includes: the first correction verification module 501, first judgment module 502 and the first execution
Module 503.
First correction verification module 501, the key procedure for treating in the application area where verification Application program carry out
Completeness check obtains the characteristic value of the key procedure;The key procedure includes to verify to the application area
First code;
First judgment module 502 judges whether the key procedure is complete for the characteristic value according to the key procedure
It is whole;
First execution module 503 executes the application program to be verified if complete for the key procedure.
Application integrity calibration equipment provided in an embodiment of the present invention, the first correction verification module 501 is by to be verified
Key procedure in application area where application program carries out completeness check, obtains the characteristic value of the key procedure;
The key procedure includes the first code verified to the application area;First judgment module 502, according to the pass
The characteristic value of stroke sequence judges whether the key procedure is complete;First execution module 503 is held when the key procedure is complete
The row application program to be verified.Checking time can be shortened, make ECU quick start, to improve the sound to user input instruction
Speed is answered, and then promotes user experience.
Fig. 6 is the structural schematic diagram for the application integrity calibration equipment that further embodiment of this invention provides.Such as Fig. 6 institute
Show, the application integrity calibration equipment 50 further include: the second correction verification module 504, the second judgment module 505.
Optionally, the equipment further include:
Second correction verification module 504, in the periodic scheduling task of the application program to be verified, according to described
One code carries out completeness check to the application program to be verified, obtains the characteristic value of the application program to be verified;
According to the characteristic value of the application program to be verified, judge whether the application program to be verified is complete;
If the application program to be verified is imperfect, electronic control unit ECU is resetted.
Optionally, second correction verification module 504 is specifically used for:
It is described in the periodic scheduling task of the application program to be verified, by segment processing, according to described first
Code carries out completeness check to the application program to be verified.
Optionally, second correction verification module 504 is specifically used for:
According to preset rules by the procedure division to be verified be multistage subprogram;
Within the period 1 in the periodic scheduling task of the application program to be verified, according to the first code pair
The first subprogram in the multistage subprogram is verified, and the First Eigenvalue is obtained;
Within the second round in the periodic scheduling task of the application program to be verified, according to the first code with
The First Eigenvalue verifies the second subprogram in the multistage subprogram, obtains Second Eigenvalue;
Within the period 3 in the periodic scheduling task of the application program to be verified, according to the first code with
The Second Eigenvalue verifies the third subprogram in the multistage subprogram, obtains third feature value;
And so on, it is finished until the multistage subprogram is verified, obtains the feature of the application program to be verified
Value.
Optionally, second correction verification module 504 is specifically used for:
If the application program to be verified is complete, the application program to be verified is continued to execute.
Optionally, the equipment further include:
Second judgment module 505 whether there is when for judging to execute bootstrap and write with a brush dipped in Chinese ink instruction;
First correction verification module 501, specifically for writing with a brush dipped in Chinese ink instruction if it does not exist, then where treating verification Application program
Key procedure in application area carries out completeness check.
Optionally, the first judgment module 502, is specifically used for:
Judge whether characteristic value and the default characteristic value in the key procedure area are consistent;
If the characteristic value in the key procedure area is consistent with default characteristic value, the key procedure is complete.
Application integrity calibration equipment provided in an embodiment of the present invention, can be used for executing above-mentioned embodiment of the method,
That the realization principle and technical effect are similar is similar for it, and details are not described herein again for the present embodiment.
Fig. 7 is the hardware structural diagram for the application integrity calibration equipment that further embodiment of this invention provides.Such as
Shown in Fig. 7, application integrity calibration equipment 70 provided in this embodiment includes: at least one processor 701 and memory
702.Wherein, processor 701, memory 702 are connected by bus 703.
During specific implementation, at least one processor 701 executes the computer execution that the memory 702 stores and refers to
It enables, so as to execute application program performed by application integrity calibration equipment 70 as above complete at least one processor 701
Property method of calibration.
The specific implementation process of processor 701 can be found in above method embodiment, and it is similar that the realization principle and technical effect are similar,
Details are not described herein again for the present embodiment.
In above-mentioned embodiment shown in Fig. 7, it should be appreciated that processor can be central processing unit (English:
Central Processing Unit, referred to as: CPU), can also be other general processors, digital signal processor (English:
Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific
Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to
Any conventional processor etc..Hardware processor can be embodied directly in conjunction with the step of invention disclosed method to have executed
At, or in processor hardware and software module combination execute completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one
Magnetic disk storage.
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer
Portion's apparatus interconnection (Peripheral component interconnect, PCI) bus or extended industry-standard architecture
(Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, number
According to bus, control bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a seed type
Bus.
The application also provides a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium
Machine executes instruction, and when processor executes the computer executed instructions, realizes that application integrity calibration equipment as above is held
Capable application integrity method of calibration.
The application also provides a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium
Machine executes instruction, and when processor executes the computer executed instructions, realizes that application integrity calibration equipment as above is held
Capable application integrity method of calibration.
Above-mentioned computer readable storage medium, above-mentioned readable storage medium storing program for executing can be by any kind of volatibility or non-
Volatile storage devices or their combination realize that, such as static random access memory (SRAM), electrically erasable is only
It reads memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM) is read-only to deposit
Reservoir (ROM), magnetic memory, flash memory, disk or CD.Readable storage medium storing program for executing can be general or specialized computer capacity
Any usable medium enough accessed.
A kind of illustrative readable storage medium storing program for executing is coupled to processor, to enable a processor to from the readable storage medium storing program for executing
Information is read, and information can be written to the readable storage medium storing program for executing.Certainly, readable storage medium storing program for executing is also possible to the composition portion of processor
Point.Processor and readable storage medium storing program for executing can be located at specific integrated circuit (Application Specific Integrated
Circuits, referred to as: ASIC) in.Certainly, processor and readable storage medium storing program for executing can also be used as discrete assembly and be present in equipment
In.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of application integrity method of calibration characterized by comprising
The key procedure treated in the application area where verification Application program carries out completeness check, obtains the crucial journey
The characteristic value of sequence;
According to the characteristic value of the key procedure, judge whether the key procedure is complete;
If the key procedure is complete, the application program to be verified is executed.
2. the method according to claim 1, wherein the key procedure includes to carry out to the application area
The first code of verification;If the key procedure is complete, after executing the application program to be verified, further includes:
In the periodic scheduling task of the application program to be verified, according to the first code to described to be verified using journey
Sequence carries out completeness check, obtains the characteristic value of the application program to be verified;
According to the characteristic value of the application program to be verified, judge whether the application program to be verified is complete;
If the application program to be verified is imperfect, electronic control unit ECU is resetted.
3. according to the method described in claim 2, it is characterized in that, the periodic scheduling in the application program to be verified
In task, completeness check is carried out to the application program to be verified according to the first code, obtains the application to be verified
The characteristic value of program, comprising:
It is described in the periodic scheduling task of the application program to be verified, by segment processing, according to the first code
Completeness check is carried out to the application program to be verified.
4. according to the method described in claim 3, it is characterized in that, the periodic scheduling in the application program to be verified
In task, by segment processing, completeness check is carried out to the application program to be verified according to the first code, obtains institute
State the characteristic value of application program to be verified, comprising:
According to preset rules by the procedure division to be verified be multistage subprogram;
Within the period 1 in the periodic scheduling task of the application program to be verified, according to the first code to described
The first subprogram in multistage subprogram is verified, and the First Eigenvalue is obtained;
Within the second round in the periodic scheduling task of the application program to be verified, according to the first code with it is described
The First Eigenvalue verifies the second subprogram in the multistage subprogram, obtains Second Eigenvalue;
Within the period 3 in the periodic scheduling task of the application program to be verified, according to the first code with it is described
Second Eigenvalue verifies the third subprogram in the multistage subprogram, obtains third feature value;
And so on, it is finished until the multistage subprogram is verified, obtains the characteristic value of the application program to be verified.
5. according to the method described in claim 2, it is characterized in that, the characteristic value according to the application program to be verified,
After judging whether the application program to be verified is complete, further includes:
If the application program to be verified is complete, the application program to be verified is continued to execute.
6. method according to claim 1-5, which is characterized in that described to treat answering where verification Application program
Before carrying out completeness check with the key procedure in program area, further includes:
It whether there is when judgement executes bootstrap and write with a brush dipped in Chinese ink instruction;
Instruction is write with a brush dipped in Chinese ink if it does not exist, then the key procedure treated in the application area where verification Application program carries out integrality
Verification.
7. method according to claim 1-5, which is characterized in that the feature according to the key procedure
Value, judges whether the key procedure is complete, comprising:
Judge whether characteristic value and the default characteristic value in the key procedure area are consistent;
If the characteristic value in the key procedure area is consistent with default characteristic value, institute
It is complete to state key procedure.
8. a kind of application integrity calibration equipment characterized by comprising
First correction verification module, the key procedure for treating in the application area where verification Application program carry out integrality school
It tests, obtains the characteristic value of the key procedure;
First judgment module judges whether the key procedure is complete for the characteristic value according to the key procedure;
First execution module executes the application program to be verified if complete for the key procedure.
9. a kind of application integrity calibration equipment characterized by comprising at least one processor and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of the memory storage, so that at least one described processing
Device executes application integrity method of calibration as described in any one of claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
It executes instruction, when processor executes the computer executed instructions, realizes application as described in any one of claim 1 to 7
Process integrity method of calibration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579896.6A CN110334486B (en) | 2019-06-28 | 2019-06-28 | Application program integrity checking method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579896.6A CN110334486B (en) | 2019-06-28 | 2019-06-28 | Application program integrity checking method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110334486A true CN110334486A (en) | 2019-10-15 |
CN110334486B CN110334486B (en) | 2021-10-08 |
Family
ID=68144635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910579896.6A Active CN110334486B (en) | 2019-06-28 | 2019-06-28 | Application program integrity checking method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110334486B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112925574A (en) * | 2019-12-06 | 2021-06-08 | 观致汽车有限公司 | Management method and device of controller and electronic equipment |
CN113157286A (en) * | 2021-04-20 | 2021-07-23 | 深圳市优必选科技股份有限公司 | System upgrading method and device |
CN113778061A (en) * | 2021-09-16 | 2021-12-10 | 广州锦红源电子科技有限公司 | Method and device for verifying program integrity of electronic controller and electronic controller |
CN115129341A (en) * | 2022-06-21 | 2022-09-30 | 广西电网有限责任公司电力科学研究院 | Chip software upgrading method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2107490B1 (en) * | 2005-09-29 | 2012-08-29 | Research In Motion Limited | System and method for providing code signing services |
CN104182242A (en) * | 2013-05-28 | 2014-12-03 | 华为技术有限公司 | System booting method and system booting device |
CN106529301A (en) * | 2016-09-28 | 2017-03-22 | 东软集团股份有限公司 | Method and device for controlling vehicle-mounted machine system, and vehicle-mounted machine system |
CN106878345A (en) * | 2017-04-25 | 2017-06-20 | 杭州迪普科技股份有限公司 | A kind of method and device for distorting protection |
CN107766188A (en) * | 2017-10-13 | 2018-03-06 | 交控科技股份有限公司 | Internal-memory detection method and device in train control system |
CN107766747A (en) * | 2017-10-31 | 2018-03-06 | 维沃移动通信有限公司 | Method, mobile terminal and the server of verification Application program installation kit integrality |
CN109062594A (en) * | 2018-07-20 | 2018-12-21 | 武汉科技大学 | A kind of method that automobile ECU program automatic safe upgrades under embedded QNX/Linux |
CN109934016A (en) * | 2019-03-07 | 2019-06-25 | 江苏通付盾信息安全技术有限公司 | The signature check method, apparatus and electronic equipment of application |
-
2019
- 2019-06-28 CN CN201910579896.6A patent/CN110334486B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2107490B1 (en) * | 2005-09-29 | 2012-08-29 | Research In Motion Limited | System and method for providing code signing services |
CN104182242A (en) * | 2013-05-28 | 2014-12-03 | 华为技术有限公司 | System booting method and system booting device |
CN106529301A (en) * | 2016-09-28 | 2017-03-22 | 东软集团股份有限公司 | Method and device for controlling vehicle-mounted machine system, and vehicle-mounted machine system |
CN106878345A (en) * | 2017-04-25 | 2017-06-20 | 杭州迪普科技股份有限公司 | A kind of method and device for distorting protection |
CN107766188A (en) * | 2017-10-13 | 2018-03-06 | 交控科技股份有限公司 | Internal-memory detection method and device in train control system |
CN107766747A (en) * | 2017-10-31 | 2018-03-06 | 维沃移动通信有限公司 | Method, mobile terminal and the server of verification Application program installation kit integrality |
CN109062594A (en) * | 2018-07-20 | 2018-12-21 | 武汉科技大学 | A kind of method that automobile ECU program automatic safe upgrades under embedded QNX/Linux |
CN109934016A (en) * | 2019-03-07 | 2019-06-25 | 江苏通付盾信息安全技术有限公司 | The signature check method, apparatus and electronic equipment of application |
Non-Patent Citations (2)
Title |
---|
覃周: ""一种车载网络安全防护机制的研究"", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 * |
詹克旭等: ""基于UDS协议的汽车ECU升级方案"", 《计算机应用与软件》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112925574A (en) * | 2019-12-06 | 2021-06-08 | 观致汽车有限公司 | Management method and device of controller and electronic equipment |
CN112925574B (en) * | 2019-12-06 | 2023-12-19 | 观致汽车有限公司 | Management method and device of controller and electronic equipment |
CN113157286A (en) * | 2021-04-20 | 2021-07-23 | 深圳市优必选科技股份有限公司 | System upgrading method and device |
CN113778061A (en) * | 2021-09-16 | 2021-12-10 | 广州锦红源电子科技有限公司 | Method and device for verifying program integrity of electronic controller and electronic controller |
CN115129341A (en) * | 2022-06-21 | 2022-09-30 | 广西电网有限责任公司电力科学研究院 | Chip software upgrading method |
Also Published As
Publication number | Publication date |
---|---|
CN110334486B (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110334486A (en) | Application integrity method of calibration and equipment | |
CN107392619B (en) | Intelligent contract processing method and device | |
JP6857598B2 (en) | Coverage test support device and coverage test support method | |
CN110619210A (en) | Simulator detection method and system | |
CN104217139B (en) | Processing system | |
CN111933199B (en) | Data read-write method and device based on memory and storage medium | |
US20090172643A1 (en) | Program verification apparatus, program verification method, and program storage medium | |
JP2007287022A (en) | Information storage method for electronic control device | |
CN105677409B (en) | A kind of method for upgrading system and device | |
CN112540725A (en) | Nonvolatile data storage method, embedded system and storage medium | |
US20170123923A1 (en) | Method of error detection during a booting process, and a computer system for implementing the same | |
JPWO2016185577A1 (en) | Program verification method, verification program, and information processing apparatus | |
TWI588742B (en) | Program codes loading method of application and computing system using the same | |
CN102708044B (en) | Integrality and compatibility verification apparatus and method | |
CN108108262A (en) | Integrated circuit with the hardware check unit for checking selected memory access | |
CN112052032B (en) | Brushing method and device of electronic control unit | |
CN108647119A (en) | The startup method, apparatus and equipment of linux system | |
JP5504604B2 (en) | RAM diagnostic device | |
CN111176671B (en) | Method for automatically and continuously updating system, mobile terminal and storage medium | |
CN111767180A (en) | Pressure testing method, device, equipment and storage medium | |
JP2001014382A (en) | Method for generating simulation environment for improved logic verification of branch history table | |
CN113626342B (en) | Model online testing method and device | |
CN109343792B (en) | Storage space configuration method and device, computer equipment and storage medium | |
US11156663B2 (en) | Generating a test sequence of code based on a directed sequence of code and randomly selected instructions | |
US7490232B2 (en) | Disk device using disk to rewrite firmware and firmware determination method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |