Summary of the invention
The embodiment of the invention is to provide a kind of method, gateway server and application download system of receiving terminal for digital television application download; Through gateway server assist process authentication, deduct fees and download; Alleviate the Business Processing of Download Server, improve the performance and the speed of Download Server.
In order to reach above-mentioned technique effect, the embodiment of the invention has proposed a kind of method of receiving terminal for digital television application download, comprising:
Receiving terminal for digital television is initiated download request to gateway server;
Said gateway server obtains the receiving terminal for digital television identification information and request downloaded contents information that carries in the download request, initiates to carry receiving terminal for digital television identification information and the download checking request of asking downloaded contents information to authentication server;
Whether said authentication server has the said content information of permission download according to the receiving terminal for digital television identification information in the said download checking request with the said receiving terminal for digital television of request downloaded contents Information Authentication;
After said authentication server was verified successfully, said gateway server called the server of deducting fees said receiving terminal for digital television is deducted fees;
The said server of deducting fees is deducted fees after the success, and said gateway server calls Download Server and sends the request downloaded contents to said receiving terminal for digital television;
Said gateway server calls the step that the server of deducting fees deducts fees to said receiving terminal for digital television and comprises:
Said gateway server initiates to carry receiving terminal for digital television identification information and the request of deducting fees of asking downloaded contents information to the server of deducting fees;
The said server of deducting fees detects said receiving terminal for digital television according to the receiving terminal for digital television identification information in the said request of deducting fees with request downloaded contents information and whether has ordered request downloaded contents information;
When said testing result when being, then deduct fees successfully, carry out said gateway server and call Download Server sends step from the request downloaded contents to said receiving terminal for digital television;
Said gateway server calls Download Server and comprises to the step that said receiving terminal for digital television sends the request downloaded contents:
Said gateway server sends receiving terminal for digital television identification information and request downloaded contents information to Download Server;
Said Download Server sends the request downloaded contents according to said receiving terminal for digital television identification information and request downloaded contents information to said receiving terminal for digital television.
Correspondingly, the embodiment of the invention discloses a kind of gateway server, comprising:
The download request receiver module is used for the download request that the receiving digital television receiving terminal is initiated;
Acquisition module is used for obtaining receiving terminal for digital television identification information and request downloaded contents information that download request that said download request receiver module receives is carried;
First calling module; Comprise first initiation module; Be used for after acquisition module obtains the receiving terminal for digital television identification information and asks downloaded contents information, first initiation module is initiated to carry said acquisition module receiving terminal for digital television identification information that obtains and the download checking of asking downloaded contents information to authentication server and is asked;
Second calling module is used for after said authentication server is verified successfully, calls the server of deducting fees said receiving terminal for digital television is deducted fees;
The 3rd calling module is used for after the said server of deducting fees is deducted fees success, calls Download Server and sends the request downloaded contents to said receiving terminal for digital television;
The return information receiver module is used to receive the information that said authentication server and the server of deducting fees return;
Said second calling module comprises:
The second initiation unit; Be used for after said return information receiver module receives the checking successful information that said authentication server returns, initiate to carry the request of deducting fees of receiving terminal for digital television identification information that said acquisition module obtains and request downloaded contents information to the server of deducting fees;
Said the 3rd calling module comprises:
Transmitting element is used for after said return information receiver module receives the successful information of deducting fees that the said server of deducting fees returns, and sends receiving terminal for digital television identification information and request downloaded contents information to Download Server.
Correspondingly, the embodiment of the invention also discloses a kind of application download system, comprise receiving terminal for digital television, Download Server, authentication server and the server of deducting fees, also comprise above-mentioned gateway server.
Embodiment of the present invention embodiment; Through gateway server assist process authentication, deduct fees and download, the load problem that solved by Download Server directly through authentication, deduct fees, download process causes has alleviated the Business Processing of Download Server; The performance and the speed of Download Server have been improved; Guarantee the consistency and the fail safe of data download simultaneously, only needed when system is upgraded gateway server is upgraded, need carry out aerial upgrade to each client when having avoided system upgrade; Be convenient to the upgrading of system more; Reduced upgrade cost, also be convenient to the framework and the establishment of system more, improved the compatibility of system receiving terminal for digital television through the assist process of gateway server.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.
See also the method flow sketch map of the receiving terminal for digital television application download of the embodiment of the invention shown in Fig. 1, comprising:
Step S101: receiving terminal for digital television is initiated download request to gateway server;
Particularly, the user is through operand word television receive terminal, the browsing and download page; When discovery needs to download certain programme content; The operand word television receive terminal is downloaded, and downloads button etc. as clicking, and receiving terminal for digital television will be initiated download request to gateway server so;
Step S102: after said gateway server receives said download request, call authentication server said receiving terminal for digital television is verified;
Step S103: after said authentication server was verified successfully, said gateway server called the server of deducting fees said receiving terminal for digital television is deducted fees;
Particularly, after said authentication server is verified successfully, return the checking success message to said gateway server, said gateway server calls the server of deducting fees said receiving terminal for digital television is deducted fees after receiving the checking success message.
Step S104: the said server of deducting fees is deducted fees after the success, and said gateway server calls Download Server and sends the request downloaded contents to said receiving terminal for digital television.
Particularly; The said server of deducting fees is deducted fees after the success; Return the success message of deducting fees to said gateway server; After said gateway server receives the success message of deducting fees, call Download Server and send the request downloaded contents, so that Download Server sends the request downloaded contents to said receiving terminal for digital television to said receiving terminal for digital television.Need to prove; Gateway server is used to handle the communication between the heterogeneous networks; Be regarded as the critical point that a network is connected to another network, the destination host of finding packet like the terminal in the network A just is transmitted to packet its gateway server not in local network; Be transmitted to the gateway server of purpose network (network B) again by gateway server, the gateway server of network B is transmitted to the purpose terminal of network B again; Implement the foregoing description; Through gateway server handle receiving terminal for digital television, authentication server, the intercommunication mutually between server and the Download Server of deducting fees; Authentication in the assist process digital television business, the problem of deducting fees and downloading; Download Server is directly not mutual with the authentication server and the server of deducting fees; The load problem that solved by Download Server directly through authentication, deduct fees, download process causes has alleviated the Business Processing of Download Server, has improved the performance and the speed of Download Server.
Below in conjunction with the schematic flow sheet of another embodiment of the method for the receiving terminal for digital television application download of the present invention shown in Fig. 2, the method for the receiving terminal for digital television application download of the further explain embodiment of the invention comprises:
Step S201: receiving terminal for digital television is initiated download request to gateway server;
Step S202: after said gateway server receives said download request, obtain the receiving terminal for digital television identification information and request downloaded contents information that carry in the download request;
Particularly, said download request carries receiving terminal for digital television identification information and request downloaded contents information, the receiving terminal for digital television identification information, for example: information such as STBID or Mac address etc.
Step S203: said gateway server is initiated to carry the receiving terminal for digital television identification information to authentication server and is asked with the download checking of request downloaded contents information;
Step S204: whether said authentication server detects said receiving terminal for digital television according to the receiving terminal for digital television identification information in the said download checking request with request downloaded contents information has the said content information of permission download;
Particularly; Said authentication server stores the information and the access authority information of user's registered in advance; Receiving terminal for digital television identification information in the information of the registered in advance of said authentication server analyzing and testing storage, access authority information, the said download checking request and request downloaded contents information, whether detect said receiving terminal for digital television has the said content information of permission download; When the result who detects when being, promptly verify successfully, authorise downloads, execution in step S205 then, when the result of detection is when denying, i.e. authentication failed, not authorise downloads, then execution in step S209.
Step S205: said gateway server initiates to carry receiving terminal for digital television identification information and the request of deducting fees of asking downloaded contents information to the server of deducting fees;
Step S206: the said server of deducting fees detects said receiving terminal for digital television according to the receiving terminal for digital television identification information in the said request of deducting fees with request downloaded contents information and whether has ordered request downloaded contents information;
Particularly; The content information that the said server stores of deducting fees has the user to order in advance; The content information of ordering in advance of the said server analyzing and testing storage of deducting fees, the receiving terminal for digital television identification information in the said request of deducting fees and request downloaded contents information detect said receiving terminal for digital television and whether have ordered request downloaded contents information; When the result who detects when being, (or charging) success of promptly deducting fees, execution in step S207 then, when the result who detects for not the time, promptly deduct fees (or charging) fails, then execution in step S209.
Step S207: said gateway server sends receiving terminal for digital television identification information and request downloaded contents information to Download Server;
Step S208: said Download Server sends the request downloaded contents according to said receiving terminal for digital television identification information and request downloaded contents information to said receiving terminal for digital television;
Step S209: said gateway server returns failed download message to receiving terminal for digital television.
Specify the method for receiving terminal for digital television application download of the present invention above, below correspondingly, specified the structure of the application download system of the embodiment of the invention.
The structural representation of the application download system of the embodiment of the invention as shown in Figure 3, the application download system comprises: receiving terminal for digital television 31, gateway server 32, authentication server 33, deduct fees server 34 and Download Server 35, particularly; The user is through operand word television receive terminal 31; Browse the STB downloading page, when discovery needed to download certain programme content, operand word television receive terminal 31 was downloaded; As click and download button etc.; Receiving terminal for digital television 31 will be initiated download request to gateway server 32 so, after gateway server 32 receives said download request, call 33 pairs of receiving terminal for digital television 31 of authentication server and will verify; After authentication server 33 is verified successfully; Gateway server 32 calls the 34 pairs of receiving terminal for digital television 31 of server of deducting fees and deducts fees, and the server 34 of deducting fees is deducted fees after the success, and gateway server 32 calls Download Server 35 and sends the request downloaded contents to receiving terminal for digital television 31.Receiving terminal for digital television 31 can communicate with gateway server 32 through cable network (like CHINA RFTCOM Co Ltd etc.).
Need to prove; Gateway server is used to handle the communication between the heterogeneous networks; Be regarded as the critical point that a network is connected to another network, the destination host of finding packet like the terminal in the network A just is transmitted to packet its gateway server not in local network; Be transmitted to the gateway server of purpose network (network B) again by gateway server, the gateway server of network B is transmitted to the purpose terminal of network B again; Implement the foregoing description; Through gateway server 32 handle receiving terminal for digital television 31, authentication servers 33, the intercommunication mutually between server 34 and the Download Server 35 of deducting fees; Authentication in the assist process digital television business, the problem of deducting fees and downloading; Download Server 35 is directly not mutual with the authentication server 33 and the server 34 of deducting fees; The load problem that solved by Download Server 35 directly through authentication, deduct fees, download process causes has alleviated the Business Processing of Download Server 35, has improved the performance and the speed of Download Server 35.
Structural representation below in conjunction with the gateway server of the embodiment of the invention shown in Fig. 4; The structure of the application download system of the further explain embodiment of the invention; Gateway server 32 comprises: download request receiver module 321, acquisition module 322, first calling module 323, second calling module 324, the 3rd calling module 325 and return information receiver module 326, wherein
Download request receiver module 321 is used for the download request that the receiving digital television receiving terminal is initiated;
Acquisition module 322 is used for obtaining the receiving terminal for digital television identification information and request downloaded contents information that download request information that download request receiver module 321 receives is carried; Particularly, said download request carries receiving terminal for digital television identification information and request downloaded contents information, information such as receiving terminal for digital television identification information such as STBID or Mac address etc.
The information that return information receiver module 326 is used to receive said authentication server and the server of deducting fees returns;
First calling module 323 is used for after download request receiver module 321 receives the download request of receiving terminal for digital television initiation, calling authentication server said receiving terminal for digital television being verified; Particularly, first calling module 323 comprises the first initiation unit 3231, is used for sending acquisition module 322 receiving terminal for digital television identification information that obtains and the download checking request of asking downloaded contents information of carrying to authentication server.
Need to prove; Said authentication server stores the information and the access authority information of user's registered in advance; Receiving terminal for digital television identification information in the information of the registered in advance of said authentication server analyzing and testing storage, access authority information, the said download checking request and request downloaded contents information, whether detect said receiving terminal for digital television has the said content information of permission download; When the result who detects when being, promptly verify successfully, authorise downloads, authentication server returns the checking success message to gateway server 32; When the result who detects for not the time, i.e. authentication failed, authorise downloads not, authentication server returns authentication failed message to gateway server 32, gateway server 32 returns failed download message to receiving terminal for digital television then.
Second calling module 324 is used for after said authentication server is verified successfully, calls the server of deducting fees said receiving terminal for digital television is deducted fees; Particularly; After the return information receiver module 326 of gateway server 32 receives the checking successful information that authentication server returns; Second calling module 324 will call the server of deducting fees said receiving terminal for digital television will be deducted fees; Second calling module 324 comprises the second initiation unit 3241; Be used for after return information receiver module 326 receives the checking successful information that authentication server returns, send the request of deducting fees that carries receiving terminal for digital television identification information that acquisition module 322 obtains and request downloaded contents information to the server of deducting fees.
Need to prove; The content information that the said server stores of deducting fees has the user to order in advance; The content information of ordering in advance of the said server analyzing and testing storage of deducting fees, the receiving terminal for digital television identification information in the said request of deducting fees and request downloaded contents information detect said receiving terminal for digital television and whether have ordered request downloaded contents information; When the result who detects when being, promptly deducting fees, (or charging) successfully, the server of deducting fees returns the success message of deducting fees to gateway server 32; When the result who detects for not the time, (or charging) failure of promptly deducting fees, the server of deducting fees returns the failed message of deducting fees to gateway server 32, gateway server 32 will return failed download message to receiving terminal for digital television then.
The 3rd calling module 325 is used for after the said server of deducting fees is deducted fees success, calls Download Server and sends the request downloaded contents to said receiving terminal for digital television.Particularly; After the return information receiver module 326 of gateway server 32 receives the successful information of deducting fees that the server of deducting fees returns; Second calling module 324 will call Download Server and send the request downloaded contents to said receiving terminal for digital television; The 3rd calling module 325 comprises transmitting element 3251; Be used for after return information receiver module 326 receives the successful information of deducting fees that the server of deducting fees returns, send receiving terminal for digital television identification information and request downloaded contents information to Download Server.
In sum, embodiment of the present invention embodiment is through authentication in the gateway server assist process digital television business, the problem of deducting fees and downloading; Download Server is directly not mutual with the authentication server and the server of deducting fees; The load problem that solved by Download Server directly through authentication, deduct fees, download process causes has alleviated the Business Processing of Download Server, has improved the performance and the speed of Download Server; The consistency and the fail safe of data download have been guaranteed simultaneously; Only need when system is upgraded gateway server is upgraded, promptly only need the interface definition of Download Server and gateway server is got final product well, need carry out aerial upgrade to each STB client when having avoided system upgrade; Be convenient to the upgrading of system more; Reduced upgrade cost, also be convenient to the framework and the establishment of system more, improved the compatibility of system receiving terminal for digital television through the assist process of gateway server.
Need to prove that through the description of above execution mode, 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 through hardware.Based on such understanding; All or part of can the coming out that technical scheme of the present invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a 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.
The above disclosed preferred embodiment that is merely in the embodiment of the invention can not limit the present invention's interest field certainly with this, so according to the equivalent variations that claim of the present invention is done, still belong to the scope that the present invention is contained.