CN107547591A - Upgrade server, set top box, set top box upgrading file delivery method and system - Google Patents

Upgrade server, set top box, set top box upgrading file delivery method and system Download PDF

Info

Publication number
CN107547591A
CN107547591A CN201610481350.3A CN201610481350A CN107547591A CN 107547591 A CN107547591 A CN 107547591A CN 201610481350 A CN201610481350 A CN 201610481350A CN 107547591 A CN107547591 A CN 107547591A
Authority
CN
China
Prior art keywords
top box
download
set top
file
upgrade
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
CN201610481350.3A
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.)
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 CN201610481350.3A priority Critical patent/CN107547591A/en
Priority to PCT/CN2017/085463 priority patent/WO2018000997A1/en
Publication of CN107547591A publication Critical patent/CN107547591A/en
Pending legal-status Critical Current

Links

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41—Structure of client; Structure of client peripherals
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41—Structure of client; Structure of client peripherals
    • H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例提供了一种升级服务器、机顶盒、机顶盒升级文件下发方法及系统,该方法包括:接收机顶盒发起的前台文件下载请求;判断运行参数是否满足前台下载请求;若不满足,则向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求。本发明实施例实现了根据运行参数,对前台下载请求进行管理的目的,实现了前台下载与后台下载动态配合的技术,而不会如现有技术那样为所有的前台下载请求都提供前台下载服务,也不会出现现有机顶盒全部采用前台下载模式导致使用高峰下载速度受限的问题,增强了用户的使用体验。

An embodiment of the present invention provides an upgrade server, a set-top box, and a method and system for issuing an upgrade file to a set-top box. The method includes: receiving a foreground file download request initiated by the set-top box; judging whether the operating parameters meet the foreground download request; The set-top box returns background download trigger information, and the background download trigger information is used to trigger the set-top box to periodically initiate a background file download request. The embodiment of the present invention achieves the purpose of managing the foreground download request according to the operating parameters, realizes the technology of dynamic cooperation between the foreground download and the background download, and does not provide the foreground download service for all the foreground download requests as in the prior art , and there will be no problem that the existing set-top boxes all adopt the foreground download mode, which will lead to the problem of limited download speed during peak usage, which enhances the user experience.

Description

升级服务器、机顶盒、机顶盒升级文件下发方法及系统Upgrade server, set-top box, set-top box upgrade file delivery method and system

技术领域technical field

本发明涉及机顶盒应用领域,尤其涉及一种升级服务器、机顶盒、机顶盒升级文件下发方法及系统。The invention relates to the application field of set-top boxes, in particular to an upgrade server, a set-top box, and a method and system for issuing an upgrade file of the set-top box.

背景技术Background technique

近年来,网络机顶盒的出货量持续增长,终端软件版本更新和维护的压力也随之增大,新版本发布以后,用户尽早完成更新才可以获得更好用户体验和服务。In recent years, the shipments of network set-top boxes have continued to grow, and the pressure to update and maintain terminal software versions has also increased. After a new version is released, users must complete the update as soon as possible to obtain better user experience and services.

在实际应用中,升级服务器由于受硬件和带宽资源的约束,如果是在高峰期用户都去去升级版本,可能会影响观看视频,而且大家都在抢占带宽,升级效率也会比较低。现有技术全部部署为前台升级,不限制下载速度,不在高峰期还好,软件版本包很快就可以下载完成,但是,如果是机顶盒使用高峰,平均下来的一个终端的下载速度就会非常有限,就会对用户的使用造成一定影响。In practical applications, the upgrade server is limited by hardware and bandwidth resources. If users upgrade the version during the peak period, it may affect watching videos, and everyone is grabbing bandwidth, so the upgrade efficiency will be relatively low. The existing technologies are all deployed as front-end upgrades, and the download speed is not limited. It is okay not during the peak period, and the software version package can be downloaded quickly. However, if it is the peak use of the set-top box, the average download speed of a terminal will be very limited. , it will have a certain impact on the user's use.

发明内容Contents of the invention

本发明实施例提供了一种升级服务器、机顶盒、机顶盒升级文件下发方法及系统,以解决现有机顶盒全部采用前台下载模式导致使用高峰下载速度受限的问题。Embodiments of the present invention provide an upgrade server, a set-top box, and a method and system for issuing an upgrade file of a set-top box, so as to solve the problem that the peak download speed of the existing set-top boxes is limited due to the use of the foreground download mode.

一方面,提供了一种机顶盒升级文件下发方法,包括:On the one hand, a method for delivering an upgrade file of a set-top box is provided, including:

接收机顶盒发起的前台文件下载请求;Receive the foreground file download request initiated by the set-top box;

判断运行参数是否满足前台下载请求;Determine whether the running parameters meet the foreground download request;

若不满足,则向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求。If not satisfied, background download trigger information is returned to the set-top box, and the background download trigger information is used to trigger the set-top box to periodically initiate a background file download request.

一方面,提供了一种机顶盒升级文件下发方法,包括:On the one hand, a method for delivering an upgrade file of a set-top box is provided, including:

接收升级服务器发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识;Receive the rule file sent by the upgrade server, the rule file carries the version parameter for the set-top box to judge whether there is a new version, and the upgrade type identifier for the set-top box to judge whether the upgrade server supports the download adaptive background upgrade function;

若根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器发送前台文件下载请求;If it is determined according to the rule file that there is a new version of the set-top box upgrade file, and the upgrade server supports downloading the adaptive background upgrade function, then a foreground file download request is sent to the upgrade server;

若接收到升级服务器发送的后台下载触发信息,则向升级服务器发送后台文件下载请求。If the background download trigger information sent by the upgrade server is received, a background file download request is sent to the upgrade server.

一方面,提供了一种机顶盒升级文件下发方法,包括:On the one hand, a method for delivering an upgrade file of a set-top box is provided, including:

机顶盒接收升级服务器发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识,根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器发送前台文件下载请求;The set-top box receives the rule file sent by the upgrade server. The rule file carries the version parameters used for the set-top box to judge whether there is a new version, and the upgrade type identifier for the set-top box to judge whether the upgrade server supports the download adaptive background upgrade function. According to the rule file, it is determined that there is a new version. version of the set-top box upgrade file, and the upgrade server supports downloading the adaptive background upgrade function, then send a foreground file download request to the upgrade server;

升级服务器接收前台文件下载请求,判断运行参数是否满足前台下载请求,若不满足,则向机顶盒返回后台下载触发信息;The upgrade server receives the foreground file download request, judges whether the operating parameters meet the foreground download request, and if not, returns the background download trigger information to the set-top box;

机顶盒接收后台下载触发信息,向升级服务器发送后台文件下载请求。The set-top box receives background download trigger information, and sends a background file download request to the upgrade server.

一方面,提供了一种升级服务器,包括:In one aspect, an upgrade server is provided, including:

请求接收模块,用于接收机顶盒发起的前台文件下载请求;The request receiving module is used for receiving the foreground file download request initiated by the top box;

请求处理模块,用于判断运行参数是否满足前台下载请求,若不满足,则向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求。The request processing module is used to judge whether the operating parameters meet the foreground download request, and if not, return the background download trigger information to the set-top box, and the background download trigger information is used to trigger the set-top box to periodically initiate a background file download request.

一方面,提供了一种机顶盒,包括:In one aspect, a set-top box is provided, comprising:

文件接收模块,用于接收升级服务器发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识;还用于在升级服务器的控制下接收机顶盒升级文件;The file receiving module is used to receive the rule file sent by the upgrade server, and the rule file carries the version parameter for the set-top box to judge whether there is a new version, and the upgrade type identifier for the set-top box to judge whether the upgrade server supports the download adaptive background upgrade function; For receiving the upgrade file of the set-top box under the control of the upgrade server;

请求发送模块,用于若根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器发送前台文件下载请求;若接收到升级服务器发送的后台下载触发信息,则向升级服务器发送后台文件下载请求。The request sending module is used to send a foreground file download request to the upgrade server if it is determined that there is a new version of the set-top box upgrade file according to the rule file, and the upgrade server supports downloading the adaptive background upgrade function; if the background download trigger sent by the upgrade server is received information, a background file download request is sent to the upgrade server.

一方面,提供了一种机顶盒升级文件下发系统,包括:本发明实施例提供的机顶盒、以及升级服务器。In one aspect, a system for delivering an upgrade file of a set-top box is provided, including: the set-top box provided by the embodiment of the present invention, and an upgrade server.

另一方面,提供了一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行前述的机顶盒升级文件下发方法。In another aspect, a computer storage medium is provided, wherein computer executable instructions are stored in the computer storage medium, and the computer executable instructions are used to execute the aforementioned method for delivering an upgrade file to a set-top box.

本发明实施例的有益效果:The beneficial effects of the embodiments of the present invention:

本发明实施例提供了一种机顶盒升级文件下发方法,在接收机顶盒发起的前台文件下载请求,先判断运行参数是否满足前台下载请求,在不满足时,向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求;这样就实现了根据运行参数,对前台下载请求进行管理的目的,实现了前台下载与后台下载动态配合的技术,而不会如现有技术那样为所有的前台下载请求都提供前台下载服务,也不会出现现有机顶盒全部采用前台下载模式导致使用高峰下载速度受限的问题,增强了用户的使用体验。The embodiment of the present invention provides a set-top box upgrade file delivery method. When the foreground file download request is initiated by the receiver top box, it is first judged whether the operating parameters meet the foreground download request. If not, the background download trigger information is returned to the set-top box, and the background download The trigger information is used to trigger the set-top box to periodically initiate a background file download request; in this way, the purpose of managing the foreground download request according to the operating parameters is realized, and the technology of dynamic cooperation between the foreground download and the background download is realized, and it will not be like the existing The technology provides foreground download service for all foreground download requests, and there will be no problem that the existing set-top boxes all adopt the foreground download mode, which leads to the limitation of peak download speed, which enhances the user experience.

