CN1758220A - Method of updating software release - Google Patents
Method of updating software release Download PDFInfo
- Publication number
- CN1758220A CN1758220A CN 200410080701 CN200410080701A CN1758220A CN 1758220 A CN1758220 A CN 1758220A CN 200410080701 CN200410080701 CN 200410080701 CN 200410080701 A CN200410080701 A CN 200410080701A CN 1758220 A CN1758220 A CN 1758220A
- Authority
- CN
- China
- Prior art keywords
- version
- software
- difference
- tabulation
- handheld device
- 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
This invention discloses a method for upgrading software editions including: a, comparing the software of the first edition and the second edition to get an edition discrimination list including at least the identification of the edition upgrade, the identifications of position discrimination, contents to be corrected and the end, b, the device having the first software edition utilizes said edition discrimination list to refresh the software of the first edition to get the second edition software.
Description
Technical field
The present invention relates to the software upgrading technology, be meant a kind of method of updating software release especially.
Background technology
Along with science and technology development, various handheld devices become an indispensable part in people's life, the work gradually, as mobile phone, PDA(Personal Digital Assistant) etc.In order constantly to satisfy people's needs, manufacturer is also continually developing and is upgrading handheld device.And simultaneously,, when launch, often have some defectives or unsatisfactory part because the cycle of manufacturer's release product is also shorter and shorter.Therefore, along with being gradually improved of technology, selling product also needs continuous upgrading, and its escalation process is a software release upgrade process often.Here, software version is meant that software upgrades each time, and all functions all assemble a file, exist with binary mode, cooperate corresponding hardware device, realize correlation function jointly.Because may there be mistake in software, under the prerequisite of not revising hardware, the situation of software release upgrade occurs through regular meeting.
For software, usually with the difference of whole software, be stored in different ROM (read-only memory) (ROM) space according to function, the division of software memory block makes whole software rely on physical store and separates, thereby realized upgrading part software function.With the hand held device software memory block is example, the division of regular software memory block as shown in Figure 1, the software memory partitioning among Fig. 1 is four parts: the dedicated data stores district of Boot memory block, App executable file district, file system area and reservation.The function of various piece is as follows:
The Boot storage area stores be Boot software, Boot software is the guiding of whole software, and three functions are arranged:
1, during software startup, the start-up course of Bootstrap Software;
2, during software upgrading, communicate by letter with PC foundation by the related software of computing machine (PC) end, and the App code on the PC is downloaded in the handheld device;
3, when App software damages, guiding is reloaded the binary file carried out of App to " App executable file district ".
App executable file district is used for the storing software working procedure.
File system area is used for storage file, the picture file that obtains as camera, mp3 file of obtaining by network etc.
The dedicated data stores district that keeps is used to keep some key parameters, comprises the backup of some parameter.
Usually said software upgrading mainly is meant the software in the upgrading App executable file district, and upgrade method is: Boot software by and the related software of PC end communicate by letter with PC foundation, and the App software download among the PC in handheld device.Because app software is bigger, this app software upgrading need be with app software download to be loaded to local spatial, and need occupy local spatial this moment in a large number, and if local flash space is less, can't carry out updating operation.And, in escalation process, need whole app software is all upgraded once, for big software, spend long time.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method of updating software release, this method can not need that whole application software are downloaded to this locality and carry out software release upgrade, and then saves update time, reduces taking storage space.
In order to achieve the above object, the invention provides a kind of method of updating software release, this method comprises: a. compares the first version software and second version software, draws version difference tabulation;
B. the equipment that has first software version utilizes described version difference list update first version software, obtains second version software.
Described version difference tabulation comprises the content that edition upgrading sign, version difference position, needs are revised at least and finishes sign.
Step b comprises:
B1, handheld device are obtained version difference tabulation;
Boot software is according to the edition upgrading sign in the version difference tabulation in b2, the handheld device, determine whether this version difference tabulation is that self needs, if then utilize the first version software among this version difference list update self flash to realize, otherwise, jump out this flow process.
Revise described in the step b2 and comprise:
The content that b21, the version difference position that obtains version difference list records and this position need be modified as, the described version difference position in first version software is according to the content that gets access to described this position of content refresh that will be modified as.
Described version difference tabulation further comprises the size of second edition notebook data.
The difference of version described in step a tabulation relatively draws the first version software and second version software by byte, bit or zone.
When the difference of version described in step a tabulation was kept in network side or the PC, handheld device described in the step b1 got access to described version difference tabulation according to communicating by letter with network side or PC.
Described communication is the wired or wireless communication mode.
The difference of version described in step a tabulation is kept in the mobile phone, and handheld device is to realize by directly reading the described version difference tabulation of self preserving among the step b1.
The present invention compares former software version and new software version, draws the version difference tabulation of two versions, utilizes the software version in the version difference list update mobile phone then.This method can avoid downloading file to be upgraded, and this is a kind of software release upgrade mode efficiently for changing little software version.And this method does not need to change any existing software flow and mechanism, need be to make an amendment slightly to get final product on mobile phone edition upgrading software only, therefore realizes simple.
Description of drawings
Fig. 1 is the division synoptic diagram between the mobile phone memory block;
Fig. 2 is for realizing the schematic flow sheet of the inventive method;
Fig. 3 generates the synoptic diagram of software version for the present invention;
Fig. 4 finishes the synoptic diagram of version software upgrading for the present invention utilizes version difference tabulation.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Because compiling, the connection procedure of software version are to carry out on the basis of whole software large-engineering, generally speaking, the engineering of software can keep constant, promptly go up between a version and the next version, use same engineering, therefore for the software of maturation, the difference between the software version can be very little, these less differences not only show on the source code, also show simultaneously on the bin file after compiling connects generation.
Therefore, core concept of the present invention is: the difference of comparing between two software versions obtains software version difference tabulation, handheld device is by the difference of software binary file in the software version difference tabulation, and directly revising needs the part that changes in self the former software version.Here, software version difference tabulation mainly is a kind of specifically defined file layout, this document form is an object of reference with some software version files, by the mode of two software versions of direct comparison, writes down two differences between the software version with specific form.Referring to shown in Figure 2, realize that the inventive method may further comprise the steps:
Step 201: the first version software and second version software are compared, draw version difference tabulation.
Version difference tabulation among the present invention comprises the content that edition upgrading sign, version difference position, needs are revised at least and finishes sign.Wherein, the edition upgrading sign is used to describe this version difference tabulation and is used for the upgrading of which kind of version software to which kind of version software, as the upgrading from version A to version B.Version is distinguished the position, is used to represent the position of the binary code content changing between second version and the first version.Finish sign, be used to represent this version difference end of list (EOL).
The concrete process that generates version difference tabulation is achieved in that at first, record is latter two version identifier earlier, describing out self is difference tabulation from which kind of edition upgrading to which kind of version, the difference that compares two edition upgrading softwares then according to byte, position or piece, the content that the station location marker that recorded content is different and this position need be upgraded, after record is finished, be provided with and finish sign, generated version difference tabulation this moment.And, specifically compare by which kind of mode, can as NAND type flash, must read and write or erase operation according to the concrete flash type selecting of preserving the needs update software in the cell phone apparatus by block.
Illustrate, in Fig. 3, version A is the part of the former software version preserved among the mobile phone flash, and version B is the part of new software version, and in version A and version B all being is first address with 0xxxxx, and it has the data block of 96 byte respectively.Version difference tabulation shown in Figure 3 comprises three parts, and wherein, first is that edition upgrading is described, expression edition upgrading sign, i.e. from version A to version B; Second portion is represented the content of this position in the distinguishing position of two versions and the glad version, as: between version A and the version B in 0xxxxx+27,0xxxxx+28,0xxxxx+29,0xxxxx+30,0xxxxx+93,0xxxxx+94,0xxxxx+95 difference, thereafter, in version difference tabulation, write down the content of these positions among the version B respectively, i.e. the content ff that will upgrade, ff, ff, ff, 89,89,89.Step 202: handheld device is obtained version difference tabulation, and judges whether this version difference tabulation is that self needs, if then execution in step 203, otherwise this flow process is jumped out in the upgrading failure.
Here, handheld device is obtained the mode of version difference listing file and is not limit, can directly version difference tabulation be downloaded in the mobile phone local file system, also can be kept at version difference tabulation on the network or on PC, mobile phone is by certain communication mode then, and obtains after network side or PC are connected.
And the Boot district in the handheld device need identify described information by edition upgrading, determines to judge that this version difference tabulation is that self needs, and this needs handheld device to have the self-identifying function.Such as, current version is the A version in the handheld device, if the edition upgrading sign expression in the version difference tabulation is the upgrading from version A to version B, so, handheld device can utilize this edition upgrading tabulation to upgrade, if the expression of the sign of the edition upgrading in the version difference tabulation is the upgrading from version B to version C, then this moment, handheld device can not be utilized this edition upgrading to tabulate to upgrade, otherwise staging error can occur.
Step 203: have the handheld device of first software version, utilize described this version difference list update first version software.Here, first software version is former software version, and second software version is new software version.
In actual applications, the tool software that needs a kind of PC end of exploitation, this tool software is with two version softwares successively, it is final bin file, as input, then these two bin files are compared by bit, byte or block, in version difference listing file, list comparing difference.
But is example below in conjunction with Fig. 3 with the NOR type flash of direct read byte (byte), and the principle of work of PC ending tool software is described.
According to byte, version A more shown in Figure 3 and version B determine that two version softwares have 7 byte differences, in version difference listing file, and address that content is different and the content that will be modified as, all record one by one.
And, can adopt following mode for the explanation that version A or version B increase or reduce:
0xyyyy del represents that version B lacks this space than version A;
0xyyyy xx represents that version B Duos this space than version A, and xx represents particular content.
Certainly, in the version difference listing file, also can suitably increase some other part necessary informations, as the size of data of version B etc.And version difference listing file is not limited to a certain concrete file layout, and simple text file format can meet the demands.
The edition upgrading process is to set up the inverse process of version difference listing file, it is specific as follows: mobile phone obtains version difference listing file, boot software identification version difference listing file in the mobile phone, obtain the version difference position of version difference list records and the content that this position need be modified as, according to the relative position of describing in this version difference listing file, rewrite the relevant portion of flash again then.
As, in Fig. 4, version difference tabulation has been write down between version A and the version B in 0xxxxx+27,0xxxxx+28,0xxxxx+29,0xxxxx+30,0xxxxx+93,0xxxxx+94,0xxxxx+95 difference, and write down the content of these positions among the version B, i.e. ff, ff, ff, ff, 89,89,89 respectively.Therefore, in the process of upgrading, need be in the position of 0xxxxx+27,0xxxxx+28,0xxxxx+29,0xxxxx+30,0xxxxx+93,0xxxxx+94,0xxxxx+95, respectively that it is original content update is ff, ff, ff, ff, 89,89,89.
The present invention is not limited to the software upgrading in certain concrete equipment, such as: various handheld devices such as mobile phone, PDA.And the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.
Claims (9)
1, a kind of method of updating software release is characterized in that, this method may further comprise the steps:
A. the first version software and second version software are compared, draw version difference tabulation;
B. the equipment that has first software version utilizes described version difference list update first version software, obtains second version software.
2, method according to claim 1 is characterized in that, described version difference tabulation comprises the content that edition upgrading sign, version difference position, needs are revised at least and finishes sign.
3, method according to claim 2 is characterized in that, step b comprises:
B1, handheld device are obtained version difference tabulation;
Boot software is according to the sign of the edition upgrading in the version difference tabulation in b2, the handheld device, and whether discern this version difference tabulation is that self needs, if, then utilize the first version software of this version difference list update self, otherwise, jump out this flow process.
4, method according to claim 3 is characterized in that, upgrades described in the step b2 to comprise:
The content that b21, the version difference position that obtains version difference list records and this position need be modified as, the described version difference position in first version software is according to the content that gets access to described this position of content refresh that will be modified as.
5, method according to claim 2 is characterized in that, described version difference tabulation further comprises the size of second edition notebook data.
6, method according to claim 1 is characterized in that, the difference of version described in step a tabulation relatively draws the first version software and second version software by byte, bit or zone.
7, method according to claim 3 is characterized in that, when the difference of version described in step a tabulation was kept in network side or the PC, handheld device described in the step b1 got access to described version difference tabulation according to communicating by letter with network side or PC.
8, method according to claim 7 is characterized in that, described communication is the wired or wireless communication mode.
9, method according to claim 3 is characterized in that, the difference of version described in step a tabulation is kept in the handheld device, and handheld device is to realize by directly reading the described version difference tabulation of self preserving among the step b1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200410080701 CN1758220A (en) | 2004-10-08 | 2004-10-08 | Method of updating software release |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200410080701 CN1758220A (en) | 2004-10-08 | 2004-10-08 | Method of updating software release |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1758220A true CN1758220A (en) | 2006-04-12 |
Family
ID=36703610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200410080701 Pending CN1758220A (en) | 2004-10-08 | 2004-10-08 | Method of updating software release |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1758220A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007118419A1 (en) * | 2006-04-14 | 2007-10-25 | Beijing Rising International Software Co., Ltd | A method and device thereof of upgrading software |
CN100449487C (en) * | 2006-11-03 | 2009-01-07 | 北京启明星辰信息技术有限公司 | Software unified upgrading technology method for supporting multiple products |
CN101110788B (en) * | 2006-07-20 | 2010-09-08 | 阿里巴巴集团控股有限公司 | Method and system for updating client software |
CN102043656A (en) * | 2011-01-20 | 2011-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Software management method and software management server |
CN102147742A (en) * | 2011-03-18 | 2011-08-10 | 深圳市广和通实业发展有限公司 | Method and system for upgrading embedded software on line |
CN101355454B (en) * | 2008-09-09 | 2011-10-26 | 中兴通讯股份有限公司 | System and method for automatically upgrading distributed network management server |
CN101374307B (en) * | 2008-09-26 | 2012-08-22 | 北京大学 | Method and apparatus for updating digital content information of mobile equipment |
CN102999349A (en) * | 2011-09-19 | 2013-03-27 | 施耐德电器工业公司 | Software upgrading method |
CN103024026A (en) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | Multi-screen interactive software auto update method and system based on Android |
CN103297482A (en) * | 2012-03-05 | 2013-09-11 | 联想(北京)有限公司 | Information processing method and device |
CN103577318A (en) * | 2012-08-07 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Code detection method and device |
CN104484194A (en) * | 2014-11-24 | 2015-04-01 | 东软集团股份有限公司 | Method and device for system updating of vehicle-mounted intelligent terminal |
CN104951315A (en) * | 2014-03-25 | 2015-09-30 | 上海三旗通信科技股份有限公司 | Rapid updating and downloading method for mobile software |
CN106598608A (en) * | 2016-12-19 | 2017-04-26 | 深圳天珑无线科技有限公司 | Application version changing method and apparatus, and related terminals |
CN107844300A (en) * | 2017-11-03 | 2018-03-27 | 中国银行股份有限公司 | Script processing method and system |
CN108701067A (en) * | 2016-03-01 | 2018-10-23 | 洋马株式会社 | Terminal installation and software adaptation program |
-
2004
- 2004-10-08 CN CN 200410080701 patent/CN1758220A/en active Pending
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007118419A1 (en) * | 2006-04-14 | 2007-10-25 | Beijing Rising International Software Co., Ltd | A method and device thereof of upgrading software |
CN101110788B (en) * | 2006-07-20 | 2010-09-08 | 阿里巴巴集团控股有限公司 | Method and system for updating client software |
CN100449487C (en) * | 2006-11-03 | 2009-01-07 | 北京启明星辰信息技术有限公司 | Software unified upgrading technology method for supporting multiple products |
CN101355454B (en) * | 2008-09-09 | 2011-10-26 | 中兴通讯股份有限公司 | System and method for automatically upgrading distributed network management server |
CN101374307B (en) * | 2008-09-26 | 2012-08-22 | 北京大学 | Method and apparatus for updating digital content information of mobile equipment |
CN102043656A (en) * | 2011-01-20 | 2011-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Software management method and software management server |
CN102147742B (en) * | 2011-03-18 | 2015-04-22 | 深圳市广和通实业发展有限公司 | Method and system for upgrading embedded software on line |
CN102147742A (en) * | 2011-03-18 | 2011-08-10 | 深圳市广和通实业发展有限公司 | Method and system for upgrading embedded software on line |
CN102999349A (en) * | 2011-09-19 | 2013-03-27 | 施耐德电器工业公司 | Software upgrading method |
CN102999349B (en) * | 2011-09-19 | 2016-06-08 | 施耐德电器工业公司 | A kind of method for upgrading software |
CN103297482B (en) * | 2012-03-05 | 2016-12-14 | 联想(北京)有限公司 | Information processing method and equipment |
CN103297482A (en) * | 2012-03-05 | 2013-09-11 | 联想(北京)有限公司 | Information processing method and device |
CN103577318A (en) * | 2012-08-07 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Code detection method and device |
CN103577318B (en) * | 2012-08-07 | 2018-01-30 | 腾讯科技(深圳)有限公司 | A kind of code detection method and device |
CN103024026A (en) * | 2012-12-07 | 2013-04-03 | 康佳集团股份有限公司 | Multi-screen interactive software auto update method and system based on Android |
CN104951315A (en) * | 2014-03-25 | 2015-09-30 | 上海三旗通信科技股份有限公司 | Rapid updating and downloading method for mobile software |
CN104484194A (en) * | 2014-11-24 | 2015-04-01 | 东软集团股份有限公司 | Method and device for system updating of vehicle-mounted intelligent terminal |
CN108701067A (en) * | 2016-03-01 | 2018-10-23 | 洋马株式会社 | Terminal installation and software adaptation program |
CN106598608A (en) * | 2016-12-19 | 2017-04-26 | 深圳天珑无线科技有限公司 | Application version changing method and apparatus, and related terminals |
CN107844300A (en) * | 2017-11-03 | 2018-03-27 | 中国银行股份有限公司 | Script processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8296535B2 (en) | Generating incremental program updates | |
US8200886B2 (en) | Efficient system and method for updating a memory device | |
CN1758220A (en) | Method of updating software release | |
US8453138B2 (en) | Method and apparatus for generating an update package | |
KR101426710B1 (en) | Device and method for upgrading version information of terminal | |
US7555750B1 (en) | Update package generator employing partial predictive mapping techniques for generating update packages for mobile handsets | |
CN1278236C (en) | Arrangements storing different versions of a set of data in separate memory area and method for updating a set of data in a memory | |
US8479189B2 (en) | Pattern detection preprocessor in an electronic device update generation system | |
EP1956482B1 (en) | Generating delta updates for a processing device | |
US7599970B2 (en) | Method and apparatus for updating a stored version of content stored in a storage device | |
US20110261638A1 (en) | Method for Storing Data into a Memory | |
CN107506219A (en) | A kind of general version upgrade method based on android system | |
CN1313941C (en) | Method for data exchange between data handling equipment and operating system | |
CN101331444A (en) | Online storage volume shrink | |
CN101211265A (en) | Terminal embedded type system software update method and apparatus | |
WO2005119432A2 (en) | Method and system for in-place updating content stored in a storage device | |
CN101026825A (en) | System and method for a patch minimization tool | |
CN101208755A (en) | Apparatus, system, and method for accessing persistent files in non-execute-in-place flash memory | |
US20080320461A1 (en) | Method and Apparatus for Reliable In-Place Update | |
WO2019041891A1 (en) | Method and device for generating upgrade package | |
RU2375769C2 (en) | Automatic back up saving in modifications of embedded software | |
US20040181777A1 (en) | Method and device for programming electronic devices using a uniform parameter format | |
KR101182534B1 (en) | terminal having a mutual calling function an API in the platform library, DSL module generating method and mutual API calling method | |
CN1855049A (en) | Memory disposition methods and systems | |
US6886158B2 (en) | Componentware creating method and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |