Background technology
DTV has got into Rapid development stage, and program operator offers the user with a large amount of programme informations through cable network, and at receiving terminal, and a lot of users realize that through STB simulated television watches digital television program.。
The function of STB is comparatively simple at present, can't satisfy some new business demands of user, need come the function of spreader top box through soft upgrading.Simultaneously, China's DTV still is in the starting stage at present, and operator will constantly run into new problem in practical operation, must be through upgrading set top box software solve problem.
LOADER is the upgrading module that is used for updating set-top box software, when STB dispatches from the factory, is implanted in the STB.SI (Service Information) is the business information that is used for describing network.General LOADER upgrade mode is that operator describes the upgrading flow identification information at front end through the business information of SI, comprises software version, hardware version and upgrade frequency point etc.After STB receives the upgrading flow identification information, find to have the software version of renewal, restart LOADER, the upgrade frequency point that the locking front end is described receives Data Update software.
A lot of independently sub-operators are all arranged below the domestic provincial operator now, and they use unified upgrade server, but upgrade frequency point can't be unified because of historical reasons.If front end is taked to describe upgrading stream frequency with SI, following sub-operator then can can't realize that the software automatic on-line upgrades owing to the upgrade frequency point disunity causes some STB.
Summary of the invention
In view of this, be necessary to provide a kind of method of updating set-top box software of wide adaptability.
The present invention provides a kind of method of updating set-top box software, and it comprises the steps: that the upgrade server front end adopts two packet passages with fixed data PID Packet Identifier to broadcast upgrading stream and upgrading traffic identifier at same frequency respectively; STB detects the packet passage of the fixedly broadcast upgrading traffic identifier of each frequency; The frequency that receives the upgrading sign is used as upgrade frequency point; Download and upgrade program in the fixed data bag passage that the broadcast upgrading of this upgrade frequency point is flowed is to accomplish the renewal of set-top box software.
Compared with prior art; The present invention adopts the packet passage of fixing package identification symbol to broadcast upgrading stream and upgrading traffic identifier; Be used as upgrade frequency point as long as STB will receive the frequency of upgrading sign, find upgrade frequency point automatically, accomplish the software automatic on-line and upgrade.Can adapt to the frequency of the unified LOADER demand that but will unify to upgrade of each branch company below the operator or sub-operator; The packet multiplexing that operator only needs on multiplexer, to broadcast upgrading stream and upgrading traffic identifier when broadcasting upgrading stream gets final product, and need not revise front end SI information.
Embodiment
In the present invention; When operator need upgrade; The upgrade server front end adopts has fixed data PID Packet Identifier (PID; Package Identifier) two packet passages are broadcast upgrading stream and upgrading traffic identifier respectively, and having fixedly the packet of PID with these two, to pass through multiplexer multiplexing on same frequency.As: the packet of PID7000 is broadcast the packet of upgrading stream and PID7001 and is broadcast the upgrading sign.Wherein, what broadcast in the upgrading traffic identifier is some information of describing upgrading stream, like software version, hardware version and sequence number etc.Upgrading stream is the program that STB will upgrade.As long as PID7000 packet and PID7001 packet is multiplexing through multiplexer, need not revise front end SI information when broadcasting.
See also Fig. 1, be the flow chart of method for updating set-top box software of the present invention.The step that this method comprises is following:
Step 10: STB initialization.Behind the set-top-box opening, carry out initialization, backstage monitoring PID7001 packet data.
Step 20: the data that detect the pid data bag of broadcasting the upgrading sign.Data to the PID7001 packet of each frequency detect.
Step 30: judge whether the more set-top box software of highest version.When the data of the 7001PID packet that receives, according to the software version of describing in the PID7001 packet, with current software version relatively.If software version is higher than current software version, promptly carry out step 40, the prompting user has new software version; If software version is not higher than current software version, then return step 20, continue the PID7001 packet is detected.
Step 40: whether the user selects to upgrade.After the user receives the prompting of new software version, select whether to upgrade,, then get into step 50 if the user selects to upgrade; If the user selects not upgrade, then finish, do not carry out any updating operation.
Step 50: the frequency that will broadcast the upgrading sign is preserved as upgrade frequency point.When the user selected to upgrade, STB was preserved as upgrade frequency point with regard to current frequency of broadcasting the upgrading sign, and carry out step 60, started upgrading module LOADER.
Step 70: locking upgrade frequency point.LOADER starts back locking upgrade frequency point, carry out step 80 then.
Step 80:LOADER receives data and writes from the PID passage of broadcasting upgrading stream.After the LOADER locking upgrade frequency point, the 7000PID packet passage from this frequency receives the upgrading flow data again, to carry out software upgrading.
Step 90: updating set-top box software is accomplished, and restarts.
Compared with prior art, the present invention adopts fixing PID to broadcast upgrading stream and upgrading traffic identifier, is used as upgrade frequency point as long as STB will receive the frequency of upgrading sign, finds upgrade frequency point automatically, accomplishes the software automatic on-line and upgrades.Can adapt to the frequency of the unified LOADER demand that but will unify to upgrade of each branch company below the operator or sub-operator; Operator only need will broadcast the PID of upgrading stream and upgrading traffic identifier on multiplexer when broadcasting upgrading stream packet multiplexing gets final product, and need not revise front end SI information.
In addition, those skilled in the art also can do other variation in spirit of the present invention.These all should be included within the present invention's scope required for protection according to the variation that the present invention's spirit is done.