CN1955925A - TV system software updating method with power-off protection - Google Patents

TV system software updating method with power-off protection Download PDF

Info

Publication number
CN1955925A
CN1955925A CNA2005101006006A CN200510100600A CN1955925A CN 1955925 A CN1955925 A CN 1955925A CN A2005101006006 A CNA2005101006006 A CN A2005101006006A CN 200510100600 A CN200510100600 A CN 200510100600A CN 1955925 A CN1955925 A CN 1955925A
Authority
CN
China
Prior art keywords
refresh routine
application program
sign
system software
true
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
CNA2005101006006A
Other languages
Chinese (zh)
Other versions
CN100430894C (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CNB2005101006006A priority Critical patent/CN100430894C/en
Publication of CN1955925A publication Critical patent/CN1955925A/en
Application granted granted Critical
Publication of CN100430894C publication Critical patent/CN100430894C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A method for updating software of TV system with power-off protection includes dividing storage of TV to be four regions of data region, application program region stored with application program for realizing application function of TV, update program region stored with update program for realizing download of update application program and update program, and guide program region; restoring update program region by said application program when update program is damaged and storing update code in update program region to finalize restoration of update program region with said code when restoration is started.

Description

TV system software updating method with power-off protection
[technical field]
The present invention relates to a kind of TV system software updating method, particularly a kind of TV system software updating method that reduces the tool power-off protection of memory space requirements with power-off protection.
[background technology]
Along with the arrival in electrical integrated epoch of family, present tv product, such as 3C TV, except that having traditional rating function, also have as browse web sites, diversified function such as video request program.Such tv product is portion within it, or is provided with one in the coupled devices such as set-top box and has stored the storer of various application programs, is generally a flash memory (Flash Memory).When the user imported certain operation signal, central processing unit accessed corresponding program from storer, and carried out the operation of this program setting.For the performance that improves TV or expand its function, TV producer can release new system software frequently, the user will obtain new service function then to be needed existing system software is upgraded, and is about to new system software downloaded stored in storer, substitutes original software.
Wherein, include one in the program of memory stores and upgrade (Loader) program, it is a kind of realization TV system software updating functional programs.It can also carry out self except upgrading the application program of TV inside.And television system may cause system to start because of fortuitous events such as sudden power cause the hardware collapse in the software upgrading process.If interrupt when upgrading television applications, then only need carry out refresh routine once more can recover application program.If but when upgrading refresh routine, make mistakes, then need to take certain measure to be recovered.So-called power-off protection function is exactly in the software upgrading process, and the software protection measure of taking for above-mentioned situation occurs still can be recovered after being damaged because of outage in the self process as early as possible to guarantee refresh routine.
The technology that existing refresh routine self power-off protection adopts realizes by increase the backup updating program in storer.Adopt the TV of this power-off protection method, its storer dividing condition as shown in Figure 1, it comprises 19 5 parts in data field 11, application area 13, backup updating program area 15, refresh routine district 17 and guiding (Boot) program area.Certainly the order of this five part can change, but indispensable.In refresh routine self process, when owing to outage when having damaged the refresh routine in the storer, then can be with the normal refresh routine district 17 in the storer of unspoiled backup updating program recovery in the backup updating program area 15, to recover refresh routine.But adopt this method double refresh routine district to be set, thereby can take bigger storage space in memory inside.
[summary of the invention]
Technical matters to be solved by this invention is to provide a kind of TV system software updating method with power-off protection, particularly a kind of TV system software updating method that reduces the tool power-off protection of memory space requirements.
Another object of the present invention provides a kind of TV system software updating method with power-off protection, and this method utilizes the application area of storer that software is realized upgrading, and reduces the setting of backup updating program area, thereby reaches the purpose that downloaded software is upgraded.
Thinking of the present invention is: storer is provided with different subregions, makes that application program can not be damaged when refresh routine was damaged when upgrading.At any time promptly, only may upgrade refresh routine or application program one of them.Wait fortuitous event so outage when upgrading, occurs, may damage refresh routine and application program is intact, perhaps damage application program and refresh routine is intact.Therefore, when refresh routine damaged, application program was intact, therefore can utilize application program to recover to damage refresh routine.Therefore,, make it have restore funcitons, the renewal of software after just can realizing cutting off the power supply by the setting of application programs.
So the present invention is achieved in that
A kind of TV system software updating method with power-off protection, the system software of described TV is stored in the storer, it is characterized in that described storer is divided into data field, application area, four parts in refresh routine district and boot district, store the application program that is used to realize the TV applications function in the described application area, store the refresh routine that is used to realize downloading and upgrading application program and refresh routine in the described refresh routine, comprise the code that to download and to upgrade refresh routine in the described application program; When refresh routine damages, finish recovery to the refresh routine district by described application program.
The restore funcitons of application program is to realize by allowing it have the down loading updating function similar to refresh routine, because the code that common application program comprised has originally had some parts identical with refresh routine, so will achieve similar function only need add a small amount of new code and get final product, will inevitably therefore can save resource less than the storage space of setting up a backup updating program area at storer and newly add the shared storage space of code.
The described code that can download and upgrade refresh routine starts download function according to certain condition, and the code of downloading is resolved and it is stored in the storer.
Also can add a tamper-indicating, this tamper-indicating is provided with by refresh routine, and " TRUE " its expression refresh routine or application program suffer damage, and " FALSE " expression refresh routine or application program are not damaged.
Aforesaid update method also can be provided with respectively first sign and one second sign that new refresh routine and new application program are downloaded in expression; At first read described first sign and one second sign after refresh routine is carried out,, begin to download new program after confirming to finish to determine which kind of carries out upgrades.
After download was finished, refresh routine all can be provided with tamper-indicating and be " TRUE ", and promptly supposing the system software has damaged; Finish smoothly if upgrade, then remove first sign or second sign and the tamper-indicating, it all is set to " FALSE "; Do not finish if upgrade, judged whether that then powering-off state takes place, do not indicate clear operation if having with regard to direct end renewal.
Boot can read each sign in regular turn; Judge at first whether first sign is " TRUE ",, finish to guide after being written into refresh routine if promptly directly upgrade application program; If first is masked as " FALSE ", can judge further then whether second sign is " TRUE ", if then upgrade refresh routine, not then directly to be written into to finish guiding after application program is carried out application function; But before the operation of upgrading refresh routine, boot can judge also whether tamper-indicating is " TRUE ", if not, directly be written into refresh routine and carry out the renewal operation; If " TRUE " illustrates that then refresh routine damages in upgrading last time, need to repair, carry out its restore funcitons so be written into application program.
Read first sign and the tamper-indicating, if both are " TRUE ", can judge that refresh routine damages in upgrading last time, next application program realizes the download and the renewal of refresh routine by initiate code, remove first sign and the tamper-indicating (all being set to " FALSE ") after finishing, the expression refresh routine is resumed.
Specifically, when upgrading, add a tamper-indicating C.This tamper-indicating C is provided with by refresh routine, and whether its expression refresh routine or application program suffer damage.Simultaneously, also be provided with sign A and B, download new refresh routine and be masked as A, new application program is masked as B; Refresh routine at first reads sign A and B after carrying out, and to determine which kind of carries out upgrades, begins to download new program after confirming to finish.After download is finished, no matter be to download new refresh routine (sign A is " TRUE ") or new application program (sign B is " TRUE "), after having downloaded, before the system software of preserving in the beginning updated stored device, refresh routine all can be provided with sign C and be " TRUE ", and promptly supposing the system software damages.Finish smoothly if upgrade, then clear flag A or B and sign C all are set to it " FALSE "; Do not finish if upgrade, judged whether that then powering-off state takes place, do not indicate clear operation if having with regard to direct end renewal.So, when can be in renewal process is carried out having caused damage, keep sign C and corresponding updating mark A or B to remain " TRUE ", after next time, start was restarted, after boot and application program read sign, will upgrade once more because of sudden power.
Boot can read each sign in regular turn.At first whether judgement symbol A is " TRUE ", if promptly directly upgrade application program, finishes to guide after being written into refresh routine.If sign A is " FALSE ", then further whether judgement symbol B is " TRUE ", if then upgrade refresh routine, is not then directly to be written into to finish guiding after application program is carried out application function.But before the operation of upgrading refresh routine, boot can judge also whether C is " TRUE ", if not, directly be written into refresh routine and carry out the renewal operation; If " TRUE " illustrates that then refresh routine damages in upgrading last time, need to repair, carry out its restore funcitons so be written into application program
Read sign A and C,, can judge that refresh routine damages, and needs to recover in upgrading last time if both are " TRUE ".Next application program is by the download and the renewal of initiate code realization refresh routine, and clear flag A and C after finishing (all being set to " FALSE ") represent that refresh routine is resumed.
The present invention compared with prior art has the following advantages: TV system software updating method of the present invention, and possess power-off protection function, and reduced the storage space demand of hardware inside, reduced hardware cost.
[description of drawings]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the division synoptic diagram of system software storer in the existing televisor.
Fig. 2 is the division synoptic diagram of system software storer in the televisor of the present invention.
The process flow diagram that Fig. 3 carries out for refresh routine of the present invention.
The process flow diagram that Fig. 4 carries out for boot of the present invention.
Fig. 5 has damaged the process flow diagram of refresh routine for application recovery of the present invention.
[embodiment]
See also Fig. 2, be the dividing mode of system software storer in the televisor of the present invention.It comprises data field 31, application area 33,37 4 parts in refresh routine district 35 and guiding (Boot) program area.Corresponding to different manufacturers or different platforms, this tetrameric order can change.
After the start, first program that will carry out is a boot.Usually, for reaching the purpose of software upgrading, in system software, be provided with two signs: upgrade the sign (called after sign A) of refresh routine and the sign (called after sign B) that upgrades application program.In application program, by download link descriptor from network (Linkage Descriptor), the new software that can obtain on the current network is refresh routine or application program.If refresh routine then is provided with sign A and is " TRUE "; If application program then is provided with sign B and is " TRUE ".Boot can read these two signs and determine whether being written into refresh routine to upgrade operation, and after upgrading operation, refresh routine also can read this two signs, indicates by these and judges that upgrading refresh routine still is the renewal application program.
Suppose refresh routine in the self process owing to accidental causes such as outage damage, then owing to there is not the refresh routine of backup, unique way of recovering it is to download again once more and upgrade the refresh routine that has damaged.And this moment, refresh routine oneself can't move, no longer possessed execution and downloaded function with updating task again, so can only be realized by application program.
Simultaneously, the storer among Fig. 2 is divided and can guarantee that application program can not be damaged, because they are not to be present in the same block storage zone when refresh routine is damaged when being upgraded.At any time promptly, only may upgrade refresh routine or application program one of them.Wait fortuitous event so outage when upgrading, occurs, may damage refresh routine and application program is intact, perhaps damage application program and refresh routine is intact.If it is damaged simultaneously, the correlation function of that televisor is inevitable in paralyzed state, also just can not upgrade at this moment, so both are actually and can not be damaged in renewal.Therefore, when refresh routine damaged, application program was intact, therefore can utilize application program to recover to damage refresh routine.The restore funcitons of application program is to realize by allowing it have the down loading updating function similar to refresh routine, because application program is in order to realize functions such as web page browsing, video request program usually, its code that comprises has had some parts identical with refresh routine, as drive code, interface correlative code and realize the code etc. of download function, so the code that will achieve the function similar to refresh routine and only need adding therein can download and upgrade refresh routine gets final product.This code can start download function according to certain condition, and the code of downloading is resolved and it is stored to code in the storer.The shared storage space of above-mentioned adding code will inevitably be less than the storage space of setting up a backup updating program area at storer.
See also Fig. 3, in the renewal process of system software, add a tamper-indicating C.This tamper-indicating C is provided with by refresh routine, and whether its expression refresh routine or application program suffer damage.Refresh routine at first reads sign A and B after carrying out, and to determine which kind of carries out upgrades, begins to download new program after confirming to finish.After download is finished, no matter be to download new refresh routine (sign A is " TRUE ") or new application program (sign B is " TRUE "), after having downloaded, before the system software of preserving in the beginning updated stored device, refresh routine all can be provided with sign C and be " TRUE ", and promptly supposing the system software damages.Finish smoothly if upgrade, then clear flag A or B and sign C all are set to it " FALSE "; Do not finish if upgrade, judged whether that then powering-off state takes place, do not indicate clear operation if having with regard to direct end renewal.So, when can be in renewal process is carried out having caused damage, keep sign C and corresponding updating mark A or B to remain " TRUE ", after next time, start was restarted, after boot and application program read sign, will upgrade once more because of sudden power.
First is performed after start owing to boot, thus its need guarantee at any time, can not load the software (refresh routine of damage or the application program of damage) that has damaged and move, because can cause machine collapse like this.Therefore, boot must guarantee reasonably to dispatch the flow direction of carrying out with control program, and the flow process of its execution as shown in Figure 4.After the start, boot can read each sign in regular turn.At first whether judgement symbol A is " TRUE ", if promptly directly upgrade application program, finishes to guide after being written into refresh routine.If sign A is " FALSE ", then further whether judgement symbol B is " TRUE ", if then upgrade refresh routine, is not then directly to be written into to finish guiding after application program is carried out application function.But before the operation of upgrading refresh routine, boot can judge also whether C is " TRUE ", if not, directly be written into refresh routine and carry out the renewal operation; If " TRUE " illustrates that then refresh routine damages in upgrading last time, need to repair, carry out its restore funcitons so be written into application program.
The flow process of application program execution restore funcitons is described below in conjunction with Fig. 5.Application program can read sign A and C in regular turn after execution, if both are " TRUE ", can judge that refresh routine damages, and needs to recover in upgrading last time.Next application program is by the download and the renewal of initiate code realization refresh routine, and clear flag A and C after finishing (all being set to " FALSE ") represent that refresh routine is resumed, carry out its normal application function subsequently again.

Claims (7)

1, a kind of TV system software updating method with power-off protection, the system software of described TV is stored in the storer, it is characterized in that described storer is divided into data field, application area, four parts in refresh routine district and boot district, store the application program that is used to realize the TV applications function in the described application area, store the refresh routine that is used to realize downloading and upgrading application program and refresh routine in the described refresh routine, comprise the code that to download and to upgrade refresh routine in the described application program; When refresh routine damages, finish recovery to the refresh routine district by described application program.
2, the TV system software updating method with power-off protection as claimed in claim 1; it is characterized in that the described code that can download and upgrade refresh routine starts download function according to certain condition, the code of downloading is resolved and it is stored in the storer.
3, the TV system software updating method with power-off protection as claimed in claim 1; it is characterized in that also adding a tamper-indicating; this tamper-indicating is provided with by refresh routine; " TRUE " its expression refresh routine or application program suffer damage, and " FALSE " expression refresh routine or application program are not damaged.
4, the TV system software updating method with power-off protection as claimed in claim 3 is characterized in that also being provided with respectively first sign and one second sign that new refresh routine and new application program are downloaded in expression; At first read described first sign and one second sign after refresh routine is carried out,, begin to download new program after confirming to finish to determine which kind of carries out upgrades.
5, the TV system software updating method with power-off protection as claimed in claim 4, it is characterized in that downloading finish after, refresh routine all can be provided with tamper-indicating and be " TRUE ", promptly supposing the system software has damaged; Finish smoothly if upgrade, then remove first sign or second sign and the tamper-indicating, it all is set to " FALSE "; Do not finish if upgrade, judged whether that then powering-off state takes place, do not indicate clear operation if having with regard to direct end renewal.
6, the TV system software updating method with power-off protection as claimed in claim 4 is characterized in that boot can read each sign in regular turn; Judge at first whether first sign is " TRUE ",, finish to guide after being written into refresh routine if promptly directly upgrade application program; If first is masked as " FALSE ", can judge further then whether second sign is " TRUE ", if then upgrade refresh routine, not then directly to be written into to finish guiding after application program is carried out application function; But before the operation of upgrading refresh routine, boot can judge also whether tamper-indicating is " TRUE ", if not, directly be written into refresh routine and carry out the renewal operation; If " TRUE " illustrates that then refresh routine damages in upgrading last time, need to repair, carry out its restore funcitons so be written into application program.
7, the TV system software updating method with power-off protection as claimed in claim 6; it is characterized in that reading first sign and the tamper-indicating; if both are " TRUE "; can judge that refresh routine damages in upgrading last time; next application program realizes the download and the renewal of refresh routine by initiate code; remove first sign and the tamper-indicating (all being set to " FALSE ") after finishing, the expression refresh routine is resumed.
CNB2005101006006A 2005-10-28 2005-10-28 TV system software updating method with power-off protection Expired - Fee Related CN100430894C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101006006A CN100430894C (en) 2005-10-28 2005-10-28 TV system software updating method with power-off protection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101006006A CN100430894C (en) 2005-10-28 2005-10-28 TV system software updating method with power-off protection

Publications (2)

Publication Number Publication Date
CN1955925A true CN1955925A (en) 2007-05-02
CN100430894C CN100430894C (en) 2008-11-05

Family

ID=38063272

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101006006A Expired - Fee Related CN100430894C (en) 2005-10-28 2005-10-28 TV system software updating method with power-off protection

Country Status (1)

Country Link
CN (1) CN100430894C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170435B (en) * 2007-09-20 2010-06-09 中兴通讯股份有限公司 A method for solving non-symmetric digital user line Modem software loss
CN102141940A (en) * 2010-12-29 2011-08-03 Tcl集团股份有限公司 Device, method and system for recovering firmware update
CN103473084A (en) * 2013-05-27 2013-12-25 广州电网公司惠州供电局 Software online upgrade method for temperature monitoring device
CN103761122A (en) * 2013-12-31 2014-04-30 青岛歌尔声学科技有限公司 Chip firmware updating method and system
CN104363512A (en) * 2014-11-04 2015-02-18 福建新大陆通信科技股份有限公司 Simple STB (set top box) upgrading method and system without operating system
CN105049935A (en) * 2015-07-30 2015-11-11 Tcl集团股份有限公司 Method and system for managing screen end program of modularized television
CN106875663A (en) * 2017-04-18 2017-06-20 天纳能源科技(上海)有限公司 A kind of data concentrator and control method for transformer and distribution power station monitoring system
CN111459527A (en) * 2019-01-18 2020-07-28 爱思开海力士有限公司 Memory system and operating method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168824A (en) * 2017-05-15 2017-09-15 上海与德科技有限公司 A kind of power-off protection method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10289108A (en) * 1997-04-17 1998-10-27 Matsushita Electric Ind Co Ltd Remote program downloading device
JP4016359B2 (en) * 1998-03-24 2007-12-05 ソニー株式会社 Receiving device and program rewriting method
JP2000137607A (en) * 1998-10-29 2000-05-16 Sanyo Electric Co Ltd Digital television receiver
JP2005018547A (en) * 2003-06-27 2005-01-20 Matsushita Electric Ind Co Ltd Broadcast receiving terminal with software update function and broadcast system
JP4606009B2 (en) * 2003-10-20 2011-01-05 三洋電機株式会社 Program processing device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170435B (en) * 2007-09-20 2010-06-09 中兴通讯股份有限公司 A method for solving non-symmetric digital user line Modem software loss
CN102141940A (en) * 2010-12-29 2011-08-03 Tcl集团股份有限公司 Device, method and system for recovering firmware update
CN103473084A (en) * 2013-05-27 2013-12-25 广州电网公司惠州供电局 Software online upgrade method for temperature monitoring device
CN103473084B (en) * 2013-05-27 2018-01-19 广东电网有限责任公司惠州供电局 A kind of on-line software updating method of device for detecting temperature
CN103761122A (en) * 2013-12-31 2014-04-30 青岛歌尔声学科技有限公司 Chip firmware updating method and system
CN104363512A (en) * 2014-11-04 2015-02-18 福建新大陆通信科技股份有限公司 Simple STB (set top box) upgrading method and system without operating system
CN105049935A (en) * 2015-07-30 2015-11-11 Tcl集团股份有限公司 Method and system for managing screen end program of modularized television
CN105049935B (en) * 2015-07-30 2019-08-06 Tcl集团股份有限公司 A kind of the screen end procedure management method and system of modularization TV
CN106875663A (en) * 2017-04-18 2017-06-20 天纳能源科技(上海)有限公司 A kind of data concentrator and control method for transformer and distribution power station monitoring system
CN111459527A (en) * 2019-01-18 2020-07-28 爱思开海力士有限公司 Memory system and operating method thereof
CN111459527B (en) * 2019-01-18 2023-09-05 爱思开海力士有限公司 Memory system and method of operating the same
US11966603B2 (en) 2019-01-18 2024-04-23 SK Hynix Inc. Memory system for updating firmware when SPO occurs and operating method thereof

Also Published As

Publication number Publication date
CN100430894C (en) 2008-11-05

Similar Documents

Publication Publication Date Title
CN100430894C (en) TV system software updating method with power-off protection
CN1304946C (en) Booting and boot code update method and system thereof
EP1271322A2 (en) Crash recovery system
CN1834915A (en) Method of updating firmware in computer server systems
US6385623B1 (en) System and method for ensuring proper execution of scheduled file updates
CN1439128A (en) Method and apparatus for baking up application code upon power failure during a code update
KR100515890B1 (en) Method of efficiently recovering database
US20100205587A1 (en) Method, device and system for realizing kernel online patching
CN103473067A (en) Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
CN1277214C (en) Embedded system upgrading method
CN104182255A (en) Method and terminal for upgrading library files of system application
CN1200341C (en) Method for realizing flush type system firmware program online updating
CN1598777A (en) Method and system for updating software
WO1999054816A1 (en) Patching rebased and realigned executable files
CN103077043A (en) Method for fast starting and operating Linux
CN102163152A (en) Software upgrading method and device thereof for embedded terminal device
CN101567962A (en) Double-Loader updating method for set-top box
US7222342B2 (en) Execution on a machine, the start of an auxiliary downloader when storage of new software memory fails during execution of a first downloader
CN101872306A (en) Embedded system for realizing software updating and software backup and implementation method thereof
US7340738B2 (en) Time optimized replacement of a software application
CN101079955A (en) Secure download method of TV system software
CN1924802A (en) Self-upgrading method for updating program
CN1818824A (en) High-reliable personal computer and operating system thereof
CN1940887A (en) Method and apparatus for master-controlled applied programm of self-repairing built-in equipment
CN101908009A (en) File backup and using 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081105

CF01 Termination of patent right due to non-payment of annual fee