Background technique
After satellite computer booting, bootstrap (Boot Loader) automatic running, the hardware for completing computer is initial
Change.Then, the application program on memory is loaded into memory by bootstrap, and hereafter, application program is responsible for managing computer
The specified task with execution.Application program can be the application based on the general-purpose operating system, be also possible to dedicated software systems.
Satellite program management system is responsible for managing boot program, application program and storage equipment.Existing program manager
Formula is divided into backup mode and backup plus simplifies mode.
One, backup mode
Under backup mode, bootstrap is stored on bootstrap memory.Application program and its backup, which are stored in apply, deposits
On reservoir.
After bootstrap completes initialization, boot program loads application program is run into memory.If bootstrap
Can not loading application programs, then the backup of loading application programs.
Under backup mode, if application memory failure, all application programs can not all be loaded, computer system without
Method operation can not restore.
Two, backup, which adds, simplifies mode
In the case where backup plus simplifying mode, bootstrap is stored on bootstrap memory;Application program and its backup are stored in
On application memory;It simplifies application program also to be stored on bootstrap memory, simplifies application program and only support to tie up in application program
Hold the necessary function of system operation.
After bootstrap completes initialization, boot program loads application program is run into memory;If bootstrap
Can not loading application programs, then the backup of loading application programs.If bootstrap can not loading application programs backup, draw
Application program is simplified in the load of lead sequence.
In the case where backup plus simplifying mode, if application memory failure, computer system can only be loaded and be simplified using journey
Sequence supports basic function;Computer system can only issue application data by Satellite Monitoring and Control Centre and be restored, and uplink
Rate is usually very low, therefore resume speed is very slow.
Application program is simplified due to increasing, is also required to increase accordingly a large amount of R&D work.
Programmable read only memory (PROM), Erasable Programmable Read Only Memory EPROM are used on existing satellite computer
(EEPROM) it is used as memory, stores bootstrap and application program.The usual capacity very little of PROM and EEPROM, this just limits it
Using, especially need by it is multiple backup come when improving reliability.Or/no type flash memory (NOR FLASH) is relatively emerging
Memory device, capacity is big, and can be with randow addressing, suitable for storing the application program for needing to load after powering.
Summary of the invention
The technical problem to be solved by the present invention is to improve the reliability of satellite application program, supports quickly to repair and apply journey
Sequence simplifies application development.
In order to solve the above technical problems, the present invention provides a kind of satellite program management system, comprising: application memory, quilt
It is configured to readable writeable, storage application program and the first backup application;Bootstrap memory, is configured as read-only, and storage is drawn
Lead sequence and the second backup application;And controller, control second backup application repair the application program and/
Or first backup application, wherein the bootstrap memory and the application memory are or/no type flash memory (NOR
FLASH)。
Further, the controller, which is configured as executing, repairs operation, comprising: is newly answered with what Satellite Monitoring and Control Centre issued
The application program and/or first backup application are repaired with program;Or with the first backup application reparation
The application program;Or first backup application is repaired with the application program.
Further, the controller is configured as repairing operation described in the instruction execution according to Satellite Monitoring and Control Centre.
Further, the bootstrap memory is set as read-only with hardware jumper, is such as realized by hardware jumper.
Further, the bootstrap be configured according to Satellite Monitoring and Control Centre instruct or according to default loading rule it is automatic
Load one of the application program, first backup application and described second backup application.
Further, it after the default loading rule includes: electric on computers or initialization, loads described using journey
Sequence;When the application checks fail or it is resetted within a preset time more than preset times, then it is standby to load described first
Part application program;When first stand-by program verifies failure or it is resetted within a preset time more than preset times, load
Second backup application;When second stand-by program verify failure or its to reset within a preset time be more than default secondary
When number, the application program is loaded.
Further, the application program, first backup application, second backup application all in accordance with
Same way cutting is program block;The program block of the application program and the program block of first backup application are one by one
Program block in corresponding and identical and described second backup application corresponds and identical;The bootstrap choosing
It selects a school and tests successful described program block assembly program is made, the assembly program is identical as the application program;The guidance journey
Sequence loads the assembly program.
The present invention also provides a kind of satellite program management methods, comprising: storage bootstrap and the second backup application
To bootstrap memory;Application program and the first backup application are stored to application memory;With the second backup program
The application program and/or first backup application are repaired, wherein the bootstrap memory and the application memory
It is or/no type flash memory (NOR FLASH).
Further, the satellite program management method, further includes: the new application issued with Satellite Monitoring and Control Centre
Repair the application program and/or first backup application;Or it is answered described in the first backup application reparation
Use program;Or first backup application is repaired with the application program.
Further, the satellite program management method, further includes: after electric on computers or initialization, load institute
State application program;Application checks failure or its resets within a preset time more than after preset times, described in load
First backup application;Failure is verified in first stand-by program or it is resetted within a preset time more than preset times
Afterwards, second backup application is loaded;Failure is verified in second stand-by program or it resets surpass within a preset time
After crossing preset times, the application program is loaded.
In conclusion satellite program management system provided by the invention and satellite program management method, combine backup, repair
The technological means such as multiple, load control, stripping and slicing, substantially increase the reliability of application program storage and load, save using journey
The workload of sequence exploitation.
Specific embodiment
A specific embodiment of the invention is described in further details with reference to the accompanying drawing.Following embodiment will be helpful to
Those skilled in the art further understands the present invention, but the invention is not limited in any way.It should be pointed out that ability
For the those of ordinary skill in domain, without departing from the inventive concept of the premise, several variations and modifications can also be made.These
Belong to protection scope of the present invention.
One, the backup and reparation of application program
Satellite program management system guarantees the reliability of program storage by the method for backing up and repairing.
In one embodiment, as shown in Figure 1, satellite program management system of the invention includes: bootstrap memory 1, quilt
It is configured to read-only, storage bootstrap 50 and the second backup application 53;Application memory 2, is configured as readable writeable, deposits
Store up application program 51 and the first backup application 52;With controller 3, it is configured as being repaired with second backup application 53
The multiple application program 51 and/or first backup application 52, wherein the bootstrap memory 1 and the application are deposited
Reservoir 2 is or/no type flash memory (NOR FLASH).
Application program 51, the first backup application 52, the second backup application 53 are identical programs, pass through storage three
The identical program of part, avoids single program exception.
Two memories, bootstrap memory 1 and application memory 2 are set, three parts of identical programs are distributed to two storages
In device, the extremely caused program exception of single memory is avoided.
Bootstrap memory 1 is arranged to read-only, and the program that can protect thereon is not modified.
Application memory 2 be it is writeable, if controller 3 detects the program exception on application memory 2, deposited with guidance
Program on reservoir 1 repairs the program on application memory 2, such as directly replicates a normal procedure.Since the reparation operates
The data on satellite are only used, may be implemented quickly to repair, the slow transmission from satellite control center 4 to satellite is avoided and repairs
The process of data.
Or/no type flash memory (NOR FLASH) is relatively emerging memory device, and capacity is big, and can with randow addressing,
Suitable for storing the application program for needing to load after powering.Or/no type flash memory is applied to satellite technology field, then can greatly be increased
The memory capacity of strong satellite application program.
In one embodiment, the controller 3, which is configured as executing, repairs operation, comprising: satellite control center 4 issues
New application repair the application program 51 and/or first backup application 52;Or it is answered with first backup
The application program 51 is repaired with program 52;Or first backup application 52 is repaired with the application program 51.
More restorative procedures are supported in the embodiment, further increase the reliability for repairing operation.
Also, even if the application program on satellite can also can be uploaded by Satellite Monitoring and Control Centre 4 and newly be answered with reliability service
With in program to satellite, to increase new program function or modification bugs.
In one embodiment, controller 3 is configured as repairing behaviour described in the instruction execution according to Satellite Monitoring and Control Centre 4
Make.Satellite Monitoring and Control Centre 4 can further increase the reliability for repairing operation with the program repair process on manual intervention satellite.
In one embodiment, it is read-only for the bootstrap memory 1 being arranged with hardware jumper.Hardware setting is read-only to protect
The reliability of program storage will not be further increased by mistake write-in or bug patch by hindering bootstrap memory 1.
Two, application program loads
Satellite program management system improved by successively attempting to load each application program or its backup load at
Function probability.
In one embodiment, the bootstrap 50 is configured as loading the application program 51, first backup
One of application program 52 and second backup application 53.
Because bootstrap can choose normal procedure load therein, thus program there are more parts of identical programs
It loads success rate to rise, reliability enhancing.
In one embodiment, the bootstrap 50 is configured as: after electric on computers or initialization, described in load
Application program 51;When the application program 51 verifies failure or it is resetted within a preset time more than preset times, then load
First backup application 52;When first stand-by program 52 verify failure or its to reset within a preset time be more than default secondary
When number, the second backup application 53 is loaded;When second stand-by program 53 verify failure or its reset within a preset time
When more than preset times, the application program 51 is loaded.
Bootstrap 50 is by specified loading sequence, and circulation is attempted to load each program, until loading successfully.In this way may be used
Effectively to avoid single program load abnormal.
Three, application program stripping and slicing and assembling
The success rate of the reliability and load that can further be stored after application program stripping and slicing with assembling.
In one embodiment, the application program 51, first backup application 52, second back-up application
Program 53 is program block all in accordance with same way cutting;The program block of the application program 51 and the first back-up application journey
The program block of sequence 52 corresponds and the program block in identical and described second backup application 53 corresponds and phase
Together;Assembly program, the assembly program and the application is made in the successful described program block of 50 selection check of bootstrap
Program 51 is identical;The bootstrap 50 loads the assembly program.
If not stripping and slicing, a program can only complete verification success or complete verification failure.If stripping and slicing, one
A program only has abnormal block check failure, and other pieces all verify successfully.Since each piece there are corresponding multiple backups, go back in this way
It is that very high probability assembles normal application program.Therefore this method, can further enhance system counter memory and locally deposit
Store up the ability of block exception and the ability of success loading application programs.
For example, in one embodiment, as shown in Fig. 2, application program 51, the first backup application 52 and the second backup
Application program 53 is divided into identical program block A, B, C, saves respectively on a memory.Bootstrap 50 to each program block into
Row verification, and be grouped together the block that verification passes through to form a complete application program.Such as by the journey of application program 51
Sequence block A, the block B in the first backup application 52, the block C in the second backup application 53, are combined into a complete journey
Sequence.It should be noted that each program is also segmented into two pieces, four pieces or four pieces or more in the embodiment.
In one embodiment, Satellite Monitoring and Control Centre 4 can further be increased with the program loading procedure on manual intervention satellite
The reliability for adding program to load.
Four, satellite program management method
In one embodiment, satellite program management method of the invention, comprising: storage bootstrap and the second backup are answered
With program to bootstrap memory;Application program and the first backup application are stored to application memory;With second backup
The application program and/or first backup application are repaired with program, wherein the bootstrap memory and the application
Memory is or/no type flash memory (NOR FLASH).
In one embodiment, satellite program management method of the invention, comprising: newly answered with what Satellite Monitoring and Control Centre issued
The application program and/or first backup application are repaired with program;Or with the first backup application reparation
The application program;Or first backup application is repaired with the application program.
In one embodiment, satellite program management method of the invention, comprising: after electric on computers or initialization,
Load the application program;Fail in the application checks or it is resetted within a preset time more than after preset times, adds
Carry the first backup application;Failure is verified in first stand-by program or it is resetted within a preset time more than preset times
Afterwards, second backup application is loaded;Failure is verified in second stand-by program or it resets surpass within a preset time
After crossing preset times, the application program is loaded.
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that under the teachings of the present invention, this field
Those of ordinary skill many modifications and variations can be made to the present invention.Therefore, all technician in the art are according to this
The design of invention passes through the available technical side of logical analysis, reasoning, or a limited experiment on the basis of existing technology
Case, all should be within the scope of protection determined by the claims.