CN115800444A - Charging control method and device, computer equipment and storage medium - Google Patents
Charging control method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN115800444A CN115800444A CN202211492678.7A CN202211492678A CN115800444A CN 115800444 A CN115800444 A CN 115800444A CN 202211492678 A CN202211492678 A CN 202211492678A CN 115800444 A CN115800444 A CN 115800444A
- Authority
- CN
- China
- Prior art keywords
- value
- current
- voltage value
- battery
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the application belongs to the technical field of electronic equipment charging, and relates to a charging control method and device, computer equipment and a storage medium. By acquiring the real-time voltage value of the flashlight battery and intelligently distributing the charging mode matched with the real-time voltage value, on one hand, the output of voltage and current can be effectively controlled, and the consumption of unnecessary energy is reduced; on the other hand, because the output current, the output voltage and the voltage value of the battery are dynamically adjusted, abnormal charging phenomena such as overvoltage charging and the like are effectively avoided, and the service life of the battery is further effectively prolonged.
Description
Technical Field
The present disclosure relates to the field of electronic device charging technologies, and in particular, to a charging control method and apparatus, a computer device, and a storage medium.
Background
With the development of science and technology, storage batteries become more and more important in our lives. The storage battery is an energy storage device which can be charged and discharged for many times, so that the service life and the service efficiency of the storage battery can be directly influenced by the charging of the storage battery.
In a conventional battery charge control method, a voltage between both electrodes of a battery is maintained at a constant value.
However, the applicant finds that the conventional storage battery charging control method has certain disadvantages, in the initial charging stage, if the discharge depth of the storage battery is too deep, the charging current is very large, which endangers the safety of the charger, the battery may be damaged due to overcurrent, and if the charging voltage is selected to be too low, the charging current is too small in the later stage, which results in too long charging time.
Disclosure of Invention
An embodiment of the present application aims to provide a charging control method, an apparatus, a computer device, and a storage medium, so as to solve the problems of a conventional charging control method, such as shortened battery life and low charging efficiency.
In order to solve the above technical problem, an embodiment of the present application provides a charging control method, which adopts the following technical solutions:
acquiring a battery voltage value which is acquired by an acquisition module and corresponds to a battery of the flashlight;
if the voltage value of the battery is smaller than the preset minimum voltage value, setting the output voltage value and the output current value as a first voltage preset value and a first current preset value respectively;
if the battery voltage value is larger than a preset highest voltage value, setting the output voltage value and the output current value as a second voltage preset value and a second current preset value respectively;
and if the battery voltage value is between the lowest voltage value and the highest voltage value, setting the output voltage value and the output current value as the battery voltage value and the second current preset value respectively.
Further, before the step of obtaining the battery voltage value corresponding to the battery of the flashlight collected by the collecting module, the method further includes the following steps:
and sending square wave signals of which the output voltage value and the output current value are the first voltage preset value and the activation current preset value respectively to the battery so as to activate the battery.
Further, after the step of setting the output voltage value and the output current value to be a second voltage preset value and a second current preset value respectively if the battery voltage value is greater than a preset maximum voltage value, the method further includes the following steps:
after a preset delay time, setting the output voltage value and the output current value as the battery voltage value and the second current preset value, respectively.
Further, after the step of setting the output voltage value and the output current value as the battery voltage value and a second current preset value respectively if the battery voltage value is between the lowest voltage value and the highest voltage value, the method further includes the following steps:
acquiring a first current output current value and a first current battery voltage value corresponding to the battery;
judging whether the first current output current value is smaller than 100mA;
if the first current output current value is smaller than 100mA, setting the output voltage value and the output current value as the first voltage preset value and the first current preset value respectively;
if the first current output current value is greater than or equal to 100mA, judging whether the first current battery voltage value is greater than 3.2V;
if the first current battery voltage value is larger than 3.2V, setting the output voltage value and the output current value as the battery voltage value and a third current preset value respectively;
and if the first current battery voltage value is less than or equal to 3.2V, executing the step of obtaining the first current output current value and the first current battery voltage value corresponding to the battery.
Further, after the step of setting the output voltage value and the output current value as the battery voltage value and a third current preset value respectively if the first current battery voltage value is greater than 3.2V, the method further includes the following steps:
acquiring a second current output current value and a second current battery voltage value corresponding to the battery;
judging whether the second current output current value is smaller than 100mA;
if the second current output current value is less than 100mA, setting the output voltage value and the output current value as the battery voltage value and the second current preset value respectively;
if the second current output current value is greater than or equal to 100mA, judging whether the second current battery voltage value is greater than 3.8V;
if the second current battery voltage value is larger than 3.8V, setting the output voltage value and the output current value as the third voltage preset value and the third current preset value respectively;
and if the second current battery voltage value is less than or equal to 3.8V, executing the step of obtaining a second current output current value and a second current battery voltage value corresponding to the battery.
Further, after the step of setting the output voltage value and the output current value as the third voltage preset value and the third current preset value respectively if the second current battery voltage value is greater than 3.8V, the method further includes the following steps:
acquiring a third current output current value and a third current battery voltage value corresponding to the battery;
judging whether the third current battery voltage value is less than 3.8V or not;
if the third current battery voltage value is less than 3.8V, setting the output voltage value and the output current value as the battery voltage value and the third current preset value respectively;
if the third current battery voltage value is greater than or equal to 3.8V, judging whether the third current output current value is less than 100mA;
if the third current output current value is less than 100mA, setting the output voltage value and the output current value as the second voltage preset value and the second current preset value respectively;
and if the third current output current value is greater than or equal to 100mA, executing the step of obtaining the third current output current value and a third current battery voltage value corresponding to the battery.
Further, the step of setting the output voltage value and the output current value to a third voltage preset value and a third current preset value respectively includes the following steps:
acquiring the current pole temperature of the battery;
judging whether the current pole temperature is greater than a preset healthy temperature value or not;
if the pole temperature is higher than the preset healthy temperature value, the battery is charged by floating charging voltage;
and if the pole temperature is less than or equal to the preset healthy temperature value, setting the output voltage value and the output current value as the third voltage preset value and the third current preset value respectively.
In order to solve the above technical problem, an embodiment of the present application further provides a charging control device, which adopts the following technical solutions:
the voltage value acquisition module is used for acquiring the battery voltage value which is acquired by the acquisition module and corresponds to the battery of the flashlight;
the battery-free module is used for setting an output voltage value and an output current value as the first voltage preset value and the first current preset value respectively if the battery voltage value is smaller than a preset minimum voltage value;
a full-voltage module, configured to set the output voltage value and the output current value as the second voltage preset value and the second current preset value, respectively, if the battery voltage value is greater than a preset maximum voltage value;
the pre-charge module is configured to set the output voltage value and the output current value as the battery voltage value and the second current preset value, respectively, if the battery voltage value is between the lowest voltage value and the highest voltage value.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
comprising a memory having computer readable instructions stored therein and a processor implementing the steps of the charging control method as described above when executing the computer readable instructions.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
the computer readable storage medium has stored thereon computer readable instructions which, when executed by a processor, implement the steps of the charging control method as described above.
The application provides a charging control method, which comprises the following steps: acquiring a battery voltage value which is acquired by an acquisition module and corresponds to a battery of the flashlight; if the voltage value of the battery is smaller than the preset minimum voltage value, setting the output voltage value and the output current value as a first voltage preset value and a first current preset value respectively; if the battery voltage value is greater than a preset maximum voltage value, setting the output voltage value and the output current value as a second voltage preset value and a second current preset value respectively; and if the battery voltage value is between the lowest voltage value and the highest voltage value, setting the output voltage value and the output current value as the battery voltage value and the second current preset value respectively. Compared with the prior art, the method and the device have the advantages that the real-time voltage value of the flashlight battery is collected, and the charging mode matched with the real-time voltage value is intelligently distributed, so that on one hand, the output of voltage and current can be effectively controlled, and the consumption of unnecessary energy is reduced; on the other hand, because the output current, the output voltage and the voltage value of the battery are dynamically adjusted, abnormal charging phenomena such as overvoltage charging and the like are effectively avoided, and the service life of the battery is further effectively prolonged.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart illustrating an implementation of a charging control method according to an embodiment of the present application;
FIG. 2 is a flowchart of one embodiment of FIG. 1 after step S114;
FIG. 3 is a flowchart of one embodiment of FIG. 2 after step S125;
FIG. 4 is a flowchart of one embodiment of FIG. 3 after step S135;
FIG. 5 is a flow diagram of one embodiment of steps S135 or S145 of FIG. 3 or FIG. 4;
fig. 6 is a schematic structural diagram of a charging control device according to a second embodiment of the present application;
FIG. 7 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
Example one
Continuing to refer to fig. 1, a flowchart of an implementation of a charging control method provided in a first embodiment of the present application is shown, and for convenience of description, only a portion related to the present application is shown.
The charging control method is applied to the flashlight and comprises the following steps: step S111, step S112, step S113, and step S114.
In step S111, a battery voltage value corresponding to the battery of the flashlight collected by the collection module is obtained.
In step S112, if the battery voltage value is smaller than the preset minimum voltage value, the output voltage value and the output current value are respectively set as a first voltage preset value and a first current preset value.
In the embodiment of the present application, the preset minimum voltage value is mainly used for uniquely determining whether the flashlight is battery-less, where a user may dynamically adjust the preset minimum voltage value according to an actual situation, and as an example, the preset minimum voltage value may be 2.9V.
In the embodiment of the present application, the charging control mode in which the output voltage value and the output current value are respectively the first voltage preset value and the first current preset value is a battery-less mode, and a user may dynamically adjust the first voltage preset value and the first current preset value according to an actual situation, for example, the first voltage preset value and the first current preset value may be 4.0V and 500mA, and it should be understood that the examples of the first voltage preset value and the first current preset value are only for convenience of understanding and are not used for limiting the present application.
In step S113, if the battery voltage value is greater than the preset maximum voltage value, the output voltage value and the output current value are respectively set as a second voltage preset value and a second current preset value.
In the embodiment of the present application, the preset maximum voltage value is mainly used for uniquely determining whether the battery of the flashlight is in a full-power state, wherein a user may dynamically adjust the preset maximum voltage value according to an actual situation, for example, the preset maximum voltage value may be 4.1V, and it should be understood that the example of the preset maximum voltage value is only for convenience of understanding, and is not used to limit the present application.
In the embodiment of the present application, the charging control mode in which the output voltage value and the output current value are respectively the second voltage preset value and the second current preset value is the full charge mode.
In step S114, if the battery voltage value is between the lowest voltage value and the highest voltage value, the output voltage value and the output current value are set as the battery voltage value and the second current default value, respectively.
In the embodiment of the present application, the voltage value between the lowest voltage value and the highest voltage value indicates that the battery is in a state of being not fully charged, and the battery needs to be charged.
In the embodiment of the present application, the charging control mode in which the output voltage value and the output current value are respectively the battery voltage value and the second current preset value is the pre-charging mode.
In an embodiment of the present application, there is provided a charge control method, including: acquiring a battery voltage value which is acquired by an acquisition module and corresponds to a battery of the flashlight; if the voltage value of the battery is smaller than the preset minimum voltage value, setting the output voltage value and the output current value as a first voltage preset value and a first current preset value respectively; if the voltage value of the battery is greater than the preset highest voltage value, setting the output voltage value and the output current value as a second voltage preset value and a second current preset value respectively; and if the battery voltage value is between the lowest voltage value and the highest voltage value, setting the output voltage value and the output current value as the battery voltage value and a second current preset value respectively. Compared with the prior art, the method and the device have the advantages that the real-time voltage value of the flashlight battery is collected, and the charging mode matched with the real-time voltage value is intelligently distributed, so that on one hand, the output of voltage and current can be effectively controlled, and the consumption of unnecessary energy is reduced; on the other hand, because the output current, the output voltage and the voltage value of the battery are dynamically adjusted, abnormal charging phenomena such as overvoltage charging and the like are effectively avoided, and the service life of the battery is further effectively prolonged.
In some optional implementations of this embodiment, before step S111, the following step is further included:
and sending square wave signals with output voltage values and output current values respectively being a first voltage preset value and an activation current preset value to the battery so as to activate the battery.
In the embodiment of the present application, the activation current preset value is mainly used for activating the battery, and a user may dynamically adjust the activation current preset value according to an actual situation, for example, the activation current preset value may be 1.0V, and it should be understood that the example of the activation current preset value is only for convenience of understanding, and is not used to limit the present application.
In some optional implementations of this embodiment, after step S113, the following step is further included:
and after the preset delay time, setting the output voltage value and the output current value as a battery voltage value and a second current preset value respectively.
In the embodiment of the present application, a user may dynamically adjust a preset delay time according to an actual situation, for example, the preset delay time may be set to 2 seconds, 5 seconds, 10 seconds, and the like.
In the embodiment of the present application, after the battery is charged for a period of time according to the full charge mode in which the output voltage value and the output current value are respectively the second voltage preset value and the second current preset value, the battery may have a loss, so that the battery is in a non-full charge state, and therefore, after the preset delay time, the charging control manner is converted into the pre-charge mode in which the output voltage value and the output current value are respectively set to the battery voltage value and the second current preset value to charge the battery, so that the battery is greatly maintained in the full charge state.
Continuing to refer to fig. 2, a flowchart of one embodiment of fig. 1 after step S114 is shown, and for ease of illustration, only the portions relevant to the present application are shown.
In some optional implementations of this embodiment, after step S114, the method further includes: step S121, step S122, step S123, step S124, step S125, and step S126.
In step S121, a first present output current value and a first present battery voltage value corresponding to the battery are obtained;
in step S122, it is determined whether the first present output current value is less than 100mA;
in step S123, if the first current output current value is smaller than 100mA, the output voltage value and the output current value are respectively set as a first voltage preset value and a first current preset value;
in step S124, if the first current output current value is greater than or equal to 100mA, it is determined whether the first current battery voltage value is greater than 3.2V;
in step S125, if the first current battery voltage value is greater than 3.2V, the output voltage value and the output current value are respectively set as a battery voltage value and a third current preset value;
in step S126, if the first current battery voltage value is less than or equal to 3.2V, the step of obtaining the first current output current value and the first current battery voltage value corresponding to the battery is performed.
In the embodiment of the present application, the charging control mode in which the output voltage value and the output current value are respectively set as the battery voltage value and the third current preset value is a constant current mode, wherein a user may dynamically adjust the third current preset value according to an actual situation, for example, the third current preset value may be 4500mA, and it should be understood that the example of the third current preset value is only for convenience of understanding, and is not limited to this application.
Continuing to refer to fig. 3, a flowchart of one embodiment of fig. 2 is shown after step S125, and for ease of illustration, only the portions relevant to the present application are shown.
In some optional implementations of this embodiment, after step S125, the method further includes: step S131, step S132, step S133, step S134, step S135, and step S136.
In step S131, a second current output current value and a second current battery voltage value corresponding to the battery are obtained;
in step S132, it is determined whether the second current output current value is less than 100mA;
in step S133, if the second current output current value is smaller than 100mA, the output voltage value and the output current value are respectively set as the battery voltage value and the second current preset value;
in step S134, if the second current output current value is greater than or equal to 100mA, determining whether the second current battery voltage value is greater than 3.8V;
in step S135, if the second current battery voltage value is greater than 3.8V, the output voltage value and the output current value are respectively set as a third voltage preset value and a third current preset value;
in step S136, if the second current battery voltage value is less than or equal to 3.8V, a step of obtaining a second current output current value and a second current battery voltage value corresponding to the battery is performed.
In the embodiment of the present application, the charging control mode in which the output voltage value and the output current value are respectively set to the third voltage preset value and the third current preset value is a constant voltage mode.
Continuing to refer to fig. 4, a flowchart of one embodiment of fig. 3 following step S135 is shown, and for ease of illustration, only the portions relevant to the present application are shown.
In some optional implementations of this embodiment, after step S135, the method further includes: step S141, step S142, step S143, step S144, step S145, and step S146.
In step S141, a third current output current value and a third current battery voltage value corresponding to the battery are obtained;
in step S142, it is determined whether the third current battery voltage value is less than 3.8V;
in step S143, if the third current battery voltage value is less than 3.8V, setting the output voltage value and the output current value as the battery voltage value and the third current preset value, respectively;
in step S144, if the third present battery voltage value is greater than or equal to 3.8V, it is determined whether the third present output current value is less than 100mA;
in step S145, if the third current output current value is smaller than 100mA, the output voltage value and the output current value are respectively set as a second voltage preset value and a second current preset value;
in step S146, if the third current output current value is greater than or equal to 100mA, the step of obtaining the third current output current value and a third current battery voltage value corresponding to the battery is performed.
Continuing to refer to fig. 5, a flowchart of one embodiment of step S135 or S145 of fig. 3 or 4 is shown, and for ease of illustration, only the portions relevant to the present application are shown.
In some optional implementations of this embodiment, the step S135 or S145 specifically includes: step S1351, step S1352, step S1353, and step S1354.
In step S1351, the current post temperature of the battery is acquired.
In this application embodiment, the mode of tradition measurement battery temperature is through the direct temperature that obtains of measuring on the shell of battery of temperature sensor, however, the applicant finds that traditional battery temperature measurement mode has the error, can not reflect the inside temperature of battery directly perceivedly, and the measurement of utmost point post temperature reflects the inside temperature of battery directly perceivedly through measuring utmost point post temperature, compares in the temperature that the measurement shell obtained, and utmost point post temperature's measurement is more accurate.
In step S1352, it is determined whether the current pole temperature is greater than the preset healthy temperature value.
In the embodiment of the application, the preset health temperature value is mainly used for uniquely judging whether the charging temperature of the battery can affect the working efficiency and the service life of the battery, and a user can adjust the preset health temperature value according to specific conditions.
In step S1353, if the pole temperature is higher than the preset healthy temperature value, the battery is charged by the floating charge voltage.
In the embodiment of the present application, the floating charge voltage refers to a voltage output by a rectifier in a process of connecting the rectifier and a storage battery in parallel to a feeder line in a communication power supply system, and supplying power by the rectifier when the mains supply is normal, and also slightly compensating the current of the storage battery, and this power supply mode is called floating charge.
In step S1354, if the pole temperature is less than or equal to the preset healthy temperature value, the output voltage value and the output current value are respectively set to a third voltage preset value and a third current preset value.
In this application embodiment, can reflect the utmost point post temperature of the inside temperature of battery directly perceived through detecting to judge whether this utmost point post temperature is in healthy charged state, thereby further confirm whether to switch into more stable safe float voltage mode of charging, greatly prolong the life of battery, improve the work efficiency of battery.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, can include processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Example two
With further reference to fig. 6, as an implementation of the method shown in fig. 1, the present application provides an embodiment of a charging control device applied to a flashlight, where the embodiment of the charging control device corresponds to the embodiment of the method shown in fig. 1, and the charging control device can be applied to various electronic devices.
As shown in fig. 6, the charge control device 100 of the present embodiment includes: a voltage value obtaining module 110, a battery-less module 120, a first full module 130, and a pre-charging module 140. Wherein:
the voltage value acquisition module 110 is configured to acquire a battery voltage value corresponding to a battery of the flashlight and acquired by the acquisition module;
the battery-less module 120 is configured to set the output voltage value and the output current value as a first voltage preset value and a first current preset value, respectively, if the battery voltage value is smaller than a preset minimum voltage value;
a first full-voltage module 130, configured to set the output voltage value and the output current value as a second voltage preset value and a second current preset value, respectively, if the battery voltage value is greater than a preset maximum voltage value;
the pre-charging module 140 is configured to set the output voltage value and the output current value as the battery voltage value and a second current preset value, respectively, if the battery voltage value is between the lowest voltage value and the highest voltage value.
In the embodiment of the present application, a charging control device 100 is provided, and the present application collects the real-time voltage value of the flashlight battery and intelligently allocates the charging mode matched with the real-time voltage value, so that on one hand, the output of voltage and current can be effectively controlled, and the consumption of unnecessary energy is reduced; on the other hand, because the output current, the output voltage and the voltage value of the battery are dynamically adjusted, abnormal charging phenomena such as overvoltage charging and the like are effectively avoided, and the service life of the battery is further effectively prolonged.
In some optional implementations of the present embodiment, the charging control apparatus 100 further includes: an activation module, wherein:
and the activation module is used for sending square wave signals of which the output voltage value and the output current value are respectively a first voltage preset value and an activation current preset value to the battery so as to activate the battery.
In some optional implementations of the present embodiment, the charging control apparatus 100 further includes: a delay module, wherein:
and the delay module is used for respectively setting the output voltage value and the output current value as the battery voltage value and the second current preset value after presetting the delay time.
In some optional implementations of the present embodiment, the charging control apparatus 100 further includes: the battery pack comprises a first real-time acquisition module, a first current judgment module, a first battery-free module, a first voltage judgment module, a second full-charge module and a first circulation acquisition module, wherein:
the first real-time acquisition module is used for acquiring a first current output current value and a first current battery voltage value corresponding to the battery;
the first current judging module is used for judging whether the first current output current value is smaller than 100mA;
the first battery-free module is used for setting the output voltage value and the output current value as a first voltage preset value and a first current preset value respectively if the first current output current value is less than 100mA;
the first voltage judging module is used for judging whether the first current battery voltage value is larger than 3.2V or not if the first current output current value is larger than or equal to 100mA;
the second full-power module is used for setting the output voltage value and the output current value as a battery voltage value and a third current preset value respectively if the first current battery voltage value is larger than 3.2V;
and the first cycle acquisition module is used for executing the step of acquiring the first current output current value and the first current battery voltage value corresponding to the battery if the first current battery voltage value is less than or equal to 3.2V.
In some optional implementations of the present embodiment, the charging control apparatus 100 further includes: the second real-time acquisition module, the second current judgment module, the second pre-charge module, the second voltage judgment module, the first constant voltage module and the second cyclic acquisition module, wherein:
the second real-time acquisition module is used for acquiring a second current output current value and a second current battery voltage value corresponding to the battery;
the second current judging module is used for judging whether the second current output current value is smaller than 100mA;
the second pre-charge module is used for setting the output voltage value and the output current value as a battery voltage value and a second current preset value respectively if the second current output current value is smaller than 100mA;
the second voltage judging module is used for judging whether the second current battery voltage value is greater than 3.8V or not if the second current output current value is greater than or equal to 100mA;
the first constant voltage module is used for setting the output voltage value and the output current value as a third voltage preset value and a third current preset value respectively if the second current battery voltage value is larger than 3.8V;
and the second cycle acquisition module is used for executing the step of acquiring a second current output current value and a second current battery voltage value corresponding to the battery if the second current battery voltage value is less than or equal to 3.8V.
In some optional implementations of the present embodiment, the charging control apparatus 100 further includes: a third real-time obtaining module, a third voltage judging module, a third pre-charging module, a third current judging module, a second constant voltage module and a third circulation obtaining module, wherein:
the third real-time acquisition module is used for acquiring a third current output current value and a third current battery voltage value corresponding to the battery;
the third voltage judging module is used for judging whether the voltage value of the third current battery is less than 3.8V or not;
the third pre-charge module is used for setting the output voltage value and the output current value as a battery voltage value and a third current preset value respectively if the third current battery voltage value is smaller than 3.8V;
the third current judging module is used for judging whether the third current output current value is less than 100mA or not if the third current battery voltage value is greater than or equal to 3.8V;
the second constant voltage module is used for setting the output voltage value and the output current value as a second voltage preset value and a second current preset value respectively if the third current output current value is smaller than 100mA;
and the third cycle acquisition module is used for executing the step of acquiring the third current output current value and a third current battery voltage value corresponding to the battery if the third current output current value is greater than or equal to 100 mA.
In some optional implementations of this embodiment, the first constant voltage module or the second constant voltage module includes: the temperature acquisition submodule, the temperature judgment submodule, the float voltage submodule and the constant voltage submodule.
The temperature acquisition submodule is used for acquiring the current pole temperature of the battery;
the temperature judgment submodule is used for judging whether the current pole temperature is greater than a preset healthy temperature value or not;
the floating charging voltage module is used for charging the battery by using floating charging voltage if the temperature of the pole is greater than a preset health temperature value;
and the constant voltage sub-module is used for setting the output voltage value and the output current value as a third voltage preset value and a third current preset value respectively if the temperature of the pole is less than or equal to a preset healthy temperature value.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 7, fig. 7 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 300 includes a memory 310, a processor 320, and a network interface 330 communicatively coupled to each other via a system bus. It is noted that only computer device 300 having components 310-330 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 310 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 310 may be an internal storage unit of the computer device 300, such as a hard disk or a memory of the computer device 300. In other embodiments, the memory 310 may also be an external storage device of the computer device 300, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 300. Of course, the memory 310 may also include both internal and external storage devices of the computer device 300. In this embodiment, the memory 310 is generally used for storing an operating system installed in the computer device 300 and various application software, such as computer readable instructions of a charging control method. In addition, the memory 310 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 320 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 320 is generally operative to control overall operation of the computer device 300. In this embodiment, the processor 320 is configured to execute computer readable instructions or process data stored in the memory 310, for example, execute computer readable instructions of the charging control method.
The network interface 330 may include a wireless network interface or a wired network interface, and the network interface 330 is generally used to establish a communication connection between the computer device 300 and other electronic devices.
According to the computer equipment, the real-time voltage value of the flashlight battery is collected, and the charging mode matched with the real-time voltage value is intelligently distributed, so that on one hand, the output of voltage and current can be effectively controlled, and the consumption of unnecessary energy is reduced; on the other hand, because the output current, the output voltage and the voltage value of the battery are dynamically adjusted, abnormal charging phenomena such as overvoltage charging and the like are effectively avoided, and the service life of the battery is further effectively prolonged.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the charging control method as described above.
According to the computer-readable storage medium, the real-time voltage value of the flashlight battery is collected, and the charging mode matched with the real-time voltage value is intelligently distributed, so that on one hand, the output of voltage and current can be effectively controlled, and the consumption of unnecessary energy is reduced; on the other hand, because the output current, the output voltage and the voltage value of the battery are dynamically adjusted, abnormal charging phenomena such as overvoltage charging and the like are effectively avoided, and the service life of the battery is further effectively prolonged.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It should be understood that the above-described embodiments are merely exemplary of some, and not all, embodiments of the present application, and that the drawings illustrate preferred embodiments of the present application without limiting the scope of the claims appended hereto. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.
Claims (10)
1. A charging control method applied to a flashlight is characterized by comprising the following steps:
acquiring a battery voltage value which is acquired by an acquisition module and corresponds to a battery of the flashlight;
if the voltage value of the battery is smaller than the preset minimum voltage value, setting the output voltage value and the output current value as a first voltage preset value and a first current preset value respectively;
if the battery voltage value is larger than a preset highest voltage value, setting the output voltage value and the output current value as a second voltage preset value and a second current preset value respectively;
and if the battery voltage value is between the lowest voltage value and the highest voltage value, setting the output voltage value and the output current value as the battery voltage value and a second current preset value respectively.
2. The charge control method according to claim 1, further comprising, before the step of obtaining the voltage value of the battery corresponding to the battery of the flashlight collected by the collection module, the steps of:
and sending square wave signals of which the output voltage value and the output current value are the first voltage preset value and the activation current preset value respectively to the battery so as to activate the battery.
3. The charge control method according to claim 1, further comprising, after the step of setting the output voltage value and the output current value to a second voltage preset value and a second current preset value, respectively, if the battery voltage value is greater than a preset maximum voltage value, the steps of:
after a preset delay time, setting the output voltage value and the output current value as the battery voltage value and the second current preset value, respectively.
4. The charge control method according to claim 1, further comprising, after the step of setting the output voltage value and the output current value to the battery voltage value and a second current preset value, respectively, if the battery voltage value is between the lowest voltage value and the highest voltage value, the steps of:
acquiring a first current output current value and a first current battery voltage value corresponding to the battery;
judging whether the first current output current value is smaller than 100mA;
if the first current output current value is smaller than 100mA, setting the output voltage value and the output current value as the first voltage preset value and the first current preset value respectively;
if the first current output current value is greater than or equal to 100mA, judging whether the first current battery voltage value is greater than 3.2V;
if the first current battery voltage value is larger than 3.2V, setting the output voltage value and the output current value as the battery voltage value and a third current preset value respectively;
and if the first current battery voltage value is less than or equal to 3.2V, executing the step of obtaining the first current output current value and the first current battery voltage value corresponding to the battery.
5. The charge control method according to claim 4, further comprising, after the step of setting the output voltage value and the output current value to the battery voltage value and a third current preset value, respectively, if the first present battery voltage value is greater than 3.2V, the steps of:
acquiring a second current output current value and a second current battery voltage value corresponding to the battery;
judging whether the second current output current value is smaller than 100mA;
if the second current output current value is less than 100mA, setting the output voltage value and the output current value as the battery voltage value and the second current preset value respectively;
if the second current output current value is greater than or equal to 100mA, judging whether the second current battery voltage value is greater than 3.8V;
if the second current battery voltage value is larger than 3.8V, setting the output voltage value and the output current value as a third voltage preset value and a third current preset value respectively;
and if the second current battery voltage value is less than or equal to 3.8V, executing the step of obtaining a second current output current value and a second current battery voltage value corresponding to the battery.
6. The charge control method according to claim 5, further comprising, after the step of setting the output voltage value and the output current value to a third voltage preset value and a third current preset value, respectively, if the second present battery voltage value is greater than 3.8V, the steps of:
acquiring a third current output current value and a third current battery voltage value corresponding to the battery;
judging whether the third current battery voltage value is less than 3.8V or not;
if the third current battery voltage value is less than 3.8V, setting the output voltage value and the output current value as the battery voltage value and the third current preset value respectively;
if the third current battery voltage value is greater than or equal to 3.8V, judging whether the third current output current value is less than 100mA;
if the third current output current value is less than 100mA, setting the output voltage value and the output current value as the second voltage preset value and the second current preset value respectively;
and if the third current output current value is greater than or equal to 100mA, executing the step of obtaining the third current output current value and a third current battery voltage value corresponding to the battery.
7. The charge control method according to claim 5 or 6, wherein the step of setting the output voltage value and the output current value to a third voltage preset value and a third current preset value respectively comprises the following steps:
acquiring the current pole temperature of the battery;
judging whether the current pole temperature is greater than a preset healthy temperature value or not;
if the pole temperature is higher than the preset healthy temperature value, the battery is charged by floating charging voltage;
and if the pole temperature is less than or equal to the preset healthy temperature value, setting the output voltage value and the output current value as a third voltage preset value and a third current preset value respectively.
8. A charge control device, characterized by comprising:
the voltage value acquisition module is used for acquiring the battery voltage value which is acquired by the acquisition module and corresponds to the battery of the flashlight;
the battery-free module is used for setting an output voltage value and an output current value as the first voltage preset value and the first current preset value respectively if the battery voltage value is smaller than a preset minimum voltage value;
a full-voltage module, configured to set the output voltage value and the output current value as the second voltage preset value and the second current preset value, respectively, if the battery voltage value is greater than a preset maximum voltage value;
the pre-charging module is configured to set the output voltage value and the output current value as the battery voltage value and the second current preset value, respectively, if the battery voltage value is between the lowest voltage value and the highest voltage value.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor that when executed performs the steps of the charge control method of any one of claims 1 to 7.
10. A computer-readable storage medium having computer-readable instructions stored thereon which, when executed by a processor, implement the steps of the charge control method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211492678.7A CN115800444A (en) | 2022-11-25 | 2022-11-25 | Charging control method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211492678.7A CN115800444A (en) | 2022-11-25 | 2022-11-25 | Charging control method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115800444A true CN115800444A (en) | 2023-03-14 |
Family
ID=85441626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211492678.7A Pending CN115800444A (en) | 2022-11-25 | 2022-11-25 | Charging control method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115800444A (en) |
-
2022
- 2022-11-25 CN CN202211492678.7A patent/CN115800444A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111308357B (en) | Battery capacity estimation method, battery management system, vehicle, and storage medium | |
CN112448434B (en) | Charging control method and charging control device | |
WO2014101807A1 (en) | Method and terminal for displaying capacity of battery | |
CN107332208B (en) | A kind of protection circuit, mainboard guard method and terminal | |
EP3185348B1 (en) | A battery information detection and control method, smart battery,terminal and computer storage medium | |
CN110445213B (en) | Charging management system, method, device and storage medium | |
CN110739751A (en) | lithium battery and charge-discharge state monitoring method thereof | |
CN105425168A (en) | Storage battery capacity detection method and apparatus in power supply system | |
CN111146837A (en) | Charging method and device, electronic device and storage medium | |
CN109148986B (en) | Charging method and device | |
WO2024174556A1 (en) | Vehicle endurance mileage test method and system | |
WO2024183285A1 (en) | Method for determining state of charge of power battery, and related device | |
CN113741674A (en) | Power consumption control method, system, terminal and storage medium for notebook computer | |
CN109765492A (en) | UPS energy storage battery test method and terminal device | |
CN103124097A (en) | Intelligent lithium ion charger | |
CN205029395U (en) | Embedded intelligent charging ware | |
EP2852021A1 (en) | Charging circuit and control method therefor | |
CN115800444A (en) | Charging control method and device, computer equipment and storage medium | |
CN112820961B (en) | Quick charging method, device and system of energy storage equipment and storage medium | |
CN116325422A (en) | System and method for determining battery charging current in situ | |
CN113507154B (en) | Charging method and device, charger and electronic equipment | |
CN113013935B (en) | Control method and system of power supply device, terminal equipment and storage medium | |
CN111157907B (en) | Detection method and device, charging method and device, electronic device and storage medium | |
KR101638435B1 (en) | Charge and discharge method of high precision smart charge and discharge apparatus for performance evaluation of redox flow battery | |
CN104679133B (en) | Computer device |
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 |