附图说明Description of drawings

图1为本发明第一实施例提供的机顶盒升级文件下发方法的流程图;Fig. 1 is the flow chart of the set-top box upgrade file issuing method provided by the first embodiment of the present invention;

图2为本发明第二实施例提供的机顶盒升级文件下发系统的结构示意图;FIG. 2 is a schematic structural diagram of a set-top box upgrade file distribution system provided by a second embodiment of the present invention;

图3是本发明第三实施例提供的通信终端的结构示意图;FIG. 3 is a schematic structural diagram of a communication terminal provided by a third embodiment of the present invention;

图4是本发明第三实施例提供的升级文件下发方法的流程图。Fig. 4 is a flowchart of a method for delivering an upgrade file according to the third embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本发明中一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

现通过具体实施方式结合附图的方式对本发明做出进一步的诠释说明。The present invention will be further explained by means of specific embodiments in combination with the accompanying drawings.

第一实施例:First embodiment:

图1为本发明第一实施例提供的机顶盒升级文件下发方法的流程图,由图1可知,本实施例提供的机顶盒升级文件下发方法包括:Fig. 1 is the flow chart of the set-top box upgrade file distribution method provided by the first embodiment of the present invention, as can be seen from Fig. 1, the set-top box upgrade file distribution method provided by the present embodiment comprises:

S101:机顶盒接收升级服务器发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识;S101: The set-top box receives the rule file sent by the upgrade server, and the rule file carries a version parameter for the set-top box to judge whether there is a new version, and an upgrade type identifier for the set-top box to judge whether the upgrade server supports the download adaptive background upgrade function;

S102:机顶盒根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器发送前台文件下载请求;S102: The set-top box determines that there is a new version of the set-top box upgrade file according to the rule file, and the upgrade server supports the download adaptive background upgrade function, then sends a foreground file download request to the upgrade server;

S103:升级服务器接收前台文件下载请求,判断运行参数是否满足前台下载请求,若不满足,则向机顶盒返回后台下载触发信息;S103: The upgrade server receives the foreground file download request, judges whether the operating parameters meet the foreground download request, and returns background download trigger information to the set-top box if not;

S104:机顶盒接收后台下载触发信息,向升级服务器发送后台文件下载请求。S104: The set-top box receives background download trigger information, and sends a background file download request to the upgrade server.

图1所示实施例给出了系统的工作方法,现针对该方法在机顶盒及升级服务器两侧的体现分别进行描述。The embodiment shown in FIG. 1 provides the working method of the system, and the embodiment of the method on both sides of the set-top box and the upgrade server will be described respectively.

在一些实施例中,图1所示实施例中的机顶盒升级文件下发方法在升级服务器侧的体现包括:In some embodiments, the embodiment of the set-top box upgrade file delivery method in the embodiment shown in FIG. 1 on the upgrade server side includes:

接收机顶盒发起的前台文件下载请求;Receive the foreground file download request initiated by the set-top box;

判断运行参数是否满足前台下载请求;Determine whether the running parameters meet the foreground download request;

若不满足,则向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求。If not satisfied, background download trigger information is returned to the set-top box, and the background download trigger information is used to trigger the set-top box to periodically initiate a background file download request.

在一些实施例中,上述实施例中的运行参数包括前台下载链接数;判断运行参数是否满足前台下载请求包括:In some embodiments, the operating parameters in the above embodiments include the number of foreground download links; judging whether the operating parameters meet the foreground download request includes:

获取当前使用前台下载机顶盒升级文件的前台下载链接数;Obtain the number of foreground download links currently using the foreground to download the STB upgrade file;

判断前台下载链接数是否低于前台链接数阈值;Determine whether the number of download links in the foreground is lower than the threshold of the number of foreground links;

若是,则运行参数满足前台下载请求,控制机顶盒通过前台升级版本地址下载机顶盒升级文件;If so, the operating parameters meet the download request of the foreground, and the set-top box is controlled to download the upgrade file of the set-top box through the upgrade version address of the foreground;

若否,则运行参数不满足前台下载请求,则向机顶盒返回后台下载标识。If not, the operating parameters do not meet the foreground download request, and the background download identifier is returned to the set-top box.

在一些实施例中,上述实施例中的机顶盒升级文件下发方法还包括:In some embodiments, the method for delivering the set-top box upgrade file in the above embodiments further includes:

