A charge and discharge control method, system, device, motor equipment and storage medium
By using the charging and discharging control method in base stations and other scenarios, the main power supply status is judged based on the power parameters and the charging and discharging mode of the backup power supply is solved, and the battery life and safety are improved.
Patent Information
- Application Number
- CN202210041277.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2042-01-14
AI Technical Summary
In use scenarios such as base stations, backup power supplies are prone to extreme states of overcharge or over-discharge, resulting in shortening of life or safety hazards.
By implementing the charging and discharging control method in the microprocessor of the energy consumption monitoring unit, the power parameters of the main power supply and the backup power supply are obtained, the working status of the main power supply is judged, and the switch is controlled according to the power status of the backup power supply, and the charging mode or discharge mode is switched.
Effectively prevent the backup power supply from overcharging or overdischarging during charging and discharging, extending battery life and improving safety.
Smart Images

Figure CN114362349B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power technologies, and in particular, to a charge and discharge control method, system, device, motor equipment, and storage medium. Background Art
[0002] In the usage scenarios of base stations, backup power supplies are often used. When the external main power supply is cut off, the backup power supply is used to supply power to the electrical equipment, so as to ensure that the electrical equipment can continue to operate even when the external main power supply suddenly fails. When the external main power supply is powered on, the main power supply supplies power to the electrical equipment and simultaneously charges the backup power supply.
[0003] In normal use, the backup power supply is prone to two extreme states of overcharging or over-discharging, which often leads to a shortened lifespan of the backup power supply and even potential safety hazards of explosion. Summary of the Invention
[0004] To solve the above technical problems, embodiments of the present application provide a charge and discharge control method, system, device, motor equipment, and storage medium. The specific solutions are as follows:
[0005] In a first aspect, embodiments of the present application provide a charge and discharge control method, which is applied to a microprocessor of an energy consumption monitoring unit. The energy consumption monitoring unit further includes a metering chip and a switch. The backup power supply is electrically connected to a load unit through the energy consumption monitoring unit. Both the energy consumption monitoring unit and the load unit are used to connect to the main power supply. The charge and discharge control method includes:
[0006] Obtain the electrical energy parameters collected by the metering chip. The electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction;
[0007] Judge the working state of the main power supply according to the electrical energy parameters;
[0008] When the main power supply is in the power supply state, control the on / off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply;
[0009] When the main power supply is in the power-off state, control the on / off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply.
[0010] According to a specific implementation manner of embodiments of the present application, the step of judging the working state of the main power supply according to the electrical energy parameters includes:
[0011] When the main power supply voltage detected by the metering chip is greater than a preset voltage threshold, it is determined that the main power supply is in the power supply state;
[0012] When the backup power supply voltage detected by the metering chip is greater than a preset voltage threshold and the power direction of the metering chip is flowing towards the load unit, it is determined that the main power supply is in a power-off state.
[0013] According to a specific implementation manner of an embodiment of the present application, when the main power supply is in a power supply state, the steps of controlling the on / off of the switch based on the power state of the backup power supply to control the charging mode of the backup power supply include:
[0014] Obtain the real-time power of the backup power supply;
[0015] Compare whether the real-time power is greater than or equal to a preset maximum power storage threshold;
[0016] If the real-time power is greater than or equal to the preset maximum power storage threshold, control the switch to open to control the main power supply to stop charging the backup power supply;
[0017] If the real-time power is less than the preset maximum power storage threshold, control the switch to close to control the main power supply to charge the backup power supply.
[0018] According to a specific implementation manner of an embodiment of the present application, when the main power supply is in a power-off state, the steps of controlling the on / off of the switch based on the power state of the backup power supply to control the discharging mode of the backup power supply include:
[0019] Obtain the real-time power of the backup power supply;
[0020] Compare whether the real-time power is less than or equal to a preset minimum power storage threshold;
[0021] If the real-time power is less than or equal to the preset minimum power storage threshold, control the switch to open to control the backup power supply to stop discharging to the load unit;
[0022] If the real-time power is greater than the preset minimum power storage threshold, control the switch to close to control the backup power supply to discharge to the load unit.
[0023] According to a specific implementation manner of an embodiment of the present application, the steps of obtaining the electrical energy parameters collected by the metering chip include:
[0024] Initialize the read value of the metering chip;
[0025] Read the main power supply voltage, backup power supply voltage, power direction, and power cumulative information in the metering chip according to a preset time interval;
[0026] Store the power cumulative information in the corresponding charging power data pool and discharging power data pool respectively according to the power direction.
[0027] In a second aspect, an embodiment of the present application provides a charge and discharge control system, which includes: a main power supply, an energy consumption monitoring unit, a load unit, and a backup power supply. Among them, the energy consumption monitoring unit and the load unit are both connected to the main power supply, and the backup power supply is electrically connected to the load unit through the energy consumption monitoring unit;
[0028] The energy consumption monitoring unit includes a metering chip, a microprocessor, and a control switch;
[0029] The metering chip is used to obtain the electrical energy parameters of the main power supply and the backup power supply, and the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction;
[0030] The microprocessor is used to obtain the electrical energy parameters collected by the metering chip; judge the working state of the main power supply according to the electrical energy parameters; when the main power supply is in the power supply state, control the on-off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply; when the main power supply is in the power-off state, control the on-off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply.
[0031] In a third aspect, an embodiment of the present application provides a charge and discharge control device, which is applied to the microprocessor of the energy consumption monitoring unit. The energy consumption monitoring unit further includes a metering chip and a switch, and the backup power supply is electrically connected to the load unit through the energy consumption monitoring unit. The energy consumption monitoring unit and the load unit are both connected to the main power supply. The charge and discharge control device includes:
[0032] An acquisition module, configured to acquire the electrical energy parameters collected by the metering chip, where the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction;
[0033] A judgment module, configured to judge the working state of the main power supply according to the electrical energy parameters;
[0034] A first execution module, configured to control the on-off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply when the main power supply is in the power supply state;
[0035] A second execution module, configured to control the on-off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply when the main power supply is in the power-off state.
[0036] According to a specific implementation manner of the embodiment of the present application, the judgment module is specifically configured to judge that the main power supply is in the power supply state when the main power supply voltage detected by the metering chip is greater than a preset voltage threshold;
[0037] When the backup power supply voltage detected by the metering chip is greater than a preset voltage threshold and the power direction of the metering chip is flowing towards the load unit, it is determined that the main power supply is in a power-off state.
[0038] In a fourth aspect, an embodiment of the present application provides a motor device, and the motor device includes the charge and discharge control system described in the second aspect.
[0039] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a processor, it executes the charge and discharge control method described in the first aspect.
[0040] An embodiment of the present application provides a charge and discharge control method, system, device, motor device, and storage medium, which are applied to a microprocessor of an energy consumption monitoring unit. The energy consumption monitoring unit further includes a metering chip and a switch. A backup power supply is electrically connected to the load unit through the energy consumption monitoring unit. Both the energy consumption monitoring unit and the load unit are used to connect to a main power supply. The charge and discharge control method includes: obtaining electrical energy parameters collected by the metering chip, where the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction; judging the working state of the main power supply according to the electrical energy parameters; when the main power supply is in a power supply state, controlling the on-off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply; when the main power supply is in a power-off state, controlling the on-off of the switch based on the power state of the backup power supply to switch the discharging mode of the backup power supply. The charge and discharge control method of the present application controls the charging mode and discharging mode of the backup power supply through two different control methods, thereby realizing overcharge protection and over-discharge protection for the backup power supply, and effectively improving the service life and safety of the backup power supply. Description of the Drawings
[0041] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the protection scope of the present invention. In each drawing, similar components are numbered similarly.
[0042] Figure 1 It shows a schematic flowchart of a charge and discharge control method provided by an embodiment of the present application;
[0043] Figure 2 It shows a schematic structural diagram of a charge and discharge control system provided by an embodiment of the present application;
[0044] Figure 3 It shows a schematic diagram of device modules of a charge and discharge control device provided by an embodiment of the present application. Detailed implementation manners
[0045] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.
[0046] Generally, the components of the embodiments of the present invention described and illustrated herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0047] In the following text, the terms "including", "having" and their cognates that can be used in various embodiments of the present invention are only intended to represent specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0048] In addition, the terms "first", "second", "third", etc. are only used for descriptive distinction and cannot be understood as indicating or implying relative importance.
[0049] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the various embodiments of the present invention belong. The terms (such as those defined in a general-use dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present invention.
[0050] In the existing base station equipment protection method, a circuit breaker is often set between the external main power supply and the standby power supply of the base station to achieve the protection of the electrical equipment of the base station. The existing circuit breaker protection method can only be used to protect the electrical safety of the electrical equipment of the base station, but cannot achieve the protection of the standby power supply.
[0051] The present application provides an energy consumption monitoring unit, which is arranged on the circuit breaker between the external main power supply and the standby power supply of the base station and is used to execute the charge and discharge control of the standby power supply, so as to achieve the protection of the standby power supply applied in the base station scenario.
[0052] Reference Figure 1, which is a schematic flowchart of a charge and discharge control method provided by an embodiment of the present application. The charge and discharge control method provided by the embodiment of the present application is applied to a microprocessor of an energy consumption monitoring unit. The energy consumption monitoring unit further includes a metering chip and a switch. A backup power supply is electrically connected to a load unit through the energy consumption monitoring unit. Both the energy consumption monitoring unit and the load unit are connected to a main power supply. As Figure 1 shown, the charge and discharge control method includes:
[0053] Step S101, obtain the electrical energy parameters collected by the metering chip. The electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction;
[0054] In a specific implementation manner, the energy consumption monitoring unit in this embodiment can be set in any motor device having a main power supply and a backup power supply. Specifically, the energy consumption monitoring unit is set at a circuit position where the backup power supply is connected to other components in the motor device.
[0055] In this embodiment, the main power supply is connected to the backup power supply through the energy consumption monitoring unit. The main power supply is used to supply power to the load unit in the motor device and is also used to charge the backup power supply. Specifically, the main power supply can be a power supply outside the motor device such as 220V mains electricity, or any battery structure provided inside the motor. The specific form of the main power supply is not limited herein.
[0056] In this embodiment, the load unit is connected to the backup power supply through the energy consumption monitoring unit. The backup power supply is used to store electrical energy and supply power to the load unit in the motor device when the main power supply is powered off. The backup power supply is a battery structure provided inside the motor device. The battery model used for the backup power supply is not specifically limited in this embodiment.
[0057] The energy consumption monitoring unit in this embodiment includes a microprocessor, a metering chip, and a switch. Among them, the metering chip, the microprocessor, and the switch are connected in series in sequence.
[0058] Specifically, the metering chip is used to obtain electrical energy parameters such as the main power supply voltage, the backup power supply voltage, the current direction, the power direction, and the cumulative power consumption information. In this embodiment, the acquisition terminals of the metering chip are respectively connected to the positive electrodes of the main power supply and the backup power supply. The communication terminal of the metering chip is electrically connected to the microprocessor, so that the collected electrical energy parameters can be sent to the microprocessor. Among them, the model of the metering chip can be RN8209B.
[0059] The microprocessor is respectively connected to the communication terminal of the metering chip and the control terminal of the switch. After analyzing the power data collected by the metering chip, the microprocessor sends a control signal to control the on / off of the switch, thereby realizing the real-time control of the charging and discharging actions of the backup power supply.
[0060] The switch can be a switch circuit or a switch chip that is turned on and off according to the electrical signal sent by the microprocessor.
[0061] According to a specific implementation manner of the embodiment of the present application, the steps of obtaining the power parameters collected by the metering chip include:
[0062] Initialize the read value of the metering chip;
[0063] Read the main power supply voltage, backup power supply voltage, power direction, and cumulative power consumption information in the metering chip according to a preset time interval;
[0064] Store the cumulative power consumption information in the corresponding charging power data pool and discharging power data pool according to the power direction.
[0065] In the specific implementation manner, during the process of the metering chip collecting power parameters, the metering chip is set to the read-after-clear mode, that is, every time the power parameters are collected, after sending the currently collected power parameters to the microprocessor, the flag bit value and the read value of the metering chip are initialized, and the next collection action is performed.
[0066] Specifically, a timer with a preset time interval is configured in the microprocessor. The preset time interval can be adaptively set according to the actual application scenario. In this embodiment, the preset time interval is taken as an example of 100 ms.
[0067] After the metering chip is initialized, every 100 ms, the flag bit Flag_100ms of the metering chip is set to 1. When the flag bit of the metering chip is 1, the power direction of the metering chip is read.
[0068] If the power direction value is 1, the power direction of the metering chip is negative power, and the backup power supply is in the discharging state. At this time, the metering chip stores the collected cumulative power consumption information in the discharging power data pool.
[0069] If the power direction value is 0, the power direction of the metering chip is positive power, and the backup power supply is in the charging state. At this time, the metering chip stores the collected cumulative power consumption information in the charging power data pool.
[0070] It should be noted that the cumulative power information collected by the metering chip is the power information during the charging and discharging processes of the backup power supply, and the power consumption generated when the main power supply powers the load unit is not recorded in the metering chip.
[0071] Step S102, determine the working state of the main power supply according to the power parameters;
[0072] In a specific implementation manner, the working state of the main power supply includes a power supply state and a power-off state. When the working state of the main power supply is the power supply state, the main power supply provides electrical energy for the load unit and provides electrical energy for the power storage structure of the backup power supply. When the working state of the main power supply is the power-off state, the backup power supply provides electrical energy for the load unit.
[0073] Different states of the main power supply correspond to different working states of the backup power supply. For different working states of the backup power supply, two different control methods are adopted in this embodiment to achieve the protection of the backup power supply.
[0074] According to a specific implementation manner of an embodiment of the present application, the step of determining the working state of the main power supply according to the power parameters includes:
[0075] When the main power supply voltage detected by the metering chip is greater than a preset voltage threshold, it is determined that the main power supply is in the power supply state;
[0076] When the backup power supply voltage detected by the metering chip is greater than a preset voltage threshold and the power direction of the metering chip is flowing towards the load unit, it is determined that the main power supply is in the power-off state.
[0077] In a specific implementation manner, the metering chip collects the power parameters of the main power supply and the backup power supply according to a preset timer structure, and the microprocessor can determine the working state of the main power supply according to the power parameters collected by the metering chip.
[0078] In this embodiment, when the main power supply voltage collected by the metering chip is greater than a preset voltage threshold, it indicates that the main power supply is currently providing electrical energy for the load unit, that is, the main power supply is in the power supply state.
[0079] When the main power supply voltage detected by the metering chip is less than a preset voltage threshold and the metering chip detects that the backup power supply voltage is also less than a preset voltage threshold, it indicates that the main power supply is in the power-off state at this time and the backup power supply is not providing electrical energy for the load unit either.
[0080] When the voltage of the backup power supply collected by the metering chip is greater than a preset voltage threshold, and the power direction detected by the metering chip is negative power, that is, the power direction is from the backup power supply to the load unit, it indicates that the backup power supply is providing electrical energy to the load unit at this time, and the main power supply is in a power-off state.
[0081] Step S103, when the main power supply is in a power supply state, control the on / off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply;
[0082] In a specific implementation manner, when the main power supply is in a power supply state, the main power supply can simultaneously provide electrical energy to the load unit and charge the backup power supply.
[0083] In this embodiment, by adding an energy consumption monitoring unit between the main power supply and the backup power supply, when the main power supply is in a power supply state, the real-time power of the backup power supply is obtained through the energy consumption monitoring unit, and the on / off of the switch is controlled by the microprocessor of the energy consumption monitoring unit, so as to switch the charging mode of the backup power supply, so as to realize the charging protection of the backup power supply and prevent the backup power supply from being overcharged and causing damage to the backup power supply.
[0084] According to a specific implementation manner of the embodiment of the present application, when the main power supply is in a power supply state, the step of controlling the on / off of the switch based on the power state of the backup power supply to control the charging mode of the backup power supply includes:
[0085] Obtain the real-time power of the backup power supply;
[0086] Compare whether the real-time power is greater than or equal to a preset maximum power storage threshold;
[0087] If the real-time power is greater than or equal to the preset maximum power storage threshold, control the switch to disconnect to control the main power supply to stop charging the backup power supply;
[0088] If the real-time power is less than the preset maximum power storage threshold, control the switch to close to control the main power supply to charge the backup power supply.
[0089] In a specific implementation manner, the microprocessor can calculate the real-time power of the backup power supply through the electrical energy parameters collected by the metering chip.
[0090] Specifically, the real-time power of the backup power supply is obtained by subtracting the power information stored in the discharge power data pool from the power information stored in the charge power data pool. For example, if the real-time power of the backup power supply is Q3, the power information stored in the discharge power data pool is Q2, and the power information stored in the charge power data pool is Q1, the real-time power Q3 of the backup power supply can be calculated based on the calculation formula Q3 = Q1 - Q2.
[0091] In the specific implementation manner, the preset maximum power storage threshold Qmax and minimum power storage threshold Qmin can both be adaptively set according to the actual application scenario, and the specific values of the maximum power storage threshold Qmax and minimum power storage threshold Qmin are not limited herein.
[0092] After obtaining the real-time power of the backup power supply, the microprocessor compares the real-time power with the maximum power storage threshold to determine whether the power stored in the backup power supply exceeds the peak power that the backup power supply can store.
[0093] When the microprocessor determines that the real-time power of the backup power supply is greater than or equal to the maximum power storage threshold, the microprocessor sends a control signal to the switch to disconnect the switch, so as to prevent the main power supply from continuing to charge the backup power supply. As Figure 2 shown, at this time, the energy consumption monitoring unit is truncated, and the main power supply only provides electrical energy for the load unit.
[0094] When the microprocessor determines that the real-time power of the backup power supply is less than the maximum power storage threshold, it means that the backup power supply has not reached the power storage peak at this time. The microprocessor sends a control signal to the switch to close the switch, so as to keep the main power supply providing electrical energy for both the backup power supply and the load unit at the same time. As Figure 2 shown, at this time, the energy consumption monitoring unit is turned on, and the main power supply provides electrical energy for both the backup power supply and the load unit at the same time.
[0095] Step S104, when the main power supply is in a power-off state, control the on / off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply.
[0096] In the specific implementation manner, when the main power supply is in a power-off state, the main power supply no longer provides electrical energy for the load unit. The microprocessor will automatically control the switch of the energy consumption monitoring unit to close, so that the backup power supply enters the discharge mode, and the backup power supply provides electrical energy for the load unit.
[0097] Specifically, in this embodiment, by setting an energy consumption monitoring unit between the backup power supply and the load unit, it can be ensured that the backup power supply will not be over-discharged when supplying power to the load unit, avoiding irreversible damage to the negative electrode of the backup power supply caused by over-discharging of the battery.
[0098] According to a specific implementation manner of the embodiment of the present application, when the main power supply is in a power-off state, the step of controlling the on / off of the switch based on the power state of the backup power supply to control the discharge mode of the backup power supply includes:
[0099] Obtain the real-time power of the backup power supply;
[0100] Compare whether the real-time power is less than or equal to a preset minimum power storage threshold;
[0101] If the real-time power is less than or equal to the preset minimum power storage threshold, control the switch to open to control the backup power supply to stop discharging to the load unit;
[0102] If the real-time power is greater than the preset minimum power storage threshold, control the switch to close to control the backup power supply to discharge to the load unit.
[0103] In a specific real-time manner, obtaining the real-time power of the backup power supply can refer to the description in the above embodiment and will not be elaborated here.
[0104] When the microprocessor determines that the real-time power of the backup power supply is less than or equal to the minimum power storage threshold, it indicates that the backup power supply is already at the critical point of over-discharging. The microprocessor sends a control signal to the switch to make the switch open, thereby stopping the backup power supply from continuing to supply power to the load unit, effectively protecting the backup power supply.
[0105] When the microprocessor determines that the real-time power of the backup power supply is greater than the minimum power storage threshold, it indicates that the electric energy stored in the backup power supply can still continue to supply power to the load unit. The microprocessor sends a control signal to the switch to make the switch closed, thereby ensuring that the backup power supply continues to supply power to the load unit, and maximizing the utilization of the stored electric energy of the backup power supply.
[0106] According to a specific real-time manner of the embodiment of the present application, the charge and discharge control system further includes an alarm and prompt unit. When the microprocessor detects that the power in the backup power supply is lower than the preset minimum power storage threshold, the alarm and prompt unit will send a battery over-discharge alarm and prompt message to a fixed user terminal to remind the user to check the working status of the backup power supply and the main power supply.
[0107] In a specific real-time mode, when the microprocessor detects that the power in the backup power supply is higher than a preset maximum power storage threshold, the alarm and prompt unit will send a battery over-discharge alarm and prompt message to a fixed user terminal to remind the user to check the switch and metering chip of the energy consumption monitoring unit, preventing the switch and metering chip of the energy consumption monitoring unit from being damaged and unable to continue to effectively protect the backup power supply.
[0108] The charge and discharge control method provided by the embodiment of the present application can protect the charge and discharge process of the backup power supply through two different control methods. During the charging process, the switch can be controlled based on the real-time power of the backup power supply to prevent the main power supply from overcharging the backup power supply, resulting in battery overcharging damage. During the discharging process, the switch can be controlled based on the real-time power of the backup power supply to prevent the backup power supply from over-discharging the load unit, resulting in battery over-discharge damage, effectively improving the battery usage efficiency in the industrial environment, enhancing the safety of the backup power supply, and extending the service life of the backup power supply.
[0109] Reference Figure 2 , is a schematic structural diagram of a charge and discharge control system provided by the embodiment of the present application. The charge and discharge control system provided by the embodiment of the present application, as Figure 2 shown, the charge and discharge control system includes: a main power supply, an energy consumption monitoring unit, a load unit, and a backup power supply. Among them, the energy consumption monitoring unit and the load unit are both connected to the main power supply, and the backup power supply is electrically connected to the load unit through the energy consumption monitoring unit;
[0110] The energy consumption monitoring unit includes a metering chip, a microprocessor, and a control switch;
[0111] The metering chip is used to obtain the electrical energy parameters of the main power supply and the backup power supply, and the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction;
[0112] The microprocessor is used to obtain the electrical energy parameters collected by the metering chip; judge the working state of the main power supply according to the electrical energy parameters; when the main power supply is in the power supply state, control the on / off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply; when the main power supply is in the power-off state, control the on / off of the switch based on the power state of the backup power supply to switch the discharging mode of the backup power supply.
[0113] In a specific real-time mode, the specific real-time mode of the charge and discharge control system in this embodiment can refer to the specific real-time mode of the above method embodiment, and will not be elaborated here one by one.
[0114] Reference Figure 3, which is a schematic diagram of the device modules of a charge and discharge control device 300 provided by an embodiment of the present application. The charge and discharge control device 300 provided by the embodiment of the present application is applied to the microprocessor of an energy consumption monitoring unit. The energy consumption monitoring unit further includes a metering chip and a switch. A backup power supply is electrically connected to a load unit through the energy consumption monitoring unit. Both the energy consumption monitoring unit and the load unit are connected to a main power supply. As Figure 3 shown, the charge and discharge control device 300 includes:
[0115] An acquisition module 301, configured to acquire the electrical energy parameters collected by the metering chip. The electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction;
[0116] A judgment module 302, configured to judge the working state of the main power supply according to the electrical energy parameters;
[0117] A first execution module 303, configured to, when the main power supply is in a power supply state, control the on-off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply;
[0118] A second execution module 304, configured to, when the main power supply is in a power-off state, control the on-off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply.
[0119] According to a specific implementation manner of an embodiment of the present application, the judgment module 302 is specifically configured to, when the main power supply voltage detected by the metering chip is greater than a preset voltage threshold, judge that the main power supply is in a power supply state;
[0120] When the backup power supply voltage detected by the metering chip is greater than a preset voltage threshold and the power direction of the metering chip is flowing to the load unit, judge that the main power supply is in a power-off state.
[0121] In addition, an embodiment of the present application also provides a motor device, and the motor device includes the charge and discharge control system in the above embodiment.
[0122] An embodiment of the present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium, and when the computer program runs on a processor, it executes the charge and discharge control method in the above embodiment.
[0123] In summary, the embodiments of the present application provide a charge and discharge control method, system, device, motor equipment and storage medium. By setting two different control methods for the discharge process and the charging process of the backup power supply, it can effectively prevent overcharge damage caused by overcharging of the backup power supply during the charging process, and prevent overdischarge damage caused by overdischarging of the backup power supply during the discharge process, thereby effectively improving the service life of the backup power supply and the safety of using the backup power supply. In addition, for the specific implementation processes of the charge and discharge control system, charge and discharge control device, motor equipment and computer-readable storage medium mentioned in the above embodiments, reference can be made to the specific implementation processes of the above method embodiments, which will not be elaborated here one by one.
[0124] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and structure diagrams in the drawings show the possible architectures, functions and operations of devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, program segment or part of code, and the module, program segment or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the blocks may occur in a different order from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the structure diagram and / or flowchart, and the combination of blocks in the structure diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0125] In addition, in each embodiment of the present invention, each functional module or unit may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
[0126] When the above-described function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0127] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention.
Claims
1. A charge and discharge control method, characterized in that, it is applied to the microprocessor of the energy consumption monitoring unit. The energy consumption monitoring unit further includes a metering chip and a switch. The backup power supply is electrically connected to the load unit through the energy consumption monitoring unit. Both the energy consumption monitoring unit and the load unit are connected to the main power supply. The charge and discharge control method includes: Obtain the electrical energy parameters collected by the metering chip, where the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction; Judge the working state of the main power supply according to the electrical energy parameters; When the main power supply is in the power supply state, control the on-off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply; When the main power supply is in the power-off state, control the on-off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply; The step of judging the working state of the main power supply according to the electrical energy parameters includes: When the main power supply voltage detected by the metering chip is greater than the preset voltage threshold, it is determined that the main power supply is in the power supply state; When the backup power supply voltage detected by the metering chip is greater than the preset voltage threshold and the power direction of the metering chip is flowing to the load unit, it is determined that the main power supply is in the power-off state; When the main power supply is in the power supply state, the step of controlling the on-off of the switch based on the power state of the backup power supply to control the charging mode of the backup power supply includes: Obtain the real-time power of the backup power supply; Compare whether the real-time power is greater than or equal to the preset maximum storage threshold; If the real-time power is greater than or equal to the preset maximum storage threshold, control the switch to disconnect to control the main power supply to stop charging the backup power supply; If the real-time power is less than the preset maximum storage threshold, control the switch to close to control the main power supply to charge the backup power supply; Wherein, the main power supply is sourced from the commercial power.
2. The charge and discharge control method according to claim 1, characterized in that, When the main power supply is in the power-off state, the step of controlling the on-off of the switch based on the power state of the backup power supply to control the discharge mode of the backup power supply includes: Obtain the real-time power of the backup power supply; Compare whether the real-time power is less than or equal to the preset minimum storage threshold; If the real-time power is less than or equal to the preset minimum storage threshold, control the switch to disconnect to control the backup power supply to stop discharging to the load unit; If the real-time power is greater than the preset minimum storage threshold, control the switch to close to control the backup power supply to discharge to the load unit.
3. The method according to claim 1, characterized in that, The step of obtaining the electrical energy parameters collected by the metering chip includes: Initialize the read value of the metering chip; Read the main power supply voltage, backup power supply voltage, power direction, and cumulative power information in the metering chip according to the preset time interval; Store the cumulative power information in the corresponding charging power data pool and discharging power data pool respectively according to the power direction.
4. A charge and discharge control system, characterized in that, The charge and discharge control system includes: a main power supply, an energy consumption monitoring unit, a load unit, and a backup power supply. Among them, the energy consumption monitoring unit and the load unit are both connected to the main power supply, and the backup power supply is electrically connected to the load unit through the energy consumption monitoring unit; The energy consumption monitoring unit includes a metering chip, a microprocessor, and a control switch; The metering chip is used to obtain the electrical energy parameters of the main power supply and the backup power supply, and the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction; The microprocessor is used to obtain the electrical energy parameters collected by the metering chip; judge the working state of the main power supply according to the electrical energy parameters; when the main power supply is in the power supply state, control the on / off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply; when the main power supply is in the power-off state, control the on / off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply; The microprocessor is also used to determine that the main power supply is in the power supply state when the main power supply voltage detected by the metering chip is greater than a preset voltage threshold; determine that the main power supply is in the power-off state when the backup power supply voltage detected by the metering chip is greater than the preset voltage threshold and the power direction of the metering chip is flowing to the load unit; The microprocessor is also used to obtain the real-time power of the backup power supply; compare whether the real-time power is greater than or equal to a preset maximum storage threshold; if the real-time power is greater than or equal to the preset maximum storage threshold, control the switch to disconnect to control the main power supply to stop charging the backup power supply; if the real-time power is less than the preset maximum storage threshold, control the switch to close to control the main power supply to charge the backup power supply.
5. A charge and discharge control device, characterized in that, Applied to the microprocessor of the energy consumption monitoring unit, the energy consumption monitoring unit also includes a metering chip and a switch, the backup power supply is electrically connected to the load unit through the energy consumption monitoring unit, and the energy consumption monitoring unit and the load unit are both connected to the main power supply. The charge and discharge control device includes: An acquisition module, configured to acquire the electrical energy parameters collected by the metering chip, where the electrical energy parameters include the main power supply voltage, the backup power supply voltage, and the power direction; A judgment module, configured to judge the working state of the main power supply according to the electrical energy parameters; A first execution module, configured to control the on / off of the switch based on the power state of the backup power supply to switch the charging mode of the backup power supply when the main power supply is in the power supply state; A second execution module, configured to control the on / off of the switch based on the power state of the backup power supply to switch the discharge mode of the backup power supply when the main power supply is in the power-off state; The judgment module is specifically configured to judge that the main power supply is in the power supply state when the main power supply voltage detected by the metering chip is greater than a preset voltage threshold; judge that the main power supply is in the power-off state when the backup power supply voltage detected by the metering chip is greater than the preset voltage threshold and the power direction of the metering chip is flowing to the load unit; The first execution module is further configured to obtain the real-time power of the backup power supply; compare whether the real-time power is greater than or equal to a preset maximum power storage threshold; if the real-time power is greater than or equal to the preset maximum power storage threshold, control the switch to disconnect to control the main power supply to stop charging the backup power supply; if the real-time power is less than the preset maximum power storage threshold, control the switch to close to control the main power supply to charge the backup power supply, wherein the main power supply is sourced from the mains.
6. A motor device Characterized in that The motor device includes the charge and discharge control system according to claim 4.
7. A computer-readable storage medium Characterized in that The computer-readable storage medium stores a computer program, and when the computer program runs on a processor, it executes the charge and discharge control method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Remote monitoring method, device and system for vehicle-mounted video and storage medium
CN113271437A