A kind of heterogeneous terminals method for upgrading software
Technical field
The present invention relates to a kind of method for upgrading software, specifically, relate to a kind of heterogeneous terminals method for upgrading software.
Background technology
The upgrade method of current terminal software is mainly replaced by patch upgrading and program, the program of the service packs of such as Microsoft windows and Android application replaces upgrading, but nearly all upgrading is all the mode based on version management, namely determine whether to upgrade by the version number of AKU on comparison terminal and server.Software upgrade problem in the consistent situation of bibliographic structure that this upgrading mode can only solve terminal, namely the AKU content downloaded is consistent, although client has the difference of version, but upgraded by iteration or cross-version upgrading by the latest edition of the edition upgrading of terminal to server, the bibliographic structure of all latest editions and content are just the same after completing upgrading, and can not solve terminal bibliographic structure inconsistent when upgrading.
Summary of the invention
The present invention in order to solve existing terminal software can not isomery upgrading technical matters, propose a kind of heterogeneous terminals method for upgrading software, AKU arrives node server according to the destination of setting, and terminal, according to the bibliographic structure self-adaptation updated contents of self, can solve the problem.
In order to solve the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of heterogeneous terminals method for upgrading software, the multiple node servers comprise central server, being connected respectively with described central server, each node server is connected with multiple terminal device, between the terminal device that different node server connects, bibliographic structure is inconsistent, between the terminal device that same node server connects, bibliographic structure is consistent, and described terminal equipment software upgrading method comprises the following steps:
(1), the making of AKU and forwarding step, described central server makes AKU, information module and resource module is at least comprised in described AKU, comprise destination node server ID, update instruction, the positional information of resource module at terminal device and the network path of resource module in described information module, described information module is distributed to each node server by described central server; This AKU mode comprising destination node server ID, AKU content is independent, low with the degree of coupling of system, flexibly, multitask, can reduce manual intervention and manual operation.
(2), node server downloads AKU step, described each node server receives information module, read the destination node server ID in information module, and judge whether to comprise this node server ID, if, then read the network path resource module from central server, and downloaded resources module; The introducing of node server makes upgrading in order and saves the network bandwidth, and the data volume of information module is less, and node server only downloads the resource module of needs according to information module, is not that the upgrading of oneself is not downloaded, has saved Internet bandwidth.
(3), information module and the resource module downloaded are stored to terminal staging pond by described node server, and the network path of resource module described in information module is revised as resource module Termination ID, the address of resource module in upgrading pond, local terminal that described resource module Termination ID is downloaded for node server, upgrade the node server record sheet of this node server simultaneously, the content upgraded at least comprises AKU title, information module Termination ID, the download state of information module, the download state of resource module, the address of information module in upgrading pond, local terminal that described information module Termination ID is downloaded for node server, AKU is buffered in upgrading pond, local terminal by node server, provides upgrading by LAN (Local Area Network) to terminal, avoids terminal directly to access central server, further saves Internet bandwidth.
(4), terminal device catalogue upgrades configuration steps, the node server record sheet of connected node server accessed by terminal device, the information module oneself whether downloaded in this new AKU is inquired about after finding that there is new AKU, if do not downloaded, then Download Info module, and from downloaded information module, parse the positional information of resource module at terminal device, and contrast with the bibliographic structure of oneself, determine that newly-built under assigned catalogue, deletion still revises bibliographic structure according to update instruction; Update instruction is resolved by terminal program and is performed, and is not program, and structure is simple, and upgrading flexibly, makes escalation process more intelligent.
(5), terminal device downloaded resources module step, terminal device upgrades the network path reading resource module described in information module after bibliographic structure, and from this path downloaded resources module, completes upgrading.
Further, in described step (2), safeguard there is central server record sheet in described central server, resource module has been downloaded rear transmission information to central server by described node server, described central server amendment central server record sheet, at least comprises AKU title, the node server ID of Download Info module, information module download state, resource module download status information in described central server record sheet.
Further, described central server is by checking described central server record sheet, judge whether the server of all destination node server ID corresponding to this AKU is all downloaded complete, if, then information described in central server record sheet is proceeded to historical record, and empty central server record sheet.
Further, in described step (4), described terminal device notifies its node server connected after being downloaded by information module, revises the information module download state of this terminal in node server record sheet.
Further, in described step (5), described terminal device notifies its node server connected after being downloaded by resource module, revises the resource module download state of this terminal in node server record sheet.
Further, in described step (5), when described node server revises the resource module download state in node server record sheet at every turn, detect the whether all successful downloaded resources module of whole terminals that this node server connects, if all download successfully, then by this AKU content in node server record sheet stored in daily record, and empty node server record sheet.
Compared with prior art, advantage of the present invention and good effect are: heterogeneous terminals method for upgrading software of the present invention, by AKU is divided into information module and resource module, first oneself upgrading applicable is judged whether by node server Download Info module, be applicable to upgrading again according to the path downloaded resources module that information module is specified, the terminal device be connected with this node server is downloaded and is upgraded from this node server, thus reach the object that the terminal device self-adaptation that is connected with this node server upgrades, solving by same central server is the problem of heterogeneous terminals device upgrade.
After reading the detailed description of embodiment of the present invention by reference to the accompanying drawings, the other features and advantages of the invention will become clearly.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of embodiment system block diagram of heterogeneous terminals method for upgrading software proposed by the invention;
Fig. 2 is distributed to node server process flow diagram in a kind of embodiment of heterogeneous terminals method for upgrading software proposed by the invention;
Fig. 3 is terminal staging process flow diagram in a kind of embodiment of heterogeneous terminals method for upgrading software proposed by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one, the present embodiment proposes a kind of heterogeneous terminals method for upgrading software, as shown in Figure 1, comprise central server, the multiple node servers be connected with described central server respectively, each node server is connected with multiple terminal device, between the terminal device that different node server connects, bibliographic structure is inconsistent, between the terminal device that same node server connects, bibliographic structure is consistent, as Fig. 2, shown in Fig. 3, Fig. 2 is for being distributed to node server process flow diagram, Fig. 3 is terminal staging process flow diagram, the terminal equipment software upgrading method of the present embodiment comprises the following steps:
The making of S1, AKU and forwarding step, described central server makes AKU, information module and resource module is at least comprised in described AKU, comprise destination node server ID, update instruction, the positional information of resource module at terminal device and the network path of resource module in described information module, described information module is distributed to each node server by described central server;
By arranging this AKU mode comprising destination node server ID, AKU content is independent, low with the degree of coupling of system, flexibly, multitask, can reduce manual intervention and manual operation.
S2, node server download AKU step, described each node server receives information module, read the destination node server ID in information module, and judge whether to comprise this node server ID, if, then read the network path resource module from central server, and downloaded resources module;
The introducing of node server makes upgrading in order and saves the network bandwidth, and the data volume of information module is less, and node server only downloads the resource module of needs according to information module, is not that the upgrading of oneself is not downloaded, has saved Internet bandwidth.
S3, information module and the resource module downloaded are stored to terminal staging pond by described node server, and the network path of resource module described in information module is revised as resource module Termination ID, the address of resource module in upgrading pond, local terminal that described resource module Termination ID is downloaded for node server, upgrade the node server record sheet of this node server simultaneously, the content upgraded at least comprises AKU title, information module Termination ID, the download state of information module, the download state of resource module, the address of information module in upgrading pond, local terminal that described information module Termination ID is downloaded for node server,
AKU is buffered in upgrading pond, local terminal by node server, provides upgrading by LAN (Local Area Network) to terminal, avoids terminal directly to access central server, further saves Internet bandwidth.
S4, terminal device catalogue upgrade configuration steps, the node server record sheet of connected node server accessed by terminal device, the information module oneself whether downloaded in this new AKU is inquired about after finding that there is new AKU, if do not downloaded, then Download Info module, and from downloaded information module, parse the positional information of resource module at terminal device, and contrast with the bibliographic structure of oneself, determine that newly-built under assigned catalogue, deletion still revises bibliographic structure according to update instruction;
Update instruction is resolved by terminal program and is performed, and is not program, and structure is simple, and upgrading flexibly, makes escalation process more intelligent.
S5, terminal device downloaded resources module step, terminal device reads the network path of resource module described in information module after upgrading bibliographic structure, and from this path downloaded resources module, completes upgrading.
The heterogeneous terminals method for upgrading software of the present embodiment, by AKU is divided into information module and resource module, first oneself upgrading applicable is judged whether by node server Download Info module, be applicable to upgrading again according to the path downloaded resources module that information module is specified, the terminal device be connected with this node server is downloaded and is upgraded from this node server, thus reach the object that the terminal device self-adaptation that is connected with this node server upgrades, solving by same central server is the problem of heterogeneous terminals device upgrade.
In described step S2, safeguard there is central server record sheet in described central server, resource module has been downloaded rear transmission information to central server by described node server, described central server amendment central server record sheet, at least comprises AKU title, the node server ID of Download Info module, information module download state, resource module download status information in described central server record sheet.Central server record sheet, for recording AKU title, is convenient to download management.
For the ease of recording the information of next AKU, described central server is by checking described central server record sheet, judge whether the server of all destination node server ID corresponding to this AKU is all downloaded complete, if, then information described in central server record sheet is proceeded to historical record, and empty central server record sheet.
In described step S4, described terminal device notifies its node server connected after being downloaded by information module, revises the information module download state of this terminal in node server record sheet.
In described step S5, described terminal device notifies its node server connected after being downloaded by resource module, revises the resource module download state of this terminal in node server record sheet.
In described step S5, when described node server revises the resource module download state in node server record sheet at every turn, detect the whether all successful downloaded resources module of whole terminals that this node server connects, if all download successfully, then by this AKU content in node server record sheet stored in daily record, and empty node server record sheet.
Certainly; above-mentioned explanation is not limitation of the present invention; the present invention is also not limited in above-mentioned citing, the change that those skilled in the art make in essential scope of the present invention, remodeling, interpolation or replacement, also should belong to protection scope of the present invention.