CN100430894C - 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
CN100430894C
CN100430894C CNB2005101006006A CN200510100600A CN100430894C CN 100430894 C CN100430894 C CN 100430894C CN B2005101006006 A CNB2005101006006 A CN B2005101006006A CN 200510100600 A CN200510100600 A CN 200510100600A CN 100430894 C CN100430894 C CN 100430894C
Authority
CN
China
Prior art keywords
refresh routine
application program
sign
true
system software
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.)
Expired - Fee Related
Application number
CNB2005101006006A
Other languages
Chinese (zh)
Other versions
CN1955925A (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

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 having damaged the refresh routine in the storer owing to outage, then can be with normal refresh routine district 17 in the unspoiled backup updating program recovery row storer 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, described TV system software 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, described refresh routine stores the refresh routine that is used to realize downloading and upgrading application program and refresh routine in the district, comprises the code that can download and upgrade refresh routine in the described application program; When refresh routine damages, finish recovery by described application program to refresh routine, described refresh routine also is provided with tamper-indicating, and " TRUE " expression refresh routine or application program suffer damage, and " FALSE " expression refresh routine or application program are not damaged.
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.
Aforesaid update method also can be provided with respectively sign A and sign B that new refresh routine and new application program are downloaded in expression; At first read described sign A and sign B 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 clear flag A or sign B and tamper-indicating 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.
Boot can read each sign in regular turn; At first whether judgement symbol B is " TRUE ", if promptly directly upgrade application program, finishes to guide after being written into refresh routine; If sign B is " FALSE ", then further whether judgement symbol A 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 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 sign A and 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, clear flag A and tamper-indicating after finishing (all being set to " FALSE "), 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 B is " TRUE ", if promptly directly upgrade application program, finishes to guide after being written into refresh routine.If sign B is " FALSE ", then further whether judgement symbol A 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
When application program is carried out recovery operation, read sign A and C earlier,, 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, it is that " TRUE " is if application program then is provided with sign B and is " TRUE " that sign A then is set.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 (5)

1, a kind of TV system software updating method with power-off protection, described TV system software 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, described refresh routine stores the refresh routine that is used to realize downloading and upgrading application program and refresh routine in the district, comprises the code that can download and upgrade refresh routine in the described application program; When refresh routine damages, finish recovery by described application program to refresh routine, described refresh routine also is provided with a tamper-indicating, and " TRUE " expression refresh routine or application program suffer damage, and " FALSE " expression refresh routine or application program are not damaged.
2, the TV system software updating method with power-off protection as claimed in claim 1 is characterized in that being provided with respectively sign A and sign B that new refresh routine and new application program are downloaded in expression; At first read described sign A and sign B after refresh routine is carried out,, begin to download new program after confirming to finish to determine which kind of carries out upgrades.
3, the TV system software updating method with power-off protection as claimed in claim 2, 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 clear flag A or sign B and tamper-indicating 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.
4, the TV system software updating method with power-off protection as claimed in claim 2 is characterized in that boot can read each sign in regular turn; At first whether judgement symbol B is " TRUE ", if promptly directly upgrade application program, finishes to guide after being written into refresh routine; If sign B is " FALSE ", then further whether judgement symbol A 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 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.
5, the TV system software updating method with power-off protection as claimed in claim 4; when it is characterized in that application program is carried out recovery operation; read sign A and tamper-indicating earlier; 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, clear flag A and tamper-indicating after finishing, and 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 CN1955925A (en) 2007-05-02
CN100430894C true 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 (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

Families Citing this family (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
CN102141940B (en) * 2010-12-29 2012-10-31 Tcl集团股份有限公司 Device, method and system for recovering firmware update
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
CN105049935B (en) * 2015-07-30 2019-08-06 Tcl集团股份有限公司 A kind of the screen end procedure management method and system of modularization TV
CN106875663B (en) * 2017-04-18 2020-07-28 天纳能源科技(上海)有限公司 Data concentrator for substation monitoring system and control method
KR20200089939A (en) 2019-01-18 2020-07-28 에스케이하이닉스 주식회사 Memory system and operating method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266810B1 (en) * 1997-04-17 2001-07-24 Matsushita Electric Industrial Co., Ltd. Remote program downloading system and apparatus
US6317162B1 (en) * 1998-10-29 2001-11-13 Sanyo Electric Co., Ltd. Digital television receiver including non-volatile memory
US6343379B1 (en) * 1998-03-24 2002-01-29 Sony Corporation Receiver and program updating method
JP2005018547A (en) * 2003-06-27 2005-01-20 Matsushita Electric Ind Co Ltd Broadcast receiving terminal with software update function and broadcast system
CN1609798A (en) * 2003-10-20 2005-04-27 三洋电机株式会社 Compound program and program processing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6266810B1 (en) * 1997-04-17 2001-07-24 Matsushita Electric Industrial Co., Ltd. Remote program downloading system and apparatus
US6343379B1 (en) * 1998-03-24 2002-01-29 Sony Corporation Receiver and program updating method
US6317162B1 (en) * 1998-10-29 2001-11-13 Sanyo Electric Co., Ltd. Digital television receiver including non-volatile memory
JP2005018547A (en) * 2003-06-27 2005-01-20 Matsushita Electric Ind Co Ltd Broadcast receiving terminal with software update function and broadcast system
CN1609798A (en) * 2003-10-20 2005-04-27 三洋电机株式会社 Compound program and program processing apparatus

Cited By (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

Also Published As

Publication number Publication date
CN1955925A (en) 2007-05-02

Similar Documents

Publication Publication Date Title
CN100430894C (en) TV system software updating method with power-off protection
CN102650947B (en) Continuous increment over-the-air upgrade method of Android handheld equipment
CN100474247C (en) Method for updating firmware in computer server systems
CN100531326C (en) Method for selecting executable softwave image
CN102110000A (en) Method, device and equipment for controlling software for auto-updating
CN106610840A (en) FOTA (Firmware Over-The-Air) upgrade method and system
CN102214113B (en) Method, device and terminal for upgrading operating system
CN103473067A (en) Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
CN104182255A (en) Method and terminal for upgrading library files of system application
CN105760200A (en) Terminal device and system updating method thereof
CN101826027A (en) Embedded system and updating method thereof
CN102508686A (en) Method and system for realizing safe upgrading of system
CN103533431A (en) Method and system for realizing system upgrade based on intelligent television, and intelligent television
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
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
CN101567962A (en) Double-Loader updating method for set-top box
CN102147754A (en) Automatic backup method and device for driver
CN103077043A (en) Method for fast starting and operating Linux
CN103365676B (en) The method for upgrading software of communication equipment and device
CN101872306B (en) Embedded system for realizing software updating and software backup and implementation method thereof
CN102163152A (en) Software upgrading method and device thereof for embedded terminal device
CN102486733A (en) Method and device for upgrading boot program
CN102075710B (en) Starting operation method for television and television
CN102609290A (en) Software updating method for electronic product
CN103079108A (en) Set top box and starting method thereof

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