The purpose of this invention is to provide a kind of method of changing the firmware of computer system, to overcome many shortcomings that can't reach the protection computer apparatus usually.
The method of the firmware of replacing computer system of the present invention is achieved in that it is a kind of computer program product, it is characterized in that: comprise at least: the spendable medium of a computer, these medium have a computer-readable program fetch code function, and can change a firmware, this firmware has a computer fetch program sign indicating number, in this computer program, comprise at least: a computer-readable program fetch sign indicating number, its function are that first firmware that has installed is replaced to one second firmware; One computer-readable program fetch sign indicating number, its function are that the storer with computer is divided into five parts; One computer-readable program fetch sign indicating number, its function are that this first firmware that has installed and original firmware are replaced to this second firmware, and are stored in first part of a computer memory; One computer-readable program fetch sign indicating number, its function are to remove this first firmware, store second part of this second firmware in this computer memory afterwards; One computer-readable program fetch sign indicating number, its function be with this second firmware back up in this computer memory the 3rd partly; One computer-readable program fetch sign indicating number, its function are the 4th parts that a firmware parameter is stored in this computer memory; And a computer-readable program fetch sign indicating number, its function is the 5th part that the one parameter is stored in this computer memory.
This computer-readable program fetch sign indicating number is used for scanner at least.
The method of the firmware of replacing computer system of the present invention can be achieved in that also it is a kind of computer program product, must follow a memory component to use, it is characterized in that: this computer program product comprises at least: computer-readable program fetch sign indicating number, its function is that first firmware that has installed is replaced to one second firmware in a storer of this computer, computer-readable program fetch sign indicating number in these goods comprises at least; One computer-readable program fetch sign indicating number, its function are that the storer with computer is divided into four parts; One computer-readable program fetch sign indicating number, its function are that this first firmware that has installed is replaced to this second firmware and an initial firmware program, and are stored in first part of a computer memory; One computer-readable program fetch sign indicating number, its function are to remove this first firmware, store second part of this second firmware in this computer memory afterwards; One computer-readable program fetch sign indicating number, its function be with this second firmware back up in this computer memory the 3rd partly; One computer-readable program fetch sign indicating number, its function are the 4th parts that a firmware parameter is stored in this computer memory; And a computer-readable program fetch sign indicating number, its function is the 5th part that a firmware parameter is stored in this computer memory.
This computer-readable program fetch sign indicating number is used for scanner at least.
The method of the firmware of replacing computer system of the present invention can also be achieved in that a kind of computer program product, must follow a memory component to use, it is characterized in that: this computer program product comprises at least: a computer can use medium, these medium have a computer-readable program fetch code function, and first firmware that will install replaces to one second firmware and an initial firmware program, and be stored in one first part of a computer memory, at least comprise: computer-readable the 0th program, its function are that this computer memory is divided into four parts; Computer-readable first program, whether its function for forming an initial program; Computer-readable second program, whether its function for forming one first firmware program; Computer-readable the 3rd program, whether its function for forming one second firmware program; Computer-readable quadruple pass preface, whether its function for backing up this second firmware program; Computer-readable the 5th program, whether its function for storing a firmware parameter; And computer-readable the 6th program, whether its function for storing a firmware parameter.
This computer readable program is used for scanner at least.
The method of the firmware of replacing computer system of the present invention can be achieved in that again it is a kind of computer program product, be to be used for a computer system, have an operating system and a memory component, replace to one second firmware and an initial firmware program as first firmware that will install, and be stored in one first part of a computer memory, it is characterized in that: comprise at least: these goods include a computer can use medium, these medium have the computer-readable program fetch, include: computer-readable program fetch sign indicating number device can use in the medium at computer, this device replaces to one second firmware and an initial firmware program for first firmware that will install, and be stored in one first part of a computer memory, at least comprise: computer-readable the 0th program, its function are that this computer memory is divided into five parts; Computer-readable first program, whether its function for forming an initial program; Computer-readable second program, whether its function for forming one first firmware program; Computer-readable the 3rd program, whether its function for forming one second firmware program; Computer-readable quadruple pass preface, whether its function for backing up this second firmware program; Computer-readable the 5th program, whether its function for storing a firmware parameter; And computer-readable the 6th program, whether its function for storing a firmware parameter.
This computer readable program is used for scanner at least.
The method of the firmware of replacing computer system of the present invention more can be achieved in that a computer storage unit, mat is installed in one mechanically, and mat should be specialized the ground executive routine by machinery, the step of expression method is to operate a firmware, it is characterized in that: comprise at least: a storer that should machinery is divided into five partly, to provide the space as the usefulness that stores a plurality of computer-readable program fetches; Install first space of an initial program, become a computer-readable fixed routine at this storer of this machinery; From this storer of this machinery, remove one first firmware program; Install second space of one second firmware in this storer; Back up three space of this second firmware in this storer; A plurality of firmware parameters of installing this second firmware are in the 4th space of this storer of this machinery; And a plurality of firmware parameters of the backup of this second firmware of installing are in the 5th space of this storer of this machinery.
This firmware is used for scanner at least.
The present invention is a kind of computer program product, and it must follow a memory component to use.Simultaneously in a computer storage unit, mat is installed in one mechanically, and mat machinery is specialized the ground executive routine, the step of expression method is operation one firmware, generally comprised following method: at first the storer of a machinery is divided into five partly, to provide the space as the usefulness that stores the program that a plurality of computer-readables get; Install first space of an initial program, become a computer-readable fixed routine at the storer of machinery.From the storer of machinery, remove one first firmware program.Install second space of one second firmware again at storer.Then, back up three space of second firmware at storer, a plurality of firmware parameters of installing second firmware are in the 4th space of the storer of machinery, and the installing backup is in a plurality of firmware parameters of second firmware in the 3rd space the 5th space at the storer of machinery.
Describe purpose of the present invention, feature and advantage in detail below in conjunction with preferred embodiment and conjunction with figs..
It below is description of the invention.Description of the invention can cooperate earlier does reference with a demonstration structure.Moreover, though the present invention illustrates that with a plurality of embodiment these descriptions can not limit the scope or application of this invention.And though these examples use the computer firmware, what should understand is that main part may replace with relevant part.Therefore, the explanation that computer firmware of the present invention can limiting structure.These elements comprise the practicality and the application of the preferred embodiment that proves the present invention and present.And, even the present invention be by the mode of giving an example and enumerate a preferred embodiment and describe, but the present invention is not limited to the embodiment that enumerated.In addition, all other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all is included in the claim scope of the present invention.Should explain scope of the present invention with the widest definition, use and comprise all these modifications and similar structures.
At first, in preferred embodiment of the present invention, earlier computer memory is divided into five parts, as shown in table 1: the initialize routine (Initial Program) that has comprised first, the firmware program (P1) of second portion, the backup firmware program (P2) of third part, tetrameric P1 firmware argument section and the 5th P2 firmware argument section partly.And range of application of the present invention can be to scanner.
Then as shown in table 1, in the initialize routine of first, be the part of not revising as fixing.When computer apparatus started, program began to carry out from here.At first can read the firmware program (P1) of second portion, calculation check value (Checksum), and with the 4th partly P1 firmware parameter comparison, whether correctly check.If correct, represent that then firmware program (P1) is correct.This moment, program was not damaged, and can continue to carry out.
As shown in table 1, check in the firmware program (P1) of second portion, if firmware program (P1) is incorrect, can determine that then firmware program (P1) is in the preceding mistake that produces when once upgrading.This moment, initialize routine must write back backup firmware program (P2) the firmware program (P1) of second part, to repair original program, made the normal operation of device energy.
After the firmware program (P1) of checking second portion is errorless, check the firmware program (P2) of third part, as shown in table 1.Initial program can calculate the proof test value of backup firmware program (P2), and compares with the 5th parameter of partly being deposited in the P2 firmware parameter, and is correct to judge whether.If correct, then the backup firmware program (P2) of third part is intact, can carry out next step inspection.If incorrect, then the backup firmware program (P2) of third part produces mistake.At this moment, initial program re-executes the backup firmware, and firmware program (P1) is backed up the firmware program (P2) that writes the 3rd part again, to allow backup firmware program (P2) maintain correct firmware program.
After definite firmware program (P1) and backup firmware program (P2) were errorless, whether as shown in table 1, it was identical with backup firmware program (P2) to compare firmware program (P1) again.Because may after firmware program (P1) upgrades successfully, when backing up firmware program (P2) as yet, promptly produce outage, cause work to continue.So when relatively firmware program (P1) is not identical with backup firmware program (P2), firmware program (P1) must be backed up in the backup firmware program (P2).But after comparing firmware program (P1) and backing up firmware program (P2), if identical, then initial program power cut-off.Further skip to firmware program (P1),, particularly can be used for the operation of scanner to carry out the operation of computer apparatus.
In the firmware program (P1) of second portion, as shown in table 1, this partly is the firmware of real actuation means, and is following when upgrading firmware, must new firmware be write this partly earlier.
In the backup firmware program (P2) of third part, as shown in table 1 part is the backup of firmware in using.If firmware program (P1) is that this partly is correctly under the situation of mistake, can be used as the backup of restoring firmware program (P1).
In partly P1 of the 4th part and the 5th, P2 firmware parameter, as shown in table 1, with being the proof test value of checking firmware program (P1) and backup firmware program (P2), to allow initial program check the correctness of firmware program (P1) and backup firmware program (P2).Then, the relation between each situation as shown in Figure 2, and Figure 3 shows that the process flow diagram of preferred embodiment of the present invention.Simultaneously, in the preferred embodiment of Fig. 3 of the present invention that four situations cooperations are shown in Figure 2, after instruction card is shown in.
With reference to figure 3, under the situation of first situation, be normal execution, do not upgrade the situation of firmware, in the case, the flow process of initial program (Initial Program) is as follows:
(1) as Fig. 3 mark 21, check whether the firmware of firmware program (P1) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of writing, should be correct.
(2) as Fig. 3 mark 22, check whether the firmware of backup firmware program (P2) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of writing, should be correct.
(3) as Fig. 3 mark 23, whether the firmware of checking firmware program (P1) and backup firmware program (P2) is identical, usually whether whether identical mode is to utilize the proof test value (Checksum) of checking two firmwares identical to two firmwares of checking, because of writing, and must be for identical.
(4) as Fig. 3 mark 24, inerrancy takes place, and skips to firmware program (P1) and carries out.
Among Fig. 3, second situation is the firmware write store that carries out new for another example, but the situation of write firmware program (P1) time failure:
(1) as Fig. 3 mark 21, check whether the firmware of firmware program (P1) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of writing failure, should be incorrect.
(2) as Fig. 3 mark 25, carry out backup firmware program (P2) is write the restoring action of firmware program (P1), if write failure, then enter the 3rd situation again after the start again, otherwise continue as Fig. 2.
(3) as Fig. 2, inerrancy takes place, and re-executes initial program (Initial Program), to enter first situation.
And for example among Fig. 3, the 3rd situation is firmware write store and the success of carrying out new, but carries out the situation of P2 when backup failure:
(1) as Fig. 3 mark 21, check whether the firmware of firmware program (P1) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of writing success, should be correct.
(2) as Fig. 3 mark 22, check whether the firmware of backup firmware program (P2) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of backup failure, should be mistake, must re-execute back-up job.
(3) as Fig. 3 mark 26, carry out firmware program (P1) is write the backup actions of backup firmware program (P2), if write failure, enter the 4th situation after the start again, otherwise continue.
(4) inerrancy takes place, and re-executes initial program (Initial Program), enters first situation such as Fig. 2.
In Fig. 3, the 4th situation is the firmware write store and the case of successful of carrying out new:
(1) as Fig. 3 mark 11, check whether the firmware of firmware program (P1) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of writing success, should be correct.
(2) as Fig. 3 mark 22, check whether the firmware of backup firmware program (P2) is correct, normally utilize the proof test value (Checksum) of checking this firmware whether correct, because of writing, should be correct.
(3) as Fig. 3 mark 23, whether the firmware of checking firmware program (P1) and backup firmware program (P2) is identical, usually whether whether identical mode is to utilize the proof test value (Checksum) of checking two firmwares identical to two firmwares of checking, because of firmware program (P1) is new firmware, backup firmware program (P2) is old firmware, event is inequality, must back up the back-up job of firmware program (P2).
(4) as Fig. 3 mark 26, carry out firmware program (P1) is write the backup actions of backup firmware program (P2), then enter the 4th situation after the start again if write failure, otherwise continue.
(5) inerrancy takes place, and re-executes initial program (Initial Program), enters first situation such as Fig. 2.
Comprehensive the above, the present invention is a computer program product, must follow a memory component to use.Simultaneously in a computer storage unit, mat is installed in one mechanically, and mat machinery is specialized the ground executive routine, the step of expression method is to operate a firmware, generally comprised following method: at first the storer with machinery is divided into five partly, to provide the space as the usefulness that stores a plurality of computer-readable program fetches.Install first space of an initial program, become a computer-readable fixed routine at the storer of machinery.From the storer of machinery, remove one first firmware program.Install second space of one second firmware again at storer.And then back up three space of second firmware in storer, a plurality of firmware parameters of installing second firmware are in the 4th space of the storer of machinery, and installing is backed up a plurality of firmware parameters in second firmware in the 3rd space in the 5th space of the storer of machinery.So the present invention can be applied to the operation of scanner.