CN102243591A - 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 PDF

Info

Publication number
CN102243591A
CN102243591A CN2011101826072A CN201110182607A CN102243591A CN 102243591 A CN102243591 A CN 102243591A CN 2011101826072 A CN2011101826072 A CN 2011101826072A CN 201110182607 A CN201110182607 A CN 201110182607A CN 102243591 A CN102243591 A CN 102243591A
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.)
Granted
Application number
CN2011101826072A
Other languages
Chinese (zh)
Other versions
CN102243591B (en
Inventor
周春健
肖瀟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Panda Electronics Co Ltd
Panda Electronics Group Co Ltd
Nanjing Panda Information Industry Co Ltd
Original Assignee
Nanjing Panda Electronics Co Ltd
Panda Electronics Group Co Ltd
Nanjing Panda Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing Panda Electronics Co Ltd, Panda Electronics Group Co Ltd, Nanjing Panda Information Industry Co Ltd filed Critical Nanjing Panda Electronics Co Ltd
Priority to CN201110182607.2A priority Critical patent/CN102243591B/en
Publication of CN102243591A publication Critical patent/CN102243591A/en
Application granted granted Critical
Publication of CN102243591B publication Critical patent/CN102243591B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Adopt the double-flag position to improve the method for set-top box Loader upgrading stability
Technical field
The present invention relates to a kind of Digital Television reception technique, relate in particular to the set-top box technique that a kind of Digital Television receives the field, specifically a kind of method that adopts the 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.Be protection operator and terminal user's investment interests, urgent to the demand order benefit that becomes that the set-top box application program can online upgrading.Along with the continuous increase of new business and the continual renovation of technology, in order to allow the user enjoy new service in time, to experience new technology,, finish the set-top box software program upgrade by cable TV network, become the basic function that digital TV set-top box must have.
At present, because the large batch of translation of broadcasting and TV system, the user that set top box upgrading relates in zone has several ten thousand more than millions of, and upgrading involves network environment and actual environment for use, in addition, different user is also different to the service time and the set-top box loss situation of set-top box, and it is very risky to cause upgrading.In case the upgrading failure causes normally TV reception of user, bring havoc can for radio and television departments and set-top box company.
Set-top box need to judge whether upgrading by checking the upgrading sign, if outage when writing zone bit, or power supply is unstable, just might make and write the zone bit effective information and make mistakes or lose, the program of guiding was made mistakes and certainly will be caused that the upgrading flow process makes mistakes when at this moment set-top box was restarted once more, when serious even cause set-top box to open.Therefore, improve very necessity of set-top box Loader upgrading stability.
Summary of the invention
The objective of the invention is in the set top box upgrading process, under the situation of outage or power supply shakiness, might make and write the zone bit effective information and make mistakes or lose, the program of guiding is made mistakes when causing set-top box to restart once more, even the problem that causes set-top box to open, invent a kind of method that adopts the double-flag position to improve set-top box Loader upgrading stability.
Technical scheme of the present invention is:
A kind of method that adopts the double-flag position to improve set-top box Loader upgrading stability is characterized in that it may further comprise the steps:
At first, adopt Boot, double-Loader application program mode on the wired digital set-top box architecture, Boot determines that according to zone bit program jumps to Loader1, and loader2 or application program are moved;
Second step need to judge whether upgrading when application program is received the information that needs upgrading, upgrading then carried out for the 3rd step if desired, otherwise, continue executive utility;
In the 3rd step, dirty bit is stored two zone bits respectively with two Block, restarts to enter up-to-date Loader, begins upgrading; Described zone bit divides main mark position and counter mark position again, when the upgrading outage, 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 the validity of redirect like this, guarantees to restart the back upgrading and can also normally finish or restart upgrading;
The 4th step, collected upgrade data after, deposit upgrade file in respective storage medium after, revise once more among two Block the zone bit of storage respectively for upgrade after the zone bit that matches of program so that restart back Boot guiding application program startup.
Boot need determine the redirect direction according to zone bit in the escalation process, and concrete jump procedure is:
Step 1: read all information of main mark position, whether it legal in verification (or correct, down with), if legal, jump to the relevant position according to the indication of sign so and carry out.If illegal, carry out the 2nd step;
Step 2: read the used information in counter mark position, whether it legal in verification.If legal, the indication according to sign jumps to the relevant position execution so.If illegal, carry out the 3rd step;
Step 3:Boot decompress(ion) application program if decompress(ion) is correct, is then used application program.If the decompress(ion) failure, the then direct up-to-date Loader1 of decompress(ion) if decompress(ion) is correct, then uses Loader1, and as the decompress(ion) failure, then direct decompress(ion) Loader2 if decompress(ion) is correct, then uses Loader2.
Beneficial effect of the present invention:
The present invention is used for set-top box Loader upgrading with the double-flag method for position, after tested and practical application, can effectively improve the stability of set-top box Loader upgrading, guarantee the reliability and the security of upgrading to have alleviated the maintenance pressure that brings for set top box upgrading after sale.
Description of drawings
Fig. 1 is a set top box upgrading logic flow synoptic diagram of the present invention.
Fig. 2 is a judgement symbol bit stream journey synoptic diagram of the present invention.
Specific embodiments:
The present invention is further illustrated below in conjunction with drawings and Examples.
As shown in Figure 1, 2.
A kind of method that adopts the double-flag position to improve set-top box Loader upgrading stability, it comprises:
(a) provide upgrading descriptor and upgrading code stream by producer;
(b) need upgrading software in the Loader server, to be packaged into the TS stream of data to be upgraded;
(c) the EPG generator generates the EPG information relevant with software upgrading;
(d) front end spreads by TS and softens part and code flow broadcast card, and it is multiplexing with other TS stream to export the specific upgrade TS stream that generates to multiplexer, enters cable TV network then and after QAM modulates;
(e) check after the terminal wired digital set-top box powers on that the upgrading sign need to judge whether upgrading, upgrading then directly enters Loader and upgrades, otherwise enters application program if desired; Described wired digital set-top box should adopt Boot, double-Loader application program mode on architecture, Boot should be able to determine that program jumps to Loader1 according to zone bit, and loader2 or application program are moved;
(f) obtain upgrading description document and parsing in task of normal establishment in service, when the result who resolves the upgrading description document judges that current set-top box need be upgraded, revise upgrading at once and indicate, enter the Loader upgrading so that set-top box is restarted.
(g) after upgrading was finished, dirty bit started so that restart back Boot guiding application program once more.
Software upgrading of the present invention generates relevant EPG information with the EPG generator.Link descriptor is inserted among the EPG, and the insertion position is the ground floor of NIT table or BAT table; The upgrading code stream is multiplexed in the program stream by multiplexer, and data broadcasting sign descriptor is inserted into upgrading stream pmt table automatically.
Adopt Boot, double-Loader application program mode on the wired digital set-top box architecture of the present invention.Boot determines that according to zone bit program jumps to Loader1, and loader2 or application program are moved.Application program receives to restart after the information that needs upgrading and enters up-to-date Loader that dirty bit enters Loader so that restart back Boot zone bit simultaneously.After Loader has collected upgrade data, deposit upgrade file in respective storage medium after, dirty bit starts so that restart back Boot guiding application program once more.
Whether wired digital set-top box of the present invention adopts two Block to store two zone bits respectively, and zone bit divides main mark position and counter mark position again, adopt method of inspection judgement symbol position legal.When the upgrading outage, 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 the validity of redirect like this, guarantees to restart the back upgrading and can also normally finish or restart upgrading.
Fig. 1 is the upgrade logic schematic flow sheet of the set-top box of the embodiment of the invention, and it may further comprise the steps:
(1) receives the information that needs upgrading in application program;
(2) need to judge whether upgrading, upgrading if desired carried out for (3) step, otherwise, continue executive utility;
(3) dirty bit is restarted and is entered up-to-date Loader, begins upgrading.
Zone bit is among the Block of Flash firmware, characteristic according to FLash, when rewriteeing zone bit, unless the data that FLash writes all are to become 0 from 1, not so must wipe whole Block earlier, and then write, if cut off the power supply this time, or power supply is unstable, just might make to write the zone bit effective information and make mistakes.Therefore, present embodiment adopts two Block to store two zone bits respectively, and zone bit divides main mark position and counter mark position again.The correctness of while in order to strengthen identifying, present case adopt check to judge whether it is legal.When the upgrading outage, 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 the validity of redirect like this, guarantees to restart the back upgrading and can also normally finish or restart upgrading.
(4) collected upgrade data after, deposit upgrade file in respective storage medium after, the modified logo position starts so that restart back Boot guiding application program once more.
Need repeatedly to determine to jump to where to move at whole upgrade process Boot according to zone bit.As shown in Figure 2, specifically divide three steps:
Step 1: read all information of main mark position, whether it legal in verification, if legal, jump to the relevant position according to the indication of sign so and carry out.If illegal, carry out the 2nd step;
Step 2: read the used information in counter mark position, whether it legal in verification.If legal, the indication according to sign jumps to the relevant position execution so.If illegal, carry out the 3rd step;
Step 3:Boot decompress(ion) application program if decompress(ion) is correct, is then used application program.If the decompress(ion) failure, the then direct up-to-date Loader1 of decompress(ion) if decompress(ion) is correct, then uses Loader1, and as the decompress(ion) failure, then direct decompress(ion) Loader2 if decompress(ion) is correct, then uses Loader2.
The part that the present invention does not relate to prior art that maybe can adopt all same as the prior art is realized.

Claims (2)

1. one kind is adopted the double-flag position to improve the stable method of set-top box Loader upgrading, it is characterized in that it may further comprise the steps:
At first, adopt Boot, double-Loader application program mode on the wired digital set-top box architecture, Boot determines that according to zone bit program jumps to Loader1, and loader2 or application program are moved;
Second step need to judge whether upgrading when application program is received the information that needs upgrading, upgrading then carried out for the 3rd step if desired, otherwise, continue executive utility;
In the 3rd step, dirty bit is stored two zone bits respectively with two Block, restarts to enter up-to-date Loader, begins upgrading; Described zone bit divides main mark position and counter mark position again, when the upgrading outage, 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 the validity of redirect like this, guarantees to restart the back upgrading and can also normally finish or restart upgrading;
The 4th step, collected upgrade data after, deposit upgrade file in respective storage medium after, revise once more among two Block the zone bit of storage respectively for upgrade after the zone bit that matches of program so that restart back Boot guiding application program startup.
2. method according to claim 1 is characterized in that Boot need determine the redirect direction according to zone bit in the escalation process, and concrete jump procedure is:
Step 1: read all information of main mark position, whether it legal in verification, if legal, jump to the relevant position according to the indication of sign so and carry out, if illegal, carries out the 2nd step;
Step 2: read the used information in counter mark position, whether it legal in verification;
If legal, the indication according to sign jumps to the relevant position execution so, if illegal, carries out the 3rd step;
Step 3:Boot decompress(ion) application program if decompress(ion) is correct, is then used application program;
If the decompress(ion) failure, the then direct up-to-date Loader1 of decompress(ion) if decompress(ion) is correct, then uses Loader1, and as the decompress(ion) failure, then direct decompress(ion) Loader2 if decompress(ion) is correct, then uses Loader2.
CN201110182607.2A 2011-06-30 2011-06-30 Method for improving Loader-upgrading stability of set top box by adopting two zone bits Active CN102243591B (en)

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 true CN102243591A (en) 2011-11-16
CN102243591B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938857A (en) * 2012-11-27 2013-02-20 乐视致新电子科技(天津)有限公司 Method for on-line upgrading of STB (Set Top Box)
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
CN109933348A (en) * 2019-01-21 2019-06-25 宁波普瑞均胜汽车电子有限公司 The update method and device of Bootloader in a kind of electronic control unit
CN110837389A (en) * 2019-11-01 2020-02-25 北京云迹科技有限公司 Equipment upgrading method and device, Internet of things equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120347A1 (en) * 2006-11-22 2008-05-22 The Directv Group, Inc. Method and system for updating file segments of content on a portable media player device
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120347A1 (en) * 2006-11-22 2008-05-22 The Directv Group, Inc. Method and system for updating file segments of content on a portable media player device
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 (2)

* Cited by examiner, † Cited by third party
Title
曾浩等: "IPTV机顶盒升级方案的设计与实现", 《信息终端与显示》, vol. 34, no. 5, 31 December 2010 (2010-12-31), pages 54 - 56 *
杨崇江等: "一种IPTV机顶盒的软件在线升级方案设计与实现", 《成都信息工程学院学报》, vol. 21, no. 6, 31 December 2006 (2006-12-31), pages 816 - 819 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938857A (en) * 2012-11-27 2013-02-20 乐视致新电子科技(天津)有限公司 Method for on-line upgrading of STB (Set Top Box)
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
CN109933348A (en) * 2019-01-21 2019-06-25 宁波普瑞均胜汽车电子有限公司 The update method and device of Bootloader in a kind of electronic control unit
CN110837389A (en) * 2019-11-01 2020-02-25 北京云迹科技有限公司 Equipment upgrading method and device, Internet of things equipment and storage medium

Also Published As

Publication number Publication date
CN102243591B (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN102419713B (en) Method for upgrading software of nandflash-based set-top box
CN102082965B (en) Method for ensuring success in upgrading set-top box
CN101895671B (en) Set top box Loader module updating method and set top box thereof
CN102243591B (en) Method for improving Loader-upgrading stability of set top box by adopting two zone bits
CN102222011A (en) Software upgrading method for set-top box and set-top box
CN104581397B (en) The method for upgrading system and device of android set top box
US20080052702A1 (en) Firmware update method and system utilizing digital broadcasting system
CN103294615B (en) A kind of method for storing set-top box users information
CN103699483B (en) A kind of broadcast state of flash player and browser-safe method of testing and device thereof
CN104079993B (en) A kind of set top box upgrading method, set top box, server and system
CN101567962A (en) Double-Loader updating method for set-top box
CN102411523A (en) Method and device for storing file backups and backup method for file systems
CN103077166B (en) The method for spacial multiplex of small documents storage and device
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
CN103442272A (en) System upgrading method
CN101834976A (en) Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology
CN106303709A (en) A kind of Set Top Box and application program updating method, system
CN102081539A (en) Reliable software upgrade method for dual-mode terminal
CN101212554B (en) Method for upgrading set-top box system
CN103079108A (en) Set top box and starting method thereof
CN103702107A (en) Method for testing startup and shutdown of intelligent television at high speed
CN106028153A (en) Set top box upgrading and channel changing methods and systems
CN101510948A (en) Method for updating set-top box software
CN102567043A (en) Set-top box online updating method

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