CN103685495A - Method and system for upgrading software - Google Patents
Method and system for upgrading software Download PDFInfo
- Publication number
- CN103685495A CN103685495A CN201310656113.2A CN201310656113A CN103685495A CN 103685495 A CN103685495 A CN 103685495A CN 201310656113 A CN201310656113 A CN 201310656113A CN 103685495 A CN103685495 A CN 103685495A
- Authority
- CN
- China
- Prior art keywords
- software
- data
- upgraded
- subdirectory
- directory information
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a method and system for upgrading software. When an upgrading request is received, the different catalogues between software to be upgraded and new-version software are acquired, the software to be upgraded is sent by a terminal, the acquired different catalogues are sent to a server, data needing to be upgraded in the software to be upgraded are downloaded only according to the different catalogues, not all the data of the new-version software need to be downloaded, and the flow of the terminal is saved.
Description
Technical field
The present invention relates to software upgrading technical field, relate in particular to a kind of upgrade method and system of software.
Background technology
When the defect on software appears in product, user can be by solving its technological deficiency to software upgrading.In prior art, the technical scheme that software is upgraded is generally: the terminal to server that carries this software sends upgrade request, server is handed down to terminal by new version software when receiving upgrade request, the legacy version software of terminal deletion storage, and new version software is write in the internal memory of terminal, when upgrading, all need to download a large amount of software datas from server, the flow of waste terminal at every turn.
Summary of the invention
Main purpose of the present invention is to provide a kind of upgrade method and system of software, the flow with less terminal when upgrading.
The present invention proposes a kind of upgrade method of software, comprising:
While receiving the upgrade request of software to be upgraded, obtain the directory information of terminal software to be upgraded and the directory information of new version software, described directory information comprises subdirectory information;
The directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
Definite difference subdirectory is sent to server, and obtains more new data of new version software that described definite difference subdirectory is corresponding from server;
When receiving the described more new data of server transmission, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, for software to be upgraded described in terminal staging.
Preferably, when receiving the described more new data of server transmission, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, after the step for software to be upgraded described in terminal staging, the method comprises:
According to the software data to be upgraded of the described renewal Data Update preservation receiving, adopt the directory information of the described software to be upgraded of directory information renewal of new version software data simultaneously.
Preferably, the method also comprises:
While receiving the installation request of software, judge whether to store the data of described software;
If store the data of described software, call the data of the described software of storage described software is installed;
If do not store the data of described software, to described server, send data acquisition instruction;
When receiving the software data of server feedback, according to described software data, described software is installed.
Preferably, described in while receiving the upgrade request of software to be upgraded, the step of obtaining the directory information of terminal software to be upgraded and the directory information of new version software comprises:
According to the upgrade request receiving, obtain the version number of new version software, Bing Jianggai version number sends to server, for server basis, receives the directory information that version number determines new version software;
When receiving the directory information of the new version software that server issues, obtain the directory information of terminal software to be upgraded.
The present invention also proposes a kind of method for upgrading software, comprising:
During the upgrade request to software to be upgraded that receiving terminal sends, obtain the directory information of terminal software to be upgraded and the directory information of new version software, described directory information comprises subdirectory information;
The directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
According to definite difference subdirectory, obtain more new data of new version software that described definite difference subdirectory is corresponding;
Described more new data is sent to terminal, for terminal, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, with the described software to be upgraded of upgrading.
The present invention also proposes a kind of upgrade-system of software, comprising:
The first acquisition module, when receiving the upgrade request of software to be upgraded, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
The first determination module, for comparing the directory information of the software to be upgraded getting and the directory information of new version software, determines the difference subdirectory in new version software and software to be upgraded;
The first sending module, for definite difference subdirectory is sent to server, and obtains more new data of new version software that described definite difference subdirectory is corresponding from server;
Upgrading module, for when receiving the described more new data of server transmission, enters described renewal Data Update in the corresponding store path of described difference subdirectory, for software to be upgraded described in terminal staging.
Preferably, this system also comprises update module, for the software data to be upgraded of preserving according to the described renewal Data Update receiving, adopts the directory information of the described software to be upgraded of directory information renewal of new version software data simultaneously.
Preferably, this system also comprises judge module and software installation module, when described judge module is used for receiving the installation request of software, judges whether to store the data of described software; Described software installation module, if for storing the data of described software, calls the data of the described software of storage described software is installed; If described the first sending module, also for not storing the data of described software, sends data acquisition instruction to described server; Described software installation module also, for when receiving the software data of server feedback, is installed described software according to described software data.
Preferably, described the first acquisition module is also for obtaining the version number of new version software according to the upgrade request receiving; Described the first sending module also sends to server for the version number that described acquisition module is got, and for server basis, receives the directory information that version number determines new version software; First state acquisition module also for when receiving the directory information of the new version software that server issues, obtain the directory information of terminal software to be upgraded.
The present invention also proposes a kind of upgrade-system of software, comprising:
During the upgrade request to software to be upgraded that receiving terminal sends, obtain the directory information of terminal software to be upgraded and the directory information of new version software, described directory information comprises subdirectory information;
The directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
According to definite difference subdirectory, obtain more new data of new version software that described definite difference subdirectory is corresponding;
Described more new data is sent to terminal, for terminal, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, with the described software to be upgraded of upgrading.
Upgrade method and the system of the software that the present invention proposes, when receiving upgrade request, obtain software to be upgraded and new version software difference catalogue before that terminal sends, the difference catalogue getting is sent to server, only according to this difference catalogue, download the data that need renewal in software to be upgraded, and need not download all data of new version software, save the flow of terminal.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method for upgrading software the first embodiment of the present invention;
Fig. 2 proposes the schematic flow sheet of method for upgrading software the second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of method for upgrading software of the present invention the 3rd embodiment;
Fig. 4 is the schematic flow sheet of the preferred embodiment of step S10 in Fig. 1;
Fig. 5 is the schematic flow sheet of method for upgrading software of the present invention the 4th embodiment;
Fig. 6 is the high-level schematic functional block diagram of software update system the first embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of software update system the second embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of software update system of the present invention the 3rd embodiment;
Fig. 9 is the high-level schematic functional block diagram of software update system of the present invention the 4th embodiment.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Below in conjunction with drawings and the specific embodiments, with regard to technical scheme of the present invention, be described further.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of method for upgrading software the first embodiment of the present invention.
The present embodiment proposes a kind of method for upgrading software, comprising:
Step S10, while receiving the upgrade request of software to be upgraded, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
In the present embodiment, because the software data to be upgraded of installing with terminal is synchronizeed, when receiving upgrade request, can directly call the directory information of pre-stored software to be upgraded; Or terminal can be encapsulated in the directory information of software to be upgraded in upgrade request, when receiving upgrade request, this upgrade request is decoded to obtain to the directory information of the software to be upgraded in upgrade request; Or terminal is encapsulated in the version number of software to be upgraded in upgrade request, receiving when receiving upgrade request, this upgrade request is decoded to obtain to the version number of the software to be upgraded in upgrade request, send to server to obtain the directory information of software to be upgraded the version number getting.In the information of catalogue of obtaining software to be upgraded, to server, send the request of obtaining of new version software directory information, and the directory information of the new version software that issues of reception server, in the present embodiment, directory information comprises subdirectory information, and subdirectory information comprises modification date and or the size of filesinsubdir of filesinsubdir.
Terminal is when start in the present embodiment, or when user triggers upgrade request by button or other device, can obtain to server the latest version information (as version number) of software, the version information of the software of the version information getting and preservation is compared, take and determine whether the software of current preservation is latest edition, if the software of current preservation is not latest edition, points out user whether to upgrade, when receiving user's confirmation, trigger upgrade request.
Step S20, the directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
Step S30, is sent to server by definite difference subdirectory, and obtains more new data of new version software that described definite difference subdirectory is corresponding from server;
In the present embodiment, directory information comprises subdirectory information, subdirectory information comprise filesinsubdir the modification date and or the size of filesinsubdir, can according to the modification date of filesinsubdir and or the size of filesinsubdir determine difference subdirectory.The equal correspondence of software data of each version software is provided with catalogue, set up the mapping relations between software data and subdirectory and be kept at server, each subdirectory is all to there being corresponding software data, and the directory information of subdirectory, server is when update software, on the basis of the data of legacy version software, upgrade, after upgrading the file of certain subdirectory, can change directory information that this subdirectory is corresponding as change time and file size.
When the subdirectory information of the directory information of the software to be upgraded getting and new version software is compared successively, for example, in group directory information, there are a plurality of one-level subdirectories, the corresponding a plurality of secondary subdirectories of each one-level subdirectory, now compare successively the file size in the secondary subdirectory in each one-level subdirectory and revise the date, when have secondary subdirectory file size and or revise the date when different, using this subdirectory as difference subdirectory, and continue the file size of other secondary subdirectory of comparison or revise the date, when having compared all secondary subdirectories of this one-level subdirectory, compare next first class catalogue until compared all first class catalogues, the difference subdirectory of record is sent to server, server is according to the mapping relations of the software data of the catalogue prestoring, obtain the corresponding software data of difference subdirectory in new version software data (more new data), and by the renewal data distributing getting to terminal.When the comparison directory information of software to be upgraded and the directory information of new version software, preferred version is modification time and the size of comparer catalogue simultaneously, so that the comparison result of the directory information of software to be upgraded and the directory information of new version software is more accurate.
Step S40, when receiving the described more new data of server transmission, enters described renewal Data Update in the corresponding store path of described difference subdirectory, for software to be upgraded described in terminal staging.
When receiving server and send more new data, the more new data getting is write in the corresponding store path of the corresponding store path of difference subdirectory, and provide calling interface, described in calling for terminal, more new data carries out the upgrading of software to be upgraded, and this scheme need not store data in the file of terminal.
In the present embodiment described renewal Data Update is entered in the corresponding store path of described difference subdirectory, to have three kinds of situation: A, new version software is identical with the quantity of the subdirectory of legacy version software, directly adopts the data of upgrading in Data Update difference subdirectory; The quantity of B, new version software subdirectory is greater than the quantity of legacy version software subdirectory, difference subdirectory may be extra data, the catalogue that now directly adopts the catalogue replacement legacy version software of new version software, more new data writes the corresponding store path of difference subdirectory simultaneously; The quantity of C, new version software subdirectory is less than the quantity of legacy version software subdirectory, and difference subdirectory may, for the data of deleting, now directly be deleted difference subdirectory.
Upgrade method and the system of the software that the present embodiment proposes, when receiving upgrade request, obtain software to be upgraded and new version software difference catalogue before that terminal sends, the difference catalogue getting is sent to server, only according to this difference catalogue, download the data that need renewal in software to be upgraded, and need not download all data of new version software, save the flow of terminal.
With reference to Fig. 2, Fig. 2 proposes the schematic flow sheet of method for upgrading software the second embodiment of the present invention.
Based on the first embodiment, propose method for upgrading software the second embodiment of the present invention, after step S40, the method comprises in the present embodiment:
Step S50 according to the software data to be upgraded of the described renewal Data Update preservation receiving, adopts the directory information of the described software to be upgraded of directory information renewal of new version software data simultaneously.
In the present embodiment after the upgrading that completes software, can adopt the directory information of new version software data to upgrade the directory information of software to be upgraded, so that software next time of terminal is when upgrading, directly obtain the directory information of the current mounting software of terminal, make the upgrading speed of terminal software higher, adopt the software data to be upgraded of the renewal Data Update preservation receiving simultaneously, make terminal after uninstall, can directly have more the direct mounting software of software data of preservation, and need not again by server device, download software, save terminal flow, this software data can manually be deleted after terminal uninstall, or the time interval default after terminal uninstall deletes automatically.
With reference to Fig. 3, Fig. 3 is the schematic flow sheet of method for upgrading software of the present invention the 3rd embodiment.
Based on the first and second embodiment, propose method for upgrading software of the present invention the 3rd embodiment, the method also comprises in the present embodiment:
Step S60, while receiving the installation request of software, judges whether to store the data of described software;
Step S70, if store the data of described software, calls the data of the described software of storage described software is installed;
Step S80, if do not store the data of described software, sends data acquisition instruction to described server;
Step S90, when receiving the software data of server feedback, installs described software according to described software data.
Receive software and install while asking, first judge whether to store software data, when storing software data, directly call the software data of storage this software is installed, to save the flow of terminal, when mounted by this software data writing system dish; If storing software data not, to described server, send data acquisition instruction, when receiving the software data of server feedback, according to described software data, described software is installed, when being installed, this software can store this software data, so that reinstall software according to this software data after software unloading; In the present embodiment, server can issue catalogue and the corresponding directory information of software when issuing software data to terminal, to by the directory information of software to be upgraded and the directory information of new version software, determine the difference subdirectory of new version software and software to be upgraded when upgrading.
With reference to Fig. 4, Fig. 4 is the schematic flow sheet of the preferred embodiment of step S10 in Fig. 1.
In the first embodiment and the second embodiment, step S10 comprises:
Step S11, obtains the version number of new version software according to the upgrade request receiving, Bing Jianggai version number sends to server, for server according to receiving the directory information that version number determines new version software;
Step S12, when receiving the directory information of the new version software that server issues, obtains the directory information of terminal software to be upgraded.
When the software of the current lift-launch of terminal is not latest edition, and when the version number of the version number of the software of current lift-launch and latest edition software is non-conterminous, can push information to user, with prompting user, select to upgrade to which version, while receiving user's selection information, determine the software version number that user selects, the upgrade request of the version number that comprises new version software now triggering, when receiving this upgrade request, decoding changes upgrade request and the version number getting after decoding is sent to server, to obtain directory information that should version software, the directory information of new version software and the volume directory information of software to be upgraded that comparison gets, to determine difference subdirectory, difference subdirectory is sent to server to obtain corresponding more new data, this scheme has selectivity, when terminal is during at compatibling problem, force users is not upgraded to the software of latest edition, to reduce the problem occurring after upgrading.
With reference to Fig. 5, Fig. 5 is the schematic flow sheet of method for upgrading software of the present invention the 4th embodiment.
The present embodiment proposes a kind of method for upgrading software, comprising:
Step S100, while receiving the upgrade request of the software to be upgraded that terminal sends, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
Executive agent in the present embodiment is server, the version number of terminal software to be upgraded can be encapsulated in upgrade request, server is when receiving the upgrade request to software to be upgraded of terminal transmission, this upgrade request of decoding is to obtain the version number of software to be upgraded, according to the mapping relations of default software version number and software catalog information, determine the corresponding directory information of version number of software to be upgraded, obtain the directory information of latest edition software simultaneously.In the present embodiment, directory information comprises subdirectory information, and subdirectory information comprises modification date and or the size of filesinsubdir of filesinsubdir.
Step S110, the directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
In the present embodiment, directory information comprises subdirectory information, subdirectory information comprise filesinsubdir the modification date and or the size of filesinsubdir, can according to the modification date of filesinsubdir and or the size of filesinsubdir determine difference subdirectory.The equal correspondence of software data of each version software is provided with catalogue, set up the mapping relations between software data and subdirectory and be kept at server, each subdirectory is all to there being corresponding software data, and the directory information of subdirectory, server is when update software, on the basis of the data of legacy version software, upgrade, after upgrading the file of certain subdirectory, can change directory information that this subdirectory is corresponding as change time and file size.
When the subdirectory information of the directory information of the software to be upgraded getting and new version software is compared successively, for example, in group directory information, there are a plurality of one-level subdirectories, the corresponding a plurality of secondary subdirectories of each one-level subdirectory, now compare successively the file size in the secondary subdirectory in each one-level subdirectory and revise the date, when have secondary subdirectory file size and or revise the date when different, using this subdirectory as difference subdirectory, and continue the file size of other secondary subdirectory of comparison or revise the date, when having compared all secondary subdirectories of this one-level subdirectory, compare next first class catalogue until compared all first class catalogues, the difference subdirectory of record is sent to server, server is according to the mapping relations of the software data of the catalogue prestoring, obtain the corresponding software data of difference subdirectory in new version software data (more new data), and by the renewal data distributing getting to terminal.When the comparison directory information of software to be upgraded and the directory information of new version software, preferred version is modification time and the size of comparer catalogue simultaneously, so that the comparison result of the directory information of software to be upgraded and the directory information of new version software is more accurate.
Step S120, obtains more new data of new version software that described definite difference subdirectory is corresponding according to definite difference subdirectory;
Server prestores the mapping relations of subdirectory and software data, after having determined the difference subdirectory of software to be upgraded and new version software, according to the mapping relations of subdirectory and software data, obtains the corresponding more new data of difference subdirectory.
Step S130, sends to terminal by described more new data, for terminal, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, with the described software to be upgraded of upgrading.
When receiving server and send more new data, terminal writes the more new data getting in the corresponding store path of the corresponding store path of difference subdirectory, carries out the upgrading of software to be upgraded for terminal.In the present embodiment described renewal Data Update is entered in the corresponding store path of described difference subdirectory, to have three kinds of situation: A, new version software is identical with the quantity of the subdirectory of legacy version software, directly adopts the data of upgrading in Data Update difference subdirectory; The quantity of B, new version software subdirectory is greater than the quantity of legacy version software subdirectory, difference subdirectory may be extra data, the catalogue that now directly adopts the catalogue replacement legacy version software of new version software, more new data writes the corresponding store path of difference subdirectory simultaneously; The quantity of C, new version software subdirectory is less than the quantity of legacy version software subdirectory, and difference subdirectory may, for the data of deleting, now directly be deleted difference subdirectory.
The upgrade method of the software that the present embodiment proposes, when receiving upgrade request, obtain software to be upgraded and new version software difference catalogue before that terminal sends, the difference catalogue getting is sent to server, only according to this difference catalogue, download the data that need renewal in software to be upgraded, and need not download all data of new version software, save the flow of terminal.
With reference to Fig. 6, Fig. 6 is the high-level schematic functional block diagram of software update system the first embodiment of the present invention.
The present embodiment proposes a kind of software update system, comprising:
The first acquisition module 10, when receiving the upgrade request of software to be upgraded, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
In the present embodiment, because the software data to be upgraded of installing with terminal is synchronizeed, when receiving upgrade request, can directly call the directory information of pre-stored software to be upgraded; Or terminal can be encapsulated in the directory information of software to be upgraded in upgrade request, when receiving upgrade request, this upgrade request is decoded to obtain to the directory information of the software to be upgraded in upgrade request; Or terminal is encapsulated in the version number of software to be upgraded in upgrade request, receiving when receiving upgrade request, this upgrade request is decoded to obtain to the version number of the software to be upgraded in upgrade request, send to server to obtain the directory information of software to be upgraded the version number getting.In the information of catalogue of obtaining software to be upgraded, to server, send the request of obtaining of new version software directory information, and the directory information of the new version software that issues of reception server, in the present embodiment, directory information comprise file in catalogue the modification date and or catalogue in the size of file.
Terminal is when start in the present embodiment, or when user triggers upgrade request by button or other device, can obtain to server the latest version information (as version number) of software, the version information of the software of the version information getting and preservation is compared, take and determine whether the software of current preservation is latest edition, if the software of current preservation is not latest edition, points out user whether to upgrade, when receiving user's confirmation, trigger upgrade request.
The first determination module 20, for comparing the directory information of the software to be upgraded getting and the directory information of new version software, determines the difference subdirectory in new version software and software to be upgraded;
The first sending module 30, for definite difference subdirectory is sent to server, and obtains more new data of new version software that described definite difference subdirectory is corresponding from server;
In the present embodiment, directory information comprises the size of file in modification date of file in catalogue and/or catalogue, can according to the modification date of filesinsubdir and or the size of filesinsubdir determine difference subdirectory.The equal correspondence of software data of each version software is provided with catalogue, set up the mapping relations between software data and subdirectory and be kept at server, each subdirectory is all to there being corresponding software data, and the directory information of subdirectory, server is when update software, on the basis of the data of legacy version software, upgrade, after upgrading the file of certain subdirectory, can change directory information that this subdirectory is corresponding as change time and file size.
When the directory information of the directory information of the software to be upgraded getting and new version software is compared successively, for example, in directory information, there are a plurality of one-level subdirectories, the corresponding a plurality of secondary subdirectories of each one-level subdirectory, now compare successively the file size in the secondary subdirectory in each one-level subdirectory and revise the date, when have secondary subdirectory file size and or revise the date when different, using this subdirectory as difference subdirectory, and continue the file size of other secondary subdirectory of comparison or revise the date, when having compared all secondary subdirectories of this one-level subdirectory, compare next first class catalogue until compared all first class catalogues, the difference subdirectory of record is sent to server, server is according to the mapping relations of the software data of the catalogue prestoring, obtain the corresponding software data of difference subdirectory in new version software data (more new data), and by the renewal data distributing getting to terminal.When the comparison directory information of software to be upgraded and the directory information of new version software, preferred version is modification time and the size of comparer catalogue simultaneously, so that the comparison result of the directory information of software to be upgraded and the directory information of new version software is more accurate.
Upgrading module 40, for when receiving the described more new data of server transmission, enters described renewal Data Update in the corresponding store path of described difference subdirectory, for software to be upgraded described in terminal staging.
When receiving server and send more new data, the more new data getting is write in the corresponding store path of the corresponding store path of difference subdirectory, and provide calling interface, described in calling for terminal, more new data carries out the upgrading of software to be upgraded, and this scheme need not store data in the file of terminal.
Upgrade method and the system of the software that the present embodiment proposes, when receiving upgrade request, obtain software to be upgraded and new version software difference catalogue before that terminal sends, the difference catalogue getting is sent to server, only according to this difference catalogue, download the data that need renewal in software to be upgraded, and need not download all data of new version software, save the flow of terminal.
With reference to Fig. 7, Fig. 7 is the high-level schematic functional block diagram of software update system the second embodiment of the present invention.
Based on the first embodiment, software update system the second embodiment of the present invention is proposed, this system also comprises update module 50 in the present embodiment, for the software data to be upgraded of preserving according to the described renewal Data Update receiving, adopt the directory information of the described software to be upgraded of directory information renewal of new version software data simultaneously.
In the present embodiment after the upgrading that completes software, can adopt the directory information of new version software data to upgrade the directory information of software to be upgraded, so that software next time of terminal is when upgrading, directly obtain the directory information of the current mounting software of terminal, make the upgrading speed of terminal software higher, adopt the software data to be upgraded of the renewal Data Update preservation receiving simultaneously, make terminal after uninstall, can directly have more the direct mounting software of software data of preservation, and need not again by server device, download software, save terminal flow, this software data can manually be deleted after terminal uninstall, or the time interval default after terminal uninstall deletes automatically.
With reference to Fig. 8, Fig. 8 is the high-level schematic functional block diagram of software update system of the present invention the 3rd embodiment.
Based on the first embodiment and the second embodiment, software update system of the present invention the 3rd embodiment is proposed, this system also comprises judge module 60 and software installation module 70 in the present embodiment, described judge module 60 when receiving the installation request of software, judges whether to store the data of described software; Described software installation module 70, if for storing the data of described software, calls the data of the described software of storage described software is installed; If described the first sending module 30, also for not storing the data of described software, sends data acquisition instruction to described server; Described software installation module 70 also, for when receiving the software data of server feedback, is installed described software according to described software data.
Receive software and install while asking, first judge whether to store software data, when storing software data, directly call the software data of storage this software is installed, to save the flow of terminal, when mounted by this software data writing system dish; If storing software data not, to described server, send data acquisition instruction, when receiving the software data of server feedback, according to described software data, described software is installed, when being installed, this software can store this software data, so that reinstall software according to this software data after software unloading; In the present embodiment, server can issue catalogue and the corresponding directory information of software when issuing software data to terminal, to by the directory information of software to be upgraded and the directory information of new version software, determine the difference subdirectory of new version software and software to be upgraded when upgrading.
In software update system the first embodiment of the present invention, described the first acquisition module 10 is also for obtaining the version number of new version software according to the upgrade request receiving; Described the first sending module 30 also sends to server for the version number that described acquisition module is got, and for server basis, receives the directory information that version number determines new version software; Described the first acquisition module 10 also, for when receiving the directory information of the new version software that server issues, obtains the directory information of terminal software to be upgraded.
When the software of the current lift-launch of terminal is not latest edition, and when the version number of the version number of the software of current lift-launch and latest edition software is non-conterminous, can push information to user, with prompting user, select to upgrade to which version, while receiving user's selection information, determine the software version number that user selects, the upgrade request of the version number that comprises new version software now triggering, when receiving this upgrade request, this upgrade request of decoding also sends to server by the version number getting after decoding, to obtain directory information that should version software, the directory information of new version software and the volume directory information of software to be upgraded that comparison gets, to determine difference subdirectory, difference subdirectory is sent to server to obtain corresponding more new data, this scheme has selectivity, when terminal is during at compatibling problem, force users is not upgraded to the software of latest edition, to reduce the problem occurring after upgrading.
With reference to Fig. 9, Fig. 9 is the high-level schematic functional block diagram of software update system of the present invention the 4th embodiment.
The present embodiment proposes a kind of upgrade-system of software, comprising:
The second acquisition module 80, when receiving the upgrade request of the software to be upgraded that terminal sends, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
Executive agent in the present embodiment is server, the version number of terminal software to be upgraded can be encapsulated in upgrade request, server is when receiving the upgrade request to software to be upgraded of terminal transmission, this upgrade request of decoding is to obtain the version number of software to be upgraded, according to the mapping relations of default software version number and software catalog information, determine the corresponding directory information of version number of software to be upgraded, obtain the directory information of latest edition software simultaneously.In the present embodiment, directory information comprises subdirectory information, and subdirectory information comprises modification date and or the size of filesinsubdir of filesinsubdir.
The second determination module 90, for comparing the directory information of the software to be upgraded getting and the directory information of new version software, determines the difference subdirectory in new version software and software to be upgraded;
In the present embodiment, directory information comprises subdirectory information, subdirectory information comprise filesinsubdir the modification date and or the size of filesinsubdir, can according to the modification date of filesinsubdir and or the size of filesinsubdir determine difference subdirectory.The equal correspondence of software data of each version software is provided with catalogue, set up the mapping relations between software data and subdirectory and be kept at server, each subdirectory is all to there being corresponding software data, and the directory information of subdirectory, server is when update software, on the basis of the data of legacy version software, upgrade, after upgrading the file of certain subdirectory, can change directory information that this subdirectory is corresponding as change time and file size.
When the subdirectory information of the directory information of the software to be upgraded getting and new version software is compared successively, for example, in group directory information, there are a plurality of one-level subdirectories, the corresponding a plurality of secondary subdirectories of each one-level subdirectory, now compare successively the file size in the secondary subdirectory in each one-level subdirectory and revise the date, when have secondary subdirectory file size and or revise the date when different, using this subdirectory as difference subdirectory, and continue the file size of other secondary subdirectory of comparison or revise the date, when having compared all secondary subdirectories of this one-level subdirectory, compare next first class catalogue until compared all first class catalogues, the difference subdirectory of record is sent to server, server is according to the mapping relations of the software data of the catalogue prestoring, obtain the corresponding software data of difference subdirectory in new version software data (more new data), and by the renewal data distributing getting to terminal.When the comparison directory information of software to be upgraded and the directory information of new version software, preferred version is modification time and the size of comparer catalogue simultaneously, so that the comparison result of the directory information of software to be upgraded and the directory information of new version software is more accurate.
Described the second acquisition module 80 is also for obtaining more new data of new version software that described definite difference subdirectory is corresponding according to definite difference subdirectory;
Server prestores the mapping relations of subdirectory and software data, after having determined the difference subdirectory of software to be upgraded and new version software, according to the mapping relations of subdirectory and software data, obtains the corresponding more new data of difference subdirectory.
The second sending module 100, for described more new data is sent to terminal, enters described renewal Data Update in the corresponding store path of described difference subdirectory, with the described software to be upgraded of upgrading for terminal.
When receiving server and send more new data, terminal writes the more new data getting in the corresponding store path of the corresponding store path of difference subdirectory, carries out the upgrading of software to be upgraded for terminal.In the present embodiment described renewal Data Update is entered in the corresponding store path of described difference subdirectory, to have three kinds of situation: A, new version software is identical with the quantity of the subdirectory of legacy version software, directly adopts the data of upgrading in Data Update difference subdirectory; The quantity of B, new version software subdirectory is greater than the quantity of legacy version software subdirectory, difference subdirectory may be extra data, the catalogue that now directly adopts the catalogue replacement legacy version software of new version software, more new data writes the corresponding store path of difference subdirectory simultaneously; The quantity of C, new version software subdirectory is less than the quantity of legacy version software subdirectory, and difference subdirectory may, for the data of deleting, now directly be deleted difference subdirectory.
The upgrade-system of the software that the present embodiment proposes, when receiving upgrade request, obtain software to be upgraded and new version software difference catalogue before that terminal sends, the difference catalogue getting is sent to server, only according to this difference catalogue, download the data that need renewal in software to be upgraded, and need not download all data of new version software, save the flow of terminal.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure transformation that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (10)
1. a upgrade method for software, is characterized in that, comprising:
While receiving the upgrade request of software to be upgraded, obtain the directory information of terminal software to be upgraded and the directory information of new version software, described directory information comprises subdirectory information;
The directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
Definite difference subdirectory is sent to server, and obtains more new data of new version software that described definite difference subdirectory is corresponding from server;
When receiving the described more new data of server transmission, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, for software to be upgraded described in terminal staging.
2. method according to claim 1, it is characterized in that, when receiving the described more new data of server transmission, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, after step for software to be upgraded described in terminal staging, the method comprises:
According to the software data to be upgraded of the described renewal Data Update preservation receiving, adopt the directory information of the described software to be upgraded of directory information renewal of new version software data simultaneously.
3. method according to claim 1, is characterized in that, the method also comprises:
While receiving the installation request of software, judge whether to store the data of described software;
If store the data of described software, call the data of the described software of storage described software is installed;
If do not store the data of described software, to described server, send data acquisition instruction;
When receiving the software data of server feedback, according to described software data, described software is installed.
4. method according to claim 1, is characterized in that, described in while receiving the upgrade request of software to be upgraded, the step of obtaining the directory information of terminal software to be upgraded and the directory information of new version software comprises:
According to the upgrade request receiving, obtain the version number of new version software, Bing Jianggai version number sends to server, for server basis, receives the directory information that version number determines new version software;
When receiving the directory information of the new version software that server issues, obtain the directory information of terminal software to be upgraded.
5. a method for upgrading software, is characterized in that, comprising:
While receiving the upgrade request of the software to be upgraded that terminal sends, obtain the directory information of terminal software to be upgraded and the directory information of new version software, described directory information comprises subdirectory information;
The directory information of software to be upgraded and the directory information of new version software that comparison gets, determine the difference subdirectory in new version software and software to be upgraded;
According to definite difference subdirectory, obtain more new data of new version software that described definite difference subdirectory is corresponding;
Described more new data is sent to terminal, for terminal, described renewal Data Update is entered in the corresponding store path of described difference subdirectory, with the described software to be upgraded of upgrading.
6. a upgrade-system for software, is characterized in that, comprising:
The first acquisition module, when receiving the upgrade request of software to be upgraded, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
The first determination module, for comparing the directory information of the software to be upgraded getting and the directory information of new version software, determines the difference subdirectory in new version software and software to be upgraded;
The first sending module, for definite difference subdirectory is sent to server, and obtains more new data of new version software that described definite difference subdirectory is corresponding from server;
Upgrading module, for when receiving the described more new data of server transmission, enters described renewal Data Update in the corresponding store path of described difference subdirectory, for software to be upgraded described in terminal staging.
7. system according to claim 6, it is characterized in that, this system also comprises update module, for the software data to be upgraded of preserving according to the described renewal Data Update receiving, adopts the directory information of the described software to be upgraded of directory information renewal of new version software data simultaneously.
8. system according to claim 6, is characterized in that, this system also comprises judge module and software installation module, when described judge module is used for receiving the installation request of software, judges whether to store the data of described software; Described software installation module, if for storing the data of described software, calls the data of the described software of storage described software is installed; If described the first sending module, also for not storing the data of described software, sends data acquisition instruction to described server; Described software installation module also, for when receiving the software data of server feedback, is installed described software according to described software data.
9. system according to claim 6, is characterized in that, described the first acquisition module is also for obtaining the version number of new version software according to the upgrade request receiving; Described the first sending module also sends to server for the version number that described acquisition module is got, and for server basis, receives the directory information that version number determines new version software; First state acquisition module also for when receiving the directory information of the new version software that server issues, obtain the directory information of terminal software to be upgraded.
10. a upgrade-system for software, is characterized in that, comprising:
The second acquisition module, when receiving the upgrade request of the software to be upgraded that terminal sends, obtains the directory information of terminal software to be upgraded and the directory information of new version software, and described directory information comprises subdirectory information;
The second determination module, for comparing the directory information of the software to be upgraded getting and the directory information of new version software, determines the difference subdirectory in new version software and software to be upgraded;
Described the second acquisition module is also for obtaining more new data of new version software that described definite difference subdirectory is corresponding according to definite difference subdirectory;
The second sending module, for described more new data is sent to terminal, enters described renewal Data Update in the corresponding store path of described difference subdirectory, with the described software to be upgraded of upgrading for terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310656113.2A CN103685495B (en) | 2013-12-05 | 2013-12-05 | The upgrade method and system of software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310656113.2A CN103685495B (en) | 2013-12-05 | 2013-12-05 | The upgrade method and system of software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103685495A true CN103685495A (en) | 2014-03-26 |
CN103685495B CN103685495B (en) | 2019-08-16 |
Family
ID=50321770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310656113.2A Active CN103685495B (en) | 2013-12-05 | 2013-12-05 | The upgrade method and system of software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685495B (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105610596A (en) * | 2014-11-20 | 2016-05-25 | 腾讯科技(武汉)有限公司 | Resource directory management method and network terminal |
CN105653305A (en) * | 2014-11-21 | 2016-06-08 | 中国南方航空工业(集团)有限公司 | Application software automatic update method, server, client side and system of same |
CN106685718A (en) * | 2016-12-30 | 2017-05-17 | 杭州迪普科技股份有限公司 | Configuration switching method and device |
CN107423078A (en) * | 2017-02-28 | 2017-12-01 | 福建中金在线信息科技有限公司 | A kind of Oftware updating method and device |
CN108073408A (en) * | 2016-11-15 | 2018-05-25 | 平安科技(深圳)有限公司 | The method for updating system and device of self-aided terminal |
CN108737358A (en) * | 2017-04-14 | 2018-11-02 | 精品科技股份有限公司 | Update protection system for fixed environment and update protection method thereof |
CN108737359A (en) * | 2017-04-14 | 2018-11-02 | 精品科技股份有限公司 | Resource safety protection system for fixed environment and resource safety protection method thereof |
CN108888951A (en) * | 2018-06-25 | 2018-11-27 | 网易(杭州)网络有限公司 | Game resource treating method and apparatus |
CN108958762A (en) * | 2017-08-02 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of upgrade method and device of software |
CN109032637A (en) * | 2018-07-17 | 2018-12-18 | 中国建设银行股份有限公司 | Oftware updating method and device based on framework frame |
CN109408090A (en) * | 2018-10-09 | 2019-03-01 | 广东美的制冷设备有限公司 | Upgrade method, data converter and the readable storage medium storing program for executing of device software |
CN109445830A (en) * | 2018-12-28 | 2019-03-08 | 金蝶软件(中国)有限公司 | A kind of extended metadata upgrade method and system |
CN110333875A (en) * | 2019-07-02 | 2019-10-15 | 上海企创信息科技有限公司 | A kind of service routine update method, device, server and storage medium |
CN110519649A (en) * | 2018-05-22 | 2019-11-29 | 青岛海尔多媒体有限公司 | A kind of control method of separate television, device and computer readable storage medium |
CN111459514A (en) * | 2019-01-18 | 2020-07-28 | 普天信息技术有限公司 | Terminal upgrading processing method, server and base station |
CN111506593A (en) * | 2020-04-24 | 2020-08-07 | 东莞市精驰软件有限公司 | Software system data upgrading method, device, equipment and storage medium |
CN111679854A (en) * | 2020-06-15 | 2020-09-18 | 中国银行股份有限公司 | Version control method, device and system of software product |
US20210216297A1 (en) * | 2018-05-29 | 2021-07-15 | Huawei Technologies Co., Ltd. | Application Software Installation Method, Device, and Server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699399A (en) * | 2009-11-03 | 2010-04-28 | 中兴通讯股份有限公司 | Software update system and method |
CN102799445A (en) * | 2012-05-03 | 2012-11-28 | 陈昊 | Application upgrading method based on Android platform and system |
CN103049283A (en) * | 2012-11-28 | 2013-04-17 | 镇江为天下信息服务有限公司 | Automatic updating method for setting version numbers for every software file |
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN103176867A (en) * | 2013-04-02 | 2013-06-26 | 浪潮电子信息产业股份有限公司 | Fast file differential backup method |
CN103259672A (en) * | 2012-02-17 | 2013-08-21 | 阿里巴巴集团控股有限公司 | Software upgrading method and software upgrading system |
-
2013
- 2013-12-05 CN CN201310656113.2A patent/CN103685495B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699399A (en) * | 2009-11-03 | 2010-04-28 | 中兴通讯股份有限公司 | Software update system and method |
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN103259672A (en) * | 2012-02-17 | 2013-08-21 | 阿里巴巴集团控股有限公司 | Software upgrading method and software upgrading system |
CN102799445A (en) * | 2012-05-03 | 2012-11-28 | 陈昊 | Application upgrading method based on Android platform and system |
CN103049283A (en) * | 2012-11-28 | 2013-04-17 | 镇江为天下信息服务有限公司 | Automatic updating method for setting version numbers for every software file |
CN103176867A (en) * | 2013-04-02 | 2013-06-26 | 浪潮电子信息产业股份有限公司 | Fast file differential backup method |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105610596B (en) * | 2014-11-20 | 2020-02-18 | 腾讯科技(武汉)有限公司 | Resource directory management method and network terminal |
CN105610596A (en) * | 2014-11-20 | 2016-05-25 | 腾讯科技(武汉)有限公司 | Resource directory management method and network terminal |
CN105653305A (en) * | 2014-11-21 | 2016-06-08 | 中国南方航空工业(集团)有限公司 | Application software automatic update method, server, client side and system of same |
CN108073408A (en) * | 2016-11-15 | 2018-05-25 | 平安科技(深圳)有限公司 | The method for updating system and device of self-aided terminal |
CN106685718A (en) * | 2016-12-30 | 2017-05-17 | 杭州迪普科技股份有限公司 | Configuration switching method and device |
CN107423078A (en) * | 2017-02-28 | 2017-12-01 | 福建中金在线信息科技有限公司 | A kind of Oftware updating method and device |
CN108737358B (en) * | 2017-04-14 | 2021-05-07 | 精品科技股份有限公司 | Update protection system for fixed environment and update protection method thereof |
CN108737358A (en) * | 2017-04-14 | 2018-11-02 | 精品科技股份有限公司 | Update protection system for fixed environment and update protection method thereof |
CN108737359A (en) * | 2017-04-14 | 2018-11-02 | 精品科技股份有限公司 | Resource safety protection system for fixed environment and resource safety protection method thereof |
CN108958762A (en) * | 2017-08-02 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of upgrade method and device of software |
CN110519649A (en) * | 2018-05-22 | 2019-11-29 | 青岛海尔多媒体有限公司 | A kind of control method of separate television, device and computer readable storage medium |
US11775274B2 (en) * | 2018-05-29 | 2023-10-03 | Huawei Technologies Co., Ltd. | Application software installation method, device, and server |
US20210216297A1 (en) * | 2018-05-29 | 2021-07-15 | Huawei Technologies Co., Ltd. | Application Software Installation Method, Device, and Server |
CN108888951A (en) * | 2018-06-25 | 2018-11-27 | 网易(杭州)网络有限公司 | Game resource treating method and apparatus |
CN109032637A (en) * | 2018-07-17 | 2018-12-18 | 中国建设银行股份有限公司 | Oftware updating method and device based on framework frame |
CN109408090A (en) * | 2018-10-09 | 2019-03-01 | 广东美的制冷设备有限公司 | Upgrade method, data converter and the readable storage medium storing program for executing of device software |
CN109408090B (en) * | 2018-10-09 | 2021-05-28 | 广东美的制冷设备有限公司 | Upgrading method of equipment software, data converter and readable storage medium |
CN109445830A (en) * | 2018-12-28 | 2019-03-08 | 金蝶软件(中国)有限公司 | A kind of extended metadata upgrade method and system |
CN109445830B (en) * | 2018-12-28 | 2022-03-25 | 金蝶软件(中国)有限公司 | Method and system for upgrading extended metadata |
CN111459514A (en) * | 2019-01-18 | 2020-07-28 | 普天信息技术有限公司 | Terminal upgrading processing method, server and base station |
CN111459514B (en) * | 2019-01-18 | 2023-06-23 | 普天信息技术有限公司 | Terminal upgrading processing method, server and base station |
CN110333875A (en) * | 2019-07-02 | 2019-10-15 | 上海企创信息科技有限公司 | A kind of service routine update method, device, server and storage medium |
CN111506593A (en) * | 2020-04-24 | 2020-08-07 | 东莞市精驰软件有限公司 | Software system data upgrading method, device, equipment and storage medium |
CN111679854A (en) * | 2020-06-15 | 2020-09-18 | 中国银行股份有限公司 | Version control method, device and system of software product |
CN111679854B (en) * | 2020-06-15 | 2024-01-23 | 中国银行股份有限公司 | Version control method, device and system of software product |
Also Published As
Publication number | Publication date |
---|---|
CN103685495B (en) | 2019-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103685495A (en) | Method and system for upgrading software | |
US20090119092A1 (en) | Ensuring product correctness in a multilingual environment | |
CN106951284B (en) | User interface upgrading method and device based on android system application and intelligent terminal | |
CN103677864A (en) | Method for upgrading software and terminal | |
US8782636B2 (en) | Information processing apparatus, control method thereof, and program | |
CN105760200A (en) | Terminal device and system updating method thereof | |
CN101616018A (en) | The method of upgrading network management software and device | |
WO2014146256A1 (en) | Upgrade method, intelligent terminal, and upgrade system | |
CN102520948A (en) | Application program maintenance and update method and device | |
CN103036706A (en) | Local processing method of application upgrading abnormity | |
CN104317623B (en) | The management method of the preset application program of mobile terminal and mobile terminal | |
CN103268239B (en) | The management method of application program, device and mobile terminal in mobile terminal | |
US20160170735A1 (en) | Operating system updating method by using a checklist | |
CN102243594A (en) | Method for safely and remotely upgrading embedded Linux system software | |
CN103313229A (en) | Method and device for upgrading aerial downloading technology | |
CN109117153B (en) | Application processing method, device, terminal and storage medium | |
CN102137154A (en) | Method and device for upgrading customer premise equipment (CPE) | |
CN104809011A (en) | Application program management method | |
US9513928B2 (en) | Method of operating multiple operating systems and the electronic device thereof | |
CN104899050B (en) | The method, apparatus and electronic equipment of application program are installed in the terminal | |
KR20180050001A (en) | Firmware upgrade system and method for IoT | |
CN108874410B (en) | Patch management method and device | |
EP3260981B1 (en) | Information processing apparatus, information processing system, and information processing method for updating firmware | |
US20110252414A1 (en) | System using separate modules to update software and the method thereof | |
CN104598281A (en) | Method for upgrading system of electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |