CN102243591B - Method for improving Loader-upgrading stability of set top box by adopting two zone bits - Google Patents
Method for improving Loader-upgrading stability of set top box by adopting two zone bits Download PDFInfo
- Publication number
- CN102243591B CN102243591B CN201110182607.2A CN201110182607A CN102243591B CN 102243591 B CN102243591 B CN 102243591B CN 201110182607 A CN201110182607 A CN 201110182607A CN 102243591 B CN102243591 B CN 102243591B
- Authority
- CN
- China
- Prior art keywords
- upgrading
- application program
- loader
- top box
- decompress
- 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.)
- Active
Links
Images
Abstract
The invention relates to a method for improving Loader-upgrading stability of a set top box by adopting two zone bits. The method is characterized by comprising the following steps of: firstly, determining, by a Boot, that a program runs after jumping to a Loader 1, a Loader 2 or an application program according to the zone bits by adopting the Boot and a double-Loader application program mode on a wired digital set top box system structure; secondly, when the application program receives information to be upgraded, judging whether the application program is needed to be upgraded, if so, performing the third step, and otherwise, keeping performing the application program; thirdly, modifying the zone bits, storing the two zone bits respectively by using two Blocks, restarting to enter the latest Loader and starting to upgrade; and fourthly, after acquiring upgraded data, storing an upgraded file into a corresponding storage medium, modifying the zone bits stored in the two Blocks respectively again into zone bits matched with the upgraded program, so that a Boot application program is started after restarting. By the method, the stability of Loader upgrading of the set top box is improved effectively and the reliability and the safety of upgrading can be guaranteed.
Description
Technical field
The present invention relates to a kind of Digital TV Receiving technology, relate in particular to the set-top box technique in a kind of Digital TV Receiving field, specifically a kind of method that adopts double-flag position to improve Set Top Box Loader upgrading stability.
Background technology
Along with the development of digital television techniques, the function of digital TV set-top box is also constantly being improved and development, and its inner software is also constantly upgrading.Set Top Box is as an embedded computer system, and software has played vital role therein.For protection operator and terminal user's investment interests, demand that can online upgrading to the set-top box application program order benefit that becomes is urgent.Along with the continuous increase of new business and the continuous renewal of technology, in order to allow user enjoy in time new service, to experience new technology, by cable TV network, complete set-top box software program upgrade, become the basic function that digital TV set-top box must have.
At present, due to the large batch of translation of Broadcast and TV system, the user that in a region, set top box upgrading relates to has several ten thousand to more than millions of, and upgrading involves network environment and practical service environment, in addition, different user is also different to the service time of Set Top Box and Set Top Box loss situation, causes upgrading very risky.Once upgrade unsuccessfully, normally TV reception ,Hui Gei radio and television departments and Set Top Box company bring havoc to cause user.
Set Top Box by inspection upgrade sign judge whether to need upgrading, if power-off when writing zone bit, or power supply is unstable, just likely making to write zone bit effective information makes mistakes or loses, when at this moment Set Top Box is restarted again, the program of guiding is made mistakes and certainly will be caused that upgrading flow process makes mistakes, and when serious, even causes Set Top Box to open.Therefore, raising Set Top Box Loader upgrading stability is very necessary.
Summary of the invention
The object of the invention is in set top box upgrading process, power-off or power in unstable situation, likely making to write zone bit effective information makes mistakes or loses, while causing Set Top Box again to restart, the program of guiding is made mistakes, the problem that even causes Set Top Box to open, invents a kind of method that adopts double-flag position to improve Set Top Box Loader upgrading stability.
Technical scheme of the present invention is:
Adopt double-flag position to improve a method for Set Top Box Loader upgrading stability, it is characterized in that it comprises the following steps:
First, adopt Boot, double-Loader application program mode in wired digital set-top box architecture, Boot comes determine procedures to jump to Loader1 according to zone bit, and loader2 or application program are moved;
Second step judges whether to need upgrading when application program is received the information that needs upgrading, if need upgrading, carries out the 3rd step, otherwise, continue executive utility;
The 3rd step, dirty bit, stores respectively two zone bits with two Block, restarts and enters up-to-date Loader, starts upgrading; Described zone bit divides again main mark position and counter mark position, when upgrading power-off, if wiping zone bit, can only can be wiped free of by one of them zone bit, another is still remained valid, and will guarantee like this validity of redirect, guarantees to restart rear upgrading and can also normally complete or restart upgrading;
The 4th step, has collected after upgrade data, and upgrade file is deposited in after respective storage medium, the zone bit of again revising in two Block storage respectively for upgrade after the zone bit that matches of program, to restart rear Boot guiding application program, start.
In escalation process, Boot need to determine redirect direction according to zone bit, and concrete jump procedure is:
Step 1: read all information in main mark position, verification its whether legal (or correct, lower same), if legal, jump to relevant position according to the indication of sign so and carry out.If illegal, carry out the 2nd step;
Step 2: read counter mark position information used, whether it legal in verification.If legal, according to the indication of sign, jump to relevant position so and carry out.If illegal, carry out the 3rd step;
Step 3:Boot decompress(ion) application program, if decompress(ion) is correct, uses application program.If decompress(ion) failure, the direct up-to-date Loader1 of decompress(ion), if decompress(ion) is correct, uses Loader1, and as decompress(ion) failure, direct decompress(ion) Loader2, if decompress(ion) is correct, uses Loader2.
Beneficial effect of the present invention:
The present invention upgrades double-flag method for position for Set Top Box Loader, after tested and practical application, can effectively improve the stability of Set Top Box Loader upgrading, guarantee reliability and the security of upgrading, alleviate the maintenance pressure bringing for set top box upgrading after sale.
Accompanying drawing explanation
Fig. 1 is set top box upgrading logic flow schematic diagram of the present invention.
Fig. 2 is judgement symbol of the present invention position schematic flow sheet.
specific embodiments:
Below in conjunction with drawings and Examples, the present invention is further illustrated.
As shown in Figure 1, 2.
Adopt double-flag position to improve a method for Set Top Box Loader upgrading stability, it comprises:
(a) by producer, provide upgrading descriptor and upgrading code stream;
(b) software that need to upgrade is packaged into the TS stream of data to be upgraded in Loader server;
(c) EPG generator generates the EPG information relevant to software upgrading;
(d) front end flows playout software and code flow broadcast card by TS, exports the specific upgrade TS stream of generation to multiplexer and other TS stream multiplexing, then and after QAM modulation enters cable TV network;
(e) terminal wired digital set-top box checks after powering on that upgrading sign judges whether to need upgrading, if need upgrading, directly enters Loader and upgrades, otherwise enter application program; Described wired digital set-top box should adopt Boot, double-Loader application program mode in architecture, and Boot should be able to come determine procedures to jump to Loader1 according to zone bit, and loader2 or application program are moved;
(f) in task of normal establishment in service, obtain upgrading description document and resolve, when resolving the result of upgrading description document while judging that current set-top box need to be upgraded, revising at once upgrading sign, so that Set Top Box is restarted, entering Loader upgrading.
(g), after having upgraded, dirty bit, starts to restart rear Boot guiding application program again.
Software upgrading of the present invention generates relevant EPG information to EPG generator.Link descriptor is inserted in EPG, and insertion position is the ground floor of NIT table or BAT table; Upgrading code stream is multiplexed in program stream by multiplexer, and data broadcast sign descriptor is inserted into upgrading stream pmt table automatically.
In wired digital set-top box architecture of the present invention, adopt Boot, double-Loader application program mode.Boot comes determine procedures to jump to Loader1 according to zone bit, and loader2 or application program are moved.Application program receives after the information that needs upgrading and restarts and enter up-to-date Loader, and dirty bit enters Loader to restart rear Boot zone bit simultaneously.Loader has collected after upgrade data, and upgrade file is deposited in after respective storage medium, and dirty bit starts to restart rear Boot guiding application program again.
Whether wired digital set-top box of the present invention adopts two Block to store respectively two zone bits, and zone bit divides again main mark position and counter mark position, adopt method of inspection judgement symbol position legal.When upgrading power-off, if wiping zone bit, can only can be wiped free of by one of them zone bit, another is still remained valid, and will guarantee like this validity of redirect, guarantees to restart rear upgrading and can also normally complete or restart upgrading.
Fig. 1 is the upgrade logic schematic flow sheet of the Set Top Box of the embodiment of the present invention, and it comprises the following steps:
(1) in application program, receive the information that needs upgrading;
(2) judge whether to need upgrading, if need upgrading, carry out (3) step, otherwise, executive utility continued;
(3) dirty bit, restarts and enters up-to-date Loader, starts upgrading.
In the Block of zone bit in Flash firmware, according to the characteristic of FLash, while rewriteeing zone bit, unless the data that FLash writes are all to become 0 from 1, not so must first wipe whole Block, and then write, if power-off in this time, or power supply is unstable, just likely makes to write zone bit effective information and makes mistakes.Therefore, the present embodiment adopts two Block to store respectively two zone bits, and zone bit divides again main mark position and counter mark position.In order to strengthen the correctness of sign, present case adopts check to judge that whether it is legal simultaneously.When upgrading power-off, if wiping zone bit, can only can be wiped free of by one of them zone bit, another is still remained valid, and will guarantee like this validity of redirect, guarantees to restart rear upgrading and can also normally complete or restart upgrading.
(4) collected after upgrade data, upgrade file is deposited in after respective storage medium, modified logo position starts to restart rear Boot guiding application program again.
At whole escalation process Boot, need repeatedly according to zone bit, determine to jump to where move.As shown in Figure 2, specifically in three steps:
Step 1: read all information in main mark position, whether it legal in verification, if legal, jump to relevant position according to the indication of sign so and carries out.If illegal, carry out the 2nd step;
Step 2: read counter mark position information used, whether it legal in verification.If legal, according to the indication of sign, jump to relevant position so and carry out.If illegal, carry out the 3rd step;
Step 3:Boot decompress(ion) application program, if decompress(ion) is correct, uses application program.If decompress(ion) failure, the direct up-to-date Loader1 of decompress(ion), if decompress(ion) is correct, uses Loader1, and as decompress(ion) failure, direct decompress(ion) Loader2, if decompress(ion) is correct, uses Loader2.
The part that the present invention does not relate to all prior art that maybe can adopt same as the prior art is realized.
Claims (1)
1. adopt double-flag position to improve a method for Set Top Box Loader upgrading stability, it is characterized in that it comprises the following steps:
First, in wired digital set-top box architecture, adopt Boot, double-Loader application program mode, during startup, Boot judges that according to CRC check method which zone bit is effective, and then jumping to Loader1 according to the information of effective marker position, Loader2 or application program are moved;
Second step judges whether to need upgrading when application program is received the information that needs upgrading, if need upgrading, carries out the 3rd step, otherwise, continue executive utility;
The 3rd step, dirty bit, stores respectively two zone bits with two Block, restarts and enters up-to-date Loader, starts upgrading; Described zone bit divides again main mark position and counter mark position, when upgrading power-off, if wiping zone bit, can only can be wiped free of by one of them zone bit, another is still remained valid, and will guarantee like this validity of redirect, guarantees to restart rear upgrading and can also normally complete or restart upgrading;
The 4th step, has collected after upgrade data, and upgrade file is deposited in after respective storage medium, the zone bit of again revising in two Block storage respectively for upgrade after the zone bit that matches of program, to restart rear Boot guiding application program, start;
At whole escalation process Boot, need repeatedly according to zone bit, determine to jump to where move, specifically in three steps:
Step 1: read all information in main mark position, whether it legal in verification, if legal, jump to relevant position according to the indication of sign so and carries out, if illegal, carries out the 2nd step;
Step 2: read counter mark position information used, whether it legal in verification, if legal, jump to relevant position according to the indication of sign so and carries out, if illegal, carries out the 3rd step;
Step 3:Boot decompress(ion) application program, if decompress(ion) is correct, uses application program, if decompress(ion) failure, the direct up-to-date Loader1 of decompress(ion), if decompress(ion) is correct, uses Loader1, as decompress(ion) failure, direct decompress(ion) Loader2, if decompress(ion) is correct, uses Loader2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110182607.2A CN102243591B (en) | 2011-06-30 | 2011-06-30 | Method for improving Loader-upgrading stability of set top box by adopting two zone bits |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110182607.2A CN102243591B (en) | 2011-06-30 | 2011-06-30 | Method for improving Loader-upgrading stability of set top box by adopting two zone bits |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102243591A CN102243591A (en) | 2011-11-16 |
CN102243591B true CN102243591B (en) | 2014-02-19 |
Family
ID=44961662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110182607.2A Active CN102243591B (en) | 2011-06-30 | 2011-06-30 | Method for improving Loader-upgrading stability of set top box by adopting two zone bits |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102243591B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938857B (en) * | 2012-11-27 | 2016-02-10 | 乐视致新电子科技(天津)有限公司 | A kind of method of Set Top Box online upgrading |
CN104503809A (en) * | 2015-01-08 | 2015-04-08 | 大唐微电子技术有限公司 | Application update download method and device |
CN109766140A (en) * | 2018-12-19 | 2019-05-17 | 青岛海信宽带多媒体技术有限公司 | A kind of localization method and device that set-top box starting is abnormal |
CN109933348B (en) * | 2019-01-21 | 2023-02-14 | 宁波普瑞均胜汽车电子有限公司 | Method and device for updating Bootloader in electronic control unit |
CN110837389A (en) * | 2019-11-01 | 2020-02-25 | 北京云迹科技有限公司 | Equipment upgrading method and device, Internet of things equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567962A (en) * | 2009-04-24 | 2009-10-28 | 福建新大陆通信科技有限公司 | Double-Loader updating method for set-top box |
CN101834976A (en) * | 2009-10-20 | 2010-09-15 | 福建新大陆通信科技有限公司 | Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology |
CN101895671A (en) * | 2010-07-21 | 2010-11-24 | 深圳创维数字技术股份有限公司 | Set top box Loader module updating method and set top box thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9317507B2 (en) * | 2006-11-22 | 2016-04-19 | The Directv Group, Inc. | Method and system for updating file segments of content on a portable media player device |
-
2011
- 2011-06-30 CN CN201110182607.2A patent/CN102243591B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567962A (en) * | 2009-04-24 | 2009-10-28 | 福建新大陆通信科技有限公司 | Double-Loader updating method for set-top box |
CN101834976A (en) * | 2009-10-20 | 2010-09-15 | 福建新大陆通信科技有限公司 | Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology |
CN101895671A (en) * | 2010-07-21 | 2010-11-24 | 深圳创维数字技术股份有限公司 | Set top box Loader module updating method and set top box thereof |
Non-Patent Citations (4)
Title |
---|
IPTV机顶盒升级方案的设计与实现;曾浩等;《信息终端与显示》;20101231;第34卷(第5期);第54-56页 * |
一种IPTV机顶盒的软件在线升级方案设计与实现;杨崇江等;《成都信息工程学院学报》;20061231;第21卷(第6期);第816-819页 * |
曾浩等.IPTV机顶盒升级方案的设计与实现.《信息终端与显示》.2010,第34卷(第5期),第54-56页. |
杨崇江等.一种IPTV机顶盒的软件在线升级方案设计与实现.《成都信息工程学院学报》.2006,第21卷(第6期),第816-819页. |
Also Published As
Publication number | Publication date |
---|---|
CN102243591A (en) | 2011-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102243591B (en) | Method for improving Loader-upgrading stability of set top box by adopting two zone bits | |
CN101895671B (en) | Set top box Loader module updating method and set top box thereof | |
CN102419713B (en) | Method for upgrading software of nandflash-based set-top box | |
CN102082965B (en) | Method for ensuring success in upgrading set-top box | |
CN102222011A (en) | Software upgrading method for set-top box and set-top box | |
CN103279372B (en) | Method for updating set-top box software and set top box | |
CN102665093A (en) | Test method for set top box and test system thereof | |
CN101520734A (en) | Method for upgrading data in flash memory, network TV and interactive set-top box thereof | |
CN101834976B (en) | Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology | |
CN110891197B (en) | Video advertisement putting condition detection method and device, electronic equipment and storage medium | |
CN106331862A (en) | Set-top box software upgrading method and set-top box | |
CN102411523A (en) | Method and device for storing file backups and backup method for file systems | |
CN101567962A (en) | Double-Loader updating method for set-top box | |
CN104978223B (en) | The method for realizing Web mode updating apparatus firmwares | |
CN102722394A (en) | Start upgrading method of embedded equipment | |
KR20100054817A (en) | Method and system for repairing damaged hard disk file systems | |
CN102081539A (en) | Reliable software upgrade method for dual-mode terminal | |
CN109766140A (en) | A kind of localization method and device that set-top box starting is abnormal | |
CN106303709A (en) | A kind of Set Top Box and application program updating method, system | |
CN102567043B (en) | Set-top box online updating method | |
CN101212554A (en) | Method for upgrading set-top box system | |
CN106028153A (en) | Set top box upgrading and channel changing methods and systems | |
CN103336698A (en) | Wifi equipment software upgrading method, wifi equipment and system | |
CN101510948A (en) | Method for updating set-top box software | |
CN111352764B (en) | Chip repairing method, device, equipment and 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |