[go: up one dir, main page]

CN103297803A - Data updating system and method based on set top box - Google Patents

Data updating system and method based on set top box Download PDF

Info

Publication number
CN103297803A
CN103297803A CN2012100473608A CN201210047360A CN103297803A CN 103297803 A CN103297803 A CN 103297803A CN 2012100473608 A CN2012100473608 A CN 2012100473608A CN 201210047360 A CN201210047360 A CN 201210047360A CN 103297803 A CN103297803 A CN 103297803A
Authority
CN
China
Prior art keywords
database
top box
information
update
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012100473608A
Other languages
Chinese (zh)
Other versions
CN103297803B (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.)
Shenzhen SDG Information Co Ltd
Original Assignee
Shenzhen QVOD Technology 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 QVOD Technology Co Ltd filed Critical Shenzhen QVOD Technology Co Ltd
Priority to CN201210047360.8A priority Critical patent/CN103297803B/en
Publication of CN103297803A publication Critical patent/CN103297803A/en
Application granted granted Critical
Publication of CN103297803B publication Critical patent/CN103297803B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种基于机顶盒的数据更新系统及方法,以及该系统中采用的服务器和机顶盒客户端。本发明通过在服务器端进行电影节目信息采集,并在服务器端储存更新的数据,以供机顶盒客户端有需求的时候进行下载,尽可能减少本地数据更新操作次数以及相关系统资源的消耗;且机顶盒客户端根据所请求信息的反馈信息再确定更新,从而尽可能地减小电影节目信息的数据下载量,同时缩短了电影节目信息更新时间,让用户能尽快获取到最新的电影节目信息,最终改善了用户使用体验。

Figure 201210047360

The invention discloses a set-top box-based data updating system and method, and a server and a set-top box client used in the system. The present invention collects movie program information on the server side and stores the updated data on the server side for downloading when the set-top box client needs it, thereby reducing the number of local data update operations and the consumption of related system resources as much as possible; and the set-top box The client determines the update according to the feedback information of the requested information, so as to reduce the data download volume of the movie program information as much as possible, and at the same time shorten the update time of the movie program information, so that users can obtain the latest movie program information as soon as possible, and finally improve user experience.

Figure 201210047360

Description

基于机顶盒的数据更新系统及方法Data updating system and method based on set-top box

技术领域 technical field

本发明涉及多媒体领域,尤其涉及一种基于机顶盒的数据更新系统及方法,以及该系统中采用的服务器和机顶盒客户端。The invention relates to the field of multimedia, in particular to a set-top box-based data updating system and method, and a server and a set-top box client used in the system.

背景技术 Background technique

机顶盒使诸如电视等影视终端接入了互联网,因此,用户在电视等影视终端上也能够享受到和互联网上相同的多媒体资源,也就是说,通过机顶盒,用户可以享受到与PC端同样的多媒体服务。Set-top boxes enable video terminals such as TVs to access the Internet. Therefore, users can enjoy the same multimedia resources as on the Internet on TVs and other video terminals. That is to say, through set-top boxes, users can enjoy the same multimedia resources as PCs. Serve.

为获取互联网上如电影节目等信息,目前采用两种方式。方式一是采用B/S架构实时获取电影节目信息;然而,这种方式由于采用B/S架构,电影节目信息是实时下载的,且实时下载的下载流量不能合理缩小,在不够理想的网络环境中,用户体验会相当不理想,例如浏览电影节目信息时因网速造成节目信息的浏览页面展现很慢或无法展现。方式二是在进入机顶盒系统时将系统锁定然后更新数据,待更新完毕后用户才能浏览观看相关电影节目信息;但这种方式在下载并更新完本地数据之前,用户不能进行任何操作,这给用户造成相当不良的用户体验,且本地数据更新耗时、耗系统资源。因此,目前采用的机顶盒数据更新机制不完善,均存在不足。In order to obtain information such as movie programs on the Internet, two methods are currently used. The first method is to use the B/S architecture to obtain movie program information in real time; however, due to the use of B/S architecture in this method, the movie program information is downloaded in real time, and the download traffic of real-time download cannot be reasonably reduced. In this case, the user experience will be quite unsatisfactory. For example, when browsing movie program information, the display of the browsing page of the program information is slow or impossible due to the speed of the network. The second way is to lock the system and then update the data when entering the set-top box system. After the update is completed, the user can browse and watch the relevant movie program information; but in this way, the user cannot perform any operations before the local data is downloaded and updated. It causes a rather bad user experience, and the local data update is time-consuming and consumes system resources. Therefore, the set-top box data updating mechanism adopted at present is not perfect, and all have deficiencies.

发明内容 Contents of the invention

为了解决以上问题,本发明提供一种基于机顶盒的数据更新系统及其方法来改善用户体验。In order to solve the above problems, the present invention provides a set-top box-based data updating system and method thereof to improve user experience.

根据本发明实施方式的一个方面,提供一种基于机顶盒的数据更新系统,其特征在于,包括服务器和至少一个机顶盒客户端;所述服务器包括:采集模块,用于从互联网上采集相关的电影节目信息;数据库操作模块,用于对采集到的电影节目信息建立与电影节目信息相关的数据库,还用于根据对所述数据库的更改操作生成相应的更新文件;第一接收模块,用于接收来自所述至少一个机顶盒客户端的节目更新请求信息;第一发送模块,用于根据所述请求信息将相应的内容发送至所述至少一个机顶盒客户端;所述至少一个机顶盒客户端包括:第二发送模块,用于向服务器发送请求信息;第二接收模块,用于接收来自服务器的根据所述请求信息反馈的信息;更新模块,用于根据接收到的反馈信息,确定对机顶盒客户端的本地的电影节目信息进行更新的内容。According to one aspect of the embodiments of the present invention, a set-top box-based data update system is provided, which is characterized in that it includes a server and at least one set-top box client; the server includes: a collection module for collecting relevant movie programs from the Internet information; the database operation module is used to set up a database related to the movie program information to the collected movie program information, and is also used to generate a corresponding update file according to the change operation to the database; the first receiving module is used to receive information from The program update request information of the at least one set-top box client; the first sending module is configured to send corresponding content to the at least one set-top box client according to the request information; the at least one set-top box client includes: the second sending The module is used to send request information to the server; the second receiving module is used to receive information fed back from the server according to the request information; the update module is used to determine the local movie for the set-top box client according to the received feedback information Program information to update the content.

根据本发明实施方式的另一个方面,提供一种基于机顶盒的数据更新方法,包括:服务器从互联网上采集相关的电影节目信息,并对采集到的电影节目信息建立与电影节目信息相关的数据库,且根据对所述数据库的更改操作生成相应的更新文件;所述服务器接收来自至少一个机顶盒客户端的节目更新请求信息;根据所述请求信息,所述服务器将相应的内容发送至所述至少一个机顶盒客户端;所述至少一个机顶盒客户端根据接收到的反馈信息,确定对机顶盒客户端的本地的电影节目信息进行更新的内容。According to another aspect of the embodiment of the present invention, a set-top box-based data update method is provided, including: the server collects relevant movie program information from the Internet, and establishes a database related to the movie program information for the collected movie program information, And generate a corresponding update file according to the modification operation on the database; the server receives program update request information from at least one set-top box client; according to the request information, the server sends the corresponding content to the at least one set-top box Client: the at least one set-top box client determines the content to update the local movie program information of the set-top box client according to the received feedback information.

相应地,本发明实施方式还提供一种服务器,包括:采集模块,用于从互联网上采集相关的电影节目信息;数据库操作模块,用于对采集到的电影节目信息建立与电影节目信息相关的数据库,还用于根据对所述数据库的更改操作生成相应的更新文件;第一接收模块,用于接收来自机顶盒客户端的节目更新请求信息;第一发送模块,用于根据所述请求信息将相应的内容发送至机顶盒客户端。Correspondingly, the embodiment of the present invention also provides a server, including: a collection module, used to collect relevant movie program information from the Internet; a database operation module, used to establish a database related to the collected movie program information The database is also used to generate a corresponding update file according to the modification operation on the database; the first receiving module is used to receive the program update request information from the set-top box client; the first sending module is used to send the corresponding update file according to the request information The content is sent to the set-top box client.

相应地,本发明实施方式还提供一种客户端机顶盒,包括:第二发送模块,用于向服务器发送请求信息;第二接收模块,用于接收来自服务器的根据所述请求信息反馈的信息;更新模块,用于根据接收到的反馈信息,确定对机顶盒客户端的本地的电影节目信息进行更新的内容。Correspondingly, the embodiment of the present invention also provides a client set-top box, including: a second sending module, configured to send request information to the server; a second receiving module, configured to receive information fed back from the server according to the request information; The update module is configured to determine content to update the local movie program information of the STB client according to the received feedback information.

本发明的有益效果是:在服务器端进行电影节目信息采集,并在服务器端储存更新的数据,以供机顶盒客户端有需求的时候进行下载,尽可能减少本地数据更新操作次数以及相关系统资源的消耗;且机顶盒客户端根据所请求信息的反馈信息再确定更新,从而尽可能地减小电影节目信息的数据下载量,同时缩短了电影节目信息更新时间,让用户能尽快获取到最新的电影节目信息,最终改善了用户使用体验。The beneficial effects of the present invention are: collect movie program information on the server side, and store updated data on the server side for downloading when needed by the set-top box client side, reducing the number of local data update operations and related system resources as much as possible. consumption; and the set-top box client determines the update according to the feedback information of the requested information, thereby reducing the data download amount of the movie program information as much as possible, and shortening the update time of the movie program information, so that users can obtain the latest movie programs as soon as possible information, ultimately improving the user experience.

附图说明 Description of drawings

图1是本发明实施方式一的服务器的结构示意图;FIG. 1 is a schematic structural diagram of a server according to Embodiment 1 of the present invention;

图2是图1所示服务器中各模块的工作流程示意图,其中,图2(a)描述了服务器端相关的数据库生成及更新的基本流程,图2(b)描述了电影分类信息数据库和各分类电影信息数据库的更新过程;Fig. 2 is a schematic diagram of the workflow of each module in the server shown in Fig. 1, wherein, Fig. 2 (a) describes the basic process of generating and updating the server-side related database, and Fig. 2 (b) describes the movie classification information database and each The update process of the classified movie information database;

图3是本发明实施方式二的机顶盒客户端的结构示意图;FIG. 3 is a schematic structural diagram of a set-top box client in Embodiment 2 of the present invention;

图4是本发明一种实施例中对机顶盒客户端的数据进行手动强制更新的流程示意图;Fig. 4 is a schematic flow diagram of manual forced update of the data of the set-top box client in an embodiment of the present invention;

图5、图6(a)和图6(b)分别是本发明另三种实施例的对机顶盒客户端的数据进行自动更新的流程示意图;Fig. 5, Fig. 6 (a) and Fig. 6 (b) are the flow schematic diagrams that the data of the set-top box client are automatically updated respectively in another three embodiments of the present invention;

图7是本发明又一种实施例中对机顶盒客户端的数据进行自动更新的流程示意图;Fig. 7 is a schematic flow chart of automatically updating the data of the set-top box client in another embodiment of the present invention;

图8是本发明实施方式三的基于机顶盒的数据更新系统的结构示意图;8 is a schematic structural diagram of a set-top box-based data update system according to Embodiment 3 of the present invention;

图9至图11是基于机顶盒的数据更新系统在不同情况下的工作流程示意图;Fig. 9 to Fig. 11 are the workflow schematic diagrams of the data update system based on the set-top box in different situations;

图12是本发明实施例中基于机顶盒的数据更新方法的流程示意图。Fig. 12 is a schematic flow chart of a method for updating data based on a set-top box in an embodiment of the present invention.

具体实施方式 Detailed ways

下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings.

首先对下面用到的一些术语或概念进行解释。First, some terms or concepts used below are explained.

(1)电影分类信息:包括电影类型(如剧情片、喜剧片、动作片等)、电影类型对应的ID、各电影类型下包含的影片数量、电影排序信息等;(1) Movie classification information: including movie types (such as dramas, comedies, action movies, etc.), IDs corresponding to movie types, the number of movies included in each movie type, movie ranking information, etc.;

(2)分类电影信息:包括每个电影类型下的各部影片的详细信息,如影片名称、主演、剧情简介、链接地址等;(2) Classified movie information: including detailed information of each movie under each movie type, such as movie name, starring role, plot introduction, link address, etc.;

(3)电影节目信息:包括电影分类信息和各分类电影信息。(3) Movie program information: including movie classification information and movie information of each classification.

实施方式一:Implementation mode one:

本实施方式提供一种服务器,如图1所示,包括:This embodiment provides a server, as shown in Figure 1, including:

采集模块11,用于从互联网上采集相关的电影节目信息;Acquisition module 11, is used for collecting relevant movie program information from the Internet;

数据库操作模块13,用于对采集到的电影节目信息建立与电影节目信息相关的数据库,还用于根据对所述数据库的更改操作生成相应的更新文件;The database operation module 13 is used to establish a database related to the movie program information collected, and is also used to generate a corresponding update file according to the modification operation to the database;

第一接收模块15,用于接收来自机顶盒客户端的节目更新请求信息;The first receiving module 15 is used to receive the program update request information from the set-top box client;

第一发送模块17,用于根据所述请求信息将相应的内容发送至机顶盒客户端。The first sending module 17 is configured to send corresponding content to the STB client according to the request information.

图2(a)和图2(b)示出了一种实施例中服务器的各模块的工作流程,其中,图2(a)描述了服务器端相关的数据库生成及更新的基本流程,图2(b)描述了电影分类信息数据库和各分类电影信息数据库的更新过程。Fig. 2 (a) and Fig. 2 (b) have shown the working flow of each module of server in a kind of embodiment, wherein, Fig. 2 (a) have described the basic flow of database generation and updating related to the server side, Fig. 2 (b) Describes the updating process of the movie classification information database and the movie information database of each classification.

如图2(a)所示,从互联网采集到电影信息后,服务器端据此创建了电影节目信息数据库,然后根据不同需求生成电影分类信息数据库和各分类电影信息数据库,电影节目信息的维护和更新都在该电影节目信息数据库中进行,包括更改信息的记录等。本实施例的服务器的各模块的功能通过如下步骤体现:As shown in Figure 2(a), after the movie information is collected from the Internet, the server creates a movie program information database based on it, and then generates movie classification information databases and movie information databases for each category according to different needs. The maintenance and management of movie program information Updates are all carried out in the movie program information database, including records of changing information, etc. The functions of each module of the server of the present embodiment are embodied by the following steps:

步骤S201,采集模块从互联网采集相关的电影节目信息;Step S201, the collection module collects relevant movie program information from the Internet;

步骤S203,数据库操作模块建立服务器端的电影节目信息数据库;Step S203, the database operation module establishes a movie program information database on the server side;

步骤S205,数据库操作模块根据不同需求生成电影分类信息数据库(本实施例采用SQLITE数据库实现)和各分类电影信息数据库;Step S205, the database operation module generates a movie classification information database (this embodiment adopts SQLITE database) and each classification movie information database according to different requirements;

数据库操作模块采用数据库保存、维护采集到的电影节目信息,分别生成电影分类信息数据库和各个分类电影信息的数据库,以供机顶盒客户端下载使用。数据库可以采用SQLITE或Embedded Firebird或SimpleSQL等轻量级数据库。本实施例中采用SQLITE这种小型文件形式的数据库,即由电影分类信息生成一个独立的电影分类信息SQLITE数据库,各个分类电影信息生成各自的分类电影信息SQLITE数据库。The database operation module uses the database to store and maintain the collected movie program information, and generates a movie classification information database and a database of each classification movie information for the set-top box client to download and use. The database can adopt lightweight databases such as SQLITE or Embedded Firebird or SimpleSQL. In this embodiment, a database in the form of small files such as SQLITE is used, that is, an independent movie classification information SQLITE database is generated from movie classification information, and each classification movie information generates its own classification movie information SQLITE database.

步骤S207,判断电影节目信息数据库中是否有信息变更;如果是则转步骤S209继续,如果否则转步骤S215继续;Step S207, judging whether there is information change in the movie program information database; if yes, proceed to step S209 to continue, otherwise proceed to step S215 to continue;

步骤S209,电影节目信息数据库中有变更,在电影节目信息数据库中记录更改的内容,包括更新信息及更新时间;Step S209, if there is a change in the movie program information database, record the changed content in the movie program information database, including update information and update time;

步骤S211和步骤S213为根据更改的内容重新生成或更新相应的电影分类信息数据库或各分类电影信息数据库并生成相应的更新文件(本实施例中采用SQLITE数据库和格式为XML文件的更新文件);这两个步骤的具体更新过程如图2(b)所示;Step S211 and step S213 are to regenerate or update the corresponding movie classification information database or each classification movie information database and generate corresponding update files according to the changed content (in this embodiment, SQLITE database and format are adopted as update files of XML files); The specific update process of these two steps is shown in Figure 2(b);

步骤S215,建立下载链接供用户下载。后续服务器端将通过其第一接收模块和第一发送模块与机顶盒客户端进行交互。Step S215, establishing a download link for the user to download. The subsequent server will interact with the STB client through its first receiving module and first sending module.

如图2(b)所示,为步骤S211和S213的具体过程,包括:As shown in Figure 2 (b), it is the specific process of steps S211 and S213, including:

步骤S251,生成供机顶盒客户端下载的数据;Step S251, generating data for the STB client to download;

步骤S252,判断某分类电影信息数据库是否有数据更新,如果是则转步骤S253继续,如果否则转步骤S255继续;Step S252, judging whether there is data update in a classified movie information database, if yes, proceed to step S253, otherwise proceed to step S255;

步骤S253,生成新的SQLITE数据库,将各数据库压缩成zip包;Step S253, generating a new SQLITE database, and compressing each database into a zip package;

步骤S254,生成SQLITE数据库的更新文件(实施例采用XML格式);Step S254, generate the update file of SQLITE database (embodiment adopts XML format);

步骤S255,判断是否为最后一个分类;如果是则转步骤S256继续,如果否则转步骤S252重新进行判断;Step S255, judging whether it is the last classification; if yes, go to step S256 to continue, otherwise go to step S252 to judge again;

步骤S256,判断是否有至少一个分类更新过数据;如果否则结束对更新情况的判断,如果是则转步骤S257;Step S256, judge whether there is at least one category that has updated data; if not, end the judgment on the update situation, if yes, go to step S257;

步骤S257,生成新的电影分类信息SQLITE数据库。Step S257, generating a new movie classification information SQLITE database.

对于电影分类信息数据库,其具有常用的数据库操作功能如添加、修改、删除等,还具有禁止用户访问和使用某些影片的禁用功能;对电影分类信息数据库的更改操作以预定格式记录其详细的更改数据及更改时间数据,预定格式包括log表但不限于此。对于各分类电影信息数据库,其同样也具有常用的数据库操作功能如添加、修改、删除等,还具有禁止用户访问和使用某些影片的禁用功能;对分类电影信息数据库的更改操作以预定格式记录其详细的更改数据及更改时间数据,预定格式包括log表但不限于此。For the movie classification information database, it has common database operation functions such as adding, modifying, deleting, etc., and also has the prohibition function that prohibits users from accessing and using certain movies; the modification operation of the movie classification information database records its detailed information in a predetermined format Change data and change time data, the predetermined format includes but not limited to log table. For each classified movie information database, it also has common database operation functions such as adding, modifying, deleting, etc., and also has a disable function that prohibits users from accessing and using certain movies; changes to the classified movie information database are recorded in a predetermined format Its detailed change data and change time data, the predetermined format includes but not limited to log table.

如果某分类电影信息数据库没有任何更改操作,则不重新生成该分类电影信息数据库,反之则要重新生成该分类电影信息数据库;如果所有的分类电影信息数据库没有任何更改操作,则不重新生成电影分类信息数据库,反之则要重新生成电影分类信息数据库。各个数据库最终压缩成包,如压缩为zip文件。If there is no change operation in a classified movie information database, the classified movie information database will not be regenerated; otherwise, the classified movie information database will be regenerated; if there is no change operation in all classified movie information databases, the movie classification will not be regenerated information database, otherwise, the movie classification information database must be regenerated. Each database is finally compressed into a package, such as compressed into a zip file.

数据库操作模块中,对分类电影信息数据库进行维护后(即发生更改操作),将根据更改数据及更改时间数据生成各个分类电影信息数据库的更新文件,描述预定时间内(例如1天内)的各分类电影信息的更新情况。例如今天对某一分类电影信息数据库添加一条电影信息,则生成今天的更新文件,其中记录对该分类电影信息的更改操作。不同的分类电影信息数据库有各自的更新文件,并且一个分类电影信息数据库有预定天数个不同的更新文件;例如某个分类电影信息数据库有30个不同的更新文件,第一个更新文件记录了前一天的该分类电影信息数据的更新情况,第N个更新文件记录前N天以来该分类电影信息的更新情况,第30个更新文件记录前30天以来该分类电影信息的更新情况;从而可供拥有不同新旧程度的电影节目信息的机顶盒客户端下载使用,也就是说,可以根据机顶盒客户端未更新的天数选择相应天数的更新文件进行更新,避免了盲目下载,极大减小了数据下载量。实施例中更新文件采用XML文件格式。In the database operation module, after the classified movie information database is maintained (that is, a change operation occurs), an update file of each classified movie information database will be generated according to the modified data and the modified time data, describing each category within a predetermined time (for example, within 1 day) Updates to movie information. For example, if a piece of movie information is added to a certain classified movie information database today, an update file for today is generated, which records the change operation of the classified movie information. Different classified movie information databases have their own update files, and a classified movie information database has a predetermined number of different update files; for example, a certain classified movie information database has 30 different update files, and the first update file records the previous The update situation of this classified movie information data in one day, the update situation of this classified movie information since the Nth update file records the previous N days, the update situation of this classified movie information since the 30th update file record since the previous 30 days; Set-top box clients with different levels of new and old movie program information can be downloaded and used, that is to say, update files can be selected for the corresponding number of days according to the number of days that the set-top box client has not been updated, which avoids blind downloading and greatly reduces the amount of data downloads . In the embodiment, the update file adopts XML file format.

实施例中服务器是通过HTTP(HyperText Transfer Protocol,超文本传输协议)下载信息而生成数据库,且服务器的第一接收模块和第一发送模块通过HTTP协议与机顶盒客户端通信,因此,实施例的压缩成包的数据库文件(如zip文件)或更新文件包含HTTP头信息,该HTTP头信息用来记录一些必要信息如各个数据库文件或更新文件的更新时间及文件大小等信息。可以理解,如果服务器和机顶盒客户端之间的通信采用其他协议,则压缩成包的数据库文件(如zip文件)或更新文件包含的是与其他协议对应的头信息。实施例中涉及的下载、建立/生成数据库、以及建立下载链接的具体过程可采用本领域技术人员熟知的常用的技术手段实现,实施例对此不作限定。In the embodiment, the server generates the database by downloading information through HTTP (HyperText Transfer Protocol, hypertext transfer protocol), and the first receiving module and the first sending module of the server communicate with the set-top box client through the HTTP protocol, therefore, the compression of the embodiment The packaged database files (such as zip files) or update files contain HTTP header information, which is used to record some necessary information such as update time and file size of each database file or update file. It can be understood that if the communication between the server and the set-top box client adopts other protocols, the compressed database file (such as a zip file) or the update file contains header information corresponding to other protocols. The specific processes of downloading, establishing/generating a database, and establishing a download link involved in the embodiments can be implemented by common technical means known to those skilled in the art, and the embodiments are not limited thereto.

本实施方式的服务器,在服务器端进行电影节目信息采集,并在服务器端储存更新的数据,以供机顶盒客户端有需求的时候进行下载,尽可能减少本地数据更新操作次数以及相关系统资源的消耗。The server of this embodiment collects movie program information on the server side, and stores updated data on the server side for downloading when needed by the set-top box client side, reducing the number of local data update operations and the consumption of related system resources as much as possible. .

实施方式二:Implementation mode two:

本实施方式提供一种机顶盒客户端,如图3所示,包括:This embodiment provides a set-top box client, as shown in Figure 3, including:

第二发送模块21,用于向服务器发送请求信息;The second sending module 21 is configured to send request information to the server;

第二接收模块23,用于接收服务器根据所述请求信息反馈的信息;The second receiving module 23 is configured to receive information fed back by the server according to the request information;

更新模块29,用于根据接收到的反馈信息,确定对机顶盒客户端的本地的电影节目信息进行更新的内容。The update module 29 is configured to determine content to update the local movie program information of the STB client according to the received feedback information.

进一步地,更新模块包括本地库更新单元和更新时间保存单元、和/或时间判断单元、和/或数量判断单元。Further, the update module includes a local library update unit and an update time storage unit, and/or a time judging unit, and/or a quantity judging unit.

下面通过几个实施例并结合图4-图6描述本实施方式的机顶盒客户端的各模块。The modules of the set-top box client in this embodiment are described below through several embodiments and with reference to FIGS. 4-6 .

实施例1:手动强制更新数据。Example 1: Manually force update data.

对于采用手动强制更新数据的方式,机顶盒客户端的各模块的功能通过图4所示流程体现。如图4所示,用户通过机顶盒客户端的手动强制更新功能进行数据强制更新,此时,第二发送模块向服务器发送下载电影分类信息数据库和/或分类电影信息数据库的请求信息,第二接收模块接收服务器反馈的电影分类信息数据库和/或分类电影信息数据库,更新模块直接将机顶盒客户端可能原有的数据库替换为从第二接收模块接收到的相关的数据库(如果机顶盒客户端原本没有相关的数据库,则更新模块直接将第二接收模块接收到的相关的数据库提供给机顶盒客户端使用)。具体地,更新模块包括本地库更新单元和更新时间保存单元,本地库更新单元将下载后得到的电影分类信息数据库和/或分类电影信息数据库提供给机顶盒客户端使用(即替换机顶盒客户端的本地的电影节目信息),如下载的是相应的数据库的压缩包(如zip包),则将其解压后再提供使用,同时,更新时间保存单元用于在机顶盒客户端保存所相应的数据库文件的更新时间。这里,机顶盒客户端的手动强制更新功能的实现可采用常用的手段实现,例如,可以是在机顶盒客户端上设置有如“更新”按钮供用户使用,或者是在机顶盒客户端的人机界面上提供如菜单的方式,由用户通过遥控器或鼠标或键盘等方式输入选择。手动强制更新功能是为了兼顾用户可能有的无法预计的更新需求,例如断电时数据库有损需要更新或用户不定时的请求更新等;对于这种手动强制更新,机顶盒客户端是无法预计用户的具体信息需求的,因此,更新模块直接将机顶盒客户端可能原有的数据库文件替换为新下载的数据库文件。当然,如果下载失败,客户端可以提示用户更新失败。For the manual forced data update method, the functions of each module of the set-top box client are embodied through the process shown in FIG. 4 . As shown in Figure 4, the user performs data mandatory update through the manual mandatory update function of the set-top box client. At this time, the second sending module sends the request information of downloading the movie classification information database and/or the classification movie information database to the server, and the second receiving module Receiving the movie classification information database and/or classification movie information database fed back by the server, the update module directly replaces the possible original database of the set-top box client with the relevant database received from the second receiving module (if the set-top box client does not originally have relevant database, the update module directly provides the related database received by the second receiving module to the set-top box client for use). Specifically, the update module includes a local library update unit and an update time storage unit, and the local library update unit provides the movie classification information database and/or the classification movie information database obtained after downloading to the set-top box client (i.e. replaces the local one of the set-top box client). Movie program information), if downloading is the compressed package (as zip package) of corresponding database, then provide use after it is decompressed, meanwhile, the update time preservation unit is used to store the update of corresponding database file at the set-top box client time. Here, the realization of the manual forced update function of the set-top box client can be realized by common means, for example, a button such as "update" can be set on the set-top box client for the user to use, or a menu such as The mode is input and selected by the user through the remote control, mouse or keyboard. The function of manual forced update is to take into account the unpredictable update needs that users may have, such as the database is damaged and needs to be updated when the power is off, or the user requests for updates from time to time, etc. For this kind of manual forced update, the set-top box client cannot predict the user For specific information needs, therefore, the update module directly replaces the possibly original database file of the set-top box client with the newly downloaded database file. Of course, if the download fails, the client can prompt the user that the update failed.

实施例2:自动更新数据。Example 2: Automatically update data.

实施例2的数据更新过程与手动强制更新数据的过程相似,不同之处在于是由机顶盒客户端自检自动更新。如图5所示,包括如下步骤:The data updating process in Embodiment 2 is similar to the manual forced data updating process, the difference is that the set-top box client self-checks and automatically updates. As shown in Figure 5, it includes the following steps:

步骤S501,开机自检;Step S501, power-on self-test;

步骤S503,机顶盒客户端在启动时,自动检测其本地是否存在与电影节目信息相关的数据库,如果存在相关的数据库则转步骤S505继续,如果不存在则转步骤S506继续;Step S503, when the set-top box client is started, it automatically detects whether there is a database related to the movie program information in its local area, if there is a relevant database, then go to step S505 to continue, if it does not exist, then go to step S506 to continue;

机顶盒客户端本地没有相关的数据库文件的原因可以有多种,例如机顶盒客户端没有初始化过或者因各种因素造成数据库文件丢失而造成本地没有相关的数据库文件。There are many reasons why the set-top box client does not have relevant database files locally. For example, the set-top box client has not been initialized or the database file is lost due to various factors, so that there is no relevant database file locally.

步骤S505和步骤S506都是要下载与电影节目信息相关的数据库;即第二发送模块向服务器发送下载电影分类信息数据库的请求信息,第二接收模块接收服务器反馈的电影分类信息数据库和/或分类电影信息数据库。对于步骤S505,更新模块的本地库更新单元将下载后得到的电影分类信息数据库和/或分类电影信息数据库直接供机顶盒客户端使用,而对于步骤S506,更新模块的本地库更新单元则是将下载的数据库直接替换机顶盒客户端原有的数据库文件,如下载的是相应的数据库压缩包(如zip包),则将其解压后再使用,同时,更新模块的更新时间保存单元在机顶盒客户端保存所相应的数据库文件的更新时间。Both step S505 and step S506 are to download the database related to the movie program information; that is, the second sending module sends the request information for downloading the movie classification information database to the server, and the second receiving module receives the movie classification information database and/or classification fed back by the server. Movie information database. For step S505, the local library update unit of the update module will directly provide the set-top box client with the downloaded movie classification information database and/or classified movie information database, and for step S506, the local library update unit of the update module will download The database directly replaces the original database file of the set-top box client. If the download is a corresponding database compression package (such as a zip package), it will be used after decompression. At the same time, the update time storage unit of the update module is stored in the set-top box client. The update time of the corresponding database file.

实施例3:自动更新数据。Embodiment 3: Automatically update data.

如图6(a)所示,该实施例的机顶盒客户端自动更新数据的流程包括如下:As shown in Figure 6 (a), the flow process of the set-top box client of this embodiment automatically updating data includes as follows:

步骤S601和步骤S603分别与实施例2的步骤S501和步骤S503相同,在此不再重述;Step S601 and step S603 are respectively the same as step S501 and step S503 of embodiment 2, and will not be repeated here;

当自检的结果是机顶盒本地不存在与电影节目信息相关的数据库时,转步骤S611继续;当自检到机顶盒客户端本地存在与电影节目信息相关的数据库时,转步骤S621继续。When the result of the self-check is that there is no database related to the movie program information locally in the set-top box, go to step S611 and continue; when the self-check finds that there is a database related to the movie program information locally on the set-top box client, go to step S621 and continue.

步骤S611与实施例2的步骤S505相同,在此不再重述;Step S611 is the same as step S505 of Embodiment 2, and will not be repeated here;

步骤S621,获取所需更新文件的头信息;Step S621, obtaining the header information of the required update file;

此时第二发送模块向服务器重新发送请求,请求信息为请求需要下载的更新文件的HTTP头信息(应理解,如果服务器和机顶盒客户端之间的通信采用其他协议,则请求的是与其他协议对应的头信息),第二接收模块接收服务器反馈的更新文件的HTTP头信息;Now the second sending module resends the request to the server, and the request information is the HTTP header information of the update file that requests to download (it should be understood that if the communication between the server and the set-top box client adopts other protocols, then the request is related to other protocols Corresponding header information), the second receiving module receives the HTTP header information of the updated file fed back by the server;

步骤S623,根据更新时间判断是否需要更新;Step S623, judging whether to update according to the update time;

更新模块的时间判断单元将更新时间保存单元中保存的更新时间与第二接收模块获取的更新文件的HTTP头信息中的更新时间进行对比。如果二者相同则不进行任何后续操作,避免重复下载和数据更新;如果二者不同则转步骤S625;The time judgment unit of the update module compares the update time stored in the update time storage unit with the update time in the HTTP header information of the update file acquired by the second receiving module. If the two are the same, then do not perform any subsequent operations to avoid repeated downloads and data updates; if the two are different, go to step S625;

步骤S625,由前述判断得知更新时间不一致,说明在服务器端有新的电影节目信息已更新,则第二发送模块重新向服务器发送请求信息,请求信息为请求需要更新的更新文件。In step S625, it is known from the aforementioned judgment that the update time is inconsistent, indicating that there is new movie program information on the server side that has been updated, then the second sending module re-sends request information to the server, and the request information is an update file requesting to be updated.

实施例4:自动更新数据。Embodiment 4: Automatically update data.

如图6(b)所示,本实施例为实施例3的一种改进,图中步骤S601′、步骤S603′、步骤S611′、步骤S621′、步骤S623′分别与实施例3的步骤S601、步骤S603、步骤S611、步骤S621、步骤S623相同,在此不作重述;As shown in Fig. 6 (b), the present embodiment is an improvement of embodiment 3, step S601', step S603', step S611', step S621', step S623' in the figure are respectively the same as step S601 of embodiment 3 , step S603, step S611, step S621, and step S623 are the same, and will not be repeated here;

当于步骤S623的判断得知,若更新时间保存单元中保存的更新时间与第二接收模块获取的HTTP头信息中的更新时间不同,则转步骤S625′继续,若相同则结束更新流程;When the judgment in step S623 is known, if the update time stored in the update time storage unit is different from the update time in the HTTP header information obtained by the second receiving module, then go to step S625' to continue, and if they are the same, then end the update process;

步骤S625′,对待更新的数据量大小进行判断;Step S625', judging the amount of data to be updated;

更新模块的数量判断单元判断第二接收模块接收到的该HTTP头信息中包含的待更新的数据量(即更新文件的大小)是否超过预定数据量,待更新的数据量为当次需要更新的数据量,预定数据量为预先设定的文件大小,例如20KB。如果该数据量超过预定数据量,则转步骤S626′,判定需要下载该分类电影信息数据库,替换本地原有数据库;反之,如果该数据量小于预定数据量,则转步骤S627′,判定只需要下载更新文件,依据该更新文件对本地数据库进行更新。The quantity judging unit of the update module judges whether the amount of data to be updated (i.e. the size of the update file) contained in the HTTP header information received by the second receiving module exceeds a predetermined amount of data, and the amount of data to be updated is the amount of data that needs to be updated this time. The amount of data, the predetermined amount of data is a preset file size, such as 20KB. If the amount of data exceeds the predetermined amount of data, then go to step S626', and determine that the classified movie information database needs to be downloaded to replace the original local database; Download the update file, and update the local database according to the update file.

步骤S626′,第二发送模块重新向服务器发送请求信息,请求下载需要更新的分类电影信息数据库。第二接收模块接收服务器反馈的数据库文件。更新模块的本地库更新单元将下载得到的分类电影信息数据库提供给机顶盒客户端使用,如得到的是相应的数据库压缩包(如zip包),则将其解压后再提供,同时,更新时间保存单元在机顶盒客户端保存所相应的数据库文件的更新时间;In step S626', the second sending module resends request information to the server, requesting to download the classified movie information database that needs to be updated. The second receiving module receives the database file fed back by the server. The local library update unit of the update module provides the classified movie information database obtained by downloading to the set-top box client for use. If it is a corresponding database compression package (such as a zip package), it will be decompressed and then provided. At the same time, the update time is saved. The unit saves the update time of the corresponding database file on the set-top box client;

步骤S627′,类似地,第二发送模块向服务器端发送请求下载更新文件的请求信息,接收到服务器端反馈的更新文件后,本地库更新单元解析获取的更新文件里的数据更新信息,并根据解析结果对本地存在的分类电影信息数据库进行更新操作。可以理解,机顶盒客户端(本地库更新单元)具有文件解析功能以解析更新文件;且所涉及的分类电影信息数据库可以为多个。本实施例的自动更新既可以避免频繁的数据下载,又可以避免过多的本地数据库更新操作,兼顾网络流量和机顶盒客户端能相互平衡的问题。Step S627', similarly, the second sending module sends a request message requesting to download the update file to the server, and after receiving the update file fed back by the server, the local library update unit analyzes the data update information in the update file obtained, and according to The parsing result performs an update operation on the classified movie information database existing locally. It can be understood that the set-top box client (local library update unit) has a file parsing function to parse and update files; and there may be multiple classified movie information databases involved. The automatic update in this embodiment can not only avoid frequent data downloads, but also avoid excessive local database update operations, and take into account the problem of mutual balance between network traffic and set-top box clients.

上述各实例中涉及的下载、解压、将下载得到的电影节目信息替换本地的电影节目信息、时间判断、数据量判断、解析更新文件等的具体过程可采用本领域技术人员熟知的常用的技术手段实现,实施例对此不作限定。The specific processes of downloading, decompression, replacing the downloaded movie program information with the local movie program information, time judgment, data volume judgment, parsing and updating files, etc. involved in the above examples can use common technical means well known to those skilled in the art implementation, which is not limited by the embodiment.

为不影响用户当前的使用,在实现本地库更新单元时设计用户使用数据目录和数据更新目录,其中,用户使用数据目录用于存放直接供用户使用的电影节目信息,而数据更新目录则用来进行更新,存放根据第二接收模块接收的数据库或更新文件得到的电影节目信息。In order not to affect the current use of the user, the user use data directory and the data update directory are designed when implementing the local library update unit. Among them, the user use data directory is used to store the movie program information directly used by the user, and the data update directory is used for Update and store the movie program information obtained according to the database or update file received by the second receiving module.

综上各实施例,以与电影节目信息相关的数据库文件为压缩包为例,本实施方式的机顶盒客户端的各模块的功能可通过图7所示数据更新流程体现(为便于理解,图7所示流程中不包含强制更新数据过程,但应理解实施方式的机顶盒客户端是具有该强制更新功能的)。To sum up the above embodiments, taking the database file related to the movie program information as a compressed package as an example, the functions of each module of the set-top box client in this embodiment can be embodied by the data update process shown in Figure 7 (for ease of understanding, Figure 7 shows The process of forced update of data is not included in the flow shown, but it should be understood that the set-top box client in the embodiment has the function of forced update).

如图7所示,流程包含的大部分过程与前述实施例4相似,如步骤S701至步骤S721以及步骤S725等,在此不作重述。As shown in FIG. 7 , most of the processes included in the flow are similar to those of the foregoing embodiment 4, such as step S701 to step S721 and step S725 , etc., which will not be repeated here.

具体实现时,每个机顶盒客户端存储两套完整的数据,一套存于用户使用数据目录,另一套存于数据更新目录。用户使用数据目录供用户使用,数据更新目录用来更新,都采用两个目录来存放完整的数据,应理解,两个目录是相对的,轮流替换的,即每次更新完新的数据后,切换用户使用存放更新后的数据的目录,而原使用的目录则刷新为数据更新目录。During specific implementation, each set-top box client stores two sets of complete data, one set is stored in the user use data directory, and the other set is stored in the data update directory. The user uses the data directory for the user, and the data update directory is used for updating. Both directories use two directories to store complete data. It should be understood that the two directories are relative and replaced in turn, that is, after each new data is updated, Switch the directory that the user uses to store the updated data, and the original directory is refreshed as the data update directory.

实际处理时,将分类电影信息数据库的压缩包解压到数据更新目录(设为目录B),然后拷贝其内容到用户使用数据目录(设为目录A),在拷贝时,可以将数据库文件名加上后缀如“.bak”以备最后更新目录A时使用。拷贝结束后,进行目录切换,使用户直接使用目录B(此时目录B为用户使用数据目录),然后更新目录A(此时目录A为数据更新目录),对目录A的操作可以是如删除禁用的数据库文件,用所有带有后缀的文件去除后缀后替换老的数据库。During actual processing, decompress the compressed package of the classified movie information database to the data update directory (set as directory B), and then copy its content to the user data directory (set as directory A). When copying, you can add the database file name to Add a suffix such as ".bak" for the last update of directory A. After the copy is finished, switch the directory so that the user can directly use directory B (at this time, directory B is the user's data directory), and then update directory A (at this time, directory A is the data update directory), and the operation on directory A can be such as deleting For disabled database files, replace the old database with all files with suffixes removed.

本实施方式的机顶盒客户端具有强制更新功能和自动更新功能,在自动更新功能中,虽然可能涉及多次判断,但这些判断所涉及发送接收的数据量(即HTTP头信息)相对较小,因此速度非常快,同时还通过判断待更新内容的数据量来决定下载的内容,这样可尽量减小电影节目信息的数据下载量,同时缩短了电影节目信息更新时间,让用户能尽快获取到最新的电影节目信息,最终改善了用户使用体验。The set-top box client of this embodiment has a mandatory update function and an automatic update function. In the automatic update function, although multiple judgments may be involved, the amount of data sent and received (that is, HTTP header information) involved in these judgments is relatively small, so The speed is very fast, and at the same time, the downloaded content is determined by judging the data volume of the content to be updated, which can minimize the data download volume of the movie program information, and shorten the update time of the movie program information, so that users can get the latest information as soon as possible Movie program information, ultimately improving the user experience.

实施方式三:Implementation mode three:

本实施方式提供一种基于机顶盒的数据更新系统,如图8所示,包括:服务器1和至少一个机顶盒客户端2,其中,This embodiment provides a data update system based on a set-top box, as shown in FIG. 8 , including: a server 1 and at least one set-top box client 2, wherein,

服务器1包括:采集模块、数据库操作模块、第一接收模块、第一发送模块。采集模块用于从互联网上采集相关的电影节目信息;数据库操作模块用于对采集到的电影节目信息建立与电影节目信息相关的数据库,还用于根据对所述数据库的更改操作生成相应的更新文件;第一接收模块用于接收来自所述至少一个机顶盒客户端的节目更新请求信息;第一发送模块用于根据所述请求信息将相应的内容发送至所述至少一个机顶盒客户端;The server 1 includes: a collection module, a database operation module, a first receiving module, and a first sending module. The acquisition module is used to collect relevant movie program information from the Internet; the database operation module is used to establish a database related to the movie program information for the collected movie program information, and is also used to generate corresponding updates according to the modification operation of the database file; the first receiving module is used to receive program update request information from the at least one set-top box client; the first sending module is used to send corresponding content to the at least one set-top box client according to the request information;

至少一个机顶盒客户端2包括:第二发送模块、第二接收模块、更新模块。第二发送模块用于向服务器发送请求信息;第二接收模块用于接收来自服务器的根据所述请求信息反馈的信息;更新模块用于根据接收到的反馈信息,确定对机顶盒客户端的本地的电影节目信息进行更新的内容。At least one STB client 2 includes: a second sending module, a second receiving module, and an updating module. The second sending module is used to send request information to the server; the second receiving module is used to receive information fed back from the server according to the request information; the update module is used to determine the local movie to the set-top box client according to the received feedback information Program information to be updated.

本实施方式的数据更新系统的各部分及其模块的功能与工作流程具体可参考前述实施方式一和实施方式二,包括但不限于图9-图11所示。The functions and workflow of each part of the data update system and its modules in this embodiment can refer to the first and second embodiments above, including but not limited to those shown in FIGS. 9-11 .

图9示意出了机顶盒客户端与服务器端的一种交互情况,此时,机顶盒客户端通过自检方式或由用户采取手动强制更新方式,在检测到本地没有相关数据库后,向服务器端发送请求下载相关的数据库的请求,服务器端接收并根据相关请求反馈数据库给机顶盒客户端。Figure 9 shows an interaction between the set-top box client and the server. At this time, the set-top box client sends a download request to the server after detecting that there is no relevant database in the local area through self-checking or manual forced update by the user. The server side receives the related database request and feeds back the database to the set-top box client side according to the related request.

图10描述了机顶盒客户端与服务器端的另一种交互情况,此时,机顶盒客户端自检发现本地已有数据库文件后,向服务器端发送获取所需更新文件(如格式为XML文件)的头信息的请求,服务器端接受并根据该请求反馈所需更新文件的头信息。这里,由于数据库的每次更新都会生成相应的更新文件,该文件的头信息中已经包含了所需的数据库状态信息,所以可以不用获取数据库文件的头信息;当然,本领域技术人员也可以采取获取所需数据库文件的头信息的方式进行相关处理。图10中机顶盒客户端的本地数据库的更新时间与服务器端对应的数据库的更新时间一致。Figure 10 describes another interaction between the set-top box client and the server. At this time, after the set-top box client self-checks and finds that there is a database file locally, it sends a header to the server to obtain the required update file (such as an XML file). The request for information, the server accepts and feeds back the header information of the file to be updated according to the request. Here, because each update of the database will generate a corresponding update file, the header information of the file already contains the required database status information, so it is not necessary to obtain the header information of the database file; of course, those skilled in the art can also take Get the header information of the required database file for related processing. In FIG. 10 , the update time of the local database of the set-top box client is consistent with the update time of the corresponding database of the server.

图11描述了机顶盒客户端与服务器端交互的另一种情况,此时机顶盒客户端的本地数据库的更新时间与服务器端对应的数据库的更新时间不一致,随之,机顶盒客户端将再判断更新文件的大小,并根据判断结果发送相应的请求(如果待获取的更新文件的大小等于大于预定数据量,则发送请求获取数据库的下载请求,否则发送请求获取更新文件的下载请求)。图9-图11所涉及的具体过程与前述实施方式一及实施方式二所涉及的对应过程相同或类似,在此不再重述。Fig. 11 has described another situation of the interaction between the set-top box client and the server. At this time, the update time of the local database of the set-top box client is inconsistent with the update time of the corresponding database of the server. Then, the set-top box client will judge the update file again. size, and send a corresponding request according to the judgment result (if the size of the update file to be obtained is equal to or greater than the predetermined amount of data, then send a request to obtain a download request for the database, otherwise send a request to obtain a download request for the update file). The specific processes involved in FIG. 9-FIG. 11 are the same or similar to the corresponding processes involved in the first embodiment and the second embodiment, and will not be repeated here.

本实施方式的基于机顶盒的数据更新系统,在服务器端进行电影节目信息采集,并在服务器端储存更新的数据,以供机顶盒客户端有需求的时候进行下载,尽可能减少本地数据更新操作次数以及相关系统资源的消耗;且机顶盒客户端根据所请求信息的反馈信息再确定更新,从而,避免了B/S架构系统的实时性要求;克服了用户长时间等待数据更新的问题;尽量减小了电影节目信息数据下载量;尽可能减少本地数据更新操作次数及相关系统资源的消耗,同时缩短了电影节目信息的更新时间,让用户能尽快获取到最新的电影节目信息;最终改善了用户使用体验。The data update system based on the set-top box of the present embodiment collects movie program information on the server side, and stores the updated data on the server side for downloading when the set-top box client needs it, so as to reduce the number of local data update operations and Consumption of relevant system resources; and the set-top box client determines the update according to the feedback information of the requested information, thereby avoiding the real-time requirements of the B/S architecture system; overcoming the problem of users waiting for data updates for a long time; minimizing Movie program information data downloads; reduce the number of local data update operations and the consumption of related system resources as much as possible, and at the same time shorten the update time of movie program information, so that users can obtain the latest movie program information as soon as possible; ultimately improve the user experience .

实施方式四:Implementation mode four:

本实施方式提供一种基于机顶盒的数据更新方法,如图12所示,该方法包括如下过程:This embodiment provides a set-top box-based data update method, as shown in Figure 12, the method includes the following process:

服务器从互联网上采集相关的电影节目信息,并对采集到的电影节目信息建立与电影节目信息相关的数据库,且根据对所述数据库的更改操作生成相应的更新文件;The server collects relevant movie program information from the Internet, and establishes a database related to the movie program information for the collected movie program information, and generates a corresponding update file according to the modification operation to the database;

所述服务器接收来自至少一个机顶盒客户端的节目更新请求信息;The server receives program update request information from at least one set-top box client;

根据所述请求信息,所述服务器将相应的内容发送至所述至少一个机顶盒客户端;According to the request information, the server sends corresponding content to the at least one set-top box client;

所述至少一个机顶盒客户端根据接收到的反馈信息,确定对机顶盒客户端的本地的电影节目信息进行更新的内容。The at least one set-top box client determines, according to the received feedback information, content to update local movie program information of the set-top box client.

本实施方式所涉及的服务器与机顶盒客户端的工作过程与前述实施方式一、实施方式二及实施方式三相同或类似,在此不再重述。The working process of the server and the set-top box client involved in this embodiment is the same as or similar to that of the first embodiment, the second embodiment and the third embodiment, and will not be repeated here.

本实施方式的基于机顶盒的数据更新方法,在服务器端进行电影节目信息采集,并在服务器端储存更新的数据,以供机顶盒客户端有需求的时候进行下载,尽可能减少本地数据更新操作次数以及相关系统资源的消耗;且机顶盒客户端根据所请求信息的反馈信息再确定更新,从而,避免了B/S架构系统的实时性要求;克服了用户长时间等待数据更新的问题;尽量减小了电影节目信息数据下载量;尽可能减少本地数据更新操作次数及相关系统资源的消耗,同时缩短了电影节目信息的更新时间,让用户能尽快获取到最新的电影节目信息;最终改善了用户使用体验。The data update method based on the set-top box of the present embodiment collects movie program information on the server side, and stores the updated data on the server side for downloading when the set-top box client needs it, so as to reduce the number of local data update operations and Consumption of relevant system resources; and the set-top box client determines the update according to the feedback information of the requested information, thereby avoiding the real-time requirements of the B/S architecture system; overcoming the problem of users waiting for data updates for a long time; minimizing Movie program information data downloads; reduce the number of local data update operations and the consumption of related system resources as much as possible, and at the same time shorten the update time of movie program information, so that users can obtain the latest movie program information as soon as possible; ultimately improve the user experience .

以上各实施方式所描述的全部下载和机顶盒客户端的数据库的更新操作都可以在应用后台线程里完成,从而不影响用户当前的使用,更新完成后系统将自动切换到新的数据库,并且自动刷新用户正在使用的界面,将最新的电影信息展示给用户。All the downloading described in the above embodiments and the update operation of the database of the set-top box client can be completed in the application background thread, so as not to affect the current use of the user. After the update is completed, the system will automatically switch to the new database and automatically refresh the user. The interface being used displays the latest movie information to the user.

上述实施例只是本发明的举例,尽管为说明目的公开了本发明的最佳实施例和附图,但是本领域的技术人员可以理解:在不脱离本发明及所附的权利要求的精神和范围内,各种替换、变化和修改都是可能的。因此,本发明不应局限于最佳实施例和附图所公开的内容。The foregoing embodiments are only examples of the present invention. Although the best embodiment of the present invention and the accompanying drawings are disclosed for illustrative purposes, those skilled in the art can understand that: without departing from the spirit and scope of the present invention and the appended claims Inside, various substitutions, changes and modifications are possible. Therefore, the present invention should not be limited to what is disclosed in the preferred embodiments and drawings.

Claims (12)

1. the data update system based on set-top box is characterized in that, comprises server and at least one set-top box client;
Described server comprises:
Acquisition module is used for from the relevant movie program information of the Internet collection;
The database manipulation module is used for the movie program information that collects is set up the database relevant with movie program information, also is used for generating corresponding transaction file according to the change operation to described database;
First receiver module is used for receiving the program updating solicited message from described at least one set-top box client;
First sending module is used for according to described request information corresponding content being sent to described at least one set-top box client;
Described at least one set-top box client comprises:
Second sending module is used for sending solicited message to server as required;
Second receiver module is used for receiving the information according to the described request feedback information from server;
Update module is used for according to the feedback information that receives, and determines the content that the movie program information of this locality of set-top box client is upgraded.
2. the data update system based on set-top box as claimed in claim 1, it is characterized in that, the solicited message that described second sending module sends comprises request download database or the transaction file relevant with movie program information, the feedack that described second receiver module receives comprises database or the transaction file relevant with movie program information, and described update module comprises:
The local library updating block is used for upgrading the movie program information of this locality of set-top box client according to database or the transaction file relevant with movie program information that receive;
Preserve the unit update time, be used for the time that preservation is upgraded the movie program information of this locality of set-top box client.
3. the data update system based on set-top box as claimed in claim 2, it is characterized in that, described local library updating block comprises that the user uses data directory and Data Update catalogue, described user uses data directory to be used to deposit direct movie program information for user's use, and described Data Update catalogue is used for depositing the database relevant with movie program information or the transaction file that receive according to described second receiver module and upgrades the movie program information that obtains.
4. the data update system based on set-top box as claimed in claim 2, it is characterized in that, the solicited message that described second sending module sends also comprises the communication protocol header of the transaction file that request need be downloaded, the feedack that described second receiver module receives also comprises the communication protocol header of the transaction file that needs are downloaded, and described update module also comprises:
The time judging unit is used for preserving update time that described communication protocol header is comprised and described update time and compares the update time of preserving the unit.
5. the data update system based on set-top box as claimed in claim 4 is characterized in that, described update module also comprises:
The quantity judging unit, the data volume to be updated and the predetermined amount of data that are used for described communication protocol header is comprised compare.
6. as each described data update system based on set-top box of claim 1-5, it is characterized in that, the described database relevant with movie program information comprises separated film information database and at least one classification film information database, and described separated film information database and classification film information database adopt the SQLITE database to realize; Corresponding at least one described transaction file of any database in described at least one classification film information database, the form of described transaction file is the XML form; The download of the database of described set-top box client and renewal operation are all finished in the application background thread.
7. the data-updating method based on set-top box is characterized in that, comprising:
Server is gathered relevant movie program information from the Internet, and the movie program information that collects is set up the database relevant with movie program information, and generates corresponding transaction file according to the change operation to described database;
Described server receives the program updating solicited message from least one set-top box client;
According to described request information, described server is sent to described at least one set-top box client with corresponding content;
Described at least one set-top box client is according to the feedback information that receives, and determines the content that the movie program information of this locality of set-top box client is upgraded.
8. the data-updating method based on set-top box as claimed in claim 7, it is characterized in that, described request information comprises: the communication protocol header of the corresponding transaction file of classification film information database that the request needs upgrade, or request needs classification film information database or the transaction file of renewal;
The classification film information database or the transaction file that need renewal when described request information for request, the information of described server feedback comprises classification film information database or the transaction file that needs upgrade, described at least one set-top box client is according to the classification film information database or the transaction file that receive, upgrade the movie program information of this locality of set-top box client, and preserve the time that the movie program information of this locality of set-top box client is upgraded;
The communication protocol header that needs the transaction file of download when described request information for request, the information of described server feedback comprises the communication protocol header of the transaction file that needs are downloaded, compare the update time that comprises in the update time that described at least one set-top box client is preserved this locality and the described communication protocol header, if both are identical, do not carry out Data Update, when both not simultaneously
Described at least one set-top box client compares data volume to be updated and the predetermined amount of data that comprises in the described communication protocol header, when described data volume to be updated during more than or equal to described predetermined amount of data, described set-top box client sends solicited message to described server again, request needs the classification film information database of renewal, replace to carry out this locality, when described data volume to be updated during less than described predetermined amount of data, described set-top box client sends solicited message to described server again, the transaction file that request needs renewal upgrades local data base according to described transaction file; The download of described database and renewal operation are all finished in the application background thread.
9. a server is characterized in that, comprising:
Acquisition module is used for from the relevant movie program information of the Internet collection;
The database manipulation module is used for the movie program information that collects is set up the database relevant with movie program information, also is used for generating corresponding transaction file according to the change operation to described database;
First receiver module is used for receiving the program updating solicited message from the set-top box client;
First sending module is used for according to described request information corresponding content being sent to the set-top box client.
10. server as claimed in claim 9 is characterized in that, the described database relevant with movie program information comprises separated film information database and at least one classification film information database; Described database manipulation module also is used for when at least one classification film information database the change operation taking place, and regenerates the classification film information database of this generation change operation, and generates and the corresponding transaction file of this classification film information database; Described database manipulation module also is used for regenerating the separated film information database after all classification film information databases regenerate.
11. a client set top box is characterized in that, comprising:
Second sending module is used for sending solicited message to server as required;
Second receiver module is used for receiving the information according to the described request feedback information from server;
Update module is used for according to the feedback information that receives, and determines the content that the movie program information of this locality of set-top box client is upgraded.
12. client set top box as claimed in claim 11, it is characterized in that, described request information comprises: the communication protocol header of the corresponding transaction file of classification film information database that the request needs upgrade, or request needs classification film information database or the transaction file of renewal;
The classification film information database or the transaction file that need renewal when described request information for request, the information of described server feedback comprises classification film information database or the transaction file that needs upgrade, and described update module comprises preserves local library updating block and update time the unit; Described local library updating block is used for upgrading the movie program information of this locality of set-top box client according to database or the transaction file relevant with movie program information that receive; Preserve the unit described update time and be used for the time that preservation is upgraded the movie program information of this locality of set-top box client;
When described request information needs the transaction file communication protocol header of download for request, the information of described server feedback comprises the communication protocol header of the transaction file that needs are downloaded, described update module comprises the time judging unit, compare with local update time of preserving the update time that is used for described communication protocol header is comprised, if both are identical, do not carry out Data Update, when both not simultaneously, described update module comprises the quantity judging unit, the data volume to be updated and the predetermined amount of data that are used for described communication protocol header is comprised compare, when described data volume to be updated during more than or equal to described predetermined amount of data, described second sending module sends solicited message to described server again, request needs the classification film information database of renewal, replace to carry out this locality, when described data volume to be updated during less than described predetermined amount of data, described second sending module sends solicited message to described server again, the transaction file that request needs renewal upgrades local data base according to described transaction file; The download of the database of described set-top box client and renewal operation are all finished in the application background thread.
CN201210047360.8A 2012-02-28 2012-02-28 Data update system based on Set Top Box and method Expired - Fee Related CN103297803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210047360.8A CN103297803B (en) 2012-02-28 2012-02-28 Data update system based on Set Top Box and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210047360.8A CN103297803B (en) 2012-02-28 2012-02-28 Data update system based on Set Top Box and method

Publications (2)

Publication Number Publication Date
CN103297803A true CN103297803A (en) 2013-09-11
CN103297803B CN103297803B (en) 2016-09-07

Family

ID=49098025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210047360.8A Expired - Fee Related CN103297803B (en) 2012-02-28 2012-02-28 Data update system based on Set Top Box and method

Country Status (1)

Country Link
CN (1) CN103297803B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631626A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Software updating method and electronic device
CN103647803A (en) * 2013-11-22 2014-03-19 北京奇虎科技有限公司 A method for a mobile terminal to subscribe content and an apparatus
CN104540014A (en) * 2015-01-28 2015-04-22 珠海迈科智能科技股份有限公司 Channel data acquiring method and system
CN104735525A (en) * 2015-03-25 2015-06-24 浪潮软件集团有限公司 Information interaction method, set top box and server
WO2015161604A1 (en) * 2014-04-22 2015-10-29 中兴通讯股份有限公司 Method and device for requesting and sending iptv picture file
CN105099758A (en) * 2015-06-12 2015-11-25 小米科技有限责任公司 Methods and devices for transmitting update data package
CN106656737A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Information synchronization method and terminal
CN107609658A (en) * 2017-09-18 2018-01-19 内蒙古自治区大气探测技术保障中心 Weather station business management method, apparatus and system
CN111417023A (en) * 2020-04-28 2020-07-14 安徽国广数字科技有限公司 Method for replacing system theme of set top box and set top box
CN116233552A (en) * 2023-03-20 2023-06-06 国芯科技(广州)有限公司 Method for realizing DVB service based on IP on set top box

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801087A (en) * 2004-12-31 2006-07-12 英业达股份有限公司 Data and application synchronous update system and method
CN101001386A (en) * 2007-01-05 2007-07-18 中兴通讯股份有限公司 Updating method of mobile multimedia broadcast electronci service guide
CN101378486A (en) * 2007-08-31 2009-03-04 深圳市同洲电子股份有限公司 Program information management system and program information management method
CN101917569A (en) * 2010-07-23 2010-12-15 中国有线电视网络有限公司 Method and system for updating programme labeling information and set top box
US20110131413A1 (en) * 2009-11-30 2011-06-02 Electronics And Telecommunications Research Institute Apparatus and method for dynamic update of software-based iptv conditional access system
CN102131110A (en) * 2010-09-20 2011-07-20 华为技术有限公司 A system and method for publishing IPTV content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801087A (en) * 2004-12-31 2006-07-12 英业达股份有限公司 Data and application synchronous update system and method
CN101001386A (en) * 2007-01-05 2007-07-18 中兴通讯股份有限公司 Updating method of mobile multimedia broadcast electronci service guide
CN101378486A (en) * 2007-08-31 2009-03-04 深圳市同洲电子股份有限公司 Program information management system and program information management method
US20110131413A1 (en) * 2009-11-30 2011-06-02 Electronics And Telecommunications Research Institute Apparatus and method for dynamic update of software-based iptv conditional access system
CN101917569A (en) * 2010-07-23 2010-12-15 中国有线电视网络有限公司 Method and system for updating programme labeling information and set top box
CN102131110A (en) * 2010-09-20 2011-07-20 华为技术有限公司 A system and method for publishing IPTV content

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647803A (en) * 2013-11-22 2014-03-19 北京奇虎科技有限公司 A method for a mobile terminal to subscribe content and an apparatus
CN103631626A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Software updating method and electronic device
WO2015161604A1 (en) * 2014-04-22 2015-10-29 中兴通讯股份有限公司 Method and device for requesting and sending iptv picture file
CN104540014A (en) * 2015-01-28 2015-04-22 珠海迈科智能科技股份有限公司 Channel data acquiring method and system
CN104735525A (en) * 2015-03-25 2015-06-24 浪潮软件集团有限公司 Information interaction method, set top box and server
CN105099758A (en) * 2015-06-12 2015-11-25 小米科技有限责任公司 Methods and devices for transmitting update data package
CN106656737A (en) * 2016-09-14 2017-05-10 广东欧珀移动通信有限公司 Information synchronization method and terminal
CN107609658A (en) * 2017-09-18 2018-01-19 内蒙古自治区大气探测技术保障中心 Weather station business management method, apparatus and system
CN111417023A (en) * 2020-04-28 2020-07-14 安徽国广数字科技有限公司 Method for replacing system theme of set top box and set top box
CN116233552A (en) * 2023-03-20 2023-06-06 国芯科技(广州)有限公司 Method for realizing DVB service based on IP on set top box

Also Published As

Publication number Publication date
CN103297803B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN103297803B (en) Data update system based on Set Top Box and method
US11200044B2 (en) Providing access to a hybrid application offline
US9298747B2 (en) Deployable, consistent, and extensible computing environment platform
US11032140B2 (en) Using a template to update a stack of resources
US11277498B2 (en) Method, apparatus and system for processing data
US10387451B2 (en) Synchronization system for multiple client devices
CN104158886B (en) Flow-type performing method for applications
CN102129378B (en) A kind of software menu updating method and device
CN102349062B (en) Method and system for synchronizing browser caches across devices and web services
CN103678319B (en) Resource file update method, device and system and server
CN110336871A (en) A kind of document handling method, device, storage medium and electronic equipment
US10069942B2 (en) Method and apparatus for changing configurations
Peek et al. EnsemBlue: Integrating distributed storage and consumer electronics
EP1775913A1 (en) Method for controlling multimedia middleware apparatus using metadata
TW201246103A (en) Category information transmission method, system and apparatus
CN102291416A (en) Two-way synchronizing method and system of client-side and server-side
WO2017167121A1 (en) Method and device for determining and applying association relationship between application programs
WO2021051747A1 (en) Data update method, system and device, electronic device, and computer storage medium
CN104767810A (en) Cloud-end collaborative service system and cloud-end collaborative working method
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN114296771A (en) Installation package increment upgrading method and device based on file comparison
CN109033312A (en) Method and apparatus for obtaining information
CN103036948A (en) Network file processing method and execution node and software as a service (SaaS) platform
CN102385614A (en) Terminal file updating management method and system
EP3506599A1 (en) Method for synchronizing contact information, apparatus, medium, electronic device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200617

Address after: No.266 Chuangyan Road, Qilin science and Technology Innovation Park, Jiangning District, Nanjing City, Jiangsu Province

Patentee after: Nanjing Qianying Technology Development Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 009 Chinese Technology Development Institute Technology Park building three, 22 floor

Patentee before: SHENZHEN QVOD TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201030

Address after: 233000 No.10, building 32, Zone 8, Guangcai market, bengshan District, Bengbu City, Anhui Province

Patentee after: Bengbu Shangwei Intellectual Property Operations Co.,Ltd.

Address before: No.266 Chuangyan Road, Qilin science and Technology Innovation Park, Jiangning District, Nanjing City, Jiangsu Province

Patentee before: Nanjing Qianying Technology Development Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230628

Address after: 518000 18th floor, building B, tefa information port building, No.2 Kefeng Road, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN SDG INFORMATION Co.,Ltd.

Address before: 233000 No.10, building 32, Zone 8, Guangcai market, bengshan District, Bengbu City, Anhui Province

Patentee before: Bengbu Shangwei Intellectual Property Operations Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160907