CN106303709A - A kind of Set Top Box and application program updating method, system - Google Patents
A kind of Set Top Box and application program updating method, system Download PDFInfo
- Publication number
- CN106303709A CN106303709A CN201610618057.7A CN201610618057A CN106303709A CN 106303709 A CN106303709 A CN 106303709A CN 201610618057 A CN201610618057 A CN 201610618057A CN 106303709 A CN106303709 A CN 106303709A
- Authority
- CN
- China
- Prior art keywords
- rompaq
- application program
- data
- upgrade
- top box
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4432—Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Computer Security & Cryptography (AREA)
Abstract
Description
技术领域technical field
本发明涉及应用程序升级领域,特别涉及一种机顶盒及其应用程序升级方法、系统。The invention relates to the field of application program upgrading, in particular to a set-top box and its application program upgrading method and system.
背景技术Background technique
机顶盒已经成为现代生活不可或缺的一个家电设备,弥补电视功能的不足。由于前端的系统功能或功能的添加,或者机顶盒厂商发现自身软件的一些Bug(漏洞),OTA(Over-the-Air Technology)升级已经成为机顶盒的一个基本功能。往往一个运行商会采购2到3家厂商的盒子。Set-top boxes have become an indispensable household appliance in modern life, making up for the lack of TV functions. OTA (Over-the-Air Technology) upgrades have become a basic function of set-top boxes due to the addition of front-end system functions or functions, or the discovery of some bugs (vulnerabilities) in their own software by set-top box manufacturers. Often an operator will purchase boxes from 2 to 3 manufacturers.
现在机顶盒的普遍架构是:BOOT + LOADER+ APP模式。盒子开机从BOOT启动,如果有升级标志,就进LOADER(给APP升级的升级程序)升级APP,升级成功后清除升级标志,升级失败下次会继续进LOADER升级APP,若升级失败则直接进入APP。Now the common architecture of set-top boxes is: BOOT + LOADER + APP mode. Start the box from BOOT. If there is an upgrade logo, enter LOADER (the upgrade program for APP upgrade) to upgrade the APP. After the upgrade is successful, clear the upgrade logo. If the upgrade fails, it will continue to enter LOADER to upgrade the APP next time. If the upgrade fails, it will directly enter the APP. .
这样的机顶盒或者这样的升级方式,只能升级APP,不能升级LOADER。升级方式在LOADER中。如果升级方式与触发方式被破解(被黑客攻击,公司核心人员的流动等),即LOADER被破解,机顶盒就可以被攻击从而不断重启,严重影响机顶盒的正常使用。Such a set-top box or such an upgrade method can only upgrade the APP, not the LOADER. The upgrade method is in LOADER. If the upgrade method and trigger method are cracked (by hackers, the flow of core personnel of the company, etc.), that is, the LOADER is cracked, the set-top box can be attacked and restarted continuously, seriously affecting the normal use of the set-top box.
因而现有技术还有待改进和提高。Thereby prior art still needs to improve and improve.
发明内容Contents of the invention
鉴于上述现有技术的不足之处,本发明的目的在于提供一种机顶盒及其应用程序升级方法、系统,以提高应用程序和升级程序升级的安全性。In view of the deficiencies of the above-mentioned prior art, the object of the present invention is to provide a set-top box and its application program upgrading method and system, so as to improve the security of application program and upgrade program upgrade.
为了达到上述目的,本发明采取了以下技术方案:In order to achieve the above object, the present invention has taken the following technical solutions:
一种机顶盒的应用程序升级方法,包括如下步骤:A method for upgrading an application program of a set-top box, comprising the steps of:
A、机顶盒开机后,检测应用程序是否有升级需求;A. After the set-top box is turned on, check whether the application program needs to be upgraded;
B、若应用程序有升级需求,则校验第一升级程序的数据的完整性;在第一升级程序的数据完整时,由第一升级程序对应用程序进行升级;在第一升级程序的数据不完整时,由第二升级程序对应用程序进行升级;B. If the application program has an upgrade requirement, then verify the integrity of the data of the first upgrade program; when the data of the first upgrade program is complete, the application program is upgraded by the first upgrade program; When incomplete, the application program is upgraded by the second upgrade program;
C、若应用程序没有升级需求,则检测第一升级程序是否有升级需求;C. If the application program does not have an upgrade requirement, it is detected whether the first upgrade program has an upgrade requirement;
D、若第一升级程序有升级需求,则由第二升级程序对第一升级程序进行升级;D. If the first upgrade program has an upgrade requirement, the second upgrade program upgrades the first upgrade program;
E、若第一升级程序没有升级需求,则校验应用程序的数据是否完整;E. If the first upgrade program does not have an upgrade requirement, then verify whether the data of the application program is complete;
F、若应用程序的数据完整,则跳转到应用程序;F. If the data of the application is complete, jump to the application;
G、若应用程序的数据不完整,则校验第一升级程序的数据是否完整;在第一升级程序的数据完整时,由第一升级程序对应用程序进行升级;在第一升级程序的数据不完整时,由第二升级程序对应用程序和第一升级程序进行升级。G. If the data of the application program is incomplete, check whether the data of the first upgrade program is complete; when the data of the first upgrade program is complete, the application program is upgraded by the first upgrade program; When incomplete, the application program and the first upgrading program are upgraded by the second upgrading program.
所述的机顶盒的应用程序升级方法中,所述第二升级程序不升级。In the application program upgrading method of the set-top box, the second upgrading program is not upgraded.
所述的机顶盒的应用程序升级方法中,所述步骤B中,由第一升级程序对应用程序进行升级的步骤具体包括:In the method for upgrading the application program of the set-top box, in the step B, the step of upgrading the application program by the first upgrade program specifically includes:
第一升级程序通过OTA下载应用程序的升级数据,检测应用程序的升级数据是否下载成功;The first upgrade program downloads the upgrade data of the application program through the OTA, and detects whether the upgrade data of the application program is downloaded successfully;
若应用程序的升级数据下载不成功,则提示升级失败,清除应用程序的升级需求并重启机顶盒;If the download of the upgrade data of the application program is unsuccessful, it will prompt that the upgrade fails, clear the upgrade requirements of the application program and restart the set-top box;
若应用程序的升级数据下载成功,则更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除应用程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。If the upgrade data of the application program is successfully downloaded, the data in the corresponding flash memory area is updated; when the data update in the corresponding flash memory area is successful, the upgrade requirement of the application program is cleared and the set-top box is restarted; when the data update in the corresponding flash memory area fails, the set-top box is restarted.
所述的机顶盒的应用程序升级方法中,所述步骤D中,由第二升级程序对第一升级程序进行升级的步骤具体包括:In the application program upgrading method of the set-top box, in the step D, the step of upgrading the first upgrading program by the second upgrading program specifically includes:
第二升级程序通过OTA下载第一升级程序的升级数据,检测第一升级程序的升级数据是否下载成功;The second upgrade program downloads the upgrade data of the first upgrade program through OTA, and detects whether the upgrade data of the first upgrade program is downloaded successfully;
若第一升级程序的升级数据下载不成功,则提示升级失败,清除第一升级程序的升级需求并重启机顶盒;If the upgrade data download of the first upgrade program is not successful, then the upgrade failure will be prompted, the upgrade requirement of the first upgrade program will be cleared and the set-top box will be restarted;
若第一升级程序的升级数据下载成功,则更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除第一升级程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。If the upgrade data of the first upgrade program is successfully downloaded, then update the data in the corresponding flash memory area; when the data update in the corresponding flash memory area is successful, clear the upgrade requirements of the first upgrade program and restart the set-top box; , restart the set-top box.
一种机顶盒的应用程序升级系统,包括:An application program upgrade system for a set-top box, comprising:
第一升级程序,用于对应用程序进行升级;The first upgrade program is used to upgrade the application program;
第二升级程序,用于对第一升级程序或应用程序进行升级;The second upgrade program is used to upgrade the first upgrade program or application program;
BOOT程序,用于在机顶盒开机后,检测应用程序是否有升级需求;The BOOT program is used to detect whether the application program needs to be upgraded after the set-top box is turned on;
在应用程序有升级需求时,校验第一升级程序的数据的完整性;在第一升级程序的数据完整时,启动第一升级程序对应用程序进行升级;在第一升级程序的数据不完整时,启动第二升级程序对应用程序进行升级;When the application program has an upgrade requirement, verify the integrity of the data of the first upgrade program; when the data of the first upgrade program is complete, start the first upgrade program to upgrade the application program; when the data of the first upgrade program is incomplete , start the second upgrade program to upgrade the application program;
在应用程序没有升级需求时,检测第一升级程序是否有升级需求;When the application program does not have an upgrade requirement, it is detected whether the first upgrade program has an upgrade requirement;
在第一升级程序有升级需求时,启动第二升级程序对第一升级程序进行升级;When the first upgrade program has an upgrade requirement, start the second upgrade program to upgrade the first upgrade program;
在第一升级程序没有升级需求时,校验应用程序的数据是否完整;When the first upgrade program has no upgrade requirement, verify whether the data of the application program is complete;
在应用程序的数据完整时,启动应用程序;在应用程序的数据不完整时,校验第一升级程序的数据是否完整;在第一升级程序的数据完整时,启动第一升级程序对应用程序进行升级,在第一升级程序的数据不完整时,启动第二升级程序对应用程序和第一升级程序进行升级。When the data of the application program is complete, start the application program; when the data of the application program is incomplete, check whether the data of the first upgrade program is complete; when the data of the first upgrade program is complete, start the first upgrade program to the application program To upgrade, when the data of the first upgrade program is incomplete, start the second upgrade program to upgrade the application program and the first upgrade program.
所述的机顶盒的应用程序升级系统中,所述第二升级程序不升级。In the application program upgrading system of the set-top box, the second upgrading program is not upgraded.
所述的机顶盒的应用程序升级系统中,所述第一升级程序具体用于:In the application upgrade system of the set-top box, the first upgrade program is specifically used for:
通过OTA下载应用程序的升级数据,检测应用程序的升级数据是否下载成功;Download the upgrade data of the application program through OTA, and check whether the upgrade data of the application program is downloaded successfully;
在应用程序的升级数据下载不成功时,提示升级失败,清除应用程序的升级需求并重启机顶盒;When the download of the upgrade data of the application program is unsuccessful, it will prompt that the upgrade fails, clear the upgrade requirements of the application program and restart the set-top box;
在应用程序的升级数据下载成功时,更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除应用程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。When the upgrade data of the application program is successfully downloaded, the data in the corresponding flash memory area is updated; when the data in the corresponding flash memory area is updated successfully, the upgrade requirement of the application program is cleared and the set-top box is restarted; when the data update in the corresponding flash memory area fails, the set-top box is restarted.
所述的机顶盒的应用程序升级系统中,所述第二升级程序对第一升级程序进行升级,具体包括:In the application upgrade system of the set-top box, the second upgrade program upgrades the first upgrade program, specifically including:
通过OTA下载第一升级程序的升级数据,检测第一升级程序的升级数据是否下载成功;Download the upgrade data of the first upgrade program through OTA, and detect whether the upgrade data of the first upgrade program is downloaded successfully;
在第一升级程序的升级数据下载不成功时,提示升级失败,清除第一升级程序的升级需求并重启机顶盒;When the upgrade data download of the first upgrade program is unsuccessful, the upgrade failure is prompted, the upgrade requirement of the first upgrade program is cleared and the set-top box is restarted;
在第一升级程序的升级数据下载成功时,更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除第一升级程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。When the upgrade data of the first upgrade program is successfully downloaded, update the data in the corresponding flash memory area; when the data in the corresponding flash memory area is updated successfully, clear the upgrade requirements of the first upgrade program and restart the set-top box; , restart the set-top box.
一种机顶盒,包括如上所述的机顶盒的应用程序升级系统。A set-top box includes the above-mentioned application program upgrading system of the set-top box.
相较于现有技术,本发明提供的机顶盒及其应用程序升级方法、系统中,所述应用程序升级方法通过设置两个升级程序来对应用程序进行升级;在第一升级程序的数据完整时由第一升级程序对应用程序进行升级,在第一升级程序的数据不完整时由第二升级程序对应用程序进行升级;即便第一升级程序被破解或者与其他厂商冲突,也能确保应用程序安全、及时的升级。而且,通过第二升级程序对第一升级程序进行升级,确保了第一升级程序的及时更新,提高了破解难度,保障了升级程序的安全。Compared with the prior art, in the set-top box and its application program upgrade method and system provided by the present invention, the application program upgrade method upgrades the application program by setting two upgrade programs; when the data of the first upgrade program is complete The application program is upgraded by the first upgrade program, and the application program is upgraded by the second upgrade program when the data of the first upgrade program is incomplete; even if the first upgrade program is cracked or conflicts with other manufacturers, the application program can be guaranteed Safe and timely upgrades. Moreover, the first upgrade program is upgraded through the second upgrade program, which ensures the timely update of the first upgrade program, increases the difficulty of cracking, and ensures the safety of the upgrade program.
附图说明Description of drawings
图1为本发明提供的机顶盒的应用程序升级方法的流程图;Fig. 1 is the flow chart of the application program upgrading method of the set-top box provided by the present invention;
图2为本发明提供的机顶盒的应用程序升级系统的结构框图。Fig. 2 is a structural block diagram of the application program upgrading system of the set-top box provided by the present invention.
具体实施方式detailed description
本发明提供一种机顶盒及其应用程序升级方法、系统。为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The invention provides a set-top box and its application program upgrading method and system. In order to make the object, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明提供一种机顶盒特别是采用OTA(Over-the-Air Technology)升级的机顶盒的升级方法,所述机顶盒中设置有两个用于给应用程序进行升级的升级程序,其中一个升级程序可以给另一个升级程序进行升级。请参阅图1,所述升级方法包括如下步骤:The present invention provides an upgrade method for a set-top box, especially a set-top box that adopts OTA (Over-the-Air Technology) upgrade. The set-top box is provided with two upgrade programs for upgrading application programs, one of which can be used for Another upgrade program performs the upgrade. Referring to Figure 1, the upgrade method includes the following steps:
S10、机顶盒开机后,检测应用程序(APP)是否有升级需求;具体的,机顶盒开机,由BOOT程序检测是否有APP升级标志位,有则说明APP有升级需求,无则说明APP无升级需求。S10. After the set-top box is turned on, check whether the application program (APP) needs to be upgraded; specifically, when the set-top box is turned on, the BOOT program detects whether there is an APP upgrade flag.
S20、若应用程序有升级需求,则校验第一升级程序(LOADER1)的数据的完整性;在第一升级程序的数据完整时,由第一升级程序对应用程序进行升级;在第一升级程序的数据不完整时,由第二升级程序(LOADER2)对应用程序进行升级。所述第一升级程序只有在数据完整时才对APP进行升级,提高了APP升级的安全性;在数据不完整时,由第二升级程序对APP进行升级,确保了APP的正常、及时的升级。S20. If the application program has an upgrade requirement, verify the integrity of the data of the first upgrade program (LOADER1); when the data of the first upgrade program is complete, the first upgrade program upgrades the application program; When the data of the program is incomplete, the application program is upgraded by the second upgrade program (LOADER2). The first upgrade program only upgrades the APP when the data is complete, which improves the security of the APP upgrade; when the data is incomplete, the second upgrade program upgrades the APP, ensuring the normal and timely upgrade of the APP .
S30、若应用程序没有升级需求,则检测第一升级程序是否有升级需求。S30. If the application program does not have an upgrade requirement, it is detected whether the first upgrade program has an upgrade requirement.
S40、若第一升级程序有升级需求,则由第二升级程序对第一升级程序进行升级。通过LOADER2对LOADER1进行升级,确保了LOADER1能经常更新,即便升级方法、触发升级模式被破解或者与其他厂商冲突,也能通过对LOADER1的升级来解决,提高了机顶盒APP升级的安全性。而且,本发明中,仅第一升级程序升级,而第二升级程序不升级,故不会出现两个LOADER都破坏的情况。这样,即便第一升级程序升级后出现故障无法升级APP,机顶盒也能通过第二升级程序对APP进行升级,确保了机顶盒的正常运行。S40. If the first upgrade program has an upgrade requirement, the second upgrade program upgrades the first upgrade program. LOADER1 is upgraded through LOADER2 to ensure that LOADER1 can be updated frequently. Even if the upgrade method, trigger upgrade mode is cracked or conflicts with other manufacturers, it can be resolved by upgrading LOADER1, which improves the security of the set-top box APP upgrade. Moreover, in the present invention, only the first upgrade program is upgraded, and the second upgrade program is not upgraded, so the situation that both loaders are damaged will not occur. In this way, even if a failure occurs after the first upgrade program is upgraded and the APP cannot be upgraded, the set-top box can also upgrade the APP through the second upgrade program, thereby ensuring the normal operation of the set-top box.
进一步的,所述BOOT程序和第二升级程序均存储的FLASH(闪存)的OTP(ONE TIMEPROGRAMMABLE)寄存器或OTP区域中,OTP寄存器或OTP区域的数据在一次写入后是不能更改的。这样机顶盒的BOOT程序和第二升级程序是不会被改变的,第二升级程序的数据始终是完整的,始终能正常工作。Further, in the OTP (ONE TIME PROGRAMMABLE) register or OTP area of the FLASH (flash memory) stored in both the BOOT program and the second upgrade program, the data in the OTP register or the OTP area cannot be changed after being written once. In this way, the BOOT program and the second upgrade program of the set-top box will not be changed, and the data of the second upgrade program is always complete and can always work normally.
S50、若第一升级程序没有升级需求,则校验应用程序的数据是否完整。S50. If the first upgrade program has no upgrade requirement, verify whether the data of the application program is complete.
S60、若应用程序的数据完整,则跳转到应用程序,用户能正常使用APP。本发明在APP启动过程中就可以获知是APP需升级还是LOADER1需升级,非常便捷。S60. If the data of the application program is complete, jump to the application program, and the user can use the APP normally. In the present invention, it is very convenient to know whether the APP needs to be upgraded or the LOADER1 needs to be upgraded during the startup process of the APP.
S70、若应用程序的数据不完整,则校验第一升级程序的数据是否完整;在第一升级程序的数据完整时,由第一升级程序对应用程序进行升级;在第一升级程序的数据不完整时,由第二升级程序对应用程序和第一升级程序进行升级。当APP或LOADER1数据不完整时,也会触发升级;不必APP获取升级信息才触发,确保APP和LOADER1一旦出现故障就能立即重新升级更新,降低了机顶盒软件的故障率。S70. If the data of the application program is incomplete, check whether the data of the first upgrade program is complete; when the data of the first upgrade program is complete, the application program is upgraded by the first upgrade program; When incomplete, the application program and the first upgrading program are upgraded by the second upgrading program. When the APP or LOADER1 data is incomplete, the upgrade will also be triggered; it is not necessary for the APP to obtain the upgrade information before triggering, ensuring that the APP and LOADER1 can be immediately re-updated and updated once they fail, reducing the failure rate of the set-top box software.
由此可知,本发明提供的应用程序升级方法,在使用两个LOADER确保能对APP进行正常升级的情况下,如果发现升级方法、触发升级模式被破解后,仍可以通过LOADER2安全的更新LOADER1,从而修改机顶盒的升级方式,极大的提高了LOADER和APP升级的安全性。It can be seen from this that the application program upgrade method provided by the present invention, in the case of using two LOADERs to ensure that the APP can be upgraded normally, if the upgrade method and trigger upgrade mode are found to be cracked, LOADER1 can still be safely updated through LOADER2, Therefore, the upgrade method of the set-top box is modified, which greatly improves the security of LOADER and APP upgrades.
进一步的,所述步骤S20和步骤S70中,由第一升级程序对应用程序进行升级的步骤具体包括:Further, in the step S20 and step S70, the step of upgrading the application program by the first upgrade program specifically includes:
第一升级程序通过OTA下载应用程序的升级数据,检测应用程序的升级数据是否下载成功;The first upgrade program downloads the upgrade data of the application program through the OTA, and detects whether the upgrade data of the application program is downloaded successfully;
若应用程序的升级数据下载不成功,则提示升级失败,清除应用程序的升级需求(即APP升级标志位)并重启机顶盒;If the download of the upgrade data of the application program is unsuccessful, it will prompt that the upgrade fails, clear the upgrade requirements of the application program (that is, the APP upgrade flag) and restart the set-top box;
若应用程序的升级数据下载成功,则更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除应用程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒,由步骤S70可知,在重启后由于数据不完整,LOADER1或2会对应用程序重新升级。If the upgrade data of the application program is successfully downloaded, then update the data in the corresponding flash memory area; when the data update in the corresponding flash memory area is successful, clear the upgrade requirements of the application program and restart the set-top box; when the data update in the corresponding flash memory area fails, restart the set-top box, It can be known from step S70 that after restarting, due to incomplete data, LOADER1 or 2 will re-upgrade the application program.
同样的,所述步骤S20和步骤S70中,由第二升级程序对应用程序进行升级的步骤具体包括:Similarly, in the steps S20 and S70, the step of upgrading the application program by the second upgrading program specifically includes:
第二升级程序通过OTA下载应用程序的升级数据,检测应用程序的升级数据是否下载成功;The second upgrade program downloads the upgrade data of the application program through OTA, and detects whether the upgrade data of the application program is downloaded successfully;
若应用程序的升级数据下载不成功,则提示升级失败,清除应用程序的升级需求(即APP升级标志位)并重启机顶盒;If the download of the upgrade data of the application program is unsuccessful, it will prompt that the upgrade fails, clear the upgrade requirements of the application program (that is, the APP upgrade flag) and restart the set-top box;
若应用程序的升级数据下载成功,则更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除应用程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。由步骤S70可知,在重启后由于数据不完整,LOADER1或2会对应用程序重新升级。If the upgrade data of the application program is successfully downloaded, the data in the corresponding flash memory area is updated; when the data update in the corresponding flash memory area is successful, the upgrade requirement of the application program is cleared and the set-top box is restarted; when the data update in the corresponding flash memory area fails, the set-top box is restarted. It can be known from step S70 that after restarting, due to incomplete data, LOADER1 or 2 will re-upgrade the application program.
进一步的,所述步骤S40和步骤S70中,由第二升级程序对第一升级程序进行升级的步骤具体包括:Further, in the steps S40 and S70, the step of upgrading the first upgrading program by the second upgrading program specifically includes:
第二升级程序通过OTA下载第一升级程序的升级数据,检测第一升级程序的升级数据是否下载成功;The second upgrade program downloads the upgrade data of the first upgrade program through OTA, and detects whether the upgrade data of the first upgrade program is downloaded successfully;
若第一升级程序的升级数据下载不成功,则提示升级失败,清除第一升级程序的升级需求(即LOADER1升级标志位)并重启机顶盒;If the upgrade data download of the first upgrade program is unsuccessful, it will prompt that the upgrade has failed, clear the upgrade requirement of the first upgrade program (that is, the LOADER1 upgrade flag) and restart the set-top box;
若第一升级程序的升级数据下载成功,则更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除第一升级程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。由步骤S70可知,在重启后由于数据不完整,LOADER2会对LOADER1重新升级。If the upgrade data of the first upgrade program is successfully downloaded, then update the data in the corresponding flash memory area; when the data update in the corresponding flash memory area is successful, clear the upgrade requirements of the first upgrade program and restart the set-top box; , restart the set-top box. It can be known from step S70 that LOADER2 re-upgrades LOADER1 after restarting due to incomplete data.
基于上述实施例提供的机顶盒的应用程序升级方法,本发明还提供一种机顶盒,所述机顶盒包括机顶盒的应用程序升级系统。请参阅图2,所述升级系统包括BOOT程序10、第一升级程序20、第二升级程序30和多个应用程序40。Based on the method for upgrading the application program of the set-top box provided in the above embodiments, the present invention further provides a set-top box, and the set-top box includes a system for upgrading the application program of the set-top box. Referring to FIG. 2 , the upgrade system includes a BOOT program 10 , a first upgrade program 20 , a second upgrade program 30 and multiple application programs 40 .
所述第一升级程序20,用于对应用程序进行升级。The first upgrade program 20 is used to upgrade the application program.
所述第二升级程序30,用于对第一升级程序或应用程序进行升级。The second upgrade program 30 is used to upgrade the first upgrade program or application program.
BOOT程序,用于在机顶盒开机后,检测应用程序是否有升级需求;The BOOT program is used to detect whether the application program needs to be upgraded after the set-top box is turned on;
在应用程序有升级需求时,校验第一升级程序的数据的完整性;在第一升级程序的数据完整时,启动第一升级程序对应用程序进行升级;在第一升级程序的数据不完整时,启动第二升级程序对应用程序进行升级;When the application program has an upgrade requirement, verify the integrity of the data of the first upgrade program; when the data of the first upgrade program is complete, start the first upgrade program to upgrade the application program; when the data of the first upgrade program is incomplete , start the second upgrade program to upgrade the application program;
在应用程序没有升级需求时,检测第一升级程序是否有升级需求;When the application program does not have an upgrade requirement, it is detected whether the first upgrade program has an upgrade requirement;
在第一升级程序有升级需求时,启动第二升级程序对第一升级程序进行升级;When the first upgrade program has an upgrade requirement, start the second upgrade program to upgrade the first upgrade program;
在第一升级程序没有升级需求时,校验应用程序的数据是否完整;When the first upgrade program has no upgrade requirement, verify whether the data of the application program is complete;
在应用程序的数据完整时,启动应用程序;在应用程序的数据不完整时,校验第一升级程序的数据是否完整;在第一升级程序的数据完整时,启动第一升级程序对应用程序进行升级,在第一升级程序的数据不完整时,启动第二升级程序对应用程序和第一升级程序进行升级。When the data of the application program is complete, start the application program; when the data of the application program is incomplete, check whether the data of the first upgrade program is complete; when the data of the first upgrade program is complete, start the first upgrade program to the application program To upgrade, when the data of the first upgrade program is incomplete, start the second upgrade program to upgrade the application program and the first upgrade program.
其中,所述第二升级程序不升级。Wherein, the second upgrade program is not upgraded.
进一步的,所述第一升级程序对应用程序进行升级,具体用于:Further, the first upgrade program upgrades the application program, specifically for:
通过OTA下载应用程序的升级数据,检测应用程序的升级数据是否下载成功;Download the upgrade data of the application program through OTA, and check whether the upgrade data of the application program is downloaded successfully;
在应用程序的升级数据下载不成功时,提示升级失败,清除应用程序的升级需求并重启机顶盒;When the download of the upgrade data of the application program is unsuccessful, it will prompt that the upgrade fails, clear the upgrade requirements of the application program and restart the set-top box;
在应用程序的升级数据下载成功时,更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除应用程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。When the upgrade data of the application program is successfully downloaded, the data in the corresponding flash memory area is updated; when the data in the corresponding flash memory area is updated successfully, the upgrade requirement of the application program is cleared and the set-top box is restarted; when the data update in the corresponding flash memory area fails, the set-top box is restarted.
同样的,所述第二升级程序对应用程序进行升级,其具体用于:Similarly, the second upgrade program upgrades the application program, which is specifically used for:
通过OTA下载应用程序的升级数据,检测应用程序的升级数据是否下载成功;Download the upgrade data of the application program through OTA, and check whether the upgrade data of the application program is downloaded successfully;
在应用程序的升级数据下载不成功时,提示升级失败,清除应用程序的升级需求并重启机顶盒;When the download of the upgrade data of the application program is unsuccessful, it will prompt that the upgrade fails, clear the upgrade requirements of the application program and restart the set-top box;
在应用程序的升级数据下载成功时,更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除应用程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。When the upgrade data of the application program is successfully downloaded, the data in the corresponding flash memory area is updated; when the data in the corresponding flash memory area is updated successfully, the upgrade requirement of the application program is cleared and the set-top box is restarted; when the data update in the corresponding flash memory area fails, the set-top box is restarted.
进一步的,所述第二升级程序对第一升级程序进行升级,具体包括:Further, the second upgrade program upgrades the first upgrade program, specifically including:
通过OTA下载第一升级程序的升级数据,检测第一升级程序的升级数据是否下载成功;Download the upgrade data of the first upgrade program through OTA, and detect whether the upgrade data of the first upgrade program is downloaded successfully;
在第一升级程序的升级数据下载不成功时,提示升级失败,清除第一升级程序的升级需求并重启机顶盒;When the upgrade data download of the first upgrade program is unsuccessful, the upgrade failure is prompted, the upgrade requirement of the first upgrade program is cleared and the set-top box is restarted;
在第一升级程序的升级数据下载成功时,更新对应闪存区域的数据;在对应闪存区域的数据更新成功时,清除第一升级程序的升级需求并重启机顶盒;在对应闪存区域的数据更新失败时,重启机顶盒。When the upgrade data of the first upgrade program is successfully downloaded, update the data in the corresponding flash memory area; when the data in the corresponding flash memory area is updated successfully, clear the upgrade requirements of the first upgrade program and restart the set-top box; , restart the set-top box.
由于所述机顶盒的应用程序升级系统的具体原理和详细技术特征在上述方法实施例中已详细阐述,在此不再赘述。Since the specific principles and detailed technical features of the application program upgrading system of the set-top box have been described in detail in the above method embodiments, they will not be repeated here.
可以理解的是,对本领域普通技术人员来说,可以根据本发明的技术方案及其发明构思加以等同替换或改变,而所有这些改变或替换都应属于本发明所附的权利要求的保护范围。It can be understood that those skilled in the art can make equivalent replacements or changes according to the technical solutions and inventive concepts of the present invention, and all these changes or replacements should belong to the protection scope of the appended claims of the present invention.
Claims (9)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610618057.7A CN106303709B (en) | 2016-08-01 | 2016-08-01 | A kind of set-top box and its application program updating method, system |
| PCT/CN2017/095444 WO2018024198A1 (en) | 2016-08-01 | 2017-08-01 | Application upgrade method and system for set-top box, and set-top box |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610618057.7A CN106303709B (en) | 2016-08-01 | 2016-08-01 | A kind of set-top box and its application program updating method, system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106303709A true CN106303709A (en) | 2017-01-04 |
| CN106303709B CN106303709B (en) | 2019-04-16 |
Family
ID=57663656
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610618057.7A Expired - Fee Related CN106303709B (en) | 2016-08-01 | 2016-08-01 | A kind of set-top box and its application program updating method, system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106303709B (en) |
| WO (1) | WO2018024198A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018024198A1 (en) * | 2016-08-01 | 2018-02-08 | 深圳市创维软件有限公司 | Application upgrade method and system for set-top box, and set-top box |
| WO2018176692A1 (en) * | 2017-03-28 | 2018-10-04 | 宁德时代新能源科技股份有限公司 | System firmware updating method, device and battery management system |
| CN109542480A (en) * | 2018-11-16 | 2019-03-29 | 深圳市邻友通科技发展有限公司 | The operating system update method, apparatus and medium of nail print apparatus |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111199039B (en) * | 2018-11-20 | 2023-02-28 | 成都鼎桥通信技术有限公司 | Application security verification method and device and terminal equipment |
| CN112667444A (en) * | 2020-12-31 | 2021-04-16 | 深圳康佳电子科技有限公司 | System upgrading method, storage medium and terminal equipment |
| CN115061713B (en) * | 2021-03-08 | 2025-08-22 | 深圳引望智能技术有限公司 | Method and device for upgrading electronic equipment |
| CN113031996B (en) * | 2021-03-17 | 2025-12-02 | 歌尔科技有限公司 | An OTA upgrade method, apparatus, control terminal, and medium for electronic devices. |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101714093A (en) * | 2009-12-01 | 2010-05-26 | 福建新大陆通信科技有限公司 | Three-section type double-backup Loader upgrading method of set-top box |
| CN101719072A (en) * | 2009-11-23 | 2010-06-02 | 青岛海信宽带多媒体技术有限公司 | Embedded type terminal equipment software upgrading method and upgrading device |
| CN102012831A (en) * | 2010-12-08 | 2011-04-13 | 四川金网通电子科技有限公司 | Over-the-air technology (OTA) upgrading method based on Linux platform |
| CN103186390A (en) * | 2011-12-29 | 2013-07-03 | 中国移动通信集团公司 | Home gateway and software upgrading method thereof |
| EP2763428A1 (en) * | 2013-02-04 | 2014-08-06 | Samsung Electronics Co., Ltd | Electronic device and firmware upgrading method thereof |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106303709B (en) * | 2016-08-01 | 2019-04-16 | 深圳市创维软件有限公司 | A kind of set-top box and its application program updating method, system |
-
2016
- 2016-08-01 CN CN201610618057.7A patent/CN106303709B/en not_active Expired - Fee Related
-
2017
- 2017-08-01 WO PCT/CN2017/095444 patent/WO2018024198A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101719072A (en) * | 2009-11-23 | 2010-06-02 | 青岛海信宽带多媒体技术有限公司 | Embedded type terminal equipment software upgrading method and upgrading device |
| CN101714093A (en) * | 2009-12-01 | 2010-05-26 | 福建新大陆通信科技有限公司 | Three-section type double-backup Loader upgrading method of set-top box |
| CN102012831A (en) * | 2010-12-08 | 2011-04-13 | 四川金网通电子科技有限公司 | Over-the-air technology (OTA) upgrading method based on Linux platform |
| CN103186390A (en) * | 2011-12-29 | 2013-07-03 | 中国移动通信集团公司 | Home gateway and software upgrading method thereof |
| EP2763428A1 (en) * | 2013-02-04 | 2014-08-06 | Samsung Electronics Co., Ltd | Electronic device and firmware upgrading method thereof |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018024198A1 (en) * | 2016-08-01 | 2018-02-08 | 深圳市创维软件有限公司 | Application upgrade method and system for set-top box, and set-top box |
| WO2018176692A1 (en) * | 2017-03-28 | 2018-10-04 | 宁德时代新能源科技股份有限公司 | System firmware updating method, device and battery management system |
| CN109542480A (en) * | 2018-11-16 | 2019-03-29 | 深圳市邻友通科技发展有限公司 | The operating system update method, apparatus and medium of nail print apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2018024198A1 (en) | 2018-02-08 |
| CN106303709B (en) | 2019-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106303709A (en) | A kind of Set Top Box and application program updating method, system | |
| CN102693139B (en) | A kind of method and system of radio upgrade cell phone software | |
| TWI533216B (en) | Operating system updating method | |
| CN109062598B (en) | Safe OTA (over the air) upgrading method and system | |
| WO2017067448A1 (en) | Firmware-over-the-air upgrade method, system and computer storage medium | |
| CN105573780B (en) | A kind of mobile terminal operating system upgrade method and device based on container | |
| CN107783776B (en) | Method and device for processing firmware upgrade package, and electronic device | |
| US9244758B2 (en) | Systems and methods for repairing system files with remotely determined repair strategy | |
| CN103729597A (en) | System starting verifying method and device and terminal | |
| CN101719072A (en) | Embedded type terminal equipment software upgrading method and upgrading device | |
| CN106775610B (en) | Electronic equipment starting method and electronic equipment | |
| US20080270782A1 (en) | Boot process | |
| CN103970564A (en) | Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions | |
| US20170242685A1 (en) | Updating of firmware | |
| WO2010105516A1 (en) | Method and device for patching of vulnerability | |
| CN106331862A (en) | Set-top box software upgrading method and set-top box | |
| CN102163167A (en) | Method and device for rescuing system | |
| CN105511920A (en) | Container based mobile terminal operating system upgrading method and device | |
| CN106775674B (en) | Equipment based on universal boot loader and starting method thereof | |
| WO2016078060A1 (en) | Multi-system terminal system updating method, updating device and terminal | |
| WO2016082450A1 (en) | Method for upgrading user terminal, and user terminal | |
| CN106897166A (en) | A kind of mobile terminal and its restorative procedure | |
| CN104536841A (en) | Self-repairing method and self-repairing system for Data subarea of Android system | |
| CN106156626B (en) | Method and device for safely upgrading system | |
| WO2021012170A1 (en) | Firmware booting method and device, and computer-readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190416 |