Intelligent set top box and upgrading breakpoint resuming method of intelligent set top box

By designing a multi-controller breakpoint continuous transmission and upgrading method in the intelligent set-top box, the problem of upgrading the server and reissuing configuration parameters after the set-top box is upgraded, and the effect of reducing the power consumption and workload of upgrading the server is achieved.

CN119583892APending Publication Date: 2025-03-07HISENSE BROADBAND MULTIMEDIA TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311140594.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

After the set-top box fails to upgrade according to the upgrade configuration parameters issued by the upgrade server, it is necessary to upgrade the server to reissue the upgrade configuration parameters, resulting in an increase in power consumption of the upgrade server.

Method used

Design an intelligent set-top box that contains multiple controllers, can receive upgrade requests, construct upgrade objects, and upgrade again by itself through the stored upgrade configuration parameters after the upgrade failure, reducing dependence on the upgrade server.

Benefits of technology

Through the breakpoint continuous transmission method of the smart set-top box, the need to detect and reissue requests for upgrade servers is reduced, and the power consumption and workload of upgrade servers is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583892A_ABST
    Figure CN119583892A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent set top box and an upgrade breakpoint resuming method of the intelligent set top box, the set top box comprises an interface, a first controller, a second controller and a third controller, the first controller constructs an upgrade request received by the interface into an upgrade object; and the second controller receives the upgrade object, modifies the value of the upgrade flag bit into a first value, analyzes the upgrade object to obtain an upgrade package downloading address and a verification value stored in the memory, downloads the upgrade package according to the upgrade package downloading address, and performs upgrade according to the upgrade package after the upgrade package is successfully verified according to the verification value. Modifying the value of the upgrading flag bit according to the upgrading result; and after the set top box is restarted, when the value of the third controller at the upgrade flag bit is the first value, constructing an upgrade object according to the stored upgrade package download address and the check value, and sending the upgrade object to the second controller for re-upgrade. After the set top box fails to be upgraded, the set top box is upgraded again according to the stored upgrading configuration parameters, and the server does not need to issue an upgrading request again.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network communication technology, and in particular to a smart set-top box and a method for resuming upgrade of the smart set-top box. Background Art

[0002] A set-top box, also known as a digital video converter box, is a device that connects a TV set to an external signal source. The set-top box can convert compressed digital signals into TV content and display it on the TV set. The signal for the set-top box can come from cable, satellite antenna, broadband network, and terrestrial broadcasting.

[0003] With the development of set-top boxes, the software functions of set-top boxes are increasingly enhanced, and software upgrades have become inevitable. Currently, when a set-top box performs a software upgrade, the set-top box can send an upgrade request to an upgrade server, and the upgrade server sends an upgrade package to the set-top box according to the upgrade request, and the set-top box performs software upgrades through the upgrade package; the upgrade configuration parameters can also be sent to the set-top box through a remote upgrade server, and the set-top box downloads the upgrade package from the upgrade server through the network according to the upgrade configuration parameters, and the set-top box performs software upgrades through the upgrade package.

[0004] However, when sending upgrade configuration parameters to the set-top box through a remote upgrade server, the upgrade server needs to add set-top box upgrade success judgment logic to detect whether the set-top box has been successfully upgraded. After the set-top box upgrade fails, the upgrade server needs to re-send the upgrade configuration parameters to the set-top box, which increases the power consumption of the upgrade server. Summary of the invention

[0005] The disclosed embodiments provide a smart set-top box and a method for resuming upgrade of the smart set-top box, so as to solve the problem that after the set-top box fails to upgrade according to the upgrade configuration parameters sent by the upgrade server, the upgrade configuration parameters need to be re-sent by the upgrade server.

[0006] In a first aspect, the present disclosure provides a smart set-top box, comprising:

[0007] an interface configured to receive an upgrade request;

[0008] A first controller connected to the interface, the first controller being configured to receive the upgrade request and construct an upgrade object according to the upgrade request;

[0009] a second controller connected to the first controller, the second controller being configured to receive the upgrade object, and upon receiving the upgrade object, modify the value of the upgrade flag to a first value, parse the upgrade object to obtain upgrade configuration parameters, and store the upgrade package download address and the check value in the upgrade configuration parameters to a memory; download the upgrade package according to the upgrade package download address, check the upgrade package according to the check value, upgrade the set-top box according to the upgrade package after the upgrade package is successfully checked, modify the value of the upgrade flag according to the upgrade result, and restart the set-top box;

[0010] A third controller is connected to the second controller, and the third controller is configured to, after power-on restart, read the value of the upgrade flag, and when the value of the upgrade flag is a first value, read the upgrade package download address and the verification value stored in the memory, construct an upgrade object according to the upgrade package download address and the verification value, and send the upgrade object to the second controller, so that the second controller upgrades the set-top box again according to the upgrade object.

[0011] In a second aspect, the present disclosure provides a method for resuming upgrade of a smart set-top box, the method comprising:

[0012] receiving an upgrade request, and constructing an upgrade object according to the upgrade request;

[0013] When receiving the upgrade object, modifying the value of the upgrade flag bit to a first value;

[0014] Parsing the upgrade object to obtain upgrade configuration parameters, and storing the upgrade package download address and the check value in the upgrade configuration parameters into a memory;

[0015] Downloading the upgrade package according to the upgrade package download address, and verifying the upgrade package according to the verification value;

