CN106909429A - A kind of synchronous upgrade method and device - Google Patents
A kind of synchronous upgrade method and device Download PDFInfo
- Publication number
- CN106909429A CN106909429A CN201710216522.9A CN201710216522A CN106909429A CN 106909429 A CN106909429 A CN 106909429A CN 201710216522 A CN201710216522 A CN 201710216522A CN 106909429 A CN106909429 A CN 106909429A
- Authority
- CN
- China
- Prior art keywords
- version
- software
- database
- target
- version software
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
A kind of synchronous upgrade method and device are the embodiment of the invention provides, the server communicated to connect with intelligent terminal is applied to.The method includes:Obtain the target version number of updating software release;Version software corresponding with target version number is obtained from each version software for prestoring, as target version software;Generation target database corresponding with target version software;Target version software is sent to intelligent terminal, so that current version software is replaced with target version software by intelligent terminal.The synchronous upgrading scheme that the present invention is provided, is upgraded to match the software version after upgrading while software release upgrade to associated databases version.After software release upgrade, completely remain user data, it is to avoid user data loss.And also interface and code without redundancy, save memory space.
Description
Technical field
The present invention relates to mobile communication technology field, in particular to a kind of synchronous upgrade method and device.
Background technology
Over the air (Over the Air, OTA) is a kind of technology that data download is carried out by wireless network, its
It is generally applied in the escalation process that the systems soft ware of the terminal devices such as mobile phone, panel computer fixes version.Current OTA is soft
Lack the consideration to customer data base compatibility in part upgrade technique.After upgrading, because the interface for reading and writing database there occurs
Change, thus upgrading before database in store some data possibly cannot be upgraded after software be continuing with.Existing skill
In art, the scheme of the data stored before upgrading is often given up using interface variation is ignored, can so cause losing for user data
Lose, Consumer's Experience is bad.Additionally, also have using the scheme for retaining the interface before upgrading in the new interface after upgrading, but it is this
There is the interface and code of redundancy in the software version that mode can be after upgrading, take memory space.
The content of the invention
In view of this, it is an object of the invention to provide a kind of synchronous upgrade method and device, to solve the above problems.
Present pre-ferred embodiments provide a kind of synchronous upgrade method, are applied to the service communicated to connect with intelligent terminal
Device, prestores each version software in the server, methods described includes:
Obtain the target version number of updating software release;
Version software corresponding with the target version number is obtained from each version software for prestoring, it is soft as target version
Part;
Generation target database corresponding with the target version software;
The target version software is sent to the intelligent terminal, so that the intelligent terminal replaces current version software
It is changed to the target version software.
Another preferred embodiment of the present invention provides a kind of synchronous upgrade method, is applied to the intelligence being connected with server communication
Terminal, prestores the database conversion program between each version software and each version software, methods described in the server
Including:
Obtain the target with updating software release got from each version software for prestoring that the server sends
Got in the corresponding target version software of version number, and database conversion program between each version software for prestoring
Database conversion program corresponding with the target version software;
The database conversion program that operation gets, generates target data corresponding with the target version software
Storehouse;
The target database is stored, current version software the target version software is replaced with into, and delete
The database conversion program.
Another preferred embodiment of the present invention provides a kind of synchronous update device, is applied to the clothes communicated to connect with intelligent terminal
Business device, prestores each version software in the server, the synchronous update device includes:
Target version acquisition module, the target version number for obtaining updating software release;
First acquisition module is soft for obtaining version corresponding with the target version number from each version software for prestoring
Part, as target version software;
First database generation module, for generating target database corresponding with the target version software;
Sending module, for the target version software to be sent to the intelligent terminal, so that the intelligent terminal will
Current version software replaces with the target version software.
Another preferred embodiment of the present invention provides a kind of synchronous update device, is applied to the intelligence being connected with server communication
Terminal, prestores the database conversion program between each version software and each version software, the synchronization in the server
Update device includes:
Second acquisition module, for being got from each version software for prestoring of obtaining that the server sends and liter
The corresponding target version software of target version number of level software version, and turn from the database between each version software for prestoring
Change the database conversion program corresponding with the target version software got in program;
Second database generation module, for running the database conversion program for getting, generation and the target
The corresponding target database of version software;
Upgraded module, for the target database to be stored, the target version is replaced with by current version software
This software, and delete the database conversion program.
Compared to existing technologies, the invention has the advantages that:
The embodiment of the present invention provides a kind of synchronous upgrade method and device, by while software release upgrade is carried out,
Carry out the upgrading of database version, with generate with upgrade after the database version that matches of software version.In software version liter
After level, user data is completely remained, it is to avoid user data loss, lift the experience of terminal user.And do not have yet
The interface and code of redundancy, save memory space.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
The application scenarios schematic diagram of a kind of synchronous upgrade method that Fig. 1 is provided for present pre-ferred embodiments.
A kind of functional block diagram of server that Fig. 2 is provided for present pre-ferred embodiments.
A kind of functional block diagram of intelligent terminal that Fig. 3 is provided for present pre-ferred embodiments.
A kind of flow of synchronous upgrade method for being applied to above-mentioned server that Fig. 4 is provided for present pre-ferred embodiments
Figure.
Fig. 5 is the flow chart of the sub-step of step 103 in Fig. 4.
Fig. 6 is the flow chart of the sub-step of step 105 in Fig. 4.
Another flow of the synchronous upgrade method for being applied to above-mentioned server that Fig. 7 is provided for present pre-ferred embodiments
Figure.
Another flow of the synchronous upgrade method for being applied to above-mentioned server that Fig. 8 is provided for present pre-ferred embodiments
Figure.
A kind of flow of synchronous upgrade method for being applied to above-mentioned intelligent terminal that Fig. 9 is provided for present pre-ferred embodiments
Figure.
The functional block diagram of the first synchronous update device that Figure 10 is provided for present pre-ferred embodiments.
The functional block diagram of the second synchronous update device that Figure 11 is provided for present pre-ferred embodiments.
Icon:100- servers;The synchronous update devices of 110- first;111- target version acquisition modules;112- first
Acquisition module;1121- judging submodules;The acquisition submodules of 1122- first;The acquisition submodules of 1123- second;The data of 113- first
Storehouse generation module;1131- database acquisition submodules;1132- conversion programs search submodule;1133- databases generate submodule
Block;114- sending modules;120- first processors;130- first memories;200- intelligent terminals;The synchronous upgrading dresses of 210- second
Put;The acquisition modules of 211- second;212- the second database generation modules;213- upgraded modules;220- second processing devices;230-
Two memories.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
Fig. 1 is referred to, is a kind of application scenarios schematic diagram of synchronous upgrade method provided in an embodiment of the present invention.The application
Scene includes server 100 and intelligent terminal 200.Wherein, the intelligent terminal 200 can be multiple.The server 100
Communicated to connect with intelligent terminal one or more described 200 by network, to enter row data communication or interaction.The server
100 can be the webserver, database server, can be that single server can also be server cluster etc..It is described
Intelligent terminal 200 can be but not limited to PC, panel computer, smart mobile phone, mobile internet surfing equipment, television set, intelligence
Refrigerator, intelligent air condition, intelligent washing machine, Intelligent air purifier etc..
Fig. 2 is referred to, is the functional block diagram of a kind of above-mentioned server 100 that present pre-ferred embodiments are provided.Institute
Stating server 100 includes the first synchronous update device 110, first processor 120 and first memory 130.Wherein, described first
Direct or indirect electric connection between memory 130 and the first processor 120, to realize the transmission or interaction of data.
Described first synchronous update device 110 can be stored in the first memory including at least one in the form of software or firmware
In 130 or the software function module that is solidificated in the operating system of the server 100.The first processor 120 is used to hold
The executable module stored in the row first memory 130, such as the software work(that described first synchronous update device 110 includes
Can module or computer program.
Fig. 3 is referred to, is the functional block diagram of a kind of above-mentioned intelligent terminal 200 that present pre-ferred embodiments are provided.
The intelligent terminal 200 includes the second synchronous update device 210, second processing device 220 and second memory 230.Wherein, it is described
Direct or indirect electric connection between second memory 230 and the second processing device 220, to realize the transmission or friendship of data
Mutually.Described second synchronous update device 210 can be stored in second storage including at least one in the form of software or firmware
In device 230 or the software function module that is solidificated in the operating system of the intelligent terminal 200.The second processing device 220 is used
The executable module stored in the second memory 230 is performed, such as it is soft that described second synchronous update device 210 includes
Part functional module or computer program.
Fig. 4 is referred to, is a kind of synchronous upgrade method for being applied to above-mentioned server 100 provided in an embodiment of the present invention
Flow chart.It should be noted that, the method that the present invention is provided is not limitation with Fig. 4 and particular order as described below.Below will
Each step to being shown in Fig. 4 is described in detail.
Step S101, obtains the target version number of updating software release.
In the present embodiment, the intelligent terminal 200 sends corresponding software release upgrade and asks to server 100, should
The target version number of updating software release is included in software release upgrade request.It should be appreciated that in the present embodiment, the service
Device 100 can also independently determine updating software release according to the actual requirements, and using the corresponding version number of updating software release as
Target version number.It should be appreciated that can be adjacent between the target version number and the current version number of the intelligent terminal 200
The version number of grade, or the version number of crossgrade, depending on the demand according to actual conditions and user.
Step S103, obtains version software corresponding with the target version number from each version software for prestoring, as
Target version software.
In the present embodiment, each version software is prestored in the server 100, and software version is carried out more in real time
Newly.The server 100 searches what is prestored after the software release upgrade request for receiving the transmission of the intelligent terminal 200, then
Each version software, obtains version software corresponding with the target version number in software release upgrade request.Or it is described
Server 100 is obtained it is determined that target version number corresponding with updating software release searches each version software for prestoring afterwards, then
Version software corresponding with the target version number.
Fig. 5 is referred to, in the present embodiment, step S103 can include step S1031, step S1033 and step S1035
Three sub-steps.
Step S1031, each version software that inquiry prestores, judges whether version corresponding with the target version number
Software, if in the presence of version software corresponding with the target version number, performing following step S1033, if do not exist with it is described
The corresponding version software of target version number, then perform following step S1035.
Step S1033, obtains version software corresponding with the target version number, as target version software.
Step S1035, obtains the corresponding version software of highest version number, as target version from each version software for prestoring
This software.
Each version software that the server 100 prestores according to the target version number inquiry for getting, for example, the target
Version number is version 3 .0, and the current software version number of the intelligent terminal 200 is version 1.0.The server 100 is then detected and deposited
Whether there is software version 3.0 in each version software prestored in storage device, if there is software version 3.0, from storage device
In get the corresponding version softwares of version 3 .0, sent to the intelligent terminal 200 so as to follow-up.
If the server 100 does not inquire version 3 .0, and detects each version software for prestoring, highest version
Number be version 2 .0.Then the server 100 gets the corresponding version softwares of version 2 .0 from storage device, by the version
Software is sent to the intelligent terminal 200 as the target version software of the intelligent terminal 200 so as to follow-up.
Step S105, generates target database corresponding with the target version software.
Fig. 6 is referred to, in the present embodiment, step S105 can include step S1051, step S1053 and step S1055
Three sub-steps.
Step S1051, obtains current database corresponding with the current version number of the intelligent terminal 200.
Step S1053, finds out database corresponding with the target version number from the database conversion program for prestoring
Conversion program.
Step S1055, according to the current database database conversion program that finds out of operation, generation with it is described
The corresponding target database of target version software.
Alternatively, except target during the intelligent terminal 200 is asked to the software release upgrade that the server 100 sends
Outside version number, current version number and current database corresponding with the current version number also including intelligent terminal 200.
It should be appreciated that the mode that the server 100 obtains current database corresponding with current version number can also be:The service
Device 100 is it is determined that the target version number of updating software release afterwards, initiates access request, so that institute to the intelligent terminal 100
Intelligent terminal 200 is stated to send to the server 100 current database.
It should be appreciated that current database corresponding with the current version number of intelligent terminal 200 can simultaneously be stored in the intelligence
In energy terminal 200 and the server 100.In this case, the server 100 can directly get institute from storage device
State current database.After the server 100 completes database upgrade, by the database synchronization after upgrading to the intelligent terminal
200.Or, the current database can be only stored in the server 100, and the server 100 is obtained from storage device
After taking the current database and completing database upgrade, the database after upgrading is stored.The intelligent terminal 200
Access request can be initiated to the server 100, to carry out corresponding database access.
In order to ensure will not exception when respective version software is called, each version of software has corresponding data
Storehouse version.In the present embodiment, the database conversion program between each version software is prestored in the server 100, can be real
Database version upgrading between incumbent meaning version.It should be appreciated that the current version number of target version number and the database in software
Between when differing multiple version, the upgrading of version one by one can be carried out to the version of current database, until be upgraded to it is soft
The version that the target version number of part matches.The target version with software can also be directly upgraded to from the version of current database
The database version of version number matches.
For example, the current version of database is version 1.0, version of the software after upgrading is version 3 .0, and and current number
The software version matched according to the version in storehouse is version 1.0, also has version 2 .0 between version 1.0 and 3.0.Therefore, in upgrading
, it is necessary to first by the database upgrade of 1.0 versions to database version 2.0 during database, then the database upgrade of 2.0 versions is arrived
Database version 3.0.With this, match with the software version 3.0 after upgrading.
In this case, the server 100 finds out software version 1.0 from the database conversion program for prestoring
To the database conversion program between software version 2.0, and according to it is receiving or prestore it is corresponding with software version 1.0
The database of 1.0 versions run the database conversion program, the database version 2.0 that generation is matched with software version 2.0.
After this, then software version 2.0 to the database conversion program between software version 3.0 is found out, and according to 2.0 editions of generation
This database runs the database conversion program, ultimately generates the database version 3.0 matched with software version 3.0.
If it should be appreciated that being directly upgraded to the number matched with the target version number of software from current database version
In the case of the version of storehouse.For example, the current version of database is version 1.0, version of the software after upgrading is version 3 .0,
The current version of database is version 1.0, then database version needs to be upgraded to version 3 .0 from version 1.0.Alternatively, it is described
Server 100 finds out software version 1.0 to the database between software version 3.0 from the database conversion program for prestoring
Conversion program, and the number is run according to the database of 1.0 versions corresponding with software version 1.0 that are receiving or prestoring
According to the database version 3.0 that storehouse conversion program, generation are matched with software version 3.0.
It should be appreciated that the synchronous upgrade method that the present embodiment is provided can be applied to above-mentioned replace with lowest version software
Highest version software, and it is corresponding lowest version database is replaced with into highest version database outside, can be also used for highest version is soft
Part replaces with lowest version software, and highest version database is replaced with into lowest version database accordingly.As long as software can be realized
Version matches with database version, and for being specifically that lowest version is replaced with into highest version still to replace with highest version
Lowest version, is not specifically limited in the present embodiment, can be according to actual conditions depending on.
For example, in the present embodiment, also the current version software of intelligent terminal 200 can be replaced with into prototype version software, i.e.,
Recover to Default Value.And user can select the customer data base before saving/restoring Default Value according to self-demand,
So that the customer data base remains able to use after factory reset.
Step S107, the target version software is sent to the intelligent terminal 200, so that the intelligent terminal 200
Current version software is replaced with into the target version software.
The server 100 after upgrading is completed, by the target version software after upgrading and generation and target version
The target database of this Software match is sent to the intelligent terminal 200.Alternatively, the server 100 is by the target version
The AKU of this software and the AKU of target database are sent to the intelligent terminal 200.Or, the server
100 send out the download address of the download address of the AKU of the target version software and the AKU of the target database
Deliver to the intelligent terminal 200.The intelligent terminal 200 is receiving the AKU and the mesh of the target version software
After the download address of the AKU for marking database, download AKU accordingly to be upgraded.And the intelligent terminal 200 will
Current version software replaces with the target version software after upgrading, and corresponding target database is locally preserved, final complete
Into software version upgrading synchronous with database version.
If it should be appreciated that current database described above is while being stored in the intelligent terminal 200 and the server
When in 100, current database is then replaced with the number of targets after upgrading by the server 100 after database upgrade is completed
According to storehouse, the target version software after upgrading is sent to the intelligent terminal 200, and the target database is synchronized to institute
Intelligent terminal 200 is stated, so that the intelligent terminal 200 completes corresponding upgrading.Or, if current database described above is only protected
When existing in the server 100, current database is replaced with upgrading by the server 100 after database upgrade is completed
Target database afterwards, and preserved.And the target version software after upgrading is sent to the intelligent terminal 200.Institute
Stating intelligent terminal 200 can initiate access request to the server 100, to carry out database access.
Fig. 7 is referred to, in the present embodiment, the synchronous upgrade method can also be comprised the following steps:
Step S201, receives the software version inquiry request that the interval of intelligent terminal 200 predetermined period sends.
Alternatively, the intelligent terminal 200 actively initiates software version inquiry request to the server 100, to inquire about
Whether the software version of renewal is had.For example, the intelligent terminal 200 is spaced several hours, such as 12 hours or 24 hours, to
Whether the server 100 sends inquiry request, the upgrading software for having the suitable terminal to inquire about.
Step S203, with the presence or absence of in software version updated in the current preset cycle in each version software that detection prestores
This, if being present in software version updated in the current preset cycle, software release upgrade is sent to the intelligent terminal 200
Indicate, or by the corresponding with the version software of version software corresponding with the software version after renewal and generation
Database is sent to the intelligent terminal 200.
The server 100 detects pre- after the software version inquiry request for receiving the transmission of the intelligent terminal 200, then
Each version software deposited, to check whether to be present in the predetermined period, in such as 12 hours or 24 hours just
Updated software version.If in the presence of the software version after just updating, software release upgrade is sent to the intelligent terminal 200
Indicate.The intelligent terminal 200 can choose whether after receiving the software release upgrade and indicating according to self-demand
Carry out corresponding software release upgrade.If the intelligent terminal 200 carries out software release upgrade in advance, can be to the server
100 initiate software release upgrade request, to carry out software release upgrade.It should be appreciated that the server 100 is being detected the presence of
After software version after just updating, it is also possible to actively by version software corresponding with the software version after the renewal and life
Into database corresponding with the version software send to the intelligent terminal 200 so that the intelligent terminal 200 carries out phase
The software release upgrade answered.If the server 100 is after sensing, updated software version in the predetermined period is found no
This, then can return to a response message that cannot upgrade to the intelligent terminal 200, to point out the intelligent terminal 200, when
Before cannot carry out software release upgrade.
Fig. 8 is referred to, in the present embodiment, the synchronous upgrade method can also be comprised the following steps:
Step S301, receives the feedback information that the intelligent terminal 200 sends, and the feedback information includes version defect
Information.
In the present embodiment, whether the intelligent terminal 200 can carry out software version and test oneself, to detect current version software
Existing defects.If testing result is indicated, the software of current version has started a leak, then being sent to the server 100 includes version
The feedback information of this defect information.It should be appreciated that can also be based on Consumer's Experience generation, example to the feedback of current version software
Such as, user in use, it is found that exception occurs in system operation or experience property is poor, then user can be shown by operating
Interface carries out feedback of the information manually.
Step S303, detects whether the software version for having after renewal corresponding with the version defect information, if in the presence of,
Then software release upgrade is sent to the intelligent terminal 200 to indicate, or by version corresponding with the software version after renewal
This software and the database corresponding with the version software of generation are sent to the intelligent terminal 200.
The server 100 detects the current each version for prestoring after the feedback information that the intelligent terminal 200 sends is received
This software, checks whether to solve the new software version of problem present in the version defect information.If in the presence of having solved
Certainly the software version after the renewal of the problem of the presence, then send software release upgrade and indicate to the intelligent terminal 200.It is described
Intelligent terminal 200 can choose whether to carry out accordingly after receiving the software release upgrade and indicating according to self-demand
Software release upgrade.If the intelligent terminal 200 carries out software release upgrade in advance, phase can be sent to the server 100
The software release upgrade answered is asked to carry out software upgrading.It should be appreciated that the server 100 solves institute detecting the presence of
State the software version of the renewal of problem present in version defect information, it is also possible to actively by with the renewal after the software version
This corresponding version software and the database corresponding with the version software of generation are sent to the intelligent terminal 200, with
The intelligent terminal 200 is set to carry out corresponding software release upgrade.If the server 100 does not find for the version after detecting
The software version that this defect information is updated, then return to a response message that cannot upgrade to the intelligent terminal 200, with
The intelligent terminal 200 is pointed out, software release upgrade cannot be currently carried out.
Alternatively, in the present embodiment, if the server 100 receive multiple intelligent terminals 200 transmission including version
The feedback information of this defect information, shows that larger problem has occurred in the software of the version.Then one end of the server 100, once
The software version after updating is detected, then broadcast is sent, to point out multiple intelligent terminals 200 to carry out software version liter as early as possible
Level.
Fig. 9 is referred to, is a kind of synchronous upgrade method for being applied to above-mentioned intelligent terminal 200 provided in an embodiment of the present invention
Flow chart.It should be noted that, the method that the present invention is provided is not limitation with Fig. 9 and particular order as described below.Below
Each step shown in Fig. 9 will be described in detail.
Step S401, obtain that the server 100 sends got from each version software for prestoring with upgrade it is soft
The corresponding target version software of target version number of part version, and change journey from the database between each version software for prestoring
The database conversion program corresponding with the target version software got in sequence.
Step S403, the database conversion program that operation gets is generated corresponding with the target version software
Target database.
Step S405, the target database is stored, and it is soft that current version software is replaced with into the target version
Part, and delete the database conversion program.
From above-mentioned, the present invention each provide a kind of synchronous upgrade method for being applied to the server 100 and
It is applied to the synchronous upgrade method of the intelligent terminal 200.The difference of both is be applied to the server 100 same
In step upgrade method, the running of database conversion program is carried out in the one end of the server 100, the server 100
Database after the upgrading of generation is sent to the intelligent terminal 200.Such mode, can save the intelligent terminal
200 computing resource, and if database it is smaller and if conversion program is larger, database is sent to intelligent terminal 200,
Flow will more be saved.
And be applied in the synchronous upgrade method of intelligent terminal 200, the intelligent terminal 200 is obtained from the end of server 100
Database conversion program, conversion program is in the operation of the one end of intelligent terminal 200.Such mode, can save server 100 1
The computing resource at end, and if conversion program is smaller, conversion program is sent to intelligent terminal 200, saving intelligence will be compared
Data traffic between terminal 200 and server 100.
Figure 10 is referred to, is the functional block diagram of the provided in an embodiment of the present invention a kind of first synchronous update device 110.
Described first synchronous update device 110 includes target version acquisition module 111, the first acquisition module 112, the life of the first database
Into module 113 and sending module 114.
The target version acquisition module 111 is used to obtain the target version number of updating software release.Specifically, the mesh
Mark version number acquisition module 111 can be used to perform S101 the step of shown in Fig. 4, and specific operating method refers to step S101
Detailed description.
First acquisition module 112 is used to obtain corresponding with the target version number from each version software for prestoring
Version software, as target version software.Specifically, first acquisition module 112 can be used for the step of performing shown in Fig. 4
S103, specific operating method refers to the detailed description of step S103.
The first database generation module 113 is used to generate target database corresponding with the target version software.
Specifically, the first database generation module 113 can be used to perform S105 the step of shown in Fig. 4, and specific operating method can
With reference to the detailed description of step S105.
The sending module 114 is used to send the target version software to the intelligent terminal 200, so that the intelligence
Current version software is replaced with the target version software by energy terminal 200.Specifically, the sending module 114 can be used to perform
The step of shown in Fig. 4 S107, specific operating method refers to the detailed description of step S107.
Alternatively, first acquisition module 112 can include judging submodule 1121, the first acquisition submodule 1122 with
And second acquisition submodule 1123.
The judging submodule 1121 is used to inquire about each version software for prestoring, and judges whether and the target version
Number corresponding version software.Specifically, the judging submodule 1121 can be used to perform S1031 the step of shown in Fig. 5, specifically
Operating method refers to the detailed description of step S1031.
First acquisition submodule 1122 is used to, when there is version software corresponding with the target version number, obtain
Version software corresponding with the target version number, as target version software.Specifically, first acquisition submodule 1122 can
The step of for performing shown in Fig. 5 S1033, specific operating method refers to the detailed description of step S1033.
Second acquisition submodule 1123 be used for when in the absence of version software corresponding with the target version number, from
The corresponding version software of highest version number is obtained in each version software for prestoring, as target version software.Specifically, this second
Acquisition submodule 1123 can be used to perform S1035 the step of shown in Fig. 5, and specific operating method refers to step S1035's
Describe in detail.
Alternatively, the first database generation module 113 can include database acquisition submodule 1131, conversion program
Search submodule 1132 and database generation submodule 1133.
The database acquisition submodule 1131 is used to obtain work as corresponding with the current version number of the intelligent terminal 200
Preceding database.Specifically, the database acquisition submodule 1131 can be used to perform S1051 the step of shown in Fig. 6, specific behaviour
The detailed description of step S1051 is referred to as method.
The conversion program searches submodule 1132 to be used to be found out from the database conversion program for prestoring and the mesh
The corresponding database conversion program of mark version number.Specifically, the conversion program searches submodule 1132 and can be used to perform institute in Fig. 6
The step of showing S1053, specific operating method refers to the detailed description of step S1053.
The database generation submodule 1133 is used for the database found out according to current database operation
Conversion program, generates target database corresponding with the target version software.Specifically, database generation submodule 1133
Can be used to perform S1055 the step of shown in Fig. 6, specific operating method refers to the detailed description of step S1055.
Figure 11 is referred to, is the functional block diagram of the provided in an embodiment of the present invention a kind of second synchronous update device 210.
The device includes the second acquisition module 211, the second database generation module 212 and upgraded module 213.
Second acquisition module 211 is used to obtain being obtained from each version software for prestoring for the transmission of the server 100
Target version software corresponding with updating software release target version number that is getting, and between each version software for prestoring
Database conversion program in the database conversion program corresponding with the target version software that gets.Specifically, this
Two acquisition modules 211 can be used to perform S401 the step of shown in Fig. 9, and specific operating method refers to the detailed of step S401
Description.
The second database generation module 213 is used to run the database conversion program for getting, generation and institute
State the corresponding target database of target version software.Specifically, the second database generation module 213 can be used in execution Fig. 9
Shown step S403, specific operating method refers to the detailed description of step S403.
The upgraded module 213 is used to be stored the target database, current version software is replaced with described
Target version software, and delete the database conversion program.Specifically, the upgraded module 213 can be used to perform shown in Fig. 9
The step of S405, specific operating method refers to the detailed description of step S405.
In sum, a kind of synchronous upgrade method provided in an embodiment of the present invention and device, by carrying out software version
While upgrading, carry out the upgrading of database version, with generate with upgrade after the database version that matches of software version.
After software release upgrade, completely remain user data, it is to avoid user data loss, lift the experience of terminal user.
And also interface and code without redundancy, save terminal storage space.
In embodiment provided herein, it should be understood that disclosed apparatus and method, it is also possible to by other
Mode realize.Device embodiment described above is only schematical, for example, the flow chart and block diagram in accompanying drawing show
Devices in accordance with embodiments of the present invention, the architectural framework in the cards of method and computer program product, function and behaviour
Make.At this point, each square frame in flow chart or block diagram can represent a part for module, program segment or code, institute
Stating a part for module, program segment or code is used for the executable instruction of the logic function that realization specifies comprising one or more.
It should also be noted that in some are as the implementation replaced, the function of being marked in square frame can also be with different from accompanying drawing
The order for being marked occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they sometimes can also be by
Opposite order is performed, and this is depending on involved function.It is also noted that each square frame in block diagram and/or flow chart,
And the combination of the square frame in block diagram and/or flow chart, can be with the function or action for performing regulation it is special based on hardware
System realize, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage, random access memory, magnetic disc or CD etc. are each
Planting can be with the medium of store program codes.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or equipment including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including institute
Also there is other identical element in process, method, article or the equipment of stating key element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
Claims (10)
1. a kind of synchronous upgrade method, it is characterised in that be applied to the server communicated to connect with intelligent terminal, the server
In prestore each version software, methods described includes:
Obtain the target version number of updating software release;
Version software corresponding with the target version number is obtained from each version software for prestoring, as target version software;
Generation target database corresponding with the target version software;
The target version software is sent to the intelligent terminal, so that the intelligent terminal replaces with current version software
The target version software.
2. synchronous upgrade method according to claim 1, it is characterised in that described to be obtained from each version software for prestoring
Version software corresponding with the target version number, the step of as target version software, including:
Each version software that inquiry prestores, judges whether version software corresponding with the target version number;
If in the presence of version software corresponding with the target version number, obtaining version corresponding with the target version number soft
Part, as target version software;It is soft from each version for prestoring if not existing version software corresponding with the target version number
The corresponding version software of highest version number is obtained in part, as target version software.
3. synchronous upgrade method according to claim 1, it is characterised in that each version is also prestored in the server soft
The step of database conversion program between part, the generation corresponding with target version software target database, including:
Obtain current database corresponding with the current version number of the intelligent terminal;
Database conversion program corresponding with the target version number is found out from the database conversion program for prestoring;
According to the database conversion program that current database operation finds out, generate and the target version software pair
The target database answered.
4. synchronous upgrade method according to claim 1, it is characterised in that methods described also includes:
Receive the software version inquiry request that intelligent terminal interval predetermined period sends;
Whether there is in software version updated in the current preset cycle in each version software that detection prestores, if be present in working as
Updated software version in preceding predetermined period, then to the intelligent terminal send software release upgrade indicate, or will with more
The database corresponding with the version software of the corresponding version software of the software version and generation after new is sent to institute
State intelligent terminal.
5. synchronous upgrade method according to claim 1, it is characterised in that methods described also includes:
The feedback information that the intelligent terminal sends is received, the feedback information includes version defect information;
The software version for having after renewal corresponding with the version defect information is detected whether, if in the presence of to the intelligence
Terminal sends software release upgrade and indicates, or by version software corresponding with the software version after renewal and generation
Database corresponding with the version software is sent to the intelligent terminal.
6. a kind of synchronous upgrade method, it is characterised in that be applied to the intelligent terminal being connected with server communication, the server
In prestore database conversion program between each version software and each version software, methods described includes:
Obtain the target version with updating software release got from each version software for prestoring that the server sends
Got in number corresponding target version software, and database conversion program between each version software for prestoring with institute
State the corresponding database conversion program of target version software;
The database conversion program that operation gets, generates target database corresponding with the target version software;
The target database is stored, current version software the target version software is replaced with into, and delete described
Database conversion program.
7. a kind of synchronous update device, it is characterised in that be applied to the server communicated to connect with intelligent terminal, the server
In prestore each version software, the synchronous update device includes:
Target version acquisition module, the target version number for obtaining updating software release;
First acquisition module, for obtaining version software corresponding with the target version number from each version software for prestoring,
As target version software;
First database generation module, for generating target database corresponding with the target version software;
Sending module, for the target version software to be sent to the intelligent terminal, so that the intelligent terminal will be current
Version software replaces with the target version software.
8. synchronous update device according to claim 7, it is characterised in that first acquisition module includes judging submodule
Block, the first acquisition submodule and the second acquisition submodule;
The judging submodule is used to inquire about each version software for prestoring, and judges whether corresponding with the target version number
Version software;
First acquisition submodule is used to, when there is version software corresponding with the target version number, obtain and the mesh
The corresponding version software of mark version number, as target version software;
Second acquisition submodule is used for when in the absence of version software corresponding with the target version number, each from what is prestored
The corresponding version software of highest version number is obtained in version software, as target version software.
9. synchronous update device according to claim 7, it is characterised in that each version is also prestored in the server soft
Database conversion program between part, the first database generation module includes that database acquisition submodule, conversion program are looked into
Look for submodule and database generation submodule;
The database acquisition submodule is used to obtain current database corresponding with the current version number of the intelligent terminal;
The conversion program searches submodule to be used to be found out from the database conversion program for prestoring and the target version number
Corresponding database conversion program;
The database generation submodule is used for the database conversion program found out according to current database operation,
Generation target database corresponding with the target version software.
10. a kind of synchronous update device, it is characterised in that be applied to the intelligent terminal being connected with server communication, the service
The database conversion program between each version software and each version software is prestored in device, the synchronous update device includes:
Second acquisition module, for being got from each version software for prestoring of obtaining that the server sends with upgrade it is soft
The corresponding target version software of target version number of part version, and change journey from the database between each version software for prestoring
The database conversion program corresponding with the target version software got in sequence;
Second database generation module, for running the database conversion program for getting, generation and the target version
The corresponding target database of software;
Upgraded module, for the target database to be stored, replaces with the target version soft by current version software
Part, and delete the database conversion program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710216522.9A CN106909429A (en) | 2017-04-05 | 2017-04-05 | A kind of synchronous upgrade method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710216522.9A CN106909429A (en) | 2017-04-05 | 2017-04-05 | A kind of synchronous upgrade method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106909429A true CN106909429A (en) | 2017-06-30 |
Family
ID=59195920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710216522.9A Pending CN106909429A (en) | 2017-04-05 | 2017-04-05 | A kind of synchronous upgrade method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106909429A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509200A (en) * | 2018-03-13 | 2018-09-07 | 中国银行股份有限公司 | It is a kind of to establish associated method and device between software source code and actuating code |
CN109391497A (en) * | 2017-08-10 | 2019-02-26 | 大唐移动通信设备有限公司 | A kind of method, base station and the management station of version file upgrading |
CN111158749A (en) * | 2019-12-23 | 2020-05-15 | 杭州安恒信息技术股份有限公司 | Software version replacing method, device, equipment and readable storage medium |
CN111427627A (en) * | 2020-03-27 | 2020-07-17 | 李琦 | Software function intelligent configuration method, device, server and storage medium |
CN114440389A (en) * | 2022-01-21 | 2022-05-06 | 佛山市钒音科技有限公司 | Air conditioner, method of upgrading the same, computer device, and computer-readable storage medium |
CN114579180A (en) * | 2022-04-28 | 2022-06-03 | 北京聚通达科技股份有限公司 | Data migration method and device, electronic equipment and storage medium |
CN115378809A (en) * | 2022-08-18 | 2022-11-22 | 中国建设银行股份有限公司 | Software version upgrading method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1713143A (en) * | 2004-06-24 | 2005-12-28 | 华为技术有限公司 | Compatibility upgrading method of embedded programm |
CN102495733A (en) * | 2011-12-08 | 2012-06-13 | 方正国际软件有限公司 | Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script |
CN102495739A (en) * | 2011-11-03 | 2012-06-13 | 中兴通讯股份有限公司 | Data compatible method and system as well as inter-plate message method and system |
CN102609281A (en) * | 2012-02-24 | 2012-07-25 | 中国电子科技集团公司第十五研究所 | Distributed software patch updating method and distributed software patch updating system |
CN103428188A (en) * | 2012-05-25 | 2013-12-04 | 北京小米科技有限责任公司 | Method and apparatus for file updating, and associated equipment |
CN104598262A (en) * | 2014-11-25 | 2015-05-06 | 深圳市腾讯计算机系统有限公司 | Method and device for updating mobile application |
CN104636157A (en) * | 2013-11-14 | 2015-05-20 | 中兴通讯股份有限公司 | Software upgrading method based on data compatibility, client side, server and system |
CN105656663A (en) * | 2015-12-22 | 2016-06-08 | 北京奇虎科技有限公司 | Software update method and device |
CN105893084A (en) * | 2016-03-29 | 2016-08-24 | 青岛海信移动通信技术股份有限公司 | Version upgrading method and terminal equipment |
-
2017
- 2017-04-05 CN CN201710216522.9A patent/CN106909429A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1713143A (en) * | 2004-06-24 | 2005-12-28 | 华为技术有限公司 | Compatibility upgrading method of embedded programm |
CN102495739A (en) * | 2011-11-03 | 2012-06-13 | 中兴通讯股份有限公司 | Data compatible method and system as well as inter-plate message method and system |
CN102495733A (en) * | 2011-12-08 | 2012-06-13 | 方正国际软件有限公司 | Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script |
CN102609281A (en) * | 2012-02-24 | 2012-07-25 | 中国电子科技集团公司第十五研究所 | Distributed software patch updating method and distributed software patch updating system |
CN103428188A (en) * | 2012-05-25 | 2013-12-04 | 北京小米科技有限责任公司 | Method and apparatus for file updating, and associated equipment |
CN104636157A (en) * | 2013-11-14 | 2015-05-20 | 中兴通讯股份有限公司 | Software upgrading method based on data compatibility, client side, server and system |
CN104598262A (en) * | 2014-11-25 | 2015-05-06 | 深圳市腾讯计算机系统有限公司 | Method and device for updating mobile application |
CN105656663A (en) * | 2015-12-22 | 2016-06-08 | 北京奇虎科技有限公司 | Software update method and device |
CN105893084A (en) * | 2016-03-29 | 2016-08-24 | 青岛海信移动通信技术股份有限公司 | Version upgrading method and terminal equipment |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109391497A (en) * | 2017-08-10 | 2019-02-26 | 大唐移动通信设备有限公司 | A kind of method, base station and the management station of version file upgrading |
CN108509200A (en) * | 2018-03-13 | 2018-09-07 | 中国银行股份有限公司 | It is a kind of to establish associated method and device between software source code and actuating code |
CN111158749A (en) * | 2019-12-23 | 2020-05-15 | 杭州安恒信息技术股份有限公司 | Software version replacing method, device, equipment and readable storage medium |
CN111158749B (en) * | 2019-12-23 | 2023-12-01 | 杭州安恒信息技术股份有限公司 | Software version replacement method, device, equipment and readable storage medium |
CN111427627A (en) * | 2020-03-27 | 2020-07-17 | 李琦 | Software function intelligent configuration method, device, server and storage medium |
CN114440389A (en) * | 2022-01-21 | 2022-05-06 | 佛山市钒音科技有限公司 | Air conditioner, method of upgrading the same, computer device, and computer-readable storage medium |
CN114579180A (en) * | 2022-04-28 | 2022-06-03 | 北京聚通达科技股份有限公司 | Data migration method and device, electronic equipment and storage medium |
CN115378809A (en) * | 2022-08-18 | 2022-11-22 | 中国建设银行股份有限公司 | Software version upgrading method and device |
CN115378809B (en) * | 2022-08-18 | 2024-04-26 | 中国建设银行股份有限公司 | Software version upgrading method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106909429A (en) | A kind of synchronous upgrade method and device | |
CN107168726B (en) | Method and device for dynamically configuring application program | |
CN103049515A (en) | Method, device and equipment for classifying application programs | |
US20130019087A1 (en) | System structure management device, system structure management method, and program | |
US20200259895A1 (en) | Maintenance of a persistent master identifier for clusters of user identifiers across a plurality of devices | |
CN107908442A (en) | Resource loading method, device, terminal device and computer-readable recording medium based on spring | |
CN101207878A (en) | Methods and apparatuses for sim application toolkit (sat) management | |
CN104486422A (en) | Information push method and device | |
CN105045790A (en) | Graph data search system, method and device | |
CN112529100B (en) | Training method and device for multi-classification model, electronic equipment and storage medium | |
CN109582418A (en) | User behavior data collection method, device, computer installation, storage medium | |
CN109547647A (en) | Electrostatic interference control method and Related product | |
CN105094559A (en) | Display processing method and electronic device | |
CN105808702A (en) | Page content refreshing method and system, and page content synchronous refreshing management system | |
CN107656750A (en) | Update of plug-in method and device | |
CN114816820A (en) | Method, device, equipment and storage medium for repairing chproxy cluster fault | |
CN109165332A (en) | A kind of webpage information acquisition methods, device and equipment | |
CN104468947A (en) | Information processing method and electronic equipment | |
CN106909197B (en) | Virtualization host time management method and virtualization host system | |
CN109992279A (en) | Method for updating configuration data, calculates equipment and storage medium at device | |
CN107908679A (en) | Script sentence conversion method, device and computer-readable recording medium | |
CN102866885A (en) | Method and device for confirming clicking position in webpage | |
CN108737487B (en) | Data synchronization method and device, storage medium and electronic device | |
CN106897303A (en) | Data query method and device | |
CN106528140A (en) | Specification adaptation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170630 |
|
RJ01 | Rejection of invention patent application after publication |