CN116260235B - Power supply switching method and device, electronic equipment and readable storage medium - Google Patents

Power supply switching method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116260235B
CN116260235B CN202310230690.9A CN202310230690A CN116260235B CN 116260235 B CN116260235 B CN 116260235B CN 202310230690 A CN202310230690 A CN 202310230690A CN 116260235 B CN116260235 B CN 116260235B
Authority
CN
China
Prior art keywords
power supply
time
historical
power
equipment
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.)
Active
Application number
CN202310230690.9A
Other languages
Chinese (zh)
Other versions
CN116260235A (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.)
All's Controllability Technology Beijing Co ltd
Original Assignee
All's Controllability Technology Beijing 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 All's Controllability Technology Beijing Co ltd filed Critical All's Controllability Technology Beijing Co ltd
Priority to CN202310230690.9A priority Critical patent/CN116260235B/en
Publication of CN116260235A publication Critical patent/CN116260235A/en
Application granted granted Critical
Publication of CN116260235B publication Critical patent/CN116260235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • H02J9/068Electronic means for switching from one power supply to another power supply, e.g. to avoid parallel connection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16533Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
    • G01R19/16538Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies
    • 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
    • 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

Abstract

The application relates to a power supply switching method, a device, electronic equipment and a readable storage medium, and relates to the technical field of power supply switching. The method comprises the following steps: acquiring a first relation curve of main operation data and time corresponding to a first power supply, determining the historical switching times, the historical operation time and the historical stop operation time of the power supply based on the first relation curve, estimating the failure time of the first power supply based on the historical switching times and the historical operation time of the power supply to obtain a first failure time corresponding to the first power supply, determining the detection time for detecting whether the second power supply fails or not based on the first failure time and the historical stop operation time, outputting a first switching instruction based on the detection time, acquiring the backup operation voltage of the second power supply, and outputting alarm information and the second switching instruction to control the power supply to the operation equipment when the backup voltage is smaller than a preset backup operation voltage threshold value, so that the condition of reducing the operation efficiency of the operation equipment when the power supply is switched is reduced.

Description

Power supply switching method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of power switching technologies, and in particular, to a method and apparatus for power switching, an electronic device, and a readable storage medium.
Background
In order to ensure that the operation equipment continues to operate when the power supply which is supplying power fails, a dual power supply input is generally arranged, the dual power supply comprises a first power supply and a second power supply, the first power supply is generally used for supplying power to the operation equipment, when the first power supply fails, the operation equipment is immediately switched to the second power supply, and the second power supply continues to supply power to the operation equipment.
If the first power source is switched to the second power source and when the second power source also fails at this time, the operation device is caused to stop operating without power supply, and thus the operation efficiency of the operation device may be lowered.
Disclosure of Invention
In order to reduce the reduction of the operation efficiency of the operation device when the power supply is switched, the application provides a method, a device, an electronic device and a readable storage medium for switching the power supply.
The above object of the present application is achieved by the following technical solutions:
in a first aspect, a method for switching power is provided, the method comprising:
acquiring a first relation curve, wherein the first relation curve is used for representing the relation between main operation data corresponding to a first power supply and time, the first power supply is a power supply currently used by operation equipment, and the main operation data comprises: a main operating power, the main operating power being used to characterize the output power of the first power supply;
Determining power supply historical switching times, historical operation time and historical stopping time based on the first relation curve, wherein the power supply historical switching times are used for representing times of switching a first power supply to a second power supply, the historical operation time is used for representing total operation time of the first power supply, and the historical stopping time is used for representing stopping time of the first power supply;
estimating the time of occurrence of the fault of the first power supply based on the historical switching times of the power supply and the historical operation time, so as to obtain a first fault moment corresponding to the first power supply, wherein the first fault moment is the moment when the first power supply is about to be in fault;
determining a detection time based on the first fault time and the historical stop working time, wherein the detection time is a time for detecting whether a second power supply fails or not, and the detection time is earlier than the first fault time by a preset interval time period;
outputting a first switching instruction based on the detection moment, and acquiring a backup operation voltage corresponding to the second power supply, wherein the first switching instruction is used for controlling the second power supply to supply power to the operation equipment, and the backup operation voltage is used for representing the output voltage of the second power supply when the second power supply operates after the first switching instruction is output;
And if the backup operation voltage is smaller than a preset backup operation voltage threshold value, outputting alarm information and a second switching instruction, wherein the second switching instruction is used for controlling the first power supply to supply power to the operation equipment.
By adopting the technical scheme, the first relation curve of the main operation data and time corresponding to the first power supply is obtained, the power supply historical switching times, the historical operation time and the historical operation stopping time of the first power supply to the second power supply are determined based on the first relation curve, the first power supply failure time is estimated based on the power supply historical switching times and the operation time, the first failure time corresponding to the first power supply is obtained, based on the first failure time and the historical operation stopping time, whether the second power supply fails or not is detected before the first failure time, the first switching instruction is output based on the first failure time, so that the second power supply supplies power to the operation equipment, the backup operation voltage corresponding to the second power supply is obtained, when the backup operation voltage is smaller than a preset backup operation voltage threshold value, the second power supply fails, alarm information and the second switching instruction are output, so that the first power supply supplies power to the operation equipment, before the first power supply fails, whether the second power supply fails is judged, if the second power supply fails, the alarm information is output, so that a worker maintains the second power supply, the operation equipment is prevented from maintaining the second power supply, and the operation efficiency of the second power supply fails when the second power supply fails, and the operation efficiency of the operation equipment is reduced when the second power supply fails, and the operation is stopped when the operation equipment fails.
In one possible implementation manner, when the first power supply is used by at least two running devices, the estimating, based on the historical switching times of the power supply and the historical running time, the failure time of the first power supply to obtain a first failure time corresponding to the first power supply includes:
acquiring the current moment and the rated power of equipment corresponding to each operation equipment respectively;
determining a power reduction coefficient of the first power supply based on the historical switching times of the power supply and the historical operation time, wherein the power reduction coefficient is used for representing a coefficient of load capacity reduction of the first power supply;
and determining a first fault time corresponding to the first power supply based on the current time, the power reduction coefficient, the main operation power and the rated power of equipment corresponding to each operation equipment.
In another possible implementation manner, the determining the power reduction coefficient of the first power supply based on the historical switching times of the power supply and the historical operation duration includes:
acquiring a second relation curve, wherein the second relation curve is used for representing the relation between the temperature corresponding to the first power supply and time;
determining a temperature influence coefficient based on the second relationship;
And determining a power reduction coefficient of the first power supply based on the temperature influence coefficient, the historical switching times of the power supply and the historical operation duration.
In another possible implementation manner, the determining a temperature influence coefficient based on the second relation includes:
determining at least one abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature based on the second relation curve;
determining an abnormal temperature coefficient based on the abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature respectively;
determining a natural descent coefficient based on the second relationship curve;
a temperature influence coefficient is determined based on the natural fall coefficient and the abnormal temperature coefficient.
In another possible implementation manner, the estimating the time of occurrence of the fault of the first power supply based on the historical switching times of the power supply and the historical operation duration to obtain a first fault time corresponding to the first power supply further includes:
if the first power supply does not have a fault at the first fault moment, acquiring specification information of the first power supply, a third relation curve, a fourth relation curve and equipment specification information corresponding to each operation equipment, wherein the third relation curve is used for representing the relation between main operation data and time corresponding to the first power supply in a time period corresponding to the first fault moment, and the fourth relation curve is used for representing the relation between temperature and time corresponding to the first power supply in the time period corresponding to the first fault moment;
Establishing a first power supply model based on the specification information of the first power supply under a simulation environment, and establishing each equipment model based on the equipment specification information corresponding to each operation equipment respectively;
determining the rated power of each operation device, the third relation curve and the fourth relation curve of the first power supply, which correspond to the operation devices, as test parameters of the first power supply model;
acquiring a progress ratio between a time progress in a simulation environment and a time progress in a real environment, wherein the progress ratio is greater than 1;
and simulating the first power supply model based on the test parameters, the first fault moment and the progress ratio to obtain a second fault moment corresponding to the first power supply.
In another possible implementation manner, the main operation data further includes: a main operating voltage, the main operating voltage comprising: current main operating voltage;
the acquiring a first relation curve further comprises:
outputting the first switching instruction if the current main operation voltage is smaller than a second operation data threshold value;
acquiring interval operation voltage of a first power supply, wherein the interval operation voltage is used for representing output voltage of the first power supply after outputting the first switching instruction;
Outputting the second switching instruction if the interval running voltage is greater than or equal to the second running data threshold, wherein the second switching instruction is used for controlling a first power supply to supply power to running equipment;
acquiring a detection operation voltage of the first power supply, wherein the detection operation voltage is used for representing the output voltage of the first power supply after outputting the second switching instruction;
outputting the first switching instruction and the early warning information if the detected operating voltage is smaller than the second operating data threshold value;
the determining, based on the first relation curve, the historical switching times, the historical operation duration and the historical stop time of the power supply includes:
and if the current main operation voltage is not smaller than a second operation data threshold value, determining the historical switching times, the historical operation time and the historical stop working time of the power supply based on the first relation curve.
In another possible implementation manner, the obtaining the rated power of the device corresponding to each running device further includes:
if the backup operation voltage is larger than the preset backup operation voltage threshold value, obtaining second operation power corresponding to a second power supply;
if the second operation power is smaller than a preset power threshold value, acquiring an operation relation among the operation devices;
Determining matched operation equipment from the operation equipment based on the preset importance levels and the operation relations which are respectively corresponding to the operation equipment;
and determining sustainable operation equipment from the matched operation equipment based on the second operation power, the equipment rated power corresponding to each matched operation equipment and the operation relation.
In a second aspect, there is provided an apparatus for switching power, the apparatus comprising:
the first obtaining module is configured to obtain a first relation curve, where the first relation curve is used to characterize a relation between main operation data corresponding to a first power supply and time, the first power supply is a power supply currently used by an operation device, and the main operation data includes: a main operating power, the main operating power being used to characterize the output power of the first power supply;
the first determining module is used for determining power supply historical switching times, historical operation duration and historical stop working time based on the first relation curve, wherein the power supply historical switching times are used for representing times of switching a first power supply to a second power supply, the historical operation duration is used for representing total working duration of the first power supply, and the historical stop working time is used for representing time of stopping working of the first power supply;
The estimating module is used for estimating the time when the first power supply fails based on the historical switching times and the historical operation time of the power supply to obtain a first failure time corresponding to the first power supply, wherein the first failure time is the time when the first power supply is about to fail;
the second determining module is used for determining a detection time based on the first fault time and the historical stop working time, wherein the detection time is a time for detecting whether a second power supply fails or not, and the detection time is earlier than the first fault time by a preset interval time period;
the second acquisition module is used for outputting a first switching instruction based on the detection moment and acquiring a backup operation voltage corresponding to the second power supply, wherein the first switching instruction is used for controlling the second power supply to supply power to the operation equipment, and the backup operation voltage is used for representing the output voltage of the second power supply when the second power supply operates after the first switching instruction is output;
the first output module is used for outputting alarm information and a second switching instruction when the backup operation voltage is smaller than a preset backup operation voltage threshold value, and the second switching instruction is used for controlling the first power supply to supply power to the operation equipment.
In one possible implementation manner, when the first power supply is used by at least two running devices, the estimating module estimates, based on the historical switching times of the power supply and the historical running time, a failure time of the first power supply, so as to obtain a first failure time corresponding to the first power supply, where the estimating module is specifically configured to:
Acquiring the current moment and the rated power of equipment corresponding to each operation equipment respectively;
determining a power reduction coefficient of a first power supply based on the current moment, the historical switching times of the power supply and the historical operation time, wherein the power reduction coefficient is used for representing a coefficient of load capacity reduction of the first power supply;
and determining a first fault moment corresponding to the first power supply based on the power reduction coefficient, the main operation power and the rated power of the equipment corresponding to each operation equipment.
In another possible implementation manner, the estimating module is specifically configured to, when determining the power reduction coefficient of the first power supply based on the historical switching times of the power supply and the historical operation duration:
acquiring a second relation curve, wherein the second relation curve is used for representing the relation between the temperature corresponding to the first power supply and time;
determining a temperature influence coefficient based on the second relationship;
and determining a power reduction coefficient of the first power supply based on the temperature influence coefficient, the historical switching times of the power supply and the historical operation duration.
In another possible implementation manner, the estimating module is specifically configured to, when determining the temperature influence coefficient based on the second relation curve:
Determining at least one abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature based on the second relation curve;
determining an abnormal temperature coefficient based on the abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature respectively;
determining a natural descent coefficient based on the second relationship curve;
a temperature influence coefficient is determined based on the natural fall coefficient and the abnormal temperature coefficient.
In another possible implementation, the apparatus further includes: the system comprises a third acquisition module, an establishment module, a third determination module, a fourth acquisition module and a simulation module, wherein,
the third obtaining module is configured to obtain, when the first power supply fails at the first failure time, specification information of the first power supply, a third relationship curve, a fourth relationship curve, and device specification information corresponding to each operating device, where the third relationship curve is used to represent a relationship between main operation data and time corresponding to the first power supply in a time period corresponding to the first failure time, and the fourth relationship curve is used to represent a relationship between temperature and time corresponding to the first power supply in the time period corresponding to the first failure time;
The building module is used for building a first power supply model based on the specification information of the first power supply in a simulation environment and building each equipment model based on the equipment specification information corresponding to each operation equipment respectively;
the third determining module is configured to determine, as test parameters of the first power supply model, a device rated power corresponding to each operating device, and the third relationship curve and the fourth relationship curve of the first power supply respectively;
the fourth obtaining module is configured to obtain a progress ratio between a time progress in the simulation environment and a time progress in the real environment, where the progress ratio is greater than 1;
and the simulation module is used for simulating the first power supply model based on the test parameters, the first fault moment and the progress ratio to obtain a second fault moment corresponding to the first power supply.
In another possible implementation manner, the main operation data further includes: a main operating voltage, the main operating voltage comprising: current main operating voltage;
the apparatus further comprises: a second output module, a fifth acquisition module, a third output module, a sixth acquisition module and a fourth output module, wherein,
The second output module is used for outputting the first switching instruction when the current main operation voltage is smaller than a second operation data threshold value;
the fifth acquisition module is used for acquiring interval operation voltage of the first power supply, and the interval operation voltage is used for representing output voltage of the first power supply after the first switching instruction is output;
the third output module is used for outputting the second switching instruction when the interval operation voltage is greater than or equal to the second operation data threshold value, and the second switching instruction is used for controlling the first power supply to supply power to the operation equipment;
the sixth acquisition module is configured to acquire a detection operation voltage of the first power supply, where the detection operation voltage is used to characterize an output voltage of the first power supply after outputting the second switching instruction;
the fourth output module is configured to output the first switching instruction and early warning information when the detected operating voltage is less than the second operating data threshold;
the first determining module is specifically configured to, when determining the power supply history switching times, the history operation duration and the history stop operation time based on the first relation curve:
and if the current main operation voltage is not smaller than a second operation data threshold value, determining the historical switching times, the historical operation time and the historical stop working time of the power supply based on the first relation curve.
In another possible implementation, the apparatus further includes: a seventh acquisition module, an eighth acquisition module, a fourth determination module, and a fifth determination module, wherein,
the seventh obtaining module is configured to obtain a second operation power corresponding to a second power supply when the backup operation voltage is greater than the preset backup operation voltage threshold;
the eighth obtaining module is configured to obtain an operation relationship between each operation device when the second operation power is less than a preset power threshold;
the fourth determining module is configured to determine a matched operating device from the operating devices based on the preset importance levels and the operating relationships corresponding to the operating devices respectively;
and the fifth determining module is used for determining sustainable operation equipment from the matched operation equipment based on the second operation power, the equipment rated power corresponding to each matched operation equipment and the operation relation.
In a third aspect, an electronic device is provided, the electronic device comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: operations corresponding to the method of power switching according to any one of the possible implementations of the first aspect are performed.
In a fourth aspect, a computer readable storage medium is provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, the at least one instruction, at least one program, code set, or instruction set being loaded and executed by a processor to implement a method of power switching as shown in any one of the possible implementations of the first aspect.
In summary, the present application includes at least one of the following beneficial technical effects:
compared with the related art, the method, the device, the electronic equipment and the readable storage medium acquire a first relation curve of main operation data and time corresponding to a first power supply, determine the power supply historical switching times, the historical operation time and the historical stopping time of the first power supply switched to a second power supply based on the first relation curve, estimate the first power supply failure time based on the power supply historical switching times and the operation time, acquire the first failure time corresponding to the first power supply, detect whether the second power supply fails or not based on the first failure time and the historical stopping time, output a first switching instruction based on the first failure time so as to enable the second power supply to supply power to the operation equipment, acquire backup operation voltage corresponding to the second power supply, fail the second power supply when the backup operation voltage is smaller than a preset backup operation voltage threshold, output alarm information and the second switching instruction so as to enable the first power supply to supply power to the operation equipment, judge whether the second power supply fails or not before the first power supply fails, and if the second power supply fails, output alarm information so as to enable the second power supply to be switched to the second power supply failure to the operation equipment, and reduce the operation efficiency when the second power supply is switched to the second power supply fails, thereby reducing the operation efficiency when the second power supply is switched to the operation equipment.
Drawings
Fig. 1 is a schematic flow chart of a power switching method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a power switching device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to fig. 1 to 3.
The present embodiment is only for explanation of the present application and is not to be construed as limiting the present application, and modifications to the present embodiment, which may not creatively contribute to the present application as required by those skilled in the art after reading the present specification, are all protected by patent laws within the scope of claims of the present application.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
Embodiments of the application are described in further detail below with reference to the drawings.
The embodiment of the application provides a power supply switching method which is executed by electronic equipment, wherein the electronic equipment can be a server or terminal equipment, and the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server for providing cloud computing service. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., and the terminal device and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein, and as shown in fig. 1, the method may include:
Step S101, a first relation curve is obtained.
The first relation curve is used for representing a relation between main operation data corresponding to a first power supply and time, the first power supply is a power supply currently used by operation equipment, and the main operation data comprise: and the main operating power is used for representing the output power of the first power supply.
For the embodiment of the application, the electronic device may acquire the first relationship curve in real time, may acquire the first relationship curve at intervals of a preset time, or may acquire the first relationship curve when a trigger instruction of a user is detected, which is not limited in the embodiment of the application.
In the embodiment of the application, after the first relation curve is obtained, the display device may display the first relation curve in real time, or may display the first relation curve when a display instruction triggered by the user is detected, so that the user can grasp the operation data of the first power supply in real time.
Step S102, determining the historical switching times, the historical operation duration and the historical stop working time of the power supply based on the first relation curve.
The historical power supply switching times are used for representing the times of switching the first power supply to the second power supply, the historical operation duration is used for representing the total operation duration of the first power supply, and the historical stop operation time is used for representing the stop operation time of the first power supply.
For the embodiment of the application, the first relation curve is used for representing the relation between the main operation data and time, when the main operation data of the first power supply is reduced, the condition that the first power supply is switched to the second power supply may occur, the working time of the first power supply is determined through the first relation between the main operation data and time, the historical working stopping time is the rest time of the first power supply, namely the working stopping time of the operation equipment, the historical working stopping time can be the time period when the main power supply stops working in the past week, or the time period when the main power supply stops working in the past month, for example, the first power supply can be obtained through the first relation curve to stop working in the past week in the average time period of 1:00-3:00.
Step S103, estimating the time of failure of the first power supply based on the historical switching times and the historical operation time of the power supply, and obtaining a first failure moment corresponding to the first power supply.
The first fault moment is a moment when the first power supply is about to fail.
For the embodiment of the application, when the first power supply fails, the first power supply for supplying power to the operation equipment is switched into the second power supply, the power supply history switching times are used for representing the times of the first power supply failure, the service life of the first power supply is influenced when the first power supply fails, the performance of the first power supply is reduced along with the degradation, the longer the first power supply operation time is, the performance of the first power supply is aged, the performance degradation of the first power supply is related to the power supply history switching times and the history operation time, when the performance of the first power supply is reduced, the more easily the first power supply fails, the time of the first power supply failure can be estimated through a trained prediction model based on the power supply history switching times and the history operation time, the performance degradation coefficient of the first power supply can be calculated, and the time of the first power supply failure can be estimated.
Step S104, determining the detection time based on the first fault time and the historical stop working time.
The detection time is a time for detecting whether the second power supply fails or not, and the detection time is earlier than the first failure time by a preset interval time period.
For the embodiment of the application, the first fault time is a time estimated to cause the first power supply to fail, the second power supply needs to be detected before the time when the first power supply fails, when the second power supply is detected, the second power supply needs to be performed when the operation equipment stops working in order to avoid influencing the normal operation of the operation equipment, and in order to ensure that if the second power supply fails, the second power supply can be successfully maintained before the first fault time, the detection time needs to be earlier than the first fault time by a preset interval time period, for example, the first fault time is 8:00 of 15 months, and the historical stopping time is 1:00-3:00, and the preset interval time period is 3 hours, the detection time can be 6 months, 14 days and 5:00.
Step 105, outputting a first switching instruction based on the detection time, and obtaining a backup operation voltage corresponding to the second power supply.
The first switching instruction is used for controlling the second power supply to supply power to the operation equipment, and the backup operation voltage is used for representing the output voltage of the second power supply when the second power supply operates after the first switching instruction is output.
For the embodiment of the application, after the detection time is determined, the first switching instruction can be output at the detection time, or the first switching instruction can be output based on the detection time, so that the second power supply is controlled to supply power to the operation equipment at the detection time.
The backup operation voltage is used for representing the output voltage of the second power supply when the second power supply operates after the first switching instruction is output.
For the embodiment of the application, the electronic device may acquire the backup operation voltage corresponding to the second power supply in real time after outputting the first switching instruction, or acquire the backup operation voltage corresponding to the second power supply at specific intervals after outputting the first switching instruction, or acquire the backup operation voltage corresponding to the second power supply when detecting the acquisition instruction triggered by the user after outputting the first switching instruction, which is not limited in the embodiment of the application.
And step S106, if the backup operation voltage is smaller than a preset backup operation voltage threshold value, outputting alarm information and a second switching instruction.
The second switching instruction is used for controlling the first power supply to supply power to the running equipment.
For the embodiment of the application, when the backup operation voltage of the second power supply fails, the backup operation voltage of the second power supply is smaller than the preset backup operation voltage threshold, and if the backup operation voltage of the second power supply is smaller than the backup operation voltage threshold, the second power supply fails, and alarm information is output, so that a user maintains the second power supply, and the alarm information can comprise the backup operation voltage of the second power supply.
Compared with the related art, in the embodiment of the application, a first relation curve of main operation data and time corresponding to a first power supply is obtained, the power supply historical switching times, the historical operation time and the historical stop operation time of the first power supply to a second power supply are determined based on the first relation curve, the first power supply failure time is estimated based on the power supply historical switching times and the operation time, the first failure time corresponding to the first power supply is obtained, based on the first failure time and the historical stop operation time, whether the second power supply fails or not is detected before the first failure time, a first switching instruction is output based on the first failure time so that the second power supply supplies power to operation equipment, and backup operation voltage corresponding to the second power supply is obtained.
In one possible implementation manner of the embodiment of the present application, when a first power supply is used by at least two running devices, based on a first relation curve, estimating a time of occurrence of a fault of the first power supply, to obtain a first fault time corresponding to the first power supply, may specifically include: acquiring the current moment and the rated power of equipment corresponding to each operation equipment respectively; determining a power reduction coefficient of the first power supply based on the historical switching times and the historical operation time of the power supply, wherein the power reduction coefficient is used for representing a coefficient of load capacity reduction of the first power supply; and determining a first fault time of the first power supply based on the current time, the power reduction coefficient, the main operation power and the rated power of the equipment corresponding to each operation equipment. In the embodiment of the present application, the rated power of the device corresponding to each operating device may be obtained from a local storage, or may be obtained from another device, or may also obtain the rated power of the device corresponding to each operating device input by the user, which is not limited in the embodiment of the present application.
Wherein the operating device is a device powered by the first power source.
For the embodiment of the present application, when the main operation power of the first power supply cannot supply the operation device for operation, the first power supply fails, for example, the main operation power is 40W, the rated power of the operation device 1 is 10W, the rated power of the operation device 2 is 20W, the rated power of the operation device 3 is 20W, the total power of the operation device is 50W, and is smaller than the main operation power, and the first power supply fails. The main operation power of the first power supply is reduced along with long-time use of the first power supply, when the first power supply is switched to the second power supply, the second power supply fails, the main operation power reduction speed of the first power supply is accelerated, the power reduction coefficient of the first power supply can be determined through the power history switching times and the history operation time length of the first power supply, the reduction coefficient corresponding to the power history switching times can be determined based on the relation between the power history switching times and the preset switching reduction coefficient, the reduction coefficient corresponding to the power history operation time length is determined based on the relation between the power history operation time length and the preset operation reduction coefficient, and the power reduction coefficient of the first power supply is determined based on the reduction coefficient corresponding to the power history switching times and the reduction coefficient corresponding to the power history operation time length.
For the embodiment of the application, the total power of the equipment is determined based on the rated power of the equipment corresponding to each operation equipment, the time period when the main operation power reaches the total power is determined based on the main operation power and the power reduction coefficient, and the first fault time of the first power supply is determined based on the current time and the time period when the main power reaches the total power.
For the embodiment of the application, the influence on the main operation power reduction of the first power supply is determined through the historical switching times and the historical operation time of the power supply, and the first fault moment is accurately determined.
Another possible implementation manner of the embodiment of the present application, based on the historical switching times and the historical operation duration of the power supply, may specifically include: acquiring a second relation curve; determining a temperature influence coefficient based on the second relationship curve; and determining a power reduction coefficient of the first power supply based on the temperature influence coefficient, the historical switching times of the power supply and the historical operation duration. In the embodiment of the present application, the second relationship curve of temperature and time corresponding to the first power supply may be obtained from local storage, may also be obtained from other devices, and may also be obtained from the second relationship curve of temperature and time corresponding to the first power supply input by the user, which is not limited in the embodiment of the present application.
The second relation curve is used for representing the relation between the temperature corresponding to the first power supply and time.
For the embodiment of the application, the performance of the first power supply is reduced and related to the temperature of the first power supply, when the temperature of the first power supply is increased, the performance of the first power supply is reduced, the aging of the first power supply is accelerated, the performance of the power supply is further reduced rapidly, a temperature change rule is obtained through a second relation curve of the temperature of the first power supply and time, a temperature influence coefficient of the temperature on the performance reduction of the first power supply is determined through the temperature change, and the first power supply power reduction coefficient is determined jointly through the temperature influence coefficient, the power history switching times and the operation duration.
For the embodiment of the application, the performance of the first power supply is accelerated to be reduced by the temperature rise, and the power reduction coefficient of the first power supply is accurately determined through the temperature influence coefficient, the power switching times and the historical operation times.
Another possible implementation manner of the embodiment of the present application, based on the second relation, determines a temperature influence coefficient, which may specifically include: determining at least one abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature based on the second relation curve; determining an abnormal temperature coefficient based on the abnormal temperature and an abnormal temperature period corresponding to each abnormal temperature; determining a natural descent coefficient based on the second relationship curve; the temperature influence coefficient is determined based on the natural fall coefficient and the abnormal temperature coefficient. In the embodiment of the application, the temperature of the first power supply is compared with the preset temperature threshold to obtain the temperature which is greater than the preset temperature threshold, namely the abnormal temperature, and the time period corresponding to the abnormal temperature is determined based on the second relation curve of the temperature and time, for example, the temperature threshold is 35 degrees, the time period corresponding to 35 degrees is 5 points and half in the second relation curve, and the time period corresponding to 35 degrees is half an hour. The abnormal temperature time periods corresponding to different temperatures are different, the abnormal temperature influence coefficient is determined through the abnormal temperature and the abnormal temperature time period corresponding to each abnormal temperature, when the temperature of the first power supply is not abnormal, the influence of the temperature of the first power supply on the first power supply is small, the abnormal temperature is removed through a second relation curve of the first power supply, the rest temperatures are the temperatures of the normal operation of the first power supply, the natural descent coefficient is determined through the temperatures of the normal operation of the first power supply and the time periods of the normal operation temperatures, and the temperature influence coefficient is determined more accurately based on the natural descent coefficient and the abnormal temperature coefficient.
Another possible implementation manner of the first fault moment corresponding to the first power supply is determined, and the power supply historical switching times, the historical operation duration and the second relation curve are input into a trained fault time prediction model to obtain the first fault moment corresponding to the first power supply. In the embodiment of the application, the data training set can be acquired from other devices. The trained failure time prediction model is obtained based on the training of the data training set.
For the embodiment of the application, the time of the first power supply failure is estimated through the trained failure time prediction model based on the power supply historical switching times, the historical operation time and the second relation curve, so as to obtain the first failure time, and the first failure time of the first power supply is rapidly obtained through the trained failure time prediction model.
In another possible implementation manner of the embodiment of the present application, based on the historical switching times and the historical operation time of the power supply, the estimating the time of occurrence of the fault of the first power supply to obtain the first fault time corresponding to the first power supply may further include: if the first power supply fails at the first failure moment, acquiring specification information, a third relation curve, a fourth relation curve of the first power supply and equipment specification information corresponding to each operation equipment respectively; establishing a first power supply model based on specification information of a first power supply in a simulation environment, and establishing each equipment model based on equipment specification information corresponding to each equipment respectively; determining the rated power of each operation device and the third and fourth relation curves of the first power supply as test parameters of a first power supply model; acquiring a progress ratio of time progress in a simulation environment to time progress in a real environment, wherein the progress ratio is greater than 1; and simulating the first power supply model based on the test parameters, the first fault moment and the progress ratio to obtain a second fault moment corresponding to the first power supply. In the embodiment of the present application, the specification information of the first power supply and the device specification information corresponding to each operating device may be obtained from a local storage, or may be obtained from other devices, or may also obtain the specification information of the first power supply and the device specification information corresponding to each operating device, which are input by a user, where the embodiment of the present application is not limited.
The third relation curve is used for representing the relation between main operation data corresponding to the first power supply in a time period corresponding to the first fault moment and time, and the fourth relation curve is used for representing the relation between temperature corresponding to the first power supply in the time period corresponding to the first fault moment and time.
For the embodiment of the present application, when the first power supply fails at the first failure time, the first power supply is simulated, and the second failure time when the first power supply fails is further determined, so that the working state of the first power supply at the first failure time needs to be simulated in a simulation environment, a first power supply model is built by using the specification information of the first power supply in the simulation environment, and each device model is built by using the specification information of each operating device, where the specification information of the first power supply may include: the output voltage, the device specification information may include: the method comprises the steps of operating voltage, determining rated power of each operating device and a third relation curve and a fourth relation curve of a first power supply as test parameters of a first power supply model, obtaining a time progress in a simulation environment and a time progress ratio in a real environment, wherein the time progress ratio is larger than 1, so that the time of failure of the first power supply model is longer than the time of failure of the first power supply model, determining a time period of failure of the first power supply model based on the test parameters and the time progress ratio, simulating the first power supply by a preset attenuation algorithm, determining the time period of failure of the first power supply in the real environment through the time period of failure of the first model and the time progress ratio, and determining a second failure time of failure of the first power supply based on the first failure time and the time period of failure of the first power supply in the real environment.
For the embodiment of the application, when the first power supply does not have a fault at the first fault moment, the second fault moment of the first power supply is accurately obtained by simulating the first power supply.
In another possible implementation manner of the embodiment of the present application, the main operation data further includes: a main operating voltage, the main operating voltage comprising: current main operating voltage;
acquiring the first relation may further include: if the current main operation voltage is smaller than the second operation data threshold value, outputting a first switching instruction; acquiring interval operation voltage of the first power supply, wherein the interval operation voltage is used for representing output voltage of the first power supply after outputting a first switching instruction; outputting a second switching instruction if the interval running voltage is greater than or equal to a second running data threshold value, wherein the second switching instruction is used for controlling the first power supply to supply power to the running equipment; acquiring a detection operation voltage of the first power supply, wherein the detection operation voltage is used for representing the output voltage of the first power supply after outputting a second switching instruction; and if the detected operating voltage is smaller than the second operating data threshold value, outputting a first switching instruction and early warning information. In the embodiment of the present application, the interval operation voltage of the first power supply may be obtained immediately after the first switching instruction is output, or may be obtained at intervals of a first preset time period after the first switching instruction is output, where the first preset time period may be set by a user, for example, 30 seconds, and the specific time period is not limited in the embodiment of the present application.
For the embodiment of the application, when the first power supply is frequently abnormal, the power supply equipment of the cloud equipment can be frequently switched between the first power supply and the second power supply to influence the normal operation of the operation equipment, when the current main operation voltage of the first power supply is smaller than the second operation data threshold value, the first power supply can be failed, a first switching instruction is output to enable the power supply of the operation equipment to be switched from the first power supply to the second power supply, after the first switching instruction is output, if the interval operation voltage of the first power supply is larger than or equal to the second operation data threshold value, the current main operation voltage of the first power supply can be temporarily abnormal, and the second switching instruction is restored, so that the power supply of the operation equipment is switched from the second power supply to the first power supply.
For the embodiment of the application, the detection operation voltage of the first power supply may be obtained in real time after the second switching instruction is output, or the detection operation voltage of the first power supply may be obtained at intervals of a second preset time period, where the second preset time period may be set by a user, for example, 6 hours, and the specific time period is not limited in the embodiment of the application.
For the embodiment of the application, when the detected operation voltage of the first power supply is smaller than the second operation data threshold value, the first power supply is frequently abnormal, which indicates that the first power supply fails, a first switching instruction is output, so that the power supply of the operation equipment is switched from the first power supply to the second power supply again, and early warning information is output, so that a user maintains the first power supply, and further, the voltage of the first power supply is not detected and the switching operation is not performed, so that the normal operation of the operation equipment is not influenced when the first power supply is frequently abnormal, and the working efficiency of the operation equipment is ensured.
Further, determining the power supply historical switching times, the historical operation duration and the historical stopping time based on the first relation curve may specifically include: and if the current main operation voltage is not smaller than the second operation data threshold value, determining the historical switching times, the historical operation duration and the historical stop working time of the power supply based on the first relation curve. In the embodiment of the application, when the current main operation voltage is not smaller than the second operation data threshold, namely the first power supply fails, the first failure moment when the first power supply fails is estimated.
In another possible implementation manner of the embodiment of the present application, after obtaining the rated power of the device corresponding to each operating device, the method may further include: if the backup operation voltage is larger than a preset backup operation voltage threshold value, obtaining second operation power corresponding to the second power supply; if the second operation power is smaller than the preset power threshold value, the operation relation among the operation devices is obtained; determining matched operation equipment from the operation equipment based on preset importance levels and operation relations corresponding to the operation equipment respectively; and determining sustainable operation equipment from the matched operation equipment based on the second operation power, the equipment rated power and the operation relation respectively corresponding to the matched operation equipment. In the embodiment of the application, the operation relation among the operation devices can be obtained from a local storage, can be obtained from other devices, and can also obtain the relation of the operation devices input by a user.
For the embodiment of the application, when the backup operation voltage is greater than a preset backup voltage threshold, that is, when the second power supply fails, the second operation power of the second power supply is obtained, when the second operation power is smaller than the preset power threshold, the second power supply cannot load the normal operation of each operation device, in order to avoid overload operation of the second power supply, by obtaining the operation relation between each operation device, some devices depend on other devices to operate, when one operation device stops operating, other devices can be influenced and cannot operate, important devices are determined based on preset importance levels and preset level thresholds corresponding to each operation device, respectively, and devices and important devices influencing the operation of the important devices are determined to be matched with operation devices, for example, device 1 depends on device 2, device 2 depends on device 3, device 3 depends on device 4, device 5 depends on device 6, device 6 depends on device 7, the preset importance levels of device 3 and device 6 are greater than the preset level threshold, device 3 and device 7 depend on device 6, device 4 is a device influencing device 3, device 7 is a device 6 is a device influencing device 6, device 7 is a device 3, and device 4 is a device matching device 4. And comparing the rated power of the equipment corresponding to each matched operation equipment with the second operation power, and determining sustainable operation equipment, namely equipment which can be continuously supplied by the second power supply, from the matched equipment based on the operation relation.
For the embodiment of the application, when the second operation power of the second power supply is smaller than the preset power threshold, the sustainable operation equipment is determined through the preset importance level of the operation equipment and the operation relation among the operation equipment, so that the continuous operation of the important equipment is ensured.
The above embodiments describe a method for switching power from the perspective of a method flow, and the following embodiments describe a device for switching power from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
An embodiment of the present application provides a device for switching power, as shown in fig. 2, where the device 20 for switching power may specifically include: a first acquisition module 21, a first determination module 22, a pre-estimation module 23, a second determination module 24, a second acquisition module 25, and a first output module 26, wherein,
the first obtaining module 21 is configured to obtain a first relationship curve, where the first relationship curve is used to characterize a relationship between main operation data corresponding to a first power supply and time, the first power supply is a power supply currently used by an operation device, and the main operation data includes: a main operating power, the main operating power being used to characterize the output power of the first power supply;
the first determining module 22 is configured to determine, based on the first relationship curve, a power supply history switching number, a history operation duration, and a history stop operation time, where the power supply history switching number is used to represent a number of times that the first power supply is switched to the second power supply, the history operation duration is used to represent a total operation duration of the first power supply, and the history stop operation time is used to represent a time when the first power supply is stopped;
The estimating module 23 is configured to estimate, based on the historical switching times and the historical operation time of the power supply, a time when the first power supply fails, to obtain a first failure time corresponding to the first power supply, where the first failure time is a time when the first power supply is about to fail;
a second determining module 24, configured to determine a detection time, based on the first failure time and the historical stop time, where the detection time is a time for detecting whether the second power supply fails, and the detection time is earlier than the first failure time by a preset interval period;
the second obtaining module 25 is configured to output a first switching instruction based on the detection time, and obtain a backup operation voltage corresponding to the second power supply, where the first switching instruction is used to control the second power supply to supply power to the operation device, and the backup operation voltage is used to characterize an output voltage when the second power supply operates after the first switching instruction is output;
the first output module 26 is configured to output alarm information and a second switching instruction when the backup operation voltage is less than a preset backup operation voltage threshold, where the second switching instruction is used to control the first power supply to supply power to the operation device.
In one possible implementation manner of the embodiment of the present application, when the first power supply is used by at least two running devices, the estimating module 23 estimates, based on the historical switching times and the historical running time of the power supply, the failure time of the first power supply, so as to obtain a first failure time corresponding to the first power supply, where the estimating module is specifically configured to:
Acquiring the current moment and the rated power of equipment corresponding to each operation equipment respectively;
determining a power reduction coefficient of the first power supply based on the historical switching times and the historical operation time of the power supply, wherein the power reduction coefficient is used for representing a coefficient of load capacity reduction of the first power supply;
and determining a first fault time corresponding to the first power supply based on the current time, the power reduction coefficient, the main operation power and the rated power of the equipment corresponding to each operation equipment.
In another possible implementation manner of the embodiment of the present application, when the prediction module 23 determines the power reduction coefficient of the first power supply based on the historical switching times and the historical operation duration of the power supply, the prediction module is specifically configured to:
acquiring a second relation curve, wherein the second relation curve is used for representing the relation between the temperature corresponding to the first power supply and time;
determining a temperature influence coefficient based on the second relationship curve;
and determining a power reduction coefficient of the first power supply based on the temperature influence coefficient, the historical switching times of the power supply and the historical operation duration.
In another possible implementation manner of the embodiment of the present application, the estimating module 23 is specifically configured to, when determining the temperature influence coefficient based on the second relation curve:
determining at least one abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature based on the second relation curve;
Determining an abnormal temperature coefficient based on the abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature respectively;
determining a natural descent coefficient based on the second relationship curve;
the temperature influence coefficient is determined based on the natural fall coefficient and the abnormal temperature coefficient.
Another possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: the system comprises a third acquisition module, an establishment module, a third determination module, a fourth acquisition module and a simulation module, wherein,
the third obtaining module is used for obtaining specification information, a third relation curve, a fourth relation curve and equipment specification information respectively corresponding to each operation equipment of the first power supply when the first power supply fails at the first failure moment, wherein the third relation curve is used for representing the relation between main operation data and time corresponding to the first power supply in a time period corresponding to the first failure moment, and the fourth relation curve is used for representing the relation between temperature and time corresponding to the first power supply in the time period corresponding to the first failure moment;
the building module is used for building a first power supply model based on the specification information of the first power supply in a simulation environment and building each equipment model based on the equipment specification information corresponding to each operation equipment respectively;
The third determining module is used for determining the rated power of the equipment, the third relation curve and the fourth relation curve of the first power supply, which correspond to each operation equipment, as the test parameters of the first power supply model;
the fourth acquisition module is used for acquiring a progress ratio between the time progress in the simulation environment and the time progress in the real environment, wherein the progress ratio is greater than 1;
and the simulation module is used for simulating the first power supply model based on the test parameters, the first fault moment and the progress ratio to obtain a second fault moment corresponding to the first power supply.
In another possible implementation manner of the embodiment of the present application, the main operation data further includes: a main operating voltage, the main operating voltage comprising: current main operating voltage;
the apparatus 20 further comprises: a second output module, a fifth acquisition module, a third output module, a sixth acquisition module and a fourth output module, wherein,
the second output module is used for outputting a first switching instruction when the current main operation voltage is smaller than a second operation data threshold value;
the fifth acquisition module is used for acquiring the interval operation voltage of the first power supply, wherein the interval operation voltage is used for representing the output voltage of the first power supply after the first switching instruction is output;
The third output module is used for outputting a second switching instruction when the interval operation voltage is greater than or equal to a second operation data threshold value, and the second switching instruction is used for controlling the first power supply to supply power to the operation equipment;
the sixth acquisition module is used for acquiring the detection operation voltage of the first power supply, wherein the detection operation voltage is used for representing the output voltage of the first power supply after the second switching instruction is output;
the fourth output module is used for outputting a first switching instruction and early warning information when the detected operation voltage is smaller than the second operation data threshold value;
the first determining module 22 is specifically configured to, when determining the power supply history switching times, the history operation duration, and the history stop operation time based on the first relation curve:
and if the current main operation voltage is not smaller than the second operation data threshold value, determining the historical switching times, the historical operation duration and the historical stop working time of the power supply based on the first relation curve.
Another possible implementation manner of the embodiment of the present application, the apparatus 20 further includes: a seventh acquisition module, an eighth acquisition module, a fourth determination module, and a fifth determination module, wherein,
a seventh obtaining module, configured to obtain a second operation power corresponding to the second power supply when the backup operation voltage is greater than a preset backup operation voltage threshold;
An eighth obtaining module, configured to obtain an operation relationship between each operation device when the second operation power is less than a preset power threshold;
a fourth determining module, configured to determine a matched operating device from each operating device based on a preset importance level and an operating relationship corresponding to each operating device;
and a fifth determining module, configured to determine sustainable operation devices from the matching operation devices based on the second operation power, the device rated powers corresponding to the matching operation devices, and the operation relationships.
Compared with the related art, in the embodiment of the application, a first relation curve of main operation data and time corresponding to a first power supply is obtained, the power supply historical switching times, the historical operation time and the historical stop operation time of the first power supply to a second power supply are determined based on the first relation curve, the first power supply failure time is estimated based on the power supply historical switching times and the operation time, the first failure time corresponding to the first power supply is obtained, based on the first failure time and the historical stop operation time, whether the second power supply fails or not is detected before the first failure time, a first switching instruction is output based on the first failure time so that the second power supply supplies power to operation equipment, and backup operation voltage corresponding to the second power supply is obtained.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the power switching device described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
An embodiment of the present application provides an electronic device, as shown in fig. 3, an electronic device 30 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein the processor 301 is coupled to the memory 303, such as via a bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that, in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 30 is not limited to the embodiment of the present application.
The processor 301 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. Processor 301 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 302 may include a path to transfer information between the components. Bus 302 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect Standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. Bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 3, but not only one bus or type of bus.
The Memory 303 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory ), a CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 303 is used for storing application program codes for executing the inventive arrangements and is controlled to be executed by the processor 301. The processor 301 is configured to execute the application code stored in the memory 303 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include, but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. But may also be a server or the like. The electronic device shown in fig. 3 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the application.
Embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above. Compared with the related art, in the embodiment of the application, through acquiring the first relation curve of the main operation data and time corresponding to the first power supply, the power supply history switching times, the history operation time and the history stop operation time of the first power supply to the second power supply are determined based on the first relation curve, the first power supply failure time is estimated based on the power supply history switching times and the operation time, the first failure time corresponding to the first power supply is obtained, the first switching instruction is output based on the first failure time and the history stop operation time, the second power supply is enabled to supply power to the operation equipment, the backup operation voltage corresponding to the second power supply is acquired, when the backup operation voltage is smaller than the preset backup operation voltage threshold value, the second power supply fails, the alarm information and the second switching instruction are output, so that the first power supply supplies power to the operation equipment, before the first power supply fails, whether the second power supply fails is judged, if the second power supply fails, the alarm information is output, so that a worker maintains the second power supply, the operation efficiency of the operation equipment is reduced when the second power supply fails, and the operation equipment is prevented from running due to the fact that the second power supply fails is switched when the operation equipment fails.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations should and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method of power switching comprising:
acquiring a first relation curve, wherein the first relation curve is used for representing the relation between main operation data corresponding to a first power supply and time, the first power supply is a power supply currently used by operation equipment, and the main operation data comprises: a main operating power, the main operating power being used to characterize the output power of the first power supply;
Determining power supply historical switching times, historical operation time and historical stopping time based on the first relation curve, wherein the power supply historical switching times are used for representing times of switching a first power supply to a second power supply, the historical operation time is used for representing total operation time of the first power supply, and the historical stopping time is used for representing stopping time of the first power supply;
estimating the time of occurrence of the fault of the first power supply based on the historical switching times of the power supply and the historical operation time, so as to obtain a first fault moment corresponding to the first power supply, wherein the first fault moment is the moment when the first power supply is about to be in fault;
determining a detection time based on the first fault time and the historical stop working time, wherein the detection time is a time for detecting whether a second power supply fails or not, and the detection time is earlier than the first fault time by a preset interval time period;
outputting a first switching instruction based on the detection moment, and acquiring a backup operation voltage corresponding to the second power supply, wherein the first switching instruction is used for controlling the second power supply to supply power to the operation equipment, and the backup operation voltage is used for representing the output voltage of the second power supply when the second power supply operates after the first switching instruction is output;
And if the backup operation voltage is smaller than a preset backup operation voltage threshold value, outputting alarm information and a second switching instruction, wherein the second switching instruction is used for controlling the first power supply to supply power to the operation equipment.
2. The method according to claim 1, wherein when the first power supply is used by at least two operating devices, the estimating the failure time of the first power supply based on the historical switching times of the power supply and the historical operating time length to obtain a first failure time corresponding to the first power supply includes:
acquiring the current moment and the rated power of equipment corresponding to each operation equipment respectively;
determining a power reduction coefficient of the first power supply based on the historical switching times of the power supply and the historical operation time, wherein the power reduction coefficient is used for representing a coefficient of load capacity reduction of the first power supply;
and determining a first fault time corresponding to the first power supply based on the current time, the power reduction coefficient, the main operation power and the rated power of equipment corresponding to each operation equipment.
3. The method of claim 2, wherein determining the power reduction factor for the first power source based on the historical number of power source switches and the historical length of operation comprises:
Acquiring a second relation curve, wherein the second relation curve is used for representing the relation between the temperature corresponding to the first power supply and time;
determining a temperature influence coefficient based on the second relationship;
and determining a power reduction coefficient of the first power supply based on the temperature influence coefficient, the historical switching times of the power supply and the historical operation duration.
4. A method according to claim 3, wherein said determining a temperature influence coefficient based on said second relationship comprises:
determining at least one abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature based on the second relation curve;
determining an abnormal temperature coefficient based on the abnormal temperature and an abnormal temperature time period corresponding to each abnormal temperature respectively;
determining a natural descent coefficient based on the second relationship curve;
a temperature influence coefficient is determined based on the natural fall coefficient and the abnormal temperature coefficient.
5. The method of claim 4, wherein the estimating the time of failure of the first power supply based on the historical switching times of the power supply and the historical operation time length to obtain the first time of failure corresponding to the first power supply further comprises:
If the first power supply does not have a fault at the first fault moment, acquiring specification information of the first power supply, a third relation curve, a fourth relation curve and equipment specification information corresponding to each operation equipment, wherein the third relation curve is used for representing the relation between main operation data and time corresponding to the first power supply in a time period corresponding to the first fault moment, and the fourth relation curve is used for representing the relation between temperature and time corresponding to the first power supply in the time period corresponding to the first fault moment;
establishing a first power supply model based on the specification information of the first power supply under a simulation environment, and establishing each equipment model based on the equipment specification information corresponding to each operation equipment respectively;
determining the rated power of each operation device, the third relation curve and the fourth relation curve of the first power supply, which correspond to the operation devices, as test parameters of the first power supply model;
acquiring a progress ratio between a time progress in a simulation environment and a time progress in a real environment, wherein the progress ratio is greater than 1;
and simulating the first power supply model based on the test parameters, the first fault moment and the progress ratio to obtain a second fault moment corresponding to the first power supply.
6. The method of claim 1, wherein the primary operational data further comprises: a main operating voltage, the main operating voltage comprising: current main operating voltage;
the acquiring a first relation curve further comprises:
outputting the first switching instruction if the current main operation voltage is smaller than a second operation data threshold value;
acquiring interval operation voltage of a first power supply, wherein the interval operation voltage is used for representing output voltage of the first power supply after outputting the first switching instruction;
outputting the second switching instruction if the interval running voltage is greater than or equal to the second running data threshold, wherein the second switching instruction is used for controlling a first power supply to supply power to running equipment;
acquiring a detection operation voltage of the first power supply, wherein the detection operation voltage is used for representing the output voltage of the first power supply after outputting the second switching instruction;
outputting the first switching instruction and the early warning information if the detected operating voltage is smaller than the second operating data threshold value;
the determining, based on the first relation curve, the historical switching times, the historical operation duration and the historical stop time of the power supply includes:
And if the current main operation voltage is not smaller than a second operation data threshold value, determining the historical switching times, the historical operation time and the historical stop working time of the power supply based on the first relation curve.
7. The method according to claim 2, wherein the obtaining the rated power of the device corresponding to each operating device respectively further comprises:
if the backup operation voltage is larger than the preset backup operation voltage threshold value, obtaining second operation power corresponding to a second power supply;
if the second operation power is smaller than a preset power threshold value, acquiring an operation relation among the operation devices;
determining matched operation equipment from the operation equipment based on the preset importance levels and the operation relations which are respectively corresponding to the operation equipment;
and determining sustainable operation equipment from the matched operation equipment based on the second operation power, the equipment rated power corresponding to each matched operation equipment and the operation relation.
8. An apparatus for switching power, comprising:
the first obtaining module is configured to obtain a first relation curve, where the first relation curve is used to characterize a relation between main operation data corresponding to a first power supply and time, the first power supply is a power supply currently used by an operation device, and the main operation data includes: a main operating power, the main operating power being used to characterize the output power of the first power supply;
The first determining module is used for determining power supply historical switching times, historical operation duration and historical stop working time based on the first relation curve, wherein the power supply historical switching times are used for representing times of switching a first power supply to a second power supply, the historical operation duration is used for representing total working duration of the first power supply, and the historical stop working time is used for representing time of stopping working of the first power supply;
the estimating module is used for estimating the time when the first power supply fails based on the historical switching times and the historical operation time of the power supply to obtain a first failure time corresponding to the first power supply, wherein the first failure time is the time when the first power supply is about to fail;
the second determining module is used for determining a detection time based on the first fault time and the historical stop working time, wherein the detection time is a time for detecting whether a second power supply fails or not, and the detection time is earlier than the first fault time by a preset interval time period;
the second acquisition module is used for outputting a first switching instruction based on the detection moment and acquiring a backup operation voltage corresponding to the second power supply, wherein the first switching instruction is used for controlling the second power supply to supply power to the operation equipment, and the backup operation voltage is used for representing the output voltage of the second power supply when the second power supply operates after the first switching instruction is output;
The first output module is used for outputting alarm information and a second switching instruction when the backup operation voltage is smaller than a preset backup operation voltage threshold value, and the second switching instruction is used for controlling the first power supply to supply power to the operation equipment.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: a method of performing a power supply switching according to any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements a method of power switching according to any of claims 1-7.
CN202310230690.9A 2023-03-11 2023-03-11 Power supply switching method and device, electronic equipment and readable storage medium Active CN116260235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310230690.9A CN116260235B (en) 2023-03-11 2023-03-11 Power supply switching method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310230690.9A CN116260235B (en) 2023-03-11 2023-03-11 Power supply switching method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116260235A CN116260235A (en) 2023-06-13
CN116260235B true CN116260235B (en) 2023-08-22

Family

ID=86684195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310230690.9A Active CN116260235B (en) 2023-03-11 2023-03-11 Power supply switching method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116260235B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201533194U (en) * 2009-10-26 2010-07-21 北京突破电气有限公司 Automatic on/off switching electric appliance
CN202363966U (en) * 2011-12-06 2012-08-01 广东先达电业股份有限公司 Automatic switching device for emergency power supply
CN104848885A (en) * 2015-06-04 2015-08-19 北京金控自动化技术有限公司 Method for predicting time of future failure of equipment
CN107957935A (en) * 2017-11-23 2018-04-24 上海联影医疗科技有限公司 The control method and device of equipment, computer-readable recording medium
CN109034413A (en) * 2018-07-11 2018-12-18 广东人励智能工程有限公司 Intelligence manufacture equipment fault prediction technique and system based on neural network model
CN109739213A (en) * 2019-01-07 2019-05-10 东莞百宏实业有限公司 A kind of failure prediction system and prediction technique
CN111628565A (en) * 2020-06-10 2020-09-04 山东华天电子科技有限公司 Energy-saving emergency power supply switching system and method
CN111832827A (en) * 2020-07-16 2020-10-27 国网北京市电力公司 Distribution network fault early warning method and device, readable medium and electronic equipment
CN112346893A (en) * 2020-11-10 2021-02-09 深圳市康必达控制技术有限公司 Fault prediction method, device, terminal and storage medium
CN112347692A (en) * 2020-09-21 2021-02-09 深圳前海有电物联科技有限公司 Method and device for realizing predictive maintenance of battery of uninterruptible power supply and electronic device
WO2022267879A1 (en) * 2021-06-25 2022-12-29 上海三一重机股份有限公司 Engineering machinery fault early warning method and apparatus, and engineering machinery

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6915638B2 (en) * 2019-03-08 2021-08-04 セイコーエプソン株式会社 Failure time estimation device, machine learning device, failure time estimation method
US11223228B2 (en) * 2019-06-20 2022-01-11 Schneider Electric It Corporation Artificially intelligent uninterruptible power supply

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201533194U (en) * 2009-10-26 2010-07-21 北京突破电气有限公司 Automatic on/off switching electric appliance
CN202363966U (en) * 2011-12-06 2012-08-01 广东先达电业股份有限公司 Automatic switching device for emergency power supply
CN104848885A (en) * 2015-06-04 2015-08-19 北京金控自动化技术有限公司 Method for predicting time of future failure of equipment
CN107957935A (en) * 2017-11-23 2018-04-24 上海联影医疗科技有限公司 The control method and device of equipment, computer-readable recording medium
CN109034413A (en) * 2018-07-11 2018-12-18 广东人励智能工程有限公司 Intelligence manufacture equipment fault prediction technique and system based on neural network model
CN109739213A (en) * 2019-01-07 2019-05-10 东莞百宏实业有限公司 A kind of failure prediction system and prediction technique
CN111628565A (en) * 2020-06-10 2020-09-04 山东华天电子科技有限公司 Energy-saving emergency power supply switching system and method
CN111832827A (en) * 2020-07-16 2020-10-27 国网北京市电力公司 Distribution network fault early warning method and device, readable medium and electronic equipment
CN112347692A (en) * 2020-09-21 2021-02-09 深圳前海有电物联科技有限公司 Method and device for realizing predictive maintenance of battery of uninterruptible power supply and electronic device
CN112346893A (en) * 2020-11-10 2021-02-09 深圳市康必达控制技术有限公司 Fault prediction method, device, terminal and storage medium
WO2022267879A1 (en) * 2021-06-25 2022-12-29 上海三一重机股份有限公司 Engineering machinery fault early warning method and apparatus, and engineering machinery

Also Published As

Publication number Publication date
CN116260235A (en) 2023-06-13

Similar Documents

Publication Publication Date Title
EP3975378A1 (en) Charging method and apparatus, charging system, electronic device, storage medium
EP2586115B1 (en) Hierarchical power smoothing
CN108872762B (en) Electronic equipment leakage detection method and device, electronic equipment and storage medium
EP3190599A1 (en) Charging method and device
CN115689534B (en) Method, device, equipment and medium for managing service life of equipment based on big data
US20210048811A1 (en) Model generation device for life prediction, model generation method for life prediction, and recording medium storing model generation program for life prediction
CN116502166B (en) Method, device, equipment and medium for predicting faults of target equipment
US8930773B2 (en) Determining root cause
CN115858311A (en) Operation and maintenance monitoring method and device, electronic equipment and readable storage medium
CN116260235B (en) Power supply switching method and device, electronic equipment and readable storage medium
US20160092140A1 (en) Storage device management in computing systems
CN111597093B (en) Exception handling method, device and equipment thereof
US10012698B1 (en) Portable test unit with load
CN112448463A (en) Pass-through system based on power consumption/power standby equipment
US8099246B1 (en) Device for assessing operating-mode transition reliability
CN114625620A (en) CPU utilization rate calculation method and device, electronic equipment and storage medium
CN112346552B (en) Power supply monitoring method, device, computer equipment and storage medium
CN110990219B (en) Computer monitoring method based on prediction model
CN113032232A (en) Related method for detecting performance of equipment, related device and equipment
CN113550893B (en) Equipment detection method and device, electronic equipment and storage medium
CN114697203B (en) Network fault pre-judging method and device, electronic equipment and storage medium
CN115858324B (en) AI-based IT equipment fault processing method, apparatus, equipment and medium
US6922644B2 (en) System and method of detecting fire causing card shorts
JP2019079120A (en) Information processing device, information processing method and program
CN110908851A (en) Abnormal application detection and control method, device, terminal and storage medium

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