CN107395385A - Method for upgrading software and device - Google Patents
Method for upgrading software and device Download PDFInfo
- Publication number
- CN107395385A CN107395385A CN201610327571.5A CN201610327571A CN107395385A CN 107395385 A CN107395385 A CN 107395385A CN 201610327571 A CN201610327571 A CN 201610327571A CN 107395385 A CN107395385 A CN 107395385A
- Authority
- CN
- China
- Prior art keywords
- veneer
- software
- upgrading
- current device
- software version
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
Abstract
The invention provides a kind of method for upgrading software and device.Wherein, this method includes:According to the escalation policy being pre-configured with, from the software version of server acquisition equipment veneer, to obtain the first software version;Judge whether first software version is consistent with the second software version of current device veneer;In the case where judged result is no, the current equipment veneer is controlled to carry out software upgrading.By the present invention, solve the problems, such as that the software updating efficiency caused by carrying out board software upgrading by manual operations in correlation technique is relatively low, and then improve the effect of board software upgrading efficiency.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of method for upgrading software and device.
Background technology
The most important thing that transmission net product up-gradation and loading always work after sale, the production of traditional transmission net
Product upgrading has two ways:Network management upgrading and order line upgrading.
Network management upgrading includes the upgrading of plate level and batch upgrade again.Wherein the upgrading of plate level is worked as individual with single veneer
Component be the component such as unit, app/fpga/boot perform successively upgrading and loading procedure, user configuration its
In some program file start to upgrade, loading procedure to be upgraded terminates, check upgraded version it is errorless after again
Next component is configured, is performed successively.Batch upgrade has improvement on the basis of the upgrading of original plate level,
User can independently select polylith veneer, multiple components in network element, the good all program files of configuration
Afterwards, more veneer multifile Parallel downloads are realized while.Compared with the upgrading of plate level, batch upgrade realizes
The centralized configuration and Parallel download of upgrade file, after only need to having configured all files to be upgraded, a key opens
It is dynamic, last result is checked, greatlys save the time of user.
The general process of order line upgrading is divided into two steps:1st, the communication of PC and equipment veneer is established, is led to
Order line terminal connecting single board is crossed, tftp or ftp server are opened on PC, input order will be treated
Update version document is transferred to one-board memory;2nd, file permission is changed, replaces old version file,
Hand-reset loads new file.After waiting board resetting, single board edition is checked.Order line upgrading also may be used
With the multiple more new files of bulk transfer to veneer, after replacing multiple component versions, unified Reset Board.
Traditional board software upgrade method has two:1st, either network management upgrading is still ordered
Row upgrading, it is required for user to carry out substantial amounts of manual operations, its low upgrading efficiency is far from
The needs of increasingly huge engineer applied can be met;Version checking process upgrade simultaneously after is cumbersome, goes out
Reason can not be analyzed after existing failure;If the 2, subcard device failure, more renewing subcard needs to pass through order
Row upgrades the monoboard programme again, cumbersome.
For in correlation technique, the software upgrading caused by board software upgrading is carried out by manual operations
The problem of less efficient, not yet propose to efficiently solve scheme.
The content of the invention
The embodiments of the invention provide a kind of method for upgrading software and device, at least to solve correlation technique
In by manual operations carry out board software upgrading caused by software updating efficiency it is relatively low the problem of.
According to one embodiment of present invention, there is provided a kind of method for upgrading software, including:According to pre-
The escalation policy first configured, the software version of equipment veneer is obtained from server, to obtain the first software
Version;Judge whether first software version is consistent with the second software version of current device veneer;
In the case where judged result is no, the current device veneer is controlled to carry out software upgrading.
Alternatively, the escalation policy that the basis is pre-configured with, the soft of equipment veneer is obtained from server
Part version, included with obtaining the first software version:It is described current from server acquisition according to predetermined period
The software version of equipment veneer;Or obtain the complete of the server from server according to predetermined period
Portion's software version.
Alternatively, it is in the second software version for judging first software version and current device veneer
It is no it is consistent before, in addition to:Software version is sent by specified protocol to the current device veneer to look into
Instruction is ask, wherein, the specified protocol includes at least one of:Simple Network Management Protocol snmp,
Telnet agreements;Receive second software version that the current device veneer reports.
Alternatively, after controlling the current device veneer to carry out software upgrading, in addition to:According to
The software activation strategy of equipment veneer, the equipment veneer after activation upgrading;Wherein, the software activation
Strategy includes:After the current device veneer carries out software upgrading, directly to the equipment after upgrading
Veneer sends reset instruction to indicate that the equipment veneer after the upgrading enters line activating;Or receiving
To after the selection instruction of equipment veneer activation manipulation, to after upgrading equipment veneer send reset instruction with
Indicate that the equipment veneer after the upgrading enters line activating.
Alternatively, after controlling the current device veneer to carry out software upgrading, in addition to:Detection
Current device veneer carries out the updating result after software upgrading, and records the current device veneer and carry out
The process logs of software upgrading.
Alternatively, in the case where current device increases veneer newly, in addition to:Current device is received to report
Newly-increased veneer board type and the board type corresponding to software version information;Judge described
It whether there is software version corresponding with the software version information received in one software version;Judging
As a result it is that judging the software version of first software version and current device veneer is in the case of being
It is no consistent, and in the case where judged result is no, control the current device veneer to carry out software liter
Level;In the case where judged result is no, obtained to the server corresponding with the newly-increased veneer
Software version, and control the current single board to carry out software upgrading.
According to another embodiment of the invention, there is provided a kind of software updating apparatus, including:Obtain
Module, for according to the escalation policy that is pre-configured with, obtaining the software version of equipment veneer from server,
To obtain the first software version;First judge module, for judging first software version and current
Whether the second software version of equipment veneer is consistent;Control module, for the feelings for being no in judged result
Under condition, the current device veneer is controlled to carry out software upgrading.
Alternatively, described device also includes:Sending module, for judging first software version
Before whether consistent with the second software version of current device veneer, by specified protocol to described current
Equipment veneer sends software version query statement, wherein, the specified protocol includes at least one of:
Simple Network Management Protocol snmp, telnet agreement;First receiving module, it is described current for receiving
Second software version that equipment veneer reports.
Alternatively, described device also includes:Active module, for controlling the current device veneer
After carrying out software upgrading, according to the software activation strategy of equipment veneer, the tables of equipment after activation upgrading
Plate;Wherein, the software activation strategy includes:The current device veneer carry out software upgrading it
Afterwards, reset instruction directly is sent to the equipment veneer after upgrading to indicate the equipment veneer after the upgrading
Enter line activating;Or after the selection instruction of equipment veneer activation manipulation is received, to after upgrading
Equipment veneer sends reset instruction to indicate that the equipment veneer after the upgrading enters line activating;Or institute
Stating device also includes:Detection module, for control the current device veneer carry out software upgrading it
Afterwards, detect current device veneer and carry out the updating result after software upgrading, and record the current device
Veneer carries out the process logs of software upgrading.
Alternatively, described device also includes:Second receiving module, for increasing veneer newly in current device
In the case of, board type and the board type for receiving the newly-increased veneer that current device reports are corresponding
Software version information;Second judge module, for judging to whether there is in first software version
Software version corresponding with the software version information received;First processing module, for judging to tie
Whether fruit is in the case of being, judges the software version of first software version and current device veneer
Unanimously, and in the case where judged result is no, the current device veneer is controlled to carry out software upgrading;
Second processing module, in judged result in the case of no, to the server obtain with it is described
Software version corresponding to newly-increased veneer, and control the current single board to carry out software upgrading.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is set
It is set to the program code that storage is used to perform following steps:
According to the escalation policy being pre-configured with, from the software version of server acquisition equipment veneer, to obtain
To the first software version;
Judge whether first software version is consistent with the second software version of current device veneer;
In the case where judged result is no, the current device veneer is controlled to carry out software upgrading.
By the present invention, according to the escalation policy being pre-configured with, the soft of equipment veneer is obtained from server
Part version, to obtain the first software version;Judge the of first software version and current device veneer
Whether two software versions are consistent;In the case where judged result is no, the current equipment veneer is controlled to enter
Row software upgrading, solve in correlation technique and carried out by manual operations caused by board software upgrades
The problem of software updating efficiency is relatively low, and then improve the effect of board software upgrading efficiency.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the one of the application
Part, schematic description and description of the invention are used to explain the present invention, not formed to this hair
Bright improper restriction.In the accompanying drawings:
Fig. 1 is method for upgrading software flow chart according to embodiments of the present invention;
Fig. 2 is the structural representation of software updating apparatus according to embodiments of the present invention;
Fig. 3 is method for upgrading software flow chart (one) according to embodiments of the present invention;
Fig. 4 is method for upgrading software flow chart (two) according to embodiments of the present invention;
Fig. 5 is the structured flowchart of software updating apparatus according to embodiments of the present invention;
Fig. 6 is the structured flowchart (one) of software updating apparatus according to embodiments of the present invention;
Fig. 7 is the structured flowchart (two) of software updating apparatus according to embodiments of the present invention;
Fig. 8 is the structured flowchart (three) of software updating apparatus according to embodiments of the present invention;
The structured flowchart (four) of software updating apparatus according to embodiments of the present invention Fig. 9;
The structured flowchart (five) of software updating apparatus according to embodiments of the present invention Figure 10.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that
In the case where not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing
" first ", " second " etc. be for distinguishing similar object, without for describe specific order or
Precedence.
Embodiment 1
A kind of method for upgrading software is provided in the present embodiment, and Fig. 1 is according to embodiments of the present invention
Method for upgrading software flow chart, as shown in figure 1, the flow comprises the following steps:
Step S102, according to the escalation policy being pre-configured with, the soft of equipment veneer is obtained from server
Part version, to obtain the first software version;
Step S104, judging the second software version of first software version and current device veneer is
It is no consistent;
Step S106, in the case where judged result is no, the current equipment veneer is controlled to carry out soft
Part upgrades.
Alternatively, in the present embodiment, the application scenarios of above-mentioned method for upgrading software include but and unlimited
In:Single board software edition is during upgrading, under the application scenarios, according to the escalation policy being pre-configured with,
The software version of equipment veneer is obtained from server, to obtain the first software version;Judge that this is first soft
Whether part version is consistent with the second software version of current device veneer;In the situation that judged result is no
Under, control the current equipment veneer to carry out software upgrading.That is, the present embodiment by matching somebody with somebody in advance
The escalation policy put realizes automatic upgrading, without manually carrying out board software upgrading, and then solves
The software updating efficiency caused by board software upgrading is carried out by manual operations in correlation technique of having determined
The problem of relatively low, the effect for improving board software upgrading efficiency is reached.
Alternatively, above-mentioned method for upgrading software goes for structural framing schematic diagram as described in Figure 2
In, server is by taking equipment vendor's version server as an example.Including:
Device 1:Policy control device, there is provided UI interfaces update activation strategy to user configuration, protect
Renewal policy data xml document is deposited to local, according to renewal frequency strategy, timing sends out message to device
2 and device 3.
Device 2:Network version library inquiry download apparatus, can connect equipment vendor's version server, lead to
The agreements such as ftp or http are crossed, inquire about version file, download version file to local version library storage.
Device 3:Device talk interface arrangement, this device can be directly integrated traditional webmaster or life
Row system is made, by snmp or telnet modes, sends inquiry version command to equipment veneer,
Storage device version report transmits version file to veneer to local, by ftp or tftp agreements,
Send reset instruction control board resetting activation.
Device 4:Updating result inspection record device, check device version form and city edition after upgrading
Storehouse, record automation result are notified updating result by pop-up or UI interfaces to journal file
User.
With reference to specific example, the present embodiment is illustrated.
The present embodiment proposes a kind of method of software upgrading, can effectively solve to exist in background technology
Technical problem.User need to only configure renewal and activation strategy, all equipment veneer renewal processes
And new installation single board edition acquisition process, automation can be realized.
Wherein, mainly include the following steps that:
A, user configures automatic escalation policy and activation strategy by UI interfaces.
B, network version library inquiry download apparatus, according to the configuring condition of policy control device, periodically
To equipment vendor's version server inquiry version update status, if renewal, then obtain version file and deposit
Storage is local to upgrading proxy module.
C, device talk interface arrangement, current device single board edition is obtained from all devices, with local
Edition comparison, when finding inconsistent, control device upgrading single board edition, and according to activation strategy,
Reset activation upgrades veneer.
D, updating result inspection record device, updating result is checked after waiting end to be upgraded, record rises
Level process logs, push updating result is to user.
E, when equipment has new installation veneer, active reporting device talk interface arrangement, the latter is to equipment
After business's version server renewal respective version file, control device newly installs veneer and uses this new edition this paper
Part starting and upgrading.
The problem of conventional method efficiency is low, and manual operation is cumbersome can solve the problem that by the present embodiment, carry
The efficiency of monoboard programme upgrading loading and version checking is risen, mitigates the burden of user.
In one alternatively embodiment, above-mentioned steps S102 comprises the following steps:
Step S11, the software version of the current equipment veneer is obtained from server according to predetermined period;
Or
Step S12, whole software versions of the server are obtained from server according to predetermined period.
In the optional embodiment, obtained automatically by above-mentioned single board software edition more new strategy newest
All or part of software version, furthermore achieved that the effect that board software upgrades automatically.
It is further comprising the steps of before above-mentioned steps S104 in one alternatively embodiment:
Step S21, software version query statement is sent to the current equipment veneer by specified protocol,
Wherein, the specified protocol includes at least one of:Simple Network Management Protocol snmp, telnet is assisted
View;
Step S22, receive second software version that the current equipment veneer reports.
In the optional embodiment, by specified protocol to current device board querying current device list
The software version of plate, enabling according to the software version of the current device veneer of acquisition and from server
The recent software version of acquisition is compared, and realizes software automatic updating according to comparative result.
Alternatively, it is further comprising the steps of after above-mentioned steps S106:
Step S31, according to the software activation strategy of equipment veneer, the equipment veneer after activation upgrading;
Wherein, the software activation strategy includes:After equipment veneer carries out software upgrading in this prior,
Directly reset instruction is sent to the equipment veneer after upgrading to indicate that the equipment veneer after the upgrading is carried out
Activation;Or after the selection instruction of equipment veneer activation manipulation is received, to the equipment after upgrading
Veneer sends reset instruction to indicate that the equipment veneer after the upgrading enters line activating.
By step S31, after current device veneer carries out software upgrading, according to the soft of equipment veneer
Part activation strategy, the equipment veneer after activation upgrading so that the equipment veneer after upgrading can be transported normally
Software version after row upgrading.
Alternatively, it is further comprising the steps of after above-mentioned steps S106:
Step S41, detection current device veneer carries out the updating result after software upgrading, and records and be somebody's turn to do
Current device veneer carries out the process logs of software upgrading.
The current device veneer obtained by step S41 carries out the process logs of software upgrading so that energy
Enough processes that software upgrading is carried out to equipment veneer carry out real-time tracking.
In one alternatively embodiment, in the case where current device increases veneer newly, in addition to
Lower step:
Step S51, receive the board type and the board type of the newly-increased veneer that current device reports
Corresponding software version information;
Step S52, judge to whether there is the software version information with receiving in first software version
Corresponding software version;
Step S54, in the case where the judgment result is yes, judge first software version and currently set
Whether the software version of standby plane is consistent, and in the case where judged result is no, controls this currently to set
Standby plane carries out software upgrading;
Step S55, in the case where judged result is no, obtained and the newly-increased veneer to the server
Corresponding software version, and control the current single board to carry out software upgrading.
, can be to increasing veneer newly in the case where current device increases veneer newly by the optional mode
Software automatic updating is carried out in time.
With reference to specific example, the present embodiment is illustrated.
Alternative embodiment 1
The premise of automatic updating is human configuration well more new strategy, user by UI interface configurations more
New strategy and activation strategy.
More new strategy is configurable to most simple renewal and most full renewal:Most simple renewal, i.e., only download this generation
The version of board type be present in all administration equipment of reason module;Most full renewal, that is, download equipment vendor and own
The version of equipment veneer type.
Activation strategy is configurable to automatic activation and frommanual activation:Automatic activation, determined without artificial,
After upgrading proxy module more new edition file to veneer, directly transmit reset command to veneer and notify veneer
Reset activation;Determined during frommanual activation, it is necessary to wait user to be clicked at UI interfaces or pop-up interface
Afterwards, reset command is being sent to veneer notice board resetting activation.
The idiographic flow of equipment veneer automatic updating comprises the following steps:
Step S61:Upgrading proxy module, the renewal policy data xml that reading device 1 is stored,
More new strategy is obtained, if strategy be most simple renewal, into step S62, if strategy is most entirely more
Newly, into step S63.
Step S62:By device 3, obtain current device and veneer be present, store single board edition information
To local device version report, equipment vendor's version server, Integrated comparative equipment are connected by device 2
Version report, local version storehouse and server version repository, ftp or http are downloaded to if any renewal
Local version storehouse.Into step S64.
Step S63:Device 2 connects equipment vendor's version server, checks all versions, if local
It is not present or version number is inconsistent, local version library storage is just downloaded to by ftp or http.
Into step S64.
Step S64:Upgrade proxy module, the device version form and city edition that comparison means 3 obtains
This storehouse, for current version and the inconsistent veneer of local version storehouse version, into step S65.
Step S65:Upgrade proxy module control device 3, will using snmp or telnet instruments
Redaction is sent to equipment veneer memory in a manner of ftp or tftp.According to activation strategy, if
Activation strategy is automatic activation, into step S66;If activation strategy is frommanual activation, into step
Rapid S67.
Step S66:Upgrade proxy module control device 3, using snmp directly transmit reset message to
Veneer or telnet input reboot to veneer, and notice board resetting activates, into step S68.
Step S67:Upgrade proxy module, notify to answer required for user by UI interfaces or pop-up
Position activation veneer, after waiting user to confirm, using snmp directly transmit reset message to veneer or
Telnet inputs reboot to veneer, and notice board resetting activates, into step S68.
Step S68:After upgrading the proxy module wait some time, by device 3, acquisition is currently set
Standby veneer to be present, renewal single board edition information compares device version form to local device version report
With local version storehouse, single board edition information after verification upgrading, upgrading daily record is preserved to local file, is led to
Cross UI interfaces or pop-up notice customer upgrade result.
It should be noted that the equipment component veneer that above-mentioned steps S61 is related into step S68 is certainly
Dynamicization upgrading flow may be referred to the step S301 to step S310 in Fig. 3.
Alternative embodiment 2
New installation veneer obtains version idiographic flow and comprised the following steps automatically:
Step S71:When equipment has new veneer installation, new board type and version message are reported to upgrading
The device 3 of proxy module, device 3 preserve this message to local newly-increased single board list file.Upgrade generation
Module is managed according to newly-increased single board list file search local version storehouse, if without corresponding single board edition text
Part enters step S72, enters step S73 if there is corresponding single board edition file.
Step S72:It is new by device 2, the version server inquiry of connection equipment vendor to upgrade proxy module
Increase the version that new veneer is corresponded in single board list file, by ftp or http download versions file extremely
Local version storehouse, into step S73.
Step S73:Upgrade proxy module, relatively more newly-increased single board list file and local version storehouse, such as
Have that version is inconsistent, into step S74.
Step S74:Upgrade proxy module control device 3, will using snmp or telnet instruments
Redaction is sent to equipment veneer memory in a manner of ftp or tftp, into step S75.
Step S75:Upgrade proxy module control device 3, using snmp directly transmit reset message to
Veneer or telnet input reboot to veneer, and notice board resetting activates, into step S76.
Step S76:After upgrading the proxy module wait some time, by device 3, inquire about newly-increased single
Single board edition information in panel list file, renewal version information compare to newly-increased single board list file
Newly-increased single board list file and local version storehouse, single board edition information after verification upgrading, preserve upgrading day
Will notifies customer upgrade result to local file by UI interfaces or pop-up.
It should be noted that the new installation veneer that above-mentioned steps S71 to step S76 is related to obtains automatically
The part flow of version is taken to may be referred to S401 to step S409 in Fig. 4.
Through the above description of the embodiments, those skilled in the art can be understood that root
The mode of required general hardware platform can be added by software according to the method for above-described embodiment to realize, when
So can also be by hardware, but the former is more preferably embodiment in many cases.Based on such reason
Solution, the part that technical scheme substantially contributes to prior art in other words can be with soft
The form of part product embodies, and the computer software product is stored in a storage medium (such as
ROM/RAM, magnetic disc, CD) in, including some instructions are make it that a station terminal equipment (can
To be mobile phone, computer, server, or network equipment etc.) perform each embodiment institute of the present invention
The method stated.
Embodiment 2
A kind of software updating apparatus is additionally provided in the present embodiment, and the device is used to realize above-mentioned implementation
Example and preferred embodiment, repeating no more for explanation was carried out.As used below, term
" module " can realize the combination of the software and/or hardware of predetermined function.Although following examples are retouched
The device stated preferably is realized with software, but hardware, or the realization of the combination of software and hardware
And may and be contemplated.
Fig. 5 is the structured flowchart of software updating apparatus according to embodiments of the present invention, as shown in figure 5,
The device includes:
1) acquisition module 52, for according to the escalation policy being pre-configured with, equipment to be obtained from server
The software version of veneer, to obtain the first software version;
2) the first judge module 54, for judging the of first software version and current device veneer
Whether two software versions are consistent;
3) control module 56, in the case of being no in judged result, the current tables of equipment is controlled
Plate carries out software upgrading.
Alternatively, in the present embodiment, the application scenarios of above-mentioned software updating apparatus include but and unlimited
In:Single board software edition is during upgrading, under the application scenarios, according to the escalation policy being pre-configured with,
The software version of equipment veneer is obtained from server, to obtain the first software version;Judge that this is first soft
Whether part version is consistent with the second software version of current device veneer;In the situation that judged result is no
Under, control the current equipment veneer to carry out software upgrading.That is, the present embodiment by matching somebody with somebody in advance
The escalation policy put realizes automatic upgrading, without manually carrying out board software upgrading, and then solves
The software updating efficiency caused by board software upgrading is carried out by manual operations in correlation technique of having determined
The problem of relatively low, the effect for improving board software upgrading efficiency is reached.
In one alternatively embodiment, Fig. 6 is software updating apparatus according to embodiments of the present invention
Structured flowchart (one), as shown in fig. 6, the acquisition module 52 includes:
1) first acquisition unit 62, for obtaining the current tables of equipment from server according to predetermined period
The software version of plate;Or second acquisition unit equivalent substitution first acquisition unit is applicable, this second
Acquiring unit is used for the whole software versions for obtaining the server from server according to predetermined period.
In the optional embodiment, obtained automatically by above-mentioned single board software edition more new strategy newest
All or part of software version, furthermore achieved that the effect that board software upgrades automatically.
In one alternatively embodiment, Fig. 7 is software updating apparatus according to embodiments of the present invention
Structured flowchart (two), as shown in fig. 7, the device also wraps in addition to including the module shown in Fig. 5
Include:
1) sending module 72, for judging the second of first software version and current device veneer
Before whether software version is consistent, software version is sent to the current equipment veneer by specified protocol and looked into
Instruction is ask, wherein, the specified protocol includes at least one of:Simple Network Management Protocol snmp,
Telnet agreements;
2) the first receiving module 74, the second software version reported for receiving the current equipment veneer
This.
In the optional embodiment, by specified protocol to current device board querying current device list
The software version of plate, enabling according to the software version of the current device veneer of acquisition and from server
The recent software version of acquisition is compared, and realizes software automatic updating according to comparative result.
In one alternatively embodiment, Fig. 8 is software updating apparatus according to embodiments of the present invention
Structured flowchart (three), as shown in figure 8, the device also wraps in addition to including the module shown in Fig. 5
Include:
1) active module 82, after current equipment veneer progress software upgrading in control, root
According to the software activation strategy of equipment veneer, the equipment veneer after activation upgrading;
Wherein, the software activation strategy includes:After equipment veneer carries out software upgrading in this prior,
Directly reset instruction is sent to the equipment veneer after upgrading to indicate that the equipment veneer after the upgrading is carried out
Activation;Or after the selection instruction of equipment veneer activation manipulation is received, to the equipment after upgrading
Veneer sends reset instruction to indicate that the equipment veneer after the upgrading enters line activating.
By said apparatus, after current device veneer carries out software upgrading, according to the soft of equipment veneer
Part activation strategy, the equipment veneer after activation upgrading so that the equipment veneer after upgrading can be transported normally
Software version after row upgrading.
In one alternatively embodiment, software updating apparatus according to embodiments of the present invention Fig. 9
Structured flowchart (four), as shown in figure 9, the device also includes in addition to including the module shown in Fig. 5:
1) detection module 92, for after controlling the current equipment veneer to carry out software upgrading, examining
Survey current device veneer and carry out the updating result after software upgrading, and record the current equipment veneer and carry out
The process logs of software upgrading.
The current device veneer obtained by said apparatus carries out the process logs of software upgrading so that energy
Enough processes that software upgrading is carried out to equipment veneer carry out real-time tracking.
In one alternatively embodiment, software updating apparatus according to embodiments of the present invention Figure 10
Structured flowchart (five), as shown in Figure 10, the device also wraps in addition to including the module shown in Fig. 5
Include:
1) the second receiving module 1002, in the case of increasing veneer newly in current device, receive and work as
Software version information corresponding to the board type and the board type of the newly-increased veneer that preceding equipment reports;
2) the second judge module 1004, for judging to whether there is and reception in first software version
Software version corresponding to the software version information arrived;
3) first processing module 1006, in the case where the judgment result is yes, judge this first
Software version situation whether consistent, and being no in judged result with the software version of current device veneer
Under, control the current equipment veneer to carry out software upgrading;
4) Second processing module 1008, in the case of being no in judged result, to the server
Software version corresponding with the newly-increased veneer is obtained, and controls current single board progress software upgrading.
, can be to increasing veneer newly in the case where current device increases veneer newly by the optional mode
Software automatic updating is carried out in time.
It should be noted that above-mentioned modules can be realized by software or hardware, for
The latter, it can be accomplished by the following way, but not limited to this:Above-mentioned module is respectively positioned on same processor
In;Or the form of above-mentioned modules in any combination is located in different processors respectively.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on
State storage medium and can be configured to the program code that storage is used to perform following steps:
S1, according to the escalation policy being pre-configured with, the software version of equipment veneer is obtained from server,
To obtain the first software version;
S2, judge whether first software version is consistent with the second software version of current device veneer;
S3, in the case where judged result is no, the current equipment veneer is controlled to carry out software upgrading.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, only
Read memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
Alternatively, in the present embodiment, processor is held according to the program code stored in storage medium
Row above-mentioned steps S1, S2 and S3.
Alternatively, the specific example in the present embodiment may be referred to above-described embodiment and optional embodiment
Described in example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step
It can be realized with general computing device, they can be concentrated on single computing device, or
It is distributed on the network that multiple computing devices are formed, alternatively, they be able to can be held with computing device
Capable program code realizes, it is thus possible to be stored in storage device by computing device Lai
Perform, and in some cases, can be shown or described to be performed different from order herein
Step, they are either fabricated to each integrated circuit modules respectively or by multiple moulds in them
Block or step are fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any spy
Fixed hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for
For those skilled in the art, the present invention can have various modifications and variations.All essences in the present invention
God any modification, equivalent substitution and improvements made etc., should be included in the present invention with principle
Protection domain within.
Claims (10)
- A kind of 1. method for upgrading software, it is characterised in that including:According to the escalation policy being pre-configured with, the software version of equipment veneer is obtained from server, To obtain the first software version;Judge first software version and current device veneer the second software version whether one Cause;In the case where judged result is no, the current device veneer is controlled to carry out software upgrading.
- 2. according to the method for claim 1, it is characterised in that the upgrading that the basis is pre-configured with Strategy, the software version of equipment veneer is obtained from server, is included with obtaining the first software version:The software version of the current device veneer is obtained from server according to predetermined period;OrWhole software versions of the server are obtained from server according to predetermined period.
- 3. according to the method for claim 1, it is characterised in that judging first software version Before whether consistent with the second software version of current device veneer, in addition to:Software version query statement is sent to the current device veneer by specified protocol, wherein, The specified protocol includes at least one of:Simple Network Management Protocol snmp, telnet is assisted View;Receive second software version that the current device veneer reports.
- 4. according to the method for claim 1, it is characterised in that controlling the current device veneer After carrying out software upgrading, in addition to:According to the software activation strategy of equipment veneer, the equipment veneer after activation upgrading;Wherein, the software activation strategy includes:Software liter is carried out in the current device veneer After level, after directly sending reset instruction to the equipment veneer after upgrading to indicate the upgrading Equipment veneer enters line activating;Or after the selection instruction of equipment veneer activation manipulation is received, Reset instruction is sent to the equipment veneer after upgrading to indicate that the equipment veneer after the upgrading enters Line activating.
- 5. according to the method for claim 1, it is characterised in that controlling the current device veneer After carrying out software upgrading, in addition to:Detect current device veneer and carry out the updating result after software upgrading, and record described current Equipment veneer carries out the process logs of software upgrading.
- 6. method as claimed in any of claims 1 to 5, it is characterised in that set currently In the case of standby newly-increased veneer, in addition to:Board type and the board type for receiving the newly-increased veneer that current device reports are corresponding Software version information;Judge to whether there is the software version information pair with receiving in first software version The software version answered;In the case where the judgment result is yes, first software version and current device list are judged Whether the software version of plate is consistent, and in the case where judged result is no, controls described current Equipment veneer carries out software upgrading;In the case where judged result is no, obtained and the newly-increased veneer pair to the server The software version answered, and control the current device veneer to carry out software upgrading.
- A kind of 7. software updating apparatus, it is characterised in that including:Acquisition module, for according to the escalation policy being pre-configured with, tables of equipment to be obtained from server The software version of plate, to obtain the first software version;First judge module, for judging the of first software version and current device veneer Whether two software versions are consistent;Control module, in the case of being no in judged result, control the current device list Plate carries out software upgrading.
- 8. device according to claim 7, it is characterised in that described device also includes:Sending module, for judging the second of first software version and current device veneer Before whether software version is consistent, software is sent to the current device veneer by specified protocol Version querying instructs, wherein, the specified protocol includes at least one of:Simple network pipe Manage agreement snmp, telnet agreement;First receiving module, second software reported for receiving the current device veneer Version.
- 9. device according to claim 7, it is characterised in that described device also includes:Active module, after carrying out software upgrading in the control current device veneer, root According to the software activation strategy of equipment veneer, the equipment veneer after activation upgrading;Wherein, the software activation strategy includes:Software liter is carried out in the current device veneer After level, after directly sending reset instruction to the equipment veneer after upgrading to indicate the upgrading Equipment veneer enters line activating;Or after the selection instruction of equipment veneer activation manipulation is received, Reset instruction is sent to the equipment veneer after upgrading to indicate that the equipment veneer after the upgrading enters Line activating;Or described device also includes:Detection module, for after controlling the current device veneer to carry out software upgrading, examining Survey current device veneer and carry out the updating result after software upgrading, and record the current device list Plate carries out the process logs of software upgrading.
- 10. the device according to any one in claim 7 to 9, it is characterised in that described device Also include:Second receiving module, in the case of increasing veneer newly in current device, reception is currently set Software version information corresponding to the board type and the board type of the standby newly-increased veneer reported;Second judge module, for judging to whether there is with receiving in first software version Software version information corresponding to software version;First processing module, in the case where the judgment result is yes, judging that described first is soft Part version feelings whether consistent, and being no in judged result with the software version of current device veneer Under condition, the current device veneer is controlled to carry out software upgrading;Second processing module, in the case of being no in judged result, obtained to the server Software version corresponding with the newly-increased veneer is taken, and it is soft to control the current device veneer to carry out Part upgrades.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610327571.5A CN107395385A (en) | 2016-05-17 | 2016-05-17 | Method for upgrading software and device |
PCT/CN2017/080295 WO2017198015A1 (en) | 2016-05-17 | 2017-04-12 | Software upgrading method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610327571.5A CN107395385A (en) | 2016-05-17 | 2016-05-17 | Method for upgrading software and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107395385A true CN107395385A (en) | 2017-11-24 |
Family
ID=60324820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610327571.5A Pending CN107395385A (en) | 2016-05-17 | 2016-05-17 | Method for upgrading software and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107395385A (en) |
WO (1) | WO2017198015A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116009912A (en) * | 2022-12-26 | 2023-04-25 | 郑州云智信安安全技术有限公司 | Construction method for automatically generating upgrade package aiming at private network environment |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764803B (en) * | 2019-10-21 | 2023-03-31 | 北京云迹科技股份有限公司 | Software upgrading method and device |
CN112423290B (en) * | 2020-11-05 | 2022-10-18 | 歌尔科技有限公司 | Wireless upgrading method, terminal equipment, device to be upgraded and medium |
CN112910948B (en) * | 2021-01-12 | 2023-05-09 | 拉扎斯网络科技(上海)有限公司 | Protocol upgrading method, device, electronic equipment, storage medium and program product |
CN113434167B (en) * | 2021-06-15 | 2023-06-16 | 青岛海尔科技有限公司 | Function upgrading method and device, storage medium and electronic device |
CN113596084B (en) * | 2021-06-24 | 2023-10-24 | 青岛海尔科技有限公司 | Household appliance state feedback method and system, storage medium and electronic device |
CN117032765B (en) * | 2023-10-10 | 2024-01-16 | 浙江大华技术股份有限公司 | Model upgrading method, model upgrading device and computer storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1178402A1 (en) * | 2000-08-03 | 2002-02-06 | Hsing Tech Enterprises Co., Ltd. | Method and apparatus for actively updating program file(s) of a client computer |
CN101267344B (en) * | 2008-04-25 | 2011-07-13 | 中兴通讯股份有限公司 | An upgrade method and device for network element single-board software |
CN101388792B (en) * | 2008-10-15 | 2011-06-15 | 上海华为技术有限公司 | Single board plug-and-use processing method, device and telecommunication system |
CN101924643A (en) * | 2009-06-10 | 2010-12-22 | 中兴通讯股份有限公司 | Updating method and system of card software in communication system equipment |
-
2016
- 2016-05-17 CN CN201610327571.5A patent/CN107395385A/en active Pending
-
2017
- 2017-04-12 WO PCT/CN2017/080295 patent/WO2017198015A1/en active Application Filing
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116009912A (en) * | 2022-12-26 | 2023-04-25 | 郑州云智信安安全技术有限公司 | Construction method for automatically generating upgrade package aiming at private network environment |
CN116009912B (en) * | 2022-12-26 | 2023-08-18 | 郑州云智信安安全技术有限公司 | Construction method for automatically generating upgrade package aiming at private network environment |
Also Published As
Publication number | Publication date |
---|---|
WO2017198015A1 (en) | 2017-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107395385A (en) | Method for upgrading software and device | |
EP2163051B1 (en) | Techniques for automatic software provisioning | |
US8150948B2 (en) | Complex software deployment | |
US20120233299A1 (en) | Managing configurations of system management agents in a distributed environment | |
CN105099739A (en) | Plug-in type software deployment method and apparatus, and application server | |
KR20050117936A (en) | System and method of managing device for device managing technology | |
CN103019757A (en) | Method, device and system for synchronizing software among multiple clients | |
CN103729189B (en) | Broadcasting method for converting protocol based on LUA, system, terminal | |
CN103297275A (en) | Dynamic discovery and loading system and method for Web network management client module | |
CN107347017A (en) | The method, apparatus and configuration point device of a kind of device upgrade | |
CN103984573A (en) | Installation method and device of application program | |
US20120278456A1 (en) | Method and apparatus for data configuration | |
CN101924643A (en) | Updating method and system of card software in communication system equipment | |
CN105959302A (en) | Terminal management framework and method | |
CN100375427C (en) | Cluster device batch file transmitting method and file transmission device | |
CN102567050B (en) | The method and apparatus of B/S system remote deploying projects | |
WO2022033079A1 (en) | Pico base station configuration method and apparatus, and storage medium and electronic apparatus | |
CN104104701A (en) | Online service configuration updating method and system | |
CN101616430A (en) | A kind of method and home gateway of managing family gateway software version | |
CN107968725A (en) | Home gateway haplotype terminal equipment configuration information returns and collocation method, equipment | |
CN101867484A (en) | Method and system for upgrading equipment | |
US9294865B2 (en) | Enhanced system and method for custom programming of large groups of phones without requiring additional equipment | |
CN103002564B (en) | Wireless Internet access method, radio networking device, server and wireless networking system | |
CN109274715A (en) | The platform resource management system of vehicle-mounted multi-channel communication systems | |
CN115514667A (en) | Access service processing method, system, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171124 |
|
WD01 | Invention patent application deemed withdrawn after publication |