接收机顶盒发起的后台文件下载请求;Receive the background file download request initiated by the set-top box;

获取当前使用后台下载机顶盒升级文件的后台下载链接数;Obtain the number of background download links currently used to download the STB upgrade file in the background;

判断后台下载链接数是否低于后台链接数阈值;Determine whether the number of background download links is lower than the background link number threshold;

若是,则控制机顶盒通过后台升级版本地址下载机顶盒升级文件;If so, then control the set-top box to download the set-top box upgrade file through the background upgrade version address;

若否,则向机顶盒返回后台下载标识。If not, return the background downloading identifier to the set-top box.

在一些实施例中,上述实施例中的机顶盒升级文件下发方法还包括:In some embodiments, the method for delivering the set-top box upgrade file in the above embodiments further includes:

部署机顶盒升级文件的前台升级版本地址、后台升级版本地址及自适应后台升级标识;Deploy the foreground upgrade version address, background upgrade version address and adaptive background upgrade logo of the set-top box upgrade file;

向机顶盒发送规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识。Send the rule file to the set-top box, and the rule file carries the version parameter used for the set-top box to judge whether there is a new version, and the upgrade type identifier used for the set-top box to judge whether the upgrade server supports the download adaptive background upgrade function.

在一些实施例中,图1所示实施例中的机顶盒升级文件下发方法在机顶盒侧的体现包括:In some embodiments, the embodiment of the set-top box upgrade file distribution method in the embodiment shown in FIG. 1 on the set-top box side includes:

接收升级服务器发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识;Receive the rule file sent by the upgrade server, the rule file carries the version parameter for the set-top box to judge whether there is a new version, and the upgrade type identifier for the set-top box to judge whether the upgrade server supports the download adaptive background upgrade function;

若根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器发送前台文件下载请求;If it is determined according to the rule file that there is a new version of the set-top box upgrade file, and the upgrade server supports downloading the adaptive background upgrade function, then a foreground file download request is sent to the upgrade server;

若接收到升级服务器发送的后台下载触发信息,则向升级服务器发送后台文件下载请求。If the background download trigger information sent by the upgrade server is received, a background file download request is sent to the upgrade server.

第二实施例:Second embodiment:

图2为本发明第二实施例提供的机顶盒升级文件下发的结构示意图,由图2可知,本实施例提供的机顶盒升级文件下发包括:升级服务器1及机顶盒2,其中,Fig. 2 is a schematic structural diagram of the delivery of the set-top box upgrade file provided by the second embodiment of the present invention. As can be seen from Fig. 2, the delivery of the set-top box upgrade file provided by the present embodiment includes: an upgrade server 1 and a set-top box 2, wherein,

机顶盒2用于接收升级服务器1发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识;根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器1发送前台文件下载请求;The set-top box 2 is used to receive the rule file sent by the upgrade server 1, and the rule file carries the version parameter used for the set-top box to judge whether there is a new version, and the upgrade type identification for the set-top box to judge whether the upgrade server supports downloading the adaptive background upgrade function; according to the rule The file determines that there is a new version of the set-top box upgrade file, and the upgrade server supports downloading the adaptive background upgrade function, and then sends a foreground file download request to the upgrade server 1;

升级服务器1用于接收前台文件下载请求,判断运行参数是否满足前台下载请求,若不满足,则向机顶盒2返回后台下载触发信息;The upgrade server 1 is used to receive the foreground file download request, and judges whether the operating parameters meet the foreground download request, and if not, returns the background download trigger information to the set-top box 2;

机顶盒2用于接收后台下载触发信息,向升级服务器1发送后台文件下载请求。The set-top box 2 is used for receiving background download trigger information, and sending a background file download request to the upgrade server 1 .

如图2所示,一些实施例提供的升级服务器1包括:As shown in Figure 2, the upgrade server 1 provided by some embodiments includes:

请求接收模块11,用于接收机顶盒发起的前台文件下载请求;Request receiving module 11, is used for the foreground file download request that receiver top box initiates;

请求处理模块12,用于判断运行参数是否满足前台下载请求,若不满足,则向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求。Request processing module 12, is used for judging whether running parameter meets foreground download request, if not satisfied, then back background download trigger information to set-top box, background download trigger information is used for triggering set-top box to initiate background file download request periodically.

在一些实施例中,上述实施例中的运行参数包括前台下载链接数;请求处理模块12用于获取当前使用前台下载机顶盒升级文件的前台下载链接数,判断前台下载链接数是否低于前台链接数阈值,若是,则运行参数满足前台下载请求,控制机顶盒通过前台升级版本地址下载机顶盒升级文件,若否,则运行参数不满足前台下载请求,则向机顶盒返回后台下载标识。In some embodiments, the operating parameters in the foregoing embodiments include the number of download links in the foreground; the request processing module 12 is used to obtain the number of download links in the foreground currently using the foreground to download the set-top box upgrade file, and judge whether the number of download links in the foreground is lower than the number of links in the foreground Threshold, if so, the operating parameters meet the foreground download request, control the set-top box to download the set-top box upgrade file through the foreground upgrade version address, if not, then the operating parameters do not meet the foreground download request, then return the background download identification to the set-top box.

在一些实施例中,上述实施例中的请求接收模块11用于接收机顶盒发起的后台文件下载请求,请求处理模块12用于获取当前使用后台下载机顶盒升级文件的后台下载链接数,判断后台下载链接数是否低于后台链接数阈值,若是,则控制机顶盒通过后台升级版本地址下载机顶盒升级文件,若否,则向机顶盒返回后台下载标识。In some embodiments, the request receiving module 11 in the above-mentioned embodiment is used to receive the background file download request initiated by the top box, and the request processing module 12 is used to obtain the number of background download links currently used to download the set-top box upgrade file in the background, and determine the background download link Whether the number is lower than the background link number threshold, if so, then control the set-top box to download the set-top box upgrade file through the background upgrade version address, if not, then return the background download identification to the set-top box.

如图2所示,一些实施例提供的机顶盒2包括:As shown in Figure 2, the set-top box 2 provided by some embodiments includes:

文件接收模块21,用于接收升级服务器发送的规则文件,规则文件携带用于机顶盒判断是否有新版本的版本参数、以及用于机顶盒判断是否升级服务器支持下载自适应后台升级功能的升级类型标识;还用于在升级服务器的控制下接收机顶盒升级文件;File receiving module 21 is used to receive the rule file sent by the upgrade server, and the rule file carries the version parameter used for the set-top box to judge whether there is a new version and whether the upgrade server supports downloading the upgrade type identification of the self-adaptive background upgrade function for the set-top box to judge; It is also used to receive the upgrade file of the set-top box under the control of the upgrade server;

请求发送模块22,用于若根据规则文件确定有新版本的机顶盒升级文件,且升级服务器支持下载自适应后台升级功能,则向升级服务器发送前台文件下载请求;若接收到升级服务器发送的后台下载触发信息,则向升级服务器发送后台文件下载请求。Request sending module 22, is used for determining to have the set-top box upgrade file of new version according to rule file, and upgrade server supports download adaptive background upgrade function, then sends foreground file download request to upgrade server; If receiving the background download that upgrade server sends Trigger information, then send a background file download request to the upgrade server.

在实际应用中,上述实施例涉及的功能模块都可以由烧入有特定软件程序的可编辑逻辑器件实现,可以由处理器与存储器相互配合实现。In practical applications, the functional modules involved in the above-mentioned embodiments can be implemented by an editable logic device burned with a specific software program, and can be implemented by the cooperation of a processor and a memory.

现结合具体应用场景对本发明做进一步的诠释说明。The present invention will be further explained in combination with specific application scenarios.

本实施例用于克服现有技术中存在的大规模软件升级,机顶盒并发请求升级时,升级效率低下的问题和缺陷,提供一种机顶盒自适应后台升级的方法。This embodiment is used to overcome the large-scale software upgrade in the prior art, and the problem and defect of low upgrade efficiency when the set-top box concurrently requests the upgrade, and provides a method for self-adaptive background upgrade of the set-top box.

如图3所示,本实施例提供的通信系统包括:机顶盒及HTTP(HyperTextTransfer Protocol,超文本传输协议)升级服务器,其中,As shown in Figure 3, the communication system provided by this embodiment includes: a set-top box and an HTTP (HyperTextTransfer Protocol, hypertext transfer protocol) upgrade server, wherein,

HTTP升级服务器提供软件版本所在路径,机顶盒向服务器请求并下载版本包中的规则文件,解析出是否有新版本和升级类型标识UpdateType。解析到部署中有自适应后台升级标志UpdateType=adaptive,则启用自适应后台升级功能。The HTTP upgrade server provides the path where the software version is located, and the set-top box requests and downloads the rule file in the version package from the server, and parses out whether there is a new version and the upgrade type identifier UpdateType. If it is resolved that there is an adaptive background upgrade flag UpdateType=adaptive in the deployment, then the adaptive background upgrade function is enabled.

由HTTP服务器来对后台升级的带宽进行控制(比如控制单个机顶盒的下载速率在400kbps)。同一台服务器通过识别客户端的user-agent来识别是前台还是后台升级请求,同时支持前台升级和后台升级,且对前、后台升级有所区分。比如HTTP服务器支持100个前台升级的连接数,以及支持1000个400Kbps下载速率的后台升级连接数,连接数的比例可以作为apacheHTTP服务器的配置项。The bandwidth of the background upgrade is controlled by the HTTP server (for example, the download rate of a single set-top box is controlled at 400kbps). The same server identifies whether it is a foreground or background upgrade request by identifying the user-agent of the client. It supports both foreground upgrades and background upgrades, and distinguishes between front-end and background upgrades. For example, the HTTP server supports 100 connections for foreground upgrades and 1000 connections for background upgrades with a download rate of 400Kbps. The ratio of the connections can be used as a configuration item for the apache HTTP server.

如图4所示,本实施例提供的方法包括以下步骤:As shown in Figure 4, the method provided in this embodiment includes the following steps:

S401-S403:系统初始化,升级服务器放置版本,部署后台升级版本地址、前台升级版本地址、自适应后台升级版本地址,并分别部署每个地址的链接数、下载速率;机顶盒上部署自适应后台升级版本地址。需保证机顶盒可以通过网络成功连接升级服务器。S401-S403: System initialization, upgrade server version, deploy background upgrade version address, foreground upgrade version address, adaptive background upgrade version address, and deploy the link number and download rate of each address respectively; deploy adaptive background upgrade on the set-top box version address. It is necessary to ensure that the set-top box can successfully connect to the upgrade server through the network.

S404-S406:机顶盒上电后,自行连接升级服务器,并下载升级规则文件,成功下载后对其进行解析;出错则停止本次升级动作。S404-S406: After the set-top box is powered on, it connects to the upgrade server by itself, and downloads the upgrade rule file, and analyzes it after successful download; if an error occurs, stop the upgrade action.

S407:机顶盒解析到规则文件中部署了自适应后台升级标志,则启用后台升级功能。S407: The set-top box parses that the adaptive background upgrade flag is deployed in the rule file, and enables the background upgrade function.

S408-S413:机顶盒向服务器请求下载版本镜像文件时,在User-Agent中带上前台请求标志Wget,如果服务器链接数足够,则给机顶盒返回200,机顶盒会弹出下载界面,开始下载版本镜像;如果服务器链接数不够,则给机顶盒返回503,机顶盒则过5分钟后重新向服务器发起链接请求,User-Agent中带上后台请求标志WgetBG,服务器由此关键字跳转至后台升级版本地址。S408-S413: When the set-top box requests to download the version image file from the server, put the front request flag Wget in the User-Agent, if the number of server connections is sufficient, return 200 to the set-top box, the set-top box will pop up the download interface, and start downloading the version image; if If the number of server connections is not enough, 503 will be returned to the set-top box, and the set-top box will re-initiate a connection request to the server after 5 minutes. The user-agent will bring the background request flag WgetBG, and the server will jump to the background upgrade version address based on this keyword.

S414:机顶盒在后台从后台部署目录中下载镜像。S414: The set-top box downloads the image from the background deployment directory in the background.

综上可知,通过本发明实施例的实施,至少存在以下有益效果:In summary, through the implementation of the embodiments of the present invention, there are at least the following beneficial effects:

本发明实施例提供了一种机顶盒升级文件下发方法,在接收机顶盒发起的前台文件下载请求,先判断运行参数是否满足前台下载请求,在不满足时,向机顶盒返回后台下载触发信息,后台下载触发信息用于触发机顶盒周期性的发起后台文件下载请求;这样就实现了根据运行参数,对前台下载请求进行管理的目的,实现了前台下载与后台下载动态配合的技术,而不会如现有技术那样为所有的前台下载请求都提供前台下载服务,也不会出现现有机顶盒全部采用前台下载模式导致使用高峰下载速度受限的问题,增强了用户的使用体验。The embodiment of the present invention provides a set-top box upgrade file delivery method. When the foreground file download request is initiated by the receiver top box, it is first judged whether the operating parameters meet the foreground download request. If not, the background download trigger information is returned to the set-top box, and the background download The trigger information is used to trigger the set-top box to periodically initiate a background file download request; in this way, the purpose of managing the foreground download request according to the operating parameters is realized, and the technology of dynamic cooperation between the foreground download and the background download is realized, and it will not be like the existing The technology provides foreground download service for all foreground download requests, and there will be no problem that the existing set-top boxes all adopt the foreground download mode, which leads to the limitation of peak download speed, which enhances the user experience.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上仅是本发明的具体实施方式而已,并非对本发明做任何形式上的限制,凡是依据本发明的技术实质对以上实施方式所做的任意简单修改、等同变化、结合或修饰,均仍属于本发明技术方案的保护范围。The above are only specific embodiments of the present invention, and do not limit the present invention in any form. Any simple modification, equivalent change, combination or modification made to the above embodiments according to the technical essence of the present invention still belong to this invention. The protection scope of the technical solution of the invention.

Claims (11)

1. a kind of set top box upgrading file delivery method, including:
The foreground file download request that receiving set up box is initiated;
Judge whether operational factor meets foreground download request;
If not satisfied, then return to backstage trigger for download information, the backstage trigger for download to the set top box Information periodically initiates background download request for triggering set top box.
2. set top box upgrading file delivery method as claimed in claim 1, it is characterised in that the fortune Row parameter includes foreground download link number;It is described to judge whether operational factor meets foreground download request bag Include:
Obtain the foreground download link number that set top box upgrade file is downloaded on currently used foreground;
Judge the foreground download link number whether less than foreground link number threshold value;
If so, then operational factor meets foreground download request, control set top box passes through foreground upgrade version local Download the set top box upgrading file in location;
If it is not, then operational factor is unsatisfactory for foreground download request, then the backstage is returned to the set top box Download mark.
3. set top box upgrading file delivery method as claimed in claim 2, it is characterised in that also include:
The background download request that receiving set up box is initiated;
Obtain the backstage download link number that set top box upgrade file is downloaded on currently used backstage;
Judge the backstage download link number whether less than backstage link number threshold value;
If so, then set top box is controlled to download the set top box upgrading file by backstage upgraded version address;
If it is not, then returning to the backstage to the set top box downloads mark.
4. the set top box upgrading file delivery method as described in any one of claims 1 to 3, its feature exist In, in addition to:
Dispose the foreground upgraded version address of the set top box upgrading file, backstage upgraded version address and from Adapt to backstage upgrading mark;
Rule file is sent to set top box, the rule file carries determines whether new edition for set top box This Release parameter and judge whether that upgrade server supports that downloading adaptive backstage rises for set top box The upgrading type identification of level function.
5. a kind of set top box upgrading file delivery method, including:
The rule file that upgrade server is sent is received, the rule file carries is for set top box judgement It is no to have the Release parameter of redaction and judge whether that upgrade server supports that download is adaptive for set top box Answer the upgrading type identification of backstage upgrade function;
If the set top box upgrading file for having redaction is determined according to the rule file, and the upgrade service Device is supported to download adaptive backstage upgrade function, then asked to upgrade server transmission foreground file download Ask;
If the backstage trigger for download information that the upgrade server is sent is received, to the upgrade service Device sends background download request.
6. a kind of set top box upgrading file delivery method, including:
Set top box receives the rule file that upgrade server is sent, and the rule file is carried for set top box Under determining whether the Release parameter of redaction and judging whether that upgrade server is supported for set top box It is downloaded from adapting to the upgrading type identification of backstage upgrade function, determines there is redaction according to the rule file Set top box upgrading file, and the upgrade server is supported to download adaptive backstage upgrade function, then to institute State upgrade server and send the request of foreground file download;
The upgrade server receives the foreground file download request, before judging whether operational factor meets Platform download request, if not satisfied, then returning to backstage trigger for download information to the set top box;
The set top box receives the backstage trigger for download information, and backstage text is sent to the upgrade server Part download request.
A kind of 7. upgrade server, it is characterised in that including:
Request receiving module, the foreground file download request initiated for receiving set up box;
Request processing module, for judging whether operational factor meets foreground download request, if not satisfied, Backstage trigger for download information then is returned to the set top box, the backstage trigger for download information is used to trigger machine Top box periodically initiates background download request.
8. upgrade server as claimed in claim 7, it is characterised in that before the operational factor includes Platform download link number;The request processing module is used to obtain currently used foreground download set top box upgrading text The foreground download link number of part, judges whether the foreground download link number is less than foreground link number threshold value, If so, then operational factor meets foreground download request, control set top box passes through under the upgraded version address of foreground The set top box upgrading file is carried, if it is not, then operational factor is unsatisfactory for foreground download request, then to described Set top box returns to the backstage and downloads mark.
9. upgrade server as claimed in claim 8, it is characterised in that the request receiving module is used In the background download request that receiving set up box is initiated, the request processing module is used to obtain currently to make The backstage download link number of set top box upgrade file is downloaded with backstage, judges that the backstage download link number is It is no to link number threshold value less than backstage, if so, then controlling set top box to pass through backstage upgraded version address downloads institute Set top box upgrading file is stated, if it is not, then returning to the backstage to the set top box downloads mark.
A kind of 10. set top box, it is characterised in that including:
File reception module, for receiving the rule file of upgrade server transmission, the rule file is taken Band determines whether the Release parameter of redaction for set top box and judges whether to upgrade for set top box Server is supported to download the upgrading type identification of adaptive backstage upgrade function;It is additionally operable in the upgrading clothes Receiving set up box upgrade file under the control of business device;
Request sending module, if for the set top box upgrading text for determining to have redaction according to the rule file Part, and the upgrade server is supported to download adaptive backstage upgrade function, then to the upgrade server Send the request of foreground file download;If receive the backstage trigger for download letter that the upgrade server is sent Breath, then send background download request to the upgrade server.
11. a kind of set top box upgrading file sending system, including:Such as any one of claim 7 to 9 Described upgrade server and set top box as claimed in claim 10.
CN201610481350.3A 2016-06-27 2016-06-27 Upgrade server, set top box, set top box upgrading file delivery method and system Pending CN107547591A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610481350.3A CN107547591A (en) 2016-06-27 2016-06-27 Upgrade server, set top box, set top box upgrading file delivery method and system
PCT/CN2017/085463 WO2018000997A1 (en) 2016-06-27 2017-05-23 Upgrade server, set-top box, and set-top box upgrade file distribution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610481350.3A CN107547591A (en) 2016-06-27 2016-06-27 Upgrade server, set top box, set top box upgrading file delivery method and system

Publications (1)

Publication Number Publication Date
CN107547591A true CN107547591A (en) 2018-01-05

Family

ID=60785867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610481350.3A Pending CN107547591A (en) 2016-06-27 2016-06-27 Upgrade server, set top box, set top box upgrading file delivery method and system

Country Status (2)

Country Link
CN (1) CN107547591A (en)
WO (1) WO2018000997A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
HUE070527T2 (en) 2013-06-07 2025-06-28 Basf Se Quaternised nitrogen compounds substituted with hydrocarbyl-polycarboxylic acid and alkylene oxide as additives in fuels
CN113542884A (en) * 2021-07-14 2021-10-22 视若飞信息科技(上海)有限公司 Method for synchronizing JS patch files between smart television browser and server
CN113641527A (en) * 2021-09-02 2021-11-12 中国银行股份有限公司 Method and device for repairing production problems of mobile banking client
CN113905263B (en) * 2021-10-28 2024-03-26 深圳小湃科技有限公司 Set top box control method, equipment and storage medium
CN114661328B (en) * 2022-04-13 2024-06-28 树根互联股份有限公司 OTA (over the air) upgrading method and device for equipment file program and electronic equipment
CN115022718B (en) * 2022-06-02 2024-03-22 湖南国科微电子股份有限公司 Data importing method and data transmitting method
CN117979099B (en) * 2023-12-29 2024-12-20 北京大麦星云科技有限公司 A set-top box upgrade method, device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756946B1 (en) * 2006-05-12 2010-07-13 Sprint Spectrum L.P. Dynamic variation of content-download depending on foreground or background nature of download
CN102137122B (en) * 2010-01-22 2014-08-20 广州华多网络科技有限公司 Method and device for downloading data
FR2972589B1 (en) * 2011-03-07 2013-03-01 Alcatel Lucent DIFFERENT DOWNLOAD OF CONTENT
CN104156401A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Webpage loading method, device and equipment
CN105471943B (en) * 2014-09-03 2019-05-03 南宁富桂精密工业有限公司 The method that server and its distribution client device update firmware
CN105335485A (en) * 2015-10-15 2016-02-17 桂林电子科技大学 Webpage loading method and device

Also Published As

Publication number Publication date
WO2018000997A1 (en) 2018-01-04

Similar Documents

Publication Publication Date Title
WO2018000997A1 (en) Upgrade server, set-top box, and set-top box upgrade file distribution method and system
CN104935640B (en) The content distribution network system and method that a kind of P2P accelerates
US9300733B2 (en) System and/or method for client-driven server load distribution
CN106603311A (en) OTA upgrade method, client, server and system
EP3076290B1 (en) Method and device for remotely updating application program
CN110913015A (en) Distributed quick installation method, system and medium for cloud mobile phone APP
CN104639648A (en) Remote upgrading method for intelligent cabinet
CN107770212A (en) Rich communication suite distribution platform, method for updating edition and system, mobile terminal
CN103685496A (en) Transmission method and device of file data
CN108874437A (en) A kind of online cloud update method of android application program
CN106850720A (en) Method for upgrading software, apparatus and system
JP2022535949A (en) Model file distribution method, platform, system, terminal and readable storage medium
CN105327508A (en) Network game running system and method
CN103812945A (en) Method for upgrading data and central server
CN104469406A (en) Method and device for processing network resources
CN104219312A (en) Program installation method and program installation device
CN101170442B (en) Software online upgrade method and system
CN105430435A (en) Method and system for pushing video file download in IOS system
CN107733974A (en) A kind of upgrade method of mobile terminal
CN105897826A (en) Cloud platform service creating method and system
CN115426361A (en) Distributed client packaging method and device, main server and storage medium
CN112532664A (en) Data upgrade method and device
KR100524588B1 (en) succeeding method of data in mobile
CN113467811A (en) Intelligent counter terminal version upgrading system and working method thereof
CN113986277A (en) Method for upgrading firmware based on terminal state

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180105

WD01 Invention patent application deemed withdrawn after publication