Summary of the invention
The embodiment of the present application provides a kind of TV applications upgrade method, television terminal and server, to realize that TV is answered
Safety upgrade.
According to the embodiment of the present application in a first aspect, provide a kind of TV applications upgrade method, it is applied to television terminal,
This method comprises:
By the default application being mounted in the television terminal, is sent to server and obtain asking for list of application to be upgraded
It asks, wherein the default application is adservice or upgradeservice;
According to the list of application to be upgraded that the server returns, by the default application, Xiang Suoshu server is sent
Obtain the request of escalation policy corresponding to the application to be upgraded in the television terminal;
According to the escalation policy that the server returns, the application to be upgraded in the television terminal is upgraded, more
The version number of new upgrade application.
According to the second aspect of the embodiment of the present application, another TV applications upgrade method is provided, is applied to server,
This method comprises:
Receive the request for the acquisition list of application to be upgraded that television terminal is sent;
According to the facility information of the television terminal, the list of application to be upgraded to match with the television terminal is sent
To the television terminal;
Receive that the television terminal sends obtains the request of the escalation policy of application to be upgraded in television terminal, wherein
Application to be upgraded is generated according to the list of application to be upgraded in the television terminal;
Escalation policy corresponding to application to be upgraded in the television terminal is sent to the television terminal.
According to the third aspect of the embodiment of the present application, a kind of television terminal is provided, is equipped with processing in the television terminal
Device and memory, in which:
The memory, for storing program code;
The processor for reading the program code stored in the memory, and executes the embodiment of the present application first
Method provided by aspect.
According to the fourth aspect of the embodiment of the present application, a kind of server is provided, processor is equipped in the server and is deposited
Reservoir, in which:
The memory, for storing program code;
The processor for reading the program code stored in the memory, and executes two side of the embodiment of the present application
Method provided by face.
By above technical scheme as it can be seen that TV applications upgrade method, television terminal and service provided by the embodiments of the present application
Device, the version of the installed application of each television terminal connected to it is analyzed by configuration server, and generates application column to be upgraded
Table simultaneously configures in the list respectively using corresponding escalation policy;Meanwhile the default application in television terminal is configured, make
It can send the request for obtaining list of application to be upgraded, then, television terminal after television terminal booting from trend server
After the list of application to be upgraded for receiving server return, then controls above-mentioned default apply to server and send acquisition television terminal
In application to be upgraded corresponding to escalation policy request;Finally, the escalation policy that television terminal is returned according to server, from
It is dynamic that application to be upgraded in the television terminal is upgraded.Therefore, upgrade method provided by the present embodiment it is not necessary to modify
The bottom of television system does not need customization API yet, it is only necessary to increase by two request functions on the basis of existing application, and then compare
Easy to accomplish and risk is smaller;Also, this method is by being analyzed and being matched to the application that TV needs to upgrade in server end
It sets, and then television does not need the information of all applications installed to it and is all scanned, and then television progress can be saved
The time of application scanning and memory cost.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
For TV factory application integration version is too low, the version of the non-selected application upgrade of some users or application from
Upgrade function existing defects, the problem of causing some applications that can not be upgraded to highest version, the embodiment of the present application provides a kind of electricity
Depending on application upgrade method, television terminal and server.
Fig. 1 is a kind of application scenarios schematic diagram of TV applications upgrade-system provided by the embodiments of the present application.Such as Fig. 1 institute
Show, in application scenarios provided by the embodiments of the present application, including television terminal and server, wherein the server can with it is multiple
Television terminal establishes communication linkage, realizes data interaction.Wherein, between television terminal and server, diversified forms can be passed through
Transport protocol establishes communication linkage.For example, television terminal and server can pass through transmission control protocol (transmission
Control protocol, TCP), User Datagram Protocol (user datagram protocol, UDP) or Hyper text transfer
The communication such as agreement (hyper text transfer protocol, HTTP), the embodiment of the present application do not limit this.
It is current by big data analysis in daily data exchange process of the server by each television terminal connected to it
The version for the application that television terminal is installed obtains the abnormal application that can not upgrade always of each television terminal, and generates wait rise
The statistical information of grade application.Meanwhile the server can also run background communication with television manufacturer and connect, operation backstage is according to clothes
The upgrading plan of the statistical information for the application to be upgraded that business device obtains, layout list of application to be upgraded and each application to be upgraded of configuration
Slightly, and the escalation policy of programmed list of application to be upgraded and each application to be upgraded is retransmited to server, for example, will
Programmed list of application to be upgraded and the escalation policy of each application to be upgraded are updated in Mysql, and then, Mysql again will
Above-mentioned data are synchronized in Redis.
Meanwhile to the default application installed in television terminal, (adservice is used such as adservice in television terminal
In providing advertising service) or upgradeservice (upgradeservice is in television terminal for providing various notices
Class service) it is configured, increase it by two request functions: one is to send to obtain list of application request to be upgraded to server
Function, the other is to server send it is to be upgraded using corresponding escalation policy request function.It is answered using above-mentioned preset
With having the characteristics that the self-starting that is switched on, so after user's booting, it, can be to service after self-starting is completed in above-mentioned default application
Device sends request list of application request to be upgraded, is in list of application to be upgraded according to the instruction of television terminal then
All or part of application request escalation policy, and then realize the safety upgrade applied extremely in television terminal.
For scheme clearly disclosed in the present application, said individually below by scheme of each embodiment to the application
It is bright.
Fig. 2 is that a kind of process of TV applications upgrade method provided by the embodiments of the present application is intended to.As shown in Fig. 2, the party
Method specifically comprises the following steps:
The default application of S11, television terminal by installation inside it, sends to server and obtains list of application to be upgraded
Request.
Wherein, above-mentioned default application can be adservice or upgradeservice.Based on adservice and
Upgradeservice has the characteristics that the self-starting that is switched on, so after user's booting, after self-starting is completed in above-mentioned default application,
Request list of application request to be upgraded can be sent to server.
Further, in order to guarantee system data safety, server first can carry out power mirror to television terminal, and power mirror passes through
Afterwards, television terminal sends the request for obtaining list of application to be upgraded to server again.Wherein it is possible to include the following steps:
1) after television terminal starting, information needed for carrying out power mirror to it by preset interface is sent to server.
Above-mentioned default application, first can be by the acquisition of information interface of access preset, to obtain the user of television terminal
Information (such as user name, account information) and token information, while all requests for sending the television terminal can all carry
Token information;Then, by accessing user Quan Jian interface, by facility information (such as device model, equipment label of television terminal
Etc. device attribute informations), and token information accessed by previous step and user information be sent to server.
2) after server receives facility information, token information and the user information that television terminal is sent, to television terminal
The power of progress mirror carries out its internal applications upgrading by server to judge whether it has permission.If power mirror passes through, to TV
The successful message of terminal transmission route mirror, television terminal send acquisition list of application to be upgraded to server again after receiving the message
Request.
After S12, server receive the request of acquisition list of application to be upgraded of television terminal transmission, according to television terminal
Facility information, matched list of application to be upgraded is sent to the television terminal.
It is electric at present by big data analysis in the daily data exchange process that server passes through television terminal connected to it
Depending on the version (process that such as television terminal applies purchase to gather good-looking member by TV payment, to sentence for the application that terminal is installed
Whether power-off needs to upgrade depending on payment application), the abnormal application that can not upgrade always of each television terminal is obtained, and generate wait rise
The statistical information of grade application.Meanwhile the server can also run background communication with television manufacturer and connect, operation backstage is according to clothes
The statistical information for the application to be upgraded that business device obtains, layout list of application to be upgraded, wherein can wrap in the upgrade application list
Include the information such as the packet name of application, target version number (version number to be upgraded to), upgrading path, and application column to be upgraded
The facility informations such as the system that table can be installed according to device model, equipment, carry out classification setting;Meanwhile run backstage can be with
Configure the escalation policy of each application to be upgraded, wherein may include applying in escalation policy on source version number i.e. television terminal
Current version number, target version number are the version number to be upgraded to, the address of upgrade package, MD5 (Message Digest
Algorithm5, Message Digest Algorithm 5) etc. information.Certainly, above-mentioned layout list of application to be upgraded and configuration are respectively wait rise
The work of the escalation policy of grade application can also be completed directly on the server.In this way, server can be according to television terminal
Facility information (such as device model), matched list of application to be upgraded is sent to television terminal.
The target version of each application to be upgraded in the list of application to be upgraded that S13, television terminal one by one return to server
It is compared with the current version of its internal installation application.
Wherein, corresponding to be upgraded lower than in list of application to be upgraded in response to installing the version of application in television terminal
The target version of application, the then application to be upgraded being determined as the application in television terminal;Deny, then illustrates the application without rising
Grade.
S14, television terminal are sent corresponding to the application to be upgraded obtained in television terminal by default application to server
Escalation policy request.
Television terminal can be sent to server by adservice and upgradeservice and obtain asking for escalation policy
It asks.
It is after S15, server receive the request of acquisition escalation policy of television terminal transmission, the application institute to be upgraded is right
The escalation policy answered is sent to the television terminal.
Escalation policy that S16, television terminal are returned according to server, by the default application in television terminal to
Upgrade application is upgraded.
After getting server return escalation policy, the default application will be automatically according to the service in escalation policy
The upgrading address at device end go downloading upgrade package, then, using the upgrade package after the downloading, automatically to it is corresponding it is to be upgraded apply into
Row upgrading upgrading.Wherein, after television terminal completes application upgrade, the system information sum number of installation directory where will be updated the application
It is believed that breath, while also will be updated the information such as app version (application version), app code (application code).This Shen
Entire application process user's selection please not be needed in embodiment, be invisible to user at the same time it can also which the escalation process is arranged
's.
To allow server faster to know the updating result of television terminal, the present embodiment also carries out television terminal
Following configuration:
S17, it is successfully upgraded, then successfully upgrades to server sending application in response to the application to be upgraded in television terminal
Message.
In addition, can be executed again after television terminal is switched on next time if the application to be upgraded is not successfully upgraded
The operation of above-mentioned steps S11 can be upgraded again that is, if do not upgraded successfully.
Further, in order to avoid the duplicate acquisition of television terminal upgrades list, the present embodiment also carries out such as server
Lower configuration:
The message for the application success upgrading that S18, server are sent according to each television terminal connected to it, detects the application
Whether upgrading is completed on each television terminal.If it is, deleting this using corresponding escalation policy, while this can also be answered
It is deleted in list of application to be upgraded.
Through the above steps it is found that upgrade method provided by the present embodiment it is not necessary to modify the bottoms of television system to be also not required to
Customize API, it is only necessary on the basis of existing application increase by two request functions, and then be easier realize and risk it is smaller;
Meanwhile this method is analyzed and is configured by the application upgraded in server end to TV needs, and then television does not need
The information for all applications installed to it is all scanned, and then can save time and memory that television carries out application scanning
Cost.In addition, the present embodiment can also delete at any time escalation policy in server end, for promoted good application to keep away
Exempt from television terminal and be switched on every time that list of application to be upgraded will be obtained, carries out television terminal application confirmation to be upgraded, and then not only
Flow can be saved, save CNN (Content Delivery Network, content distributing network) cost, electricity can also be mitigated
Depending on the data processing pressure of terminal and server.
Other than the mode of application to be upgraded of terminal inner is confirmed according to list of application to be upgraded in television terminal, this reality
Example is applied to additionally provide in server end confirmation television terminal using the mode for whether needing to upgrade.
Fig. 3 is that the process of another TV applications upgrade method provided by the embodiments of the present application is intended to.As shown in figure 3, should
Method specifically comprises the following steps:
The default application of S21, television terminal by installation inside it, sends to server and obtains list of application to be upgraded
Request.
Wherein, above-mentioned default application can be adservice or upgradeservice.
After S22, server receive the request of acquisition list of application to be upgraded of television terminal transmission, according to television terminal
Facility information, matched list of application to be upgraded is sent to the television terminal.
S23, television terminal are sent corresponding to the application to be upgraded obtained in television terminal by default application to server
Escalation policy request.
Firstly, television terminal compares the list of application to be upgraded that server returns with its internal installation list of application
It is right, confirm whether the application installed in television terminal appears in the list of application to be upgraded.Wherein, in response in television terminal
Whether the application of installation appears in the list of application to be upgraded, then to be upgraded answers what the application was determined as in television terminal
With, and then the request for obtaining escalation policy is sent to server by adservice or upgradeservice;Deny, then
Illustrate the application without upgrading.
S24, server are by target version corresponding to the version of the application to be upgraded in television terminal and the application to be upgraded
Originally it is compared, whether the version for detecting the application to be upgraded in the television terminal is lower than target version.
Wherein, it is lower than target version in response to the version of the application to be upgraded in the television terminal, thens follow the steps S25,
Otherwise, then illustrate that the application is not necessarily to upgrading, and then escalation policy will not be returned.
Escalation policy corresponding to the application to be upgraded is sent to television terminal by S25, server.
Escalation policy that S26, television terminal are returned according to server, by the default application in television terminal to
Upgrade application is upgraded.
Through the above steps it is found that upgrade method provided in this embodiment based on the common application in television terminal to service
Device initiates application upgrade request, and the escalation policy for obtaining application to be upgraded is upgraded, and television terminal can be effectively solved
The problem of using can not normally be upgraded to highest version.
Corresponding to above-mentioned TV applications upgrade method, the embodiment of the invention also provides a kind of TV applications update devices.
Fig. 4 is the structural schematic diagram of TV applications update device, as shown in figure 4, the TV applications update device 400, structure can wrap
It includes: at least one processor (processor) 401, memory (memory) 402, peripheral device interface
(peripheralinterface) 403, input/output subsystem (I/Osubsystem) 404, power circuit 405 and communication line
Road 406.
In Fig. 4, arrow indicates can be carried out the communication and data transmission between the constituent element of television system, and its is available
High-speed serial bus (high-speed serial bus), parallel bus (parallelbus), storage area network (SAN,
Storage Area Network) and/or other communication technologys appropriate and realize.
Memory 402 may include operating system 412 and TV applications upgrading routine 422.For example, memory 402 may include high speed
Random access memory (high-speed random access memory), disk, static random access memory
(SPAM), dynamic random access memory (DRAM), read-only memory (ROM), flash memory or non-voltile memory.Memory 402 can
Program coding of the storage for operating system 412 and TV applications upgrading routine 422, that is to say, that may include TV applications upgrading
Software module needed for the movement of device 400, instruction set architecture or a variety of data except it.At this point, processor 401 or periphery
The access of other controllers and memory 402 such as equipment interface 403 can be controlled by processor 401.
Peripheral device interface 403 can be by the input and/or output peripheral equipment and processor of TV applications update device 400
401 and memory 402 combine.Also, input/output subsystem 404 can be by a variety of input/output peripheral equipments and peripheral equipment
Interface 403 combines.For example, input/output subsystem 404 may include display, printer or be used to take a picture as needed
The controller that the peripheral equipments such as machine, various sensors are combined with peripheral device interface 403.According to another side, input/output
Periphery can also be combined without input/output subsystem 404 with peripheral device interface 403.
Power circuit 405 can be supplied electric power to all or part of the circuit element of mobile terminal.For example, power circuit
405 may include more than one power supply, charging system, the power failure monitor such as electric power management system, battery or exchange (AC)
Circuit (power failuredetection circuit), power converter or inverter, power state marker character are used for
Other any circuit elements that electric power is generated, manages, distributed.
Communication line 406 can be communicated using at least one interface with other computer systems, such as mobile with others
Terminal is communicated.
TV applications can be performed by implementing the software module being stored in memory 402 or instruction set architecture in processor 401
The multiple functions and processing data of update device 400.That is, processor 401 by execute basic arithmetic, logic and
The input/output of computer system is calculated, and may be configured as the order of processing computer program.
The embodiment of Fig. 4 is only an example of TV applications update device 400, and TV applications update device 400 can have
Just like flowering structure or configuration: in communication line 406 may include for communication (WiFi, 6G, LTE, Bluetooth,
NFC, Zigbee etc.) RF communication circuit.It may include that circuit element in TV applications update device 400 can be by including one
The combination of both hardware, software or hardware and softwares of integrated circuit that a above signal processing or application program are becomed privileged
And it realizes.
The TV applications update device 400 of above-mentioned composition can then execute following behaviour when being applied in television terminal
Make: by the default application being mounted in the television terminal, the request for obtaining list of application to be upgraded sent to server,
In, the default application is adservice or upgradeservice;The application to be upgraded column returned according to the server
Table, by the default application, Xiang Suoshu server sends liter corresponding to the application to be upgraded obtained in the television terminal
The request of grade strategy;According to the escalation policy that the server returns, the application to be upgraded in the television terminal is risen
Grade updates the version number of upgrade application.
The TV applications update device 400 of above-mentioned composition, when be applied to server in, then can perform the following operations: answer
Receive the request for the acquisition list of application to be upgraded that television terminal is sent;Believed according to the equipment of the television terminal
Breath, will be sent to the television terminal with the list of application to be upgraded that the television terminal matches;Receive the television terminal
The request for obtaining the escalation policy of application to be upgraded in television terminal of transmission, wherein application to be upgraded in the television terminal
It is to be generated according to the list of application to be upgraded;Escalation policy corresponding to application to be upgraded in the television terminal is sent out
Give the television terminal.
Based on the above method and device, the present embodiment also each provides a kind of television terminal and service
Device is equipped with processor and memory in television terminal and server, wherein the memory, for storing program code;
The processor for reading the program code stored in the memory, and executes method provided by above-described embodiment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
Those skilled in the art will readily occur to of the invention its after considering specification and the invention invented here of practice
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
The common knowledge in the art that person's adaptive change follows general principle of the invention and do not invent including the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.