A kind of set top box upgrading method
Technical field
The present invention relates to digital TV field, especially a kind of set top box upgrading method.
Background technology
In digital TV set-top box, because software is very complicated, even also may there be serious bug in the set-top box that has been deployed in the user family, software may be revised because will increase or adjust service needed at any time by operator simultaneously, and these all need set-top box software is upgraded.Updating set-top box software generally has two kinds of methods, and a kind of is to adopt JTAG or RS232 interface that the separate unit set-top box is manually upgraded, and another kind of method is carried out unified aerial upgrade to (particularly being deployed in the user family) set-top box by the gross.First method mainly adopts when set-top box is keeped in repair, and second method is the conventional main method that set-top box in enormous quantities is carried out software upgrading.But which kind of method no matter; software configuration information, tuner parameters and empty raising of indices knowledge etc. are owing to need updating maintenance; therefore need place them in the non-write-protect zone of set-top box Flash memory; these data might be destroyed in daily use, is that the damage that software configuration information, tuner parameters or the empty raising of indices are known all may cause empty automatically liter of set-top box software to be failed.
Summary of the invention
The purpose of this invention is to provide a kind of set top box upgrading method, this method may further comprise the steps:
The first step is at first moved the loader utility that is stored among the Flash when set-top box starts, if program running is then ended in Loader operation failure; If loader utility is moved successfully, will verify current software configuration information among the Flash in the final step of loader utility operation;
In second step, if software configuration information is incorrect, then program enters into the upgrading flow process; If correct, then check the upgrading configuration information of storing in the E2PROM, if upgrading configuration information is incorrect, then the upgrading configuration information that will be stored in the Flash software configuration information copies E2PROM to;
The 3rd step, check that the sky in the E2PROM upgrading configuration information rises identifier, carry out empty the liter if be designated, then program enters into the upgrading flow process, otherwise whether the verification Application program is correct; If application program is incorrect, then program enters into the upgrading flow process, otherwise executive utility.
In the upgrading flow process, at first upgrade frequency point is set, if the locking failure then is provided with upgrade frequency point according to the tuner parameters in the Flash software configuration information according to the tuner parameters in the E2PROM upgrading configuration information; If the locking failure then is provided with upgrade frequency point according to the built-in default tuner parameters of loader utility; If the locking failure then requires the user manually to import tuner parameters upgrade frequency point is set.As long as above-mentioned any one tuner parameters can locked frequency point, then seek upgrading stream at this frequency, and software upgrade.If software upgrading failure then restart set-top box automatically is if upgrade successfully then current configuration information is write Flash and E2PROM.
Wherein above-mentioned software configuration information comprises upgrading configuration information, current application program version, tuner parameters, the knowledge of the empty raising of indices and operator's informaiton at least.
Owing to adopt and in Flash and E2PROM, preserve software configuration information simultaneously, even the configuration information corrupted data among the Flash does not influence the aerial upgrade success yet; If the upgrading configuration information corrupted data among the E2PROM is in set-top box when start next time restore data from Flash automatically.
Description of drawings
The present invention will illustrate by example and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is a upgrading flow chart of the present invention.
Embodiment
Disclosed all features in this specification, or the step in disclosed all methods or the process except mutually exclusive feature and/or step, all can make up by any way.
Disclosed arbitrary feature in this specification (comprising any accessory claim, summary and accompanying drawing) is unless special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, unless special narration, each feature is an example in a series of equivalences or the similar characteristics.
Upgrading flow chart as shown in Figure 1 at first moves the loader utility that is stored among the Flash when set-top box starts, if program running (in order to point out, the LED light of can glimmering) is then ended in Loader operation failure; If loader utility is moved successfully, will verify current software configuration information among the Flash in the final step of Loader operation, preserved upgrading configuration information, current application program version and operator's informaiton etc. in the software configuration information.If software configuration information is incorrect, then program enters into the upgrading flow process; If correct, then check the upgrading configuration information such as tuner parameters of storing in the E2PROM, if upgrading configuration information is incorrect, then the upgrading configuration information that will be stored in the Flash software configuration information copies E2PROM to.Check that then the sky in the E2PROM upgrading configuration information rises identifier, carry out empty the liter if be designated, then program enters into the upgrading flow process, otherwise whether the verification Application program is correct.If application program is incorrect, then program enters into the upgrading flow process, otherwise executive utility.
In the upgrading flow process, at first upgrade frequency point is set, if the locking failure then is provided with upgrade frequency point according to the tuner parameters in the Flash software configuration information according to the tuner parameters in the E2PROM upgrading configuration information; If the locking failure then is provided with upgrade frequency point according to the built-in default tuner parameters of loader utility; If the locking failure then requires the user manually to import tuner parameters upgrade frequency point is set.As long as above-mentioned any one tuner parameters can locked frequency point, then seek upgrading stream at this frequency, and software upgrade.If software upgrading failure then restart set-top box automatically is if upgrade successfully then current configuration information is write Flash and E2PROM.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination that discloses in this manual, and the arbitrary new method that discloses or step or any new combination of process.