CN106201588A - The method for upgrading software of terminal and terminal - Google Patents
The method for upgrading software of terminal and terminal Download PDFInfo
- Publication number
- CN106201588A CN106201588A CN201610496702.2A CN201610496702A CN106201588A CN 106201588 A CN106201588 A CN 106201588A CN 201610496702 A CN201610496702 A CN 201610496702A CN 106201588 A CN106201588 A CN 106201588A
- Authority
- CN
- China
- Prior art keywords
- software version
- version
- software
- terminal
- release
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present invention provides method for upgrading software and the terminal of a kind of terminal.The method includes: receives the version detection request that terminal sends, obtains the current software version of described terminal;Determine target software release and the reference software version of current time;According to described current software version and described target software release, determine the adjacent attribute of described current software version and described target software release;Whether described adjacent attribute is two adjacent software versions for characterizing described current software version with described target software release;According to described adjacent attribute and described reference software version, determine the upgrade information sent to described terminal.The method optimizes the upgrading link of terminal, substantially increases the software updating efficiency of terminal, improves the experience of user.
Description
Technical field
The present embodiments relate to software upgrading technology, particularly relate to method for upgrading software and the terminal of a kind of terminal.
Background technology
Along with the development of communication technology, increasing terminal such as mobile phone, panel computer, Web TV etc. all go out
Now in the life of people, the life for people provides convenient and amusement.Wherein, owing to terminal being all deployed with corresponding operation
The software such as system or application program, therefore the manufacturer of terminal typically can announce factory's brush machine bag for producing terminal, for
Terminal lists.
But, for the terminal of listing, it is common that produce in batches, say, that use the factory of different volume production version
Brush machine bag carries out producing, and can carry out over the air (Over-the-Air along with user in operational phase in addition
Technology, is called for short OTA) upgrading, therefore, for a terminal, the version in different user hands is probably different.False
As terminal versions on the market be V1, the version of the biggest GC group connector of V2 ... Vn, n the highest.Now, if lowest version (such as V1)
User to be upgraded to up-to-date target version Vn, preferred plan be by manufacturer terminal provide V1-Vn OTA difference bag, but
The difference bag quantity that this mode manufacturer terminal makes can be the hugest, serious waste R&D costs.
In order to solve the problems referred to above, prior art is when carrying out the edition upgrading of terminal, and the OTA only making adjacent version is poor
Subpackage, such as V1-V2 difference bag, V2-V3 difference bag ..., Vn-1-Vn difference bag, this scheme is for terminal needs that version is V1
Upgrade successively, be i.e. downloaded after checking V1-V2 difference bag, and reboot into recovery upgrading, upgrading after downloading
If rear start detects V2-V3 difference bag again, the most again download this V2-V3 difference bag, and restart after downloading into
Recovery upgrades, the like, thus complete the upgrading of terminal versions.
But, this upgrade method of prior art, need repeatedly to download and repeatedly restart, escalation process is loaded down with trivial details also
And update time is long, Consumer's Experience is poor.
Summary of the invention
The embodiment of the present invention provides the method for upgrading software of a kind of terminal and terminal, it is intended to solve prior art carry out soft
During part upgrading, escalation process is loaded down with trivial details and update time is long, the technical problem that Consumer's Experience is poor.
First aspect, the embodiment of the present invention provides the method for upgrading software of a kind of terminal, including:
Receive the version detection request that terminal sends, obtain the current software version of described terminal;
Determine target software release and the reference software version of current time;
According to described current software version and described target software release, determine described current software version and described target
The adjacent attribute of software version;Whether described adjacent attribute is used for characterizing described current software version and described target software release
It is two adjacent software versions;
According to described adjacent attribute and described reference software version, determine the upgrade information sent to described terminal, and will
Described upgrade information is sent to described terminal.
In a kind of possible embodiment of the embodiment of the present invention, described adjacent attribute includes: described Current software version
This and described target software release be same software version, described current software version be two with described target software release
Be spaced between adjacent software version, described current software version and described target software release the first software version, described work as
Any one in multiple software version it is spaced between front software version and described target software release;Wherein, described first software
Version is the next software version adjacent with described current software version.
In the alternatively possible embodiment of the embodiment of the present invention, described according to described adjacent attribute and described benchmark
Software version, determines the upgrade information sent to described terminal, specifically includes:
If described current software version is two adjacent software versions with described target software release, it is determined that described liter
Level information is the first difference bag of described current software version extremely described target software release;
Described first difference bag is sent, so that described terminal carries out version liter according to described first difference bag to described terminal
Level.
In another possible embodiment of the embodiment of the present invention, described according to described adjacent attribute and described benchmark
Software version, determines the upgrade information sent to described terminal, specifically includes:
If being spaced described first software version between described current software version and described target software release, it is determined that institute
Stating the first software version is new reference software version;
According to described new reference software version, determine that described upgrade information is that described current software version is to described new
Second difference bag of reference software version, and, the 3rd of described new reference software version to described target software release is poor
Subpackage;
Described second difference bag and described 3rd difference bag is sent, so that described terminal is according to described second to described terminal
Difference bag and described 3rd difference bag carry out edition upgrading.
In another possible embodiment of the embodiment of the present invention, described according to described adjacent attribute and described benchmark
Software version, determines the upgrade information sent to described terminal, specifically includes:
If being spaced multiple software version between described current software version and described target software release, it is determined that described liter
Level information is the 4th difference bag of described current software version extremely described reference software version, and, described reference software version
The 5th difference bag to described target software release;
Described 4th difference bag and described 5th difference bag is sent, so that described terminal is according to the described 4th to described terminal
Difference bag and described 5th difference bag carry out edition upgrading.
In the alternatively possible embodiment of the embodiment of the present invention, described according to described adjacent attribute and described benchmark
Software version, determines the upgrade information sent to described terminal, specifically includes:
If described current software version and described target software release are same software version, it is determined that described upgrading is believed
Breath is for indicating described terminal currently without the information of upgrading;
Described upgrade information is sent, so that described terminal is known described the softest according to described upgrade information to described terminal
Part version is described target software release.
Further, according to described current software version and described target software release, described current software version is determined
With the adjacent attribute of described target software release, specifically include:
The difference between version number and the version number of described target software release according to described current software version, determines
The adjacent attribute of described current software version and described target software release.
In the alternatively possible embodiment of the embodiment of the present invention, the version detection that described reception terminal sends please
Asking, before obtaining the current software version of described terminal, described method also includes:
For each volume production software version, obtain described volume production software version to described reference software version difference bag,
The difference bag and adjacent with described volume production software version upper one of described reference software version extremely described volume production software version
The difference bag of individual volume production software version extremely described volume production software version;Wherein, described volume production software version and described reference software
Version is different.
Second aspect, the embodiment of the present invention provides a kind of terminal, including:
First acquisition module, for receiving the version detection request that terminal sends, obtains the Current software version of described terminal
This;
First determines module, for determining target software release and the reference software version of current time;
Second determines module, for according to described current software version and described target software release, determine described currently
The adjacent attribute of software version and described target software release, and according to described adjacent attribute and described reference software version, really
Orient the upgrade information that described terminal sends;Described adjacent attribute is used for characterizing described current software version and described target software
Whether version is two adjacent software versions;
Sending module, for being sent to described terminal by described upgrade information.
In a kind of possible embodiment of the embodiment of the present invention, described adjacent attribute includes: described Current software version
This and described target software release be same software version, described current software version be two with described target software release
Be spaced between adjacent software version, described current software version and described target software release the first software version, described work as
Any one in multiple software version it is spaced between front software version and described target software release;Wherein, described first software
Version is the next software version adjacent with described current software version.
In the alternatively possible embodiment of the embodiment of the present invention, described second determines module, specifically in institute
State current software version when being two adjacent software versions with described target software release, determine that described upgrade information is described
First difference bag of current software version extremely described target software release;
Described sending module, specifically for sending described first difference bag to described terminal, so that described terminal is according to institute
State the first difference bag and carry out edition upgrading.
In another possible embodiment of the embodiment of the present invention, described second determines module, specifically in institute
State when being spaced described first software version between current software version and described target software release, determine described first software version
This is new reference software version, and according to described new reference software version, determines that described upgrade information is described the softest
Second difference bag of part version extremely described new reference software version, and, described new reference software version to described target
3rd difference bag of software version;
Described sending module, specifically for sending described second difference bag and described 3rd difference bag to described terminal, with
Described terminal is made to carry out edition upgrading according to described second difference bag and described 3rd difference bag.
In another possible embodiment of the embodiment of the present invention, described second determines module, specifically in institute
State when being spaced multiple software version between current software version and described target software release, determine that described upgrade information is described
4th difference bag of current software version extremely described reference software version, and, described reference software version to described target is soft
5th difference bag of part version;
Described sending module, specifically for sending described 4th difference bag and described 5th difference bag to described terminal, with
Described terminal is made to carry out edition upgrading according to described 4th difference bag and described 5th difference bag.
In the alternatively possible embodiment of the embodiment of the present invention, described second determines module, specifically in institute
State current software version and described target software release when being same software version, determine that described upgrade information is described for instruction
Terminal is currently without the information of upgrading;
Described sending module, specifically for sending described upgrade information to described terminal, so that described terminal is according to described
Upgrade information knows that described current software version is described target software release.
In the alternatively possible embodiment of the embodiment of the present invention, described first determines module, specifically for basis
Difference between version number and the version number of described target software release of described current software version, determines described Current software
The adjacent attribute of version and described target software release.
In another possible embodiment of the embodiment of the present invention, described terminal also includes:
Second acquisition module, for for each volume production software version, obtains described volume production software version to described benchmark
The difference bag of software version, described reference software version are to the difference bag of described volume production software version and soft with described volume production
The difference bag of a upper volume production software version extremely described volume production software version that part version is adjacent;Wherein, described volume production software version
These are different from described reference software version.
The method for upgrading software of the terminal that the embodiment of the present invention provides and terminal, by receiving the version detection that terminal sends
Request, obtains the current software version of described terminal, and determines target software release and the reference software version of current time,
Thus according to current software version and target software release, determine the adjacent genus of current software version and described target software release
Property, and then according to this adjacent attribute and reference software version, the upgrade information that true directional terminals sends.The method considers currently
Software version and the diversity of described target software release so that upgrade information determined by server is the liter adapting to terminal
Level information, thus avoid terminal repeatedly download when upgrading and repeatedly restart, it is greatly saved the update time of terminal, improves
The liter stage efficiency of terminal;Meanwhile, it also avoid terminal and use the most adaptive difference bag to upgrade, optimize the upgrading chain of terminal
Road, further saves the update time of terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
The schematic flow sheet of the method for upgrading software embodiment one of the terminal that Fig. 1 provides for the embodiment of the present invention;
The difference bag distribution schematic diagram on server that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the method for upgrading software embodiment two of the terminal that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the method for upgrading software embodiment three of the terminal that Fig. 4 provides for the embodiment of the present invention;
The schematic flow sheet of the method for upgrading software embodiment four of the terminal that Fig. 5 provides for the embodiment of the present invention;
The schematic flow sheet of the method for upgrading software embodiment five of the terminal that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the terminal embodiment one that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the terminal embodiment two that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
The terminal that the present embodiments relate to, can be mobile phone, panel computer, TV, personal digital assistant (PDA), can
Wearable device etc., the type of terminal is not limited by the embodiment of the present invention, as long as can dispose corresponding operating system on it
With software program.
Software involved by the embodiment of the present invention, can be arbitrary software, such as, can be application class software, behaviour
Make system class software, can also is that other repair patch class software etc., the type of software is not done by the embodiment of the present invention
Limit.
When terminal is carried out software upgrading, the difference bag of adjacent version generally can be used to carry out the side upgraded one by one
Case, but this kind of scheme needs repeatedly to download and repeatedly restart, and the escalation process time that can cause terminal is long, Consumer's Experience
Property difference technical problem;Optionally, it is also possible to use the scheme of cross-version upgrading, will current software version to be upgraded to benchmark soft
Part version, then by reference software edition upgrading to target software release, but, the scheme of this cross-version upgrading there may be to be sent out
The difference bag giving terminal is not the difference bag with terminal adaptation, for example, it is assumed that current latest edition is Vn, for software version
This is Vn-1And Vn-2Terminal staging process respectively as follows:
1, for Vn-1The terminal of version, if target software release Vn to be upgraded to, needs Vn-1The difference bag of-V0,
The difference bag of V0-Vn is distributed to terminal so that terminal is first from Vn-1It is upgraded to reference software version V0, then is upgraded to Vn from V0,
But the time used by this scheme is but much larger than directly from Vn-1It is upgraded to the time of Vn;
2, for Vn-2The terminal of version, if target software release Vn to be upgraded to, needs Vn-2The difference bag of-V0,
The difference bag of V0-Vn is distributed to terminal so that terminal is first from Vn-2It is upgraded to reference software version V0, then is upgraded to Vn from V0,
But the time used by this scheme is also much larger than first from Vn-2It is upgraded to Vn-1, then from Vn-1It is upgraded to the time that Vn is spent.
Therefore, from the foregoing, above-mentioned employing cross-version upgrading scheme, due to distribute to terminal difference bag exist with
The situation that the current software version of terminal is not adaptive, thus the update time of terminal can be caused long, user experience is the most relatively
Difference.
So, the method for upgrading software of the terminal that the embodiment of the present invention provides and terminal, it is intended to solve prior art and entering
During row software upgrading, escalation process is loaded down with trivial details and update time is long, the technical problem that Consumer's Experience is poor.
With specifically embodiment, technical scheme is described in detail below.These concrete enforcements below
Example can be combined with each other, and may repeat no more in some embodiment for same or analogous concept or process.
The schematic flow sheet of the method for upgrading software embodiment one of the terminal that Fig. 1 provides for the embodiment of the present invention.This enforcement
Example refers to server according to the current software version of acquired terminal and target software release and reference software version
This, determine the adjacent attribute of current software version and described target software release, thus according to this true directional terminals of adjacent attribute
The detailed process of the upgrade information sent.Optionally, the executive agent of the method can be server.As it is shown in figure 1, the method
Including:
S101: receive the version detection request that terminal sends, obtain the current software version of described terminal.
Optionally, terminal here can be one, it is also possible to is multiple, and server can obtain difference at synchronization
The current software version of terminal, then the current software version for different terminals is upgraded.
S102: determine target software release and the reference software version of current time.
It should be noted that target software release determined by server and reference software version may not the most in the same time
With, it is also possible to identical.As a example by target software release, it is assumed that in the t1 moment, the version of the maximum software version on server
Number being V3, if now some terminal needs upgrading, the most current target software release is V3;But in the t+1 moment, it is assumed that eventually
End manufacturer has issued a new volume production version V4, and a series of difference corresponding for volume production version V4 that this is new are wrapped the service of reaching
On device, the most now the version number of the maximum software version on server is V4, if now terminal needs upgrading, the most current
Target software release is V4.It is to say, owing to manufacturer terminal may issue new volume production version dynamically, and it is uploaded to clothes
Business device, therefore, server may be different in target software release the most in the same time.
Optionally, the reference software version of general server acquiescence can be V0, but the most although not exclusively, this enforcement
Reference software version is not limited by example.
S103: according to described current software version and described target software release, determines described current software version and institute
State the adjacent attribute of target software release.
Described adjacent attribute be used for characterizing described current software version and described target software release be whether two adjacent
Software version.
S104: according to described adjacent attribute and described reference software version, determine the upgrade information sent to described terminal.
Concrete, server after determining the current software version of terminal, target software release and reference software version,
The adjacent attribute of the two can be determined according to current software version and target software release, such as, determines whether the two is adjacent
Two software versions, or determine that the software version of the two is the most identical, or determine therebetween either with or without being spaced other
Software version.After the adjacent attribute that server determines current software version and target software release, can be according to this phase
Adjacent attribute and said reference software version determine a upgrade information, and this upgrade information is sent to terminal.
Optionally, this upgrade information can be the difference bag with terminal adaptation, to save the update time of terminal;This upgrading
Information can also is that the information whether prompt terminal upgrades, and to avoid terminal to wait as long for upgrading, wastes the expense of terminal, always
It, the content of upgrade information is not limited by the present embodiment.Optionally, this difference bag can be one, it is also possible to is multiple.
Optionally, when the difference bag that upgrade information is with terminal adaptation, terminal directly can be carried out according to this difference bag
Upgrading, and have only to download first difference subpackage restarting after having downloaded and the most just can complete to upgrade, it is to avoid terminal is according to showing
The mode having technology is upgraded to target software release successively from current software version, and centre is gone through and repeatedly downloaded and repeatedly restart,
It is greatly saved the update time of terminal, improves the liter stage efficiency of terminal.
It addition, for the scheme of cross-version upgrading, owing to the difference bag of above-mentioned adaptation is according to current software version and institute
State what the adjacent attribute of target software release determined, i.e. this difference bag considers the difference of current software version and target software release
Different, such as, when server determines that current software version is two adjacent versions with described target software release, then server
Just may indicate that terminal is directly upgraded to target software release from current software version.Therefore, this difference bag is for adapting to terminal
The difference bag of current upgrading, terminal, when using this difference bag to upgrade, also saves update time, thus substantially increases
Rise stage efficiency, meet the experience requirements of user.
The method for upgrading software of the terminal that the embodiment of the present invention provides, by receiving the version detection request that terminal sends,
Obtain the current software version of described terminal, and determine target software release and the reference software version of current time, thus
According to current software version and target software release, determine the adjacent attribute of current software version and described target software release,
And then according to this adjacent attribute and reference software version, the upgrade information that true directional terminals sends.The method considers the softest
Part version and the diversity of described target software release so that upgrade information determined by server is the upgrading adapting to terminal
Information, thus avoid terminal repeatedly download when upgrading and repeatedly restart, it is greatly saved the update time of terminal, improves end
The liter stage efficiency of end;Meanwhile, it also avoid terminal and use the most adaptive difference bag to upgrade, optimize the upgrading chain of terminal
Road, further saves the update time of terminal.
Optionally, above-mentioned adjacent attribute may include that current software version and described target software release are same soft
Part version, described current software version are two adjacent software versions, described Current software version with described target software release
Be spaced between this and described target software release the first software version, described current software version and described target software release it
Between be spaced any one in multiple software version;Wherein, this first software version be adjacent with described current software version under
One software version.Optionally, server can be preset the mapping relations between this adjacent attribute and different upgrade informations,
Therefore, after server determines this adjacent attribute, it is possible to determine the upgrade information of correspondence according to these mapping relations.
Optionally, it is assumed that said reference software version is V0, in the present embodiment, the manufacturer of terminal is typically issuing an amount
After producing software version (the volume production software version in addition to V0), a upper volume production software version of this volume production software version can be made
This is to the difference bag of this volume production software version and this volume production software version to the difference bag of reference software version V0 and should
Reference software version V0 is to the difference bag of this volume production software version, and is uploaded onto the server by these difference bags;Need explanation
It is that the manufacturer of terminal can make the difference bag of above-mentioned three types to each volume production software version issued.It is to say, clothes
On business device except V0 in addition to the difference bag of other each volume production versions all each correspondence three types.Certainly, there also is a kind of spy
Different situation, i.e. for the volume production software version V1 issued, on it, a volume production software version is exactly i.e. V0, therefore, upper one
Volume production software version is to the difference bag (V0-V1) of volume production software version V1 and reference software version to the difference of volume production software version V1
Subpackage (V0-V1) is identical, i.e. for V1, there is V0-V1 and V1-V0 two kinds of difference bag.
Therefore, server receives the version detection request that terminal sends, and before obtaining the current software version of terminal, i.e. exists
Before above-mentioned S101, for each volume production version, server can get each volume production software version to reference software version
Difference bag, the difference bag of reference software version to each volume production software version and adjacent with this volume production software version upper
One volume production software version is to the difference bag of this volume production software version;Wherein, this volume production software version is with reference software version not
With, i.e. this volume production software version is non-referenced software version.
Cite a plain example, it is assumed that manufacturer terminal has currently issued a volume production software version V1, then service herein
Difference bag acquired in device includes the difference bag of V0-V1 and the difference bag of V1-V0, due to V1 be on current server the highest soft
Part version, then current on server target software release is V1, if now terminal needs upgrading, server just can root
According to the current software version in terminal and the adjacent attribute of target software release (V1), for terminal distribution suitable difference bag;False
It is located at subsequent time, it is assumed that manufacturer terminal has issued again volume production software version V2, the most now difference acquired in server
Include the difference bag of V1-V2, the difference bag of V0-V2 and the difference bag of V2-V0, due to V2 be on current server the highest soft
Part version, then current on server target software release is V2, now just include on server V0-V1 difference bag,
The difference bag of V1-V0, the difference bag of V1-V2, the difference bag of V0-V2 and the difference bag of V2-V0, if now terminal needs to rise
Level, server just can divide for terminal according to the current software version in terminal and the adjacent attribute of target software release (V2)
Join suitable difference bag;By that analogy, it is assumed that the volume production software version Vn that terminal is currently issued, the most now acquired in server
Difference bag includes Vn-1The difference bag of-Vn, the difference bag of V0-Vn and the difference bag of Vn-V0, due to Vn be on current server
High software version, then current on server target software release is Vn, if now terminal needs upgrading, server is just
Can be according to the current software version in terminal and the adjacent attribute of target software release (Vn), for the suitable difference of terminal distribution
Bag.So that the difference bag distribution on server becomes apparent from, may refer to the difference bag distribution schematic diagram shown in Fig. 2.
The schematic flow sheet of the method for upgrading software embodiment two of the terminal that Fig. 3 provides for the embodiment of the present invention.This enforcement
Example refers to server according to adjacent attribute and reference software version, the concrete mistake of the upgrade information that true directional terminals sends
Journey.On the basis of above-described embodiment, further, above-mentioned S104 specifically may include that
S201: if described current software version is two adjacent software versions with described target software release, it is determined that
Described upgrade information is the first difference bag of described current software version extremely described target software release.
S202: send described first difference bag to described terminal, so that described terminal is carried out according to described first difference bag
Edition upgrading.
Concrete, when server determines that current software version and described target software release are two adjacent software versions
Time, server knows that the mode using the upgrading of adjacent differential bag can be greatly saved the update time of terminal, and therefore, server is true
Surely being sent to the upgrade information of terminal is current software version to the first difference bag of target software release, thus this is first poor
Subpackage is sent to terminal so that terminal carries out edition upgrading according to described first difference bag, thus without terminal from Current software
Edition upgrading is to reference software version, then from reference software edition upgrading to target software release, improves the effect of terminal staging
Rate.
For example, it is assumed that server includes V0-V1 difference bag at the difference bag of current time, (the two is poor for V1-V0 difference bag
Subpackage is the difference bag that server obtains for volume production software version V1), V1-V2 difference bag, V2-V0 difference bag, V0-V2 difference
Bag (these three difference bag is the difference bag that server obtains for volume production software version V2), V2-V3 difference bag, V0-V3 difference
Bag, V3-V0 difference bag (these three difference bag is the difference bag that server obtains for volume production software version V3), now server
On target software release be the highest software version;Assume that terminal current software version is V2, current target software release
For V3, reference software version is V0, and server judges that V2 with V3 is two adjacent software versions, then server just can obtain
V2-V3 difference bag sends it to terminal so that terminal is directly upgraded according to V2-V3 difference bag, thus optimizes terminal
Upgrading link, improve the liter stage efficiency of terminal.
Optionally, above-mentioned server determines the adjacent attribute of current software version and target software release, can be service
Having preset the version sequence list of each volume production software version on device, server can be in the Current software version obtaining terminal
After Ben, inquire about this list, the adjacent attribute of current software version with target software release to determine terminal, such as, determine
Whether version is adjacent for the two.
Optionally, above-mentioned server can also be by the version number of the current software version according to terminal and target software version
Difference between this version number, determines the adjacent attribute of current software version and target software release, such as, if Current software
Version is Vm, and target software release is Vn, then server is by judging the difference of n-m, determines that current software version is soft with target
The adjacent attribute of part version, i.e. as n-m=0, shows that current software version Vm is target software release;As n-m=1,
Show that current software version Vm is adjacent with target software release Vn;As n-m=2, show that current software version Vm is soft with target
First software version (Vm+1) it is spaced between part version Vn;As n-m > 2 time, show current software version Vm and target software
Multiple software version it is spaced between version Vn.Certainly, the version number of above-mentioned current software version and the version of target software release
Difference between number is not limited to integer, it is also possible to be decimal, is accustomed to setting according to the name of developer here.
At server, the method for upgrading software of the terminal that the embodiment of the present invention provides, determines that current software version is soft with target
Part version is two adjacent software versions, it is determined that what upgrade information was current software version to target software release is first poor
Subpackage, thus send this first difference bag to terminal, so that terminal carries out edition upgrading according to this first difference bag, thus optimize
The upgrading link of terminal, improves the liter stage efficiency of terminal, it is ensured that the experience of user.
The schematic flow sheet of the method for upgrading software embodiment three of the terminal that Fig. 4 provides for the embodiment of the present invention.This enforcement
Example refers to server according to adjacent attribute and reference software version, and another of the upgrade information that true directional terminals sends is concrete
Process.On the basis of above-described embodiment, further, above-mentioned S104 specifically may include that
S301: if being spaced described first software version between described current software version and described target software release, then
Determine that described first software version is new reference software version.
S302: according to described new reference software version, determines that described upgrade information is that described current software version is to institute
State the second difference bag of new reference software version, and, described new reference software version to described target software release
3rd difference bag.
S303: send described second difference bag and described 3rd difference bag to described terminal, so that described terminal is according to institute
State the second difference bag and described 3rd difference bag carries out edition upgrading.
Concrete, it is spaced first between the current software version of terminal and current target software release when server determines
Software version, it is determined that this first software version is new reference software version, this first software version is and Current software version
This adjacent next software version, the upper software version that the most current target software release is adjacent.When terminal is true
After having determined new reference software version, terminal is assured that the upgrade information being sent to terminal is that current software version is to being somebody's turn to do
Second difference bag of new reference software version, and, the 3rd difference of this new reference software version to target software release
Bag.
For example, it is assumed that server includes V0-V1 difference bag at the difference bag of current time, (the two is poor for V1-V0 difference bag
Subpackage is the difference bag that server obtains for volume production software version V1), V1-V2 difference bag, V2-V0 difference bag, V0-V2 difference
Bag (these three difference bag is the difference bag that server obtains for volume production software version V2), V2-V3 difference bag, V0-V3 difference
Bag, V3-V0 difference bag (these three difference bag is the difference bag that server obtains for volume production software version V3), now server
On target software release be the highest software version;Assume that terminal current software version is V1, current target software release
For V3, reference software version is V0, and server judges to be spaced between V1 and V3 an i.e. V2 of the first software version, then server will
V2 is as new reference software version, and the most now server determines that current software version is to the second of this new reference software version
Difference bag (V1-V2) and this new reference software version, thus will to the 3rd difference bag (V2-V3) of target software release
V1-V2 difference bag and V2-V3 difference bag are sent to terminal so that terminal is directly entered according to V1-V2 difference bag and V2-V3 difference bag
Row upgrading, i.e. terminal are first upgraded to V2 from V1, then are upgraded to V3 from V2, thus optimize the upgrading link of terminal, improve end
The liter stage efficiency of end.
At server, the method for upgrading software of the terminal that the embodiment of the present invention provides, determines that current software version is soft with target
When being spaced the first software version between part version, server determines that this first software version is new reference software version, thus
According to the reference software version that this is new, determine that upgrade information is current software version to this new reference software version is second poor
Subpackage, and, the 3rd difference bag of this new reference software version to target software release, thus by this second difference bag and
Three difference bags are sent to terminal so that terminal carries out edition upgrading according to this second difference bag and the 3rd difference bag, and it optimizes
The upgrading link of terminal, improves the liter stage efficiency of terminal, and then improves the experience of user.
The schematic flow sheet of the method for upgrading software embodiment four of the terminal that Fig. 5 provides for the embodiment of the present invention.This enforcement
Example refers to server according to adjacent attribute and reference software version, and another of the upgrade information that true directional terminals sends is concrete
Process.On the basis of above-described embodiment, further, above-mentioned S104 specifically may include that
S401: if being spaced multiple software version between described current software version and described target software release, it is determined that
Described upgrade information is the 4th difference bag of described current software version extremely described reference software version, and, described benchmark is soft
5th difference bag of part version extremely described target software release.
S402: send described 4th difference bag and described 5th difference bag to described terminal, so that described terminal is according to institute
State the 4th difference bag and described 5th difference bag carries out edition upgrading.
Concrete, in the present embodiment, when server determines the current software version of terminal and current target software release
Between when being spaced multiple software version, server may determine that above-mentioned upgrade information is that current software version is soft to current benchmark
4th difference bag of part version, and, the 5th difference bag of this reference software version to target software release, thus by the 4th
Difference bag and the 5th difference bag are sent to terminal so that terminal is upgraded according to the 4th difference bag and the 5th difference bag, the most first
It is upgraded to reference software version from current software version, then is upgraded to target software release from reference software version.In this embodiment, eventually
End has only to download first difference subpackage and restarting and the most just can complete to upgrade, it addition, in the present embodiment, server considers ought
Front software version and the adjacent attribute of current target software release, i.e. consider current software version and current target software
After the difference span of version, just decide whether to carry out cross-version upgrading as stated above, which enhance in prior art
The effectiveness of cross-version upgrading, it is to avoid the blindness of cross-version of the prior art upgrading.
The method for upgrading software of the terminal that the embodiment of the present invention provides, when server determines that current software version is soft with target
When being spaced multiple software version between part version, determine that above-mentioned upgrade information is that current software version is to the of reference software version
Four difference bags, and, the 5th difference bag of reference software version to target software release, thus by the 4th difference bag and the 5th
Difference bag is sent to terminal so that terminal carries out edition upgrading according to the 4th difference bag and the 5th difference bag.This embodiment is examined
Consider the adjacent attribute of current software version and current target software release, i.e. consider current software version and current mesh
After the difference span of mark software version, just decide whether to carry out cross-version upgrading as stated above, which enhance existing
The effectiveness of the cross-version upgrading in technology, it is to avoid the blindness of cross-version of the prior art upgrading.
The schematic flow sheet of the method for upgrading software embodiment five of the terminal that Fig. 6 provides for the embodiment of the present invention.This enforcement
Example refers to server according to adjacent attribute and reference software version, and another of the upgrade information that true directional terminals sends is concrete
Process.On the basis of above-described embodiment, further, above-mentioned S104 specifically may include that
S501: if current software version and target software release are same software version, it is determined that described upgrade information
For indicating described terminal currently without the information of upgrading.
S502: send described upgrade information to described terminal, so that described terminal is known described according to described upgrade information
Current software version is described target software release.
Concrete, in the present embodiment, when server determines that the current software version of terminal is same with target software release
During individual software version, server determines that the upgrade information being sent to terminal is to indicate terminal currently without the information of upgrading, and will
This upgrade information is sent to terminal, so that according to upgrade information, terminal knows that current software version is target software release,
Thus avoid terminal and be in the state waiting as long for upgrading so that terminal can reduce wait expense in time, enters for user
Other service of row, thus substantially increase the effectiveness of terminal staging.
The method for upgrading software of the terminal that the embodiment of the present invention provides, when server determines that current software version is soft with target
When part version is same software version, server sends for indicating terminal currently without the upgrade information of upgrading to terminal,
Thus avoid terminal and be in the state waiting as long for upgrading so that terminal can reduce wait expense in time, enters for user
Other service of row, thus substantially increase the effectiveness of terminal staging.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each method embodiment can be led to
The hardware crossing programmed instruction relevant completes.Aforesaid program can be stored in a computer read/write memory medium.This journey
Sequence upon execution, performs to include the step of above-mentioned each method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
The structural representation of the terminal embodiment one that Fig. 7 provides for the embodiment of the present invention.As it is shown in fig. 7, this terminal includes:
First acquisition module 10, first determine module 11, second determine module 12 and sending module 13.
Concrete, the first acquisition module 10, for receiving the version detection request that terminal sends, obtain working as of described terminal
Front software version;
First determines module 11, for determining target software release and the reference software version of current time;
Second determines module 12, for according to described current software version and described target software release, determines described working as
The adjacent attribute of front software version and described target software release, and according to described adjacent attribute and described reference software version,
Determine the upgrade information sent to described terminal;It is soft with described target that described adjacent attribute is used for characterizing described current software version
Whether part version is two adjacent software versions;
Sending module 13, for being sent to described terminal by described upgrade information.
The terminal that the embodiment of the present invention provides, can perform said method embodiment, and it realizes principle and technique effect class
Seemingly, do not repeat them here.
Optionally, above-mentioned adjacent attribute includes: described current software version and described target software release are same soft
Part version, described current software version are two adjacent software versions, described Current software version with described target software release
Be spaced between this and described target software release the first software version, described current software version and described target software release it
Between be spaced any one in multiple software version;Wherein, described first software version is adjacent with described current software version
Next software version.
Optionally, described second determines module 12, specifically in described current software version and described target software version
When being originally two adjacent software versions, determine that described upgrade information is that described current software version is to described target software release
The first difference bag;
Described sending module 13, specifically for described terminal send described first difference bag so that described terminal according to
Described first difference bag carries out edition upgrading.
Optionally, described second determines module 12, specifically in described current software version and described target software version
When being spaced described first software version between Ben, determine that described first software version is new reference software version, and according to institute
State new reference software version, determine that described upgrade information is that described current software version is to described new reference software version
Second difference bag, and, the 3rd difference bag of described new reference software version to described target software release;
Described sending module 13, specifically for sending described second difference bag and described 3rd difference bag to described terminal,
So that described terminal carries out edition upgrading according to described second difference bag and described 3rd difference bag.
Optionally, described second determines module 12, specifically in described current software version and described target software version
When being spaced multiple software version between Ben, determine that described upgrade information is that described current software version is to described reference software version
The 4th difference bag, and, described reference software version to the 5th difference bag of described target software release;
Described sending module 13, specifically for sending described 4th difference bag and described 5th difference bag to described terminal,
So that described terminal carries out edition upgrading according to described 4th difference bag and described 5th difference bag.
Optionally, described second determines module 12, specifically in described current software version and described target software version
When this is same software version, determine that described upgrade information is to indicate described terminal currently without the information of upgrading;
Described sending module 13, specifically for sending described upgrade information to described terminal, so that described terminal is according to institute
State upgrade information and know that described current software version is described target software release.
Optionally, described first determines module 11, specifically for the version number according to described current software version and described
Difference between the version number of target software release, determines the adjacent genus of described current software version and described target software release
Property.
On the basis of above-described embodiment, further, the structural representation of terminal embodiment two shown in Figure 8.
As shown in Figure 8, above-mentioned terminal can also include the second acquisition module 14, for for each volume production software version, obtains described
Volume production software version is to the difference bag of described reference software version, the difference of described reference software version to described volume production software version
The difference of subpackage and a upper volume production software version adjacent with described volume production software version extremely described volume production software version
Bag;Wherein, described volume production software version is different from described reference software version.
The terminal that the embodiment of the present invention provides, can perform said method embodiment, and it realizes principle and technique effect class
Seemingly, do not repeat them here.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;To the greatest extent
The present invention has been described in detail by pipe with reference to foregoing embodiments, it will be understood by those within the art that: it depends on
So the technical scheme described in foregoing embodiments can be modified, or the most some or all of technical characteristic is entered
Row equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. the method for upgrading software of a terminal, it is characterised in that including:
Receive the version detection request that terminal sends, obtain the current software version of described terminal;
Determine target software release and the reference software version of current time;
According to described current software version and described target software release, determine described current software version and described target software
The adjacent attribute of version;Whether described adjacent attribute is used for characterizing described current software version with described target software release is two
Individual adjacent software version;
According to described adjacent attribute and described reference software version, determine the upgrade information sent to described terminal, and by described
Upgrade information is sent to described terminal.
Method the most according to claim 1, it is characterised in that described adjacent attribute includes: described current software version with
Described target software release be same software version, described current software version and described target software release be two adjacent
Software version, described current software version and described target software release between be spaced the first software version, described the softest
Any one in multiple software version it is spaced between part version and described target software release;Wherein, described first software version
For the next software version adjacent with described current software version.
Method the most according to claim 2, it is characterised in that described according to described adjacent attribute with described reference software version
This, determine the upgrade information sent to described terminal, specifically include:
If described current software version is two adjacent software versions with described target software release, it is determined that described upgrading is believed
Breath is the first difference bag of described current software version to described target software release;
Described first difference bag is sent, so that described terminal carries out edition upgrading according to described first difference bag to described terminal.
Method the most according to claim 2, it is characterised in that described according to described adjacent attribute with described reference software version
This, determine the upgrade information sent to described terminal, specifically include:
If being spaced described first software version between described current software version and described target software release, it is determined that described
One software version is new reference software version;
According to described new reference software version, determine that described upgrade information is that described current software version is to described new benchmark
Second difference bag of software version, and, the 3rd difference bag of described new reference software version to described target software release;
Described second difference bag and described 3rd difference bag is sent, so that described terminal is according to described second difference to described terminal
Bag and described 3rd difference bag carry out edition upgrading.
Method the most according to claim 2, it is characterised in that described according to described adjacent attribute with described reference software version
This, determine the upgrade information sent to described terminal, specifically include:
If being spaced multiple software version between described current software version and described target software release, it is determined that described upgrading is believed
Breath is the 4th difference bag of described current software version to described reference software version, and, described reference software version is to institute
State the 5th difference bag of target software release;
Described 4th difference bag and described 5th difference bag is sent, so that described terminal is according to described 4th difference to described terminal
Bag and described 5th difference bag carry out edition upgrading.
Method the most according to claim 2, it is characterised in that described according to described adjacent attribute with described reference software version
This, determine the upgrade information sent to described terminal, specifically include:
If described current software version and described target software release are same software version, it is determined that described upgrade information is
Indicate described terminal currently without the information of upgrading;
Described upgrade information is sent, so that described terminal knows described Current software version according to described upgrade information to described terminal
This is described target software release.
7. according to the method described in any one of claim 1-6, it is characterised in that according to described current software version and described mesh
Mark software version, determines the adjacent attribute of described current software version and described target software release, specifically includes:
The difference between version number and the version number of described target software release according to described current software version, determines described
The adjacent attribute of current software version and described target software release.
Method the most according to claim 6, it is characterised in that the version detection request that described reception terminal sends, obtains
Before the current software version of described terminal, described method also includes:
For each volume production software version, obtain described volume production software version to the difference bag, described of described reference software version
The difference bag of reference software version extremely described volume production software version and a upper amount adjacent with described volume production software version
Produce the difference bag of software version extremely described volume production software version;Wherein, described volume production software version and described reference software version
Different.
9. a terminal, it is characterised in that including:
First acquisition module, for receiving the version detection request that terminal sends, obtains the current software version of described terminal;
First determines module, for determining target software release and the reference software version of current time;
Second determines module, for according to described current software version and described target software release, determines described Current software
The adjacent attribute of version and described target software release, and according to described adjacent attribute and described reference software version, determine to
The upgrade information that described terminal sends;Described adjacent attribute is used for characterizing described current software version and described target software release
Whether it is two adjacent software versions;
Sending module, for being sent to described terminal by described upgrade information.
Terminal the most according to claim 9, it is characterised in that described adjacent attribute includes: described current software version with
Described target software release be same software version, described current software version and described target software release be two adjacent
Software version, described current software version and described target software release between be spaced the first software version, described the softest
Any one in multiple software version it is spaced between part version and described target software release;Wherein, described first software version
For the next software version adjacent with described current software version.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610496702.2A CN106201588A (en) | 2016-06-28 | 2016-06-28 | The method for upgrading software of terminal and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610496702.2A CN106201588A (en) | 2016-06-28 | 2016-06-28 | The method for upgrading software of terminal and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106201588A true CN106201588A (en) | 2016-12-07 |
Family
ID=57462671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610496702.2A Pending CN106201588A (en) | 2016-06-28 | 2016-06-28 | The method for upgrading software of terminal and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201588A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106843984A (en) * | 2017-02-13 | 2017-06-13 | 东软集团股份有限公司 | The update method and device of application database |
CN110442361A (en) * | 2019-06-27 | 2019-11-12 | 五八有限公司 | A kind of gray scale dissemination method, device and electronic equipment |
CN110471691A (en) * | 2019-08-15 | 2019-11-19 | 北京筑梦园科技有限公司 | A kind of method for upgrading software, server and managing system of car parking |
CN111401027A (en) * | 2018-12-28 | 2020-07-10 | 北大方正集团有限公司 | Format template file upgrading method and device |
CN113268258A (en) * | 2020-02-14 | 2021-08-17 | 西安诺瓦星云科技股份有限公司 | Terminal upgrading method, device and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309694A (en) * | 2012-03-14 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Application program updating method and device |
CN105159724A (en) * | 2015-09-15 | 2015-12-16 | 青岛海信移动通信技术股份有限公司 | Cross-version upgrade method for software, client and server |
-
2016
- 2016-06-28 CN CN201610496702.2A patent/CN106201588A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309694A (en) * | 2012-03-14 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Application program updating method and device |
CN105159724A (en) * | 2015-09-15 | 2015-12-16 | 青岛海信移动通信技术股份有限公司 | Cross-version upgrade method for software, client and server |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106843984A (en) * | 2017-02-13 | 2017-06-13 | 东软集团股份有限公司 | The update method and device of application database |
CN111401027A (en) * | 2018-12-28 | 2020-07-10 | 北大方正集团有限公司 | Format template file upgrading method and device |
CN111401027B (en) * | 2018-12-28 | 2022-05-10 | 北大方正集团有限公司 | Format template file upgrading method and device |
CN110442361A (en) * | 2019-06-27 | 2019-11-12 | 五八有限公司 | A kind of gray scale dissemination method, device and electronic equipment |
CN110442361B (en) * | 2019-06-27 | 2024-02-09 | 五八有限公司 | Gray release method and device and electronic equipment |
CN110471691A (en) * | 2019-08-15 | 2019-11-19 | 北京筑梦园科技有限公司 | A kind of method for upgrading software, server and managing system of car parking |
CN113268258A (en) * | 2020-02-14 | 2021-08-17 | 西安诺瓦星云科技股份有限公司 | Terminal upgrading method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201588A (en) | The method for upgrading software of terminal and terminal | |
CN106658475B (en) | Method and device for upgrading over-the-air technology | |
CN102129375B (en) | Method and equipment for system upgrade of mobile terminal | |
US20170206079A1 (en) | Method and Device for Upgrading Software | |
US20090017812A1 (en) | Method and system for restoring user settings after over-the-air update of mobile electronic device software | |
US8594653B2 (en) | System and methods for remotely upgrading software applications | |
CN108027741A (en) | Document handling method, device, terminal and storage medium based on patch upgrading | |
US8161474B2 (en) | Diagnostic information preservation during installations of over the air update of wireless handset software | |
CN107465539A (en) | The upgrade-system of the upgrade method of firmware, terminal and firmware | |
CN109558160A (en) | Upgrade method, embedded system | |
CN103458397A (en) | Advertisement processing method and device | |
CN102833350A (en) | Processing method and processing device of WebApp updating | |
CN101610499A (en) | The upgrade method of wireless data card and system | |
CN102541596A (en) | Operating system upgrading method and device | |
CN104834555A (en) | Method for invoking functional module, related device and device repairing method | |
CN103353845A (en) | Method and device for uploading and pushing script | |
US20220229654A1 (en) | Enabling upgrading firmware of a target device | |
KR101201276B1 (en) | Method, software and apparatus for performing actions on a wireless device using action lists and versioning | |
CN102004657B (en) | A kind of electronic equipment and upgrade method thereof | |
CN108536464A (en) | A kind of hot restorative procedure and device of application program | |
CN104239098A (en) | Automatic software upgrading method and device and mobile terminal | |
CN106648798A (en) | Method for dynamically upgrading cross-version OTA | |
WO2006057861A1 (en) | System and method for over-the-air update of wireless communication devices | |
CN103365682A (en) | Information handling device and information handling method | |
CN108121560A (en) | Difference bag upgrade method, device, terminal and computer readable storage 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |