CN102841793A - Software upgrading method and terminal - Google Patents
Software upgrading method and terminal Download PDFInfo
- Publication number
- CN102841793A CN102841793A CN 201110170104 CN201110170104A CN102841793A CN 102841793 A CN102841793 A CN 102841793A CN 201110170104 CN201110170104 CN 201110170104 CN 201110170104 A CN201110170104 A CN 201110170104A CN 102841793 A CN102841793 A CN 102841793A
- Authority
- CN
- China
- Prior art keywords
- version file
- software
- backup
- terminal
- file
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a software upgrading method and a terminal. The software upgrading method is applied to the terminal and comprises the following steps of: storing a running version file and a backup version file of software in the terminal, wherein the running version file comprises information for ensuring normal running and upgrade of the software; the backup version file comprises configuration information for being connected with an upgrading server of the software; when the running version file of the software is detected to be invalid or the upgrade fails, according to the configuration information configured in the backup version file, initiating an upgrading request to the upgrading server by the terminal for re-upgrading and re-updating the running version file. After adoption of the software upgrading method and the terminal, under the conditions that the running version file of the software is destroyed or there is no running version file, the backup version file is connected with the upgrading server to restore the running version file, so that the running reliability of the software is ensured, the normal running of a product business is not affected, and the memory occupied by the backup version is greatly reduced.
Description
Technical field
The present invention relates to the communications field, and relate to a kind of upgrade method and terminal of software.
Background technology
Have in the terminal of computer application system and embedded system in operation, it is very common operation that software is carried out edition upgrading.For reliability and the ease for use that improves updating operation, two versions can be preserved usually in the terminal in storer, and one is the operation version, and one is backup version.As shown in Figure 1; Online upgrading flow process commonly used is: when upgrading, operation version and upgrade server carry out alternately, download redaction and use redaction to upgrade backup version; The backup version that has become redaction then becomes the operation version, and former operation version becomes backup version.When the operation version lost efficacy, backup version is moved as new operation version, to substitute the operation version that lost efficacy.
But there are two problems in this method: (1) is for same software; Its operation version and the backup version preserved in the terminal are identical; After the operation version is destroyed, call the mechanism of identical backup version operation, can't guarantee the version reliability of operation; (2) operation version and backup version all is formally to use version, and the memory headroom that takies is very big, and present, the cost of internal memory is increasingly high, and this is that the method for means is very big test to the cost consumption at terminal with many committed memories.
Summary of the invention
The problem that the present invention will solve provides a kind of upgrade method and terminal of software, to guarantee taking few content space of trying one's best under the reliable prerequisite of version.
For addressing the above problem, the invention provides a kind of upgrade method of software, be applied to comprise in the terminal:
Preserve the operation version file and the backup version file of said software in the said terminal; Wherein, include the information that is used to guarantee normal operation of said software and upgrading in the said operation version file; The configuration information that includes the upgrade server that is used to connect said software in the said backup version file;
When the operation version file that detects said software lost efficacy or upgraded failure; Upgrade request is initiated to said upgrade server again according to the said configuration information that disposes in the said backup version file in said terminal, to the renewal of upgrading again of said operation version file.
Further,
The operation version file and the backup version file of said software are stored in the different storage zone at said terminal.
Further, said method also comprises:
When receiving the modification information of the configuration information that is directed against the upgrade server that connects said software, said terminal is upgraded the operation version file of said software and the corresponding information in the backup version file.
Further, said method also comprises:
When in knowing said upgrade server, disposing the highest version file of said backup version file; Said terminal is under the normal situation of operation version file of confirming said software; Obtain said highest version file from said upgrade server, said backup version file is upgraded.
Correspondingly, the present invention also provides a kind of terminal, comprising:
Memory module is used to preserve the operation version file and the backup version file of software; Wherein, include the information that is used to guarantee normal operation of said software and upgrading in the said operation version file; The configuration information that includes the upgrade server that is used to connect said software in the said backup version file;
The verification module is used for when the operation version file that detects said software lost efficacy or upgraded failure, in said memory module, searching the backup version file of whether preserving said software;
Update module, the said configuration information that is used for disposing according to the said backup version file that said verification module finds is initiated upgrade request to said upgrade server again, to the renewal of upgrading again of said operation version file.
Further,
Said memory module is used for the operation version file of said software and backup version file are kept in the different storage zone.
Further,
Said update module also is used for when receiving the modification information of the configuration information that is directed against the upgrade server that connects said software, the operation version file of said software and the corresponding information in the backup version file being upgraded.
Further,
Said update module also is used for when knowing that said upgrade server disposes the highest version file of said backup version file; Under the normal situation of operation version file of confirming said software; Obtain said highest version file from said upgrade server, said backup version file is upgraded.
After adopting the present invention; Can be destroyed or do not have under the situation of operation version file and use the backup version file to connect upgrade server at the running software version file; The version file that resumes operation, thus the reliability of running software guaranteed, and do not influence the professional normal operation of product.Because the backup version file only comprises the upgrade function of only a few, therefore greatly reduce the shared internal memory of backup version simultaneously, reduced the cost at terminal.
Description of drawings
Fig. 1 is that the software upgrade method process flow diagram is carried out at the terminal in the prior art;
Fig. 2 is the upgrade method process flow diagram of software in the embodiment of the invention;
Fig. 3 is the upgrade method detailed process process flow diagram of software in the applying examples of the present invention;
Fig. 4 is the structured flowchart at terminal in the embodiment of the invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, hereinafter will combine accompanying drawing that embodiments of the invention are elaborated.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
In the present embodiment, a kind of upgrade method of software is applied in the terminal, and is as shown in Figure 2, comprising:
Preserve the operation version file and the backup version file of above-mentioned software in step 10, the said terminal; Wherein, include the information that is used to guarantee normal operation of this software and upgrading in the operation version file; The configuration information that includes the upgrade server that is used to connect this software in the backup version file;
Step 20, lost efficacy or during the upgrading failure at the operation version file that detects this software; Upgrade request is initiated to upgrade server again according to the above-mentioned configuration information that disposes in the said backup version file in the terminal, to the renewal of upgrading again of above-mentioned operation version file.
Because therefore the size of backup version file can save memory headroom much smaller than the operation version file, has reduced the cost at terminal.
In addition, in order further to guarantee the independence of operation version and backup version, can the backup version file of same software be stored in the different memory areas at terminal with the operation version file.Because the independent rows of the two, so after the operation version file is destroyed, can't influence the normal use of backup version file.
When receiving the modification information of the configuration information that is directed against the upgrade server that connects this software, the terminal can be upgraded the operation version file of this software and the corresponding information in the backup version file.
In addition; When in knowing upgrade server, disposing the highest version file of above-mentioned backup version file; The terminal can obtain the highest version file of this backup version file from upgrade server under the normal situation of operation version file of confirming this software, the local backup version file is upgraded.If the operation version file of this software is destroyed, then the backup version file is not carried out updating operation to prevent to destroy the backup version file.
In sum; The terminal can independent operating software the operation version file and do not need the backup version file, but do not having not allow under backup version file or the ruined situation of backup version file upgrading operation version file can't recover after moving version file is destroyed preventing.Because operation version file and backup version file is separate, and do not allow another version file of upgrading when a version file is destroyed therein, therefore reached the purpose that related software normally moves in the protection terminal.
In addition, when carrying out edition upgrading, the version file of highest version can be downloaded to the corresponding region, avoided version rotate that two version files causing in the process damage simultaneously maybe.That is to say; Though be to use two version files to guarantee the security of running software equally; The present invention has avoided effectively because version is rotated or the synchronously caused impaired possibility of two version files while of version, and, because only having comprised, the backup version file connects the required essential information of upgrade server; Significantly reduce the shared memory headroom of backup version file, reduced the cost at terminal effectively.
Concrete, as shown in Figure 3, the terminal can be checked the version file state of this software earlier when software is to be upgraded; Under the complete situation of operation version file, can preferentially call the operation version file, and, according to set protection mechanism; Before the operation version file was upgraded, at first whether the backup version file in the detection system was normal, if the backup version file is also normal; Then allow to move the upgrading of version file; If the backup version file is damaged or the terminal in do not preserve the backup version file of this software, then do not allow the operation version file of this software is upgraded, in case the operation version file can't recover after being damaged.And, under the normal state of operation version file, can connect upgrade server upgrading backup version file through the operation version file.
Damaged or do not moved version file if detect the operation version file of this software during starting terminal, then used the backup version file of this software to connect upgrade server with renewal that the operation version file of this software is upgraded.Equally, damaged or do not moved under the situation of version file, do not allowed to upgrade the backup version file and after preventing the damaging backup version file, can't recover at the operation version file.
Below will be the operation version file of certain software being upgraded and causes the operation version file to damage the back and use the backup version file of this software to connect upgrade server with the version file that resumes operation, and the scene of launching this software is that example is described the present invention.
(1) terminal provides different storage areas to store for the operation version file of this software respectively with the backup version file;
(2) behind software startup, call the operation version file and carry out normal system configuration, for example network connection, long-range connection etc.The terminal is saved in relevant configuration in the backup version file synchronously;
(3) during on-line software updating, the terminal is called the operation version file and is carried out alternately with upgrade server, downloads new version file and arrives internal memory relevant position, terminal, and version updating is carried out in the verification of completion version afterwards.In renewal process, system cut-off, move version file and be destroyed this moment;
(4) after restarted at the terminal, the backup version file that calls this software was to connect upgrade server;
(5) terminal and upgrade server are upgraded to the backup version file alternately in advance; Download version is behind the relevant position of internal memory; Find that through the version verification operation version file is destroyed in the terminal, then, do not allow the backup version file of upgrading to user prompt version verification failure;
(6) the backup version file is called at the terminal; Utilize configuration information and upgrade server in the backup version file to move version file with upgrading alternately; Download the relevant position of the operation version file of highest version, after the version verification succeeds, the operation version file upgraded to upgrade operate to internal memory;
(7) accomplish terminal, upgrading back and restart, the operation version file of this software of terminal operating when restarting, and upgrade current configuration synchronously, the terminal returns to the operation version file and is destroyed state before, can normally use.
As stated; In practical application; Can also be according to the release status of reality; In the terminal, do not preserve under the situation of operation version file of certain software, through the configuration information that is used to connect upgrade server that disposes in the backup version file, directly to the renewal of upgrading of the operation version file of this software.Same, under the impaired situation of backup version file, launch the version verification scheme, the operation version file of forbidding upgrading is to reach the purpose of the normal operation of protection software.
As shown in Figure 4, the terminal of present embodiment comprises:
Memory module is used to preserve the operation version file and the backup version file of software; Wherein, include the information that is used to guarantee normal operation of this software and upgrading in the operation version file; The configuration information that includes the upgrade server that is used to connect said software in the backup version file; For guaranteeing the independence of two files, this memory module can be kept at the operation version file and the backup version file of this software in the different storage zone;
The verification module, except that basic version correctness verification, this module also is used for when the operation version file that detects software lost efficacy or upgraded failure, in said memory module, searching the backup version file of whether preserving this software; If no, then do not allow to upgrade;
Update module is used for finding under the situation of backup version file of this software in the verification module, and the operation version file that needs are upgraded is updated to respective regions, to prevent to destroy the subsequent use version file in another zone.
In addition, when update module also is used in the modification information that receives the configuration information that is directed against the upgrade server that connects this software, the operation version file of this software and the corresponding information in the backup version file are upgraded; Also be used in when knowing the highest version file that disposes the backup version file in the upgrade server, under the normal situation of operation version file of confirming this software, obtain this highest version file, this backup version file is upgraded from upgrade server.
The present invention considers from aspects such as reliability of products, security, ease for use, from the characteristics of end product and the angle design of user's use, makes end product reliable and stable.Owing to be kept at different zones respectively with the backup version file at the operation version file; Therefore the situation that two version files are destroyed simultaneously can not appear; The restore funcitons that has guaranteed software can not be damaged, even can connect upgrade server with restored version through the another one version file under the ruined situation of version file therein yet.In addition, because the backup version file has only comprised the configuration information that is used to connect upgrade server, therefore the pressure to the occupied terminal internal memory also can reduce greatly.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to accomplish through program, said program can be stored in the computer-readable recording medium, like ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuit to realize.Correspondingly, each the module/unit in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
The above is merely the preferred embodiments of the present invention, is not to be used to limit protection scope of the present invention.According to summary of the invention of the present invention; Also other various embodiments can be arranged; Under the situation that does not deviate from spirit of the present invention and essence thereof, those of ordinary skill in the art are when making various corresponding changes and distortion according to the present invention, and are all within spirit of the present invention and principle; Any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. the upgrade method of a software is applied to comprise in the terminal:
Preserve the operation version file and the backup version file of said software in the said terminal; Wherein, include the information that is used to guarantee normal operation of said software and upgrading in the said operation version file; The configuration information that includes the upgrade server that is used to connect said software in the said backup version file;
When the operation version file that detects said software lost efficacy or upgraded failure; Upgrade request is initiated to said upgrade server again according to the said configuration information that disposes in the said backup version file in said terminal, to the renewal of upgrading again of said operation version file.
2. the method for claim 1 is characterized in that:
The operation version file and the backup version file of said software are stored in the different storage zone at said terminal.
3. according to claim 1 or claim 2 method is characterized in that, also comprises:
When receiving the modification information of the configuration information that is directed against the upgrade server that connects said software, said terminal is upgraded the operation version file of said software and the corresponding information in the backup version file.
4. according to claim 1 or claim 2 method is characterized in that, also comprises:
When in knowing said upgrade server, disposing the highest version file of said backup version file; Said terminal is under the normal situation of operation version file of confirming said software; Obtain said highest version file from said upgrade server, said backup version file is upgraded.
5. terminal comprises:
Memory module is used to preserve the operation version file and the backup version file of software; Wherein, include the information that is used to guarantee normal operation of said software and upgrading in the said operation version file; The configuration information that includes the upgrade server that is used to connect said software in the said backup version file;
The verification module is used for when the operation version file that detects said software lost efficacy or upgraded failure, in said memory module, searching the backup version file of whether preserving said software;
Update module, the said configuration information that is used for disposing according to the said backup version file that said verification module finds is initiated upgrade request to said upgrade server again, to the renewal of upgrading again of said operation version file.
6. terminal as claimed in claim 5 is characterized in that:
Said memory module is used for the operation version file of said software and backup version file are kept in the different storage zone.
7. like claim 5 or 6 described terminals, it is characterized in that:
Said update module also is used for when receiving the modification information of the configuration information that is directed against the upgrade server that connects said software, the operation version file of said software and the corresponding information in the backup version file being upgraded.
8. like claim 5 or 6 described terminals, it is characterized in that:
Said update module also is used for when knowing that said upgrade server disposes the highest version file of said backup version file; Under the normal situation of operation version file of confirming said software; Obtain said highest version file from said upgrade server, said backup version file is upgraded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110170104 CN102841793A (en) | 2011-06-23 | 2011-06-23 | Software upgrading method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110170104 CN102841793A (en) | 2011-06-23 | 2011-06-23 | Software upgrading method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102841793A true CN102841793A (en) | 2012-12-26 |
Family
ID=47369197
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110170104 Pending CN102841793A (en) | 2011-06-23 | 2011-06-23 | Software upgrading method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102841793A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763137A (en) * | 2014-01-07 | 2014-04-30 | 北京东土科技股份有限公司 | Device configuration connection protective method, system and device |
CN105187231A (en) * | 2015-07-15 | 2015-12-23 | 贵阳语玩科技有限公司 | Method for pulling configuration data by client |
CN105404536A (en) * | 2015-12-14 | 2016-03-16 | 广东欧珀移动通信有限公司 | Terminal software upgrade method and terminal software upgrade apparatus |
CN105955846A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Method and system for carrying out recovery after upgrade failure of mobile terminal on basis of network |
CN106201586A (en) * | 2016-06-28 | 2016-12-07 | 青岛海信移动通信技术股份有限公司 | A kind of method for upgrading system based on OTA and terminal, system |
CN106775858A (en) * | 2016-12-08 | 2017-05-31 | 雷蕾 | A kind of method and system that software upgrading is triggered by deployment method |
CN107301054A (en) * | 2017-07-14 | 2017-10-27 | 杭州敦崇科技股份有限公司 | A kind of Oftware updating method based on MANET |
CN109901117A (en) * | 2019-03-13 | 2019-06-18 | 苏州理工雷科传感技术有限公司 | A kind of radar method for restarting and device |
CN110308919A (en) * | 2019-07-04 | 2019-10-08 | 深圳市瑞驰信息技术有限公司 | A method of based on mSATA local upgrade BMC |
CN112995767A (en) * | 2019-12-02 | 2021-06-18 | 中兴通讯股份有限公司 | Set top box upgrade control method, set top box and computer readable storage medium |
CN113094211A (en) * | 2021-04-23 | 2021-07-09 | 北京天空卫士网络安全技术有限公司 | Backup data processing method and device |
CN113282319A (en) * | 2021-05-28 | 2021-08-20 | 武汉天喻信息产业股份有限公司 | Smart card and updating method thereof |
-
2011
- 2011-06-23 CN CN 201110170104 patent/CN102841793A/en active Pending
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103763137A (en) * | 2014-01-07 | 2014-04-30 | 北京东土科技股份有限公司 | Device configuration connection protective method, system and device |
CN105187231A (en) * | 2015-07-15 | 2015-12-23 | 贵阳语玩科技有限公司 | Method for pulling configuration data by client |
CN105187231B (en) * | 2015-07-15 | 2018-10-26 | 贵阳语玩科技有限公司 | Client pulls the method and device of configuration data |
CN105404536A (en) * | 2015-12-14 | 2016-03-16 | 广东欧珀移动通信有限公司 | Terminal software upgrade method and terminal software upgrade apparatus |
CN105955846A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Method and system for carrying out recovery after upgrade failure of mobile terminal on basis of network |
CN106201586B (en) * | 2016-06-28 | 2019-12-20 | 青岛海信移动通信技术股份有限公司 | System upgrading method, terminal and system based on OTA |
CN106201586A (en) * | 2016-06-28 | 2016-12-07 | 青岛海信移动通信技术股份有限公司 | A kind of method for upgrading system based on OTA and terminal, system |
CN106775858A (en) * | 2016-12-08 | 2017-05-31 | 雷蕾 | A kind of method and system that software upgrading is triggered by deployment method |
CN107301054A (en) * | 2017-07-14 | 2017-10-27 | 杭州敦崇科技股份有限公司 | A kind of Oftware updating method based on MANET |
CN109901117A (en) * | 2019-03-13 | 2019-06-18 | 苏州理工雷科传感技术有限公司 | A kind of radar method for restarting and device |
CN109901117B (en) * | 2019-03-13 | 2022-05-27 | 苏州理工雷科传感技术有限公司 | Radar restarting method and device |
CN110308919A (en) * | 2019-07-04 | 2019-10-08 | 深圳市瑞驰信息技术有限公司 | A method of based on mSATA local upgrade BMC |
CN112995767A (en) * | 2019-12-02 | 2021-06-18 | 中兴通讯股份有限公司 | Set top box upgrade control method, set top box and computer readable storage medium |
CN113094211A (en) * | 2021-04-23 | 2021-07-09 | 北京天空卫士网络安全技术有限公司 | Backup data processing method and device |
CN113094211B (en) * | 2021-04-23 | 2024-04-23 | 北京天空卫士网络安全技术有限公司 | Backup data processing method and device |
CN113282319A (en) * | 2021-05-28 | 2021-08-20 | 武汉天喻信息产业股份有限公司 | Smart card and updating method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102841793A (en) | Software upgrading method and terminal | |
JP5113700B2 (en) | Firmware update apparatus and method | |
US8041988B2 (en) | Firmware update for consumer electronic device | |
US20170322796A1 (en) | Device and method for updating firmware and firmware update system | |
KR100750132B1 (en) | Method and system for booting, updating software automatically and recovering update error, and computer readable medium recording the method | |
CN110825563B (en) | System recovery method and device and electronic equipment | |
CN109491698B (en) | System updating method and device based on hot patch | |
US20230393840A1 (en) | File update method and apparatus, device and storage medium | |
WO2016183951A1 (en) | System upgrade method and terminal | |
CN115729586A (en) | Operating system upgrade method, apparatus, storage medium, and computer program product | |
CN100357893C (en) | Terminal staging method and system | |
CN104572354A (en) | Backup and restoration method for operating system based on restoration service and equipment thereof | |
JP2023009293A (en) | Communication apparatus and information processing method | |
CN114461257B (en) | Operating system data configuration method, operating system data configuration device, storage medium and program product | |
CN106775874B (en) | System upgrading method of terminal equipment | |
CN109189480B (en) | File system starting method and device | |
CN112860291B (en) | Firmware upgrading method and device | |
US20160170845A1 (en) | Database system control method and database system | |
CN116450244B (en) | Chip starting method, device, computer equipment and storage medium | |
WO2021012170A1 (en) | Firmware booting method and device, and computer-readable storage medium | |
CN107436783B (en) | Differential upgrading method for mobile terminal, storage medium and mobile terminal | |
WO2016131294A1 (en) | Version upgrade processing method and device | |
CN112667444A (en) | System upgrading method, storage medium and terminal equipment | |
CN113190244A (en) | Method and device for upgrading wireless module, computer equipment and storage medium | |
CN105938417B (en) | Update the method and device of configuration data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20121226 |