CN101232562A - Method and system for updating set top box and software thereof - Google Patents

Method and system for updating set top box and software thereof Download PDF

Info

Publication number
CN101232562A
CN101232562A CNA2007100730432A CN200710073043A CN101232562A CN 101232562 A CN101232562 A CN 101232562A CN A2007100730432 A CNA2007100730432 A CN A2007100730432A CN 200710073043 A CN200710073043 A CN 200710073043A CN 101232562 A CN101232562 A CN 101232562A
Authority
CN
China
Prior art keywords
top box
upgrade
upgrade file
software
download
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.)
Pending
Application number
CNA2007100730432A
Other languages
Chinese (zh)
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics Co Ltd
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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CNA2007100730432A priority Critical patent/CN101232562A/en
Publication of CN101232562A publication Critical patent/CN101232562A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a set-top box and an upgrade method and a system thereof, wherein, the method comprises the following steps that: the position of a upgrade server of a upgrade file which is needed for the updating of the software is obtained by the set-top-box, the upgrade file can be obtained through a broken-point continuingly-transferring mechanism which is supported by the HTTP protocol, and the software can be upgraded by operating a upgraded process. The system comprises an upgrade server of the upgrade file which is needed for the updating of the set-top box software. The set-top box at least comprises a detecting unit which can sense the locating information of the upgrade file, a communication interface unit, wherein a HTTP protocol is adopted to request the upgrade server to download the upgrade file; a download decision unit, wherein the upgrade file is determined to be downloaded according to the size of the gained upgrade file, and the necessary system resources for the downloading is preserved; a upgrade service unit, which is used to operate the downloaded upgrade file to carry out the upgrading of the software of the set-top-box. The limit to the size of the cushion space of the set-top box for the upgrading of the software is eliminated; meanwhile, the time for the upgrading of the software is decreased.

Description

Set-top box and method for upgrading software thereof and system
Technical field
The present invention relates to the software upgrading of set-top box and set-top box (STB), especially relate to the set-top box and method for upgrading software and the system that utilize http protocol to carry out software upgrading.
Background technology
In recent years, the digital broadcast television technology is in the ascendant in the whole world.Along with the development of compress technique and the foundation of digital video-frequency broadcast standard, radio and television, all are in the digitized process to the whole transmission course of emission from the studio.(Set Top Box STB) as the platform of family digital information, owing to can get up the part or all of function synthesized of Digital Television, information processing even computer, therefore enters into common people's family to set-top box just day by day.
Because the function that existing set-top box provides for the user and the standard of set-top box all are in the process of continuous development and perfection, therefore, along with Virtual network operator is that the standard of increase, the set-top box of increase application service, the new function of set-top box of set-top box is modified with perfect even be damaged can not normally move the time when the software of set-top box, all need the software upgrading in the set-top box.
At present, set-top box is via system information (SI) upgrade software.Specifically, set-top box receives and analyzes SI, and according to the version number of software, manufacturer's information etc., detection can be downloaded the position of software, is tuned to this place, position frequency, finds this software data; Then, this software download is preserved to the buffering area of set-top box, call ROMPaq and begin upgrading.
Though preceding method can be realized the software upgrading of set-top box to a certain extent, but, in the aforementioned upgrade method, owing to need earlier upgrade file is begun software upgrading from calling ROMPaq after upgrade server is downloaded to set-top box fully, therefore, need be to preserve upgrade file in the set-top box and reserve the buffering area that the space is bigger, the memory space of set-top box is had higher requirement; In addition, the aforementioned escalation process time is longer, even needs the user to lose time to wait for the upgrading of software.
Summary of the invention
The objective of the invention is to propose a kind of set-top box and method for upgrading software thereof and system, spatial cache is required technical problem high, that update time is long to solve updating set-top box software.
For solving technical problem of the present invention, the present invention discloses a kind of method for updating set-top box software, comprising:
Set-top box is obtained upgrade file by the breakpoint transmission mechanism of http protocol support behind the upgrade server position that obtains the required upgrade file place of software upgrading, and moves ROMPaq simultaneously and carry out software upgrading.
Wherein, the described set-top box step of obtaining upgrade file specifically comprises:
It is the request message of HEAD that A, set-top box send request row territory to upgrade server, and upgrade server sends to set-top box and is response message, and set-top box is obtained the size information of upgrade file;
B, set-top box decision-making downloading mode are reserved the system resource of preparing the download and upgrade file;
It is the request message of GET that C, set-top box send request row territory to upgrade server, and upgrade server sends to set-top box and is response message, and set-top box begins to download the upgrade file part of being asked;
D, judge whether to download and finish, if not, then change step C over to, otherwise, process ends.
Wherein, in the described steps A, the size information of described upgrade file is included in the entity header field of response message.
Wherein, among the described step C, comprise in the request header field of described request message that the expression set-top box wishes the Range field information that where begins to download from upgrade file.
Wherein, the structure of described request message comprises: request row territory, general information header field, request header field, entity header field and main body of the packet territory.
Wherein, the structure of described message response comprises: statusline territory, general information header field, response header field, entity header field and main body of the packet territory.
Accordingly, the present invention discloses a kind of updating set-top box software system, comprise storing the upgrade server that is used for the required upgrade file of updating set-top box software, and the set-top box that is connected with described upgrade server;
Wherein, described upgrade server comprises at least:
Memory cell, storage is used for the required upgrade file of updating set-top box software;
Communications interface unit adopts http protocol, sends the request that response message responder top box sends;
Described set-top box comprises at least:
Detecting unit is used for the positional information that the required upgrade file of software upgrading is carried out in perception;
Communications interface unit adopts http protocol, sends request message to described upgrade server, obtains the size information of upgrade file, and to described upgrade server request download and upgrade file;
Download decision package, according to the size information of the upgrade file that obtains, decision-making download and upgrade file, and reserve and download necessary system resource;
The upgrade service unit, the upgrade file that operation is downloaded carries out the software upgrading of set-top box.
Wherein, described set-top box comprises to the request message that described upgrade server sends: be used to obtain the upgrade file size information, its request row territory is the request message of HEAD; And, being used for the download and upgrade file, its request row territory is the request message of GET.
Wherein, described request row territory is in the request message of GET, comprises that the expression set-top box wishes the Range field information that where begins to download from upgrade file.
Accordingly, the present invention discloses a kind of set-top box, comprising:
Detecting unit is used for the positional information that the required upgrade file of software upgrading is carried out in perception;
Communications interface unit adopts http protocol, sends request message to described upgrade server, obtains the size information of upgrade file, and to described upgrade server request download and upgrade file;
Download decision package, according to the size information of the upgrade file that obtains, decision-making download and upgrade file, and reserve and download necessary system resource;
The upgrade service unit, the upgrade file that operation is downloaded carries out the software upgrading of set-top box.
Compared with prior art, the present invention has following beneficial effect:
1, the present invention is by adopting the breakpoint transmission mechanism based on http protocol, send in " request header " territory of the request message that obtains file to upgrade server in set-top box, add the Range field, define the part of obtaining file, download several times and obtain upgrade file, therefore, during upgrade software of the present invention, size requirements to the cushion space of preserving upgrade file reduces, and eliminates the restriction of software upgrading to the size requirements of set-top box cushion space greatly;
2 and, because in file in download, start ROMPaq, move downloaded files and partly carry out software upgrading, therefore, when the user uses some function of set-top box, start software upgrading synchronously to set-top box, can save the time of software upgrading.
Description of drawings
Fig. 1 is the schematic flow sheet of a preferred embodiment of the inventive method;
Fig. 2 is the structural representation of a preferred embodiment of system of the present invention.
Embodiment
The present invention is intended to utilize based on HTML (Hypertext Markup Language) (Hypertext Transfer Protocol, HTTP) the continuous mechanism that passes of the agreement point of interruption, the software of upgrading set top box, utilize http protocol succinctly, advantage fast, and the breakpoint transmission mechanism of supporting, when upgrade server obtains upgrade file, call ROMPaq and begin upgrading, to reduce required big cushion space of upgrade software and update time.
Elaborate specific implementation of the present invention for ease of next step, at first, be necessary simply to introduce the principle and the framework of http protocol.
Http protocol is an application layer protocol, because it is simple and direct, mode fast, it is widely used in the global information service system.Simultaneously, HTTP is a kind of agreement of request formula.The HTTP message has two kinds: by the request message from the client computer to the server; Response message from the server to client machine.
Wherein, the request message form is as follows:
The request row General information header Request header The entity head Main body of the packet
The response message form is as follows:
Statusline General information header Head response The entity head Main body of the packet
After client computer and server connect, send a request message to server; After server is received request, send response message to client computer.
And " breakpoint transmission " is exactly to begin to continue to download in the last position that disconnects when once downloading.In http protocol, can in the request header field of request message, add the Range field, the expression client computer wishes to download from the continuation where of file.
Wherein, have only HTTP 1.1 protocol version supports " breakpoint transmission ", protocol version was not supported " breakpoint transmission " before HTTP 1.0 reached.Therefore, the http protocol of indication of the present invention is meant HTTP 1.1 release protocol.
Please refer to shown in Figure 1ly, be the schematic flow sheet of a preferred embodiment of the software approach of upgrading set top box of the present invention.
The invention reside in set-top box by obtaining and after analytical system information modes such as (SI) knows the position of place upgrade server of upgrade file, may further comprise the steps:
Step S110: it is the request message of HEAD that set-top box sends " request row " territory to upgrade server, the information such as size of acquisition request upgrade file.
Wherein, Head is meant in the request message, one of " method (Method) " in " request row " territory, the head or the header message of expression request reading object." method " expression specific operation that requested object carried out of request row, " method " of request row commonly used also comprises:
The GET method, requested object is read in expression, such as, a webpage;
The POST method, the entity that expression request acceptance is added, such as, a record is appended in the database.
Among the above-mentioned steps S110, a typical request message can be expressed as follows:
HEAD/Upgrade.zip?HTTP/1.1
Accept:*/*
Referer:http://192.168.200.1
Host:192.168.200.1:80
User-Agent:COSHIP?HTTP?Client?1.1
Annotate: Upgrade.zip represents upgrade file.
Step S120: upgrade server sends response message behind the request message of receiving set up box, makes set-top box can obtain the size information of upgrade file.
Specifically, the typical format of a response message is as follows:
HTTP/1.1?200?OK
Date:Tue,09?Jan?2007?06:15:50?GMT
Server:Apache/2.0.52
Content-Length:6144
Connection:close
Content-Type:text/html;charset=UTF-8
Wherein, the size information of described upgrade file is included in the entity header field of response message, in the promptly above-mentioned response message: Content-Length:6144
Step S130: set-top box is made and is downloaded decision-making according to the upgrade file size information obtained, comprising: specifically how the download and upgrade file, divide download and upgrade file, the great cushion space of application etc. several times; And the necessary system resource of reservation download and upgrade file.
Such as, the size of upgrade file is 6M, and then this decision process can determine, divides 6 times the download and upgrade file, adopts the breakpoint transmission mechanism of http protocol, and the size of at every turn downloading the application documents part is 1M.
Step S140: according to the decision-making of step S130, sending " request row " territory to upgrade server is the request message of GET method, and the request download section is divided the upgrading file.
The realization key of this step is, in " request header " territory of this request message, adds the Range field, represents that set-top box wishes the download and upgrade file from upgrade file where/continue.
Such as, the size of a download and upgrade file is 1M, then first request message can be expressed as follows:
GET/Upgrade.zip?HTTP/1.1
Accept:*/*
Referer:http://192.168.200.1
Host:192.168.200.1:80
User-Agent:COSHIP?HTTP?Client?1.1
range:bytes=0-1023
Step S150: the upgrade server response, send response message, asked the part upgrade file of downloading to set-top box transfer step S140 with the beginning of breakpoint transmission mechanism.
Response message is as follows:
HTTP/1.1?206?Partial?Content
Date:Tue,09?Jan?2007?06:15:54?GMT
Server:Apache/2.0.52(Red?Hat)
Last-Modified:Thu,23?Nov?2006?07:34:32?GMT
ETag:″2f9568-2634f-192bd200″
Accept-Ranges:bytes
Content-Length:1024
Content-Range:bytes?0-1023/6144
Connection:close
Content-Type:application/zip
Set-top box has been obtained the 1M part of upgrade file.
Step S160: judging whether upgrade file is downloaded finishes, and finishes if download, then finish, otherwise, change step S140 over to and continue to download.
Accordingly, the present invention also discloses a kind of updating set-top box software system based on breakpoint transmission mechanism, sees also shown in Figure 2ly, is the structural representation of a preferred embodiment of native system.
Native system comprises the upgrade server 220 that stores the required upgrade file of the software upgrading that is used for set-top box 210, and the set-top box 210 that is connected with described upgrade server 220;
Wherein, described upgrade server 220 comprises at least:
Memory cell 221, storage is used for the required upgrade file of updating set-top box software;
Communications interface unit 222 adopts http protocol, sends the request that response message responder top box 210 sends;
Wherein, described set-top box 210 comprises at least:
Detecting unit 211 is used for the positional information that the required upgrade file of software upgrading is carried out in perception;
Communications interface unit 212 adopts http protocol, sends request message to described upgrade server 220, obtains the size information of upgrade file, and to described upgrade server 220 request download and upgrade files;
Download decision package 213, according to the size information of the upgrade file that obtains, decision-making download and upgrade file, and reserve and download necessary system resource;
Upgrade service unit 214, the upgrade file that operation is downloaded carries out the software upgrading of set-top box.
Wherein, described set-top box 210 comprises to the request message that described upgrade server 220 sends: be used to obtain the upgrade file size information, its request row territory is the request message of HEAD; And, being used for the download and upgrade file, its request row territory is the request message of GET.Described request row territory is in the request message of GET, comprises that the expression set-top box wishes the Range field information that where begins to download from upgrade file.
The size information of described upgrade file is included in the entity header field of response message.
Thus, the present invention sends in " request header " territory of the request message that obtains file to upgrade server in set-top box by adopting the breakpoint transmission mechanism based on http protocol, adds the Range field, define the part of obtaining file, download several times and obtain upgrade file; And, in file in download, start ROMPaq, move downloaded files and partly carry out software upgrading.Therefore, during upgrade software of the present invention, the size requirements of the cushion space of preserving upgrade file is reduced, eliminate the restriction of software upgrading greatly the size requirements of set-top box cushion space; In addition,, can when the user uses some function of set-top box, start software upgrading synchronously, can save the time of software upgrading set-top box owing to adopt breakpoint transmission mechanism.
Certainly, the present invention also is applicable to other application of set-top box, such as, obtain application data from network, as mp3 file, be not described in detail in this.

Claims (10)

1. a method for updating set-top box software is characterized in that, comprising:
Set-top box is obtained upgrade file by the breakpoint transmission mechanism of http protocol support behind the upgrade server position that obtains the required upgrade file place of software upgrading, and moves ROMPaq simultaneously and carry out software upgrading.
2. method for updating set-top box software according to claim 1 is characterized in that, the step that described set-top box is obtained upgrade file specifically comprises:
It is the request message of HEAD that A, set-top box send request row territory to upgrade server, and upgrade server sends to set-top box and is response message, and set-top box is obtained the size information of upgrade file;
B, set-top box decision-making downloading mode are reserved the system resource of preparing the download and upgrade file;
It is the request message of GET that C, set-top box send request row territory to upgrade server, and upgrade server sends to set-top box and is response message, and set-top box is downloaded the upgrade file of institute's requested part in the breakpoint transmission mode;
D, judge whether to download and finish, if not, then change step C over to, otherwise, process ends.
3. method for updating set-top box software according to claim 2 is characterized in that, in the described steps A, the size information of described upgrade file is included in the entity header field of response message.
4. method for updating set-top box software according to claim 2 is characterized in that, among the described step C, comprises in the request header field of described request message that the expression set-top box wishes the Range field information that where begins to download from upgrade file.
5. according to each described method for updating set-top box software of claim 1 to 4, it is characterized in that the structure of described request message comprises: request row territory, general information header field, request header field, entity header field and main body of the packet territory.
6. according to each described method for updating set-top box software of claim 1 to 4, it is characterized in that the structure of described message response comprises: statusline territory, general information header field, response header field, entity header field and main body of the packet territory.
7. a updating set-top box software system is characterized in that, comprise storing the upgrade server that is used for the required upgrade file of updating set-top box software, and the set-top box that is connected with described upgrade server;
Wherein, described upgrade server comprises at least:
Memory cell, storage is used for the required upgrade file of updating set-top box software;
Communications interface unit adopts http protocol, sends the request that response message responder top box sends;
Described set-top box comprises at least:
Detecting unit is used for the positional information that the required upgrade file of software upgrading is carried out in perception;
Communications interface unit adopts http protocol, sends request message to described upgrade server, obtains the size information of upgrade file, and to described upgrade server request download and upgrade file;
Download decision package, according to the size information of the upgrade file that obtains, decision-making download and upgrade file, and reserve and download necessary system resource;
The upgrade service unit, the upgrade file that operation is downloaded carries out the software upgrading of set-top box.
8. updating set-top box software according to claim 7 system is characterized in that described set-top box comprises to the request message that described upgrade server sends: be used to obtain the upgrade file size information, its request row territory is the request message of HEAD; And, being used for the download and upgrade file, its request row territory is the request message of GET.
9. updating set-top box software according to claim 8 system is characterized in that described request row territory is in the request message of GET, comprises that the expression set-top box wishes the Range field information that where begins to download from upgrade file.
10. set-top box is characterized in that it comprises:
Detecting unit is used for the positional information that the required upgrade file of software upgrading is carried out in perception;
Communications interface unit adopts http protocol, sends request message to described upgrade server, obtains the size information of upgrade file, and to described upgrade server request download and upgrade file;
Download decision package, according to the size information of the upgrade file that obtains, decision-making download and upgrade file, and reserve and download necessary system resource;
The upgrade service unit, the upgrade file that operation is downloaded carries out the software upgrading of set-top box.
CNA2007100730432A 2007-01-25 2007-01-25 Method and system for updating set top box and software thereof Pending CN101232562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100730432A CN101232562A (en) 2007-01-25 2007-01-25 Method and system for updating set top box and software thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100730432A CN101232562A (en) 2007-01-25 2007-01-25 Method and system for updating set top box and software thereof

Publications (1)

Publication Number Publication Date
CN101232562A true CN101232562A (en) 2008-07-30

Family

ID=39898719

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100730432A Pending CN101232562A (en) 2007-01-25 2007-01-25 Method and system for updating set top box and software thereof

Country Status (1)

Country Link
CN (1) CN101232562A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547452A (en) * 2011-12-27 2012-07-04 中兴通讯股份有限公司 Method and device for downloading image files and set top box
CN102547441A (en) * 2012-03-02 2012-07-04 山东泰信电子有限公司 Method for localizing digital television terminal
CN102572537A (en) * 2012-03-02 2012-07-11 山东泰信电子有限公司 Method and system for realizing cross-regional use of digital television terminal
CN102981871A (en) * 2012-11-06 2013-03-20 深圳市同洲电子股份有限公司 Application installation method and device and terminal
CN104253816A (en) * 2014-09-25 2014-12-31 武汉传神信息技术有限公司 HTTP (hyper text transport protocol)-based large file page breakpoint resuming method
CN105915362A (en) * 2015-11-09 2016-08-31 乐视致新电子科技(天津)有限公司 Method for controlling system upgrading according to version information and device thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547452A (en) * 2011-12-27 2012-07-04 中兴通讯股份有限公司 Method and device for downloading image files and set top box
CN102547452B (en) * 2011-12-27 2017-11-28 中兴通讯股份有限公司 Method for down loading and device, the set top box of image file
CN102547441A (en) * 2012-03-02 2012-07-04 山东泰信电子有限公司 Method for localizing digital television terminal
CN102572537A (en) * 2012-03-02 2012-07-11 山东泰信电子有限公司 Method and system for realizing cross-regional use of digital television terminal
CN102981871A (en) * 2012-11-06 2013-03-20 深圳市同洲电子股份有限公司 Application installation method and device and terminal
CN104253816A (en) * 2014-09-25 2014-12-31 武汉传神信息技术有限公司 HTTP (hyper text transport protocol)-based large file page breakpoint resuming method
CN105915362A (en) * 2015-11-09 2016-08-31 乐视致新电子科技(天津)有限公司 Method for controlling system upgrading according to version information and device thereof

Similar Documents

Publication Publication Date Title
JP6276593B2 (en) Receiving apparatus, receiving method, and program
US10958986B2 (en) Reception apparatus, terminal apparatus, control method, program, and communication system
CN105933084B (en) Receiving device, method of reseptance and program
US9560312B2 (en) Time synchronization of video and data inside a mobile device
EP1550310B1 (en) Method and system for emulating an http server through a broadcast carousel
US9300896B2 (en) Method, computer-readable storage medium, reception apparatus, and information providing apparatus for identifying available channels and/or services
CA2836211C (en) Reception apparatus, terminal apparatus, control method, program, and communication system
EP2775707B1 (en) Information processing device, information processing method
KR20140119699A (en) Receiving device, receiving method, program, and information processing system
CN101232562A (en) Method and system for updating set top box and software thereof
US20100211651A1 (en) Method and system for multimedia file transfer to a mobile device
EP1775913B1 (en) Method for controlling multimedia middleware apparatus using metadata
CN102055718B (en) Method, device and system for layering request content in http streaming system
CN104509069A (en) Techniques to support selective mobile content optimization
EP2869533B1 (en) Data distribution method and device
US20060176878A1 (en) Method and system for transmitting a multimedia message
CN104618801B (en) Method, system and the set-top box of mobile phone and set-top box combined operating application program
CN101304494B (en) Method and system for data communication of digital television
EP2987334B1 (en) Method and apparatus for transmitting and receiving additional information in a broadcast communication system
CN106604077B (en) Self-adaptive streaming media transmission method and device
EP2880787B1 (en) Method and apparatus of providing broadcasting and communication convergence service
CN101272204B (en) Electric service instruction updating method and its terminal
EP2884757A1 (en) Internet protocol television content synchronization method and system
EP2675179A2 (en) Server-based profile generating and management methods, system and apparatus
US20070073900A1 (en) Parsing apparatus and method for shortening download time delay of data broadcasting application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080730