CN113629883A - Working mode switching method and device and electronic equipment - Google Patents

Working mode switching method and device and electronic equipment Download PDF

Info

Publication number
CN113629883A
CN113629883A CN202111072248.5A CN202111072248A CN113629883A CN 113629883 A CN113629883 A CN 113629883A CN 202111072248 A CN202111072248 A CN 202111072248A CN 113629883 A CN113629883 A CN 113629883A
Authority
CN
China
Prior art keywords
current
energy storage
voltage threshold
voltage
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111072248.5A
Other languages
Chinese (zh)
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.)
Beijing Honghui International Energy Technology Development Co ltd
Original Assignee
Beijing Honghui International Energy Technology Development 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 Beijing Honghui International Energy Technology Development Co ltd filed Critical Beijing Honghui International Energy Technology Development Co ltd
Priority to CN202111072248.5A priority Critical patent/CN113629883A/en
Publication of CN113629883A publication Critical patent/CN113629883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J15/00Systems for storing electric energy
    • H02J15/007Systems for storing electric energy involving storage in the form of mechanical energy, e.g. fly-wheels
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J1/00Circuit arrangements for dc mains or dc distribution networks
    • H02J1/14Balancing the load in a network
    • H02J1/16Balancing the load in a network using dynamo-electric machines coupled to flywheels
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K7/00Arrangements for handling mechanical energy structurally associated with dynamo-electric machines, e.g. structural association with mechanical driving motors or auxiliary dynamo-electric machines
    • H02K7/02Additional mass for increasing inertia, e.g. flywheels
    • H02K7/025Additional mass for increasing inertia, e.g. flywheels for power storage
    • 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
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/16Mechanical energy storage, e.g. flywheels or pressurised fluids

Abstract

The invention provides a method and a device for switching working modes and electronic equipment, wherein the current working mode of an energy storage flywheel is determined according to the voltage of a direct current bus and the charge-discharge voltage threshold value obtained by real-time detection; the charging voltage threshold is greater than the discharging voltage threshold; the working mode comprises a charging mode and a discharging mode; and switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold. According to the method, the current working mode of the energy storage flywheel is judged through the direct current bus voltage and a preset charging and discharging voltage threshold, and then the current working mode is switched according to the current working mode and the current direct current bus voltage, so that the energy storage flywheel can rapidly carry out a discharging mode or a charging mode, the reliability of switching the charging state and the discharging state in the energy storage flywheel is improved, and meanwhile, the voltage and current response speed and quality of the energy storage flywheel are guaranteed.

Description

Working mode switching method and device and electronic equipment
Technical Field
The invention relates to the technical field of energy storage flywheels, in particular to a method and a device for switching working modes and electronic equipment.
Background
Energy storage flywheels are generally suitable for working scenarios in which charging and discharging states are frequently switched, wherein the switching of the charging and discharging states, particularly the switching from the charging state to the discharging state, requires ensuring the voltage and current response speed and quality of the flywheel. In the related art, the working state is usually switched by comparing the dc bus voltage with the charging voltage and the discharging voltage, but in this way, only when the dc bus voltage is less than the discharging voltage, the flywheel starts to gradually increase the discharging voltage to the flywheel voltage stabilization value, wherein the larger dc bus support capacitor cannot play a role in stabilizing the voltage, and also can prolong the voltage rising time; meanwhile, due to the jump of voltage and the switching of charging and discharging, the polarity and amplitude of current also jump, resulting in great current impact and current regulation time. In addition, when the commercial power is recovered, the direct current bus voltage is required to be larger than the charging voltage, the charging state is switched to be the charging state, the direct current bus voltage is required to be larger than the charging voltage, the charging voltage is larger than the flywheel voltage stabilization value, the difference value between the direct current bus voltage and the charging voltage is larger, and otherwise, false operation is caused.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and an electronic device for switching operating modes, so as to improve the reliability of switching between a charging state and a discharging state in an energy storage flywheel, and simultaneously ensure the voltage and current response speed and quality of the energy storage flywheel.
In a first aspect, an embodiment of the present invention provides a method for switching a working mode, where the method includes: detecting the direct-current bus voltage of the energy storage flywheel in real time; determining the current working mode of the energy storage flywheel according to the direct current bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode; and switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold.
Further, the step of detecting the dc bus voltage of the energy storage flywheel in real time includes: collecting the voltage of a direct current bus to be processed; the voltage of a direct current bus to be processed is an analog signal; converting the analog signal into a digital signal to obtain an intermediate direct current bus voltage; and filtering the intermediate direct current bus voltage to obtain the direct current bus voltage.
Further, the step of determining the current working mode of the energy storage flywheel according to the dc bus voltage, the preset charging voltage threshold and the preset discharging voltage threshold includes: if the voltage of the direct-current bus is greater than the charging voltage threshold, determining that the current working mode of the energy storage flywheel is a charging mode; and if the voltage of the direct current bus is smaller than the discharge voltage threshold value, determining that the current working mode of the energy storage flywheel is a discharge mode.
Further, according to the current working mode, the current dc bus voltage of the energy storage flywheel, the charging voltage threshold, and the discharging voltage threshold, the step of switching the current working mode of the energy storage flywheel includes: determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and a charging voltage threshold value and a discharging voltage threshold value according to the current working mode; and switching the current working mode of the energy storage flywheel according to the comparison result.
Further, according to the current working mode, the step of determining the comparison result between the current direct current bus voltage of the energy storage flywheel and the charging voltage threshold and the discharging voltage threshold includes: if the current working mode is the charging mode, determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and a discharging voltage threshold; and if the current working mode is the discharging mode, determining the comparison result of the current direct-current bus voltage of the energy storage flywheel and the charging voltage threshold.
Further, according to the comparison result, the step of switching the current working mode of the energy storage flywheel includes: if the current direct-current bus voltage is greater than or equal to the charging voltage threshold, switching the current working mode of the energy storage flywheel into a charging mode; and if the current direct current bus voltage is less than or equal to the discharge voltage threshold, switching the current working mode of the energy storage flywheel into a discharge mode.
Further, the step of determining the current working mode of the energy storage flywheel according to the dc bus voltage, the preset charging voltage threshold and the preset discharging voltage threshold further includes: and if the direct current bus voltage is smaller than the charging voltage threshold value and the direct current bus voltage is larger than the discharging voltage threshold value, determining that the current working mode of the energy storage flywheel is unchanged.
In a second aspect, an embodiment of the present invention provides an apparatus for switching operating modes, where the apparatus includes: the detection device is used for detecting the direct-current bus voltage of the energy storage flywheel in real time; the determining device is used for determining the current working mode of the energy storage flywheel according to the direct-current bus voltage, the preset charging voltage threshold and the preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode; and the switching device is used for switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the method for switching the operating mode of any one of the first aspect.
In a fourth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to carry out a method of switching operating modes of any one of the first aspect.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a method and a device for switching working modes and electronic equipment, wherein the method comprises the steps of detecting the direct-current bus voltage of an energy storage flywheel; determining the current working mode of the energy storage flywheel according to the direct current bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode; and switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold. According to the method, the current working mode of the energy storage flywheel is judged through the direct current bus voltage and a preset charging and discharging voltage threshold, and then the current working mode is switched according to the current working mode and the current direct current bus voltage, so that the energy storage flywheel can rapidly carry out a discharging mode or a charging mode, the reliability of switching the charging state and the discharging state in the energy storage flywheel is improved, and meanwhile, the voltage and current response speed and quality of the energy storage flywheel are guaranteed.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for switching operating modes according to an embodiment of the present invention;
fig. 2 is a flowchart of a main program of a method for switching operating modes according to an embodiment of the present invention;
fig. 3 is a flowchart of detecting a dc bus voltage according to an embodiment of the present invention;
fig. 4 is a flow chart of a timer interrupt of a method for switching operating modes according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a switching device of an operating mode according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Energy storage flywheels are generally suitable for working scenarios in which charging and discharging states are frequently switched, wherein the switching of the charging and discharging states, particularly the switching from the charging state to the discharging state, requires ensuring the voltage and current response speed and quality of the flywheel.
In the related art, the working state is usually switched by comparing the dc bus voltage with the charging voltage and the discharging voltage, but in this way, only when the dc bus voltage is less than the discharging voltage, the flywheel starts to gradually increase the discharging voltage to a flywheel voltage stabilization value, wherein a larger dc bus support capacitor cannot play a role in stabilizing the voltage, and also can prolong the rise time of the voltage, which is generally in the order of milliseconds or even tens milliseconds; meanwhile, due to the jump of voltage and the switching of charging and discharging, the polarity and amplitude of current also jump, resulting in great current impact and current regulation time. In addition, when the commercial power is recovered, the direct current bus voltage is required to be larger than the charging voltage, the charging state is switched to be the charging state, the direct current bus voltage is required to be larger than the charging voltage, the charging voltage is larger than the flywheel voltage stabilization value, the difference value between the direct current bus voltage and the charging voltage is larger, and otherwise, false operation is caused.
Based on this, the method, the device and the electronic device for switching the operating mode provided by the embodiment of the invention can be applied to an energy storage flywheel, and particularly can be applied to a controller of the energy storage flywheel.
For the convenience of understanding the present embodiment, a detailed description will be given to a method for switching an operation mode disclosed in the present embodiment, which is applied to a Digital Signal controller, such as a TI series DSP (Digital Signal processing) chip TMS320F28335 Digital Signal controller. As shown in fig. 1, the method comprises the steps of:
step S102, detecting the direct current bus voltage of the energy storage flywheel in real time;
the voltage detection of the charging and discharging switching of the energy storage flywheel is one of key technologies of the whole system, and guarantees that the energy storage flywheel is reliably switched from a charging mode to a discharging mode or from the discharging mode to the charging mode. Therefore, the charging and discharging switching control of the energy storage flywheel must complete accurate direct current bus voltage detection.
Because the direct-current bus voltage is an analog signal and is easily interfered by a high-power electromagnetic signal of the spring-ploughing flywheel motor, the signal needs to be amplified, filtered, conditioned and the like when being detected. Specifically, the flywheel dc bus voltage value can be analyzed by reading data of an AD (analog to digital conversion) channel in the digital signal controller.
Firstly, the system carries out initialization setting including timer interruption, I/O configuration, AD interruption and the like, and opens the interruption in a time-sharing manner. The AD interruption is mainly used for collecting analog voltage signals by a program at a certain frequency and detecting the voltage value of the direct current bus in real time.
Step S104, determining the current working mode of the energy storage flywheel according to the direct current bus voltage, the preset charging voltage threshold and the preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode;
the preset charging voltage threshold and the preset discharging voltage threshold can be generally set according to the energy storage flywheel, actual requirements and actual scenes. The charging voltage threshold is set to be greater than the discharging voltage threshold for ensuring uninterrupted power supply to the load. For example, the charge voltage threshold is 500V, and the discharge voltage threshold is 400V.
Generally, when commercial power exists, the voltage of the energy storage flywheel direct current bus is kept at a higher value and is larger than a charging voltage threshold value, and when the commercial power drops, the voltage of the energy storage flywheel direct current bus is continuously reduced and is smaller than a set discharging voltage threshold value, and at the moment, a flywheel battery is required to supply power (namely discharge) and the voltage of the direct current bus is kept constant, so that uninterrupted power supply of a load is ensured.
Specifically, the current working mode of the energy storage flywheel can be determined according to the voltage of the direct current bus, the preset charging voltage threshold and the preset discharging voltage threshold.
And S106, switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold.
Specifically, after the current operating mode of the energy storage flywheel is determined, the dc bus voltage may also change along with the operation of the energy storage flywheel, so that the operating mode of the energy storage flywheel that needs to be switched is determined according to the current dc bus voltage of the energy storage flywheel. Typically, switching from a charging mode to a discharging mode and from a discharging mode to a charging mode is included.
When the energy storage flywheel is controlled to switch the charging and discharging modes, the current working mode is judged at first, the discharging state is judged only in the charging mode, and the charging state can be judged in the discharging mode, so that the repeated operation of programs is avoided. Generally speaking, the voltage detection needs to be performed one to three times according to the voltage of the direct current bus, for example, the mode switching can be performed by satisfying the condition once in three times, or the mode switching can be performed only when satisfying the condition once in three times, and a specific strategy can be set according to actual conditions.
The embodiment of the invention provides a method for switching working modes, which comprises the steps of detecting the direct-current bus voltage of an energy storage flywheel; determining the current working mode of the energy storage flywheel according to the direct current bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode; and switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold. According to the method, the current working mode of the energy storage flywheel is judged through the direct current bus voltage and a preset charging and discharging voltage threshold, and then the current working mode is switched according to the current working mode and the current direct current bus voltage, so that the energy storage flywheel can rapidly carry out a discharging mode or a charging mode, the reliability of switching the charging state and the discharging state in the energy storage flywheel is improved, and meanwhile, the voltage and current response speed and quality of the energy storage flywheel are guaranteed.
The step of detecting the dc bus voltage of the energy storage flywheel in real time is a possible implementation manner: collecting the voltage of a direct current bus to be processed; the voltage of a direct current bus to be processed is an analog signal; converting the analog signal into a digital signal to obtain an intermediate direct current bus voltage; and filtering the intermediate direct current bus voltage to obtain the direct current bus voltage.
The direct current bus voltage to be processed is an analog signal and is easily interfered by a high-power electromagnetic signal of a flywheel motor, so that the signal needs to be amplified, filtered, conditioned and the like when signal acquisition is carried out, the filter comprises a hardware filtering part and a software filtering part, wherein the hardware filtering part comprises a first-order RC filter, a second-order active filter and the like, and the software filtering part comprises a deluxe value filtering part, a weighted average filtering part, a moving average filtering part, a low-pass filtering part and the like. The selection of these filters needs to be selected according to the actual situation, in combination with the system cut-off frequency, etc. Then converting the analog signal into a digital signal to obtain an intermediate direct current bus voltage; and then, filtering the intermediate direct current bus voltage again to obtain the direct current bus voltage.
The following describes how to determine the current operating mode of the energy storage flywheel, and specifically includes: if the voltage of the direct-current bus is greater than the charging voltage threshold, determining that the current working mode of the energy storage flywheel is a charging mode; and if the voltage of the direct current bus is smaller than the discharge voltage threshold value, determining that the current working mode of the energy storage flywheel is a discharge mode.
In addition, the step of determining the current working mode of the energy storage flywheel according to the dc bus voltage, the preset charging voltage threshold and the preset discharging voltage threshold further includes: and if the direct current bus voltage is smaller than the charging voltage threshold value and the direct current bus voltage is larger than the discharging voltage threshold value, determining that the current working mode of the energy storage flywheel is unchanged.
For example, if the voltage of the direct current bus is 600V and is greater than the charging voltage threshold value of 500V, determining that the current working mode of the energy storage flywheel is the charging mode; and if the voltage of the direct current bus is 300V smaller than the discharge voltage threshold value 400V, determining that the current working mode of the energy storage flywheel is a discharge mode. And if the direct current bus voltage 450V is smaller than the charging voltage threshold value 500V and the direct current bus voltage 450V is larger than the discharging voltage threshold value 400V, determining that the current working mode of the energy storage flywheel is unchanged.
How to switch the current working mode is described below, which specifically includes:
(1) determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and a charging voltage threshold value and a discharging voltage threshold value according to the current working mode;
specifically, the threshold value for comparison is selected according to the charge mode and the discharge mode. One possible implementation: if the current working mode is the charging mode, determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and a discharging voltage threshold; and if the current working mode is the discharging mode, determining the comparison result of the current direct-current bus voltage of the energy storage flywheel and the charging voltage threshold.
And if the current working mode is the charging mode, determining whether the current direct-current bus voltage of the energy storage flywheel is smaller than a discharging voltage threshold value. And if the current working mode is the discharging mode, determining whether the current direct-current bus voltage of the energy storage flywheel is greater than the charging voltage threshold value.
(2) And switching the current working mode of the energy storage flywheel according to the comparison result.
One possible implementation: if the current direct-current bus voltage is greater than or equal to the charging voltage threshold, switching the current working mode of the energy storage flywheel into a charging mode; and if the current direct current bus voltage is less than or equal to the discharge voltage threshold, switching the current working mode of the energy storage flywheel into a discharge mode.
Specifically, the timer interrupt is used for regularly detecting the voltage value of the direct current bus and comparing the voltage value with a charging and discharging voltage threshold value, when the voltage measurement value of the direct current bus is smaller than or equal to the discharging voltage threshold value, the energy storage flywheel immediately switches the charging mode to the discharging mode, the corresponding variable is set, the variable is set to be 1, when the voltage measurement value of the direct current bus is larger than or equal to the charging voltage threshold value, the energy storage flywheel immediately switches the discharging mode to the charging mode, the corresponding variable is reset, and the variable is set to be 1.
Referring to the flow chart of the main program shown in fig. 2, the system is powered on and completes initialization reset and register initialization; then, timer timing interrupt waits for a main control system instruction, after receiving a main control system starting instruction, the controller opens AD interrupt and timer interrupt, enters a main cycle and waits for interrupt; referring to the flow chart of the dc bus voltage detection shown in fig. 3, after entering the AD interrupt entry, it is first determined whether the main control system has an instruction, if there is an instruction to read AD channel data, formaldehyde and analysis processing is performed on the dc bus voltage to obtain a final dc bus voltage, then the AD interrupt variable is reset, and the AD interrupt entry is entered again to detect the dc bus voltage in real time or at regular time. Referring to fig. 4, entering timer interrupt, a timer interrupt function, and judging whether the current system operating mode is in a discharging state, comparing the measured dc bus voltage value with a charging voltage threshold value, if the dc bus voltage is higher than or equal to the charging voltage threshold value, switching the system to the charging mode, and setting an operating mode variable to-1. And if the current system working mode is judged to be not the discharging state but the charging state, comparing the direct current bus voltage value obtained by measurement with the discharging voltage value, and if the direct current bus voltage is lower than or equal to the discharging voltage, switching the system into the discharging mode, and setting the working mode variable to be 1.
In the mode, the TI series DSP chip TMS320F28335 digital signal controller is fully utilized to realize the flywheel DC bus voltage detection function, the working mode of the flywheel is judged according to the DC bus voltage measurement value and the set charge-discharge voltage threshold, and then the switching mode of the flywheel is judged according to the current DC bus voltage measurement value and the set charge-discharge voltage threshold, so that the energy storage flywheel can rapidly carry out the discharge mode or the charge mode, the reliability of switching the charge state and the discharge state in the energy storage flywheel is improved, and the voltage and current response speed and quality of the energy storage flywheel are ensured.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a device for switching an operating mode, as shown in fig. 5, where the device includes:
the detection device 51 is used for detecting the direct-current bus voltage of the energy storage flywheel in real time;
the determining device 52 is configured to determine a current operating mode of the energy storage flywheel according to the dc bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode;
and the switching device 53 is configured to switch the current operating mode of the energy storage flywheel according to the current operating mode, the current dc bus voltage of the energy storage flywheel, the charging voltage threshold, and the discharging voltage threshold.
The embodiment of the invention provides a switching device of working modes, which is used for detecting the direct-current bus voltage of an energy storage flywheel; determining the current working mode of the energy storage flywheel according to the direct current bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold; wherein the charging voltage threshold is greater than the discharging voltage threshold; the working modes comprise: a charging mode and a discharging mode; and switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold. According to the method, the current working mode of the energy storage flywheel is judged through the direct current bus voltage and a preset charging and discharging voltage threshold, and then the current working mode is switched according to the current working mode and the current direct current bus voltage, so that the energy storage flywheel can rapidly carry out a discharging mode or a charging mode, the reliability of switching the charging state and the discharging state in the energy storage flywheel is improved, and meanwhile, the voltage and current response speed and quality of the energy storage flywheel are guaranteed.
Further, the detection device module is further configured to: collecting the voltage of a direct current bus to be processed; the voltage of a direct current bus to be processed is an analog signal; converting the analog signal into a digital signal to obtain an intermediate direct current bus voltage; and filtering the intermediate direct current bus voltage to obtain the direct current bus voltage.
Further, the determining module is further configured to: if the voltage of the direct-current bus is greater than the charging voltage threshold, determining that the current working mode of the energy storage flywheel is a charging mode; and if the voltage of the direct current bus is smaller than the discharge voltage threshold value, determining that the current working mode of the energy storage flywheel is a discharge mode.
Further, the switching module is further configured to: determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and a charging voltage threshold value and a discharging voltage threshold value according to the current working mode; and switching the current working mode of the energy storage flywheel according to the comparison result.
Further, the switching module is further configured to: if the current working mode is the charging mode, determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and a discharging voltage threshold; and if the current working mode is the discharging mode, determining the comparison result of the current direct-current bus voltage of the energy storage flywheel and the charging voltage threshold.
Further, the switching module is further configured to: if the current direct-current bus voltage is greater than or equal to the charging voltage threshold, switching the current working mode of the energy storage flywheel into a charging mode; and if the current direct current bus voltage is less than or equal to the discharge voltage threshold, switching the current working mode of the energy storage flywheel into a discharge mode.
Further, the determining module is further configured to: and if the direct current bus voltage is smaller than the charging voltage threshold value and the direct current bus voltage is larger than the discharging voltage threshold value, determining that the current working mode of the energy storage flywheel is unchanged.
The switching device of the working mode provided by the embodiment of the invention has the same technical characteristics as the switching method of the working mode provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment also provides an electronic device, which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the switching method of the working modes.
Referring to fig. 6, the electronic device includes a processor 100 and a memory 101, where the memory 101 stores machine executable instructions capable of being executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the method for switching the operating mode.
Further, the electronic device shown in fig. 6 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.
The Memory 101 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
Processor 100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 100. The Processor 100 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The present embodiments also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described method of switching operating modes.
The method and apparatus for switching operating modes and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for switching operating modes, the method comprising:
detecting the direct-current bus voltage of the energy storage flywheel in real time;
determining the current working mode of the energy storage flywheel according to the direct current bus voltage, a preset charging voltage threshold value and a preset discharging voltage threshold value; wherein the charge voltage threshold is greater than the discharge voltage threshold; the working modes comprise: a charging mode and a discharging mode;
and switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold.
2. The method of claim 1, wherein the step of detecting the dc bus voltage of the energy storage flywheel in real time comprises:
collecting the voltage of a direct current bus to be processed in real time; the voltage of the direct current bus to be processed is an analog signal; converting the analog signal into a digital signal to obtain an intermediate direct current bus voltage;
and filtering the intermediate direct current bus voltage to obtain the direct current bus voltage.
3. The method of claim 1, wherein the step of determining the current operating mode of the energy storage flywheel according to the dc bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold comprises:
if the direct current bus voltage is larger than the charging voltage threshold value, determining that the current working mode of the energy storage flywheel is a charging mode;
and if the voltage of the direct current bus is smaller than the discharge voltage threshold value, determining that the current working mode of the energy storage flywheel is a discharge mode.
4. The method according to claim 1, wherein the step of switching the current operation mode of the energy storage flywheel according to the current operation mode, the current dc bus voltage of the energy storage flywheel, the charging voltage threshold, and the discharging voltage threshold comprises:
according to the current working mode, determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and the charging voltage threshold and the discharging voltage threshold;
and switching the current working mode of the energy storage flywheel according to the comparison result.
5. The method of claim 4, wherein the step of determining the comparison of the current DC bus voltage of the energy storage flywheel with the charging voltage threshold and the discharging voltage threshold according to the current operating mode comprises:
if the current working mode is a charging mode, determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and the discharge voltage threshold;
and if the current working mode is a discharging mode, determining a comparison result of the current direct-current bus voltage of the energy storage flywheel and the charging voltage threshold.
6. The method according to claim 4, wherein the step of switching the current operation mode of the energy storage flywheel according to the comparison result comprises:
if the current direct-current bus voltage is larger than or equal to the charging voltage threshold, switching the current working mode of the energy storage flywheel into the charging mode;
and if the current direct current bus voltage is less than or equal to the discharge voltage threshold, switching the current working mode of the energy storage flywheel into the discharge mode.
7. The method of claim 1, wherein the step of determining the current operating mode of the energy storage flywheel according to the dc bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold further comprises:
and if the direct current bus voltage is smaller than the charging voltage threshold value and the direct current bus voltage is larger than the discharging voltage threshold value, determining that the current working mode of the energy storage flywheel is unchanged.
8. An apparatus for switching operation modes, the apparatus comprising:
the detection device is used for detecting the direct-current bus voltage of the energy storage flywheel in real time;
the determining device is used for determining the current working mode of the energy storage flywheel according to the direct current bus voltage, a preset charging voltage threshold and a preset discharging voltage threshold; wherein the charge voltage threshold is greater than the discharge voltage threshold; the working modes comprise: a charging mode and a discharging mode;
and the switching device is used for switching the current working mode of the energy storage flywheel according to the current working mode, the current direct-current bus voltage of the energy storage flywheel, the charging voltage threshold and the discharging voltage threshold.
9. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of switching operating modes of any one of claims 1 to 7.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of switching operating modes of any one of claims 1 to 7.
CN202111072248.5A 2021-09-14 2021-09-14 Working mode switching method and device and electronic equipment Pending CN113629883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111072248.5A CN113629883A (en) 2021-09-14 2021-09-14 Working mode switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111072248.5A CN113629883A (en) 2021-09-14 2021-09-14 Working mode switching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113629883A true CN113629883A (en) 2021-11-09

Family

ID=78389899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111072248.5A Pending CN113629883A (en) 2021-09-14 2021-09-14 Working mode switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113629883A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189007A (en) * 2021-11-15 2022-03-15 阳光电源股份有限公司 Vehicle-mounted charger working mode switching control method and device and vehicle-mounted charger
CN114326538A (en) * 2022-01-10 2022-04-12 北京泓慧国际能源技术发展有限公司 Magnetic suspension flywheel control system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189007A (en) * 2021-11-15 2022-03-15 阳光电源股份有限公司 Vehicle-mounted charger working mode switching control method and device and vehicle-mounted charger
CN114189007B (en) * 2021-11-15 2024-04-12 阳光电源股份有限公司 Vehicle-mounted charger working mode switching control method and device and vehicle-mounted charger
CN114326538A (en) * 2022-01-10 2022-04-12 北京泓慧国际能源技术发展有限公司 Magnetic suspension flywheel control system and method

Similar Documents

Publication Publication Date Title
CN113629883A (en) Working mode switching method and device and electronic equipment
CN106569129B (en) Motor safety detection method and system and electric machine control system
CN113865003B (en) Air purifier, filter screen service life detection method and device thereof, and storage medium
EP2176968A1 (en) A method of reducing power consumption in a ue when the ue is in idle mode
CN112865021B (en) Motor protection method, device, equipment and storage medium
CN107218702B (en) Air conditioner, air conditioner frequency adjusting method and computer readable storage medium
CN114499560A (en) Signal demodulation method, device, equipment and storage medium for radio communication
EP3879549A1 (en) Method and device for determining closing time of circuit breaker, and computer-readable medium
CN110513823B (en) Temperature control method and device of intelligent power module and air conditioner
CN111740607A (en) Circuit control device
CN103186152B (en) Hysteresis comparison control method
CN111478629B (en) Position detection method and device of permanent magnet brushless direct current motor and electrical equipment
CN110632397B (en) Signal analysis method and computer readable storage medium
CN110602296B (en) Method and device for calibrating motion steps of stepping motor and mobile terminal
CN110635537B (en) Charging control method and device and robot
CN112947841A (en) Method, device, equipment and storage medium for reading embedded flash memory data
CN108668415B (en) Mode switching method and device of intelligent lighting equipment
CN117233484A (en) Open-phase detection method, open-phase detection device and medium for three-phase power supply
CN113078854A (en) Motor control method and device and motor
CN111186337A (en) Battery fault judging method and device
CN110286328B (en) Battery pack simulation power input control method and equipment
CN218524856U (en) Chip reset detection circuit and power consumption equipment
CN109659901B (en) Protection method and device for direct current motor and electronic equipment
CN110784134B (en) Adaptive filtering control method and control device in sensorless control
CN114204522A (en) Protection method and protection system for inverter direct-current bus and air conditioner

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