Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an anti-overcharge control method, an anti-overcharge control device and a storage medium, which can ensure that a battery load is fully charged and prevent overcharge.
In a first aspect, an overcharge prevention control method according to an embodiment of the present invention includes the steps of:
access detection, namely performing access detection on the load equipment according to the current and/or voltage change of the load interface;
the method comprises the following steps of classified charging, charging the accessed load equipment, and performing classified charging on the load equipment according to the charging voltage and/or the charging current of the load equipment;
and the step detection is carried out, the charging process of the load equipment is divided into a plurality of detection stages, the detection threshold value of each detection stage is set according to different charging types, the charging current and/or the charging voltage of each detection stage are/is detected to obtain a detection result, and the load equipment is subjected to step full-charge detection according to the detection result and the detection threshold value.
According to some embodiments of the invention, the load device charging types include high current device charging, normal device charging, and low current device charging.
According to some embodiments of the present invention, the charging process of the large-current device includes 4 detection stages, where the 4 detection stages respectively sequentially include a normal charging stage of the large-current device, a pre-full stage I of the large-current device, a pre-full stage II of the large-current device, and an idle detection stage of the large-current device.
According to some embodiments of the present invention, the charging process of the normal device charging includes 3 detection stages, and the 3 detection stages sequentially include a normal device pre-charge stage I, a normal device pre-charge stage II, and a normal device no-load detection stage.
According to some embodiments of the present invention, the charging process of the low-current device charging includes 4 detection stages, where the 4 detection stages are a low-current device identification stage, a low-current device normal charging stage, a low-current device pre-charging stage I, and a low-current device pre-charging stage II.
According to some embodiments of the invention, the duration of time when the charging process enters the normal device pre-charge phase II exceeds Tnth2Then, the load equipment enters the low-current equipment identification phase;
or when the charging process enters the idle stage of the common equipment, the time length exceeds Tnth3And then, the load equipment enters the low-current equipment identification phase.
According to some embodiments of the invention, when the charging voltage Vo is greater than the voltage threshold Vefth0Or the charging current Io is larger than the current threshold Iefth0Then, the charging process enters a normal charging stage of the heavy-current equipment;
when the charging current Io is smaller than the current threshold Ienth1Then, the charging process enters a pre-charging stage I of the common equipment, wherein the current threshold Iefth0Greater than a current threshold Ienth1;
After the charging process enters the normal charging stage of the heavy current equipment, when the charging current Io is smaller than the current threshold Iefth1Or the charging current Io is smaller than the current threshold Ienth1And the charging voltage Vo is less than the voltage threshold Vefth0Then, the charging process enters a pre-charging stage I of the heavy current equipment;
when the charging process enters the pre-charging stage I of the high-current equipment, the time length exceeds Tfth1When the charging is finished, the charging path is closed;
when the charging current Io is smaller than the current threshold Iefth2Or the charging current Io is smaller than the current threshold Ienth2And the charging voltage Vo is less than the voltage threshold Vefth0Then, the charging process enters a pre-charging stage II of the heavy current equipment, wherein Iefth2<Ienth2;
When the charging current Io is larger than the current threshold Ixnth1Or the charging current Io is larger than the current threshold Ixfth1And the charging voltage Vo is greater than the voltage threshold Vefth0Then, the charging process returns to the normal charging stage of the heavy-current equipment, wherein Ixfth1<Ixnth1,Iefth1<Ixfth1,Ienth1<Ixnth1;
When the charging process enters the pre-charging stage II of the high-current equipment, the time length exceeds Tfth2When the charging is finished, the charging path is closed;
when the charging current Io is smaller than the current threshold Iefth3Or the charging current Io is smaller than the current threshold Ienth3And the charging voltage Vo is less than the voltage threshold Vefth0Then, the charging process enters the no-load detection stage of the heavy current equipment, wherein Iefth3<Ienth3;
When the charging current Io is larger than the current threshold Ixnth2Or the charging current Io is larger than the current threshold Ixfth2And the charging voltage Vo is greater than the voltage threshold Vefth0Then the charging process returns to the pre-charging stage I of the high-current equipment, wherein Ixfth2<Ixnth2,Iefth2<Ixfth2,Ienth2<Ixnth2;
When the charging process enters the no-load detection stage of the high-current equipment, the time length exceeds Tfth3When the charging is finished, the charging path is closed;
when the charging current Io is larger than the current threshold Ixnth3Or the charging current Io is larger than the current threshold Ixfth3And the charging voltage Vo is greater than the voltage threshold Vefth0Then the charging process returns to the pre-charging stage II of the high-current equipment, wherein Ixfth3<Ixnth3,Iefth3<Ixfth3,Ienth3<Ixnth3。
According to some embodiments of the invention, after the charging process enters the low-current device identification phase, the charging path is closed for a time period TpfThen opening the charging path;
at a time length of TrstThe accumulated charging current Io is greater than the current threshold IphthTime duration T ofphThen long Tph<TphthAnd then, the charging process enters a normal charging stage of the low-current equipment.
In a second aspect, an overcharge prevention control device according to an embodiment of the present invention includes: the load access detection module is used for carrying out access detection on load equipment; the sampling module is used for detecting output current and/or output voltage; an identification module connected with the output end of the sampling module, wherein the identification module is used for receiving the detection signal of the sampling module and executing the anti-overcharge control method of any one of claims 1 to 8; and the path management module is respectively connected with the load access detection module and the identification module and is used for controlling the on-off of a charging path.
In a third aspect, a computer-readable storage medium according to an embodiment of the invention stores a computer program which, when executed by a processor, performs the method steps as described above.
According to one or more technical schemes of the embodiment of the invention, the method has at least the following beneficial effects:
when the load equipment is detected to be accessed, the load equipment is charged until the charging voltage and/or the charging current of the load equipment meet the preset conditions, the load equipment is charged in a classified mode according to the charging voltage and/or the charging current, after the charging in the classified mode is carried out, corresponding detection threshold values are set according to different charging types, and the load equipment is subjected to full-charge detection in stages, so that the situation that the load equipment is not fully charged or overcharged due to the difference of the full-charge voltage and/or the full-charge current of different load equipment can be avoided.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Referring to fig. 1, the present embodiment discloses an overcharge prevention control method, which includes the following steps:
access detection, namely performing access detection on the load equipment according to the current and/or voltage change of the load interface;
classified charging, namely charging the accessed load equipment, and performing classified charging on the load equipment according to the charging voltage and/or the charging current of the load equipment;
and (2) staged detection, namely dividing the charging process of the load equipment into a plurality of detection stages, setting a detection threshold value of each detection stage according to different charging types, detecting the charging current and/or the charging voltage of each detection stage to obtain a detection result, and performing staged full-charge detection on the load equipment according to the detection result and the detection threshold value.
When the load equipment is detected to be accessed, the load equipment is charged until the charging voltage and/or the charging current of the load equipment meet the preset conditions, the load equipment is charged in a classified mode according to the charging voltage and/or the charging current, after the charging in the classified mode is carried out, corresponding detection threshold values are set according to different charging types, and the load equipment is subjected to full-charge detection in stages, so that the situation that the load equipment is not fully charged or overcharged due to the difference of the full-charge voltage and/or the full-charge current of different load equipment can be avoided.
The anti-overcharge control method of the present invention will be described in more detail with reference to fig. 2 and 3 in a specific embodiment, and it should be understood that the following description is only one embodiment of the present invention, and is not intended to limit the present invention.
According to the charging characteristics of the load equipment, the load equipment can be divided into large-current equipment, common equipment and small-current equipment, wherein the large-current equipment is electric equipment such as a mobile phone, a mobile power supply or a notebook computer, the common equipment comprises the small-current equipment and the large-current equipment in a partial state, and the small-current equipment is a Bluetooth headset, a TWS (True Wireless Stereo) charging bin, a smart bracelet or a smart watch and the like. The charging types of the load device include a large-current device charging, a general device charging, and a small-current device charging.
Access detection: referring to fig. 3, when the load device is connected to the load interface, the current and/or the voltage of the load interface may change, so that the access detection of the load device may be implemented by detecting the change of the current and/or the voltage of the load interface, and the access of the device may be detected by detecting the change of the voltage Vo, the voltage DMo, or the voltage DPo in this embodiment.
Charging in a classified manner: and opening a charging path to charge the load equipment, wherein the load equipment is in a normal charging state until the classified identification condition of the charging type is met.
For example, when the charging voltage Vo is greater than the voltage threshold Vefth0Or the charging current Io is larger than the current threshold Iefth0When the load device is identified as a large-current device, the charging process enters a normal charging stage of the large-current device, in this embodiment, the highest voltage of all the small-current devices is smaller than the voltage threshold Vefth0In particular, a voltage threshold Vefth0Setting the voltage to be 6V; the maximum current of all low-current devices is less than the current threshold Iefth0In particular, the current threshold Iefth0The value was set to 1.5A. It should be noted that all the low-current devices mentioned in the description of the present embodiment refer to the low-current electric devices selected in the practical application process, such as the aforementioned bluetooth headset, TWS charging chamber, smart band or smart watch.
When the charging current Io is smaller than the current threshold Ienth1When the load device is identified as a normal device, the charging process enters a normal device pre-charging phase I, wherein the current threshold Iefth0Greater than current thresholdValue Ienth1In the present embodiment, the current threshold Ienth1Greater than the maximum current value of all load devices after a full charge of 5V, in particular, the current threshold value Ienth1Set to 400 mA.
And (3) normal charging stage of the large-current equipment: the high current device is in normal charging.
When the charging current Io is smaller than the current threshold Iefth1Or the charging current Io is smaller than the current threshold Ienth1And the charging voltage Vo is less than the voltage threshold Vefth0And the charging process enters a pre-charging stage I of the high-current equipment. Current threshold value Iefth1Greater than the maximum current value of all heavy current equipment after full charge at high voltage, e.g. 12V, in particular, the current threshold value Iefth1Set to 200mA, current threshold Ienth1Greater than the maximum current value of all load devices after a full charge of 5V, in particular, the current threshold value Ienth1Set to 400 mA. It should be noted that all the high-current devices referred to in the description of the present embodiment refer to high-current electric devices selected in an actual application process, such as the aforementioned electric devices of a mobile phone, a mobile power supply, a notebook computer, or the like.
High-current equipment pre-charging stage I: the large-current equipment carries out pre-full detection in the first stage, so that the condition that power cannot be cut off is prevented.
When the charging process enters a pre-charging stage I of the high-current equipment, the time length exceeds Tfth1When the load device is fully charged, the charging path is closed, wherein Tfth1Indicating the time period T elapsed after all high current devices entered this stagefth1Then all will be fully charged, specifically, Tfth1Set to 60 minutes.
When the charging current Io is smaller than the current threshold Iefth2Or the charging current Io is smaller than the current threshold Ienth2And the charging voltage Vo is less than the voltage threshold Vefth0Then, the charging process enters a pre-charging stage II of the heavy current equipment, wherein Iefth2<Ienth2(ii) a Current threshold value Iefth2Greater than the maximum current value of most heavy current equipment after high-voltage charging is full, specifically, the current threshold value Iefth2Set to 100mA, current threshold Ienth2Greater than the maximum current value of most heavy current equipment after 5V charging and full charging, specifically, the current threshold value Ienth2Set to 150 mA.
When the charging current Io is larger than the current threshold Ixnth1Or the charging current Io is larger than the current threshold Ixfth1And the charging voltage Vo is greater than the voltage threshold Vefth0And when the charging process returns to the normal charging stage of the heavy-current equipment, the charging process is prevented from entering the pre-charging stage I of the heavy-current equipment due to the error change of the charging current and/or the charging voltage, so that the situation that the charging is overtime and the charging is not fully charged actually occurs, wherein Ixfth1<Ixnth1,Iefth1<Ixfth1,Ienth1<Ixnth1. In this embodiment, the current threshold Ixfth1And a current threshold Ixfth1Are all used for preventing the charging process from repeatedly entering and exiting a pre-charging stage I of the heavy current equipment and a current threshold Ixfth1Set to 250mA, current threshold Ixnth1Set to 450 mA.
High-current equipment pre-charging stage II: the large-current equipment carries out pre-full detection in the second stage, so that the situation that the equipment is fully charged but a charging path is not closed for a long time is prevented.
When the charging process enters the pre-charging stage II of the heavy current equipment, the time length exceeds Tfth2While closing the charging path, Tfth2For the minimum time for all high-current devices to enter this phase to full charge, in particular, Tfth2Set to 10 minutes.
When the charging current Io is smaller than the current threshold Iefth3Or the charging current Io is smaller than the current threshold Ienth3And the charging voltage Vo is less than the voltage threshold Vefth0Then, the charging process enters the no-load detection stage of the heavy current equipment, wherein Iefth3<Ienth3. In this embodiment, the current threshold Iefth3Greater than the maximum current value and current threshold value I of most heavy-current equipment after high-voltage chargingenth3Greater than the maximum current value of most heavy current equipment after the voltage of 5V is full, specifically, the current threshold value Iefth3Set to 60mA, Ienth3Set to 80 mA. It is understood that, for better results, the corresponding current detection threshold may be set according to different charging voltages, for example 12V or 24V. It should be noted that, since the currents of different high-current devices after full charge also have differences, the present embodiment sets different current thresholds, such as Iefth1、Iefth2、Iefth3And different high-current equipment is detected in stages so as to prevent the high-current equipment from being overcharged. Reference to "all," "a substantial portion," or "a substantial portion" in the description of the embodiments is intended to merely encompass the relative sizes of the ranges, and the specific limits thereof may be set forth in practice, depending on the particular application.
When the charging current Io is larger than the current threshold Ixnth2Or the charging current Io is larger than the current threshold Ixfth2And the charging voltage Vo is greater than the voltage threshold Vefth0And when the charging process returns to the large-current equipment pre-full stage I, the charging process is prevented from entering the large-current equipment pre-full stage II due to the fact that charging current and/or charging voltage change mistakenly, and therefore the situation that charging is overtime and is not fully charged actually occurs, wherein Ixfth2<Ixnth2,Iefth2<Ixfth2,Ienth2<Ixnth2. In this embodiment, the current threshold Ixfth2Set to 150mA, current threshold Ixnth2Set to 200 mA.
And (3) in the no-load detection stage of the large-current equipment: the no-load detection is carried out on the load equipment, the time from full charge of the load equipment to closing of a charging path is shortened, and the overcharge time of the load equipment is shortened.
When the charging process enters the no-load detection stage of the heavy current equipment, the time length exceeds Tfth3And when the load equipment is fully charged, the charging path is closed, and the overcharge time of the load equipment is shortened. T isfth3For dead time of heavy-current load devices, in particular, Tfth3Set to 32 seconds.
When the charging current Io is larger than the current threshold Ixnth3Or the charging current Io is larger than the current threshold Ixfth3And the charging voltage VoGreater than a voltage threshold Vefth0And when the charging process returns to the pre-full stage II of the heavy current equipment, the charging process is prevented from entering the no-load detection stage of the heavy current equipment due to the error change of the charging current and/or the charging voltage, wherein Ixfth3<Ixnth3,Iefth3<Ixfth3,Ienth3<Ixnth3. In this embodiment, the current threshold Ixfth3Set to 100mA, current threshold Ixnth3Set to 120 mA.
Pre-fill stage I of the generic equipment: the common device performs a first stage of pre-charge detection to prevent the device from being fully charged but not closing the charge path for a long time.
When the charging process enters the pre-charging stage I of the common equipment, the time length exceeds Tnth1When the load device is fully charged, the charging path is closed, wherein Tnth1For the minimum time for all common apparatus to enter this stage to full charge, in particular, Tnth1Set to 150 minutes.
When the charging current Io is smaller than the current threshold Ienth2Then, the charging process enters a pre-charging stage II of the common equipment and a current threshold Ienth2Greater than the maximum current value of most common devices after full charge at 5V, specifically, the current threshold value Ienth2Set to 150 mA.
When the charging current Io is larger than the current threshold Ixnth1And then, the charging process returns to the normal charging stage of the common equipment, so that the charging process is prevented from entering the pre-charging stage I of the common equipment due to the error change of the charging current and/or the charging voltage, and the situation that the common equipment is actually not fully charged due to charging overtime occurs, wherein Ienth2<Ixnth1. In this embodiment, the current threshold Ixnth1For preventing the charging process from repeatedly entering and exiting the pre-charging stage I and the current threshold I of the common equipmentxnth1Set to 450 mA.
Normal equipment pre-fill stage II: the common device performs a second stage of pre-charge detection to prevent the occurrence of a situation where the device is fully charged but the charge path is not closed for a long time.
When the charging process enters the pre-charging stage of the common equipmentDuration of II exceeds Tnth2When the high-current equipment is fully charged, the low-current equipment identification stage is entered, wherein Tnth2For the most common apparatus, the minimum time to enter this stage to full charge, in particular, Tnth2Set to 30 minutes.
When the charging current Io is smaller than the current threshold Ienth3When the charging process enters the no-load detection stage of the common equipment, the current threshold value Ienth3Greater than the maximum current value after full charge of most common devices, in particular, the current threshold Ienth3Set to 80 mA.
When the charging current Io is larger than the current threshold Ixnth2And when the charging process returns to the common equipment pre-charging stage I, the charging process is prevented from entering the common equipment pre-charging stage II due to the fact that charging current and/or charging voltage change by mistake, and therefore the situation that charging is overtime and is not fully charged actually occurs, wherein Ienth2<Ixnth2. In this embodiment, the current threshold Ixnth2For preventing the charging process from repeatedly entering and exiting the pre-charging stage II and the current threshold I of the common equipmentxnth2Set to 200 mA.
And (3) no-load detection stage of the common equipment: the no-load detection is carried out on the load equipment, the time from full charge of the load equipment to closing of a charging path is shortened, and the overcharge time of the load equipment is shortened.
When the charging process enters the no-load detection stage of the common equipment, the time length exceeds Tnth3When the high-current equipment is fully charged, the low-current equipment identification stage is entered, wherein Tnth3For normal equipment dead time, in particular, Tnth3Set to 120 seconds.
When the charging current Io is larger than the current threshold Ixnth3And then, the charging process returns to the pre-charging stage II of the common equipment to prevent the charging process from entering the no-load detection stage of the common equipment due to the error change of the charging current and/or the charging voltage, wherein Ienth3<Ixnth3. In this embodiment, the current threshold Ixnth3Used for preventing the charging process from repeatedly entering and exiting the no-load detection stage of the common equipment, and has a current threshold value Ixnth3Set to 120 mA.
A low-current equipment identification stage: and detecting whether the load equipment is low-current equipment or not so as to facilitate the continuous charging of the load equipment. The battery capacity of the low-current equipment is generally small, the low-current equipment generally has no display screen or has a small display screen, the battery capacity of the high-current equipment is generally large, and the display screen of the high-current equipment is large. When the charging path is disconnected and then the power is supplied again, the large-current device generally has a process that the display screen is opened and operated, and the current of the large-current device is far larger than the charging current before the charging path is disconnected. Therefore, a small current device and a large current device can be distinguished by the following steps.
When the charging process enters a low-current equipment identification stage, the charging path is closed, and the time length T is passedpfA post-open charging path, wherein TpfFor the shortest time during which a renewed power-up can be detected, in particular, TpfSet to 1 second;
at a time length of TrstThe accumulated charging current Io is greater than the current threshold IphthTime duration T ofphThen long Tph<TphthAnd then, the charging process enters a normal charging stage of the low-current equipment. In this example, TrstFor the maximum duration of time required for the load apparatus to be recharged from re-power-up to normal charging, in particular, TrstSet to 16 seconds; current threshold value IphthFor the maximum value of the current after all low-current devices have been powered up again, in particular, the current threshold IphthSet to 250mA, TphthTo remove the time of the occasional current disturbance, in particular, TphthSet to 3 seconds.
And (3) normal charging stage of low-current equipment: the load device is in a normal charging state.
When the charging process enters the normal charging stage of the low-current equipment, the time length exceeds Ttth1When the low current device is fully charged, the charging path is closed, wherein Ttth1For the minimum time for all low-current devices to enter this phase to become fully charged, in particular, Ttth1Set to 150 minutes.
When the charging current Io is smaller than the current threshold Ietth1In time, the charging process enters a low current devicePre-fill phase I, current threshold I in this exampleetth1Greater than the maximum current value of most of the low-current devices after full charge, specifically, the current threshold value Ietth1Set to 45 mA.
Low current device pre-charge phase I: the low current device performs a first stage of pre-charge detection to shorten the time from the load device being fully charged to the charging path being closed.
When the charging process enters the low-current equipment pre-charging stage I, the time length exceeds Ttth2When the low current device is fully charged, the charging path is closed, wherein Ttth2For the minimum time for all low-current devices to enter this phase to become fully charged, in particular, Ttth2Set to 30 minutes.
When the charging current Io is smaller than the current threshold Ietth2In the charging process, the charging process enters a low-current device pre-charging stage II, in this embodiment, a current threshold Ietth2Greater than the maximum current value of most of the low-current devices after full charge, in particular, the current threshold Ietth2Set to 15 mA.
When the charging current Io is larger than the current threshold Ixtth1And when the charging process returns to the normal charging stage of the low-current equipment, the charging process is prevented from entering a pre-full charging stage I of the low-current equipment due to the error change of the charging current and/or the charging voltage, wherein Ietth2<Ietth1<Ixtth1. In this embodiment, the current threshold Ixtth1For preventing repeated charging process from entering and exiting the pre-charging stage I of the low-current device, and current threshold Ixtth1Set to 60 mA.
Low current device pre-charge phase II: the low current device performs a second stage of pre-charge detection to prevent the device from being fully charged but not closing the charge path for a long time.
When the charging process enters the low-current equipment pre-charging stage II, the time length exceeds Ttth3When the low current device is fully charged, the charging path is closed, wherein Ttth3For the minimum time for all low-current devices to enter this phase to become fully charged, in particular, Ttth3Set to 10 minutes.
When the charging current Io is larger than the current threshold Ixtth2And meanwhile, the charging process returns to the low-current equipment pre-charging stage I, so that the charging process is prevented from entering the low-current equipment pre-charging stage II due to the error change of the charging current and/or the charging voltage. In this embodiment, the current threshold Ixtth2For preventing repeated charging process from entering and exiting the pre-charging stage II and current threshold I of the low-current devicextth2Set to 25 mA.
And (3) pulling out and detecting: when the load device is removed, the current of the load interface changes, and therefore, the pull-out detection of the load device can be realized by detecting the current change of the load interface, for example, when the current Io is less than IpgthAnd after 2 seconds, judging that the load equipment is removed, closing a charging path, IpgthSet to 5 mA.
Referring to fig. 3, an embodiment of the present invention further discloses an overcharge prevention control device, including a load access detection module 100, a sampling module 200, an identification module 300, and a path management module 400, where the load access detection module 100 is configured to perform access detection on a load device; the sampling module 200 is used for detecting output current and/or output voltage; the identification module 300 is connected to the output end of the sampling module 200, the identification module 300 is configured to receive the detection signal of the sampling module 200 and execute the above-mentioned overcharge control method, the path management module 400 is connected to the load access detection module 100 and the identification module 300, respectively, and the path management module 400 is configured to control the on/off of the charging path.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program, and the computer program realizes the steps of the method when being executed by a processor.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.