Summary of the invention
The objective of the invention is to propose a kind of device, system and method that value-added service loads of in the IPTV system, realizing.By this device, system and method, utilize existing IPTV system device to realize the loading of multiple value-added service, satisfy the loading demand of multiple value-added service type, also strengthened the value-added service loading safety simultaneously.
The present invention also provides the system that value-added service loads in a kind of IPTV of the realization system, and it comprises intelligent terminal, value-added service door, Download Server, authentication server, it is characterized in that:
Intelligent terminal is used to receive the value-added service use request that user terminal is initiated, and extracts the relevant information of user and value-added service, and sends it to the value-added service door; Also be used to receive by the value-added service detect-message of value-added service door, carry out the value-added service testing process, and return testing result and give the value-added service door its transmission; Also be used to receive the value-added service download message of value-added service door, carry out value-added service and download flow process, and return and download the result to the value-added service door to its transmission; Also be used to receive the value-added service initiation message of value-added service door, carry out value-added service and start flow process, and return the startup result and give the value-added service door to its transmission;
The value-added service door is used to receive the relevant information of user and value-added service, with its authentication message that is assembled into agreement, sends to authentication server after above-mentioned information is analyzed; Also be used to receive the authenticating result that authentication server returns, if failed authentication, the value-added service door is directly pointed out the user; If the authentication success, its assembling value-added service detect-message, and send to intelligent terminal; It also is used to receive testing result, if detect successfully, and its assembling value-added service initiation message, and send to intelligent terminal; If detect failure, its assembling value-added service download message, and send to intelligent terminal; Also be used for receiving and download the result, if failed download, it directly points out the user; If download successfully, its assembling value-added service initiation message, and send to intelligent terminal; Also be used for receiving the startup result, if start failure, it directly points out the user; If start successfully, the user directly enters value-added service;
Download Server is used to receive the value-added service download message, and will download the result and return to the value-added service door;
Authentication server is used to receive authentication message, and authenticating result is returned to the value-added service door.
Further, intelligent terminal comprises browser, loads agent entity and virtual machine;
Browser is used to receive the value-added service use request that user terminal is initiated, and extracts the relevant information of user and value-added service, and sends it to the value-added service door;
Load agent entity and undertaken alternately by browser and value-added service door, it is used to receive the value-added service detect-message, carries out value-added service and detects, and testing result is returned to the value-added service door; Also be used to receive the value-added service download message, carry out value-added service and download, return simultaneously and download the result to the value-added service door; Also be used to receive the value-added service initiation message, behind this message parse, load agent entity and be used for sending virtual machine activation message to start virtual machine to virtual machine; And after the virtual machine activation success, transmission value-added service initiation message, is returned the startup result simultaneously and is given the value-added service door to start value-added service to virtual machine;
Virtual machine is used to receive the value-added service initiation message after startup, to start value-added service.
Further, load agent entity and comprise detection module, download module and startup module, detection module is responsible for the detection of value-added service, judges whether it exists and whether version is up-to-date; Download module is responsible for the download of value-added service, and value-added service is downloaded to intelligent terminal from Download Server; Start module, be responsible for the startup of value-added service, it starts value-added service by starting virtual machine.
Further, virtual machine has referred to realize the Java Virtual Machine of the J2ME agreement of standard.
The present invention also provides the method that value-added service loads in a kind of IPTV of the realization system, is applied to the system that realizes that value-added service loads in the IPTV system, and intelligent terminal comprises and loads agent entity and virtual machine in this system, may further comprise the steps:
Step 1: intelligent terminal extracts the relevant information of user and value-added service, and sends it to the value-added service door after receiving the value-added service use request of user terminal initiation;
Step 2: the value-added service door carries out authentication by authentication server to the relevant information of user and value-added service;
Step 3: after authentication was passed through, the value-added service door was carried out the load operation of value-added service; The load operation of value-added service is specially:
Value-added service door assembling value-added service detect-message also sends it to the loading agent entity;
Load agent entity and carry out testing process, the value-added service detect-message is received and resolves, and testing result is returned to the value-added service door, if the value-added service detect-message is complete, and exist value-added service also to be latest edition on the intelligent terminal, then testing result is for to detect successfully; Otherwise for detecting failure;
If testing result is for to detect successfully, the value-added service door is assembled the value-added service initiation message and is sent it to the loading agent entity so, and then carries out value-added service startup flow process; If testing result is failed for detecting, and is so further comprising the steps of:
Value-added service door assembling value-added service download message also sends it to the loading agent entity;
Load agent entity and carry out the download flow process, at first receive and resolve the value-added service download message, set up then and being connected of Download Server, download value-added service from Download Server, and will download the result and return to the value-added service door, load and adopt the HTTP or the File Transfer Protocol of standard to communicate between agent entity and the Download Server;
If the download result is a failed download, then directly point out the user; If download successfully, so also comprise:
The assembling of value-added service door also sends the value-added service initiation message to loading agent entity, loads agent entity execution value-added service and starts flow process, at first the value-added service initiation message is received and resolves, and sends virtual machine activation message to virtual machine then; Behind the virtual machine activation, load agent entity and send the value-added service initiation message to start value-added service to virtual machine.
Further, in the step 3, the load operation of value-added service comprises the detection of value-added service, download and startup, and its service logic is controlled by the value-added service door.
Further, the communication between intelligent terminal and the value-added service door comprises between the two message transmission, instruction execution, all adopts the JavaScript agreement of standard.
Further, adopt Socket to connect between value-added service door and the authentication server, the value-added service door sends to authentication server after the relevant information of user and value-added service is assembled into authentication message, and authentication server carries out after the authentication operations authenticating result being returned to the value-added service door to this information.
Further, authentication operations comprises whether checking user, value-added service be legal.
Compare with prior art, the present invention has realized the value-added tax function of value-added service in present IPTV system, can realize the application of value-added service in the IPTV system fast.The present invention has made full use of existing IPTV system resource, and has introduced loading agent entity and virtual machine, and the further reinforcement to present set-top box functionality has improved its professional ability, and then realizes the loading of value-added service.Simultaneously, according to the difference of virtual machine, the present invention can realize the loading based on polytype value-added service application program, satisfies different actual needs.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
Core concept of the present invention provides device, the system and method that value-added service loads in a kind of IPTV of the realization system, utilizes intelligent terminal, and the loading of value-added service is finished in the value-added service of using according to the user.
The invention provides the device that value-added service loads in a kind of IPTV of the realization system, this device is an intelligent terminal, and it comprises browser, loads agent entity and virtual machine.
Browser is used to receive the value-added service use request that user terminal is initiated, and extracts the relevant information of user and value-added service, and sends it to the value-added service door;
Load agent entity and undertaken alternately by browser and value-added service door, it is used to receive the value-added service detect-message, carries out value-added service and detects, and testing result is returned to the value-added service door; Also be used to receive the value-added service download message, carry out value-added service and download, return simultaneously and download the result to the value-added service door; Also be used to receive the value-added service initiation message, behind this message parse, load agent entity and be used for sending virtual machine activation message to start virtual machine to virtual machine; And after the virtual machine activation success, transmission value-added service initiation message, is returned the startup result simultaneously and is given the value-added service door to start value-added service to virtual machine;
Virtual machine is used to receive the value-added service initiation message after startup, to start value-added service.
Further, load agent entity and comprise detection module, download module and startup module, detection module is responsible for the detection of value-added service, and it is used to judge whether value-added service exists and whether version is up-to-date; Download module is responsible for the download of value-added service, and it is used for value-added service is downloaded to intelligent terminal from Download Server; Start module and be responsible for the startup of value-added service, it starts value-added service by starting virtual machine.
Further, virtual machine has referred to realize the Java Virtual Machine of the J2ME agreement of standard.
The present invention also provides the system that value-added service loads in a kind of IPTV of the realization system, and this system comprises intelligent terminal, value-added service door, Download Server, authentication server as shown in Figure 1.
Intelligent terminal is used to receive the value-added service use request that user terminal is initiated, and extracts the relevant information of user and value-added service, and sends it to the value-added service door; Also be used to receive by the value-added service detect-message of value-added service door, carry out the value-added service testing process, and return testing result and give the value-added service door its transmission; Also be used to receive the value-added service download message of value-added service door, carry out value-added service and download flow process, and return and download the result to the value-added service door to its transmission; Also be used to receive the value-added service initiation message of value-added service door, carry out value-added service and start flow process, and return the startup result and give the value-added service door to its transmission.
The value-added service door is used to receive the relevant information of user and value-added service, with its authentication message that is assembled into agreement, sends to authentication server after above-mentioned information is analyzed; Also be used to receive the authenticating result that authentication server returns, if failed authentication, the value-added service door is directly pointed out the user; If the authentication success, its assembling value-added service detect-message, and send to intelligent terminal; It also is used to receive testing result, if detect successfully, and its assembling value-added service initiation message, and send to intelligent terminal; If detect failure, its assembling value-added service download message, and send to intelligent terminal; Also be used for receiving and download the result, if failed download, it directly points out the user; If download successfully, its assembling value-added service initiation message, and send to intelligent terminal; Also be used for receiving the startup result, if start failure, it directly points out the user; If start successfully, the user directly enters value-added service.
Download Server is used to receive the value-added service download message, and will download the result and return to the value-added service door.
Authentication server is used to receive authentication message, and authenticating result is returned to the value-added service door.
Further, intelligent terminal comprises browser, loads agent entity and virtual machine.Browser is used to receive the value-added service use request that user terminal is initiated, and extracts the relevant information of user and value-added service, and sends it to the value-added service door; Load agent entity and undertaken alternately by browser and value-added service door, it is used to receive the value-added service detect-message, carries out value-added service and detects, and testing result is returned to the value-added service door; Also be used to receive the value-added service download message, carry out value-added service and download, return simultaneously and download the result to the value-added service door; Also be used to receive the value-added service initiation message, behind this message parse, load agent entity and be used for sending virtual machine activation message to start virtual machine to virtual machine; And after the virtual machine activation success, transmission value-added service initiation message, is returned the startup result simultaneously and is given the value-added service door to start value-added service to virtual machine; Virtual machine is used to receive the value-added service initiation message after startup, to start value-added service.
Further, load agent entity, comprise detection module, download module and startup module, detection module is responsible for the detection of value-added service, judge its whether exist and version whether up-to-date; Download module is responsible for the download of value-added service, from the download server value-added service to intelligent terminal; Start module, be responsible for the startup of value-added service, it starts value-added service by virtual machine.
Further, virtual machine mainly refers to the Java Virtual Machine of the J2ME agreement of the standard that realized in the present invention at present, but is not limited to this.
The present invention also provides a kind of IPTV of the realization system method that value-added service loads, a kind of implementing procedure wherein as shown in Figure 2, its concrete operations step comprises:
Step 1: user terminal sends value-added service to browser and uses request;
Step 2: browser receives after value-added service uses request, sends it to the value-added service door after extracting the relevant information of user and value-added service;
Step 3: the value-added service door is analyzed above-mentioned information, be assembled into the authentication message of agreement after, send to authentication server and carry out authentication (between value-added service door and the authentication server adopt Socket connect); After authentication server carries out authentication operations, authenticating result is returned to the value-added service door.Authentication operations comprises whether checking user, value-added service be legal;
Step 4: if above-mentioned failed authentication, the value-added service door is directly pointed out the user; If above-mentioned authentication success, value-added service door assembling value-added service detect-message, and send to the loading agent entity;
Step 5: carry out the value-added service testing process value-added service is detected, return testing result simultaneously and give the value-added service door;
Step 6:, start value-added service if above-mentioned detection success directly jumps to step 83; If above-mentioned detection failure, value-added service door assembling value-added service download message, and send to the loading agent entity;
Step 7: carry out value-added service and download flow process, download value-added service, return simultaneously and download the result to the value-added service door from Download Server;
Step 8: this step is divided into following two steps:
If 81 above-mentioned download results are failed download, then execution in step 82; Otherwise, execution in step 83;
82 value-added service doors are directly pointed out the user and are withdrawed from whole flow process;
83 value-added service doors assembling value-added service initiation message, and send to the loading agent entity;
Step 9: load agent entity and carry out value-added service startup flow process, return the startup result simultaneously and give the value-added service door;
Step 10: if above-mentioned startup failure, the value-added service door is directly pointed out the user; If above-mentioned startup success, the user directly enters value-added service.
Wherein, the communication between intelligent terminal and the value-added service door comprises that between the two message transmission, instruction carry out etc., all adopts the JavaScript agreement of standard; Load and adopt the HTTP or the File Transfer Protocol of standard to communicate between agent entity and the Download Server.
Figure 3 shows that the value-added service testing process that loads agent entity, in above-mentioned steps 5, carry out, specifically comprise:
(1) loads agent entity and receive and resolve the value-added service detect-message;
(2) load agent entity and judge whether above-mentioned detect-message is complete,, then return and detect failure if imperfect, former because information is imperfect;
(3) load agent entity and judge whether value-added service exists on the intelligent terminal, if there is no, then return and detect failure, former because value-added service does not exist;
(4) load agent entity according to the version information that transmits, compare,, then return and detect failure if not latest edition with the version of the value-added service of this locality, former because the value-added service version is non-up-to-date;
(5) if above-mentioned steps all runs succeeded, return and detect successfully, show that value-added service exists, and be up-to-date version.
Figure 4 shows that the value-added service download flow process that loads agent entity, value-added service is downloaded and is mainly comprised its client and version file, carries out in above-mentioned steps 7, specifically comprises:
(1) loads agent entity and receive and resolve the value-added service download message;
(2) load agent entity and judge according to above-mentioned download message whether this value-added service exists, if there is no, direct execution in step (6);
(3) load agent entity from download server value-added service version file, and it is saved in temp directory, failed download then directly returns;
(4) version file and the version file that is stored in this locality under the loading agent entity comparison temp directory if the former version number is lower than the latter, then directly returns;
(5) version file under the loading agent entity deletion temp directory;
(6) load agent entity and set up and being connected of Download Server, the download result is returned in the download value-added service.
In the practical operation, value-added service must be carried out detecting operation before carrying out down operation, carried out the comparison of a version information, and in above-mentioned steps, the comparison of version file and city edition presents by value-added service has further increased the fail safe of downloading.
Figure 5 shows that the value-added service that loads agent entity starts flow process, in above-mentioned steps 9, carry out, specifically comprise:
(1) loads agent entity and receive and resolve the value-added service initiation message;
(2) load agent entity and judge whether initiation message is complete,, directly return failure if imperfect;
(3) loading agent entity transmission virtual machine activation message to start virtual machine, if start failure, is directly returned failure to virtual machine;
(4) load agent entity and send the value-added service initiation message, start value-added service,, directly return failure if start failure to virtual machine.
In sum, the present invention has the following advantages: the present invention makes full use of existing IPTV system resource, and has done rational expansion.Introduce loading agent entity and virtual machine, it reasonably is placed in the set-top box, form intelligent terminal, expanded the load capability of present set-top box greatly value-added service.System constitutes simple and reliable, the professional clear process standard that loads.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.