[0016] After the upgrade package is successfully verified, the set-top box is upgraded according to the upgrade package, and the value of the upgrade flag is modified according to the upgrade result;

[0017] Power on and restart the set-top box, and read the value of the upgrade flag;

[0018] When the value of the upgrade flag is the first value, reading the upgrade package download address and the check value stored in the memory;

[0019] An upgrade object is constructed according to the upgrade package download address and the verification value, and the set-top box is upgraded again according to the upgrade object.

[0020] As can be seen from the above embodiments, the smart set-top box provided by the embodiments of the present disclosure includes an interface, a first controller, a second controller and a third controller, the interface is used to receive an upgrade request sent by an upgrade server, the interface sends the received upgrade request to the first controller, the first controller constructs an upgrade object according to the upgrade request, so as to upgrade the set-top box through the upgrade object; the second controller receives the upgrade object from the first controller, and when receiving the upgrade object, modifies the value of the upgrade flag to the first value, parses the upgrade object to obtain the upgrade configuration parameters, and stores the upgrade package download address and the verification value in the upgrade configuration parameters to the memory, so as to facilitate the acquisition of the upgrade package download address and the verification value when the set-top box upgrade fails; the second controller downloads the upgrade package from the server according to the parsed upgrade package download address, verifies the downloaded upgrade package according to the verification value, and after the upgrade package verification is successful, upgrades the set-top box according to the upgrade package, and modifies the value of the upgrade flag according to the upgrade result. If the upgrade fails due to power failure during the upgrade process, the value of the upgrade flag is kept as the first value. a value, and then restart the set-top box; after the set-top box is powered on and restarted, the third controller is used to read the value of the upgrade flag bit. When the value of the upgrade flag bit is the first value, it means that after the set-top box receives the upgrade request sent by the upgrade server, when the set-top box is upgraded according to the upgrade request, the set-top box may be interrupted due to abnormal power failure. After the set-top box is restarted, the set-top box does not need to receive the upgrade request again. The third controller reads the upgrade package download address and the verification value stored in the memory. The third controller constructs an upgrade object according to the upgrade package download address and the verification value, and sends the upgrade object to the second controller, so that the second controller upgrades the set-top box again according to the upgrade object. If the second controller receives the upgrade object from the third controller, the value of the upgrade flag bit is modified to the first value, the upgrade object is parsed to obtain the upgrade configuration parameters, the second controller downloads the upgrade package according to the upgrade package download address, and verifies the upgrade package according to the verification value. After the upgrade package verification is successful, the set-top box is upgraded according to the upgrade package, and this cycle is repeated until the set-top box is successfully upgraded.

[0021] In the present disclosure, after the upgrade server sends an upgrade request to the set-top box, the set-top box constructs the upgrade request into an upgrade object that is easy to identify. The set-top box stores the upgrade configuration parameters obtained by parsing the upgrade object in a memory, and downloads an upgrade package according to the upgrade configuration parameters. The set-top box is upgraded through the upgrade package. When the upgrade fails due to abnormal power failure of the set-top box, there is no need for the upgrade server to send the upgrade request again. The set-top box can construct an upgrade object according to the stored upgrade configuration parameters and upgrade again according to the upgrade object, so that the upgrade server does not need to detect whether the set-top box is successfully upgraded. The work originally performed by the upgrade server is performed by the set-top box, which can reduce the overhead of the upgrade server. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required to be used in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams, and are not intended to limit the actual size of the product involved in the embodiments of the present disclosure, the actual process of the method, the actual timing of the signal, etc.

[0023] Figure 1 A diagram of a usage scenario of a smart set-top box provided according to some embodiments of the present disclosure;

[0024] Figure 2 A connection block diagram of a smart set-top box provided according to some embodiments of the present disclosure;

[0025] Figure 3 A timing diagram of a remote upgrade method of a smart set-top box provided according to some embodiments of the present disclosure;

[0026] Figure 4 A schematic diagram of upgrading configuration parameters in a smart set-top box according to some embodiments of the present disclosure;

[0027] Figure 5 A timing diagram of a method for resuming upgrade breakpoints of a smart set-top box provided according to some embodiments of the present disclosure;

[0028] Figure 6 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 1 ;

[0029] Figure 7 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 2 ;

[0030] Figure 8 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 3 ;

[0031] Fig. 9 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 4 ;

[0032] Fig.10 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 5 . DETAILED DESCRIPTION

[0033] The following will be combined with the accompanying drawings to clearly and in detail describe the technical solutions in some embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present disclosure.

[0034] The terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. The singular forms of "a", "an" and "the" used in this disclosure and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0035] Figure 1 FIG. 1 is a diagram of a usage scenario of a smart set-top box provided according to some embodiments of the present disclosure. Figure 1 As shown, the user can operate the set-top box 100 through the set-top box control device 101, and operate the display device 200 through the display device control device 201. The set-top box control device 101 and the display device control device 201 can be remote controllers, and the communication between the remote controller and the set-top box 100 includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the control is performed wirelessly or wired. The communication between the remote controller and the display device 200 includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired.

[0036] The set-top box 100 and the display device 200 respectively communicate data with the upgrade server 300, which allows the set-top box 100 and the display device 200 to communicate with the upgrade server 300 through a local area network (LAN), a wireless local area network (WLAN) or other networks, so that the upgrade server 300 provides various contents and interactions to the display device 200. In some embodiments, the upgrade server 300 can be one cluster or multiple clusters, and can include one or more types of upgrade servers.

[0037] The set-top box 100 can access the network and perform interactive functions such as web page information browsing, audio and video playback, and can provide users with live broadcast, on-demand, and conference viewing services, as well as time-shift functions such as pause, fast forward, and fast rewind.

[0038] With the development of set-top boxes, the software functions of set-top boxes are increasingly enhanced, and software upgrades have become inevitable. Currently, there are two main ways to upgrade the software of set-top boxes. One upgrade method is that the set-top box sends an upgrade request to an upgrade server, and the upgrade server sends an upgrade package to the set-top box according to the upgrade request, and the set-top box performs software upgrades through the upgrade package; the other upgrade method is that the remote upgrade server sends upgrade configuration parameters to the set-top box, and the set-top box downloads the upgrade package from the upgrade server through the network according to the upgrade configuration parameters, and performs software upgrades on the set-top box through the upgrade package.

[0039] However, when sending an upgrade request to the set-top box through a remote upgrade server, the upgrade server needs to add set-top box upgrade success judgment logic, and detect whether the set-top box is successfully upgraded based on the judgment logic. If the set-top box upgrade fails, the upgrade server needs to re-send the upgrade request to the set-top box, and there is a lack of completely reliable inspection methods to confirm the reason for the set-top box upgrade failure, which increases the overhead of the upgrade server and causes a heavy workload for the upgrade server.

[0040] In order to solve the above problems, the present invention provides a smart set-top box, which receives an upgrade request sent by an upgrade server, constructs an upgrade object according to the upgrade request, parses the upgrade object to obtain upgrade configuration parameters, saves the upgrade configuration parameters in a memory in the set-top box, and downloads an upgrade package from the upgrade server according to the upgrade configuration parameters, and upgrades the set-top box through the upgrade package. If power is cut off during the upgrade process, after the next power-on startup, the upgrade configuration parameters stored in the memory are read, an upgrade object is constructed according to the upgrade configuration parameters, the upgrade object is parsed to obtain the upgrade configuration parameters, the upgrade package is downloaded from the upgrade server according to the upgrade configuration parameters, the set-top box continues to be upgraded, and the upgrade result is reported to the upgrade server after the upgrade is successful. In this way, the set-top box can be upgraded again by itself after the upgrade fails, and the upgrade server does not need to send the upgrade message again, thereby reducing the work of the upgrade server.

[0041] Figure 2 FIG. 1 is a connection block diagram of a smart set-top box provided according to some embodiments of the present disclosure. Figure 2 As shown, the smart set-top box provided by the present invention includes an interface, a first controller, a second controller and a third controller. The interface is communicatively connected to the upgrade server to receive an upgrade request issued by the upgrade server; the first controller is connected to the interface to receive the upgrade request transmitted by the interface, and constructs an upgrade object according to the upgrade request to upgrade the set-top box through the upgrade object.

[0042] The second controller receives the upgrade object, and upon receiving the upgrade object, modifies the value of the upgrade flag to the first value to indicate that the set-top box has not been upgraded; the second controller parses the upgrade object to obtain upgrade configuration parameters, and stores the upgrade configuration parameters to a memory to facilitate acquisition of the upgrade configuration parameters when the set-top box upgrade fails; at the same time, the second controller downloads the upgrade package according to the upgrade package download address in the upgrade configuration parameters, and after the upgrade package is successfully verified, upgrades the set-top box according to the upgrade package, modifies the upgrade flag according to the upgrade result, and restarts the set-top box.

[0043] In some embodiments, after the second controller saves the parsed upgrade configuration parameters to the memory, it can feedback a message that the upgrade request was successfully saved to the upgrade server, so that the upgrade server no longer needs to send an upgrade request to the set-top box, and the upgrade server does not need to detect whether the set-top box has been successfully upgraded. The set-top box can upgrade itself and only needs to send an upgrade success message to the upgrade server after the set-top box is successfully upgraded.

[0044] After restarting the set-top box, the third controller reads the value of the upgrade flag. When the value of the upgrade flag is the first value, when the set-top box is upgraded according to the upgrade object, the set-top box may fail to upgrade due to abnormal power failure. The third controller reads the upgrade configuration parameters stored in the memory, constructs an upgrade object according to the upgrade configuration parameters, and sends the upgrade object to the second controller, so that the second controller upgrades the set-top box again according to the upgrade object until the set-top box is successfully upgraded.

[0045] In some embodiments, the first controller, the second controller and the third controller are located in the same processor of the set-top box, so that different operations are performed by different controllers in the processor, thereby achieving breakpoint resume upgrade of the set-top box.

[0046] Figure 3 is a timing diagram of a remote upgrade method of a smart set-top box provided according to some embodiments of the present disclosure, Figure 4 FIG. 1 is a schematic diagram of upgrading configuration parameters in a smart set-top box according to some embodiments of the present disclosure. Figure 3 and Figure 4 As shown, after the set-top box receives the upgrade request sent by the upgrade server, the normal upgrade process of the set-top box is as follows: after receiving the upgrade request transmitted by the interface, the first controller constructs the upgrade request into an upgrade object, and then the first controller transmits the upgrade object to the second controller.

[0047] In some embodiments, the upgrade object may be a JSON object to facilitate the set-top box to upgrade according to the JSON object. After receiving the upgrade object, the second controller detects whether the upgrade object is a JSON object. When the upgrade object is a JSON object, the second controller parses the JSON object to obtain the upgrade configuration parameters.

[0048] In some embodiments, the upgrade object may also be an upgrade object in other formats. As long as the set-top box is upgraded according to the upgrade object in the same format, it is not necessary to set multiple codes to identify the upgrade object for upgrading.

[0049] The second controller parses the upgrade object to obtain upgrade configuration parameters, which include upgrade package download address, upgrade package length, upgrade version, MD5 checksum and other parameters. After parsing and obtaining the upgrade configuration parameters, the second controller determines whether the upgrade object is qualified according to the upgrade configuration parameters. In some embodiments, the upgrade package download address can be a URL address.

[0050] When judging whether the upgrade object is qualified, it can first be checked whether the upgrade package can be downloaded from the upgrade server according to the upgrade package download address. If the upgrade package cannot be downloaded from the upgrade server according to the download address, the second controller determines that the upgrade object is unqualified, and can send a feedback message indicating that the upgrade request is unqualified to the upgrade server, waiting for the upgrade server to issue the upgrade request again.

[0051] If the upgrade package can be downloaded from the upgrade server according to the download address, then determine whether the MD5 checksum of the downloaded upgrade package is consistent with the MD5 checksum in the upgrade configuration parameters; if the MD5 checksum of the downloaded upgrade package is inconsistent with the MD5 checksum in the upgrade configuration parameters, the second controller determines that the upgrade object is unqualified, and can send a feedback message indicating that the upgrade request is unqualified to the upgrade server, waiting for the upgrade server to issue the upgrade request again.

[0052] If the MD5 checksum of the downloaded upgrade package is consistent with the MD5 checksum in the upgrade configuration parameters, then determine whether the length of the downloaded upgrade package is consistent with the length of the upgrade package in the upgrade configuration parameters. For example, if the length of the upgrade package in the upgrade configuration parameters is 200 bits, check whether the length of the downloaded upgrade package is 200 bits; if the length of the downloaded upgrade package is inconsistent with the length of the upgrade package in the upgrade configuration parameters, the second controller determines that the upgrade object is unqualified, and can send a feedback message indicating that the upgrade request is unqualified to the upgrade server, and wait for the upgrade server to send the upgrade request again.

[0053] If the length of the downloaded upgrade package is consistent with the upgrade package length in the upgrade configuration parameters, the second controller determines that the upgrade request sent by the upgrade server is qualified, and the set-top box performs subsequent upgrade operations according to the constructed upgrade object.

[0054] After the second controller determines that the upgrade object is qualified, the second controller downloads the upgrade package from the upgrade server according to the upgrade package download address, transmits the upgrade package to the upgrade module in the set-top box, upgrades the set-top box according to the upgrade package, and modifies the value of the upgrade flag in the controller according to the upgrade result.

[0055] The second controller is upgraded according to the downloaded upgrade package. When the set-top box is upgraded successfully, the second controller modifies the value of the upgrade flag to the second value. If the upgrade server sends an upgrade request of the same version to the set-top box again, the second controller of the set-top box reads that the value of the upgrade flag is the second value, indicating that the set-top box has been upgraded to this version and will not be upgraded again.

[0056] When the set-top boxes are successfully upgraded, the second controller may feed back a message of successful upgrade to the upgrade server, so as to inform the upgrade server of the message of successful upgrade, so that the upgrade server can clearly know which set-top boxes are successfully upgraded.

[0057] When the set-top box upgrade fails, the second controller controls the set-top box to restart and keeps the value of the upgrade flag as the first value. After the set-top box is powered on and restarted, the set-top box is upgraded again using the breakpoint resume method until the set-top box upgrade is successful.

[0058] Figure 5 The following is a timing diagram of a method for resuming upgrade breakpoints of a smart set-top box according to some embodiments of the present disclosure. Figure 5 As shown, when the set-top box upgrade fails, the controller controls the set-top box to power on and restart. After the set-top box is powered on and restarted, the controller reads the value of the upgrade flag. When the value of the upgrade flag is the first value, it indicates that the previous set-top box upgrade failed, and the breakpoint resume method is used to upgrade the set-top box again.

[0059] After the set-top box receives the upgrade request sent by the upgrade server, the process of the set-top box performing breakpoint resumption is as follows: after receiving the upgrade request transmitted by the interface, the first controller constructs the upgrade request into an upgrade object, and then the first controller transmits the upgrade object to the second controller.

[0060] The second controller receives the upgrade object sent by the first controller, and when receiving the upgrade object, modifies the value of the upgrade flag to the first value, and then the second controller parses the upgrade object to obtain upgrade configuration parameters, which include upgrade package download address, upgrade package length, upgrade version, MD5 checksum value and other parameters. The second controller determines whether the upgrade object is qualified based on the upgrade configuration parameters.

[0061] After the second controller determines that the upgrade object is qualified, the upgrade package download address and verification value obtained by parsing can be stored in the memory of the set-top box. When the set-top box is powered on and restarted, the upgrade package download address and verification value stored in the memory will not be lost. When the set-top box upgrade fails, the memory can be read to obtain the upgrade package download address and verification value, and there is no need for the upgrade server to send an upgrade request again.

[0062] In some embodiments, the first controller may also store all the upgraded configuration parameters obtained through parsing in the memory of the set-top box, and after the set-top box fails to upgrade and restarts, the memory may be read to obtain the upgraded configuration parameters without the upgrade server sending an upgrade request again.

[0063] After the second controller stores the upgrade configuration parameters in the memory, the second controller downloads the upgrade package from the upgrade server according to the upgrade package download address, transmits the upgrade package to the upgrade module in the set-top box, upgrades the set-top box according to the upgrade package, and modifies the value of the upgrade flag in the controller according to the upgrade result.

[0064] After the set-top box is upgraded successfully or failed, the second controller controls the set-top box to power on and restart. Then, after the set-top box restarts, the third controller reads the value of the upgrade flag. If the value of the upgrade flag is the first value, it means that the set-top box upgrade has failed. The third controller reads the upgrade package download address and verification value stored in the memory, constructs an upgrade object according to the upgrade package download address and the verification value, and sends the upgrade object to the second controller, so that the second controller upgrades the set-top box again according to the upgrade object.

[0065] In some embodiments, when the second controller stores the upgrade package download address and verification value obtained by parsing the upgrade object into the memory, the third controller only reads the stored upgrade package download address and verification value, and constructs the upgrade object according to the upgrade package download address and the verification value; when the second controller stores the upgrade configuration parameters obtained by parsing the upgrade object into the memory, the third controller reads all stored upgrade configuration parameters, and constructs the upgrade object according to the upgrade configuration parameters.

[0066] In some embodiments, the upgrade object constructed by the first controller according to the upgrade request and the upgrade object constructed by the third controller according to the upgrade configuration parameters stored in the memory are the same JSON object, so that the second controller can upgrade the set-top box according to the JSON object.

[0067] After receiving the upgrade object sent by the third controller, the second controller modifies the value of the upgrade flag to the first value, that is, keeps the value of the upgrade flag as the first value, and then parses the upgrade object to obtain upgrade configuration parameters, and the second controller determines whether the upgrade object is qualified based on the upgrade configuration parameters.

[0068] When the second controller determines that the upgrade object is qualified, the second controller can store the upgrade configuration parameters in the memory to update the upgrade configuration parameters stored in the memory. Then the second controller downloads the upgrade package from the upgrade server according to the upgrade package download address, transmits the upgrade package to the upgrade module in the set-top box, upgrades the set-top box according to the upgrade package, and modifies the value of the upgrade flag in the controller according to the upgrade result.

[0069] The second controller is upgraded according to the downloaded upgrade package. When the set-top box is upgraded successfully, the second controller modifies the value of the upgrade flag to the second value. When the set-top box upgrade fails, the second controller controls the set-top box to restart and keeps the value of the upgrade flag as the first value, so as to continue to use the breakpoint resume method to upgrade the set-top box again.

[0070] In some embodiments, the set-top box is upgraded according to the upgrade package. When the set-top box upgrade fails, the number of upgrade failures is recorded, for example, the number of upgrade failures + 1. The second controller detects the recorded number of upgrade failures to detect whether the number of upgrade failures exceeds a preset threshold, for example, whether the number of upgrade failures exceeds 3 times.

[0071] When the second controller detects that the number of upgrade failures exceeds a preset threshold, the second controller may delete the upgrade configuration parameters stored in the memory, and feedback a message of upgrade failure to the upgrade server. The second controller controls the restart of the set-top box. After the set-top box is powered on and restarted, the third controller reads that the value of the upgrade flag is the first value. The third controller reads the contents in the memory. Since the upgrade configuration parameters in the memory have been deleted, there is no need to upgrade the smart set-top box.

[0072] In some embodiments, when the second controller detects that the number of upgrade failures exceeds a preset threshold, the second controller may feedback a message of upgrade failure to the upgrade server, the second controller modifies the value of the upgrade flag to a third value, and then the second controller controls the restart of the set-top box. After the set-top box is powered on and restarted, the third controller detects that the value of the upgrade flag is the third value, and the set-top box does not need to read the upgrade configuration parameters stored in the memory for upgrading.

[0073] In the present disclosure, after the upgrade server sends an upgrade request to the set-top box, the set-top box constructs the upgrade request into a JSON object, and the set-top box stores the upgrade configuration parameters obtained by parsing the JSON object into a memory, and downloads an upgrade package according to the upgrade configuration parameters. After the upgrade package is verified to be qualified, the set-top box is upgraded through the upgrade package. When the upgrade fails due to abnormal power failure of the set-top box, there is no need for the upgrade server to send the upgrade request again. The set-top box can construct a JSON object according to the stored upgrade configuration parameters, and the set-top box downloads the upgrade package again according to the JSON object, and upgrades the set-top box again according to the upgrade package, so that the upgrade server does not need to detect whether the set-top box is successfully upgraded, and the work originally performed by the upgrade server is performed by the set-top box, thereby reducing the overhead of the upgrade server.

[0074] Based on the smart set-top box described in the above embodiments, the embodiments of the present disclosure also provide a method for resuming upgrades of the smart set-top box. According to this method, the set-top box is upgraded, and the upgrade server does not need to detect whether the set-top box is upgraded successfully. The upgrade server does not need to repeatedly send upgrade requests of the same version to the set-top box, thereby reducing the work of the upgrade server.

[0075] Figure 6 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 1 .

[0076] like Figure 6 As shown, the upgrade breakpoint resume method of the smart set-top box provided by the embodiment of the present disclosure includes:

[0077] S101: receiving an upgrade request, and constructing an upgrade object according to the upgrade request.

