CN102360298B - Software upgrading method of terminal equipment - Google Patents

Software upgrading method of terminal equipment Download PDF

Info

Publication number
CN102360298B
CN102360298B CN201110290793.1A CN201110290793A CN102360298B CN 102360298 B CN102360298 B CN 102360298B CN 201110290793 A CN201110290793 A CN 201110290793A CN 102360298 B CN102360298 B CN 102360298B
Authority
CN
China
Prior art keywords
terminal
releases
software
memory
upgrade file
Prior art date
Application number
CN201110290793.1A
Other languages
Chinese (zh)
Other versions
CN102360298A (en
Inventor
翟建利
李霞
Original Assignee
青岛海信电器股份有限公司
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 青岛海信电器股份有限公司 filed Critical 青岛海信电器股份有限公司
Priority to CN201110290793.1A priority Critical patent/CN102360298B/en
Publication of CN102360298A publication Critical patent/CN102360298A/en
Application granted granted Critical
Publication of CN102360298B publication Critical patent/CN102360298B/en

Links

Abstract

The invention discloses a software updating method of terminal equipment. The terminal equipment comprises a first memory. The software updating method comprises the following steps of: step 1, updating original edition software of the terminal equipment to a middle edition by adopting an updating file of the middle edition in a mobile storage device through the terminal equipment; step 2, recording mark information in the middle edition software, the mark information representing to update the terminal equipment to the middle edition from the original software edition; step 3, the middle edition software executing a data backup operation on the first memory; step 4, updating the middle edition software to a target edition by an updating file of the target edition in the mobile storage device through the terminal equipment; and step 5, executing a data reduction operation on the first memory. According to the method disclosed by the invention, a data backup function is realized in the system of the terminal equipment, so that the software and plugs which are installed by a user, use recordings, registration information and the like are prevented from being lost in the process of updating and the method is good in use experience.

Description

A kind of method for upgrading software of terminal device

Technical field

The present invention relates to the upgrade method of software, relate in particular to a kind of method for upgrading software of terminal device.

Background technology

It has been trend of the times that Digital Television replaces simulated television, in a lot of areas, has all carried out the conversion of simulated television to Digital Television.Due to the software systems more complicated of Digital Television, and software systems can be constantly updated.Therefore the software system updating of Digital Television has just become to need the problem of solution.

In the upgrade method of existing digital television software, having a kind of is that upgrade image file is kept to mobile storage means for example under the predetermined directories of USB flash disk.In end device, after startup upgrading flow process, being about to above-mentioned image file writes in Digital Television internal storage in a covered manner.This upgrade method overall flow is simple, easy to operate, is specially adapted to contact staff and visits while safeguarding and to use.

Yet this covering upgrading mode can be wiped all data in internal storage completely, inevitably can cause the loss of data.

Summary of the invention

In view of this, be necessary to provide a kind of method for upgrading software of the terminal device that can back up user data in escalation process.

The embodiment of the present invention provides a kind of method for upgrading software of terminal device.Described terminal device comprises first memory, described method for upgrading software comprises: step 1: by a flash memory device access terminal equipment, start the built-in ROMPaq of terminal device, to start upgrading flow process, the upgrade file that terminal device adopts an intermediate releases in a flash memory device is by original software release upgrade of the built-in ROMPaq of terminal device to intermediate releases, and intermediate releases is on the basis of original software version of the built-in ROMPaq of terminal device, to have added when upgrading, first to carry out the version of data backup function; Step 2: intermediate releases record mark information, flag information represents that terminal device is from original software release upgrade to intermediate releases; Step 3: intermediate releases is to first memory executing data backup operation, and the data backup that first memory need to be backed up is to flash memory device; Step 4: after completing data backup, terminal device adopts the upgrade file of a target version in flash memory device that intermediate releases is upgraded to target version; And step 5: to the restoring operation of first memory executing data, the data that back up in flash memory device are reduced in first memory.

In the method for upgrading software of the terminal device of the present embodiment, by introducing intermediate releases, in the system of terminal device, realize the function of data backup, software, plug-in unit, use record and the log-on message etc. that can prevent user installation are lost in escalation process, make user have good experience.

For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate appended graphicly, be described in detail below.

Accompanying drawing explanation

The process flow diagram of the method for upgrading software of the terminal device that Fig. 1 provides for first embodiment of the invention.

The process flow diagram of the method for upgrading software of the terminal device that Fig. 2 provides for second embodiment of the invention.

The process flow diagram of the method for upgrading software of the terminal device that Fig. 3 provides for third embodiment of the invention.

The process flow diagram of the method for upgrading software of the terminal device that Fig. 4 provides for fourth embodiment of the invention.

The process flow diagram of the method for upgrading software of the terminal device that Fig. 5 provides for fifth embodiment of the invention.

The process flow diagram of the method for upgrading software of the terminal device that Fig. 6 provides for sixth embodiment of the invention.

The process flow diagram of the method for upgrading software of the terminal device that Fig. 7 provides for seventh embodiment of the invention.

Embodiment

For further setting forth the present invention, realize technological means and the effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, embodiment, structure, feature and effect thereof to the method for upgrading software of the terminal device proposing according to the present invention, be described in detail as follows.

The first embodiment

Refer to Fig. 1, the process flow diagram of the method for upgrading software of the terminal device that it provides for the first embodiment.First, execution step 110, starts upgrading flow process.Particularly, can be first by a flash memory device access terminal equipment, and press button predetermined on terminal device or key combination to start the built-in ROMPaq of terminal device.Terminal device for example can be Digital Television, Set Top Box, router, home gateway etc. herein.Terminal device can comprise main control chip, first memory, second memory and USB interface.Wherein first memory is primary memory, has larger space, for storing first floor system software, the user data of Digital Television.User data is such as software, plug-in unit, use record and the log-on message etc. that comprise installation.Second memory for example, for storing the information that can not change on a small quantity, the physical address of built-in network interface card (MAC Address).First memory for example can comprise the first subregion and the second subregion, and wherein the first subregion is mainly used in storing the first floor system of Digital Television, and the second subregion is used for storing user data.

Step 120, terminal device reads the upgrade file of an intermediate releases from flash memory device.Intermediate releases herein refers to have added on the basis of the original software version of end device and when upgrading, first carries out the version of data backup function.In other words, than original software version, the functional module that intermediate releases has been revised ROMPaq or add self-starting in intermediate releases.

Step 130, upgrade to intermediate releases.Upgrade to the operation that only relates to first memory the first subregion in intermediate releases process, that is to say, after upgrading to intermediate releases, the user data of the second subregion still retains.In addition, be appreciated that first memory is not limited to comprise two subregions, it can comprise more subregion, but in general, first floor system software can be installed in the first subregion, and the process that therefore upgrades to intermediate releases can't affect other subregions.

Step 140, after upgrading to intermediate releases, starts upgrading flow process again.Because intermediate releases is revised for ROMPaq, after startup upgrading flow process, can first carry out newly-increased function (for example data backup) rather than directly carry out updating operation.

Step 150, as mentioned above, first the ROMPaq of intermediate releases can carry out the operation of data backup, and particularly, the data backup that the needs in first memory the second subregion are backed up is to flash memory device.While carrying out data backup, can be directly related data to be copied in flash memory device, or form the image file of the second subregion of first memory, and this image file is stored in flash memory device.Whether need backup to customize according to user's demand.For example, the list of needs backup is saved in a configuration file, when executing data backup operation, reads this inventory, and complete data backup operation according to inventory.When inventory is sky, although carried out the flow process of data backup, in fact may not have data to be backed up.

Step 160, after completing data backup, terminal device reads the file of target version from flash memory device.Target version refers to the version that will be upgraded to, and it can provide the renewal of function, the contents such as improvement of defect.

Step 170, upgrades to target version.Because target version may adopt diverse framework with current version, in this escalation process, can comprise the operation that first memory is re-started to subregion.And after subregion again, in first memory, all data can be lost.

Step 180, after the upgrading that completes target version, is reduced to the data that back up in flash memory device in first memory.Particularly, Data Restore Handles Technique can be after target version has been upgraded, and by ROMPaq, is undertaken; Can also be after upgrading completes, equipment autoboot, restarts the rear restoring operation that automatically completes data.If backup is that the mode directly copying is carried out, backup file can be copied in the predetermined subregion of first memory; If backup is to carry out in the mode of image file, can adopts with image file and cover the predetermined subregion of first memory.As mentioned above, when data backup operates, can use configuration file, correspondingly, data reduction can adopt above-mentioned configuration file equally, and just, than data backup operation, the direction of its data mobile is just the opposite.

In the method for upgrading software of the terminal device of the present embodiment, by introducing intermediate releases, in the lowest version that data backup function is not provided, realize the function of data backup, software, plug-in unit, use record and the log-on messages etc. that can prevent user installation are all lost owing to first memory having been carried out to again the operation of subregion in escalation process, make user have good experience.

The second embodiment

Consult Fig. 2, the second embodiment provides a kind of method for upgrading software of terminal device, its rise to the software of the first embodiment and method similar, its difference is, intermediate releases, except data backup function, also has the function of password authentification.Correspondingly, between step 140 and step 150, also comprise step 210, the password of checking input.Only have and after password authentification is passed through, just continue the operations such as data backup and upgrading, otherwise upgrading flow process finishes.Password can directly adopt the hardware information of terminal device or adopt certain algorithm to carry out obtaining after computing to above-mentioned hardware information herein.Hardware information is such as can be the MAC Address of network interface card, the product ID of terminal device etc.These hardware informations are all generally unique, that is to say, a password is only effective to this terminal.

In the method for upgrading software of the terminal device of the present embodiment, owing to having added the function of password authentification, can prevent that general user from arbitrarily upgrading to the software of terminal device, be conducive to increase the stability of terminal device operation.

The 3rd embodiment

Consult Fig. 3, the 3rd embodiment provides a kind of method for upgrading software of terminal device, it is similar to software liter and the method for the first embodiment, its difference is, between step 120 and step 130, also comprise step 310, whether the upgrade file that judges intermediate releases is effective, just carry out follow-up step 130, otherwise upgrading flow process finishes while only having upgrade file when intermediate releases effective.Whether the upgrade file that judges intermediate releases herein effectively can be realized by reading the contents such as version number of upgrade file.For example, only have and when the basic version of intermediate releases and the version match of the current operation of terminal device, just think effectively.

In the method for upgrading software of the terminal device of the present embodiment, before the upgrading due to version between in commission, also comprise and judge the whether effective process of intermediate releases, can further avoid escalating into wrong intermediate releases.

The 4th embodiment

Consult Fig. 4, the 4th embodiment provides a kind of method for upgrading software of terminal device, it is similar to software liter and the method for the first embodiment, its difference is, between step 160 and step 170, also comprise step 410, whether the upgrade file that judges target version is effective, carry out step 170, otherwise the upgrading flow process of target version finishes while only having upgrade file when target version effective.Whether the upgrade file that judges target version herein effectively can be realized by reading the contents such as version number of target version upgrade file.For example, only have when the upgrade file reading belongs to normal version Shi Qieqi version number and just think effectively higher than current intermediate releases.

In the method for upgrading software of the terminal device of the present embodiment, owing to also comprising before the upgrading at performance objective version, judge whether effectively process of target version, can further avoid escalating into wrong target version.

The 5th embodiment

Consult Fig. 5, the 5th embodiment provides a kind of method for upgrading software of terminal device, and it is similar to software liter and the method for the second embodiment, and its difference is, between step 130 and step 140, further comprise step 510, in the precalculated position of second memory, write flag information.This step that writes flag information is realized by intermediate releases, particularly, after the upgrading that completes intermediate releases, need to restart terminal device with operation intermediate releases.Intermediate releases writes flag information in above-mentioned precalculated position when operation.This flag information represents that this terminal device has passed through the upgrade step of intermediate releases.

In the method for upgrading software of the terminal device of the present embodiment, because the precalculated position at second memory has write flag information.And information in second memory can't be destroyed in escalation process.Target version has the function that reads this flag information, and only has and read this flag information and judgement symbol information predetermined functional module in open object version when effective when target version, for example, carry out the functional module of Data Restore Handles Technique.Therefore, if ignore intermediate releases, directly and by force upgrade to target version, predetermined functional module can not be carried out.The method for upgrading software of the terminal device of the present embodiment can be controlled illegal updating operation, is convenient to the unification of Digital Television provider and safeguards.

The 6th embodiment

Consult Fig. 6, the 6th embodiment provides a kind of method for upgrading software of terminal device, and it is similar to software liter and the method for the first embodiment, and its difference is, also comprises step 610 between step 140 and step 160, also comprises step 620 after step 170.In step 610, the filename of target version upgrade file and intermediate releases upgrade file and storing path are exchanged.That is to say, after exchange, originally pointed to the path of intermediate releases and the upgrade file that filename points to target version now.The object of carrying out this step is, in a lot of lowest version digital television software systems, be all that the upgrade file that reads default name from a default path of flash memory device is upgraded, and intermediate releases may keep this characteristic equally.What read for terminal device in follow-up escalation process is correct target version upgrade file, target version upgrade file need to be stored under default path with default name.

In addition, after execution step 170, complete after the upgrading of target version, the method for upgrading software of the terminal device of the present embodiment also comprises step 620, the filename of target version upgrade file and intermediate releases upgrade file and storing path is exchanged to return back to initial state again and to facilitate, carry out next terminal device to upgrade.

The method for upgrading software of the terminal device of the present embodiment comprises intermediate releases and the upgrade file path of target version and the operation that filename exchanges to preserving in flash memory device, compatible with the digital television software system with lowest version, need not manually be intervened, further increased the convenience of contact staff when safeguarding.

In addition, the method for upgrading software of above-mentioned the 5th embodiment and the 6th embodiment also can carry out simultaneously, between step 130 and step 140, successively perform step 510 with step 610, and the sequencing of step 510 and step 610 there is no particular restriction, can arbitrarily exchange.

The 7th embodiment

Consult Fig. 7, the 7th embodiment provides a kind of method for upgrading software of terminal device, it is similar to software liter and the method for the first embodiment, its difference is, in the present embodiment, the function of data backup does not realize in ROMPaq, and it is for starting the functional module of self-starting with terminal device.Correspondingly, the step 140 of the first embodiment is replaced by the step 710 of the present embodiment.After operation intermediate releases, automatically performed data backup operation.Because ROMPaq is different from the running environment of the system of terminal device, comparatively speaking, the function that realizes data backup in the system of terminal device is more prone to.Therefore adopt the mode of the present embodiment for developer, to be more easy to realize.

The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any brief introduction of above embodiment being done according to technical spirit of the present invention is revised, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (10)

1. a method for upgrading software for terminal device, described terminal device comprises first memory, it is characterized in that, described method for upgrading software comprises:
Step 1 a: flash memory device is accessed to described terminal device, start the built-in ROMPaq of described terminal device, to start upgrading flow process, the upgrade file that described terminal device adopts an intermediate releases in a flash memory device is by original software release upgrade of the built-in ROMPaq of terminal device to described intermediate releases, and described intermediate releases is on the basis of original software version of the built-in ROMPaq of described terminal device, to have added when upgrading, first to carry out the version of data backup function;
Step 2, described intermediate releases record mark information, described flag information represents that described terminal device is from described original software release upgrade to described intermediate releases;
Step 3: described intermediate releases is to described first memory executing data backup operation, and the data backup that described first memory need to be backed up is to described flash memory device;
Step 4: after completing data backup, described terminal device adopts the upgrade file of a target version in described flash memory device that described intermediate releases is upgraded to described target version; And
Step 5: to the restoring operation of described first memory executing data, the data that back up in described flash memory device are reduced in described first memory.
2. the method for upgrading software of terminal device as claimed in claim 1, is characterized in that, described terminal device also comprises second memory, and step 2 comprises: in described second memory, precalculated position writes flag information.
3. the method for upgrading software of terminal device as claimed in claim 2, is characterized in that, described step 2 and step 5 are realized by the automatic start function module of described intermediate releases.
4. the method for upgrading software of terminal device as claimed in claim 2, is characterized in that, described step 5 comprises:
Move described target version;
Described target version reads described flag information;
Judge that whether described flag information is effective; And
Described in when described flag information is effective, target version is to the restoring operation of described first memory executing data.
5. the method for upgrading software of terminal device as claimed in claim 1, is characterized in that, before described step 3, also comprises: the password of checking input.
6. the method for upgrading software of terminal device as claimed in claim 1, is characterized in that, described step 1 comprises:
Described terminal device reads the upgrade file of the described intermediate releases in described flash memory device;
Whether the upgrade file that judges described intermediate releases is effective intermediate releases upgrade file;
The upgrade file that adopts described intermediate releases when terminal device described in the upgrade file of described intermediate releases is while being effective by the original software release upgrade of terminal device to described intermediate releases.
7. the method for upgrading software of terminal device as claimed in claim 1, is characterized in that, described step 4 comprises:
Described terminal device reads the upgrade file of the described target version in described flash memory device;
Whether the upgrade file that judges described target version is effective target version upgrade file;
When terminal device described in the upgrade file of described target version is while being effective adopts the upgrade file of described target version that described intermediate releases is upgraded to described target version.
8. the method for upgrading software of terminal device as claimed in claim 1, is characterized in that, before described step 3, also comprises: by the step of the upgrade file name of the upgrade file of described intermediate releases and described target version and path exchange.
9. the method for upgrading software of terminal device as claimed in claim 8, it is characterized in that, after step 5, also comprise: will be positioned at the upgrade file of described intermediate releases of described flash memory device and the step of the upgrade file name of described target version and path exchange.
10. the method for upgrading software of terminal device as claimed in claim 1, it is characterized in that, described first memory comprises the first subregion and the second subregion, while upgrading to described intermediate releases, relate to described the first subregion, while upgrading to described target version, comprise the operation to described first memory again subregion.
CN201110290793.1A 2011-09-27 2011-09-27 Software upgrading method of terminal equipment CN102360298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110290793.1A CN102360298B (en) 2011-09-27 2011-09-27 Software upgrading method of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110290793.1A CN102360298B (en) 2011-09-27 2011-09-27 Software upgrading method of terminal equipment

Publications (2)

Publication Number Publication Date
CN102360298A CN102360298A (en) 2012-02-22
CN102360298B true CN102360298B (en) 2014-04-16

Family

ID=45585631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110290793.1A CN102360298B (en) 2011-09-27 2011-09-27 Software upgrading method of terminal equipment

Country Status (1)

Country Link
CN (1) CN102360298B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729261A (en) * 2012-10-15 2014-04-16 亚旭电脑股份有限公司 Operating system updating method and handheld electronic device
CN102880495A (en) * 2012-10-15 2013-01-16 华为终端有限公司 Mobile terminal and software upgrading method for same
CN104052818B (en) * 2014-06-27 2017-07-11 青岛海信移动通信技术股份有限公司 The version upgrading method and device of a kind of mobile terminal
CN104301383A (en) * 2014-09-05 2015-01-21 小米科技有限责任公司 Upgrading method, device and upgrading equipment
US9619244B2 (en) 2014-09-05 2017-04-11 Xiaomi Inc. Method and system for upgrading an electronic device
CN104980785A (en) * 2015-06-24 2015-10-14 冯旋宇 Data update method and system for set top box
CN105139127A (en) * 2015-08-25 2015-12-09 国网浙江省电力公司 Relay protection device, full container data cloning method and recovery method
CN105242950A (en) * 2015-11-12 2016-01-13 广州视睿电子科技有限公司 Display screen upgrading method and system
CN105389172B (en) * 2015-12-07 2018-09-14 深圳市金锐显数码科技有限公司 Application program updating method and apparatus
CN105657552A (en) * 2015-12-30 2016-06-08 惠州市伟乐科技股份有限公司 Set top box upgrading method capable of reserving user configuration
CN106648745B (en) * 2016-10-26 2020-08-04 腾讯科技(深圳)有限公司 Application upgrading control method and device
CN106843946A (en) * 2017-01-04 2017-06-13 努比亚技术有限公司 A kind of firmware update and terminal
CN107229501B (en) * 2017-06-30 2020-04-03 深圳市九洲电器有限公司 Set top box partition change upgrading method and system
CN110874237A (en) * 2019-12-30 2020-03-10 深圳市英博超算科技有限公司 Software upgrading method, device, terminal and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106773A (en) * 2006-07-14 2008-01-16 中兴通讯股份有限公司 Method for parameter keeping after software upgrade of wireless access fixing station
CN101931944A (en) * 2010-07-23 2010-12-29 华为终端有限公司 Method, device and system for updating terminal patches on line

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100848142B1 (en) * 2003-11-04 2008-07-23 한국전자통신연구원 Apparatus and Method for Receiving Data Broadcasting Service to Support a Connection with Mobile Networks
CN1924821A (en) * 2005-08-31 2007-03-07 明基电通股份有限公司 Firmware renewing system and method
CN102156652A (en) * 2011-04-26 2011-08-17 中兴通讯股份有限公司 Mobile terminal and updating method for mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106773A (en) * 2006-07-14 2008-01-16 中兴通讯股份有限公司 Method for parameter keeping after software upgrade of wireless access fixing station
CN101931944A (en) * 2010-07-23 2010-12-29 华为终端有限公司 Method, device and system for updating terminal patches on line

Also Published As

Publication number Publication date
CN102360298A (en) 2012-02-22

Similar Documents

Publication Publication Date Title
JP6018590B2 (en) Application compatibility with library operating system
US9319822B2 (en) Over-the-air update method for continuous delta of an Android operating system of a handheld device
CN102255888B (en) Method and apparatus data storage device being carried out security sweep from remote server
CN102349062B (en) Method and system for synchronizing browser caches across devices and web services
TWI386846B (en) Method, system and flash memory component for initializing multiple processing components utilizing a shared nonvolatile memory
TW591416B (en) Localized read-only storage device for distributing files over a network
CN101589592B (en) Multi-protocol removable storage device
AU2012347883B2 (en) System and method for restoring application data
US8250567B2 (en) Robust firmware upgrade in a network terminal
US8209290B1 (en) Generic granular restore of application data from a volume image backup
US7991988B2 (en) Communication device and firmware update method thereof
CN101452435B (en) USB terminal mode switching method and terminal
CN106095620B (en) A kind of development approach of built-in Linux partition holding
CN100426238C (en) VEX - virtual extension framework
US8341386B2 (en) Method for updating basic input/output system and method for repairing thereof
US9436557B2 (en) Method and computation node for processing application data
US20140325664A1 (en) Systems and methods for replacing application methods at runtime
CN103150231B (en) The method of computer booting and computer system
CN102012831B (en) Over-the-air technology (OTA) upgrading method based on Linux platform
US9026718B2 (en) Method and apparatus for fault tolerant FOTA update with single backup block write
JP2008123139A (en) Game device and information processing unit
WO2011024688A1 (en) Firmware update system, and information apparatus, as well as program
CN102419803B (en) Method, system and device for searching and killing computer virus
CN104166561B (en) Electronic apparatus system starts method and electronic equipment
CN100474247C (en) Method for updating firmware in computer server systems

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