CN102255756B - A kind of set top box upgrading method and its system - Google Patents

A kind of set top box upgrading method and its system Download PDF

Info

Publication number
CN102255756B
CN102255756B CN201110205528.9A CN201110205528A CN102255756B CN 102255756 B CN102255756 B CN 102255756B CN 201110205528 A CN201110205528 A CN 201110205528A CN 102255756 B CN102255756 B CN 102255756B
Authority
CN
China
Prior art keywords
version
file
upgrading
set top
top box
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.)
Active
Application number
CN201110205528.9A
Other languages
Chinese (zh)
Other versions
CN102255756A (en
Inventor
倪燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110205528.9A priority Critical patent/CN102255756B/en
Publication of CN102255756A publication Critical patent/CN102255756A/en
Application granted granted Critical
Publication of CN102255756B publication Critical patent/CN102255756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of set top box upgrading method and its system, including the release image file transmission channel address of corresponding version file is obtained, the release image file transmission channel is that the version file by code stream is issued in a manner of streaming media;According to described plus release image file transmission channel address, release image file transmission channel is added, and version file is received in the release image file transmission channel;Upgraded according to the version file.The set top box upgrading method and its system of the present invention can avoid working as a large amount of set top boxes to upgrade server download version file to be upgraded, only need to add release image file transmission channel, receive the version file after the code stream that the channel is issued in a manner of streaming media, and then reduce the pressure to upgrade server, and when set top box quantity increase, also without dilatation server, cost is reduced.

Description

A kind of set top box upgrading method and its system
Technical field
The present invention relates to network communication technology field, more particularly to it is a kind of realized on network set top box upgrading method and its System.
Background technology
As technology is more and more ripe, IPTV, (Internet Protocol Television, internet protocol TV) It is widely used, customer group quantity is also being continuously increased, and the capacity of set-top-box system is also constantly expanding, when there is new edition When this occurs, will face a large amount of set top boxes on a large scale needs to be upgraded, and traditional IPTV system receives DTV The software release upgrade of set top box all uses mode of unicast, i.e., is taken by HTTP (http) connected mode from version Business device downloads upgrading software and completes to upgrade, and this is when needing mass upgrade, it will very big pressure is caused to upgrade server Power, and downstream capacity expands, and upgrade server also will constantly expand, so that cost increases, deployment manpower increase.
The content of the invention
The main technical problem to be solved in the present invention is to provide a kind of set top box upgrading method and its system, is adapted to big model Enclose interior various set top boxes and carry out mass upgrade, and it is small to upgrade server pressure, it is easy to expand.
In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
A kind of set top box upgrading method, including:
The release image file transmission channel address of corresponding version file is obtained, the release image file transmission channel is The version file by code stream is issued in a manner of streaming media;
According to the release image file transmission channel address, release image file transmission channel is added, and in the version This image file transmission channel receives version file;
Upgraded according to the version file.
Further, the step of release image file transmission channel address for obtaining corresponding version file, includes:
The channel list for including upgrading channel is received, the upgrading channel is to be issued in a manner of streaming media by code stream The version information file of change;
The channel list is parsed, obtains the address of the upgrading channel;
Judge whether the upgrading channel address is effective, if effectively, the upgrading channel is added, and in the upgrading frequency Road receives the version information file, and the version information file includes the release image file transmission channel address;
Detect whether set top box needs to upgrade according to the version information file, if desired upgrade, then obtain the version Release image file transmission channel address in message file.
Further, the version information file includes the ardware model number information of a variety of set top boxes, corresponding ardware model number Set top box current version number, and version numbers match rule then detects the set top box according to the version information file The step of whether with needing upgrading, includes:
The content for whether having the ardware model number with the set top box to match in the version information file is detected, if so, Then obtain the content to match in the version information file with the ardware model number of the set top box;
The content of the acquired version information file of analysis, obtains the current version number of the set top box, and its version Version number matches rule;
According to the current version number, detect whether the version number of the set top box in itself meets the version numbers match rule Then, if meeting, it is determined that the set top box needs to upgrade, and otherwise confirms that the set top box need not upgrade.
Further, the step of being upgraded according to the version file includes:
Automatically terminate current television service based on Internet protocol, force set top box to enter upgrade mode;
Whether complete verify the packet of the version file received, and whether the version file is legal;
After verification passes through, upgraded according to the version file.
Further, verifying the whether complete step of received data bag includes:
Read the cyclic redundancy check value of the version file;
Its cyclic redundancy check value is calculated according to the packet of the version file received;
Whether identical compare cyclic redundancy check value and the cyclic redundancy check being calculated of read version file, It is if identical, it is determined that received data bag is complete, otherwise determines that received data bag is imperfect.
Further, the version file includes the ardware model number of set top box, then detects whether the version file closes The step of method, includes:
Judge whether the ardware model number in the version file is identical with the ardware model number of the set top box, if identical, Determine that the version file is legal, otherwise confirm that the version file is illegal.
Further, in addition to:
When the upgrading channel address that parsing obtains is invalid, then with judging upgrade server corresponding to the set top box Whether location type is channel type, if so, then being upgraded using multicasting upgrading mode, is otherwise carried out using http upgrade modes Upgrading.
A kind of set top box upgrading system, including release image file transmission channel address acquisition module, version file obtain Module, upgraded module, wherein,
The release image file transmission channel address acquisition module, for obtaining the release image text of corresponding version file Part transmits address, and the release image file transmission channel is that the version text by code stream is issued in a manner of streaming media Part;
The version file acquisition module, it is connected with the release image file transmission channel address acquisition module, is used for Release image file transmission channel address according to acquired in the release image file transmission channel address acquisition module, add Release image file transmission channel, and receive the version file in the release image file transmission channel;
Upgraded module, it is connected with the version file acquisition module, for being received according to the version file acquisition module Version file upgraded.
Further, release image file transmission channel address acquisition module includes channel list sub-module stored, version Message file acquisition submodule, and upgrading detection sub-module, wherein,
The channel list sub-module stored is used for the channel list for including upgrading channel that storage service system issues, institute It is that the version information file by code stream is issued in a manner of streaming media to state upgrading channel;
The version information file acquisition submodule, it is connected with the channel list sub-module stored, it is described for parsing Channel list, the upgrading channel address is obtained, and judge whether the upgrading channel address is effective, if effectively, according to Upgrade channel address and add upgrading channel, and in version information file described in the upgrading CPCH reception, the version information text Part includes the release image file transmission channel address;
The upgrading detection sub-module, with version information file acquisition module and version file acquisition module phase Even, for the version information file according to acquired in the version information file acquisition submodule detect the set top box whether need Upgrade, if the set top box needs to upgrade, the release image file transmitting pin obtained in the version information file is genuine Location, and the release image file transmission channel address in the version information file is sent to the version file and obtains mould Block.
Further, the channel list includes the address of upgrading channel, the version information file acquisition submodule Including upgrade channel address acquiring unit, upgrade channel address detection unit, version information file acquiring unit, wherein,
The upgrading channel address acquiring unit, is connected with the channel list sub-module stored, for parsing the frequency The channel list that road list sub-module stored is stored, obtain the upgrading channel address;
The upgrading channel address detection unit, it is connected with the upgrading channel address acquiring unit, it is described for detecting Whether the address that upgrading channel address acquiring unit parses obtained upgrading channel is effective;
The version information file acquiring unit, it is connected with the upgrading channel address detection unit, for when the liter When level channel address detection unit detects that acquired upgrading channel address is effective, added and risen according to the upgrading channel address Level channel, and include release image file in version information file, the version information file described in the upgrading CPCH reception Transmission channel address.
Further, the version information file includes the ardware model number information of a variety of set top boxes, corresponding ardware model number Set top box current version number, and version numbers match rule, it is described upgrading detection sub-module include version information file detection Unit, version number's detection unit and release image file transmission channel address acquisition unit, wherein,
The version information file detection unit, it is connected with the version information file acquisition submodule, for detecting State the hardware-type whether having in the version information file acquired in version information file acquisition submodule with the set top box Number content to match, if so, in then obtaining in the version information file and matching with the ardware model number of the set top box Hold;
Version number's detection unit, it is connected with the version information file detection unit, for analyzing the version letter The content to match with the ardware model number of the set top box acquired in file detection unit is ceased, obtains the current of the set top box Version number, and version numbers match rule, and according to the current version number, detect whether the set top box version number of itself accords with The version numbers match rule is closed, is such as met, it is determined that the set top box needs to upgrade, and otherwise confirms that the set top box need not Upgrading;
The release image file transmission channel address acquisition unit, is obtained with version number's detection unit and version file Modulus block is connected, for when version number's detection unit determines that the set top box needs upgrading, obtaining the version information Release image file transmission channel address in file, and the release image file transmission channel address is sent to the version This document acquisition module.
Further, the upgraded module includes pattern switching submodule, verifies submodule, edition upgrading submodule, Wherein,
Pattern switching submodule, it is connected with the upgrading detection sub-module, for when the upgrading detection sub-module detection When going out the set top box needs upgrading, terminate current television service based on Internet protocol, and force set top box to enter upgrade mode, And for when upgrading detection module detects that the set top box need not upgrade, exiting the upgrading channel;
Verification submodule is connected with the pattern switching submodule and the version file acquisition module, for the pattern When switching submodule pressure set top box enters upgrade mode, verifying the version file that the version file acquisition module is received is It is no complete, and whether the version file is legal;
Edition upgrading submodule is connected with verification submodule, for when verification submodule verifies out version file completely and closes During method, edition upgrading is carried out according to the version file.
Further, the version file includes the ardware model number of set top box, and the verification submodule includes data school Verification certificate member and version number's comparing unit, wherein,
The data check unit, it is connected with the version file acquisition module, the circulation for reading version file is superfluous Remaining check value, its corresponding cyclic redundancy check value is calculated further according to the version file received, and compare read version Whether the cyclic redundancy check value of file and the CRC being calculated are identical, if identical, it is determined that the number received According to complete, otherwise determine that received data is imperfect;
Version number's comparing unit, it is connected with the data check unit and the version file acquisition module, is used for When the data check unit verify out the version file it is complete when, judge the version that the version file acquisition module obtains Whether the ardware model number in file is identical with the ardware model number of the set top box, if ardware model number and institute in the version file The ardware model number for stating set top box is identical, it is determined that the version file is legal;Otherwise confirm that the version file is illegal.
Further, the upgraded module also includes upgrade server address style judging submodule, with the version Message file acquisition submodule is connected, for judging the upgrading channel address when the version information file acquisition submodule When invalid, judge whether upgrade server address style corresponding to the set top box is channel type, if so, then using multicast liter Level pattern is upgraded, and is otherwise upgraded using HTTP upgrade mode.
The beneficial effects of the invention are as follows:The set top box upgrading method of the present invention passes through in release image file transmission channel Pass through the version file of code stream in a manner of streaming media so that when obtaining version file, it is only necessary to first obtain the version The address of image file transmission channel, and received according to the address into the release image file transmission channel by code stream Version file is scalable, i.e., method of the invention is to carry out group by version file code stream, then by using the mode of channel Upgrading is broadcast, i.e., is played back the version file of code stream as a channel program of IPTV system, so that all companies The version file can be received by entering the set top box of the IPTV system, and be upgraded according to the version file, be avoided a large amount of Set top box is upgraded to upgrade server download version file, and then reduces the pressure to upgrade server, and is worked as During set top box quantity increase, it is not required that dilatation server, reduce cost.
Brief description of the drawings
Fig. 1 is the structural representation of an embodiment of the set top box upgrading system of the present invention;
Fig. 2 is an implementation of the release image file transmission channel address acquisition module of the set top box upgrading system of the present invention The structural representation of example;
Fig. 3 is the structural representation of an embodiment of the version information file acquisition module of the set top box upgrading system of the present invention Figure;
Fig. 4 is the structural representation of an embodiment of the upgrading detection sub-module of the set top box upgrading system of the present invention;
Fig. 5 is the structural representation of an embodiment of the upgraded module of the set top box upgrading system of the present invention;
Fig. 6 is the flow chart of an embodiment of the set top box upgrading method of the present invention;
Fig. 7 is the flow chart of the step S601 of the set top box upgrading method of a present invention embodiment;
Fig. 8 is the flow chart of the step S709 of the set top box upgrading method of a present invention embodiment;
Fig. 9 is the flow chart of the step S607 of the set top box upgrading method of a present invention embodiment;
Figure 10 is the flow chart of the step S903 of the set top box upgrading method of a present invention embodiment;
Figure 11 is the workflow diagram of an embodiment of the set top box upgrading system of the present invention.
Embodiment
The present invention is described in further detail below by embodiment combination accompanying drawing.
The noun being related in present embodiment is explained first:Multicast upgrading mode, it is to specify a special group Group is broadcast, set top box needs to add the multicast group to be upgraded, and the data do not have any relation with IPTV system, only in same The set top box of one network segment could add the multicast group and receive multicast packet;Channel upgrade mode refers to the mode using channel Multicast upgrading is carried out, multicast packet here have passed through Streaming Media, and a channel program as IPTV system is played out, All set top boxes for being connected into the IPTV system can receive.Both modes are all to use igmp multicast protocols.
Http upgrading mode be then to place version file on one server, set top box by access this server come File is downloaded, this mode is very big for the pressure of server, when set top box quantity increase, certainly will increase the number of server Amount, takes http host-host protocols.
Fig. 1 is refer to, is the structural representation of an embodiment of the set top box upgrading system of present embodiment.This embodiment party The set top box upgrading system of formula includes release image file transmission channel address acquisition module 101, version file acquisition module 102, upgraded module 103, wherein, release image file transmission channel address acquisition module 101 is used to obtain corresponding version file Release image file transmission address, and the release image file transmission channel is to be issued in a manner of streaming media by code stream The version file of change;Version file acquisition module 102 is connected with release image file transmission channel address acquisition module 101, uses In the release image file transmission channel address according to acquired in release image file transmission channel address acquisition module 101, add Enter release image file transmission channel, and version file is received in the release image file transmission channel;Upgraded module 103 and version This document acquisition module 102 is connected, and the version file for being received according to version file acquisition module 102 is upgraded.
Fig. 2 is refer to, is the release image file transmission channel address acquisition of the set top box upgrading system of present embodiment The structural representation of one embodiment of module.The release image file transmission channel address acquisition module of present embodiment includes frequency Road list sub-module stored 201, version information file acquisition submodule 202 and upgrading detection sub-module 203, wherein, channel column Table sub-module stored 201 is used to store the channel list that edge EPG issues, and upgrading channel is included in the channel list, and should It is that the version information file by code stream is issued in a manner of streaming media to upgrade channel;Version information file acquisition submodule 202 are connected with channel list sub-module stored 201, for parsing the channel column stored in the channel list sub-module stored 201 Table, obtain upgrading channel address, and upgrading channel is added according to the upgrading channel address, in the upgrading CPCH reception version information File, the version information file include release image file transmission channel address;Upgrade detection sub-module 203 and version information text Part acquisition submodule 202, version file acquisition module are connected with upgraded module, for obtaining submodule according to the version information file Version information file acquired in block 202, detects whether the set top box needs to upgrade, if detecting that the set top box needs to upgrade The release image file transmission channel address in the version information file is obtained, and sends it to version file acquisition module; Otherwise, prompting upgraded module exits upgrading channel.
Operation system in present embodiment specifies some special channel to issue channel for upgrading channel in channel list During list, wherein containing the relevant information of upgrading channel.The multicast version information text that upgrading channel in present embodiment refers to The channel of part, it includes a version information channel and multiple release image file transmission channels, (frequency i.e. where version file Road).Wherein version information channel includes version information file, and the transmission of release image file is included in the version information file Channel address.The version information file is version description document, further comprises ardware model number corresponding to a variety of set top boxes, and Corresponding to the current version number of the set top box of each ardware model number and version numbers match rule;Version file contains hardware Type information (ardware model number packet contains ardware model number) and corresponding version information etc..
Fig. 3 is refer to, is that the one of the version information file acquisition submodule of the set top box upgrading system of present embodiment is real Apply the structural representation of example.Version information file acquisition submodule in present embodiment includes upgrading channel address acquiring unit 301, upgrading channel address detection unit 302, version information file acquiring unit 303, wherein, upgrade channel address acquiring unit 301 are connected with channel list sub-module stored, the channel list received for parsing the channel list sub-module stored, obtain Upgrade channel address;Upgrading channel address detection unit 302 is connected with the upgrading channel address acquiring unit 301, for detecting Whether the upgrading channel address that the upgrading channel address acquiring unit 301 parsing obtains is effective;Version information file acquiring unit 303, be connected with upgrading channel address detection unit 302, for acquired in being detected when upgrading channel address detection unit 302 Upgrade channel address it is effective when, add the upgrading channel, and in the content of the upgrading CPCH reception version information file, the version This message file contains release image file transmission channel address.
Effective channel address is igmp in present embodiment://xx.xx.xx.xx:The value of live end slogan, wherein xx No more than 255, i.e. the effective address is an effective ip address, must follow an effective port numbers behind.This Embodiment using the effective port in one in specific embodiment effective channel address as 8569.
Fig. 4 is refer to, is the structural representation of an embodiment of the upgrading detection sub-module of present embodiment.This embodiment party The upgrading detection sub-module of formula includes version information file detection unit 401, version number's detection unit 402, release image file Transmission channel address acquisition unit 403, wherein, version information file detection unit 401 and version information file acquisition submodule It is connected, in the version information file received for judging the version information file acquisition submodule, if having and this set top box The content that matches of ardware model number, if there is the content to match, obtain in the version information file with this top-set hardware The content that model matches, otherwise ignore other any contents;Version number's detection unit 402 detects with version information file Unit 401 is connected, for getting what is matched with the ardware model number of this set top box when the version information file detection unit 401 After content, acquired content is analyzed, obtains the current version number of this set top box, and version numbers match rule, and According to the current version number, detect whether the version number of the set top box in itself meets version numbers match rule, if meeting, it is determined that The set top box needs to upgrade, and otherwise confirms that the set top box need not upgrade;Release image file transmission channel address acquisition unit 403 are connected with version number detection unit 402 and version file acquisition module, for when version number's detection unit 402, determine should When set top box needs upgrading, the release image file transmission channel address in the version information file is obtained, and send it to Version file acquisition module.
Fig. 5 is refer to, is the structural representation of an embodiment of the upgraded module of present embodiment.The liter of present embodiment Level module includes pattern switching submodule 501, verifies submodule 502, edition upgrading submodule 503 and upgrade server address class Type judging submodule 504, wherein, pattern switching submodule 501 is connected with upgrading detection sub-module, for when upgrading detection submodule When block detects that the set top box needs upgrading, terminate current IPTV service, and force set top box to enter upgrade mode, Yi Jiyong In when upgrading detection sub-module detects that the set top box need not upgrade, the upgrading channel is exited;Verify submodule 502 and mould Formula switching submodule 501 is connected with version file acquisition module 502, for forcing set top box to enter when pattern switching submodule 501 When entering upgrade mode, whether the data for the version file that verification version file acquisition module is received are complete, and the version file It is whether legal;Edition upgrading submodule 503 is connected with verification submodule 502, for being published herein when the verification verification of submodule 503 When the packet for the version file that part acquisition module is received is completely and the version file is legal, version is carried out according to the version file This upgrading;Upgrade server address style judging submodule 504, the upgrading channel address with version information file acquisition submodule Detection unit is connected, for when upgrading channel address detection unit detects that upgrading channel address is invalid, judging the set top box Whether corresponding upgrade server address style is channel type, if so, then being upgraded using multicasting upgrading mode, is otherwise adopted Upgraded with http upgrade modes.
The verification submodule of present embodiment includes data check unit and version number's comparing unit, wherein, data check Unit, it is connected with version file acquisition module, for reading the cyclic redundancy check value of version file, further according to the version received The packet of this document calculates its cyclic redundancy check value, and compares the cyclic redundancy check value and meter of read version file Whether obtained CRC is identical, if identical, it is determined that received data is complete, otherwise determines received number According to imperfect;Version number's comparing unit is connected with data check unit and version file acquisition module, for when data check list Member verify out the version file received it is complete when, judge ardware model number in the version file whether the hardware-type with set top box It is number identical, if the ardware model number in version file is identical with the ardware model number of set top box, it is determined that the version file is legal;Otherwise Confirm that the version file is illegal.
The set top box upgrading system of present embodiment, the frequency issued by channel list sub-module stored storage service system Road list, a special channel is specified in the channel list as upgrading channel, and include version letter in the upgrading channel File is ceased, then version information file is obtained in the upgrading channel by version information file acquisition submodule, and is detected by upgrading Module detects whether the set top box needs to upgrade according to the version information file, when need upgrading when, then by upgraded module according to The version information file obtains version file, and is upgraded accordingly according to the version file, i.e., present embodiment passes through By version file carry out code stream, played back by way of channel, with play video mode be as, just as some As long as the program of channel adds the channel after existing network multicast and may be viewed by equally, as long as set top box adds the channel and can carried out Upgrading, during so as to reduce mass upgrade, to the pressure of server, and when set top box quantity increase also without dilatation Server.
Based on above-mentioned set top box upgrading system, present embodiment also provides a kind of set top box upgrading method, with reference to The set top box upgrading method of present embodiment is described in detail specific embodiment.
It refer to Fig. 6 and Figure 11, respectively an a kind of embodiment of set top box upgrading method of present embodiment flow Figure, and the workflow diagram of an embodiment of the set top box upgrading system of present embodiment.The set top box upgrading of present embodiment Method includes:
S601, obtain the release image file transmission channel address of corresponding version file.
Release image file transmission channel is that the version by code stream is issued in a manner of streaming media in present embodiment This document.Code stream is to read out version information in present embodiment, is packed according to certain rule, packing Data can increase some functions, such as some anti-packet loss computings etc. by the processing of Streaming Media.
S603, according to the release image file transmission channel address, add the release image file transmission channel.
S605, version file is received in the release image file transmission channel.
S607, upgraded according to the version file received.
S609, upgrading terminate, and continue executing with other business.
Fig. 7 is refer to, is the flow chart of the step S601 of the set top box upgrading method of a present embodiment embodiment.This The step S601 of the set top box upgrading method of embodiment includes:
S701, the channel list that operation system issues is received, and preserved.
A special channel is specified to refer to for upgrading channel, upgrading channel here in channel list in present embodiment The channel of multicast version description document, when operation system issues channel list downwards, upgrading frequency is contained in the channel list The information in road, such as upgrade channel address, and the upgrading channel is then that the version by code stream is issued in a manner of streaming media This message file.
In a specific embodiment of the set top box upgrading method of present embodiment, a specified special channel number is 9999 channel carrys out multicast version description document, then set top box is being connected into EGP (Electronic Program Guide, electronics Program guide), when EGP issues channel list, the channel address that channel number is 9999 must be just included in the channel list.
S703, the channel list is parsed, obtain upgrading channel address.
S705, judge whether the upgrading channel address that parsing obtains is effective, if effectively, performing step S707a, otherwise holding Row step S707b.
Effective channel address is igmp in present embodiment://xx.xx.xx.xx:8569, wherein xx value can not surpass 255 are crossed, that is, should be an effective ip address, and an effective port numbers must be followed below, present embodiment A specific embodiment in the effective port numbers be 8569.
S707a, into channel upgrade mode, that is, the upgrading channel is added, and in upgrading CPCH reception version information text Part, perform step S709.
Include release image file transmission channel address in version information file in present embodiment.
S707b, upgraded into http upgrade modes, step S609 is performed after the completion of upgrading.
Http upgradings include step in present embodiment:
It is " channel " type or http types to judge upgrade server address style corresponding to the set top box, if the upgrading Server address type is " channel " type, then adds the multicast channel specified, and receives data, that is, carries out common igmp groups Broadcast upgrading;If the upgrade server address style is http types, http upgrading flows are performed.
Igmp multicast upgradings in present embodiment, refer to a special multicast group, should when set top box needs upgrading Set top box needs to add the multicast group to be upgraded, and the data that the multicast group is issued do not have any pass with IPTV system System, only when the set top box of the same network segment could add the multicast group and receive multicast packet, and the multicast upgrading mode is adopted Igmp multicast protocols
S709, detect whether the set top box needs to upgrade according to the version information file, if desired upgrade, then perform step S711a, otherwise perform step S711b.
S711a, the release image file transmission channel address in the version information file is obtained, perform step S603.
S711b, upgrading channel is exited, perform step S609.
Fig. 8 is refer to, is the flow chart of the step S709 of the set top box upgrading method of a present embodiment embodiment.This The step S709 of set top box upgrading method in embodiment includes:
Version information file in present embodiment also includes the hardware signal information of a variety of set top boxes, corresponding ardware model number Set top box current version number, and version numbers match rule.
S801, detect in whether having in received version information file and matching with the ardware model number of set top box Hold, if so, then performing step S803a, otherwise perform step S803b.
S803a, the content to match in the version information file with the top-set hardware model is obtained, perform step S805。
In one embodiment of present embodiment, because version information file includes ardware model number, therefore, the version is judged Whether the ardware model number in message file is identical with the ardware model number of the set top box, if identical, obtains in version information file Transmit ground corresponding to the information of the ardware model number, such as corresponding to the release image file where the version file of the ardware model number Location, and correspondingly with the information such as the current version number of the set top box of the hardware signal.
S803b, other guide is ignored, perform step S609.
In one specific embodiment of present embodiment, there is a v1, v2, the set top box of v3 three types may in supporting paper Contain v2 and v3 descriptive information, then v1 set top box just can not find the letter relevant with oneself after this document is got Breath, and v2 and v3 set top box is respectively necessary for obtaining that a part of content to match with the ardware model number of oneself after being connected into, The information such as including version number, other guide do not have to comprehend.
S805, the content of acquired version information file is analyzed, obtains the current version number of the set top box, and its version Number matched rule.
Version numbers match rule in present embodiment is to work as the current version number and set top box in version information file During the version number's difference of itself, then illustrate that the set top box needs to upgrade.
S807, judge the set top box version number of itself whether with the current version number in the version information file whether phase Together, it is if identical, it is determined that the set top box needs to upgrade, and performs step S711a, otherwise performs step S711b.
In one specific embodiment of present embodiment, version information file includes following information:
AppName=newVersion Version=123456 Location=Rules=Y (!123456)}.
I other words if the version number of set top box in itself is not 123456, illustrate that the set top box needs to upgrade, and new upgrading Version number be 123456, after having risen level, the version number of set top box itself is updated to 123456.
Fig. 9 is refer to, is the flow chart of the step S607 of the set top box upgrading method of a present embodiment embodiment.This The step S607 of the set top box upgrading method of embodiment includes:
S901, terminate current IPTV service automatically, force set top box to enter upgrade mode.
S903, whether the packet of the received version file of verification is complete, in this way, then performs step S905, otherwise holds Row step S909.
S905, whether the received version file of verification is legal, if legal, perform step S907, otherwise performs step S909。
In one specific embodiment of present embodiment, verify the version file it is whether legal when, can be by judging version Whether the ardware model number included in file is identical with the ardware model number of the set top box itself, if identical, it is determined that the version file It is legal, it is otherwise illegal.Certainly according to identical principle, compare other corresponding information in the version file whether with machine top The information match of box in itself, the i.e. version file judge whether received version file closes if appropriate for the set top box Method, it is understandable.
S907, version file is write with a brush dipped in Chinese ink on flash, complete set top box upgrading.
S909, perform step S609.
Figure 10 is refer to, is the flow chart of the step S903 of the set top box upgrading method of a present embodiment embodiment. Step S903 includes in present embodiment:
S1001, read the CRC (Cyclic Redundancy Check, cyclic redundancy check) of received version file Value.
S1003, according to the packet of the version file received, recalculate its CRC.
S1005, whether identical, in this way, it is determined that the version received if comparing the CRC and the CRC being calculated of version file The packet of this document is complete, performs step S905, otherwise imperfect, execution step S909.
The set top box upgrading method of present embodiment, the channel list issued by receiving and preserving operation system, the frequency A special channel is specified in road list as upgrading channel, and the upgrading channel stream media transmission modes issue code stream Version information file, include release image file transmission channel address in the version information file, add upgrading frequency Road, version information file is obtained in the upgrading channel, obtain release image file transmission channel address, when detecting set top box When needing upgrading, then the release image transmission channel address in the version information file adds release image file transmission Channel, and the version file for the code stream issued in the CPCH reception by the channel in a manner of streaming media, further according to the version This document is upgraded, i.e. the set top box upgrading method of present embodiment is to carry out multicast upgrading using the mode of channel, wherein Multicast packet have passed through Streaming Media, as IPTV system a channel program be played out so that all accesses The version file that the set top box of the IPTV system can receive, during so as to avoid mass upgrade, set top box all must be Version file and version information file are downloaded on upgrade server, and then reduces the pressure of upgrade server, and works as machine top Also without dilatation server during box quantity increase.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to assert this hair Bright specific implementation is confined to these explanations.For general technical staff of the technical field of the invention, do not taking off On the premise of from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the protection of the present invention Scope.

Claims (14)

  1. A kind of 1. set top box upgrading method, it is characterised in that including:
    The channel list of storage is parsed to obtain upgrading channel address;
    Add the upgrading channel and include the version information file of release image file transmission channel address to receive, the version This image file transmission channel is that the version file by code stream is issued in a manner of streaming media;
    The release image file transmission channel address of corresponding version file is obtained according to version information file;
    According to the release image file transmission channel address, release image file transmission channel is added, and in the version mirror As file transmission channel receives version file;
    Upgraded according to the version file.
  2. 2. the method as described in claim 1, it is characterised in that the channel list of described pair of storage is parsed to obtain upgrading frequency Also include before track address:The channel list for including upgrading channel is received, the upgrading channel is sent out in a manner of streaming media Cloth passes through the version information file of code stream;
    Also include before the addition upgrading channel:
    Judge whether the upgrading channel address is effective, if effectively, adding the upgrading channel, and connect in the upgrading channel Receive the version information file;
    The release image file transmission channel address that corresponding version file is obtained according to version information file also includes before:
    Detect whether set top box needs to upgrade according to the version information file, if desired upgrade, then obtain the version information Release image file transmission channel address in file.
  3. 3. method as claimed in claim 2, it is characterised in that the version information file includes the hardware-type of a variety of set top boxes Number information, the current version number of the set top box of corresponding ardware model number, and version numbers match rule, then according to the version information The step of whether the file detection set top box is with needing upgrading includes:
    The content for whether having the ardware model number with the set top box to match in the version information file is detected, if so, then obtaining Take the content to match in the version information file with the ardware model number of the set top box;
    The content of the acquired version information file of analysis, obtains the current version number of the set top box, and its version number Matched rule;
    According to the current version number, detect whether the version number of the set top box in itself meets the version numbers match rule, If meet, it is determined that the set top box needs to upgrade, and otherwise confirms that the set top box need not upgrade.
  4. 4. the method as described in claim 1, it is characterised in that the step of being upgraded according to the version file includes:
    Automatically terminate current television service based on Internet protocol, force set top box to enter upgrade mode;
    The release image file transmission channel is added, receives the packet of the version file;
    Whether complete verify the packet of the version file received, and whether the version file is legal;
    After verification passes through, upgraded according to the version file.
  5. 5. method as claimed in claim 4, it is characterised in that the whether complete step of verification received data bag includes:
    Read the cyclic redundancy check value of the version file;
    Its cyclic redundancy check value is calculated according to the packet of the version file received;
    Whether identical compare cyclic redundancy check value and the cyclic redundancy check being calculated of read version file, if phase Together, it is determined that received data bag is complete, otherwise determines that received data bag is imperfect.
  6. 6. method as claimed in claim 4, it is characterised in that the version file includes the ardware model number of set top box, then examines Surveying the whether legal step of the version file includes:
    Judge whether the ardware model number in the version file is identical with the ardware model number of the set top box, if identical, it is determined that The version file is legal, otherwise confirms that the version file is illegal.
  7. 7. method as claimed in claim 2, it is characterised in that also include:
    When the upgrading channel address that parsing obtains is invalid, then upgrade server address class corresponding to the set top box is judged Whether type is channel type, if so, then being upgraded using multicasting upgrading mode, is otherwise risen using http upgrade modes Level.
  8. 8. a kind of set top box upgrading system, it is characterised in that including release image file transmission channel address acquisition module, version File acquisition module, upgraded module, wherein,
    The release image file transmission channel address acquisition module includes channel list sub-module stored, and version information file obtains Submodule, and upgrading detection sub-module are taken, the channel list sub-module stored is used to store channel list, the version information File acquisition submodule is used to the channel list of storage is parsed to obtain upgrading channel address;The upgrading detection sub-module Include the version information file of release image file transmission channel address for adding the upgrading channel to receive, and according to Version information file obtains the release image file transmission address of corresponding version file, and the release image file transmission address is The version file by code stream is issued in a manner of streaming media;
    The version file acquisition module, it is connected with the release image file transmission channel address acquisition module, for basis Release image file transmission channel address acquired in the release image file transmission channel address acquisition module, add version Image file transmission channel, and receive the version file in the release image file transmission channel;
    Upgraded module, it is connected with the version file acquisition module, for the version received according to the version file acquisition module This document is upgraded.
  9. 9. system as claimed in claim 8, it is characterised in that the channel list sub-module stored is used for storage service system What is issued includes the channel list of upgrading channel, and the upgrading channel is that the version by code stream is issued in a manner of streaming media This message file;
    The version information file acquisition submodule, it is connected with the channel list sub-module stored, is adding the upgrading frequency Before road, the version information file acquisition submodule judges whether upgrading channel address is effective, if effectively, according to the liter Level channel address adds upgrading channel, and in version information file described in the upgrading CPCH reception;
    The upgrading detection sub-module, it is connected with version information file acquisition module and version file acquisition module, Before the release image file transmission channel address that corresponding version file is obtained according to version information file, upgrading detection Version information file of the module according to acquired in the version information file acquisition submodule detect the set top box whether needs Upgrading, if the set top box needs to upgrade, obtains the release image file transmission channel address in the version information file, And the release image file transmission channel address in the version information file is sent to the version file acquisition module.
  10. 10. system as claimed in claim 9, it is characterised in that the channel list includes the address of upgrading channel, the version This message file acquisition submodule includes upgrading channel address acquiring unit, upgrades channel address detection unit, version information text Part acquiring unit, wherein,
    The upgrading channel address acquiring unit, is connected with the channel list sub-module stored, for parsing the channel column The channel list that table sub-module stored is stored, obtain the upgrading channel address;
    The upgrading channel address detection unit, it is connected with the upgrading channel address acquiring unit, for detecting the upgrading Whether the address that channel address acquiring unit parses obtained upgrading channel is effective;
    The version information file acquiring unit, it is connected with the upgrading channel address detection unit, for when the upgrading frequency When track address detection unit detects that acquired upgrading channel address is effective, upgrading frequency is added according to the upgrading channel address Road, and transmitted in version information file, the version information file described in the upgrading CPCH reception comprising release image file Channel address.
  11. 11. system as claimed in claim 9, it is characterised in that the version information file includes the hardware of a variety of set top boxes Type information, the current version number of the set top box of corresponding ardware model number, and version numbers match rule, the upgrading detection sub-module Including version information file detection unit, version number's detection unit and release image file transmission channel address acquisition unit, its In,
    The version information file detection unit, it is connected with the version information file acquisition submodule, for detecting the version Whether ardware model number phase with the set top box is had in the version information file acquired in this message file acquisition submodule The content of matching, if so, then obtaining the content to match in the version information file with the ardware model number of the set top box;
    Version number's detection unit, it is connected with the version information file detection unit, for analyzing the version information text The content to match with the ardware model number of the set top box acquired in part detection unit, obtains the current version of the set top box Number, and version numbers match rule, and according to the current version number, detect whether the set top box version number of itself meets institute Version numbers match rule is stated, is such as met, it is determined that the set top box needs to upgrade, and otherwise confirms that the set top box need not rise Level;
    The release image file transmission channel address acquisition unit, is connected with version number's detection unit, for when described When version number's detection unit determines that the set top box needs upgrading, the release image file obtained in the version information file passes Defeated channel address, and the release image file transmission channel address is sent to the version file acquisition module.
  12. 12. system as claimed in claim 9, it is characterised in that the upgraded module includes pattern switching submodule, syndrome Module, edition upgrading submodule, wherein,
    Pattern switching submodule, it is connected with the upgrading detection sub-module, for detecting institute when the upgrading detection sub-module When stating set top box needs upgrading, terminate current television service based on Internet protocol, and force set top box to enter upgrade mode, and For when upgrading detection module detects that the set top box need not upgrade, exiting the upgrading channel;
    Verification submodule is connected with the pattern switching submodule and the version file acquisition module, for the pattern switching When submodule pressure set top box enters upgrade mode, whether complete the version file that the version file acquisition module is received is verified It is whole, and whether the version file is legal;
    Edition upgrading submodule is connected with verification submodule, for when verification submodule, to verify out version file complete and legal When, edition upgrading is carried out according to the version file.
  13. 13. system as claimed in claim 12, it is characterised in that the version file includes the ardware model number of set top box, institute Stating verification submodule includes data check unit and version number's comparing unit, wherein,
    The data check unit, it is connected with the version file acquisition module, for reading the cyclic redundancy school of version file Value is tested, calculates its corresponding cyclic redundancy check value further according to the version file received, and compare read version file Cyclic redundancy check value and the CRC that is calculated it is whether identical, if identical, it is determined that received data is complete It is whole, otherwise determine that received data is imperfect;
    Version number's comparing unit, it is connected with the data check unit and the version file acquisition module, for working as State data check unit verify out the version file it is complete when, judge the version file that the version file acquisition module obtains In ardware model number it is whether identical with the ardware model number of the set top box, if ardware model number in the version file and the machine The ardware model number of top box is identical, it is determined that the version file is legal;Otherwise confirm that the version file is illegal.
  14. 14. system as claimed in claim 12, it is characterised in that the upgraded module also includes upgrade server address style Judging submodule, it is connected with the version information file acquisition submodule, for when the version information file acquisition submodule When judging that the upgrading channel address is invalid, judge whether upgrade server address style corresponding to the set top box is channel Type, if so, then being upgraded using multicasting upgrading mode, otherwise upgraded using HTTP upgrade mode.
CN201110205528.9A 2011-07-21 2011-07-21 A kind of set top box upgrading method and its system Active CN102255756B (en)

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 CN102255756A (en) 2011-11-23
CN102255756B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107306275A (en) * 2016-04-18 2017-10-31 中兴通讯股份有限公司 The method and NM server of a kind of multicast upgrading terminal system
CN106375406A (en) * 2016-08-31 2017-02-01 浙江创佳数字技术有限公司 Terminal system upgrading method
WO2018112785A1 (en) * 2016-12-21 2018-06-28 深圳市瑞珀数码科技有限公司 Control method and device based on set-top box
CN106604134A (en) * 2016-12-21 2017-04-26 深圳市瑞珀数码科技有限公司 Set top box based control method and apparatus
CN109271190A (en) * 2018-10-15 2019-01-25 迈普通信技术股份有限公司 A kind of device updating method and embedded device
CN114936037B (en) * 2022-07-21 2022-12-09 天津七一二移动通信有限公司 Clamp implementation method compatible with multi-model railway CIR program upgrading

Citations (2)

* Cited by examiner, † Cited by third party
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102255756A (en) 2011-11-23

Similar Documents

Publication Publication Date Title
CN102255756B (en) A kind of set top box upgrading method and its system
US9294590B2 (en) Frame conversion apparatus for converting controller area network frame into ethernet frame and frame conversion method thereof
JP7012786B2 (en) Adaptive processing by multiple media processing nodes
CN102238434B (en) A kind of IPTV files in stream media virtual segmentation and the method and system used
US10869106B2 (en) Data transmission method and apparatus, and electronic device
CN108540834B (en) Method and apparatus for media content streaming by a client device
CN101207699B (en) Method for upgrading set-top box
CN103051976B (en) A kind of CDN distributes HLS content and method, system and equipment
CN103096128B (en) A kind of realize the method for video interactive, server, terminal and system
US8813115B2 (en) Service access method, device, and system
CN107659538A (en) A kind of method and apparatus of Video processing
CN106464944B (en) Broadcast singal sending device, broadcasting signal receiving, broadcast singal sending method and broadcast signal received method
KR20110071995A (en) Ethernet-most gateway apparatus
CA2931525C (en) Data stream identifying method and device
CN110401717A (en) A kind of application program installation kit generation method and device
KR20130056915A (en) Method and apparatus for configuring presentation of service guides
CN107077543A (en) Ownership mark, signaling and the processing of content in streaming media composition
CN103763588A (en) Stream forwarding method, device, server and system for video advertising insertion
CN112672381A (en) Data association method, device, terminal equipment and medium
CN108848106B (en) Method and device for transmitting custom data through audio stream and readable storage medium
CN103067779B (en) The update method of set-top box application program and system
CN109587517A (en) A kind of playback method and device, server and storage medium of multimedia file
CN114373449A (en) Intelligent device, server and voice interaction method
CN107517392A (en) The system and method that seamless connection plays between multithread source of media
CN110611832A (en) Program data importing method and device and server

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