A kind of receiving terminal for digital television and upgrade control method thereof and device
Technical field
The invention belongs to the digital television techniques field, relate in particular to a kind of receiving terminal for digital television and upgrade control method thereof and device.
Background technology
Along with the continuous development of digital television techniques, the user is also more and more higher to the requirement of digital television function.
With the set-top box is example, and set-top box has entered into huge numbers of families, but because the function of set-top box software is complicated gradually, the test before therefore producing can't guarantee set-top box software fully, and in use changes of function is no problem.And in some cases, because the defective of set-top box software design tends to cause large batch of set-top box to crash, this has brought very big inconvenience for undoubtedly user's use and operator's after-sales service.
The method of in the prior art set-top box being upgraded and controlling mainly comprises following several:
(1), the auto-update function of set-top box generally all is after driving that initialization is finished and applying detection and response function open, and could respond the upgrading triggering of front-end server, startup auto-update machine function.
(2), behind the set-top-box opening, at first enter the Loader module, whether by flow operations such as frequency lockings, checking has the new version software upgrading,, then at first upgrade if having.
The present inventor finds that in research process there is following shortcoming in the upgrade control method of existing set-top box:
The first, along with the application function of set-top box gradually complexity get up, for example in start-up phase application function like the commercial paper has appearred all also, function of initializing such as start loading data, in case these application functions go wrong, the user can't repair by present auto-update function, only report for repairment and return factory or manually upgraded to the doorstep by the professional person, reduced user experience, maintenance cost is also very high.
The second, set-top-box opening at first advances the Loader detection, and this has increased the time of starting shooting undoubtedly, has influenced the performance index of set-top box, has reduced user's experience.
How under the prerequisite that does not influence starting up speed, can realize upgrading automatically, be user-friendly to, make one of direction of digital television techniques area research by the switching on and shutting down of set-top box to set-top box.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of receiving terminal for digital television and upgrade control method and device, is intended to not influence under the prerequisite of starting up speed, can realize the upgrading to set-top box efficiently, simply, is user-friendly to.
The embodiment of the invention is achieved in that a kind of upgrade control method of receiving terminal for digital television, said method comprising the steps of:
ROMPaq is set judges identification number and function application judgement identification number, and make described ROMPaq judgement identification number and the application of described function judge that the initial value of identification number equates;
After entering ROMPaq, described ROMPaq is judged that identification number increases by a fixed basic number;
Entering ROMPaq, and after the normal operation of the function of described receiving terminal for digital television, described function is used the judgement identification number increases same fixed basic number;
Before the operation of ROMPaq next time, judge that described ROMPaq judges that identification number judges with described function application whether identification number equates, as if unequal, then controls the upgrading that described receiving terminal for digital television carries out program.
Preferably, ROMPaq is set and judges that described method is further comprising the steps of after the step of identification number and function application judgement identification number:
Described ROMPaq is judged that identification number and described function application judgement identification number are stored to the data field of described receiving terminal for digital television.
Preferably, judge that identification number and described function application judgement identification number equate, then carry out initialization process with the driving of described receiving terminal for digital television, and load the master data and the application of described receiving terminal for digital television if judge described ROMPaq.
Preferably, in that to judge that described ROMPaq judges that identification number and described function are used the judgement identification number unequal, and after controlling the upgrading that described receiving terminal for digital television carries out program, described method is further comprising the steps of:
Reset described ROMPaq and judge identification number and described function application judgement identification number, both numerical value are equated.
Preferably, described receiving terminal for digital television is a set-top box.
An also purpose of the embodiment of the invention is to provide a kind of upgrading control device of receiving terminal for digital television, and described device comprises:
Module is set, is used to be provided with ROMPaq and judges identification number and function application judgement identification number, wherein, described ROMPaq judgement identification number and described function are used the initial value of judging identification number and are equated;
The Numerical Control module is used for after entering ROMPaq, and described ROMPaq is judged that identification number increases by a fixed basic number; And entering ROMPaq, and after the normal operation of the function of described receiving terminal for digital television, described function is used the judgement identification number increases same fixed basic number;
Judge module was used for before the operation of ROMPaq next time, judged that described ROMPaq judges that identification number judges with described function application whether identification number equates;
The upgrading control module is used for controlling the upgrading that described receiving terminal for digital television carries out program when described judge module judges that described ROMPaq judges that identification number and the application of described function judge that identification number is unequal.
Preferably, described device also comprises:
Memory module is used for described ROMPaq is judged that identification number and described function application judgement identification number are stored to the data field of described receiving terminal for digital television.
Preferably, described device also comprises:
The application controls module, be used for when described judge module judges that described ROMPaq judges that identification number and the application of described function judge that identification number equates, initialization is carried out in the driving of described receiving terminal for digital television, and the master data and the application that load described receiving terminal for digital television.
Preferably, the described module that is provided with, it is unequal also to be used for judging that at described judge module described ROMPaq judges that identification number and described function are used the judgement identification number, and after described upgrading control module is controlled the upgrading that described receiving terminal for digital television carries out program, reset described ROMPaq and judge identification number and described function application judgement identification number, both numerical value are equated.
Another purpose of the embodiment of the invention is to provide a kind of receiving terminal for digital television, and described terminal comprises the upgrading control device of the receiving terminal for digital television that the embodiment of the invention provides.
ROMPaq judgement identification number and function application judgement identification number that the embodiment of the invention equates by initial value is set, when entering upgrading, ROMPaq judges that identification number increases by a fixed basic number, after the normal operation of function, function is used the judgement identification number increase same fixed basic number, and the time judge that in upgrading ROMPaq judges that identification number and function application judge whether identification number is still equal, if it is unequal, initiatively enter Loader upgrading measuring ability, carry out the upgrading of program, do not influence under the prerequisite of starting up speed, can realize upgrading by the switching on and shutting down of set-top box automatically to set-top box, greatly convenient for users to use, be beneficial to the popularization of receiving terminal for digital television such as set-top box.
Description of drawings
Fig. 1 is the flow chart of the upgrade control method of the receiving terminal for digital television that provides of the embodiment of the invention;
Fig. 2 is the structure chart of the upgrading control device of the receiving terminal for digital television that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 shows the flow process of the upgrade control method of the receiving terminal for digital television that the embodiment of the invention provides.
In step S101, ROMPaq is set judges identification number and function application judgement identification number, and make described ROMPaq judgement identification number and the application of described function judge that the initial value of identification number equates.
For example, ROMPaq is set judges that it is two start accumulating values that identification number and function are used the judgement identification number, respectively corresponding Loader start number and App start number, and make two numerical value be 10, in specific implementation process, also can not set initial value equates, as long as setting both differences is fixed value, judge whether that difference is a fixed value, if, showing does not need upgrading, enumerates no longer one by one herein.
In specific implementation process, described ROMPaq is judged that identification number and described function application judgement identification number are stored to the data field of described receiving terminal for digital television.Wherein, the data field of receiving terminal for digital television also is used for storing the data that outage is preserved.
In step S102, after the receiving terminal for digital television start, enter ROMPaq.
In step S103, the ROMPaq of judging current storage is judged that identification number and function are used and is judged that whether identification number equates, if equal, then carry out step S104, otherwise carries out step S107.
In step S104, described ROMPaq is judged that identification number increases by a fixed basic number.
For example, it is 1 that fixed basic number is set, use the judgement identification number and be 10 if the fruit ROMPaq is judged identification number and function, when then entering upgrade function, ROMPaq judges that identification number adds 1, become 11, after every function of receiving terminal for digital television was normally moved a period of time, function was used and is judged that identification number adds 1, also becomes 11, other fixed basic number can certainly be set, not enumerate one by one herein.
In step S105, initialization process is carried out in the driving of described receiving terminal for digital television, and load the master data and the application of described receiving terminal for digital television.
In step S106, after every function of receiving terminal for digital television was normally moved a period of time, described function is used the judgement identification number increased same fixed basic number.
In step S107, control the upgrading that described receiving terminal for digital television carries out program, and reset described ROMPaq and judge identification number and described function application judgement identification number, both numerical value are equated.
Preferably, described receiving terminal for digital television is a set-top box, can certainly be other receiving terminal, does not enumerate one by one herein.
Fig. 2 shows the structure of the upgrading control device of the receiving terminal for digital television that the embodiment of the invention provides.
Wherein, module 21 is set ROMPaq judgement identification number and function application judgement identification number are set, wherein, described ROMPaq judges that the initial value of identification number and described function application judgement identification number equates.
Memory module 22 judges that with described ROMPaq identification number and described function application judgement identification number are stored to the data field of described receiving terminal for digital television.
After entering ROMPaq, Numerical Control module 23 judges that with described ROMPaq identification number increases by a fixed basic number.
Entering ROMPaq, and after the normal operation of the function of described receiving terminal for digital television, Numerical Control module 23 is used described function and is judged that identification number increases same fixed basic number.
In described ROMPaq running, judge module 24 judges that described ROMPaq judges that identification number is used with described function and judge whether identification number equates.
If it is unequal that described judge module 24 judges that described ROMPaq judges that identification number and described function are used the judgement identification number, the described receiving terminal for digital television of upgrading control module 25 controls carries out the upgrading of program.
If described judge module 24 is judged described ROMPaq and is judged that identification number and described function application judgement identification number equate, application controls module 26 is carried out initialization with the driving of described receiving terminal for digital television, and the master data and the application that load described receiving terminal for digital television.
In specific implementation process, it is unequal to judge that at described judge module 24 described ROMPaq judges that identification number and described function are used the judgement identification number, and after the described receiving terminal for digital television of described upgrading control module 25 controls carries out the upgrading of program, the described module 21 that is provided with is reset described ROMPaq judgement identification number and described function application judgement identification number, and both numerical value are equated.
The embodiment of the invention also provides a kind of receiving terminal for digital television, and described terminal comprises the upgrading control device of the receiving terminal for digital television that the embodiment of the invention provides, and in view of this installs in above existing detailed description, no longer describes in detail herein.
ROMPaq judgement identification number and function application judgement identification number that the embodiment of the invention equates by initial value is set, when entering upgrading, ROMPaq judges that identification number increases by a fixed basic number, after the normal operation of function, function is used the judgement identification number increase same fixed basic number, and the time judge that in upgrading ROMPaq judges that identification number and function application judge whether identification number is still equal, if it is unequal, initiatively enter Loader upgrading measuring ability, carry out the upgrading of program, do not influence under the prerequisite of starting up speed, can realize upgrading by the switching on and shutting down of set-top box automatically to set-top box, greatly convenient for users to use, be beneficial to the popularization of receiving terminal for digital television such as set-top box.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.