A version upgrade method, device and readable storage medium
By obtaining the upgrade policy in the terminal and selecting one of the multiple content distribution networks to obtain the upgrade package, the problem of inefficient upgrade of application versions in the terminal is solved, and a more efficient upgrade process is achieved.
Patent Information
- Application Number
- CN202111611031.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-12-27
AI Technical Summary
In the prior art, the upgrade efficiency of any application version in the terminal is low, mainly due to the poor concurrency capability of the upgrade server and the long upgrade cycle.
Avoid centrally requesting the server by obtaining the upgrade policy in the terminal, identifying the application that needs to be upgraded, and selecting one of the multiple content distribution networks to obtain the target version of the upgrade package.
Improve the efficiency of upgrading any application version in the terminal, and reduce server load and upgrade cycle through decentralized request processing.
Smart Images

Figure CN114401449B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet television, and in particular to a version upgrade method, device and readable storage medium. Background Art
[0002] With the development of big video business of China Telecom, China Unicom and China Mobile, the number of fixed terminals is increasing day by day, and the scale is gradually huge. At the same time, the versions of any application in the terminal, including the terminal itself, are different. The daily maintenance (upgrade) methods for terminals of different versions and models are different, which greatly increases the workload of technicians. At present, the version upgrade of the application in the terminal relies on the terminal network management and upgrade server of the corresponding manufacturer. However, the upgrade server has poor concurrency capability and a long upgrade cycle, resulting in low version upgrade efficiency.
[0003] Therefore, there is a problem in the prior art that the upgrade efficiency of any application version in the terminal is low. Summary of the invention
[0004] The present application provides a version upgrade method, device and readable storage medium to solve the problem of low upgrade efficiency of any application version in a terminal in the prior art.
[0005] In a first aspect, the present application provides a version upgrade method for a network television, the method comprising:
[0006] The first terminal obtains an upgrade policy of any application, and determines that any application needs to be upgraded based on the target version number in the upgrade policy; wherein the upgrade policy includes the target version number, first address information, and an upgrade execution policy, and the first address information is used to obtain an address of a first content distribution network that provides a target version upgrade package, and the number of the content distribution networks that provide the target version upgrade package is at least two;
[0007] Based on the first address information, determining the address of a first content distribution network in the content distribution network, and obtaining the upgrade package of the target version from the first content distribution network;
[0008] Based on the upgrade execution policy and the upgrade package of the target version, the version of any one of the application programs is upgraded to the target version.
[0009] After the first terminal determines that an upgrade is required, the above method completes the upgrade by determining the first content distribution network in the content distribution network and obtaining the upgrade package of the target version therefrom. In the method provided in the embodiment of the present application, the content distribution network includes multiple ones, and a content distribution network can be selected based on real-time needs to provide an upgrade package, thereby reasonably distributing the upgrade requests of the terminals, avoiding the situation where all terminals centrally request the target version upgrade package from the server, so that the server cannot respond in time due to receiving too many requests, thereby achieving the purpose of improving the upgrade efficiency of any application version in the terminal.
[0010] In a possible implementation manner, determining the address of the first content distribution network in the content distribution network based on the first address information, and obtaining the upgrade package of the target version from the first content distribution network includes:
[0011] Based on the first address information, a first request is sent to a scheduling unit; wherein the first request is used to obtain second address information corresponding to accessing the first content distribution network, and the scheduling unit is used to allocate the first content distribution network providing the target version upgrade package to the terminal according to the terminal request and the user load of each content distribution network, and feed back the second address information to the terminal;
[0012] receiving feedback information from the scheduling unit, and acquiring the second address information;
[0013] Based on the second address information, sending a second request to the first content distribution network to obtain the first information;
[0014] The first information is received, and an upgrade package of the target version is obtained.
[0015] The above method uses the scheduling unit to determine the address information of the first content distribution network, thereby ensuring that the first content distribution network assigned to the first terminal can respond to the request in a timely manner, further improving the efficiency of the terminal in obtaining the upgrade package of the target version, and achieving the purpose of improving the upgrade efficiency of any application version in the terminal.
[0016] In a possible implementation manner, the method further includes:
[0017] Based on the first address information, the first terminal sends a third request to the scheduling unit; wherein the third request indicates that the version upgrade of any application program fails, and requests to obtain the original version installation package;
[0018] receiving feedback information from the scheduling unit, and acquiring third address information; wherein the third address information indicates an address of a second content distribution network that provides the original version installation package;
[0019] Based on the third address information, sending a third request to the second content distribution network to obtain second information;
[0020] The second information is received, and the installation package of the original version is obtained.
[0021] In a second aspect, the present application provides a terminal upgrade method for a network television, the method comprising:
[0022] The first content distribution network receives a second request sent by the first terminal; wherein the second request indicates the identity information of the first terminal and the target version of the application to be upgraded in the first terminal;
[0023] Based on the identity information, determine that the first terminal is an authorized user, and determine whether to cache the target version of the application to be upgraded; if so, send the target version of the application to be upgraded to the first terminal in response to the second request; if not, send a request to the version repository to download the target version of the application to be upgraded.
[0024] In the above method, after receiving the second request, the first content distribution network verifies the identity information of the first terminal, and then responds to the second request by sending the target version of the application to be upgraded to the first terminal. This ensures that the first terminal is an authorized user, that is, the first terminal is the service object of the first content distribution network, avoids unnecessary responses, and thus achieves the purpose of improving the upgrade efficiency of any application version in the terminal.
[0025] In a possible implementation manner, determining, based on the identity information, that the first terminal is an authorized user includes:
[0026] According to the account number in the identity information of the first terminal, it is determined that the service provider of the target version is consistent with the service provider of the cached version in the first content distribution network, and according to the IP address in the identity information of the first terminal, it is determined that the first terminal is in the service area of the first content distribution network, then the first terminal is determined to be an authorized user.
[0027] In a third aspect, the present application provides a version upgrade device for a network television, the device comprising:
[0028] A determination unit: used to obtain an upgrade strategy for any application program, and determine that any application program needs to be upgraded based on a target version number in the upgrade strategy; wherein the upgrade strategy includes the target version number, first address information, and an upgrade execution strategy, wherein the first address information is used to obtain an address of a first content distribution network that provides a target version upgrade package, and the number of the content distribution networks that provide the target version upgrade package is at least two;
[0029] An acquisition unit: configured to determine the address of a first content distribution network in the content distribution network based on the first address information, and acquire the upgrade package of the target version from the first content distribution network;
[0030] An upgrading unit is used to upgrade the version of any one of the application programs to the target version based on the upgrading execution strategy and the upgrading package of the target version.
[0031] In a possible implementation manner, the acquisition unit is specifically used to send a first request to a scheduling unit based on the first address information; wherein the first request is used to obtain second address information corresponding to accessing the first content distribution network; the scheduling unit is used to allocate the first content distribution network that provides the target version upgrade package according to the terminal request and the user load of each content distribution network, and feed back the second address information to the terminal; receive the feedback information of the scheduling unit and obtain the second address information; based on the second address information, send a second request to the first content distribution network to obtain the first information; receive the first information and obtain the upgrade package of the target version.
[0032] In a possible implementation manner, the device also includes an original unit, which is specifically used to send a third request to the scheduling unit based on the first address information; wherein the third request indicates that the version upgrade of any application has failed, and requests to obtain the original version installation package; receive feedback information from the scheduling unit, and obtain third address information; wherein the third address information indicates the address of a second content distribution network that provides the original version installation package; based on the third address information, send a third request to the second content distribution network to obtain second information; receive the second information, and obtain the original version installation package.
[0033] In a fourth aspect, the present application provides a version upgrade device for a network television, the device comprising:
[0034] A receiving unit: configured to receive a second request sent by a first terminal; wherein the second request indicates the identity information of the first terminal and the target version of the application to be upgraded in the first terminal;
[0035] Responding unit: used to determine, based on the identity information, that the first terminal is an authorized user, and determine whether to cache the target version of the application to be upgraded; if so, send the target version of the application to be upgraded to the first terminal in response to the second request; if not, send a request to the version repository to download the target version of the application to be upgraded.
[0036] In a fifth aspect, the present application provides a readable storage medium, comprising:
[0037] Memory,
[0038] The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium performs the method as described in the first aspect, the second aspect, and any possible implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flowchart of a version upgrade method provided in an embodiment of the present application;
[0040] Figure 2 A flowchart of another version of an upgrade method provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of the connection between the terminal and other units in a version of the upgrade method provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of information interaction during the version upgrade process provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of information exchange between the service management system and the scheduling unit, content distribution network, and version repository provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of information interaction between the upgrade strategy system and the version repository and service management system provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of an upgrade device provided in an embodiment of the present application;
[0046] Figure 8 A schematic diagram of the structure of an upgrade device of a version provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In response to the above-mentioned problem of low efficiency in version upgrades, the present application proposes a version upgrade method for network televisions: after obtaining the upgrade strategy to determine that an upgrade is required, first obtain the address of the corresponding content distribution network that manages the target version, and obtain the target version upgrade package from the corresponding content distribution network through the address. According to the upgrade execution strategy and the target version upgrade package, the version upgrade can be completed. Since the number of content distribution networks that manage the target version is set to multiple, terminal requests can be dispersed to multiple content distribution networks according to actual conditions, ensuring that the terminal can obtain the target version upgrade package from the corresponding content distribution network, avoiding the problem of multiple terminals making too many requests to the server, causing congestion, and the server cannot respond in time.
[0048] In order to better understand the above technical scheme, the technical scheme of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0049] Please refer to Figure 1 The embodiment of the present application provides a version upgrade method for a network television to solve the problem of low version upgrade efficiency. The method specifically includes the following implementation steps:
[0050] Step 101: The first terminal obtains an upgrade policy of any application program, and determines that any application program needs to be upgraded based on a target version number in the upgrade policy.
[0051] Among them, the upgrade strategy includes the target version number, first address information, and upgrade execution strategy. The first address information is used to obtain the address of the first content distribution network that provides the target version upgrade package. The number of content distribution networks that provide the target version upgrade package is at least two.
[0052] Content Delivery Network (CDN): Relying on edge servers deployed in various locations, through the load balancing, content distribution, scheduling and other functions of the central platform, users can obtain the required content nearby, reduce network congestion, and improve user access response speed and hit rate.
[0053] Specifically, an upgrade policy system can be set up to store the upgrade policy of any application. The upgrade policy system supports the management of adding and deleting versions of different manufacturers in the version repository.
[0054] Then, after the first terminal is turned on, a query message can be sent to the upgrade policy system to determine the upgrade policy that any application in the first terminal needs to use. The target version number in the upgrade policy is compared with the terminal version number of any application in the first terminal. If the target version number is higher than the terminal version number of any application in the first terminal, it is determined that any application is upgraded.
[0055] It should be noted that, in the embodiment of the present application, the first terminal may be a set-top box, and any application may be a system program used by the first terminal.
[0056] Step 102: Based on the first address information, determine the address of a first content distribution network in the content distribution network, and obtain the upgrade package of the target version from the first content distribution network.
[0057] Specifically, the uniform resource locator (URL) is a method of indicating the location of information on the World Wide Web service program of the Internet. Available resources on the Internet can be represented by simple strings, and this document describes the syntax and semantics of such strings. These strings are called "Uniform Resource Locators" (URLs). Therefore, URLs can be used to represent address information in the embodiments of the present application.
[0058] In order to protect the version file, the real address of the version file, that is, the address of the content distribution network, can be hidden, and the first address information can be the address of the scheduling unit. Therefore, based on the first address information, a first request can be first sent to the scheduling unit. Among them, the first request is used to obtain the second address information corresponding to accessing the first content distribution network. In the embodiment of the present application, at least two content distribution networks are set to provide the target version upgrade package for the first terminal. The scheduling unit can be used to allocate the first content distribution network that provides the target version upgrade package to the terminal according to the terminal request and the user load of each content distribution network, and feedback the second address information to the terminal.
[0059] Then, feedback information from the scheduling unit is received to obtain the second address information.
[0060] Next, based on the second address information, a second request for acquiring the first information is sent to the first content distribution network.
[0061] Finally, the first information is received, and the upgrade package of the target version is obtained.
[0062] Step 103: Based on the upgrade execution strategy and the upgrade package of the target version, the version of any one of the application programs is upgraded to the target version.
[0063] Furthermore, when the first terminal uses the upgrade execution strategy and the upgrade package of the target version to perform a version upgrade, the upgrade may fail. Therefore, the content distribution network also needs to support version rollback, that is, when receiving a request from the terminal to obtain the original version, respond to the request in a timely manner.
[0064] Specifically, first, based on the first address information, the first terminal sends a third request to the scheduling unit, wherein the third request indicates that the version upgrade of any application program fails, and requests to obtain the original version installation package.
[0065] Then, receiving feedback information from the scheduling unit, and acquiring third address information; wherein the third address information indicates the address of the second content distribution network that provides the original version installation package;
[0066] Next, based on the third address information, a third request for acquiring second information is sent to the second content distribution network;
[0067] Finally, the second information is received, and the installation package of the original version is obtained.
[0068] It should be noted that in steps 101 to 103, each time the first terminal sends a request, the scheduling unit needs to first perform identity authentication and then respond to the request. That is, the first request should also include the identity information of the first terminal, and the identity information includes the account of the first terminal, and the IP address or domain name address of the first terminal. By verifying the account information in the identity information, it can be ensured that the service provider of the terminal managed by the scheduling unit is consistent with the version service provider of the first terminal; by verifying the IP address or domain name address in the identity information, it can be ensured that the first terminal is located in the service area of the scheduling unit. After the identity authentication is passed (legal), the scheduling unit can allocate the first content distribution network that provides the target version upgrade package to the first terminal according to the request of the first terminal and the user load of each content distribution network, and feedback the second address information to the first terminal.
[0069] Please refer to Figure 2 The method for upgrading the version of the content distribution network side can be implemented by the following steps:
[0070] Step 201: A first content distribution network receives a second request sent by a first terminal.
[0071] The second request indicates the identity information of the first terminal and the target version of the application to be upgraded in the first terminal.
[0072] Step 202: Based on the identity information, determine that the first terminal is an authorized user, and determine whether to cache the target version of the application to be upgraded; if so, send the target version of the application to be upgraded to the first terminal in response to the second request; if not, send a request to the version repository to download the target version of the application to be upgraded.
[0073] Specifically, based on the account number in the identity information of the first terminal, it is determined that the service provider of the target version is consistent with the service provider of the cached version in the first content distribution network, and based on the IP address in the identity information of the first terminal, it is determined that the first terminal is in the service area of the first content distribution network, then the first terminal is determined to be an authorized user, that is, the first terminal is the service object of the first content distribution network.
[0074] It should be noted that after sending a request to the version repository to download the target version of the application to be upgraded, the version repository also needs to perform identity authentication before responding to the request.
[0075] Furthermore, a service management system may be provided to manage the scheduling unit and the content distribution network. Then, when performing a version upgrade, the terminals, the upgrade policy system, the service management system, the scheduling unit, the content distribution network, and the version warehouse may be connected as follows: Figure 3 As shown in the connection method. Figure 3 The connection mode and information interaction shown can efficiently obtain any application version in the terminal and complete the version upgrade in the terminal based on the content distribution network, avoiding the problem of reduced efficiency caused by the terminal sending a request to the server and the server failing to respond in time.
[0076] It can be seen that in the embodiment of the present application, an upgrade policy system, a scheduling unit, a content distribution network, and a version warehouse are respectively set up to provide the terminal with an upgrade package of the target version after the terminal is turned on. Figure 4 As shown, after the terminal is turned on, it first sends an inquiry message to the upgrade policy system to obtain the upgrade policy. According to the upgrade policy, the terminal determines the upgrade and sends a first request to the scheduling unit. The first request is used to request the address information of the target version required by the terminal. After the scheduling unit successfully authenticates the first request, it responds to the first request and sends the second address information (i.e., the redirect URL) to the first terminal. After the terminal receives the second address information, it sends a second request to the content distribution network according to the second address information. After receiving the second request and successfully authenticating, if the target version is not cached in the content distribution network, the content distribution network requests the version warehouse to download the target version and sends it to the terminal; if the target version is already cached in the content distribution network, it can directly respond to the second request and send the target version to the terminal. In this way, after receiving the target version, the terminal can combine the upgrade strategy to complete the version upgrade and upload the version information to the upgrade policy system.
[0077] The terminal upgrade method provided in the embodiment of the present application also includes a complete security authentication chain: the scheduling unit, the content distribution network, and the version warehouse, each time after receiving a request, an identity authentication is performed for the request, and then the request is responded to, thereby avoiding the problem of wrong response and waste of resources.
[0078] It should be noted that in the embodiments of the present application, the interaction of information between the terminal, the upgrade policy system, the scheduling unit, the content distribution network, and the version repository, as well as the downloading of files, can be completed based on the HTTP protocol.
[0079] like Figure 5As shown, it is a schematic diagram of information exchange between the service management system and the scheduling unit, the content distribution network, and the version warehouse. The service management system is used to configure encryption authentication methods for the scheduling unit and the content distribution network respectively. The encryption authentication method is issued by the upgrade policy system and executed by the scheduling unit and the content distribution network. After receiving the terminal request, the scheduling unit and the content distribution network verify the legitimacy of the terminal identity. The service management system manages the configuration of the content distribution network address assigned by the scheduling unit, and the configuration of the content distribution network address (upgrade URL rule) assigned to the terminal. In addition, the service management system also manages the version back-to-source configuration of the content distribution network downloading the version file from the version warehouse. This requires the service management system to issue a version back-to-source test task to the content distribution network. After receiving the test task, the content distribution network performs a back-to-source download test on the version warehouse according to the test task, and feeds back the version back-to-source test results to the service management system, providing a management basis for the service management system to adjust the aforementioned version back-to-source configuration.
[0080] Then, in addition to responding to inquiry information after the terminal is turned on, the upgrade policy system can also be used to interact with the version warehouse and service management system to achieve version management and configuration management. Please refer to Figure 6 .
[0081] For the version warehouse, the upgrade strategy system needs to plan the storage path of the version files and manage the maintenance work such as adding and deleting. At the same time, the back-to-source address and authentication method can also be configured for the version warehouse. The version warehouse performs self-tests based on the configured back-to-source address and authentication method, and feeds back the test results to the upgrade strategy system so that the upgrade strategy system can adjust relevant parameters in a timely manner.
[0082] For the service management system, the upgrade policy system sends the address information list and authentication method of the version in the version warehouse. After the service management system successfully receives it, it sends a response message to the upgrade policy system. At the same time, the service management system requests the address authentication test from the version warehouse based on the version return source address list and authentication certificate, and feeds back the test results to the upgrade policy system. The upgrade policy system corrects the version return source address based on the feedback results, so that the content distribution network can smoothly return to the source and download the target version when needed.
[0083] For the service management system, the upgrade policy system can also query the service management system for the address information and configuration of the scheduling unit. After receiving the response information from the service management system, the upgrade policy system regenerates the second address information based on the address of the scheduling unit and the version back-to-source address, and sends the second address information and the authentication method to the service management system. After receiving it, the service management system sends a response information to the upgrade policy system. It should be noted that in the embodiment of the present application, the first address information, the second address information, and the version back-to-source address can all be represented by a URL.
[0084] Based on the same inventive concept, the present application provides a version upgrade device for a network television set. Figure 1 The upgrade method of the version shown corresponds to the specific implementation of the device, and the description of the above method embodiment can be found in the description of the above method embodiment. The repeated parts will not be repeated. Figure 7 , the device comprises:
[0085] The determining unit 701 is used to obtain an upgrade strategy of any application program, and determine that any application program needs to be upgraded based on a target version number in the upgrade strategy.
[0086] Among them, the upgrade strategy includes the target version number, first address information, and upgrade execution strategy. The first address information is used to obtain the address of the first content distribution network that provides the target version upgrade package. The number of content distribution networks that provide the target version upgrade package is at least two.
[0087] The acquisition unit 702 is configured to determine the address of a first content distribution network in the content distribution network based on the first address information, and acquire the upgrade package of the target version from the first content distribution network.
[0088] Specifically, the first terminal may first send a first request to a scheduling unit based on the first address information; wherein the first request is used to obtain second address information corresponding to accessing the first content distribution network, and the scheduling unit is used to allocate the first content distribution network that provides the target version upgrade package according to the terminal request and the user load of each content distribution network, and feed back the second address information to the terminal.
[0089] Then, feedback information from the scheduling unit is received to obtain the second address information.
[0090] Next, based on the second address information, a second request for acquiring the first information is sent to the first content distribution network.
[0091] Finally, the first information is received, and the upgrade package of the target version is obtained.
[0092] The upgrading unit 703 is configured to upgrade the version of any one of the application programs to the target version based on the upgrading execution strategy and the upgrading package of the target version.
[0093] The version upgrade device also includes an original unit, which is used to send a third request to the scheduling unit based on the first address information; wherein the third request indicates that the version upgrade of any application program has failed, and requests to obtain the original version installation package; receive feedback information from the scheduling unit, and obtain third address information; wherein the third address information indicates the address of a second content distribution network that provides the original version installation package; based on the third address information, send a third request to the second content distribution network to obtain second information; receive the second information, and obtain the original version installation package.
[0094] Based on the same inventive concept, the present application provides a version upgrade device for a network television set. Figure 2 The upgrade method of the version shown corresponds to the specific implementation of the device, and the description of the above method embodiment can be found in the description of the above method embodiment. The repeated parts will not be repeated. Figure 8 , the device comprises:
[0095] Receiving unit 801: configured to receive a second request sent by a first terminal; wherein the second request indicates the identity information of the first terminal and the target version of the application to be upgraded in the first terminal.
[0096] Responding unit 802: Based on the identity information, determine that the first terminal is an authorized user, and determine whether to cache the target version of the application to be upgraded; if so, send the target version of the application to be upgraded to the first terminal in response to the second request; if not, send a request to the version repository to download the target version of the application to be upgraded.
[0097] Specifically, based on the account number in the identity information of the first terminal, it is determined that the service provider of the target version is consistent with the service provider of the cached version in the first content distribution network, and based on the IP address in the identity information of the first terminal, it is determined that the first terminal is in the service area of the first content distribution network, then the first terminal is determined to be an authorized user, that is, the first terminal is the service object of the first content distribution network.
[0098] Based on the same inventive concept, the embodiment of the present application further provides a readable storage medium, including:
[0099] Memory,
[0100] The memory is used to store instructions, and when the instructions are executed by the processor, the device including the readable storage medium completes the version upgrade method as described above.
[0101] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0102] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: a universal serial bus flash disk (Universal Serial Bus flash disk), a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a disk or an optical disk, and other media that can store program codes.
[0106] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A version upgrade method for a network television, characterized in that: The method comprises: The first terminal obtains an upgrade policy of any application, and determines that any application needs to be upgraded based on the target version number in the upgrade policy; wherein the upgrade policy includes the target version number, first address information, and an upgrade execution policy, and the first address information is used to obtain an address of a first content distribution network that provides a target version upgrade package, and the number of the content distribution networks that provide the target version upgrade package is at least two; Based on the first address information, determining the address of a first content distribution network in the content distribution network, and obtaining the upgrade package of the target version from the first content distribution network; Based on the upgrade execution strategy and the upgrade package of the target version, upgrading the version of any one of the application programs to the target version; Wherein, the first address information includes the address of the scheduling unit; The determining, based on the first address information, an address of the first content distribution network in the content distribution network comprises: Based on the first address information, sending first request information to the scheduling unit, the first request information also including the identity information of the first terminal, so that the scheduling unit determines the address of the first content distribution network in the content distribution network after verifying the legitimacy of the identity information of the first terminal; receiving feedback information from the scheduling unit, and determining the address of the first content distribution network according to the feedback information; The identity information is used to ensure that the service provider of the terminal managed by the scheduling unit is consistent with the service provider of the first terminal version and / or that the first terminal is located in the service area of the scheduling unit.
2. The method according to claim 1, characterized in that The step of determining the address of the first content distribution network in the content distribution network based on the first address information, and obtaining the upgrade package of the target version from the first content distribution network, further includes: The first request is used to obtain second address information corresponding to accessing the first content distribution network, and the scheduling unit is used to allocate the first content distribution network providing the target version upgrade package to the terminal according to the terminal request and the user load of each content distribution network, and feed back the second address information to the terminal; receiving feedback information from the scheduling unit, and acquiring the second address information; Based on the second address information, sending a second request to the first content distribution network to obtain the first information; The first information is received, and an upgrade package of the target version is obtained.
3. The method according to claim 2, characterized in that The method further comprises: Based on the first address information, the first terminal sends a third request to the scheduling unit; wherein the third request indicates that the version upgrade of any application program fails, and requests to obtain the original version installation package; receiving feedback information from the scheduling unit, and acquiring third address information; wherein the third address information indicates an address of a second content distribution network that provides the original version installation package; Based on the third address information, sending a third request to the second content distribution network to obtain second information; The second information is received, and the installation package of the original version is obtained.
4. A terminal upgrade method for a content distribution network, characterized in that: The method comprises: The first content distribution network receives a second request sent by the first terminal; wherein the second request indicates the identity information of the first terminal and the target version of the application to be upgraded in the first terminal; Based on the identity information, determine that the first terminal is an authorized user, and determine whether to cache the target version of the application to be upgraded; if so, send the target version of the application to be upgraded to the first terminal in response to the second request; if not, send a request to the version repository to download the target version of the application to be upgraded; the identity information is used to determine whether the service provider of the target version is consistent with the service provider of the cached version in the content distribution network, and whether the first terminal is in the service area of the first content distribution network; Before determining that the first terminal is an authorized user based on the identity information, after the first content distribution network receives the second request sent by the first terminal, the method further includes: The first content distribution network successfully authenticates the second request.
5. The method according to claim 4, characterized in that The determining, based on the identity information, that the first terminal is an authorized user includes: According to the account number in the identity information of the first terminal, it is determined that the service provider of the target version is consistent with the service provider of the cached version in the first content distribution network, and according to the IP address in the identity information of the first terminal, it is determined that the first terminal is in the service area of the first content distribution network, then the first terminal is determined to be an authorized user.
6. A version upgrade device for a network television, characterized in that: The device comprises: A determination unit: used to obtain an upgrade strategy for any application program, and determine that any application program needs to be upgraded based on a target version number in the upgrade strategy; wherein the upgrade strategy includes the target version number, first address information, and an upgrade execution strategy, wherein the first address information is used to obtain an address of a first content distribution network that provides a target version upgrade package, and the number of the content distribution networks that provide the target version upgrade package is at least two; An acquisition unit: configured to determine the address of a first content distribution network in the content distribution network based on the first address information, and acquire the upgrade package of the target version from the first content distribution network; An upgrading unit: configured to upgrade the version of any one of the application programs to the target version based on the upgrading execution strategy and the upgrading package of the target version; Wherein, the first address information includes the address of the scheduling unit; When the acquisition unit determines the address of the first content distribution network in the content distribution network based on the first address information, it is configured to: Based on the first address information, sending first request information to the scheduling unit, the first request information also including identity information of the first terminal, so that the scheduling unit determines the address of the first content distribution network in the content distribution network after verifying the legitimacy of the identity information of the first terminal; receiving feedback information from the scheduling unit, and determining the address of the first content distribution network according to the feedback information; The identity information is used to ensure that the service provider of the terminal managed by the scheduling unit is consistent with the service provider of the first terminal version and / or that the first terminal is located in the service area of the scheduling unit.
7. The device according to claim 6, characterized in that The first request is used to obtain second address information corresponding to accessing the first content distribution network. The scheduling unit is used to allocate the first content distribution network that provides the target version upgrade package according to the terminal request and the user load of each content distribution network, and feed back the second address information to the terminal; the acquisition unit is also used to: receive feedback information from the scheduling unit and obtain the second address information; based on the second address information, send a second request to the first content distribution network to obtain the first information; receive the first information and obtain the upgrade package of the target version.
8. The device according to claim 7, characterized in that The device also includes: The original unit is specifically used to send a third request to the scheduling unit based on the first address information; wherein the third request indicates that the version upgrade of any application program has failed, and requests to obtain the original version installation package; receive feedback information from the scheduling unit, and obtain the third address information; wherein the third address information indicates the address of the second content distribution network that provides the original version installation package; based on the third address information, send a third request to the second content distribution network to obtain the second information; receive the second information, and obtain the original version installation package.
9. A version upgrade device for a content distribution network, characterized in that: The device comprises: A receiving unit: configured to receive a second request sent by a first terminal; wherein the second request indicates the identity information of the first terminal and a target version of an application to be upgraded in the first terminal; A response unit: used to determine, based on the identity information, that the first terminal is an authorized user, and determine whether to cache the target version of the application to be upgraded; if so, in response to the second request, send the target version of the application to be upgraded to the first terminal; if not, send a request to the version repository to download the target version of the application to be upgraded; the identity information is used to determine whether the service provider of the target version is consistent with the service provider of the cached version in the content distribution network, and whether the first terminal is in the service area of the first content distribution network; Before the responding unit determines that the first terminal is an authorized user based on the identity information and after the receiving unit receives the second request sent by the first terminal, the responding unit is further configured to: successfully authenticate the second request.
10. A readable storage medium, characterized in that: include, Memory, The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Resource-downloading method and device
CN105763616A
Content distribution network scheduling method, device and server and medium
CN112165691A