Version upgrade method, device, equipment and medium for IPTV device
By generating and selecting the optimal upgrade path collection, combining the advantages of full and differential upgrade packages, the speed and compatibility issues during the IPTV device version upgrade process are solved, efficient version upgrade is achieved, and user experience and system stability are improved. .
Patent Information
- Application Number
- CN202411368633.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-29
AI Technical Summary
In the version upgrade method of existing IPTV devices, the full upgrade compatibility is good but the speed is slow, the differential upgrade speed is fast, but it requires multiple matching and downloads, and the optimal upgrade path cannot be selected.
By sending the current version number to the server, receiving the target upgrade path collection, generating an upgrade strategy based on the capacity and number of full and differential upgrade packages, selecting the optimal upgrade path collection to download the upgrade package, and upgrading in the restarted recovery system.
It improves the version upgrade efficiency of IPTV equipment, avoids the shortcomings of a single upgrade method, improves the user experience, simplifies the upgrade process, and ensures the consistency and integrity of the system.
Smart Images

Figure CN118890517B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of IPTV technology and provides a version upgrade method, device, equipment and medium for an IPTV device. Background Art
[0002] The upgrade of Internet Protocol Television (IPTV) equipment is generally divided into differential upgrade and full upgrade. Since the full upgrade package contains all the contents of the version, the full upgrade is suitable for upgrading from any version to the target version. The full upgrade has good compatibility with the existing network version and can reach the target version in one upgrade. However, since the full upgrade package is large, the download speed and upgrade speed are slow.
[0003] Differential upgrade packages can only be used for differential upgrades from the original version to the next version. Although differential upgrade packages are small, the download speed and upgrade speed are fast, but differential upgrades have a big disadvantage. The upgrade version must match the upgraded version one by one, and multiple differential upgrades are required between versions across multiple levels.
[0004] Both full upgrade and differential upgrade have their own shortcomings. How to choose the best upgrade path for the current version of IPTV equipment is an urgent problem to be solved. Summary of the invention
[0005] The present application provides a version upgrade method, apparatus, device and medium for an IPTV device, which are used to solve the problem of how to select an optimal upgrade path for the current version of the IPTV device.
[0006] In a first aspect, a version upgrade method of an IPTV device is provided, which is applied to an Internet Protocol television IPTV device; the method comprises:
[0007] Sending the current version number of the IPTV device to the server;
[0008] Receive a target upgrade path set returned by the server; wherein the target upgrade path set is determined by the server by querying a version upgrade policy according to the current version number; the version upgrade policy includes multiple version numbers and an upgrade path set corresponding to each version number; each upgrade path set includes the address of at least one upgrade package, and the at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network;
[0009] Downloading the at least one upgrade package from the server according to the address in the target upgrade path set;
[0010] Restart the IPTV device to enter the recovery system, and perform an upgrade according to the at least one upgrade package.
[0011] Optionally, sending the current version number of the IPTV device to the server includes:
[0012] Receive the version number of the latest version of the existing network sent by the server;
[0013] If the current version number is different from the version number of the latest version on the existing network, the current version number is sent to the server.
[0014] Optionally, if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to a preset threshold, then the upgrade path set corresponding to any version number includes the address of the full upgrade package;
[0015] If the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the preset threshold, then the upgrade path set corresponding to any version number includes the addresses of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network.
[0016] Optionally, each upgrade path set is an array, and the address of the at least one upgrade package is an element in the array;
[0017] The downloading the at least one upgrade package from the server according to the address in the target upgrade path set includes:
[0018] If the target upgrade path set includes the addresses of all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network, then according to the addresses in the target upgrade path set, all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network are downloaded from the server;
[0019] The step of restarting the IPTV device to enter a recovery system and performing an upgrade according to the at least one upgrade package includes:
[0020] Restart the IPTV device to enter the recovery system, and perform differential upgrades in sequence according to the order of elements in the array based on all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network.
[0021] Optionally, downloading the at least one upgrade package from the server according to the address in the target upgrade path set includes:
[0022] If the target upgrade path set includes the address of the full upgrade package of the latest version of the existing network, downloading the full upgrade package from the server according to the address in the target upgrade path set;
[0023] The step of restarting the IPTV device to enter a recovery system and performing an upgrade according to the at least one upgrade package includes:
[0024] Restart the IPTV device to enter the recovery system, and perform a full upgrade according to the full upgrade package.
[0025] Optionally, before restarting the IPTV device to enter the recovery system and performing an upgrade according to the at least one upgrade package, the method further includes:
[0026] Verifying each upgrade package in the at least one upgrade package;
[0027] Make sure that each upgrade package has passed verification.
[0028] Optionally, after restarting the IPTV device to enter the recovery system and performing the upgrade according to the at least one upgrade package, the method further includes:
[0029] If any upgrade package in the at least one upgrade package fails to upgrade, stop upgrading;
[0030] Restart the IPTV device and re-enter the recovery system for upgrading.
[0031] In a second aspect, a version upgrade device for an IPTV device is provided, which is applied to an Internet Protocol television IPTV device; the device comprises:
[0032] A sending module, used for sending the current version number of the IPTV device to the server;
[0033] A receiving module, configured to receive a target upgrade path set returned by the server; wherein the target upgrade path set is determined by the server by querying a version upgrade policy according to the current version number; the version upgrade policy includes multiple version numbers and an upgrade path set corresponding to each version number; each upgrade path set includes an address of at least one upgrade package, and the at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network;
[0034] A download module, configured to download the at least one upgrade package from the server according to an address in the target upgrade path set;
[0035] The upgrade module is used to restart the IPTV device to enter the recovery system and perform the upgrade according to the at least one upgrade package.
[0036] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the version upgrade method of the IPTV device described in the first aspect.
[0037] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and a processor executes the computer program to implement the version upgrade method of the IPTV device described in the first aspect.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present application provides a version upgrade method for an IPTV device, which is applied to an Internet Protocol television IPTV device; the method includes: sending the current version number of the IPTV device to a server; receiving a target upgrade path set returned by the server; wherein the target upgrade path set is determined by the server querying a version upgrade policy according to the current version number; the version upgrade policy includes the version numbers of multiple versions and the upgrade path set corresponding to each version number; each upgrade path set includes the address of at least one upgrade package, at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network; according to the address in the target upgrade path set, download at least one upgrade package from the server; restart the IPTV device to enter the recovery system, and upgrade according to at least one upgrade package. The present application combines the advantages of the full upgrade package and the differential upgrade package through the server, pre-configures the version upgrade strategy, indicates the upgrade path set corresponding to different versions, directly selects the optimal upgrade path set for the IPTV device according to the current version number of the IPTV device for upgrading, and avoids the deficiency of using one upgrade method (full upgrade or differential upgrade) for all versions. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0041] Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application;
[0042] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0043] Figure 3 A schematic diagram of a flow chart of a version upgrade method for an IPTV device provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the interaction between the server and the IPTV device provided in the embodiment of the present application;
[0045] Figure 5 A schematic diagram of a differential upgrade process for an IPTV device provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of the structure of a version upgrade device for an IPTV device provided in an embodiment of the present application.
[0047] Markings in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory, 10 - IPTV device, 20 - server. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0049] Before introducing a version upgrade method for an IPTV device provided in an embodiment of the present application, the background technology involved in the embodiment of the present application is first introduced in detail.
[0050] The current version of the IPTV device is A. If you want to update from version A to version B, the compiled version usually needs to be processed as a differential part, so that the upgrade from version A to version B can be completed with a smaller transmission cost. Traditionally, the size of an IPTV upgrade package is about 700M, while a differential upgrade package is about 20M. Since the differential upgrade package is small, the download speed and upgrade speed are faster. However, the differential upgrade package of BA can only be used to upgrade version A, and other versions that are different from version A cannot be used.
[0051] Each differential upgrade package can only complete the upgrade from a fixed version to the next version. Because some IPTV devices have not been turned on for a long time, there may be version accumulation. For example, the latest version of the current network environment has been upgraded to version D. Because the user has not turned on the device, the IPTV device is still version A. When the IPTV device is started, it will trigger the upgrade, first from version A to version B, and then trigger the upgrade again after restart, from version B to version C, and then restart and trigger the upgrade again, from version C to D. It takes 3 consecutive upgrades to upgrade to the latest version, and the upgrade time is long. Full upgrade has good compatibility with the current network version. It can reach the target version in one upgrade without making a difference between the original version and the target version. It is the simplest, but the full upgrade package is large and the upgrade time is relatively long, resulting in a poor user experience. Both full upgrade and differential upgrade have their own shortcomings. How to choose the optimal upgrade path for the current version of IPTV devices is an urgent problem to be solved.
[0052] In view of this, an embodiment of the present application provides a version upgrade method for an IPTV device, which can be executed by the IPTV device.
[0053] Please refer to Figure 1 , which is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application.
[0054] like Figure 1As shown, the computer device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may include a standard wired interface and a wireless interface. The network interface 103 may include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 105 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 105 may optionally also be a storage device independent of the aforementioned processor 101.
[0055] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0056] like Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a network communication module, a user interface module, and a version upgrade device for an IPTV device.
[0057] exist Figure 1 In the computer device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in the computer device of the present invention can be set in the computer device, and the computer device calls the version upgrade device of the IPTV device stored in the memory 105 through the processor 101, and executes the version upgrade method of the IPTV device provided in the embodiment of the present application.
[0058] Figure 1 The computer device shown is equivalent to an IPTV device. The following briefly introduces the application scenarios to which the technical solution of the embodiment of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiment of the present application and are not limited. In the specific implementation process, the technical solution provided by the embodiment of the present application can be flexibly applied according to actual needs.
[0059] Please refer to Figure 2, is a schematic diagram of an application scenario provided in an embodiment of the present application, and the application scenario includes an IPTV device 10 and a server 20.
[0060] The IPTV device 10 refers to a device that transmits television programs through Internet Protocol (IP) technology, such as an IPTV set-top box. The server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, but is not limited thereto.
[0061] Combine the following Figure 1 The IPTV devices shown and Figure 2 The application scenario shown is Figure 3 A version upgrade method for an IPTV device is introduced.
[0062] S301. Send the current version number of the IPTV device to the server.
[0063] In a specific implementation process, the IPTV device may send an upgrade request to the IPTV device, where the upgrade request includes the current version number of the IPTV device, where the current version number refers to the version number of the system currently used by the IPTV device.
[0064] In a possible embodiment, the IPTV device may actively send the current version number to the server each time it is turned on and a connection is established with the server.
[0065] In another possible embodiment, the IPTV device receives the version number of the latest version of the existing network sent by the server; if the current version number is different from the version number of the latest version of the existing network, the current version number is sent to the server.
[0066] In the specific implementation process, each time the IPTV device is turned on and establishes a connection with the server, the server can actively send the version number of the latest version of the current network to the IPTV device. The latest version of the current network refers to the latest version of the IPTV device in the current network environment. After the IPTV device receives the version number of the latest version of the current network, it checks whether the current version number of the IPTV device is the same as the version number of the latest version of the current network. If they are the same, it means that the current version of the system of the IPTV device is the latest version of the current network and does not need to be upgraded. If they are different, it means that the current version of the system of the IPTV device is not the latest version of the current network and needs to be upgraded.
[0067] S302: Receive a target upgrade path set returned by the server.
[0068] The target upgrade path set is determined by the server querying the version upgrade strategy according to the current version number; the version upgrade strategy includes the version numbers of multiple versions and the upgrade path set corresponding to each version number; each upgrade path set includes the address of at least one upgrade package, and at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network. Each upgrade path set is an array, and the address of at least one upgrade package is an element in the array.
[0069] In the specific implementation process, the server can generate upgrade rules for each version to the latest version of the current network according to the latest version of the current network, thereby completing the generation of the version upgrade strategy. After receiving the current version number of the IPTV device, the version upgrade strategy is queried, the upgrade path set corresponding to the current version number is determined as the target upgrade path set, and the target upgrade path set is sent to the IPTV device.
[0070] In a possible embodiment, if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to a preset threshold, then the upgrade path set corresponding to any version number includes the address of the full upgrade package. If the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the capacity of the full upgrade package of the latest version of the existing network, or the total number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than a preset threshold, then the upgrade path set corresponding to any version number includes the addresses of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network.
[0071] In the specific implementation process, after determining the latest version of the existing network, the server can calculate the total capacity and total number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network. If the total capacity is greater than or equal to the capacity of the full upgrade package of the latest version of the existing network, or the total number is greater than or equal to the preset threshold, the address of the full upgrade package of the latest version of the existing network is written into the upgrade path set corresponding to the any version number. If the total capacity is less than the capacity of the full upgrade package of the latest version of the existing network, or the total number is less than the preset threshold, the address of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is written into the upgrade path set corresponding to the any version number, thereby generating a version upgrade strategy. Among them, any version number is the version number of any version among all versions to be upgraded, and the preset threshold can be 3.
[0072] For example, the version number of the latest version of the existing network is D, and all versions to be upgraded include version A, version B, and version C. The generated version upgrade strategy is as follows:
[0073] Rule.json
[0074] {
[0075] "A": ["D full upgrade package address"],
[0076] "B": ["C differential packet address", "D differential packet address"],
[0077] "C": ["D differential packet address"]
[0078] }
[0079] [] represents an array containing one or more upgrade package addresses, which can be differential upgrade packages or full upgrade package addresses. D full upgrade package address is the address of the full upgrade package of version D, C differential package address is the address of the differential upgrade package from version B to version C, and D differential package address is the address of the differential upgrade package from version C to version D.
[0080] In the embodiment of the present application, the server combines the advantages of differential upgrade and full upgrade, generates upgrade rules for each version to the latest version of the existing network according to the capacity of the full upgrade package and all differential upgrade packages, and the number of all differential upgrade packages, and completes the generation of the version upgrade strategy. By formulating detailed upgrade rules, the most suitable upgrade path set can be selected for different versions of IPTV devices to improve upgrade efficiency.
[0081] In a possible embodiment, when a new software release version is submitted to the server, the server may update the version upgrade policy according to the new software release version.
[0082] S303: Download at least one upgrade package from the server according to the address in the target upgrade path set.
[0083] In a possible embodiment, if the target upgrade path set includes the address of the full upgrade package of the latest version of the existing network, the full upgrade package is downloaded from the server according to the address in the target upgrade path set.
[0084] Continuing with the version upgrade strategy in the previous example, if the version number of the current version is A, the target upgrade path set corresponding to A includes the D full upgrade package address, and the full upgrade package of version D is downloaded from the server according to the D full upgrade package address.
[0085] In another possible embodiment, if the target upgrade path set includes the addresses of all differential upgrade packages from the version corresponding to the current version number to the latest version on the existing network, then according to the addresses in the target upgrade path set, all differential upgrade packages from the version corresponding to the current version number to the latest version on the existing network are downloaded from the server.
[0086] Continuing with the version upgrade strategy in the previous example, if the current version number is B, the target upgrade path set corresponding to B includes the C differential package address and the D differential package address. The differential upgrade package from version B to version C is downloaded from the server according to the C differential package address, and the differential upgrade package from version C to version D is downloaded from the server according to the D differential package address. If the current version number is C, the target upgrade path set corresponding to C includes the D differential package address, and the differential upgrade package from version C to version D is downloaded from the server according to the D differential package address.
[0087] The IPTV device puts the download results into / cache / recovery / according to the target upgrade path set, and writes the upgrade strategy into the / cache / recovery / command file.
[0088] If the version number of the current version is A, the information written is as follows:
[0089] --update_package= / cache / recovery / D.zip (upgrade to version D in one go)
[0090] If the current version number is B, the information written is as follows:
[0091] --update_package= / cache / recovery / C.zip, / cache / recovery / D.zip (upgrade two differentials to version D at a time)
[0092] If the version number of the current version is C, the information written is as follows:
[0093] --update_package= / cache / recovery / D.zip (a normal differential upgrade to version D)
[0094] S304: Restart the IPTV device to enter the recovery system, and perform an upgrade according to at least one upgrade package.
[0095] In a possible embodiment, the IPTV device is restarted to enter the recovery system, and a full upgrade is performed according to the full upgrade package.
[0096] Continuing with the above example, if the current version number is A, after downloading the full upgrade package of version D from the server according to the D full upgrade package address, restart the IPTV device to enter the recovery system (recovery mode), and directly upgrade from version A to version D according to the full upgrade package of version D, avoiding complicated step-by-step update steps or relying on differential packages, and simplifying the operation.
[0097] In another possible embodiment, the IPTV device is restarted to enter the recovery system, and all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network are differentially upgraded in sequence according to the order of elements in the array.
[0098] Continuing with the above example, if the current version number is B, the differential upgrade package from version B to version C is downloaded from the server according to the C differential package address, and the differential upgrade package from version C to version D is downloaded from the server according to the D differential package address. First, according to the differential upgrade package from version B to version C, the differential upgrade is performed from version B to version C, and then according to the differential upgrade package from version C to version D, the differential upgrade is performed from version C to version D. If the current version number is C, according to the D differential package address, the differential upgrade package from version C to version D is downloaded from the server, and then according to the differential upgrade package from version C to version D, the differential upgrade is performed from version C to version D.
[0099] In an embodiment of the present application, for multiple differential upgrade packages, differential upgrades are performed in sequence according to the order of elements in the array, ensuring that the multiple differential upgrade packages are upgraded in the correct version order, thereby avoiding incompatibility issues between versions during differential upgrades and reducing the risk of upgrade failures and system errors.
[0100] In a possible embodiment, before executing S304, the method further includes:
[0101] Verify each upgrade package in the at least one upgrade package; and ensure that each upgrade package passes the verification.
[0102] In the specific implementation process, after downloading and obtaining at least one upgrade package, the IPTV device verifies each upgrade package and can use the corresponding algorithm to calculate the checksum of each upgrade package, and compare the calculated checksum with the pre-provided checksum. If the two match, the verification of the upgrade package passes; if the two do not match, the verification of the upgrade package fails and the upgrade package is downloaded again.
[0103] In the embodiment of the present application, verifying each upgrade package can ensure that the downloaded data is not damaged or tampered with, thereby ensuring the integrity and accuracy of the upgrade package. Damaged or incomplete upgrade packages can be identified before the upgrade begins, avoiding upgrade failures caused by upgrade package errors, increasing the probability of successful upgrades, and thus improving the overall user experience and satisfaction.
[0104] In a possible embodiment, after executing S304, the method further includes:
[0105] If any upgrade package in at least one upgrade package fails to upgrade, the upgrade is stopped; the IPTV device is restarted and the recovery system is re-entered for upgrading.
[0106] In an embodiment of the present application, by stopping the upgrade and re-entering the recovery system for upgrading, an opportunity for recovery and retrying is provided, thereby improving the success rate of the overall upgrade and reducing the risk of system failure due to failure of some upgrade packages. The device will complete the upgrade only when all upgrade packages are successful, thereby ensuring the consistency and integrity of the system.
[0107] Please refer to Figure 4 , which is a schematic diagram of the interaction between the server and the IPTV device provided in the embodiment of the present application. Figure 4 The process shown.
[0108] S401. The IPTV device reports version B to the server.
[0109] S402: The server queries the database for a target upgrade path set corresponding to version B.
[0110] The server finds that the upgrade path set corresponding to version B is ["C differential package address", "D differential package address"].
[0111] S403: The server sends the target upgrade path set to the IPTV device.
[0112] S404: The IPTV device downloads the differential upgrade package from version B to version C.
[0113] The IPTV device downloads the differential upgrade package from version B to version C from the server according to the "C differential package address".
[0114] S405. The IPTV device downloads the differential upgrade package from version C to version D.
[0115] The IPTV device downloads the differential upgrade package from version C to version D from the server according to the "D differential package address".
[0116] S406: The IPTV device verifies the downloaded upgrade package.
[0117] The IPTV device verifies the differential upgrade package from version B to version C and the differential upgrade package from version C to version D respectively.
[0118] S407: The IPTV device generates an upgrade command.
[0119] After verification, the IPTV device generates an upgrade command and restarts the IPTV device to enter the recovery system.
[0120] S408. IPTV equipment is upgraded.
[0121] The IPTV device is differentially upgraded from version B to version C according to the differential upgrade package from version B to version C, and is differentially upgraded from version C to version D according to the differential upgrade package from version C to version D.
[0122] In the original differential upgrade process, the current version of the IPTV device is version B. After submitting an upgrade request to the server, the server gives the address of the differential upgrade package from version B to version C. The IPTV device downloads the differential upgrade package from version B to version C to complete the upgrade. The IPTV device needs to submit an upgrade request to the server again, requesting the address of the differential upgrade package from version C to version D, before it can upgrade from version C to version D.
[0123] In the embodiment of the present application, the current version of the IPTV device is version B. After submitting an upgrade request to the server, the server provides an upgrade path set ["C differential package address", "D differential package address"]. The IPTV device downloads two differential upgrade packages according to the upgrade path set ["C differential package address", "D differential package address"]. During the recovery system upgrade process, these differential upgrade packages are upgraded in sequence.
[0124] Please refer to Figure 5 , is a schematic diagram of the process of differential upgrading of the IPTV device provided in an embodiment of the present application.
[0125] S501. Enter the recovery system.
[0126] S502: Parse the / cache / recovery / command file.
[0127] Parse the / cache / recovery / command file to obtain the upgrade file set, that is, all differential upgrade packages from the current version to the latest version of the existing network.
[0128] S503, differential upgrade.
[0129] S504: Copy the upgrade log.
[0130] S505: Determine whether the version after the differential upgrade is the latest version of the existing network.
[0131] If not, continue to execute S503, and if so, execute S506.
[0132] S506, upgrade completed, restart.
[0133] In summary, the embodiment of the present application provides a version upgrade method for an IPTV device, which combines the advantages of single differential upgrade, multiple differential simultaneous upgrade and full upgrade, and implements the configuration of the version upgrade strategy through the server. According to the version upgrade strategy, different upgrade path sets can be selected for different versions of the IPTV device, and different upgrade methods can be executed to avoid the shortcomings of a single upgrade method, thereby improving the user experience. The recovery system is modified to support single differential upgrade package upgrade, multiple differential upgrade packages simultaneous upgrade and full upgrade.
[0134] Based on the same invention concept, please refer to Figure 6 The present application also provides a version upgrade device for an IPTV device, which is applied to an Internet Protocol television IPTV device; the device comprises:
[0135] A sending module, used for sending the current version number of the IPTV device to the server;
[0136] A receiving module, configured to receive a target upgrade path set returned by the server; wherein the target upgrade path set is determined by the server querying the version upgrade policy according to the current version number; the version upgrade policy includes the version numbers of multiple versions and the upgrade path set corresponding to each version number; each upgrade path set includes the address of at least one upgrade package, and at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network;
[0137] A download module, used to download at least one upgrade package from a server according to an address in a target upgrade path set;
[0138] The upgrade module is used to restart the IPTV device to enter the recovery system and perform the upgrade according to at least one upgrade package.
[0139] Optionally, the sending module is specifically used for:
[0140] Receive the version number of the latest version of the live network sent by the server;
[0141] If the current version number is different from the version number of the latest version on the existing network, the current version number is sent to the server.
[0142] Optionally, if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to a preset threshold, then the upgrade path set corresponding to any version number includes the address of the full upgrade package;
[0143] If the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than a preset threshold, then the upgrade path set corresponding to any version number includes the addresses of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network.
[0144] Optionally, each upgrade path set is an array, and the address of at least one upgrade package is an element in the array;
[0145] The download module is specifically used to: if the target upgrade path set includes the addresses of all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network, then according to the addresses in the target upgrade path set, download all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network from the server;
[0146] The upgrade module is specifically used to: restart the IPTV device to enter the recovery system, and perform differential upgrades in sequence according to the order of elements in the array according to all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network.
[0147] Optionally, the download module is specifically used to:
[0148] If the target upgrade path set includes the address of the full upgrade package of the latest version of the existing network, then the full upgrade package is downloaded from the server according to the address in the target upgrade path set;
[0149] The upgrade module is specifically used for:
[0150] Restart the IPTV device to enter the recovery system and perform a full upgrade according to the full upgrade package.
[0151] Optionally, the version upgrade device of the IPTV device further includes a verification module, and the verification module is used to:
[0152] Before restarting the IPTV device to enter the recovery system and upgrading according to at least one upgrade package, verify each upgrade package in the at least one upgrade package; and ensure that each upgrade package passes the verification.
[0153] Optionally, the upgrade module is also used to:
[0154] After the IPTV device is restarted and enters the recovery system, and the upgrade is performed according to at least one upgrade package, if any upgrade package in the at least one upgrade package fails to be upgraded, the upgrade is stopped; the IPTV device is restarted and the recovery system is re-entered for upgrading.
[0155] It should be noted that each module in the version upgrade device of the IPTV device in this embodiment corresponds one-to-one to each step in the version upgrade method of the IPTV device in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the version upgrade method of the aforementioned IPTV device, which will not be repeated here.
[0156] Based on the same inventive concept, the present application also provides a computer device, which is equivalent to the IPTV device discussed above. The computer device includes a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, the version upgrade method of the aforementioned IPTV device is implemented.
[0157] Based on the same inventive concept, the present application also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the version upgrade method of the aforementioned IPTV device is implemented.
[0158] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0159] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0160] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0161] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0163] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0165] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A version upgrade method for an IPTV device, characterized in that: Applied to an Internet Protocol Television (IPTV) device; the method comprises: Sending the current version number of the IPTV device to the server; Receive a target upgrade path set returned by the server; wherein the target upgrade path set is determined by the server querying a version upgrade policy based on the current version number; the version upgrade policy includes multiple version numbers and an upgrade path set corresponding to each version number; each upgrade path set includes the address of at least one upgrade package, and the at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network; the version upgrade policy is generated by the server in advance based on the latest version of the existing network, if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to the capacity of the full upgrade package of the latest version of the existing network, or the version corresponding to any version number If the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to a preset threshold, the upgrade path set corresponding to any version number includes the address of the full upgrade package; if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the preset threshold, the upgrade path set corresponding to any version number includes the address of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network; when a new software release version is submitted to the server, the server updates the version upgrade policy according to the new software release version; Downloading the at least one upgrade package from the server according to the address in the target upgrade path set; Restart the IPTV device to enter the recovery system, and perform an upgrade according to the at least one upgrade package.
2. The version upgrade method of the IPTV device according to claim 1, characterized in that: The sending the current version number of the IPTV device to the server comprises: Receive the version number of the latest version of the existing network sent by the server; If the current version number is different from the version number of the latest version on the existing network, the current version number is sent to the server.
3. The version upgrade method of the IPTV device according to claim 1, characterized in that: Each upgrade path set is an array, and the address of the at least one upgrade package is an element in the array; The downloading the at least one upgrade package from the server according to the address in the target upgrade path set includes: If the target upgrade path set includes addresses of all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network, then download all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network from the server according to the addresses in the target upgrade path set; The step of restarting the IPTV device to enter a recovery system and performing an upgrade according to the at least one upgrade package includes: Restart the IPTV device to enter the recovery system, and perform differential upgrades in sequence according to the order of elements in the array based on all differential upgrade packages from the version corresponding to the current version number to the latest version of the existing network.
4. The version upgrade method of the IPTV device according to claim 1, characterized in that: The downloading the at least one upgrade package from the server according to the address in the target upgrade path set includes: If the target upgrade path set includes the address of the full upgrade package of the latest version of the existing network, downloading the full upgrade package from the server according to the address in the target upgrade path set; The step of restarting the IPTV device to enter a recovery system and performing an upgrade according to the at least one upgrade package includes: Restart the IPTV device to enter the recovery system, and perform a full upgrade according to the full upgrade package.
5. The version upgrade method of the IPTV device according to claim 1, characterized in that: Before restarting the IPTV device to enter the recovery system and upgrading according to the at least one upgrade package, the method further includes: Verifying each upgrade package in the at least one upgrade package; Make sure that each upgrade package has been verified.
6. The version upgrade method of the IPTV device according to claim 1, characterized in that: After restarting the IPTV device to enter the recovery system and performing an upgrade according to the at least one upgrade package, the method further includes: If any upgrade package in the at least one upgrade package fails to upgrade, stop upgrading; Restart the IPTV device and re-enter the recovery system for upgrading.
7. A version upgrade device for an IPTV device, characterized in that: Applicable to Internet Protocol Television (IPTV) equipment; the device comprises: A sending module, used for sending the current version number of the IPTV device to the server; A receiving module, configured to receive a target upgrade path set returned by the server; wherein the target upgrade path set is determined by the server by querying a version upgrade policy according to the current version number; the version upgrade policy includes version numbers of multiple versions and a set of upgrade paths corresponding to each version number; each upgrade path set includes the address of at least one upgrade package, and the at least one upgrade package is a full upgrade package of the latest version of the existing network or all differential upgrade packages from each version to the latest version of the existing network; the version upgrade policy is generated in advance by the server according to the latest version of the existing network, if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is greater than or equal to the capacity of the full upgrade package of the latest version of the existing network, or, any version number If the number of all differential upgrade packages from the corresponding version to the latest version of the existing network is greater than or equal to a preset threshold, the upgrade path set corresponding to any version number includes the address of the full upgrade package; if the total capacity of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the capacity of the full upgrade package of the latest version of the existing network, or the number of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network is less than the preset threshold, the upgrade path set corresponding to any version number includes the address of all differential upgrade packages from the version corresponding to any version number to the latest version of the existing network; when a new software release version is submitted to the server, the server updates the version upgrade policy according to the new software release version; A download module, configured to download the at least one upgrade package from the server according to an address in the target upgrade path set; The upgrade module is used to restart the IPTV device to enter the recovery system and perform the upgrade according to the at least one upgrade package.
8. A computer device, characterized in that: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the version upgrade method of the IPTV device according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the version upgrade method of the IPTV device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Linux system smart television software upgrading method
CN107333181A
OTA upgrading method and device
CN110865842A
Upgrade package generation method and device, equipment
CN112905223A
Over-the-air(OTA) upgrading method, device and readable storage medium
CN113225729A
Local area network OTA firmware upgrading device, method and system
CN113992739A
