CN102255756A - Method and system for upgrading set-top box - Google Patents
Method and system for upgrading set-top box Download PDFInfo
- Publication number
- CN102255756A CN102255756A CN2011102055289A CN201110205528A CN102255756A CN 102255756 A CN102255756 A CN 102255756A CN 2011102055289 A CN2011102055289 A CN 2011102055289A CN 201110205528 A CN201110205528 A CN 201110205528A CN 102255756 A CN102255756 A CN 102255756A
- Authority
- CN
- China
- Prior art keywords
- version
- upgrading
- file
- top box
- channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and system for upgrading a set-top box. The method comprises the following steps of: acquiring a version mirror image file transmitting channel address of a corresponding version file, wherein a version mirror image file transmitting channel is used for publishing a version file subjected to code streaming in a streaming media transmitting manner; adding the version mirror image file transmitting channel according to the version mirror image file transmitting channel address and receiving the version file from the version mirror image file transmitting channel; and upgrading according to the version file. According to the method and system for upgrading the set-top box, a large quantity of set-top boxes can be upgraded by only adding the version mirror image file transmitting channel and receiving the version file which is subjected to code streaming and published on the channel in a streaming media transmitting manner, without downloading the version file from an upgrade server, and the pressure of the upgrade server is lowered; and moreover, capacity expansion of the server is not needed when the number of set-top boxes increases, so that the cost is lowered.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of set top box upgrading method and system thereof of on network, realizing.
Background technology
Along with technology is more and more ripe, IPTV, (Internet Protocol Television, internet protocol TV) obtained using widely, customer group quantity is also in continuous increase, the capacity of set-top-box system is also in continuous expansion, when redaction occurs, to face on a large scale a large amount of set-top box need upgrade, and mode of unicast is all adopted in the software release upgrade of the set-top box of traditional IPTV system receiving digital television, promptly by HTML (Hypertext Markup Language) (http) connected mode from version server download and upgrade software and finish upgrading, this will cause very big pressure to upgrade server when the needs mass upgrade, and follow-up capacity extensions, upgrade server also will constantly expand, thereby makes cost increase, and disposing manpower increases.
Summary of the invention
The main technical problem to be solved in the present invention is, a kind of set top box upgrading method and system thereof are provided, be fit on a large scale in various set-top box carry out mass upgrade, and little to upgrade server pressure, expand easily.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows:
A kind of set top box upgrading method comprises:
Obtain the release image file transfer channel address of corresponding version file, described release image file transfer channel is with the version file of Streaming Media transmission means issue through code streamization;
According to described release image file transfer channel address, add release image file transfer channel, and receive version file at described release image file transfer channel;
Upgrade according to described version file.
Further, the step of obtaining the release image file transfer channel address of corresponding version file comprises:
Reception comprises the channel list of the channel of upgrading, and described upgrading channel is with the version information file of Streaming Media transmission means issue through code streamization;
Resolve described channel list, obtain the address of described upgrading channel;
Judge whether described upgrading channel address is effective, if effectively, then add described upgrading channel, and receive described version information file at described upgrading channel, described version information file comprises described release image file transfer channel address;
Whether needs are upgraded according to described version information file machines top box, if need upgrading, then obtain the release image file transfer channel address in the described version information file.
Further, described version information file comprises the ardware model number information of multiple set-top box, whether the current version of the set-top box of corresponding ardware model number number, and version number's matched rule, then detect described set-top box according to described version information file and comprise with the step of needs upgrading:
Detect the content that whether has the ardware model number with described set-top box to be complementary in the described version information file,, then obtain in the described version information file content that the ardware model number with described set-top box is complementary if having;
Analyze the content of the described version information file obtained, obtain the current version number of described set-top box, and version number's matched rule;
According to described current version number, whether the version number of detecting described set-top box itself meets described version number matched rule, if meet, determines that then described set-top box needs upgrading, otherwise confirms that described set-top box does not need upgrading.
Further, the step of upgrading according to described version file comprises:
Automatically finish current television service based on Internet protocol, force set-top box to enter upgrade mode;
Whether the packet of the described version file that verification received is complete, and whether described version file is legal;
After verification is passed through, upgrade according to described version file.
Further, whether complete step comprises the packet that verification received:
Read the cyclic redundancy check value of described version file;
Packet according to the version file that has received calculates its cyclic redundancy check value;
Relatively whether the cyclic redundancy check value of the version file that is read is identical with the cyclic redundancy check that calculates, if identical, determine that then the packet that is received is complete, otherwise determines that the packet that is received is imperfect.
Further, described version file comprises the ardware model number of set-top box, and whether legal step comprises then to detect described version file:
Judge whether the ardware model number in the described version file is identical with the ardware model number of described set-top box,, determine that then described version file is legal, otherwise confirm that described version file is illegal if identical.
Further, also comprise:
When the described upgrading channel address that obtains when parsing is invalid, judge then whether the upgrade server address style of described set-top box correspondence is channel type, if then adopt multicasting upgrading mode to upgrade, otherwise adopt the http upgrade mode to upgrade.
A kind of set top box upgrading system comprises release image file transfer channel address acquisition module, the version file acquisition module, and the upgrading module, wherein,
Described release image file transfer channel address acquisition module, the release image file transfer address that is used to obtain corresponding version file, described release image file transfer channel is with the version file of Streaming Media transmission means issue through code streamization;
Described version file acquisition module, link to each other with described release image file transfer channel address acquisition module, be used for the release image file transfer channel address that obtained according to described release image file transfer channel address acquisition module, add release image file transfer channel, and receive described version file at described release image file transfer channel;
The upgrading module links to each other with described version file acquisition module, is used for upgrading according to the version file that described version file acquisition module receives.
Further, release image file transfer channel address acquisition module comprises the channel list sub module stored, and version information file is obtained submodule and upgrading detection sub-module, wherein,
Described channel list sub module stored is used for the channel list that comprises the channel of upgrading that the storage service system issues, and described upgrading channel is with the version information file of Streaming Media transmission means issue through code streamization;
Described version information file is obtained submodule, link to each other with described channel list sub module stored, be used to resolve described channel list, obtain described upgrading channel address, and judge whether this upgrading channel address is effective, if effectively, then add the upgrading channel according to described upgrading channel address, and receiving described version information file at described upgrading channel, described version information file comprises described release image file transfer channel address;
Described upgrading detection sub-module, link to each other with the version file acquisition module with described version information file acquisition module, be used for obtaining version information file that submodule obtains and detect the whether needs upgrading of described set-top box according to described version information file, if described set-top box needs upgrading, then obtain the release image file transfer channel address in the described version information file, and the release image file transfer channel address in the described version information file is sent to described version file acquisition module.
Further, described channel list comprises the address of the channel of upgrading, and described version information file is obtained submodule and comprised upgrading channel address acquiring unit, upgrading channel address detecting unit, and the version information file acquiring unit, wherein,
Described upgrading channel address acquiring unit links to each other with described channel list sub module stored, is used to resolve the channel list that described channel list sub module stored is stored, and obtains described upgrading channel address;
Described upgrading channel address detecting unit links to each other with described upgrading channel address acquiring unit, and whether being used to detect described upgrading channel address acquiring unit, to resolve the address of the upgrading channel that obtains effective;
Described version information file acquiring unit, link to each other with described upgrading channel address detecting unit, be used for detecting the upgrading channel address that is obtained when effective when described upgrading channel address detecting unit, add the upgrading channel according to described upgrading channel address, and receiving described version information file at described upgrading channel, described version information file comprises release image file transfer channel address.
Further, described version information file comprises the ardware model number information of multiple set-top box, the current version of the set-top box of corresponding ardware model number number, and version number's matched rule, described upgrading detection sub-module comprises the version information file detecting unit, version number's detecting unit and release image file transfer channel address acquiring unit, wherein
Described version information file detecting unit, obtaining submodule with described version information file links to each other, be used for detecting described version information file and obtain the content whether described version information file that submodule obtains has the ardware model number with described set-top box to be complementary, if have, then obtain in the described version information file content that the ardware model number with described set-top box is complementary;
Described version number detecting unit, link to each other with described version information file detecting unit, be used to analyze the described version information file detecting unit content that is complementary with ardware model number described set-top box that obtained, obtain the current version number of described set-top box, and version number's matched rule, and according to described current version number, whether the version number of detecting described set-top box self meets described version number matched rule, as meet, determine that then described set-top box needs upgrading, otherwise confirm that described set-top box does not need upgrading;
Described release image file transfer channel address acquiring unit, link to each other with the version file acquisition module with described version number detecting unit, be used for when described version number detecting unit determines that described set-top box need be upgraded, obtain the release image file transfer channel address in the described version information file, and described release image file transfer channel address is sent to described version file acquisition module.
Further, described upgrading module comprises the mode switch submodule, the syndrome module, and the edition upgrading submodule, wherein,
The mode switch submodule, link to each other with described upgrading detection sub-module, be used for detecting described set-top box need upgrade the time when described upgrading detection sub-module, finish current television service based on Internet protocol, and force set-top box to enter upgrade mode, and be used for detecting this set-top box when not needing to upgrade when the upgrading detection module, withdraw from described upgrading channel;
The syndrome module links to each other with described version file acquisition module with described mode switch submodule, when being used for described mode switch submodule and forcing set-top box to enter upgrade mode, whether the version file that the described version file acquisition module of verification is received is complete, and whether described version file is legal;
The edition upgrading submodule links to each other with the syndrome module, is used for that to go out version file complete and when legal when the verification of syndrome module, carries out edition upgrading according to described version file.
Further, described version file comprises the ardware model number of set-top box, and described syndrome module comprises data check unit and version number's comparing unit, wherein,
Described data check unit, link to each other with described version file acquisition module, be used to read the cyclic redundancy check value of version file, calculate its corresponding cyclic redundancy check value according to the version file that has received again, and whether the cyclic redundancy check value of the version file that is relatively read is identical with the cyclic redundancy check (CRC) that calculates, if identical, then definite data integrity that is received, otherwise determine that the data that received are imperfect;
Described version number comparing unit, link to each other with described version file acquisition module with described data check unit, be used for going out described version file when complete when the unit verification of described data check, judge whether the ardware model number in the version file that described version file acquisition module obtains is identical with the ardware model number of described set-top box, if the ardware model number in the described version file is identical with the ardware model number of described set-top box, determine that then described version file is legal; Otherwise confirm that described version file is illegal.
Further, described upgrading module also comprises upgrade server address style judgement submodule, obtaining submodule with described version information file links to each other, be used for obtaining submodule and judge described upgrading channel address when invalid when described version information file, whether the upgrade server address style of judging described set-top box correspondence is channel type, if then adopt multicasting upgrading mode to upgrade, otherwise adopt the HTML (Hypertext Markup Language) upgrade mode to upgrade.
The invention has the beneficial effects as follows: set top box upgrading method of the present invention passes through in release image file transfer channel with the version file of Streaming Media transmission means through code streamization, make when obtaining version file, the address that only need obtain this release image file transfer channel earlier, and receive through the version file of code streamization in this release image file transfer channel promptly scalable according to this address, be that method of the present invention is with the version file code streamization, carry out multicast upgrading by the mode of using channel again, soon the version file of code streamization plays back as a channel program of IPTV system, thereby the set-top box that makes all be connected into this IPTV system all can receive this version file, and upgrade according to this version file, avoided a large amount of set-top box to upgrade to upgrade server download version file, and then reduced pressure to upgrade server, and when set-top box quantity increases, do not need the dilatation server yet, reduce cost.
Description of drawings
Fig. 1 is the structural representation of an embodiment of set top box upgrading of the present invention system;
Fig. 2 is the structural representation of an embodiment of the release image file transfer channel address acquisition module of set top box upgrading of the present invention system;
Fig. 3 is the structural representation of an embodiment of the version information file acquisition module of set top box upgrading of the present invention system;
Fig. 4 is the structural representation of an embodiment of the upgrading detection sub-module of set top box upgrading of the present invention system;
Fig. 5 is the structural representation of an embodiment of the upgrading module of set top box upgrading of the present invention system;
Fig. 6 is the flow chart of an embodiment of set top box upgrading method of the present invention;
Fig. 7 is the flow chart of an embodiment of the step S601 of set top box upgrading method of the present invention;
Fig. 8 is the flow chart of an embodiment of the step S709 of set top box upgrading method of the present invention;
Fig. 9 is the flow chart of an embodiment of the step S607 of set top box upgrading method of the present invention;
Figure 10 is the flow chart of an embodiment of the step S903 of set top box upgrading method of the present invention;
Figure 11 is the workflow diagram of an embodiment of set top box upgrading of the present invention system.
Embodiment
In conjunction with the accompanying drawings the present invention is described in further detail below by embodiment.
At first the noun that relates in the present embodiment is made an explanation: the multicast upgrading mode, be to specify a special multicast group, set-top box need add this multicast group and upgrade, these data and IPTV system are without any relation, and the set-top box that only is in the same network segment could add this multicast group and receive multicast packet; The channel upgrade mode is meant uses the mode of channel to carry out multicast upgrading, and the multicast packet has here passed through Streaming Media, is played out as a channel program of IPTV system, and all are connected into the set-top box of this IPTV system and can receive.This dual mode all is to adopt the igmp multicast protocol.
Http upgrading mode then is to place version file on a server, set-top box is come file in download by visiting this server, and this mode is very big for the pressure of server, when set-top box quantity increases, certainly will to increase the quantity of server, take the http host-host protocol.
Please refer to Fig. 1, be the structural representation of an embodiment of the set top box upgrading system of present embodiment.The set top box upgrading system of present embodiment comprises release image file transfer channel address acquisition module 101, version file acquisition module 102, upgrading module 103, wherein, release image file transfer channel address acquisition module 101 is used to obtain the release image file transfer address of corresponding version file, and this release image file transfer channel is with the version file of Streaming Media transmission means issue through code streamization; Version file acquisition module 102 links to each other with release image file transfer channel address acquisition module 101, be used for the release image file transfer channel address that obtained according to release image file transfer channel address acquisition module 101, add release image file transfer channel, and receive version file at this release image file transfer channel; Upgrading module 103 links to each other with version file acquisition module 102, is used for upgrading according to the version file that version file acquisition module 102 receives.
Please refer to Fig. 2, be the structural representation of an embodiment of the release image file transfer channel address acquisition module of the set top box upgrading system of present embodiment.The release image file transfer channel address acquisition module of present embodiment comprises channel list sub module stored 201, version information file is obtained submodule 202 and upgrading detection sub-module 203, wherein, channel list sub module stored 201 is used to store the channel list that edge EPG issues, include the upgrading channel in this channel list, and this upgrading channel is with the version information file of Streaming Media transmission means issue through code streamization; Version information file is obtained submodule 202 and is linked to each other with channel list sub module stored 201, be used for resolving the channel list of these channel list sub module stored 201 storages, obtain the channel address of upgrading, and according to this upgrading channel address adding upgrading channel, receive version information file at this upgrading channel, this version information file comprises release image file transfer channel address; Upgrading detection sub-module 203 is obtained submodule 202, version file acquisition module and upgrading module with version information file and is linked to each other, be used for obtaining the version information file that submodule 202 is obtained according to this version information file, detect this set-top box and whether need upgrading, need upgrade and then obtain release image file transfer channel address in this version information file if detect this set-top box, and send it to the version file acquisition module; Otherwise prompting upgrading module withdraws from the upgrading channel.
Operation system in the present embodiment specifies certain special channel to be the upgrading channel in channel list, when issuing channel list, has wherein comprised the relevant information of upgrading channel.The channel of the multicast version information file that the upgrading channel in the present embodiment refers to, it comprises a version information channel and a plurality of release image file transfer channel, (being the channel at version file place).Wherein the version information channel includes version information file, includes release image file transfer channel address in this version information file.This version information file is version description document, has also comprised multiple set-top box corresponding hardware model, and corresponding to the set-top box of each ardware model number current version number and version number's matched rule; Version file has comprised ardware model number information (ardware model number information comprises ardware model number) and corresponding version information etc.
Please refer to Fig. 3, obtain the structural representation of an embodiment of submodule for the version information file of the set top box upgrading system of present embodiment.Version information file in the present embodiment is obtained submodule and is comprised upgrading channel address acquiring unit 301, upgrading channel address detecting unit 302, version information file acquiring unit 303, wherein, upgrading channel address acquiring unit 301 links to each other with the channel list sub module stored, be used to resolve the channel list that this channel list sub module stored is received, obtain the channel address of upgrading; Upgrading channel address detecting unit 302 links to each other with this upgrading channel address acquiring unit 301, and whether be used to detect the upgrading channel address that these upgrading channel address acquiring unit 301 parsings obtain effective; Version information file acquiring unit 303, link to each other with upgrading channel address detecting unit 302, be used for detecting the upgrading channel address that is obtained when effective when upgrading channel address detecting unit 302, add this upgrading channel, and receiving the content of this version information file at this upgrading channel, this version information file has comprised release image file transfer channel address.
Effective channel address is igmp in the present embodiment: //xx.xx.xx.xx: the live end slogan, wherein the value of xx can not surpass 255, and promptly this effective address is an effective ip address, and an effective port numbers must be followed in its back.Effective port with in effective channel address in the specific embodiment of present embodiment is 8569.
Please refer to Fig. 4, be the structural representation of an embodiment of the upgrading detection sub-module of present embodiment.The upgrading detection sub-module of present embodiment comprises version information file detecting unit 401, version number's detecting unit 402, release image file transfer channel address acquiring unit 403, wherein, version information file detecting unit 401 obtains submodule with version information file and links to each other, be used for judging that this version information file obtains the version information file that submodule receives, the content that whether has the ardware model number with this set-top box to be complementary, if the content that is complementary is arranged, then obtain the content that is complementary with this top-set hardware model in this version information file, otherwise ignore other any content; Version number's detecting unit 402 links to each other with version information file detecting unit 401, be used for after this version information file detecting unit 401 gets access to the content that the ardware model number with this set-top box is complementary, the content of being obtained is analyzed, obtain the current version number of this set-top box, and version number's matched rule, and according to this current version number, whether the version number of detecting this set-top box itself meets version number's matched rule, if meet, determine that then this set-top box needs upgrading, otherwise confirm that this set-top box does not need upgrading; Release image file transfer channel address acquiring unit 403 links to each other with the version file acquisition module with version number detecting unit 402, be used for when this version number's detecting unit 402 determines that this set-top box need be upgraded, obtain the release image file transfer channel address in this version information file, and send it to the version file acquisition module.
Please refer to Fig. 5, be the structural representation of an embodiment of the upgrading module of present embodiment.The upgrading module of present embodiment comprises mode switch submodule 501, syndrome module 502, edition upgrading submodule 503 and upgrade server address style are judged submodule 504, wherein, mode switch submodule 501 links to each other with the upgrading detection sub-module, be used for detecting this set-top box need upgrade the time when the upgrading detection sub-module, finish current IPTV business, and force set-top box to enter upgrade mode, and be used for detecting this set-top box when not needing to upgrade when the upgrading detection sub-module, withdraw from this upgrading channel; Syndrome module 502 links to each other with version file acquisition module 502 with mode switch submodule 501, be used for when mode switch submodule 501 forces set-top box to enter upgrade mode, whether the data of the version file that verification version file acquisition module is received are complete, and whether this version file is legal; Edition upgrading submodule 503 links to each other with syndrome module 502, is used for going out complete and this version file of the packet of the version file that the version file acquisition module received when legal when 503 verifications of syndrome module, carries out edition upgrading according to this version file; The upgrade server address style is judged submodule 504, the upgrading channel address detecting unit that obtains submodule with version information file links to each other, be used for detecting the upgrading channel address when invalid when upgrading channel address detecting unit, whether the upgrade server address style of judging this set-top box correspondence is channel type, if, then adopt multicasting upgrading mode to upgrade, otherwise adopt the http upgrade mode to upgrade.
The syndrome module of present embodiment comprises data check unit and version number's comparing unit, wherein, the data check unit, link to each other with the version file acquisition module, be used to read the cyclic redundancy check value of version file, packet according to the version file that has received calculates its cyclic redundancy check value again, and whether the cyclic redundancy check value of the version file that is relatively read is identical with the cyclic redundancy check (CRC) that calculates, if it is identical, then definite data integrity that is received, otherwise determine that the data that received are imperfect; Version number's comparing unit links to each other with the version file acquisition module with the data check unit, be used for going out the version file that is received when complete when the verification of data check unit, judge whether the ardware model number in this version file is identical with the ardware model number of set-top box, if the ardware model number in the version file is identical with the ardware model number of set-top box, determine that then this version file is legal; Otherwise confirm that this version file is illegal.
The set top box upgrading system of present embodiment, the channel list that issues by channel list sub module stored storage service system, specified a special channel to be the upgrading channel in this channel list, and include version information file in this upgrading channel, obtain submodule by version information file again and in this upgrading channel, obtain version information file, and whether needs are upgraded to detect this set-top box by the upgrading detection module according to this version information file, when needs are upgraded, then obtain version file according to this version information file by the upgrading module, and upgrade accordingly according to this version file, be that present embodiment is by carry out code streamization with version file, mode by channel plays back, with the mode of displaying video is the same, just as the program of certain channel can be watched as long as add this channel behind the existing network multicast, set-top box can be upgraded as long as add this channel, thereby when having reduced mass upgrade, to the pressure of server, and when increasing, set-top box quantity do not need the dilatation server yet.
Based on above-mentioned set top box upgrading system, present embodiment also provides a kind of set top box upgrading method, is described in detail below in conjunction with the set top box upgrading method of specific embodiment to present embodiment.
Please refer to Fig. 6 and Figure 11, be respectively the flow chart of an embodiment of a kind of set top box upgrading method of present embodiment, and the workflow diagram of an embodiment of the set top box upgrading system of present embodiment.The set top box upgrading method of present embodiment comprises:
S601 obtains the release image file transfer channel address of corresponding version file.
Release image file transfer channel is with the version file of Streaming Media transmission means issue through code streamization in the present embodiment.Code streamization promptly is that version information is read out in the present embodiment, packs according to certain rule, and the data of packing can increase some functions by the processing of Streaming Media, such as some anti-packet loss computings etc.
S603 according to this release image file transfer channel address, adds this release image file transfer channel.
S605 receives version file at this release image file transfer channel.
S607 upgrades according to the version file that is received.
S609, upgrading finishes, and continues to carry out other business.
Please refer to Fig. 7, be the flow chart of the embodiment of the step S601 of the set top box upgrading method of present embodiment.The step S601 of the set top box upgrading method of present embodiment comprises:
S701 receives the channel list that operation system issues, and preserves.
Specify a special channel to be the upgrading channel in the channel list in the present embodiment, the upgrading channel here refers to the channel of multicast version description document, when operation system is issued channel list downwards, the information that has comprised the upgrading channel in this channel list, the channel address of for example upgrading, this upgrading channel then are with the version information file of Streaming Media transmission means issue through code streamization.
In a specific embodiment of the set top box upgrading method of present embodiment, specifying a special channel is that 9999 channel comes the multicast version description document, then set-top box is being connected into EGP (Electronic Program Guide, electronic program guides), when EGP issues channel list, just must comprise channel in this channel list and be 9999 channel address.
S703 resolves this channel list, obtains the channel address of upgrading.
S705, whether judge to resolve the upgrading channel address that obtains effective, if effectively, execution in step S707a then, otherwise execution in step S707b.
Effective channel address is igmp in the present embodiment: //xx.xx.xx.xx:8569, wherein the value of xx can not surpass 255, it just should be an effective ip address, and an effective port numbers must be followed in the back, and this effective port numbers is 8569 in the specific embodiment of present embodiment.
S707a enters the channel upgrade mode, promptly adds this upgrading channel, and receives version information file, execution in step S709 at this upgrading channel.
Include release image file transfer channel address in the version information file in the present embodiment.
S707b enters the http upgrade mode and upgrades, execution in step S609 after upgrading is finished.
The http upgrading comprises step in the present embodiment:
The upgrade server address style of judging this set-top box correspondence is " channel " type or http type, if this upgrade server address style is " channel " type, then adds the multicast channel of appointment, and receives data, promptly carries out common igmp multicast upgrading; If this upgrade server address style is the http type, then carry out http upgrading flow process.
Igmp multicast upgrading in the present embodiment, be meant a special multicast group, when set-top box need be upgraded, this set-top box need add this multicast group and upgrade, and data that this multicast group is issued and IPTV system are without any relation, have only the set-top box when the same network segment could add this multicast group and receive multicast packet, and the igmp multicast protocol that adopts of this multicast upgrading mode
S709 detects the whether needs upgrading of this set-top box according to this version information file, if need upgrading, and execution in step S711a then, otherwise execution in step S711b.
S711a obtains the release image file transfer channel address in this version information file, execution in step S603.
S711b withdraws from the upgrading channel, execution in step S609.
Please refer to Fig. 8, be the flow chart of the embodiment of the step S709 of the set top box upgrading method of present embodiment.The step S709 of the set top box upgrading method in the present embodiment comprises:
Version information file in the present embodiment also comprises the hardware signal information of multiple set-top box, the current version of the set-top box of corresponding ardware model number number, and version number's matched rule.
S801 detects the content that whether has the ardware model number with set-top box to be complementary in the received version information file, if having, and execution in step S803a then, otherwise execution in step S803b.
S803a obtains the content that is complementary with this top-set hardware model in this version information file, execution in step S805.
Among one embodiment of present embodiment, because version information file includes ardware model number, therefore, judge whether the ardware model number in this version information file is identical with the ardware model number of this set-top box, if it is identical, then obtain in the version information file information corresponding to this ardware model number, for example corresponding to the release image file transfer address at the version file place of this ardware model number, and information such as the current version of the set-top box of corresponding and this hardware signal number.
S803b ignores other guide, execution in step S609.
In one specific embodiment of present embodiment, v1 is arranged, v2, the set-top box that v3 is three types, the descriptive information that may comprise v2 and v3 in the supporting paper, the set-top box of v1 just can not find after getting access to this document and own relevant information so, and that a part of content that the set-top box of v2 and v3 needs respectively to obtain after being connected into and the ardware model number of oneself is complementary, comprise information such as version number, other guide need not be comprehended.
S805 analyzes the content of the version information file obtained, and obtains the current version number of this set-top box, and version number's matched rule.
The version number that version number's matched rule in the present embodiment is current version number and set-top box self in version information file illustrates that then this set-top box needs upgrading not simultaneously.
S807, the version number of judging this set-top box self whether with this version information file in current version number whether identical, if identical, determine that then this set-top box needs upgrading, and execution in step S711a, otherwise execution in step S711b.
In one specific embodiment of present embodiment, version information file comprises following information:
AppName=newVersion?Version=123456?Location=Rules={Y(!123456)}。
That is to say if the version number of set-top box itself is not 123456, illustrate that then this set-top box needs upgrading, and the version number of new upgrading is 123456 that after having risen grade, the version number of set-top box self is updated to 123456.
Please refer to Fig. 9, be the flow chart of the embodiment of the step S607 of the set top box upgrading method of present embodiment.The step S607 of the set top box upgrading method of present embodiment comprises:
S901 finishes current IPTV business automatically, forces set-top box to enter upgrade mode.
S903, whether the packet of the version file that verification received is complete, in this way, execution in step S905 then, otherwise execution in step S909.
S905, whether the version file that verification received is legal, if legal, execution in step S907 then, otherwise execution in step S909.
In one specific embodiment of present embodiment, when whether this version file of verification is legal, can whether identical with the ardware model number of this set-top box self by judging the ardware model number that comprises in the version file, if identical, determine that then this version file is legal, otherwise illegal.Certainly according to identical principle, relatively whether other the corresponding information in this version file are complementary with the information of set-top box itself, and promptly whether suitable this set-top box judges whether the version file that is received is legal to this version file, also is understandable.
S907 writes with a brush dipped in Chinese ink version file on the flash, finishes set top box upgrading.
S909, execution in step S609.
Please refer to Figure 10, be the flow chart of the embodiment of the step S903 of the set top box upgrading method of present embodiment.This step S903 comprises in the present embodiment:
S1001, the CRC (Cyclic Redundancy Check, cyclic redundancy check) that reads the version file that is received is worth.
S1003 according to the packet of the version file that is received, recomputates its CRC.
S1005, relatively whether the CRC of version file is identical with the CRC that calculates, and in this way, then the packet of definite version file that is received is complete, execution in step S905, otherwise imperfect, execution in step S909.
The set top box upgrading method of present embodiment, by receiving and preserve the channel list that operation system issues, specified a special channel to be the upgrading channel in this channel list, and this upgrading channel stream media delivery mode is issued the version information file of code streamization, include release image file transfer channel address in this version information file, add this upgrading channel again, in this upgrading channel, obtain version information file, obtain release image file transfer channel address, when detecting set-top box and need upgrade, then add this release image file transfer channel according to the release image transmission channel address in this version information file, and receive by the version file of this channel with the code streamization of Streaming Media transmission means issue at this channel, upgrade according to this version file again, the set top box upgrading method that is present embodiment is to use the mode of channel to carry out multicast upgrading, multicast packet has wherein passed through Streaming Media, a channel program as the IPTV system is played out, thereby the version file that the set-top box that makes all insert this IPTV system all can receive, thereby when having avoided mass upgrade, set-top box all must be downloaded version file and version information file on upgrade server, and then reduced the pressure of upgrade server, and when increasing, set-top box quantity do not need the dilatation server yet.
Above content be in conjunction with concrete execution mode to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
Claims (14)
1. a set top box upgrading method is characterized in that, comprising:
Obtain the release image file transfer channel address of corresponding version file, described release image file transfer channel is with the version file of Streaming Media transmission means issue through code streamization;
According to described release image file transfer channel address, add release image file transfer channel, and receive version file at described release image file transfer channel;
Upgrade according to described version file.
2. the method for claim 1 is characterized in that, the step of obtaining the release image file transfer channel address of corresponding version file comprises:
Reception comprises the channel list of the channel of upgrading, and described upgrading channel is with the version information file of Streaming Media transmission means issue through code streamization;
Resolve described channel list, obtain the address of described upgrading channel;
Judge whether described upgrading channel address is effective, if effectively, then add described upgrading channel, and receive described version information file at described upgrading channel, described version information file comprises described release image file transfer channel address;
Whether needs are upgraded according to described version information file machines top box, if need upgrading, then obtain the release image file transfer channel address in the described version information file.
3. method as claimed in claim 2, it is characterized in that, described version information file comprises the ardware model number information of multiple set-top box, the current version of the set-top box of corresponding ardware model number number, and version number's matched rule, then detect described set-top box and whether comprise with the step of needs upgrading according to described version information file:
Detect the content that whether has the ardware model number with described set-top box to be complementary in the described version information file,, then obtain in the described version information file content that the ardware model number with described set-top box is complementary if having;
Analyze the content of the described version information file obtained, obtain the current version number of described set-top box, and version number's matched rule;
According to described current version number, whether the version number of detecting described set-top box itself meets described version number matched rule, if meet, determines that then described set-top box needs upgrading, otherwise confirms that described set-top box does not need upgrading.
4. the method for claim 1 is characterized in that, the step of upgrading according to described version file comprises:
Automatically finish current television service based on Internet protocol, force set-top box to enter upgrade mode;
Add described release image file transfer channel, receive the packet of described version file;
Whether the packet of the described version file that verification received is complete, and whether described version file is legal;
After verification is passed through, upgrade according to described version file.
5. method as claimed in claim 4 is characterized in that, whether complete step comprises the packet that verification received:
Read the cyclic redundancy check value of described version file;
Packet according to the version file that has received calculates its cyclic redundancy check value;
Relatively whether the cyclic redundancy check value of the version file that is read is identical with the cyclic redundancy check that calculates, if identical, determine that then the packet that is received is complete, otherwise determines that the packet that is received is imperfect.
6. method as claimed in claim 4 is characterized in that described version file comprises the ardware model number of set-top box, and whether legal step comprises then to detect described version file:
Judge whether the ardware model number in the described version file is identical with the ardware model number of described set-top box,, determine that then described version file is legal, otherwise confirm that described version file is illegal if identical.
7. method as claimed in claim 2 is characterized in that, also comprises:
When the described upgrading channel address that obtains when parsing is invalid, judge then whether the upgrade server address style of described set-top box correspondence is channel type, if then adopt multicasting upgrading mode to upgrade, otherwise adopt the http upgrade mode to upgrade.
8. a set top box upgrading system is characterized in that, comprises release image file transfer channel address acquisition module, the version file acquisition module, and the upgrading module, wherein,
Described release image file transfer channel address acquisition module, the release image file transfer address that is used to obtain corresponding version file, described release image file transfer address are with the version file of Streaming Media transmission means issue through code streamization;
Described version file acquisition module, link to each other with described release image file transfer channel address acquisition module, be used for the release image file transfer channel address that obtained according to described release image file transfer channel address acquisition module, add release image file transfer channel, and receive described version file at described release image file transfer channel;
The upgrading module links to each other with described version file acquisition module, is used for upgrading according to the version file that described version file acquisition module receives.
9. system as claimed in claim 8 is characterized in that, release image file transfer channel address acquisition module comprises the channel list sub module stored, and version information file is obtained submodule and upgrading detection sub-module, wherein,
Described channel list sub module stored is used for the channel list that comprises the channel of upgrading that the storage service system issues, and described upgrading channel is with the version information file of Streaming Media transmission means issue through code streamization;
Described version information file is obtained submodule, link to each other with described channel list sub module stored, be used to resolve described channel list, obtain described upgrading channel address, and judge whether this upgrading channel address is effective, if effectively, then add the upgrading channel according to described upgrading channel address, and receiving described version information file at described upgrading channel, described version information file comprises described release image file transfer channel address;
Described upgrading detection sub-module, link to each other with the version file acquisition module with described version information file acquisition module, be used for obtaining version information file that submodule obtains and detect the whether needs upgrading of described set-top box according to described version information file, if described set-top box needs upgrading, then obtain the release image file transfer channel address in the described version information file, and the release image file transfer channel address in the described version information file is sent to described version file acquisition module.
10. system as claimed in claim 9 is characterized in that, described channel list comprises the address of the channel of upgrading, described version information file is obtained submodule and is comprised upgrading channel address acquiring unit, upgrading channel address detecting unit, version information file acquiring unit, wherein
Described upgrading channel address acquiring unit links to each other with described channel list sub module stored, is used to resolve the channel list that described channel list sub module stored is stored, and obtains described upgrading channel address;
Described upgrading channel address detecting unit links to each other with described upgrading channel address acquiring unit, and whether being used to detect described upgrading channel address acquiring unit, to resolve the address of the upgrading channel that obtains effective;
Described version information file acquiring unit, link to each other with described upgrading channel address detecting unit, be used for detecting the upgrading channel address that is obtained when effective when described upgrading channel address detecting unit, add the upgrading channel according to described upgrading channel address, and receiving described version information file at described upgrading channel, described version information file comprises release image file transfer channel address.
11. system as claimed in claim 9, it is characterized in that, described version information file comprises the ardware model number information of multiple set-top box, the current version of the set-top box of corresponding ardware model number number, and version number's matched rule, described upgrading detection sub-module comprises the version information file detecting unit, version number's detecting unit and release image file transfer channel address acquiring unit, wherein
Described version information file detecting unit, obtaining submodule with described version information file links to each other, be used for detecting described version information file and obtain the content whether described version information file that submodule obtains has the ardware model number with described set-top box to be complementary, if have, then obtain in the described version information file content that the ardware model number with described set-top box is complementary;
Described version number detecting unit, link to each other with described version information file detecting unit, be used to analyze the described version information file detecting unit content that is complementary with ardware model number described set-top box that obtained, obtain the current version number of described set-top box, and version number's matched rule, and according to described current version number, whether the version number of detecting described set-top box self meets described version number matched rule, as meet, determine that then described set-top box needs upgrading, otherwise confirm that described set-top box does not need upgrading;
Described release image file transfer channel address acquiring unit, link to each other with described version number detecting unit, be used for when described version number detecting unit determines that described set-top box need be upgraded, obtain the release image file transfer channel address in the described version information file, and described release image file transfer channel address is sent to described version file acquisition module.
12. system as claimed in claim 9 is characterized in that, described upgrading module comprises the mode switch submodule, the syndrome module, and the edition upgrading submodule, wherein,
The mode switch submodule, link to each other with described upgrading detection sub-module, be used for detecting described set-top box need upgrade the time when described upgrading detection sub-module, finish current television service based on Internet protocol, and force set-top box to enter upgrade mode, and be used for detecting this set-top box when not needing to upgrade when the upgrading detection module, withdraw from described upgrading channel;
The syndrome module links to each other with described version file acquisition module with described mode switch submodule, when being used for described mode switch submodule and forcing set-top box to enter upgrade mode, whether the version file that the described version file acquisition module of verification is received is complete, and whether described version file is legal;
The edition upgrading submodule links to each other with the syndrome module, is used for that to go out version file complete and when legal when the verification of syndrome module, carries out edition upgrading according to described version file.
13. system as claimed in claim 12 is characterized in that, described version file comprises the ardware model number of set-top box, and described syndrome module comprises data check unit and version number's comparing unit, wherein,
Described data check unit, link to each other with described version file acquisition module, be used to read the cyclic redundancy check value of version file, calculate its corresponding cyclic redundancy check value according to the version file that has received again, and whether the cyclic redundancy check value of the version file that is relatively read is identical with the cyclic redundancy check (CRC) that calculates, if identical, then definite data integrity that is received, otherwise determine that the data that received are imperfect;
Described version number comparing unit, link to each other with described version file acquisition module with described data check unit, be used for going out described version file when complete when the unit verification of described data check, judge whether the ardware model number in the version file that described version file acquisition module obtains is identical with the ardware model number of described set-top box, if the ardware model number in the described version file is identical with the ardware model number of described set-top box, determine that then described version file is legal; Otherwise confirm that described version file is illegal.
14. system as claimed in claim 12, it is characterized in that, described upgrading module also comprises upgrade server address style judgement submodule, obtaining submodule with described version information file links to each other, be used for obtaining submodule and judge described upgrading channel address when invalid when described version information file, whether the upgrade server address style of judging described set-top box correspondence is channel type, if, then adopt multicasting upgrading mode to upgrade, otherwise adopt the HTML (Hypertext Markup Language) upgrade mode to upgrade.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110205528.9A CN102255756B (en) | 2011-07-21 | 2011-07-21 | A kind of set top box upgrading method and its system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110205528.9A CN102255756B (en) | 2011-07-21 | 2011-07-21 | A kind of set top box upgrading method and its system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102255756A true CN102255756A (en) | 2011-11-23 |
CN102255756B CN102255756B (en) | 2017-11-14 |
Family
ID=44982761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110205528.9A Active CN102255756B (en) | 2011-07-21 | 2011-07-21 | A kind of set top box upgrading method and its system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102255756B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014180245A1 (en) * | 2013-11-22 | 2014-11-13 | 中兴通讯股份有限公司 | Cloud terminal upgrade processing method and device therefor |
CN104486687A (en) * | 2014-12-29 | 2015-04-01 | 深圳国微技术有限公司 | Data processing method, digital television terminal and server |
CN106375406A (en) * | 2016-08-31 | 2017-02-01 | 浙江创佳数字技术有限公司 | Terminal system upgrading method |
CN106604134A (en) * | 2016-12-21 | 2017-04-26 | 深圳市瑞珀数码科技有限公司 | Set top box based control method and apparatus |
WO2017181850A1 (en) * | 2016-04-18 | 2017-10-26 | 中兴通讯股份有限公司 | Method for use in system to upgrade terminal by multicast, and network management server |
WO2018112785A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳市瑞珀数码科技有限公司 | Control method and device based on set-top box |
CN109271190A (en) * | 2018-10-15 | 2019-01-25 | 迈普通信技术股份有限公司 | A kind of device updating method and embedded device |
CN114936037A (en) * | 2022-07-21 | 2022-08-23 | 天津七一二移动通信有限公司 | Clamp implementation method compatible with multi-model railway CIR program upgrading |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207729A (en) * | 2007-12-17 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Digital television receiving terminal and software upgrading system thereof |
CN101710934A (en) * | 2009-11-25 | 2010-05-19 | 中兴通讯股份有限公司 | Set-top box edition upgrading method and system |
CN102006510A (en) * | 2010-11-26 | 2011-04-06 | 康佳集团股份有限公司 | Set-top box as well as method and device for set-top box software upgrading |
CN102222011A (en) * | 2011-06-28 | 2011-10-19 | 广东中大讯通软件科技有限公司 | Software upgrading method for set-top box and set-top box |
-
2011
- 2011-07-21 CN CN201110205528.9A patent/CN102255756B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207729A (en) * | 2007-12-17 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Digital television receiving terminal and software upgrading system thereof |
CN101710934A (en) * | 2009-11-25 | 2010-05-19 | 中兴通讯股份有限公司 | Set-top box edition upgrading method and system |
CN102006510A (en) * | 2010-11-26 | 2011-04-06 | 康佳集团股份有限公司 | Set-top box as well as method and device for set-top box software upgrading |
CN102222011A (en) * | 2011-06-28 | 2011-10-19 | 广东中大讯通软件科技有限公司 | Software upgrading method for set-top box and set-top box |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014180245A1 (en) * | 2013-11-22 | 2014-11-13 | 中兴通讯股份有限公司 | Cloud terminal upgrade processing method and device therefor |
CN104660639A (en) * | 2013-11-22 | 2015-05-27 | 南京中兴新软件有限责任公司 | Method and device for upgrading cloud terminals |
CN104660639B (en) * | 2013-11-22 | 2020-03-27 | 南京中兴新软件有限责任公司 | Cloud terminal upgrade processing method and device |
CN104486687A (en) * | 2014-12-29 | 2015-04-01 | 深圳国微技术有限公司 | Data processing method, digital television terminal and server |
WO2017181850A1 (en) * | 2016-04-18 | 2017-10-26 | 中兴通讯股份有限公司 | Method for use in system to upgrade terminal by multicast, and network management server |
CN106375406A (en) * | 2016-08-31 | 2017-02-01 | 浙江创佳数字技术有限公司 | Terminal system upgrading method |
CN106604134A (en) * | 2016-12-21 | 2017-04-26 | 深圳市瑞珀数码科技有限公司 | Set top box based control method and apparatus |
WO2018112785A1 (en) * | 2016-12-21 | 2018-06-28 | 深圳市瑞珀数码科技有限公司 | Control method and device based on set-top box |
CN109271190A (en) * | 2018-10-15 | 2019-01-25 | 迈普通信技术股份有限公司 | A kind of device updating method and embedded device |
CN114936037A (en) * | 2022-07-21 | 2022-08-23 | 天津七一二移动通信有限公司 | Clamp implementation method compatible with multi-model railway CIR program upgrading |
Also Published As
Publication number | Publication date |
---|---|
CN102255756B (en) | 2017-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102255756A (en) | Method and system for upgrading set-top box | |
US11336933B2 (en) | Transmission device, transmission method, reception device, reception method, and computer program | |
US9693103B2 (en) | Methods and apparatus for audience data collection and analysis in a content delivery network | |
US10164860B2 (en) | Modified content delivery based on network conditions | |
US9661371B2 (en) | Method for transmitting a broadcast service, apparatus for receiving same, and method for processing an additional service using the apparatus for receiving same | |
JP2017005743A (en) | Broadcast signal processing method and device including interactive broadcast service | |
EP2888892B1 (en) | Communication receiver | |
US9641911B2 (en) | Method and system of searching and collating video files, establishing semantic group, and program storage medium therefor | |
US10715571B2 (en) | Self-adaptive streaming medium processing method and apparatus | |
US20150172731A1 (en) | Methods and apparatus for providing alternate content | |
CN102073534B (en) | Data analysis method and device | |
CN104137555A (en) | Non-closed caption data transport in standard caption service | |
CN104094540A (en) | Service usage reporting data transport | |
CN103299650A (en) | Micro-filtering of streaming entertainment content based on parental control setting | |
CN103389969A (en) | Method, device and system for previewing PDF (portable document format) file on mobile terminal | |
CN105072462A (en) | Video advertisement insert-play method and device thereof | |
CN103763588A (en) | Stream forwarding method, device, server and system for video advertising insertion | |
CN101789950A (en) | Internet protocol television-based implementing method in three-screen fusion and system | |
US20090190473A1 (en) | Method and apparatus for targeted content delivery based on internet video traffic analysis | |
CN103905890A (en) | EPG information automatic calibration correction method, device and system | |
WO2016054558A1 (en) | Fusing online media monitoring data with secondary online data feeds to generate ratings data for online media exposure | |
US10869104B2 (en) | Receiving apparatus, reception method, transmitting apparatus, transmission method, and program | |
EP3148197A1 (en) | Coordinating content segmentation | |
US20120036164A1 (en) | Method of management of metadata size of a service guide | |
US9674564B2 (en) | System and methods for multicast delivery of internet protocol video content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |