CN102073508A - Method and apparatus for upgrading terminals and software thereof - Google Patents

Method and apparatus for upgrading terminals and software thereof Download PDF

Info

Publication number
CN102073508A
CN102073508A CN2009101895249A CN200910189524A CN102073508A CN 102073508 A CN102073508 A CN 102073508A CN 2009101895249 A CN2009101895249 A CN 2009101895249A CN 200910189524 A CN200910189524 A CN 200910189524A CN 102073508 A CN102073508 A CN 102073508A
Authority
CN
China
Prior art keywords
control program
primary control
software
terminal
upgrading
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.)
Pending
Application number
CN2009101895249A
Other languages
Chinese (zh)
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN2009101895249A priority Critical patent/CN102073508A/en
Publication of CN102073508A publication Critical patent/CN102073508A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a software upgrading technological field and discloses a method and an apparatus for upgrading terminals and software thereof, wherein the method comprises steps of: restarting a system when a fault occurs in a software upgrading process of a terminal; determining whether the master control program of the terminal starts normally; performing upgrading operation both of the master control program and other software when the master control program can start normally; and downloading a new master control program from a server connected with the terminal to perform upgrading operation both of the new master control program and other software when the master control program cannot start normally. The invention can realize the upgrading of the master control program and other software as fast as possible under the control of the main control program of the terminal in such a manner that no much storage space is occupied, after the failure of the upgrading of terminal software due to the fault.

Description

A kind of terminal and method for upgrading software thereof and device
Technical field
The invention belongs to the software upgrading technical field, be specifically related to a kind of terminal and method for upgrading software thereof and device.
Background technology
Along with the continual renovation of software version in the terminal, increasing software needs frequent upgrading.
Most built-in terminal software all possesses software upgrading function, can realize the upgrading of software by the primary control program of terminal self.Wherein, system upgrades by its inner primary control program, carries out the upgrading of each software in primary control program.
In the process that software is upgraded, run into some special situations through regular meeting, for example outage causes deadlock or network service interruption etc., and these situations often cause carrying out especially primary control program upgrading failure of upgrading software.
Can also continue operation in order to ensure system under the situation that causes the software upgrading failure owing to special state, in the prior art, mainly comprise following two kinds of settling modes:
First kind is to adopt two software systems mechanism, promptly enters another one software systems continuation upgrading after a software system updating failure;
Second kind is software backup mechanism, promptly all original software is backed up when each software of upgrading, continues operation in case the upgrading failure reverts to original software again.
Though above-mentioned two kinds of methods can both guarantee software upgrading when failure system and can also continue operation, exist that to take the flash space a lot, it is long to have increased terminal cost and update time, the inefficient shortcoming of upgrading.
After terminal software is upgraded failure, how under the situation that does not account for too many storage space under the control of the primary control program of terminal as soon as possible, again, realize the upgrading of each software (comprising primary control program), be one of direction of software upgrading technical field research.
Summary of the invention (the corresponding modification)
The object of the present invention is to provide a kind of method for updating terminal software, after terminal software is upgraded failure, under the situation that does not account for too many storage space under the control of the primary control program of terminal as soon as possible, again, realize the upgrading of each software.
The embodiment of the invention is achieved in that a kind of method for updating terminal software, said method comprising the steps of:
When terminal carries out meeting fault in the software upgrade process, restarting systems;
Whether the primary control program of judging described terminal normally starts;
When described primary control program can normally start, carry out the updating operation of described primary control program and other software;
When described primary control program can not normally start,, carry out the described new primary control program and the updating operation of other software from the new primary control program of downloaded that is connected with described terminal.
Another purpose of the embodiment of the invention is to provide a kind of terminal software upgrading device, and described device comprises:
Module is restarted in system, is used for when terminal is carried out software upgrade process chance fault restarting systems;
The primary control program detection module, be used for system restart after, judge that whether the primary control program of described terminal normally starts;
The updating operation control module is used for carrying out the updating operation of described primary control program and other software when described primary control program detection module judges that primary control program can normally start;
The primary control program download module, be used for when described primary control program detection module judges that primary control program can not normally start, from the new primary control program of downloaded that is connected with described terminal, the primary control program that covering can not normally start, described primary control program download module is also controlled described new primary control program and other software carries out updating operation.
The embodiment of the invention a kind of terminal also is provided, described terminal comprises the terminal software upgrading device that the embodiment of the invention provides.
The embodiment of the invention is met in escalation process after fault starts shooting again, whether the primary control program of sense terminals normally starts, if can normally start, then proceed the upgrading of primary control program and other software, if primary control program can not normally start, then download the upgrading that new primary control program is proceeded primary control program and other softwares, can not normally use even guaranteed that primary control program is impaired, also can proceed upgrading, save time and storage resources that upgrading takies.
Description of drawings
The process flow diagram of the method for updating terminal software that Fig. 1 provides for preferred embodiment of the present invention;
The structured flowchart of the terminal software upgrading device that Fig. 2 provides for preferred embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is met in escalation process after fault starts shooting again, whether the primary control program of sense terminals normally starts, if can normally start, then proceed the upgrading of primary control program and other software, if primary control program can not normally start, then download the upgrading that new primary control program is proceeded primary control program and other softwares.
Fig. 1 shows the flow process of the method for updating terminal software that preferred embodiment of the present invention provides, and is specific as follows:
Step S101, the primary control program of terminal sends upgrade request to server, requires to carry out software upgrading, and in specific implementation process, terminal is when carrying out software upgrading, and its primary control program sends upgrade request to server, comprises system version number in this request;
Step S102, server is judged this terminal according to the version number in the upgrade request that receives, and whether needs are upgraded, and if desired, carry out step S103, otherwise stop;
Step S103, server return the upgrade software tabulation, comprise all in this tabulation and need upgrading software, certainly, also comprise primary control program;
Step S104, terminal is obtained the upgrade software tabulation that server returns, and carries out software upgrading, and judges whether all software of upgrading, if then carry out step S110, otherwise carry out step S105;
Step S105, terminal judges according to primary control program name and the tabulation of the upgrade software that receives whether the current upgrading software of wanting is primary control program, if then carry out step S106, otherwise carry out step S108;
Step S106 is made as 1 with the primary control program zone bit of upgrading;
Step S107 judges whether primary control program upgrading normal, if in escalation process, whether run into fault, for example dump in the customer upgrade procedure, network failure etc. appears, carry out step S111, if upgrading is normal, carry out step S108;
Step S108 when program is finished upgrading, judges whether it is that the primary control program upgrading is finished, if then carry out step S109, otherwise carry out step S104;
Step S109 is made as 0 with the primary control program zone bit of upgrading, and returns step S104;
Step S110 revises system version number;
Step S111, restarting systems;
Step S112, the primary control program upgrading zone bit of judgement terminal if zone bit is 0, then carries out step S101, otherwise carries out step S113;
Step S113 sends message to primary control program;
Step S114 judges whether to receive the answer message of primary control program, if receive, shows that then primary control program normally starts, the zone bit of primary control program is made as 0 after, carry out step S101; If do not receive, show that primary control program can not normally start, and carries out step S115;
Step S115 is from the new primary control program of downloaded that is connected with terminal, the primary control program that covering can not normally start;
Step S116 moves new primary control program, and returns step S112, can normally start up to the new primary control program of downloading, and, can receive the message that primary control program is replied in step S114 that is.
Pass through above-mentioned steps, guaranteed that fully primary control program can carry out, even guarantee the time to run into fault and cause to proceed upgrading under primary control program upgrading failure, the out of use situation carrying out the primary control program upgrading,, guaranteed that also other software successfully upgrades by the continuation upgrading of primary control program.
Fig. 2 shows the structure of the terminal software upgrading device that preferred embodiment of the present invention provides.
This terminal software upgrading device comprises that upgrade software judge module 21, upgrade software are preserved module 22, module 23, primary control program detection module 24, updating operation control module 25 and primary control program download module 26 are restarted in system.Wherein, primary control program detection module 24 also comprises upgrading zone bit judge module 241 and information receiving and transmitting module 242.
In specific implementation process, when terminal carries out in the software upgrade process meeting fault, for example detect such as power supply break, during situation such as network interruption, upgrade software judge module 21 judges that needing upgrade software whether all to upgrade finishes.
After described upgrade software judge module 21 judged that software upgradings are finished, upgrade software was preserved module 22 and is revised that upgrading software version number is a recent systems version number.
Afterwards, module 23 restarting systems are restarted in system.
After system restart, primary control program detection module 24 judges whether the primary control program of described terminal normally starts, wherein:
Whether the upgrading zone bit of the primary control program of upgrading zone bit judge module 241 by detecting described terminal is to need the upgrading zone bit to judge whether primary control program has upgraded to finish;
When the primary control program upgrading of the described terminal of described upgrading zone bit judge module 241 detections was finished, updating operation control module 25 other softwares of control carried out updating operation;
The primary control program upgrading that detects described terminal when described upgrading zone bit judge module 241 imperfect tense, whether information receiving and transmitting module 242 sends message to described primary control program, reply message and judge whether described primary control program can normally start according to receiving.
When described information receiving and transmitting module 242 is received the answer message of primary control program, show that this primary control program can normally start, updating operation control module 25 is proceeded the upgrading of described primary control program and other softwares;
When described information receiving and transmitting module 242 is not received the answer message of primary control program, the downloaded new primary control program of primary control program download module 26 from being connected with described terminal, the primary control program that covering can not normally start, described primary control program download module 26 are also controlled new primary control program and other software downloaded again and are carried out updating operation.
The embodiment of the invention also provides a kind of terminal, and this terminal comprises the terminal software upgrading device that the embodiment of the invention provides, and in view of this installs in above existing detailed description, repeats no more herein.
The embodiment of the invention is met in escalation process after fault starts shooting again, whether the primary control program of sense terminals normally starts, if can normally start, then proceed the upgrading of primary control program and other software, if primary control program can not normally start, then download the upgrading that new primary control program is proceeded primary control program and other softwares, can not normally use even guaranteed that primary control program is impaired, also can proceed upgrading, save time and storage resources that upgrading takies.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. a method for updating terminal software is characterized in that, said method comprising the steps of:
When terminal carries out meeting fault in the software upgrade process, restarting systems;
Whether the primary control program of judging described terminal normally starts;
When described primary control program can normally start, carry out the updating operation of described primary control program and other software;
When described primary control program can not normally start,, carry out the described new primary control program and the updating operation of other software from the new primary control program of downloaded that is connected with described terminal.
2. method for updating terminal software as claimed in claim 1 is characterized in that, before the step whether primary control program of judging described terminal normally starts, described method also comprises:
Whether the primary control program of judging described terminal has been upgraded and has been finished;
When described primary control program has been upgraded when finishing, under the control of the described primary control program finished of having upgraded, carry out the updating operation of other software;
Do not upgrade when finishing when described primary control program, judge the step whether the terminal primary control program normally starts.
3. method for updating terminal software as claimed in claim 1 is characterized in that, behind the primary control program new from the downloaded that is connected with described terminal, described method also comprises:
Whether the new primary control program of judging described download can normally start, if then cover the primary control program that can not normally start, and carry out the upgrading of described new primary control program, otherwise download primary control program again.
4. as claim 1 or 3 described method for updating terminal software, it is characterized in that the step whether described primary control program of judging described terminal normally starts specifically comprises:
Send message to described primary control program, and judge whether to receive answer message;
If receive answer message, then proceed the updating operation of described primary control program and other software, if do not receive answer message, then the new primary control program of downloaded from being connected with described terminal.
5. method for updating terminal software as claimed in claim 1 is characterized in that, and is described when terminal carries out meeting fault in the software upgrade process, in the step of restarting systems, also comprises:
Judging needs the upgrade software success of whether all having upgraded, if, restarting systems after revising system version number then, otherwise direct restarting systems.
6. a terminal software upgrading device is characterized in that, described device comprises:
Module is restarted in system, is used for when terminal is carried out software upgrade process chance fault restarting systems;
The primary control program detection module, be used for system restart after, judge that whether the primary control program of described terminal normally starts;
The updating operation control module is used for carrying out the updating operation of described primary control program and other software when described primary control program detection module judges that primary control program can normally start;
The primary control program download module, be used for when described primary control program detection module judges that primary control program can not normally start, from the new primary control program of downloaded that is connected with described terminal, the primary control program that covering can not normally start is controlled described new primary control program and other software then and is carried out updating operation.
7. terminal software upgrading device as claimed in claim 6 is characterized in that, described primary control program detection module specifically comprises upgrading zone bit judge module and information receiving and transmitting module:
Whether the upgrading zone bit that described upgrading zone bit judge module is used to detect the primary control program of described terminal is upgrading complement mark position;
When the primary control program upgrading that detects described terminal when described upgrading zone bit judge module was finished, described updating operation control module was controlled other software and is carried out updating operation;
The primary control program upgrading that detects described terminal when described upgrading zone bit judge module imperfect tense, whether the information receiving and transmitting module sends message to described primary control program, reply message and judge whether described primary control program can normally start according to receiving.
8. terminal software upgrading device as claimed in claim 6 is characterized in that, described device also comprises:
The upgrade software judge module is used for carrying out software upgrade process when meeting fault in terminal, and judging needs the upgrade software success of whether all having upgraded;
Upgrade software is preserved module, is used for after described upgrade software judge module judges that software successfully upgrade modification system version number.
9. terminal software upgrading device as claimed in claim 6 is characterized in that, described primary control program detection module is used to also judge whether the new primary control program of described download can normally start.
10. a terminal is characterized in that, described terminal comprises each described terminal software upgrading device of claim 6 to 9.
CN2009101895249A 2009-11-20 2009-11-20 Method and apparatus for upgrading terminals and software thereof Pending CN102073508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101895249A CN102073508A (en) 2009-11-20 2009-11-20 Method and apparatus for upgrading terminals and software thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101895249A CN102073508A (en) 2009-11-20 2009-11-20 Method and apparatus for upgrading terminals and software thereof

Publications (1)

Publication Number Publication Date
CN102073508A true CN102073508A (en) 2011-05-25

Family

ID=44032054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101895249A Pending CN102073508A (en) 2009-11-20 2009-11-20 Method and apparatus for upgrading terminals and software thereof

Country Status (1)

Country Link
CN (1) CN102073508A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622254A (en) * 2012-03-12 2012-08-01 深圳市酷开网络科技有限公司 Method and system for processing television outage
CN103197597A (en) * 2013-04-09 2013-07-10 上海维宏电子科技股份有限公司 Method for upgrade control of motion control system separated from human-computer interaction interface
CN103530139A (en) * 2012-07-04 2014-01-22 中兴通讯股份有限公司 Mobile terminal upgrading method, system and equipment
CN105354060A (en) * 2015-11-04 2016-02-24 深圳市创维软件有限公司 Wifi module firmware upgrade method and apparatus based on set-top box
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN105740001A (en) * 2014-12-10 2016-07-06 中兴通讯股份有限公司 Method and apparatus for hot patch upgrading in process initialization stage, and terminal device
CN107844312A (en) * 2017-11-06 2018-03-27 深圳市新国都技术股份有限公司 A kind of software upgrading monitoring method and system
CN108513169A (en) * 2018-04-04 2018-09-07 青岛海信电器股份有限公司 A kind of chip downloads method, chip and the LCD TV of startup program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859174A (en) * 2005-12-06 2006-11-08 上海华为技术有限公司 Upgrading method and its system for remote equipment in communication network
CN101316190A (en) * 2008-07-18 2008-12-03 中兴通讯股份有限公司 Equipment software upgrading method for reducing number of service interruption
CN101383847A (en) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 Firmware upgrading method and device for wireless data terminal
CN101472050A (en) * 2007-12-27 2009-07-01 Tcl集团股份有限公司 Method and system for updating software, digital television receive terminal and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859174A (en) * 2005-12-06 2006-11-08 上海华为技术有限公司 Upgrading method and its system for remote equipment in communication network
CN101472050A (en) * 2007-12-27 2009-07-01 Tcl集团股份有限公司 Method and system for updating software, digital television receive terminal and server
CN101316190A (en) * 2008-07-18 2008-12-03 中兴通讯股份有限公司 Equipment software upgrading method for reducing number of service interruption
CN101383847A (en) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 Firmware upgrading method and device for wireless data terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
B.E.FISHER: "《Floorward thinking》", 《ENVIRONMENTAL HEALTH PERSPECTIVES》 *
付艳丽 等: "大孔吸附树脂分离杭白菊中总黄酮的工艺优选", 《中国实验方剂学杂志》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622254A (en) * 2012-03-12 2012-08-01 深圳市酷开网络科技有限公司 Method and system for processing television outage
CN102622254B (en) * 2012-03-12 2015-09-30 深圳市酷开网络科技有限公司 Television outage disposal route and system
CN103530139A (en) * 2012-07-04 2014-01-22 中兴通讯股份有限公司 Mobile terminal upgrading method, system and equipment
CN103530139B (en) * 2012-07-04 2016-09-28 中兴通讯股份有限公司 A kind of method of updating mobile terminal, system and equipment
CN103197597A (en) * 2013-04-09 2013-07-10 上海维宏电子科技股份有限公司 Method for upgrade control of motion control system separated from human-computer interaction interface
CN103197597B (en) * 2013-04-09 2015-11-04 上海维宏电子科技股份有限公司 The method that the upgrading of the kinetic control system be separated with human-computer interaction interface controls
CN105740001A (en) * 2014-12-10 2016-07-06 中兴通讯股份有限公司 Method and apparatus for hot patch upgrading in process initialization stage, and terminal device
CN105354060A (en) * 2015-11-04 2016-02-24 深圳市创维软件有限公司 Wifi module firmware upgrade method and apparatus based on set-top box
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN107844312A (en) * 2017-11-06 2018-03-27 深圳市新国都技术股份有限公司 A kind of software upgrading monitoring method and system
CN108513169A (en) * 2018-04-04 2018-09-07 青岛海信电器股份有限公司 A kind of chip downloads method, chip and the LCD TV of startup program
CN108513169B (en) * 2018-04-04 2021-09-24 海信视像科技股份有限公司 Method for downloading starting program from chip, chip and liquid crystal television

Similar Documents

Publication Publication Date Title
CN102073508A (en) Method and apparatus for upgrading terminals and software thereof
CN100407638C (en) Method for software upgrading and withdrawing
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
CN103207791B (en) Remote upgrade method, system and data terminal
CN100545809C (en) A kind of method for upgrading software and system thereof
CN109491698B (en) System updating method and device based on hot patch
CN102110000A (en) Method, device and equipment for controlling software for auto-updating
CN101697133A (en) Software upgrading method, software upgrading system and client
CN102073517A (en) Upgrading and backup method and device for embedded system
JP2006268172A (en) Server system and method for updating online software
CN102830984A (en) Method for updating firmware, chip and communication terminal
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN104750515A (en) Firmware version upgrading method and system
CN103064715A (en) Remote upgrade method and system for automatic drive test systems
CN106095621B (en) The restoration methods and system that Launcher is operating abnormally in a kind of Android system
CN101656627A (en) Method and device for restoring main program and network equipment
CN103677864A (en) Method for upgrading software and terminal
CN101639785A (en) Method and device for software updating
CN102236764A (en) Method and monitoring system for Android system to defend against desktop information attack
CN106775674A (en) A kind of equipment and its startup method based on universal guiding loading procedure
CN101207519A (en) Version server, operation maintenance unit and method for restoring failure
CN111104137B (en) OTA equipment upgrading method and device
CN105094873A (en) Handheld terminal system switching method and device
CN111338660A (en) Method, system, equipment and storage medium for checking batch installation results of operating systems
CN101136960B (en) Method for implementing veneer automatic identification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110525