[0078] The upgrade server sends an upgrade request to the set-top box, and the interface of the set-top box receives the upgrade request. After receiving the upgrade request transmitted by the interface, the first controller of the set-top box constructs an upgrade object, such as a JSON object, according to the upgrade request to upgrade the set-top box through the upgrade object.

[0079] S102: When receiving the upgrade object, modify the value of the upgrade flag bit to a first value.

[0080] The second controller receives the upgrade object and modifies the value of the upgrade flag to the first value when receiving the upgrade object to indicate that the set-top box is not upgraded, thereby distinguishing the first upgrade of the set-top box according to the upgrade request message and the upgrade after the set-top box is restarted according to the value of the upgrade flag.

[0081] S103: Parse the upgrade object to obtain upgrade configuration parameters, and store the upgrade package download address and the check value in the upgrade configuration parameters into a memory.

[0082] After receiving the JSON object, the second controller parses the upgrade object to obtain upgrade configuration parameters, which include upgrade package download address, upgrade package length, upgrade version, MD5 checksum value and other parameters. Before upgrading according to the upgrade configuration parameters, the second controller needs to determine whether the upgrade object is qualified based on the upgrade configuration parameters.

[0083] Figure 7 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 2 .

[0084] like Figure 7 As shown, the specific method for the controller of the set-top box to determine whether the upgrade object is qualified is:

[0085] S301: Detect whether the upgrade package can be downloaded according to the upgrade package download address.

[0086] The second controller determines whether the upgrade object is qualified based on the upgrade configuration parameters. First, it checks whether the upgrade package can be downloaded from the upgrade server according to the upgrade package download address. If the upgrade package cannot be downloaded from the upgrade server according to the URL address, the second controller determines that the upgrade object is unqualified and can send a feedback message indicating that the upgrade request is unqualified to the upgrade server, waiting for the upgrade server to issue the upgrade request again; if the upgrade package can be downloaded from the upgrade server according to the URL address, execute S302.

[0087] S302: After the upgrade package is downloaded according to the upgrade package download address, it is detected whether the verification value of the downloaded upgrade package is consistent with the verification value.

[0088] After downloading the upgrade package according to the upgrade package download address, determine whether the MD5 check value of the downloaded upgrade package is consistent with the MD5 check value in the upgrade configuration parameters. If the MD5 check value of the downloaded upgrade package is inconsistent with the MD5 check value in the upgrade configuration parameters, the second controller determines that the upgrade object is unqualified; if the MD5 check value of the downloaded upgrade package is consistent with the MD5 check value in the upgrade configuration parameters, execute S303.

[0089] S303: When the check value of the downloaded upgrade package is consistent with the check value, detecting whether the length of the downloaded upgrade package is consistent with the upgrade package length.

[0090] After the second controller determines that the MD5 checksum value of the downloaded upgrade package is consistent with the MD5 checksum value, it determines whether the length of the downloaded upgrade package is consistent with the upgrade package length in the upgrade configuration parameters. If the length of the downloaded upgrade package is inconsistent with the upgrade package length in the upgrade configuration parameters, the second controller determines that the upgrade object is unqualified; if the length of the downloaded upgrade package is consistent with the upgrade package length in the upgrade configuration parameters, execute S304.

[0091] S304: When the length of the downloaded upgrade package is consistent with the upgrade package length, it is determined that the upgrade object is qualified.

[0092] When the length of the downloaded upgrade package is consistent with the upgrade package length, the upgrade object is determined to be qualified, and the second controller performs subsequent operations according to the upgrade object.

[0093] S104: Download the upgrade package according to the upgrade package download address, and verify the upgrade package according to the verification value.

[0094] S105: After the upgrade package is successfully verified, the set-top box is upgraded according to the upgrade package, and the value of the upgrade flag is modified according to the upgrade result.

[0095] After the second controller determines that the upgrade object is qualified, the upgrade package is downloaded from the upgrade server according to the upgrade package download address. After the upgrade package is successfully verified according to the verification value, the upgrade package is transmitted to the upgrader in the set-top box, the set-top box is upgraded according to the upgrade package, and the value of the upgrade flag is modified according to the upgrade result.

[0096] Figure 8 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 3 .

[0097] like Figure 8 As shown, when the set-top box modifies the value of the upgrade flag bit according to the upgrade result, it specifically includes:

[0098] S401: When the set-top box is upgraded successfully, an upgrade success message is fed back to the server, and the value of the upgrade flag is modified to a second value.

[0099] When the set-top box is upgraded successfully, the second controller modifies the value of the upgrade flag to a second value to indicate that the set-top box has been upgraded successfully; at the same time, the second controller can feedback a message of successful upgrade to the upgrade server to inform the upgrade server of the message of successful upgrade, so that the upgrade server can clearly know which set-top boxes have been upgraded successfully.

[0100] S402: When the set-top box upgrade fails, the set-top box is controlled to restart, and the value of the upgrade flag is kept at the first value.

[0101] When the set-top box upgrade fails, the second controller controls the set-top box to restart and keeps the value of the upgrade flag as the first value. After the set-top box is powered on and restarted, the set-top box is upgraded again using the breakpoint resume method until the set-top box upgrade is successful.

[0102] Fig. 9 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 4 .like Fig. 9 As shown, when the set-top box upgrade fails, the second controller controls the set-top box to power on and restart, and the specific method for performing breakpoint-resume upgrade on the set-top box is:

[0103] S201: receiving an upgrade request, and constructing an upgrade object according to the upgrade request.

[0104] The upgrade server sends an upgrade request to the set-top box, and the interface of the set-top box receives the upgrade request. After receiving the upgrade request transmitted by the interface, the first controller of the set-top box constructs an upgrade object, such as a JSON object, according to the upgrade request to upgrade the set-top box through the upgrade object.

[0105] S202: When receiving the upgrade object, modify the value of the upgrade flag bit to a first value.

[0106] The second controller receives the upgrade object and modifies the value of the upgrade flag to the first value when receiving the upgrade object to indicate that the set-top box is not upgraded, thereby distinguishing the first upgrade of the set-top box according to the upgrade request message and the upgrade after the set-top box is restarted according to the value of the upgrade flag.

[0107] S203: Parse the upgrade object to obtain upgrade configuration parameters, and store the upgrade package download address and the check value in the upgrade configuration parameters into a memory.

[0108] After receiving the JSON object, the second controller parses the upgrade object to obtain upgrade configuration parameters, which include upgrade package download address, upgrade package length, upgrade version, MD5 checksum value and other parameters. Before upgrading according to the upgrade configuration parameters, the second controller needs to determine whether the upgrade object is qualified based on the upgrade configuration parameters.

[0109] S204: Download the upgrade package according to the upgrade package download address, and verify the upgrade package according to the verification value.

[0110] S205: After the upgrade package is successfully verified, the set-top box is upgraded according to the upgrade package, and the value of the upgrade flag is modified according to the upgrade result.

[0111] After the second controller determines that the upgrade object is qualified, the upgrade package is downloaded from the upgrade server according to the upgrade package download address. After the upgrade package is successfully verified according to the verification value, the upgrade package is transmitted to the upgrader in the set-top box, the set-top box is upgraded according to the upgrade package, and the value of the upgrade flag is modified according to the upgrade result.

[0112] S206: Power on and restart the set-top box, and read the value of the upgrade flag.

[0113] When the set-top box is upgraded for the first time after receiving the upgrade request sent by the server, the set-top box will only modify the value of the upgrade flag to the first value, and will not read the value of the upgrade flag; when the set-top box is powered on and restarted, it will first read the value of the upgrade flag and determine whether the set-top box has been successfully upgraded based on the value of the upgrade flag.

[0114] When the set-top box is powered on and restarted, the second controller reads the value of the upgrade flag bit, and determines whether the set-top box is successfully upgraded according to the value of the upgrade flag bit. When the value of the upgrade flag bit is the first value, it means that the previous set-top box upgrade failed, and this restart is a restart after an abnormal power failure, and the set-top box needs to upgrade itself; when the value of the upgrade flag bit is the second value, it means that the previous set-top box upgrade was successful, and this restart is a restart after the upgrade is successful.

[0115] S207: When the value of the upgrade flag is the first value, read the upgrade package download address and the check value stored in the memory.

[0116] When the upgrade flag is the first value, indicating that the previous set-top box upgrade failed, the third controller reads the upgrade configuration parameters stored in the memory, such as the upgrade package download address and the check value, to upgrade the set-top box according to the upgrade configuration parameters stored in the memory.

[0117] S208: construct an upgrade object according to the upgrade package download address and the check value, and upgrade the set-top box again according to the upgrade object.

[0118] The third controller reads the upgrade package download address and the check value stored in the memory, constructs an upgrade object according to the upgrade package download address and the check value, and sends the upgrade object to the second controller, so that the second controller upgrades the set-top box again according to the upgrade object.

[0119] After receiving the upgrade object sent by the third controller, the second controller modifies the value of the upgrade flag to the first value, that is, keeps the value of the upgrade flag as the first value, and then parses the upgrade object to obtain upgrade configuration parameters, and the second controller determines whether the upgrade object is qualified based on the upgrade configuration parameters.

[0120] When the second controller determines that the upgrade object is qualified, the second controller can store the upgrade configuration parameters in the memory to update the upgrade configuration parameters stored in the memory. Then the second controller downloads the upgrade package from the upgrade server according to the upgrade package download address, transmits the upgrade package to the upgrade module in the set-top box, and upgrades the set-top box according to the upgrade package. When the set-top box is successfully upgraded, the second controller modifies the value of the upgrade flag to the second value; when the set-top box fails to upgrade, the second controller controls the set-top box to restart, and keeps the value of the upgrade flag as the first value, so as to continue to upgrade the set-top box again using the breakpoint resume method.

[0121] Fig.10 A process of a method for resuming upgrade of a smart set-top box according to some embodiments of the present disclosure Figure 5 .like Fig.10 As shown, the upgrade breakpoint resume method of the smart set-top box also includes:

[0122] S501: After the set-top box fails to be upgraded according to the upgrade package, control to restart the smart set-top box and record the number of upgrade failures.

[0123] S502: When the number of upgrade failures exceeds a preset threshold, the upgrade configuration parameters stored in the memory are deleted to stop the upgrade of the smart set-top box.

[0124] The set-top box is upgraded according to the upgrade package. When the set-top box upgrade fails, the number of upgrade failures is recorded. The second controller detects the recorded number of upgrade failures to determine whether the number of upgrade failures exceeds a preset threshold, for example, whether the number of upgrade failures exceeds 3 times.

[0125] When the second controller detects that the number of upgrade failures exceeds a preset threshold, the second controller may delete the upgrade configuration parameters stored in the memory, and feedback a message of upgrade failure to the upgrade server. The second controller controls the restart of the set-top box. After the set-top box is powered on and restarted, the second controller reads that the upgrade flag is the first value. The second controller reads the contents in the memory. Since the upgrade configuration parameters in the memory have been deleted, there is no need to upgrade the smart set-top box.

[0126] In some embodiments, when the second controller detects that the number of upgrade failures exceeds a preset threshold, the second controller may feedback a message of upgrade failure to the upgrade server, the second controller modifies the value of the upgrade flag to a third value, and then the second controller controls the restart of the set-top box. After the set-top box is powered on and restarted, the third controller detects that the value of the upgrade flag is the third value, and the set-top box does not need to read the upgrade configuration parameters stored in the memory for upgrading.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A smart set-top box, characterized in that: include: An interface configured to receive an upgrade request; A first controller connected to the interface, the first controller being configured to receive the upgrade request and construct an upgrade object according to the upgrade request; a second controller connected to the first controller, the second controller being configured to receive the upgrade object, and upon receiving the upgrade object, modify the value of the upgrade flag bit to a first value, parse the upgrade object to obtain upgrade configuration parameters, and store the upgrade package download address and the check value in the upgrade configuration parameters into a memory; Downloading the upgrade package according to the upgrade package download address, verifying the upgrade package according to the verification value, upgrading the set-top box according to the upgrade package after the upgrade package verification succeeds, modifying the value of the upgrade flag according to the upgrade result, and restarting the set-top box; A third controller is connected to the second controller, and the third controller is configured to, after power-on restart, read the value of the upgrade flag, and when the value of the upgrade flag is a first value, read the upgrade package download address and the verification value stored in the memory, construct an upgrade object according to the upgrade package download address and the verification value, and send the upgrade object to the second controller, so that the second controller upgrades the set-top box again according to the upgrade object.

2. The smart set-top box according to claim 1, characterized in that: The second controller is further configured to store the upgraded configuration parameters obtained through analysis into the memory, wherein the upgraded configuration parameters include an upgraded package download address and a check value; The third controller is further configured to, when the value of the upgrade flag is a first value, read the upgrade configuration parameters stored in the memory, and construct an upgrade object according to the upgrade configuration parameters.

3. The smart set-top box according to claim 1, characterized in that: In the step of modifying the value of the upgrade flag bit according to the upgrade result, the second controller is also configured to, when the set-top box is upgraded successfully, feedback an upgrade success message to the upgrade server, modify the value of the upgrade flag bit to the second value, and control the restart of the set-top box; when the set-top box fails to upgrade, modify the value of the upgrade flag bit to the first value, and control the restart of the set-top box.

4. The smart set-top box according to claim 1, characterized in that: The second controller is further configured to: Detecting whether the upgrade package can be downloaded according to the upgrade package download address; After downloading the upgrade package according to the upgrade package download address, detecting whether the check value of the downloaded upgrade package is consistent with the check value; When the verification value of the downloaded upgrade package is consistent with the verification value, the upgrade package is determined to be qualified.

5. The smart set-top box according to claim 4, characterized in that: The upgrade configuration parameters also include the upgrade package length, and the second controller is further configured to: When the check value of the downloaded upgrade package is consistent with the check value, detecting whether the length of the downloaded upgrade package is consistent with the length of the upgrade package; When the length of the downloaded upgrade package is consistent with the length of the upgrade package, the upgrade package is determined to be qualified.

6. The smart set-top box according to claim 1, characterized in that: The second controller is further configured to, after storing the upgrade package download address and the check value in the upgrade configuration parameters in the memory, feed back a save success message of the upgrade request to the upgrade server.

7. The smart set-top box according to claim 1, characterized in that: In the step of receiving the upgrade object, the second controller is further configured to detect whether the upgrade object is a JSON object, and if the upgrade object is a JSON object, parse the JSON object to obtain the upgrade configuration parameters.

8. The smart set-top box according to claim 1, characterized in that: The first controller, the second controller and the third controller are located in a same processor of the set-top box.

9. A method for resuming upgrade of a smart set-top box, characterized in that: The method comprises: receiving an upgrade request, and constructing an upgrade object according to the upgrade request; When receiving the upgrade object, modifying the value of the upgrade flag bit to a first value; Parsing the upgrade object to obtain upgrade configuration parameters, and storing the upgrade package download address and the check value in the upgrade configuration parameters into a memory; Downloading the upgrade package according to the upgrade package download address, and verifying the upgrade package according to the verification value; After the upgrade package is successfully verified, the set-top box is upgraded according to the upgrade package, and the value of the upgrade flag is modified according to the upgrade result; Power on and restart the set-top box, and read the value of the upgrade flag; When the value of the upgrade flag is the first value, reading the upgrade package download address and the check value stored in the memory; An upgrade object is constructed according to the upgrade package download address and the verification value, and the set-top box is upgraded again according to the upgrade object.

10. The method for resuming upgrade of a smart set-top box according to claim 9, characterized in that: The method further comprises: After the set-top box fails to be upgraded according to the upgrade package, controlling to restart the set-top box and recording the number of upgrade failures; When the number of upgrade failures exceeds a preset threshold, the upgrade configuration parameters stored in the memory are deleted to stop the upgrade of the set-top box.