A kind of heterogeneous terminals method for upgrading software
Technical field
It is to be related to a kind of heterogeneous terminals method for upgrading software specifically the present invention relates to a kind of method for upgrading software.
Background technology
The upgrade method of current terminal software is mainly replaced by patch upgrading and program, such as Microsoft windows's
Service packs and the program of Android applications replace upgrading, but almost all of upgrade is all based on the mode of version management, that is, leads to
Comparison terminal is crossed with the version number of AKU on server to determine whether upgrading.This upgrading mode can only solve the mesh of terminal
Software upgrade problem in the case of directory structures is consistent, that is, the AKU content downloaded is consistent, and although client has the difference of version,
But upgraded by iteration upgrading or cross-version by the latest edition of the edition upgrading of terminal to server, all latest editions
Bibliographic structure and content complete upgrading after it is just the same, and can not solve terminal bibliographic structure it is inconsistent in the case of liter
Level.
The content of the invention
The present invention is unable to the technical problem that isomery is upgraded to solve existing terminal software, it is proposed that a kind of heterogeneous terminals are soft
Part upgrade method, AKU reaches node server according to the destination of setting, and terminal is adaptive according to itself bibliographic structure
Updated contents, can solve the above problems.
In order to solve the above-mentioned technical problem, the present invention is achieved using following technical scheme:
A kind of heterogeneous terminals method for upgrading software, including central server, be connected respectively with the central server it is many
Individual node server, each node server is connected with multiple terminal devices, the terminal device that different node servers are connected
Between bibliographic structure it is inconsistent, bibliographic structure is consistent between the terminal device that same node server is connected, the terminal
Equipment software upgrading method comprises the following steps:
(1), AKU making and forwarding step, the central server made in AKU, the AKU at least
Including information module and resource module, exist in described information module comprising destination node server ID, more new command, resource module
Described information module is distributed to by the positional information of terminal device and the network path of resource module, the central server
Each node server;This upgrading packet mode for including destination node server ID, AKU content is independent, the coupling with system
Degree is low, flexibly, multitask, can reduce manual intervention and manually operated.
(2), node server download AKU step, each node server receive information module, read information mould
Destination node server ID in block, and judge whether to include this node server ID, provided if so, then being read from central server
Network path in source module, and download resource module;The introducing of node server makes upgrading in order and saves the network bandwidth, letter
The data volume for ceasing module is less, and node server only downloads the resource module of needs according to information module, is not the upgrading of oneself
Do not download, saved Internet bandwidth.
(3), the node server information module and the resource module downloaded are stored to terminal staging pond, and will letter
The network path of described resource module is revised as resource module Termination ID in breath module, and the resource module Termination ID is section
Address of the resource module that point server is downloaded in the upgrading pond of local terminal, while updating the node clothes of this node server
Be engaged in device record sheet, the content updated at least include AKU title, information module Termination ID, the download state of information module,
The download state of resource module, the information module that described information modular terminal ID is downloaded by node server is in local terminal liter
Address in level pond;AKU is buffered in local terminal upgrading pond by node server, and upgrading is provided to terminal by LAN,
Avoid terminal from directly accessing central server, further save Internet bandwidth.
(4), terminal device catalogue update configuration steps, terminal device accesses the node clothes of connected node server
Business device record sheet, finds to have the information module inquired about and oneself whether downloaded in the new AKU after new AKU, such as
Fruit is not downloaded, then download information module, and parse resource module in the position of terminal device from the information module downloaded
Information, and contrasted with the bibliographic structure of oneself, newly-built, deletion or modification catalogue under assigned catalogue are determined according to more new command
Structure;More new command is parsed by terminal program and performed, and is not program, simple in construction, and upgrading is flexible so that escalation process more intelligence
Energy.
(5), terminal device download resource module step, terminal device update bibliographic structure after read information module in is remembered
The network path of the resource module of load, and resource module is downloaded from the path, complete upgrading.
Further, the step(2)In, safeguard there is central server record sheet, the section in the central server
Point server sends information to central server after the completion of resource module is downloaded, the central server changes central server
At least include AKU title, the node server ID of download information module, letter in record sheet, the central server record sheet
Cease module download state, resource module download status information.
Further, the central server judges that AKU institute is right by checking the central server record sheet
Whether the server for all destination node server IDs answered, which is all downloaded, finishes, if so, then by central server record sheet
Described information is transferred to historical record, and empties central server record sheet.
Further, the step(4)In, the terminal device notifies what it was connected after information module download is finished
Node server, changes the information module download state of the terminal in node server record sheet.
Further, the step(5)In, the terminal device notifies what it was connected after resource module download is finished
Node server, changes the resource module download state of the terminal in node server record sheet.
Further, the step(5)In, the node server changes the resource in node server record sheet every time
During module download state, detect whether whole terminals of this node server connection successfully download resource module, if entirely
Subordinate carries successfully, then this AKU content in node server record sheet is stored in into daily record, and empty node server record
Table.
Compared with prior art, advantages and positive effects of the present invention are:The heterogeneous terminals method for upgrading software of the present invention,
By the way that AKU is divided into information module and resource module, judged whether to be adapted to certainly first by node server download information module
Oneself upgrades, and be adapted to upgrading downloads resource module, the end being connected with the node server further according to the path that information module is specified
End equipment downloads upgrading from the node server again, so as to reach that the terminal device being connected with this node server adaptively rises
Level purpose, solve by same central server be heterogeneous terminals device upgrade the problem of.
It is read in conjunction with the figure after the detailed description of embodiment of the present invention, the other features and advantages of the invention will become more
Plus it is clear.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are 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 to be distributed to node server in a kind of embodiment of heterogeneous terminals method for upgrading software proposed by the invention
Flow chart;
Fig. 3 be heterogeneous terminals method for upgrading software proposed by the invention a kind of embodiment in terminal staging flow chart.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs 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, genuinely convinced including in
Business device, the multiple node servers being connected respectively with the central server, each node server are connected with multiple terminals and set
Standby, bibliographic structure is inconsistent between the terminal device that different node servers are connected, what same node server was connected
Bibliographic structure is consistent between terminal device, as shown in Figure 2 and Figure 3, and Fig. 2 is is distributed to node server flow chart, and Fig. 3 is terminal
Upgrading flow chart, the terminal equipment software upgrading method of the present embodiment comprises the following steps:
S1, the making of AKU and forwarding step, the central server make in AKU, the AKU and at least wrapped
Include in information module and resource module, described information module comprising destination node server ID, more new command, resource module at end
Described information module is distributed to respectively by the positional information of end equipment and the network path of resource module, the central server
Node server;
By setting this upgrading packet mode for including destination node server ID, AKU content is independent, with system
The degree of coupling is low, flexibly, multitask, can reduce manual intervention and manually operated.
S2, node server download AKU step, and each node server receive information module reads information module
In destination node server ID, and judge whether include this node server ID, if so, then from central server read resource
Network path in module, and download resource module;
The introducing of node server makes upgrading in order and saves the network bandwidth, and the data volume of information module is less, node clothes
Business device 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, the node server store information module and the resource module downloaded to terminal staging pond, and will letter
The network path of described resource module is revised as resource module Termination ID in breath module, and the resource module Termination ID is section
Address of the resource module that point server is downloaded in the upgrading pond of local terminal, while updating the node clothes of this node server
Be engaged in device record sheet, the content updated at least include AKU title, information module Termination ID, the download state of information module,
The download state of resource module, the information module that described information modular terminal ID is downloaded by node server is in local terminal liter
Address in level pond;
AKU is buffered in local terminal upgrading pond by node server, and upgrading is provided to terminal by LAN, it is to avoid
Terminal directly accesses central server, further saves Internet bandwidth.
S4, terminal device catalogue update configuration steps, and terminal device accesses the node clothes of connected node server
Business device record sheet, finds to have the information module inquired about and oneself whether downloaded in the new AKU after new AKU, such as
Fruit is not downloaded, then download information module, and parse resource module in the position of terminal device from the information module downloaded
Information, and contrasted with the bibliographic structure of oneself, newly-built, deletion or modification catalogue under assigned catalogue are determined according to more new command
Structure;
More new command is parsed by terminal program and performed, and is not program, simple in construction, and upgrading is flexible so that escalation process is more
Intelligence.
S5, terminal device download resource module step, and terminal device, which updates to read in information module after bibliographic structure, to be remembered
The network path of the resource module of load, and resource module is downloaded from the path, complete upgrading.
The heterogeneous terminals method for upgrading software of the present embodiment, it is first by the way that AKU is divided into information module and resource module
First judged whether to be adapted to oneself upgrading by node server download information module, be adapted to being specified further according to information module for upgrading
Resource module is downloaded in path, is downloaded and is upgraded from the node server again with the terminal device that the node server is connected, so that
The purpose that the terminal device being connected with this node server is adaptively upgraded is reached, it is isomery to solve by same central server
The problem of updating terminal device.
Safeguard there is central server record sheet in the step S2, in the central server, the node server will
Resource module sends information to central server after the completion of downloading, the central server changes central server record sheet, institute
Stating in central server record sheet at least includes under AKU title, the node server ID of download information module, information module
Load state, resource module download status information.Central server record sheet is used to record AKU title, is easy to download management.
For the ease of recording the information of next AKU, the central server is by checking that the central server is remembered
Table is recorded, judges whether the server of all destination node server IDs corresponding to the AKU is all downloaded and finishes, if so, then
Information described in central server record sheet is transferred to historical record, and empties central server record sheet.
In the step S4, the node serve that the terminal device notifies it to be connected after information module download is finished
Device, changes the information module download state of the terminal in node server record sheet.
In the step S5, the node serve that the terminal device notifies it to be connected after resource module download is finished
Device, changes the resource module download state of the terminal in node server record sheet.
In the step S5, the resource module that the node server is changed in node server record sheet every time downloads shape
During state, detect whether whole terminals of this node server connection successfully download resource module, if all downloaded successfully,
This AKU content in node server record sheet is then stored in daily record, and empties node server record sheet.
Certainly, described above is not limitation of the present invention, and the present invention is also not limited to the example above, this technology neck
The variations, modifications, additions or substitutions that the those of ordinary skill in domain is made in the essential scope of the present invention, should also belong to this hair
Bright protection domain.