CN110162320A - Uninterruptible power system upgrade method, device, computer equipment and storage medium - Google Patents

Uninterruptible power system upgrade method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110162320A
CN110162320A CN201910305838.4A CN201910305838A CN110162320A CN 110162320 A CN110162320 A CN 110162320A CN 201910305838 A CN201910305838 A CN 201910305838A CN 110162320 A CN110162320 A CN 110162320A
Authority
CN
China
Prior art keywords
control board
slave control
preset
current
version number
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
Application number
CN201910305838.4A
Other languages
Chinese (zh)
Other versions
CN110162320B (en
Inventor
王光波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910305838.4A priority Critical patent/CN110162320B/en
Publication of CN110162320A publication Critical patent/CN110162320A/en
Application granted granted Critical
Publication of CN110162320B publication Critical patent/CN110162320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)
  • Stand-By Power Supply Arrangements (AREA)

Abstract

This application discloses a kind of uninterruptible power system upgrade method, device, computer equipment and storage mediums, which comprises obtains the data for including at least current time and the server current accessed number;If meeting upgrading trigger condition, judge whether preset spare interface is connected to slave control board;If the preset spare interface is connected to slave control board, and the version number of the slave control board is greater than the version number of current master control borad, then the connection of the no-break power unit and the current master control borad is switched to the connection of the no-break power unit Yu the slave control board;The operation data including at least voltage data of the no-break power unit is monitored in the given time;If the voltage data is normal, the prompting message that can remove the current master control borad is generated, to complete uninterruptible power system upgrading.The defect that time-consuming when to solve traditional technology upgrade-system and needs to shut down.

Description

Uninterruptible power system upgrade method, device, computer equipment and storage medium
Technical field
This application involves computer field is arrived, a kind of uninterruptible power system upgrade method, device, meter are especially related to Calculate machine equipment and storage medium.
Background technique
No-break power unit, that is, UPS (Uninterruptible Power System/Uninterruptible Power Supply), it in alternating current and is powered between equipment (such as server), for uninterrupted to equipment offer is powered Power supply, and (such as have a power failure) provides protection to equipment is powered in unexpected situation.No-break power unit is by master control borad (circuit board) is controlled, it is sometimes desirable to be upgraded to uninterruptible power system, be that is to say and rise to the version of master control borad Grade.Conventional method carries out upgrading to uninterruptible power system and generally requires closing server and no-break power unit, then to master Control plate is upgraded, and this method has the defect that time-consuming and needs to shut down.
Summary of the invention
The main purpose of the application is to provide a kind of uninterruptible power system upgrade method, device, computer equipment and deposit Storage media, it is intended to the defect that time-consuming when solving traditional technology upgrade-system and needs are shut down.
In order to achieve the above-mentioned object of the invention, the application proposes a kind of uninterruptible power system upgrade method, between being applied to not Source device is powered off, the no-break power unit is used to power to server, which comprises
Obtain the data for including at least current time and the server current accessed number;
Judge whether the current time and the server current accessed number meet preset upgrading uninterruptible power supply The trigger condition of system;
If the current time and the server current accessed number meet preset upgrading uninterruptible power system Trigger condition, then judge whether preset spare interface is connected to slave control board, wherein the slave control board has passed through Uninterruptible power supply upgraded in offline device carries out upgraded in offline;
If the preset spare interface is connected to slave control board, the spare master is obtained by the spare interface The version number of plate is controlled, and judges whether the version number of the slave control board is greater than the version number of current master control borad;
If the version number of the slave control board is greater than the version number of current master control borad, by the no-break power unit The connection of the no-break power unit Yu the slave control board is switched to the connection of the current master control borad;
Monitor the operation data including at least voltage data of the no-break power unit in the given time, and according to Preset normal operation judgment rule judges whether the voltage data is normal;
If the voltage data is normal, the prompting message that can remove the current master control borad is generated, to complete not Uninterruptible power system upgrade.
Further, described to judge whether the current time and the server current accessed number meet preset liter The step of trigger condition of grade uninterruptible power system, comprising:
Judge whether current time belongs to preset renewable time point;
If current time belongs to preset renewable time point, judge whether the server current accessed number is less than Preset number threshold value;
If the server current accessed number is less than preset number threshold value, the current time and the clothes are determined Business device current accessed number meets the trigger condition of preset upgrading uninterruptible power system.
Further, if the current time and the server current accessed number meet it is preset upgrading not between The trigger condition of disconnected power-supply system, then judge the step of whether preset spare interface is connected to slave control board, comprising:
If the current time and the server current accessed number meet preset upgrading uninterruptible power system Trigger condition then sends connection confirmation signal to the slave control board by the spare interface, and judges whether to receive Return signal corresponding with the connection confirmation signal;
If receiving return signal corresponding with the connection confirmation signal, it is standby to determine that preset spare interface is connected to Use master control borad.
Further, if the preset spare interface is connected to slave control board, pass through the spare interface The version number of the slave control board is obtained, and judges whether the version number of the slave control board is greater than the version of current master control borad This number the step of, comprising:
If the preset spare interface is connected to slave control board, the spare master is obtained by the spare interface Control the write time of the version number of plate and the version number of the slave control board;
Obtain the write time of the version of current master control borad;
Judge whether the write time of the version number of the slave control board is later than writing for the version of the current master control borad The angle of incidence;
If the write time of the version number of the slave control board is later than the write time of the version of the current master control borad, Then determine that the version number of the slave control board is greater than the version number of current master control borad.
Further, if the preset spare interface is connected to slave control board, pass through the spare interface The version number of the slave control board is obtained, and judges whether the version number of the slave control board is greater than the version of current master control borad After this number the step of, comprising:
If the version number of the slave control board is not more than the version number of current master control borad, statistics upgrades in the last time The abnormality frequency of the no-break power unit after uninterruptible power system;
Judge whether the abnormality frequency is greater than preset frequency of abnormity threshold value;
If the abnormality frequency is not more than preset frequency of abnormity threshold value, the company with current master control borad is kept It connects, and generates the instruction for stopping the upgrading of this uninterruptible power system.
Further, the fortune including at least voltage data for monitoring the no-break power unit in the given time Row data, and according to preset normal operation judgment rule, judge the whether normal step of the voltage data, comprising:
The output voltage data of the no-break power unit are monitored in the given time;
Judge whether the output voltage data are all satisfied preset output voltage index request;
If the output voltage data are all satisfied preset output voltage index request, determine that voltage data is normal.
Further, the fortune including at least voltage data for monitoring the no-break power unit in the given time Row data, and according to preset normal operation judgment rule, after judging the whether normal step of the voltage data, comprising:
If the voltage data is abnormal, the connection of the no-break power unit and the slave control board is switched Return the connection of the no-break power unit and the current master control borad;
Warning message is generated, wherein the warning message is accompanied with abnormal voltage data.
The application provides a kind of uninterruptible power system update device, is applied to no-break power unit, described uninterrupted Power-supply device is used to power to server, and described device includes:
Data capture unit, for obtaining the data for including at least current time and the server current accessed number;
Trigger condition judging unit, for judging whether the current time and the server current accessed number meet The trigger condition of preset upgrading uninterruptible power system;
Slave control board connection judgment unit, if meeting for the current time and the server current accessed number The trigger condition of preset upgrading uninterruptible power system, then judge whether preset spare interface is connected to slave control board, Wherein the slave control board has passed through uninterruptible power supply upgraded in offline device progress upgraded in offline;
Version number's judging unit, if being connected to slave control board for the preset spare interface, by described standby The version number of the slave control board is obtained with interface, and judges whether the version number of the slave control board is greater than current master control The version number of plate;
Connection switching unit will if being greater than the version number of current master control borad for the version number of the slave control board The connection of the no-break power unit and the current master control borad is switched to the no-break power unit and the spare master Control the connection of plate;
Data monitoring unit, for monitor in the given time the no-break power unit include at least voltage data Operation data judge whether the voltage data normal and according to preset normal operation judgment rule;
Prompting message generation unit, if normal for the voltage data, generation can remove the current master control borad Prompting message, thus complete uninterruptible power system upgrading.
The application provides a kind of computer equipment, including memory and processor, and the memory is stored with computer journey The step of sequence, the processor realizes any of the above-described the method when executing the computer program.
The application provides a kind of computer readable storage medium, is stored thereon with computer program, the computer program The step of method described in any of the above embodiments is realized when being executed by processor.
Uninterruptible power system upgrade method, device, computer equipment and the storage medium of the application, acquisition include at least The data of current time and the server current accessed number;If meeting upgrading trigger condition, preset spare connect is judged Whether mouth is connected to slave control board;If the preset spare interface is connected to slave control board, and the slave control board Version number be greater than current master control borad version number, then the connection of the no-break power unit and the current master control borad is cut It is changed to the connection of the no-break power unit Yu the slave control board;The uninterruptible power supply is monitored in the given time to set The standby operation data including at least voltage data;If the voltage data is normal, generation can remove the current master control The prompting message of plate, to complete uninterruptible power system upgrading.Time-consuming when to solve traditional technology upgrade-system And the defect for needing to shut down.
Detailed description of the invention
Fig. 1 is the flow diagram of the uninterruptible power system upgrade method of one embodiment of the application;
Fig. 2 is the structural schematic block diagram of the uninterruptible power system update device of one embodiment of the application;
Fig. 3 is the structural schematic block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Referring to Fig.1, the embodiment of the present application provides a kind of uninterruptible power system upgrade method, sets applied to uninterruptible power supply Standby, the no-break power unit is used to power to server, which comprises
S1, the data for including at least current time and the server current accessed number are obtained;
S2, judge whether the current time and the server current accessed number meet the uninterrupted electricity of preset upgrading The trigger condition of source system;
If S3, the current time and the server current accessed number meet preset upgrading uninterruptible power system Trigger condition, then judge whether preset spare interface is connected to slave control board, wherein the slave control board has led to It crosses uninterruptible power supply upgraded in offline device and carries out upgraded in offline;
If S4, the preset spare interface are connected to slave control board, obtained by the spare interface described standby With the version number of master control borad, and judge whether the version number of the slave control board is greater than the version number of current master control borad;
If the version number of S5, the slave control board is greater than the version number of current master control borad, by the uninterruptible power supply The connection of equipment and the current master control borad is switched to the connection of the no-break power unit Yu the slave control board;
S6, the operation data including at least voltage data for monitoring the no-break power unit in the given time, and According to preset normal operation judgment rule, judge whether the voltage data is normal;
If S7, the voltage data are normal, the prompting message that can remove the current master control borad is generated, to complete Uninterruptible power system upgrading.
No-break power unit, that is, UPS (Uninterruptible Power System/Uninterruptible Power Supply), it in alternating current and is powered between equipment (such as server), for uninterrupted to equipment offer is powered Power supply, and (such as have a power failure) provides protection to equipment is powered in unexpected situation.No-break power unit is by master control borad (circuit board) is controlled, it is sometimes desirable to be upgraded to uninterruptible power system, be that is to say and rise to the version of master control borad Grade.Conventional method carries out upgrading to uninterruptible power system and generally requires closing server and no-break power unit, then to master Control plate is upgraded, and this method has the defect that time-consuming and needs to shut down.The application uses the spare master of preparatory upgraded in offline The mode for controlling plate avoids the defect that time-consuming and needs to shut down.
As described in above-mentioned steps S1, the data for including at least current time and the server current accessed number are obtained. The no-break power unit of the application is used to power to server.And server has access peak period, when accessing peak period It should not carry out system upgrade operation.And whether the time can react with the number of visiting people in access peak period, accordingly, obtain at least Data including current time and the server current accessed number.
As described in above-mentioned steps S2, it is default to judge whether the current time and the server current accessed number meet Upgrading uninterruptible power system trigger condition.It, can be to avoid by the trigger condition of default upgrading uninterruptible power system Upgrading operation is carried out when server load is larger.The access number of general server is periodically, when by one section of statistics Between access data can preset renewable time point accordingly (i.e. it can be learnt that the number of visiting people least time point in a cycle It is expected that the number of visiting people least time point);And the access data of a period of time are counted, to obtain minimum same in a cycle When the number of visiting people, can using minimum the number of visiting people simultaneously plus fluctuation quantity parameter value as preset number threshold value.Therefore, it triggers Condition can be set are as follows: current time is preset renewable time point, and the server current accessed number is less than in advance If number threshold value.
As described in above-mentioned steps S3, if the current time and the server current accessed number meet preset upgrading The trigger condition of uninterruptible power system, then judge whether preset spare interface is connected to slave control board, wherein described standby Pass through uninterruptible power supply upgraded in offline device with master control borad and carries out upgraded in offline.If the current time and the server Current accessed number meets the trigger condition of preset upgrading uninterruptible power system, shows the condition for meeting upgrade-system, if The instruction for obtaining upgrade-system at this time, then can execute updating operation.The application, which uses, judges whether preset spare interface connects It is connected to the mode of slave control board, to judge automatically the instruction for whether obtaining upgrade-system.To which staff is wanting to carry out When upgrading uninterruptible power system, only the preset spare interface of the no-break power unit need to be made to be connected to spare master control Plate will be automatic when the no-break power unit judges that the preset trigger condition for upgrading uninterruptible power system is triggered Upgraded using slave control board, to realize automated job, and guarantees that the influence that server is subject to is minimum.Wherein, Offline master control borad can be carried out updating operation by the uninterruptible power supply upgraded in offline device.
As described in above-mentioned steps S4, if the preset spare interface is connected to slave control board, by described spare Interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master control borad Version number.If the version number of the slave control board is greater than the version number of current master control borad, the slave control board is indicated Version updating, it should carry out replacement connection to realize the purpose of upgrading uninterruptible power system.Judge the slave control board Whether version number is greater than the version number of current master control borad, for example, successively judges the master of slave control board Yu current master control borad Version number, secondary version number, the size of invulnerable release number and compiled version number obtain four successively judging results, if described four Successively first unequal judging result in judging result is greater than then determining that the version number of the slave control board is greater than The version number of current master control borad.
It, will if the version number of the slave control board is greater than the version number of current master control borad as described in above-mentioned steps S5 The connection of the no-break power unit and the current master control borad is switched to the no-break power unit and the spare master Control the connection of plate.It, then only need to be by spare master control since the version number of the slave control board is greater than the version number of current master control borad Plate replaces current master control borad, and upgrading uninterruptible power system can be completed.Wherein, the no-break power unit is worked as with described It includes: to work as according to preset that the connection of preceding master control borad, which is switched to the no-break power unit and the connection of the slave control board, The corresponding relationship of front port and spare interface, successively by the connection of each current interface be switched to it is each corresponding described The connection of spare interface.
As described in above-mentioned steps S6, monitor the no-break power unit in the given time includes at least voltage data Operation data judge whether the voltage data normal and according to preset normal operation judgment rule.To guarantee spare master Control plate can be applicable in, and prevent operation troubles, therefore also monitor including at least for the no-break power unit in the given time The operation data of voltage data, and according to preset normal operation judgment rule, judge whether the voltage data is normal.If electric It presses data abnormal, then the connection of the no-break power unit and the slave control board should be switched back into described uninterrupted The connection of power-supply device and the current master control borad;If voltage data is normal, show upgrade-system success.
As described in above-mentioned steps S7, if the voltage data is normal, generation can remove mentioning for the current master control borad Awake information, to complete uninterruptible power system upgrading.If the voltage data is normal, current master control borad can be removed, then Upgrade to the version of update using uninterruptible power supply upgraded in offline device.
In one embodiment, described to judge whether the current time and the server current accessed number meet The step S2 of the trigger condition of preset upgrading uninterruptible power system, comprising:
S201, judge whether current time belongs to preset renewable time point;
If S202, current time belong to preset renewable time point, judge that the server current accessed number is It is no to be less than preset number threshold value;
If S203, the server current accessed number be less than preset number threshold value, determine the current time and The server current accessed number meets the trigger condition of preset upgrading uninterruptible power system.
As described above, realizing, to judge whether the current time and the server current accessed number meet preset Upgrade the trigger condition of uninterruptible power system.Preset renewable time point can be arbitrary time point, for example, midnight 24 Point -2:00 AM, server access is fewer in number at this time, is suitable for upgrading.The setting method of preset number threshold value is for example are as follows: logical The server access number data of statistics a period of time are crossed, it, can will most to obtain in a period of time minimum the number of visiting people simultaneously Small while the number of visiting people is plus fluctuation quantity parameter value as preset number threshold value.To avoid in server high load capacity into Row updating operation.
In one embodiment, if the current time and the server current accessed number meet it is preset The trigger condition for upgrading uninterruptible power system, then judge the step of whether preset spare interface is connected to slave control board S3, comprising:
If S301, the current time and the server current accessed number meet preset upgrading uninterruptible power supply system The trigger condition of system then sends connection confirmation signal to the slave control board by the spare interface, and judges whether to connect Receive return signal corresponding with the connection confirmation signal;
If S302, receiving return signal corresponding with the connection confirmation signal, determine that preset spare interface connects It is connected to slave control board.
Judge whether preset spare interface is connected to slave control board as described above, realizing.If the spare interface It is able to carry out signal communication with slave control board, then shows that the spare interface and slave control board not only realize physics company Connect, also complete signal connection, thus the slave control board will be controlled by spare interface after upgrading it is described not between Power off source device.If therefore sending connection confirmation signal to the slave control board by the spare interface, and can receive To return signal corresponding with the connection confirmation signal, then determine that preset spare interface is connected to slave control board, simultaneously It is able to carry out subsequent upgrading operation.Also, because only that slave control board corresponding with current master control borad could respond and institute The corresponding return signal of connection confirmation signal is stated, therefore is worked as described in any other circuit board or equipment physics or signal connection When spare interface, since corresponding return signal can not be provided, it will not determine that preset spare interface is connected to spare master Control plate, namely will not switching main-control board connection, so as to avoid maloperation caused by accident.
In one embodiment, if the preset spare interface is connected to slave control board, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master Control the step S4 of the version number of plate, comprising:
If S401, the preset spare interface are connected to slave control board, by described in spare interface acquisition The write time of the version number of slave control board and the version number of the slave control board;
The write time of the version of S402, the current master control borad of acquisition;
S403, judge whether the write time of the version number of the slave control board is later than the version of the current master control borad Write time;
If the write time of the version number of S404, the slave control board is later than the write-in of the version of the current master control borad Time then determines that the version number of the slave control board is greater than the version number of current master control borad.
As described above, realizing the version number for judging whether the version number of the slave control board is greater than current master control borad. Judge outside the size of version number except through preset version number's size judgment method, due under normal circumstances, new version Write time later, therefore can judge the write time of version number, also may determine that the size of version number.It obtains accordingly spare The write time of the version of the write time of the version number of master control borad and current master control borad, if the version number of the slave control board Write time be later than the current master control borad version write time, then determine that the version number of the slave control board is greater than The version number of current master control borad.
In one embodiment, if the preset spare interface is connected to slave control board, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master After the step S4 for controlling the version number of plate, comprising:
If the version number of S41, the slave control board is not more than the version number of current master control borad, count in the last time Upgrade the abnormality frequency of the no-break power unit after uninterruptible power system;
S42, judge whether the abnormality frequency is greater than preset frequency of abnormity threshold value;
If S43, the abnormality frequency are not more than preset frequency of abnormity threshold value, keep and current master control borad Connection, and generate stop this uninterruptible power system upgrading instruction.
Judge whether judgement replacement master control borad as described above, realizing.If the version number of the slave control board is not more than The version number of current master control borad, i.e. slave control board are not there are two kinds of situations at this time, one is spare for upgrade-system Master control borad selects mistake;It is needed replacing one is current master control borad and (such as due to aging etc., causes or may cause event Barrier).Accordingly, the abnormality hair of the no-break power unit after the last upgrading uninterruptible power system is counted Raw number, judges whether the abnormality frequency is greater than preset frequency of abnormity threshold value, to learn current master control borad Working condition.If the abnormality frequency is not more than preset frequency of abnormity threshold value, show current master control borad work State is normal, can be changed without as slave control board;Conversely, showing that current master control borad working condition is abnormal, it should be changed to standby Use master control borad.Therefore, present embodiment is also compatible with the replacement of abnormal master control borad.
In one embodiment, it is described monitor in the given time the no-break power unit include at least voltage The operation data of data, and according to preset normal operation judgment rule, judge the whether normal step S6 of the voltage data, Include:
S601, the output voltage data for monitoring the no-break power unit in the given time;
S602, judge whether the output voltage data are all satisfied preset output voltage index request;
If S603, the output voltage data are all satisfied preset output voltage index request, determine voltage data just Often.
Judge whether the voltage data is normal as described above, realizing.Wherein, the no-break power unit is to be used for Guarantee the uninterrupted power supply for being powered equipment, therefore output voltage data are one of most important achievement datas, if in pre- timing Interior output voltage data are all satisfied preset output voltage index request, show that slave control board is working properly, i.e. judgement institute It is normal to state voltage data.Further, other than the output voltage data, the voltage data can also be including described in not Voltage data in break power unit in any one circuit.Wherein, preset output voltage index request is, for example, to export Voltage value, output voltage undulating value etc..
In one embodiment, it is described monitor in the given time the no-break power unit include at least voltage The operation data of data, and according to preset normal operation judgment rule, judge the whether normal step S6 of the voltage data Later, comprising:
If S7, the voltage data are abnormal, by the connection of the no-break power unit and the slave control board Switch back into the connection of the no-break power unit Yu the current master control borad;
S8, warning message is generated, wherein the warning message is accompanied with abnormal voltage data.
As described above, realizing generation warning message.When slave control board has it is abnormal when (such as software or hardware go out It is wrong), the voltage data that will lead to the no-break power unit is abnormal, and slave control board can not be competent at uninterruptible power supply and set at this time Standby control task, thus the connection of the no-break power unit and the slave control board should be switched back into it is described not between Power off the connection of source device and the current master control borad.And it is analyzed for the ease of the fault condition to slave control board, Warning message is also generated, wherein the warning message is accompanied with abnormal voltage data, thus according to abnormal voltage number According to the case where can with specific aim to slave control board carry out corresponding failure check operation.
The uninterruptible power system upgrade method of the application is obtained and is currently visited including at least current time and the server Ask the data of number;If meeting upgrading trigger condition, judge whether preset spare interface is connected to slave control board;If institute It states preset spare interface and is connected to slave control board, and the version number of the slave control board is greater than the version of current master control borad Number, then by the connection of the no-break power unit and the current master control borad be switched to the no-break power unit with it is described The connection of slave control board;The operation number including at least voltage data of the no-break power unit is monitored in the given time According to;If the voltage data is normal, the prompting message that can remove the current master control borad is generated, to complete uninterrupted electricity Source system upgrade.The defect that time-consuming when to solve traditional technology upgrade-system and needs to shut down.
Referring to Fig. 2, the embodiment of the present application provides a kind of uninterruptible power system update device, sets applied to uninterruptible power supply Standby, the no-break power unit is used to power to server, and described device includes:
Data capture unit 10, for obtaining the number for including at least current time and the server current accessed number According to;
Trigger condition judging unit 20, for judging whether the current time and the server current accessed number are full The trigger condition of the preset upgrading uninterruptible power system of foot;
Slave control board connection judgment unit 30, if full for the current time and the server current accessed number The trigger condition of the preset upgrading uninterruptible power system of foot, then judge whether preset spare interface is connected to spare master control Plate, wherein the slave control board, which has passed through uninterruptible power supply upgraded in offline device, carries out upgraded in offline;
Version number's judging unit 40, if being connected to slave control board for the preset spare interface, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master Control the version number of plate;
Connection switching unit 50, if being greater than the version number of current master control borad for the version number of the slave control board, By the connection of the no-break power unit and the current master control borad be switched to the no-break power unit with it is described spare The connection of master control borad;
Data monitoring unit 60, for monitor in the given time the no-break power unit include at least voltage number According to operation data judge whether the voltage data normal and according to preset normal operation judgment rule;
Prompting message generation unit 70, if normal for the voltage data, generation can remove the current master control The prompting message of plate, to complete uninterruptible power system upgrading.
No-break power unit, that is, UPS (Uninterruptible Power System/Uninterruptible Power Supply), it in alternating current and is powered between equipment (such as server), for uninterrupted to equipment offer is powered Power supply, and (such as have a power failure) provides protection to equipment is powered in unexpected situation.No-break power unit is by master control borad (circuit board) is controlled, it is sometimes desirable to be upgraded to uninterruptible power system, be that is to say and rise to the version of master control borad Grade.Conventional method carries out upgrading to uninterruptible power system and generally requires closing server and no-break power unit, then to master Control plate is upgraded, and this method has the defect that time-consuming and needs to shut down.The application uses the spare master of preparatory upgraded in offline The mode for controlling plate avoids the defect that time-consuming and needs to shut down.
As described in said units 10, the data for including at least current time and the server current accessed number are obtained. The no-break power unit of the application is used to power to server.And server has access peak period, when accessing peak period It should not carry out system upgrade operation.And whether the time can react with the number of visiting people in access peak period, accordingly, obtain at least Data including current time and the server current accessed number.
As described in said units 20, it is default to judge whether the current time and the server current accessed number meet Upgrading uninterruptible power system trigger condition.It, can be to avoid by the trigger condition of default upgrading uninterruptible power system Upgrading operation is carried out when server load is larger.The access number of general server is periodically, when by one section of statistics Between access data can preset renewable time point accordingly (i.e. it can be learnt that the number of visiting people least time point in a cycle It is expected that the number of visiting people least time point);And the access data of a period of time are counted, to obtain minimum same in a cycle When the number of visiting people, can using minimum the number of visiting people simultaneously plus fluctuation quantity parameter value as preset number threshold value.Therefore, it triggers Condition can be set are as follows: current time is preset renewable time point, and the server current accessed number is less than in advance If number threshold value.
As described in said units 30, if the current time and the server current accessed number meet preset upgrading The trigger condition of uninterruptible power system, then judge whether preset spare interface is connected to slave control board, wherein described standby Pass through uninterruptible power supply upgraded in offline device with master control borad and carries out upgraded in offline.If the current time and the server Current accessed number meets the trigger condition of preset upgrading uninterruptible power system, shows the condition for meeting upgrade-system, if The instruction for obtaining upgrade-system at this time, then can execute updating operation.The application, which uses, judges whether preset spare interface connects It is connected to the mode of slave control board, to judge automatically the instruction for whether obtaining upgrade-system.To which staff is wanting to carry out When upgrading uninterruptible power system, only the preset spare interface of the no-break power unit need to be made to be connected to spare master control Plate will be automatic when the no-break power unit judges that the preset trigger condition for upgrading uninterruptible power system is triggered Upgraded using slave control board, to realize automated job, and guarantees that the influence that server is subject to is minimum.Wherein, Offline master control borad can be carried out updating operation by the uninterruptible power supply upgraded in offline device.
As described in said units 40, if the preset spare interface is connected to slave control board, by described spare Interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master control borad Version number.If the version number of the slave control board is greater than the version number of current master control borad, the slave control board is indicated Version updating, it should carry out replacement connection to realize the purpose of upgrading uninterruptible power system.Judge the slave control board Whether version number is greater than the version number of current master control borad, for example, successively judges the master of slave control board Yu current master control borad Version number, secondary version number, the size of invulnerable release number and compiled version number obtain four successively judging results, if described four Successively first unequal judging result in judging result is greater than then determining that the version number of the slave control board is greater than The version number of current master control borad.
It, will if the version number of the slave control board is greater than the version number of current master control borad as described in said units 50 The connection of the no-break power unit and the current master control borad is switched to the no-break power unit and the spare master Control the connection of plate.It, then only need to be by spare master control since the version number of the slave control board is greater than the version number of current master control borad Plate replaces current master control borad, and upgrading uninterruptible power system can be completed.Wherein, the no-break power unit is worked as with described It includes: to work as according to preset that the connection of preceding master control borad, which is switched to the no-break power unit and the connection of the slave control board, The corresponding relationship of front port and spare interface, successively by the connection of each current interface be switched to it is each corresponding described The connection of spare interface.
As described in said units 60, monitor the no-break power unit in the given time includes at least voltage data Operation data judge whether the voltage data normal and according to preset normal operation judgment rule.To guarantee spare master Control plate can be applicable in, and prevent operation troubles, therefore also monitor including at least for the no-break power unit in the given time The operation data of voltage data, and according to preset normal operation judgment rule, judge whether the voltage data is normal.If electric It presses data abnormal, then the connection of the no-break power unit and the slave control board should be switched back into described uninterrupted The connection of power-supply device and the current master control borad;If voltage data is normal, show upgrade-system success.
As described in said units 70, if the voltage data is normal, generation can remove mentioning for the current master control borad Awake information, to complete uninterruptible power system upgrading.If the voltage data is normal, current master control borad can be removed, then Upgrade to the version of update using uninterruptible power supply upgraded in offline device.
In one embodiment, the trigger condition judging unit 20, comprising:
Renewal time point judgment sub-unit, for judging whether current time belongs to preset renewable time point;
Number threshold decision subelement judges the clothes if belonging to preset renewable time point for current time Whether business device current accessed number is less than preset number threshold value;
Trigger condition determines subelement, if being less than preset number threshold value for the server current accessed number, Determine that the current time and the server current accessed number meet the triggering item of preset upgrading uninterruptible power system Part.
As described above, realizing, to judge whether the current time and the server current accessed number meet preset Upgrade the trigger condition of uninterruptible power system.Preset renewable time point can be arbitrary time point, for example, midnight 24 Point -2:00 AM, server access is fewer in number at this time, is suitable for upgrading.The setting method of preset number threshold value is for example are as follows: logical The server access number data of statistics a period of time are crossed, it, can will most to obtain in a period of time minimum the number of visiting people simultaneously Small while the number of visiting people is plus fluctuation quantity parameter value as preset number threshold value.To avoid in server high load capacity into Row updating operation.
In one embodiment, the slave control board connection judgment unit 30, comprising:
Return signal judgment sub-unit, if meeting for the current time and the server current accessed number default Upgrading uninterruptible power system trigger condition, then by the spare interface to the slave control board send connection confirm Signal, and judge whether to receive return signal corresponding with the connection confirmation signal;
Master control borad connection determines subelement, if for receiving return signal corresponding with the connection confirmation signal, Determine that preset spare interface is connected to slave control board.
Judge whether preset spare interface is connected to slave control board as described above, realizing.If the spare interface It is able to carry out signal communication with slave control board, then shows that the spare interface and slave control board not only realize physics company Connect, also complete signal connection, thus the slave control board will be controlled by spare interface after upgrading it is described not between Power off source device.If therefore sending connection confirmation signal to the slave control board by the spare interface, and can receive To return signal corresponding with the connection confirmation signal, then determine that preset spare interface is connected to slave control board, simultaneously It is able to carry out subsequent upgrading operation.Also, because only that slave control board corresponding with current master control borad could respond and institute The corresponding return signal of connection confirmation signal is stated, therefore is worked as described in any other circuit board or equipment physics or signal connection When spare interface, since corresponding return signal can not be provided, it will not determine that preset spare interface is connected to spare master Control plate, namely will not switching main-control board connection, so as to avoid maloperation caused by accident.
In one embodiment, version number's judging unit 40, comprising:
The slave control board write time obtains subelement, if being connected to spare master control for the preset spare interface Plate then obtains writing for the version number of the slave control board and the version number of the slave control board by the spare interface The angle of incidence;
The current master control borad write time obtains subelement, the write time of the version for obtaining current master control borad;
Write time judgment sub-unit, for judging whether the write time of version number of the slave control board is later than institute State the write time of the version of current master control borad;
Version number determines subelement, if the write time of the version number for the slave control board is later than the current master The write time for controlling the version of plate then determines that the version number of the slave control board is greater than the version number of current master control borad.
As described above, realizing the version number for judging whether the version number of the slave control board is greater than current master control borad. Judge outside the size of version number except through preset version number's size judgment method, due under normal circumstances, new version Write time later, therefore can judge the write time of version number, also may determine that the size of version number.It obtains accordingly spare The write time of the version of the write time of the version number of master control borad and current master control borad, if the version number of the slave control board Write time be later than the current master control borad version write time, then determine that the version number of the slave control board is greater than The version number of current master control borad.
In one embodiment, described device, comprising:
Frequency of abnormity statistic unit, if being not more than the version of current master control borad for the version number of the slave control board Number, then count the abnormality generation time of the no-break power unit after the last upgrading uninterruptible power system Number;
Frequency of abnormity threshold decision unit, for judging it is secondary whether the abnormality frequency is greater than preset exception Number threshold value;
Halt instruction generation unit, if being not more than preset frequency of abnormity threshold value for the abnormality frequency, The connection with current master control borad is then kept, and generates the instruction for stopping the upgrading of this uninterruptible power system.
Judge whether judgement replacement master control borad as described above, realizing.If the version number of the slave control board is not more than The version number of current master control borad, i.e. slave control board are not there are two kinds of situations at this time, one is spare for upgrade-system Master control borad selects mistake;It is needed replacing one is current master control borad and (such as due to aging etc., causes or may cause event Barrier).Accordingly, the abnormality hair of the no-break power unit after the last upgrading uninterruptible power system is counted Raw number, judges whether the abnormality frequency is greater than preset frequency of abnormity threshold value, to learn current master control borad Working condition.If the abnormality frequency is not more than preset frequency of abnormity threshold value, show current master control borad work State is normal, can be changed without as slave control board;Conversely, showing that current master control borad working condition is abnormal, it should be changed to standby Use master control borad.Therefore, present embodiment is also compatible with the replacement of abnormal master control borad.
In one embodiment, the data monitoring unit 60, comprising:
Output voltage data monitoring subelement, for monitoring the output electricity of the no-break power unit in the given time Press data;
Voltage indexes require judgment sub-unit, for judging whether the output voltage data are all satisfied preset output electricity Press index request;
Voltage data normally determines subelement, if being all satisfied preset output voltage index for the output voltage data It is required that then determining that voltage data is normal.
Judge whether the voltage data is normal as described above, realizing.Wherein, the no-break power unit is to be used for Guarantee the uninterrupted power supply for being powered equipment, therefore output voltage data are one of most important achievement datas, if in pre- timing Interior output voltage data are all satisfied preset output voltage index request, show that slave control board is working properly, i.e. judgement institute It is normal to state voltage data.Further, other than the output voltage data, the voltage data can also be including described in not Voltage data in break power unit in any one circuit.Wherein, preset output voltage index request is, for example, to export Voltage value, output voltage undulating value etc..
In one embodiment, described device, comprising:
Switch unit again, if for the voltage data it is abnormal, by the no-break power unit with it is described standby The connection of the no-break power unit Yu the current master control borad is switched back into the connection of master control borad;
Warning message generation unit, for generating warning message, wherein the warning message is accompanied with abnormal voltage Data.
As described above, realizing generation warning message.When slave control board has it is abnormal when (such as software or hardware go out It is wrong), the voltage data that will lead to the no-break power unit is abnormal, and slave control board can not be competent at uninterruptible power supply and set at this time Standby control task, thus the connection of the no-break power unit and the slave control board should be switched back into it is described not between Power off the connection of source device and the current master control borad.And it is analyzed for the ease of the fault condition to slave control board, Warning message is also generated, wherein the warning message is accompanied with abnormal voltage data, thus according to abnormal voltage number According to the case where can with specific aim to slave control board carry out corresponding failure check operation.
The uninterruptible power system update device of the application is obtained and is currently visited including at least current time and the server Ask the data of number;If meeting upgrading trigger condition, judge whether preset spare interface is connected to slave control board;If institute It states preset spare interface and is connected to slave control board, and the version number of the slave control board is greater than the version of current master control borad Number, then by the connection of the no-break power unit and the current master control borad be switched to the no-break power unit with it is described The connection of slave control board;The operation number including at least voltage data of the no-break power unit is monitored in the given time According to;If the voltage data is normal, the prompting message that can remove the current master control borad is generated, to complete uninterrupted electricity Source system upgrade.The defect that time-consuming when to solve traditional technology upgrade-system and needs to shut down.
Referring to Fig. 3, a kind of computer equipment is also provided in the embodiment of the present invention, which can be server, Its internal structure can be as shown in the figure.The computer equipment includes that the processor, memory, network connected by system bus connects Mouth and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The storage of the computer equipment Device includes non-volatile memory medium, built-in storage.The non-volatile memory medium be stored with operating system, computer program and Database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter The database of machine equipment is calculated for storing data used in uninterruptible power system upgrade method.The network interface of the computer equipment For being communicated with external terminal by network connection.To realize a kind of uninterrupted electricity when the computer program is executed by processor Source method for upgrading system.
Above-mentioned processor executes above-mentioned uninterruptible power system upgrade method, is applied to no-break power unit, it is described not Break power unit is used to power to server, which comprises obtains and works as including at least current time and the server The data of preceding the number of visiting people;Judge whether the current time and the server current accessed number meet preset upgrading not The trigger condition of uninterruptible power system;If the current time and the server current accessed number meet preset upgrading not The trigger condition of uninterruptible power system, then judge whether preset spare interface is connected to slave control board, wherein described spare Master control borad has passed through uninterruptible power supply upgraded in offline device and has carried out upgraded in offline;If the preset spare interface is connected to standby With master control borad, then the version number of the slave control board is obtained by the spare interface, and judge the slave control board Whether version number is greater than the version number of current master control borad;If the version number of the slave control board is greater than the version of current master control borad Number, then by the connection of the no-break power unit and the current master control borad be switched to the no-break power unit with it is described The connection of slave control board;The operation number including at least voltage data of the no-break power unit is monitored in the given time According to, and according to preset normal operation judgment rule, judge whether the voltage data is normal;If the voltage data is normal, The prompting message that can remove the current master control borad is then generated, to complete uninterruptible power system upgrading.
In one embodiment, described to judge whether the current time and the server current accessed number meet It is preset upgrading uninterruptible power system trigger condition the step of, comprising: judge current time whether belong to it is preset can be more New time point;If current time belongs to preset renewable time point, judge whether the server current accessed number is small In preset number threshold value;If the server current accessed number is less than preset number threshold value, when determining described current Between and the server current accessed number meet it is preset upgrading uninterruptible power system trigger condition.
In one embodiment, if the current time and the server current accessed number meet it is preset The trigger condition for upgrading uninterruptible power system, then judge the step of whether preset spare interface is connected to slave control board, If including: the triggering that the current time and the server current accessed number meet preset upgrading uninterruptible power system Condition then sends connection confirmation signal to the slave control board by the spare interface, and judges whether to receive and institute State the corresponding return signal of connection confirmation signal;If receiving return signal corresponding with the connection confirmation signal, determine Preset spare interface is connected to slave control board.
In one embodiment, if the preset spare interface is connected to slave control board, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master The step of controlling the version number of plate, comprising: if the preset spare interface is connected to slave control board, spare connect by described Mouth obtains the write time of the version number of the slave control board and the version number of the slave control board;Obtain current master control The write time of the version of plate;Judge whether the write time of the version number of the slave control board is later than the current master control borad Version write time;If the write time of the version number of the slave control board is later than the version of the current master control borad Write time then determines that the version number of the slave control board is greater than the version number of current master control borad.
In one embodiment, if the preset spare interface is connected to slave control board, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master After the step of controlling the version number of plate, comprising: if the version number of the slave control board is not more than the version number of current master control borad, Then count the abnormality frequency of the no-break power unit after the last upgrading uninterruptible power system; Judge whether the abnormality frequency is greater than preset frequency of abnormity threshold value;If the abnormality frequency is little In preset frequency of abnormity threshold value, then the connection with current master control borad is kept, and generate and stop this uninterruptible power system liter The instruction of grade.
In one embodiment, it is described monitor in the given time the no-break power unit include at least voltage The operation data of data, and according to preset normal operation judgment rule, judge the whether normal step of the voltage data, wraps It includes: monitoring the output voltage data of the no-break power unit in the given time;Whether judge the output voltage data It is all satisfied preset output voltage index request;If the output voltage data are all satisfied preset output voltage index request, Then determine that voltage data is normal.
In one embodiment, it is described monitor in the given time the no-break power unit include at least voltage The operation data of data, and according to preset normal operation judgment rule, judge the whether normal step of the voltage data it Afterwards, comprising: if the voltage data is abnormal, the connection of the no-break power unit and the slave control board is switched Return the connection of the no-break power unit and the current master control borad;Warning message is generated, wherein the warning message is subsidiary There is abnormal voltage data.
It will be understood by those skilled in the art that structure shown in figure, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
The computer equipment of the application obtains the number for including at least current time and the server current accessed number According to;If meeting upgrading trigger condition, judge whether preset spare interface is connected to slave control board;If described preset standby It is connected to slave control board with interface, and the version number of the slave control board is greater than the version number of current master control borad, then by institute The connection for stating no-break power unit and the current master control borad is switched to the no-break power unit and the spare master control The connection of plate;The operation data including at least voltage data of the no-break power unit is monitored in the given time;If institute It states that voltage data is normal, then the prompting message that can remove the current master control borad is generated, to complete uninterruptible power system Upgrading.The defect that time-consuming when to solve traditional technology upgrade-system and needs to shut down.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates When machine program is executed by processor realize uninterruptible power system upgrade method, be applied to no-break power unit, it is described not between It powers off source device to be used to power to server, which comprises obtain current including at least current time and the server The data of the number of visiting people;Between judging whether the current time and the server current accessed number meet preset upgrading not The trigger condition of disconnected power-supply system;If the current time and the server current accessed number meet between preset upgrading not The trigger condition of disconnected power-supply system, then judge whether preset spare interface is connected to slave control board, wherein the spare master Control plate has passed through uninterruptible power supply upgraded in offline device and has carried out upgraded in offline;If the preset spare interface is connected to spare Master control borad, then obtain the version number of the slave control board by the spare interface, and judges the version of the slave control board This number version number for whether being greater than current master control borad;If the version number of the slave control board is greater than the version of current master control borad Number, then by the connection of the no-break power unit and the current master control borad be switched to the no-break power unit with it is described The connection of slave control board;The operation number including at least voltage data of the no-break power unit is monitored in the given time According to, and according to preset normal operation judgment rule, judge whether the voltage data is normal;If the voltage data is normal, The prompting message that can remove the current master control borad is then generated, to complete uninterruptible power system upgrading.
In one embodiment, described to judge whether the current time and the server current accessed number meet It is preset upgrading uninterruptible power system trigger condition the step of, comprising: judge current time whether belong to it is preset can be more New time point;If current time belongs to preset renewable time point, judge whether the server current accessed number is small In preset number threshold value;If the server current accessed number is less than preset number threshold value, when determining described current Between and the server current accessed number meet it is preset upgrading uninterruptible power system trigger condition.
In one embodiment, if the current time and the server current accessed number meet it is preset The trigger condition for upgrading uninterruptible power system, then judge the step of whether preset spare interface is connected to slave control board, If including: the triggering that the current time and the server current accessed number meet preset upgrading uninterruptible power system Condition then sends connection confirmation signal to the slave control board by the spare interface, and judges whether to receive and institute State the corresponding return signal of connection confirmation signal;If receiving return signal corresponding with the connection confirmation signal, determine Preset spare interface is connected to slave control board.
In one embodiment, if the preset spare interface is connected to slave control board, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master The step of controlling the version number of plate, comprising: if the preset spare interface is connected to slave control board, spare connect by described Mouth obtains the write time of the version number of the slave control board and the version number of the slave control board;Obtain current master control The write time of the version of plate;Judge whether the write time of the version number of the slave control board is later than the current master control borad Version write time;If the write time of the version number of the slave control board is later than the version of the current master control borad Write time then determines that the version number of the slave control board is greater than the version number of current master control borad.
In one embodiment, if the preset spare interface is connected to slave control board, by described Spare interface obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master After the step of controlling the version number of plate, comprising: if the version number of the slave control board is not more than the version number of current master control borad, Then count the abnormality frequency of the no-break power unit after the last upgrading uninterruptible power system; Judge whether the abnormality frequency is greater than preset frequency of abnormity threshold value;If the abnormality frequency is little In preset frequency of abnormity threshold value, then the connection with current master control borad is kept, and generate and stop this uninterruptible power system liter The instruction of grade.
In one embodiment, it is described monitor in the given time the no-break power unit include at least voltage The operation data of data, and according to preset normal operation judgment rule, judge the whether normal step of the voltage data, wraps It includes: monitoring the output voltage data of the no-break power unit in the given time;Whether judge the output voltage data It is all satisfied preset output voltage index request;If the output voltage data are all satisfied preset output voltage index request, Then determine that voltage data is normal.
In one embodiment, it is described monitor in the given time the no-break power unit include at least voltage The operation data of data, and according to preset normal operation judgment rule, judge the whether normal step of the voltage data it Afterwards, comprising: if the voltage data is abnormal, the connection of the no-break power unit and the slave control board is switched Return the connection of the no-break power unit and the current master control borad;Warning message is generated, wherein the warning message is subsidiary There is abnormal voltage data.
The computer readable storage medium of the application obtains and includes at least current time and the server current accessed people Several data;If meeting upgrading trigger condition, judge whether preset spare interface is connected to slave control board;If described pre- If spare interface be connected to slave control board, and the version number of the slave control board is greater than the version number of current master control borad, Then by the connection of the no-break power unit and the current master control borad be switched to the no-break power unit with it is described standby With the connection of master control borad;The operation number including at least voltage data of the no-break power unit is monitored in the given time According to;If the voltage data is normal, the prompting message that can remove the current master control borad is generated, to complete uninterrupted electricity Source system upgrade.The defect that time-consuming when to solve traditional technology upgrade-system and needs to shut down.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, Any reference used in provided herein and embodiment to memory, storage, database or other media, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations Technical field, similarly include in the scope of patent protection of the application.

Claims (10)

1. a kind of uninterruptible power system upgrade method is applied to no-break power unit, which is characterized in that the uninterrupted electricity Source device is used to power to server, which comprises
Obtain the data for including at least current time and the server current accessed number;
Judge whether the current time and the server current accessed number meet preset upgrading uninterruptible power system Trigger condition;
If the current time and the server current accessed number meet the triggering of preset upgrading uninterruptible power system Condition, then judge whether preset spare interface is connected to slave control board, wherein between the slave control board has passed through not Power-off source upgraded in offline device carries out upgraded in offline;
If the preset spare interface is connected to slave control board, the slave control board is obtained by the spare interface Version number, and judge whether the version number of the slave control board is greater than the version number of current master control borad;
If the version number of the slave control board is greater than the version number of current master control borad, by the no-break power unit and institute The connection for stating current master control borad is switched to the connection of the no-break power unit Yu the slave control board;
The operation data including at least voltage data of the no-break power unit is monitored in the given time, and according to default Normal operation judgment rule, judge whether the voltage data normal;
If the voltage data is normal, the prompting message that can remove the current master control borad is generated, to complete uninterrupted Power-supply system upgrading.
2. uninterruptible power system upgrade method according to claim 1, which is characterized in that it is described judgement it is described current when Between and the server current accessed number whether meet it is preset upgrading uninterruptible power system trigger condition the step of, packet It includes:
Judge whether current time belongs to preset renewable time point;
If current time belongs to preset renewable time point, it is default to judge whether the server current accessed number is less than Number threshold value;
If the server current accessed number is less than preset number threshold value, the current time and the server are determined Current accessed number meets the trigger condition of preset upgrading uninterruptible power system.
3. uninterruptible power system upgrade method according to claim 1, which is characterized in that if the current time The trigger condition for meeting preset upgrading uninterruptible power system with the server current accessed number, then judge preset standby The step of whether being connected to slave control board with interface, comprising:
If the current time and the server current accessed number meet the triggering of preset upgrading uninterruptible power system Condition then sends connection confirmation signal to the slave control board by the spare interface, and judges whether to receive and institute State the corresponding return signal of connection confirmation signal;
If receiving return signal corresponding with the connection confirmation signal, determine that preset spare interface is connected to spare master Control plate.
4. uninterruptible power system upgrade method according to claim 1, which is characterized in that if described preset standby It is connected to slave control board with interface, then obtains the version number of the slave control board by the spare interface, and judges institute The step of whether version number of slave control board is greater than the version number of current master control borad stated, comprising:
If the preset spare interface is connected to slave control board, the slave control board is obtained by the spare interface Version number and the slave control board version number write time;
Obtain the write time of the version of current master control borad;
When judging whether the write time of the version number of the slave control board is later than the write-in of the version of the current master control borad Between;
If the write time of the version number of the slave control board is later than the write time of the version of the current master control borad, sentence The version number of the fixed slave control board is greater than the version number of current master control borad.
5. uninterruptible power system upgrade method according to claim 1, which is characterized in that if described preset standby It is connected to slave control board with interface, then obtains the version number of the slave control board by the spare interface, and judges institute After stating the step of whether the version number of slave control board is greater than the version number of current master control borad, comprising:
If the version number of the slave control board is not more than the version number of current master control borad, statistics is between the last time upgrading not The abnormality frequency of the no-break power unit after disconnected power-supply system;
Judge whether the abnormality frequency is greater than preset frequency of abnormity threshold value;
If the abnormality frequency is not more than preset frequency of abnormity threshold value, the connection with current master control borad is kept, And generate the instruction for stopping the upgrading of this uninterruptible power system.
6. uninterruptible power system upgrade method according to claim 1, which is characterized in that described to supervise in the given time The operation data including at least voltage data of the no-break power unit is surveyed, and judges to advise according to preset normal operation Then, judge the whether normal step of the voltage data, comprising:
The output voltage data of the no-break power unit are monitored in the given time;
Judge whether the output voltage data are all satisfied preset output voltage index request;
If the output voltage data are all satisfied preset output voltage index request, determine that voltage data is normal.
7. uninterruptible power system upgrade method according to claim 1, which is characterized in that described to supervise in the given time The operation data including at least voltage data of the no-break power unit is surveyed, and judges to advise according to preset normal operation Then, after judging the whether normal step of the voltage data, comprising:
If the voltage data is abnormal, the connection of the no-break power unit and the slave control board is switched back into institute State the connection of no-break power unit Yu the current master control borad;
Warning message is generated, wherein the warning message is accompanied with abnormal voltage data.
8. a kind of uninterruptible power system update device is applied to no-break power unit, which is characterized in that the uninterrupted electricity Source device is used to power to server, and described device includes:
Data capture unit, for obtaining the data for including at least current time and the server current accessed number;
Trigger condition judging unit, for judging it is default whether the current time and the server current accessed number meet Upgrading uninterruptible power system trigger condition;
Slave control board connection judgment unit, if meeting for the current time and the server current accessed number default Upgrading uninterruptible power system trigger condition, then judge whether preset spare interface is connected to slave control board, wherein The slave control board has passed through uninterruptible power supply upgraded in offline device and has carried out upgraded in offline;
Version number's judging unit spare is connect if being connected to slave control board for the preset spare interface by described Mouth obtains the version number of the slave control board, and judges whether the version number of the slave control board is greater than current master control borad Version number;
Connection switching unit will be described if being greater than the version number of current master control borad for the version number of the slave control board The connection of no-break power unit and the current master control borad is switched to the no-break power unit and the slave control board Connection;
Data monitoring unit, for monitoring the fortune including at least voltage data of the no-break power unit in the given time Row data, and according to preset normal operation judgment rule, judge whether the voltage data is normal;
Prompting message generation unit, if normal for the voltage data, generation can remove mentioning for the current master control borad Awake information, to complete uninterruptible power system upgrading.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910305838.4A 2019-04-16 2019-04-16 Uninterruptible power supply system upgrading method, device, computer equipment and storage medium Active CN110162320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910305838.4A CN110162320B (en) 2019-04-16 2019-04-16 Uninterruptible power supply system upgrading method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305838.4A CN110162320B (en) 2019-04-16 2019-04-16 Uninterruptible power supply system upgrading method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110162320A true CN110162320A (en) 2019-08-23
CN110162320B CN110162320B (en) 2023-08-22

Family

ID=67639527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910305838.4A Active CN110162320B (en) 2019-04-16 2019-04-16 Uninterruptible power supply system upgrading method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110162320B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416387A (en) * 2020-11-05 2021-02-26 东莞欧陆通电子有限公司 Power supply system and power supply system upgrading method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592879A (en) * 2001-09-28 2005-03-09 英特尔公司 Power management system for a network computer system
CN104487976A (en) * 2012-05-24 2015-04-01 德卡产品有限公司 Method and system for communication between a monitoring client and a base
CN107589955A (en) * 2017-09-19 2018-01-16 郑州云海信息技术有限公司 A kind of upgrade method and system of double CMC firmware versions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592879A (en) * 2001-09-28 2005-03-09 英特尔公司 Power management system for a network computer system
CN104487976A (en) * 2012-05-24 2015-04-01 德卡产品有限公司 Method and system for communication between a monitoring client and a base
CN107589955A (en) * 2017-09-19 2018-01-16 郑州云海信息技术有限公司 A kind of upgrade method and system of double CMC firmware versions

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416387A (en) * 2020-11-05 2021-02-26 东莞欧陆通电子有限公司 Power supply system and power supply system upgrading method

Also Published As

Publication number Publication date
CN110162320B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN103425122B (en) The failure management method of new energy vehicle controller
JP5289616B2 (en) Circuit and method for an uninterruptible power supply in the form of an electronic module
US20110208324A1 (en) Sysyem, method, and apparatus for maintenance of sensor and control systems
CN101782746B (en) Monitoring device and monitoring method
US20100244571A1 (en) System and method for changing power states of a power device
CN102362259B (en) System and method for altering a user interface of a power device
KR20070010039A (en) Power supply device
CN103425645A (en) Monitoring system and monitoring method for single point of failure of database cluster
CN109144789A (en) A kind of method, apparatus and system for restarting OSD
CN110162320A (en) Uninterruptible power system upgrade method, device, computer equipment and storage medium
CN109614153A (en) Multi core chip and system
US9430013B2 (en) Electrical installation having an uninterruptible power supply
KR20120036490A (en) Battery energy storage system and method for controlling that system
CN111176878A (en) Server BBU (building base band Unit) standby power diagnosis method, system, terminal and storage medium
CN113176973B (en) PSU power supply black box log time stamp recording method, device, equipment and medium
Pandey et al. Reliability and functionality of repairable systems using a minimal set of metrics: Design and maintenance of a smart charging microgrid
CN111623554B (en) Abnormal power failure detection method and device for heat pump unit and heat pump unit
CN111491030A (en) Intelligent cabinet and operation monitoring system thereof
CN110674015A (en) Mainboard LED optical compensation method, device, equipment and storage medium
CN115333044B (en) Instant standby method and system based on intelligent substation chip protection device
Dong et al. The loom monitoring system design with high reliability and easy maintainability
JP2006003929A (en) Process controller and diagnosis method of control data of the same
CN219392624U (en) Power supply control circuit and computer
KR102302434B1 (en) HMI for enhancing operational reliability and safety of data storage, and power management system therewith
CN110719236A (en) Single board, back board type exchanger and method for connecting power supply

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant