Summary of the invention
The embodiment of the invention is to provide a kind of method and system and receiving terminal for digital television of receiving terminal for digital television application data-downloading, leave in the different pieces of information by using this number of list pane and application data, solved the overweight problem of existing application download server load.
In order to reach above-mentioned technique effect, the embodiment of the invention has proposed a kind of method of application data-downloading, comprising:
Application download agent server in digital television system sends the list pane this shop request of using;
Receive the more recent application list pane this shop that the application download agent server in the described digital television system returns according to the request of application list pane this shop;
Whether the local list pane this shop that analyses and compares is identical with described more recent application list pane this shop;
If described local list pane this shop is identical with described more recent application list pane this shop, does not then send to described digital television system and use download request;
If described local list pane this shop is different from described more recent application list pane this shop, the application data upgraded of the application download server acquisition request in the described digital television system then.
Accordingly, the embodiment of the invention has also proposed a kind of receiving terminal for digital television, comprising:
The first request unit is used for sending the list pane this shop request of using to the application download agent server of digital television system;
The first receiving element, the application download agent server that is used for receiving described digital television system is according to the more recent application list pane this shop that uses the request of list pane this shop and return;
Analytic unit, whether the local list pane this shop that is used for analysing and comparing is identical with described more recent application list pane this shop;
Processing unit is used for analyzing described local list pane this shop when identical with described more recent application list pane this shop at described analytic unit, does not send the application download request to described digital television system; Analyze described local list pane this shop and described more recent application list pane this shop not simultaneously at described analytic unit, the application data that the application download server acquisition request in described digital television system need be upgraded.
Accordingly, the embodiment of the invention has also proposed a kind of AMS, comprising:
Use the download agent server, be used for the application list pane this shop request that the receiving digital television receiving terminal sends, and return up-to-date application list pane this shop according to the request of described application list pane this shop to receiving terminal for digital television;
Application download server is used for the application data-downloading request that the receiving digital television receiving terminal sends, and returns the application data of renewal to receiving terminal for digital television according to described application data-downloading request.
Correspondingly, the embodiment of the invention has also proposed a kind of digital television system, comprises aforesaid receiving terminal for digital television and the AMS that links to each other with described receiving terminal for digital television.
Implement the embodiment of the invention, receiving terminal for digital television at first obtains application list pane this shop in the download agent server, after getting access to application list pane this shop, compare with the application list pane this shop of this locality, if both version numbers are identical, then receiving terminal for digital television does not need to the application data of application download server acquisition request renewal, then this processing mode can reduce the number of times of receiving terminal for digital television access application Download Server, thereby reduces the network load of application download server.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.
The receiving terminal for digital television of the embodiment of the invention mainly sends the list pane this shop request of using by the application download agent server in digital television system; And receive application download agent server in the described digital television system according to the more recent application list pane this shop that uses the request of list pane this shop and return; Whether the local list pane this shop that analyses and compares is identical with described more recent application list pane this shop; If described local list pane this shop is identical with described more recent application list pane this shop, does not then send to described digital television system and use download request; If described local list pane this shop is different from described more recent application list pane this shop, the application data upgraded of the application download server acquisition request in the described digital television system then.
Detailed, Fig. 2 shows the renewal application data flow process figure in the embodiment of the invention, this flow chart is mainly concerned with the keeper when uploading application data, with application data with use list pane this shop synchronous transmission to the process of using download agent server and application download server, comprise the steps:
S201: application management server receives the application data that the operator uploads;
S202: application management server travels through all application datas of having uploaded, and generates the application inventory file;
S203: application management server generates uses list pane this shop;
S204: the application management server transmission is used inventory file to using the download agent server;
S205: application management server transmission application inventory file and application data are to application download server.
Need to prove that S204 and S205 carry out synchronously, there is not the constraint of proper sequencing in it after S203.Front-end operators is uploaded when being applied to application management server, after application management server travels through all application of having uploaded, generate and use inventory file, use and carry the style number of using list pane this shop and receiving terminal for digital television in the inventory file, use the every renewal of inventory file once this version number all can upgrade one new, such as version number upwards cumulative 1.Application management server will use inventory file and application data is transferred to application download server; To use inventory file and be transferred to application download agent server.Use inventory file and with application list pane this shop following relation is arranged: different terminals can be downloaded different application, application management server is rule according to a preconcerted arrangement, style number sign of terminal distribution for each type, for example: STB_TYPE_ID, generate one for the style number sign and use inventory file, using inventory file for every kind has the version number of oneself.
The application manifest file format here can agree as follows: using inventory file can be with STB_TYPE_ID and version number corresponding preservation the one by one, form is as follows: | STB_TYPE_ID|VER|STB_TYPE_ID|VER|..., wherein: STB_TYPE_ID and VER use 16 system numbers to represent.
If, the receiving terminal for digital television of three types is arranged at present, type is respectively STB_TYPE_ID=1, STB_TYPE_ID=2, STB_TYPE_ID=3; Corresponding version is respectively 1,3,12; Generating version number's file is: 00010001000200030003000C, wherein: 0001 to represent type I D be 1 type STB_TYPE_ID=1 for first, representing type I D for second 0001 and be 1 version number corresponding to type is 1,0002 to represent type I D be 2 type STB_TYPE_ID=2,0003 to represent type I D be that 2 version number corresponding to type is 3 for first, represent type I D for second 0003 and be 3 type STB_TYPE_ID=3, it is that 3 version number corresponding to type is 12 that 000C represents type I D.
The application manifest file format here can agree as follows: the file name form is as follows: AppList.STB_TYPE_ID
As the receiving terminal for digital television of three types is arranged at present, type is respectively STB_TYPE_ID=1, STB_TYPE_ID=2, and STB_TYPE_ID=3, the application inventory file of generation is respectively: AppList.1, AppList.2, AppList.3.
By above-mentioned literal as can be known, according to receiving terminal for digital television type STB_TYPE_ID, just can mate using inventory file and using inventory file.
Accordingly, Fig. 3 shows the flow chart of the application data-downloading method in the embodiment of the invention, this application download agent server and application download server have been set up synchronously the related application data and have been used this number of list pane etc. by the mode in the flow chart 2, and this concrete scheme comprises the steps:
S301: receiving terminal for digital television is used list pane this shop to using the download agent server request;
Need to prove, the receiving terminal for digital television of present embodiment passes through udp protocol instruction or Transmission Control Protocol instruction or http protocol instruction and sends the list pane this shop request of using to digital television system, certainly can also pass through the communication protocol of other agreements to digital television system transmission request.
Receiving terminal for digital television is used the instruction of list pane this shop to the application download agent server request of digital television system: | STB_TYPE_ID|CMD_VER_|CRC|, wherein:
STB_TYPE_ID accounts for 4 bytes, the ID value of the terminal type of representative digit television receive terminal.The corresponding ID value of every kind of type of terminal is used the download agent server and is returned the corresponding version number that uses inventory of this type according to this ID value.If need increase a kind of type future newly, add an ID value and get final product, need not to revise existing type;
CMD_VER accounts for 4 bytes, the version number of this " list pane this shop is used in request " instruction of expression.Following if revise this instruction, judge by this version number.Such as future request instruction being revised as | behind the STB_TYPE_ID|STB_ID|VER|CRC|, just can finely judge whether this instruction is upgraded by the VER field; Application download server provides different processing modes according to the terminal request instruction of this field for different editions, fully accomplishes the compatible forward of agreement;
CRC accounts for 4 bytes, to the cyclic redundancy check (CRC) of the data before it, avoids system to process the data that make a mistake in transmission.
In the present embodiment, this receiving terminal for digital television can send the list pane this shop request of using to digital television system by the timed sending mechanism that sets in advance.
S302: use the download agent server and return application list pane this shop to receiving terminal for digital television;
Need to prove, also can adopt Transmission Control Protocol or http protocol etc. among step S301 and the S302.Because UDP is connectionless agreement, takies less server system resource, using in the not too high situation of download requirement of real-time, adopt udp protocol, although udp protocol has the phenomenon of data packet loss, can ensure the correctness of data by the crc value verification.TCP and http protocol are connection-oriented network protocols, and UDP can take more system resource, but TCP is reliable agreement relatively, and data integrity is guaranteed.
The application download agent server of digital television system to receiving terminal for digital television return data packet format is: | VERSION|CRC|, wherein:
VERSION: account for 4 bytes, expression and version number corresponding to STBTYPE_ID;
CRC: account for 4 bytes, to the cyclic redundancy check (CRC) of the data before it
When using the download agent startup of server or after using the inventory file renewal, use the download agent server and can read this document content in internal memory, calculate the crc value of corresponding data; After receiving that the instruction of list pane this shop is used in the receiving terminal for digital television request, the STBTYPE_ID that uses inventory file in STBTYPE_ID in the instruction and the internal memory can be mated, to receiving terminal for digital television return data bag.
S303: the application list pane this shop that receiving terminal for digital television will return and the local application list pane this shop that preserves compare, if version number is different, then needs to carry out S304, otherwise do not carry out S304, withdraw from;
S304: receiving terminal for digital television sends the down load application listings request to application download server;
Concrete, when application list pane this shop that receiving terminal for digital television will return and the local application list pane this shop that preserves not simultaneously, receiving terminal for digital television sends the down load application listings request to application download server, and this request comprises the receiving terminal for digital television style number.
S305: application download server returns the application listings data to receiving terminal for digital television;
S306: the application inventory that receiving terminal for digital television will receive and local use or the local application inventory of preserving relatively, calculating needs the application of downloading, and needing to obtain the inventory of the application upgraded;
S307: receiving terminal for digital television sends the request of application data-downloading to application download server;
Need to prove, be extensibility and the maintainability that takes into full account system among the step S307, here describe as an example of the udp protocol instruction example, the application inventory that the need that receiving terminal for digital television obtains according to step S306 upgrade is to the request of application download server transmission application data-downloading, and this request comprises that receiving terminal for digital television style number and the corresponding application data that needs to download of receiving terminal for digital television style number link.
S308: the traversal applications inventory, search the application data of required download;
Concrete, application download server receives traversal applications inventory after the request of the application data-downloading that receiving terminal for digital television sends, according to the corresponding application data link of the receiving terminal for digital television style number in the application data, search the application data of the required download of receiving terminal for digital television.
S309: application download server returns application data to receiving terminal for digital television;
Need to prove that among the S304 to S309, receiving terminal for digital television establishes a communications link by http protocol and application download server, down load application inventory in the application download server, and download and need application data of upgrading etc.
S310: receiving terminal for digital television upgrades or the installation application data;
S311: receiving terminal for digital television upgrades local inventory.
Need to prove that receiving terminal for digital television upwards cumulative 1 obtains new application list pane this shop with former application list pane this shop.
Can find out by the flow process among Fig. 2 and Fig. 3, receiving terminal for digital television need arrive first application download agent server and obtain list pane this shop, comparing in the identical situation of version number, this receiving terminal for digital television can the access application Download Server, this processing mode can reduce the number of times of receiving terminal for digital television access application Download Server, reduces the load of application download server.And mutual between receiving terminal for digital television and the acting server because it is a lot of less to use the relatively whole application inventory of data volume of version number of inventory, can reduce network bandwidth load.Only have 10 bytes by the request data package that udp protocol is initiated, 8 bytes of response data packet, thereby the space that this packet takies is little, be convenient to pass through Internet Transmission, effectively checking data is at network in CRC redundancy check in the bag, and UDP is connectionless procotol, is using under the not high prerequisite of down loading updating requirement of real-time, UDP can effectively reduce the performance requirement of server, reduces system cost.
Accordingly, Fig. 4 shows the digital television system network architecture schematic diagram in the embodiment of the invention, and this network architecture comprises:
Application management server 40, this application management server 40 mainly is to provide operation-interface for the operator, be used for receiving the application data that the operator uploads, and be receiving terminal for digital television distribute digital television receive terminal style number, Digital Television according to described distribution connects whole style number generation application inventory file, described application inventory file carries uses list pane this shop and receiving terminal for digital television style number, and will use inventory file and be sent to application download agent server 41 and application download server 42;
Use download agent server 41 and be used for receiving the application inventory file that application management server 40 sends, receive the application list pane this shop of self terminal (describing for example take receiving terminal for digital television 43, receiving terminal for digital television 44, receiving terminal for digital television 45) to ask here, and return up-to-date application list pane this shop according to this request to terminal;
Application download server 42 is used for the application data-downloading request that the receiving digital television receiving terminal sends, and returns the application data of renewal to receiving terminal for digital television according to described application data-downloading request; Or for the down load application listings data request that sends according to receiving terminal for digital television, return the application listings data;
Receiving terminal for digital television (such as digital television receive terminal 43, receiving terminal for digital television 44, receiving terminal for digital television 45) is used for sending the list pane this shop request of using to the application download agent server 41 of digital television system, the more recent application list pane this shop that the application download agent server 41 in the receiving digital television system returns according to the request of application list pane this shop; Whether the local list pane this shop that analyses and compares is identical with described more recent application list pane this shop; Analyzing local list pane this shop when identical with described more recent application list pane this shop, do not send to digital television system and use download request; Analyzing described local list pane this shop and more recent application list pane this shop not simultaneously, the application data that application download server 42 acquisition request in digital television system need be upgraded; Or analyzing described local list pane this shop and more recent application list pane this shop not simultaneously, application download server 42 in digital television system sends the down load application listings request, the application inventory that receives is compared with local application or the local application inventory of preserving, calculate the application that needs download, needing to obtain the application inventory of renewal.
Accordingly, Fig. 5 shows the structural representation of the receiving terminal for digital television in the embodiment of the invention, and this receiving terminal for digital television comprises:
The first request unit 501 is used for sending the list pane this shop request of using to the application download agent server of digital television system;
Need to prove that the request unit 501 here passes through udp protocol instruction or Transmission Control Protocol instruction or http protocol instruction and sends the list pane this shop request of using to digital television system.This request unit 501 sends the list pane this shop request of using by the timed sending mechanism that sets in advance to digital television system.
The first receiving element 502, the application download agent server that is used for receiving described digital television system is according to the more recent application list pane this shop that uses the request of list pane this shop and return;
Analytic unit 503, whether the local list pane this shop that is used for analysing and comparing is identical with described more recent application list pane this shop;
The second request unit 504 is used for sending the down load application listings request to application download server;
The second receiving element 505 is used for receiving the application listings data that application download server returns;
Comparing unit 506, the application inventory that is used for described the second receiving element 505 is received compares with local application or the local application inventory of preserving, and calculates the application that need to download, needing to obtain the application inventory of renewal;
Processing unit 507 is used for analyzing described local list pane this shop when identical with described more recent application list pane this shop at described analytic unit 503, does not send the application download request to described digital television system; Analyze described local list pane this shop and described more recent application list pane this shop not simultaneously at described analytic unit, the application data that the application download server acquisition request in described digital television system need be upgraded.
Further, this receiving terminal for digital television also comprises:
Update contruction unit 508 is used for after getting access to the application data of renewal, upgrades or install the application data of the renewal of obtaining, and upgrades local list pane this shop.
Need to prove, the embodiment of the invention has also proposed a kind of AMS, this system comprises application download agent server and uses the download agent server, use the download agent server and be used for the application list pane this shop request that the receiving digital television receiving terminal sends, and return up-to-date application list pane this shop according to the request of described application list pane this shop to receiving terminal for digital television.Application download server is used for the application data-downloading request that the receiving digital television receiving terminal sends, and returns the application data of renewal to receiving terminal for digital television according to described application data-downloading request; Or for the down load application listings data request of sending according to receiving terminal for digital television, return the application listings data.
In sum, implement the embodiment of the invention, receiving terminal for digital television at first obtains application list pane this shop in the download agent server, after getting access to application list pane this shop, compare with the application list pane this shop of this locality, if both version numbers are identical, then receiving terminal for digital television does not need to the application data of application download server acquisition request renewal, then this processing mode can reduce the number of times of receiving terminal for digital television access application Download Server, thereby reduces the network load of application download server.And mutual between receiving terminal for digital television and the acting server because version number's data volume is corresponding a lot of less with inventory, can reduces the network bandwidth and load.Only have 10 bytes by the request data package that udp protocol is initiated, 8 bytes of response data packet, thereby the space that this packet takies is little, be convenient to pass through Internet Transmission, effectively checking data is at network in CRC redundancy check in the bag, and UDP is connectionless procotol, is using under the not high prerequisite of down loading updating requirement of real-time, UDP can effectively reduce the performance requirement of server, reduces system cost.
Above disclosed only is a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, therefore the equivalent variations of doing according to claim of the present invention, still belong to the scope that the present invention is contained, receiving terminal for digital television of the present invention includes but not limited to: set-top box, digital TV integrated machine, Digital Video Broadcasting Handheld etc. have the terminal of receiving digital television function.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, technical scheme of the present invention is to can embodying with the form of software product in whole or in part that background technology contributes, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.