Charging compensation method and device, storage medium and electronic equipment

By calculating and adjusting the output voltage of the charging chip to compensate for the line resistance voltage drop, the problem of excessively long charging time for bone conduction headphones has been solved, improving charging speed and ensuring battery safety.

CN121749467APending Publication Date: 2026-03-27DONGGUAN LIESHENG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Because the battery compartment and control compartment of bone conduction headphones are located on the left and right sides respectively, and the charging chip and battery are connected through a rear cable, the internal resistance of the rear cable causes a voltage drop. This results in the input voltage of the headphone battery being lower than the output voltage of the charging chip when charging, thus entering a constant voltage mode, prolonging the charging time, and causing a poor user experience.

Method used

By acquiring the battery's voltage and resistance when fully charged, the compensation voltage of the charging chip is calculated, and the output voltage of the charging chip is adjusted to compensate for the line resistance voltage drop, thereby increasing the applied voltage across the battery and ensuring that the battery remains in the constant current charging phase for a longer period, thus improving the charging speed.

Benefits of technology

The charging speed of the headphone battery has been improved, and the safety of the battery during charging has been ensured to avoid damage due to overcharging, thus achieving a balance between charging speed and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121749467A_ABST
    Figure CN121749467A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a charging compensation method and device, a storage medium and electronic equipment, and the method comprises the steps: obtaining a preset first voltage and a first resistance, the first voltage being the voltage of a battery in a full-charge state, and the first resistance being the resistance between the battery and a charging chip; acquiring a first current, wherein the first current is a current when the battery is charged; determining the compensation voltage of the charging chip according to the first voltage, the first resistance and the first current; and adjusting the output voltage of the charging chip to be the compensation voltage. According to the embodiment of the invention, the output voltage of the charging chip is compensated for the line resistance voltage drop between the battery and the charging chip, and the voltage loaded at the two ends of the battery can be increased by increasing the output voltage of the charging chip, so that the charging speed is increased. And the first voltage is taken as a reference, so that the difference between the voltage loaded at the two ends of the battery and the first voltage is small, and the battery is relatively safe during charging.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of earphone charging compensation, and in particular to a charging compensation method and device, a storage medium and an electronic device. BACKGROUND

[0002] In related technologies, due to shape restrictions and other reasons, the battery compartment and the control compartment of a bone conduction earphone are respectively located on the left and right sides, the control compartment has a charging chip and a Bluetooth master control chip, and the battery compartment has a battery, and the battery and the charging chip are connected through a back hanging line.

[0003] Since the back hanging line has a certain internal resistance, the back hanging line will have a certain voltage drop. When the earphone battery is charging, the input voltage of the battery is lower than the output voltage of the charging chip. If the charging chip outputs at the rated voltage of the battery, the battery will enter the constant voltage mode relatively early, thereby causing the current to decrease and the charging time to greatly increase, resulting in poor user experience. SUMMARY

[0004] The present application provides a charging compensation method and device, a storage medium and an electronic device, which can compensate the output voltage of the charging chip, thereby improving the charging speed of the earphone battery.

[0005] In a first aspect, the present application provides a charging compensation method, comprising:

[0006] obtaining a preset first voltage and a first resistance, the first voltage being the voltage of the battery in a full charge state, and the first resistance being the resistance between the battery and the charging chip;

[0007] obtaining a first current, the first current being the current when the battery is charging;

[0008] determining a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current;

[0009] adjusting the output voltage of the charging chip to the compensation voltage.

[0010] In some exemplary embodiments, the compensation voltage satisfies the following relationship:

[0011] Vset = Vfull + IR;

[0012] wherein Vset is the compensation voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

[0013] In some exemplary embodiments, before adjusting the output voltage of the charging chip to the compensation voltage, the method further comprises:

[0014] acquire a second voltage, the second voltage being a voltage when the battery is charging;

[0015] acquire a preset adjustment voltage;

[0016] adjust an output voltage of the charging chip to the compensation voltage when the second voltage reaches the adjustment voltage.

[0017] In some exemplary embodiments, the adjustment voltage satisfies the following relationship:

[0018] V1 = Vfull - IR;

[0019] wherein V1 is the adjustment voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

[0020] In some exemplary embodiments, when the second voltage is equal to the first voltage, the first current is reduced, and the compensation voltage is reduced synchronously.

[0021] In some exemplary embodiments, when the first current is reduced to a preset cutoff current, the output voltage of the charging chip is the first voltage.

[0022] In some exemplary embodiments, when the second voltage reaches the adjustment voltage, the output voltage of the charging chip is adjusted to the compensation voltage at one time.

[0023] In a second aspect, embodiments of the present application provide a charging compensation device, the charging compensation device being applied to a wireless earphone, and the charging compensation device comprising:

[0024] a storage unit configured to store a preset first voltage and a first resistance, the first voltage being a full voltage of a battery, and the first resistance being a resistance between the battery and a charging chip;

[0025] a metering unit configured to acquire a first current, the first current being a current when the battery is charging;

[0026] a master control unit configured to determine a compensation voltage of the charging chip according to the first voltage, the first resistance, and the first current, and adjust an output voltage of the charging chip to the compensation voltage.

[0027] In a third aspect, embodiments of the present application provide a computer storage medium, the computer storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and perform the following steps:

[0028] acquire a preset first voltage and a first resistance, the first voltage being a full voltage of a battery, and the first resistance being a resistance between the battery and a charging chip;

[0029] acquire a first current, the first current being a current when the battery is charging;

[0030] determine a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current;

[0031] adjust an output voltage of the charging chip to be the compensation voltage.

[0032] In a fourth aspect, an electronic device is provided, comprising a processor and a memory, and the memory stores a computer program which is adapted to be loaded by the processor and perform the following steps:

[0033] acquire a first voltage and a first resistance, the first voltage being a full voltage of the battery, and the first resistance being a resistance between the battery and the charging chip;

[0034] acquire a first current, the first current being a current when the battery is charging;

[0035] determine a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current;

[0036] adjust an output voltage of the charging chip to be the compensation voltage.

[0037] Beneficial effects: The embodiment of the present application compensates the output voltage of the charging chip according to the line resistance voltage drop between the battery and the charging chip, and by increasing the output voltage of the charging chip, the voltage loaded across the battery can be increased, thereby increasing the charging speed. In addition, the first voltage is used as a reference, so that the voltage loaded across the battery is not much different from the first voltage, thereby making the battery safer during charging. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0039] Figure 1 a flowchart of a charging compensation method in an embodiment of the present application;

[0040] Figure 2 a flowchart of a charging compensation method in another embodiment of the present application;

[0041] Figure 3 a charging curve of a battery in an embodiment of the present application;

[0042] Figure 4A block diagram of the charging compensation device in an embodiment of the present application;

[0043] Figure 5 A circuit diagram of the charging chip in an embodiment of the present application;

[0044] Figure 6 A circuit diagram of the metering unit in an embodiment of the present application;

[0045] Figure 7 A block diagram of the metering unit in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0047] The charging process of a lithium battery generally includes three stages of pre-charging, constant current charging and constant voltage charging.

[0048] Pre-charging stage: mainly for deeply discharged batteries, a pre-charging process is needed at the initial stage of charging, at which time the charging current of the battery is small. Small current charging is to protect the battery and avoid damage to the internal structure of the battery caused by large current impact. The threshold voltage of pre-charging can be exemplarily about 2.5V, and the pre-charging function also includes removing the undervoltage protection state of the battery protection circuit. For most lithium ion batteries, the pre-charging voltage is usually set at 2.9V-3V, and the charging current at this time is generally allowed to be below 0.1C. C represents the capacity of the battery, and 0.1C means a current of one-tenth of the capacity of the battery. For example, for a 2000mAh battery, charging at 0.1C, the charging current is 200mA.

[0049] Constant current charging stage: when the battery voltage exceeds the pre-charging threshold voltage, the charging enters the constant current charging stage. In this mode, the charger charges the battery according to the set current. The setting of the charging current is related to the capacity of the battery, and most of the charging current is set between 0.5C and 1C. When the internal resistance of the battery is low, a higher current can be used for charging, such as 2C or 4C. As the charging proceeds, the battery voltage gradually rises.

[0050] Constant voltage charging stage: when the battery voltage approaches or reaches the rated voltage of the battery, the charger switches from constant current mode to constant voltage mode, and the charging voltage of the battery remains unchanged, and the charging current of the battery gradually decreases. The purpose of this stage is to limit the voltage to prevent the voltage of the battery from being too high and damaging the battery structure.

[0051] It should be noted that the pre-charge stage is a charging process of the battery voltage below the threshold voltage of the pre-charge, and the purpose is to activate the battery with a small charging current to ensure the battery life and reliability, so the parameters of the pre-charge stage are difficult to adjust. The constant current charging stage and the constant voltage charging stage are the stages that the battery charging must go through, and are the key factors that determine the battery charging time. The charging current of the battery in the constant current charging stage is relatively large, and the charging current gradually decreases in the constant voltage charging stage. When the charging current is small to a certain threshold, the charging process is terminated.

[0052] Since the charging current gradually decreases in the constant voltage charging stage, the charging efficiency of the constant voltage charging stage is lower than that of the constant current charging stage, and prolonging the time of the constant current charging stage can speed up the charging speed of the battery.

[0053] Please refer to Figure 1 A flowchart of a charging compensation method is provided for the embodiments of the present application. As shown in Figure 1 The method can include the following steps S101-S104.

[0054] Step S101, a first voltage and a first resistance are obtained, the first voltage is the full voltage of the battery, and the first resistance is the resistance between the battery and the charging chip.

[0055] In some embodiments, the first voltage can be obtained according to the rated parameters of the battery, or can be measured by a multimeter when the battery is in a full charge state, or can be self-defined. The full voltage of the battery can be exemplarily 4.2V, 4.35V, 4.4V, etc., which is not limited herein. The first resistance can be obtained by testing the resistance between the battery and the charging chip with a multimeter, or the voltage difference and current between the battery and the charging chip can be measured, and the first resistance can be calculated according to Ohm's law. Alternatively, in the present embodiment, the charging compensation method is applied to a Bluetooth earphone, the battery and the charging chip are connected by a back-hanging line, the back-hanging line is a wire for forming an electrical connection between the battery and the charging chip. The back-hanging line is usually hung on the user's neck, of course, an insulating layer is usually provided outside the back-hanging line to protect the back-hanging line and make the user more comfortable when wearing. In the present embodiment, the resistance of the back-hanging line is the first resistance. In the present embodiment, the battery type can be a lithium battery, and the model of the charging chip can be exemplarily SY6103 of Siju Semiconductor.

[0056] Step S102, a first current is obtained, which is the current when the battery is charging.

[0057] In some embodiments, the first current varies according to different charging stages when the battery is charging. For example, the first current is relatively large in the constant current charging stage, and the first current is relatively small in the constant voltage charging stage. Alternatively, the first current can have a small fluctuation in the same charging stage. For example, the output current of the charging chip is set to be 0.5 A in the constant current charging stage, but the actual output first current can be 0.46 A. If it is necessary to obtain the charging current in real time, the accurate value of the first current can be obtained by detecting the electric quantity meter in real time. The model of the electric quantity meter can be, for example, Saimi CW2215BAAC.

[0058] In step S103, the compensation voltage of the charging chip is determined according to the first voltage, the first resistance and the first current.

[0059] In some embodiments, the product of the first resistance and the first current is the line resistance voltage drop between the battery and the charging chip. In general, the output voltage of the charging chip is adjusted according to the change of the charging stage. When the battery is in the constant current charging stage, the output voltage of the charging chip is less than the first voltage. When the battery is in the constant voltage charging stage, the output voltage of the charging chip is equal to the first voltage. However, due to the line resistance voltage drop, the voltage loaded across the battery is less than the output voltage of the charging chip, so that the voltage loaded across the battery is relatively low. The battery enters the constant voltage charging stage when the voltage loaded across the battery does not reach the first voltage, so that the charging speed of the battery is relatively slow. The output voltage of the charging chip is compensated for the line resistance voltage drop in the embodiments of the present application. By increasing the output voltage of the charging chip, the voltage loaded across the battery can be increased, so that the charging speed can be increased. In the embodiments of the present application, the first voltage is used as a reference, so that the voltage loaded across the battery is not much different from the first voltage, and the battery is relatively safe when charging.

[0060] The increase of the output voltage of the charging chip can be less than, equal to or greater than the line resistance voltage drop, which can be selected according to actual needs.

[0061] In step S104, the output voltage of the charging chip is adjusted to be the compensation voltage.

[0062] In some embodiments, the output voltage of the charging chip can be adjusted according to the instruction by sending the instruction to the charging chip. For example, the charging chip communicates through the I 2 C interface, and the adjustment of the output voltage is realized by changing the register value of the charging chip.

[0063] In some embodiments, according to the line resistance voltage drop, the voltage required to be output by the charging chip when the voltage loaded across the battery is the first voltage can be calculated. The voltage required to be output by the charging chip is the compensation voltage. The compensation voltage satisfies the following relationship:

[0064] Vset = Vfull + IR;

[0065] Wherein, Vset is the compensation voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

[0066] That is, the compensation voltage output by the charging chip can be Vfull + IR, at this time the voltage loaded across the battery is the first voltage Vfull, and the voltage across the battery starts to enter the constant voltage stage only when it reaches the first voltage Vfull, thereby being able to prolong the time of constant current charging as much as possible and improve the charging speed of the battery. Of course, if the compensation voltage output by the charging chip is further increased, such that the compensation voltage output by the charging chip is greater than Vfull + IR, at this time the voltage loaded across the battery is greater than the first voltage Vfull, it is possible that the battery is damaged due to overcharging.

[0067] The embodiments of the present application can make the voltage loaded across the battery equal to the first voltage as much as possible, thereby being able to improve the charging speed of the battery as much as possible and also being able to prevent the battery from being overcharged due to excessively high input voltage, so as to strike a balance between charging speed and safety.

[0068] Please refer to Figure 2 In some embodiments, before adjusting the output voltage of the charging chip to the compensation voltage, the following steps S201-S203 are further included.

[0069] Step S201, obtaining a second voltage, the second voltage being the voltage when the battery is charging.

[0070] In some embodiments, the second voltage is the real-time voltage of the battery, and the second voltage can be measured by a coulomb counter. The voltage of the battery is related to the electric quantity, and in the process of charging, the second voltage will gradually increase as the electric quantity of the battery gradually increases. By measuring the second voltage, the state of the battery can be known, so as to determine the charging plan. Illustratively, before charging, the voltage of the battery is detected first, if the second voltage is lower than 3V, the battery is first pre-charged, and if the second voltage is higher than or equal to 3V, the battery is directly subjected to constant current charging.

[0071] Step S202, obtaining a preset adjustment voltage.

[0072] In some embodiments, the adjustment voltage can be a specific voltage value, and the adjustment voltage can be set according to actual needs. Illustratively, the value of the adjustment voltage can be relatively small, for example, 3.1V, and the adjustment is started after the battery just enters the constant current charging stage, so as to make the battery. Alternatively, the value of the adjustment voltage can be relatively large, for example, 3.9V, and the adjustment is started when the battery is about to end the constant current charging stage.

[0073] Step S203, when the second voltage reaches the adjustment voltage, the output voltage of the charging chip is adjusted to the compensation voltage.

[0074] In some embodiments, whether the second voltage reaches the adjustment voltage is determined by comparing the size of the second voltage and the adjustment voltage, and when the second voltage reaches the adjustment voltage, the output voltage of the charging chip is adjusted to the compensation voltage. Since the second voltage can be measured in real time, the adjustment voltage is a preset value, so this method only needs to compare the size of two values, and the calculation amount is less, and the requirement for hardware is lower.

[0075] When adjusting the output voltage of the charging chip, it can be adjusted to the position once, or it can be gradually adjusted to the position through multiple fine adjustments. One-time adjustment to the position can make the control logic relatively simple, and the voltage loaded on the battery is close to the first voltage, the charging efficiency is higher, and it will not be overvoltage.

[0076] In some embodiments, the adjustment voltage can also be related to the line resistance voltage drop. The adjustment voltage satisfies the following relationship:

[0077] V1 = Vfull-IR;

[0078] Wherein, V1 is the adjustment voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

[0079] When the second voltage is Vfull-IR, the output voltage of the charging chip is Vfull, and at this time the output voltage of the charging chip is adjusted, and the output voltage of the charging chip is adjusted from Vfull to Vfull+IR, the first current I remains unchanged, and at this time the second voltage becomes Vfull, that is, the voltage loaded on the battery is Vfull, and the battery can be charged at a high efficiency, and will not be damaged due to the voltage being too high.

[0080] In other embodiments, the voltage loaded on the battery can be slightly greater than or slightly less than Vfull, thereby reducing the requirement for the accuracy of the output voltage of the charging chip.

[0081] In some embodiments, when the second voltage is equal to the first voltage, the first current is reduced, and the compensation voltage is reduced synchronously. When the second voltage is equal to the first voltage, that is, the battery enters the constant voltage stage, at this time the battery is close to the full state, and the speed of the internal chemical reaction will be significantly reduced, and the required current will also be reduced. If the large charging current is continued, it may cause the battery to be overcharged, produce gas, and even damage the battery and shorten its service life. Therefore, reducing the first current in the constant voltage charging mode can protect the battery to prevent the battery from being overcharged.

[0082] When the first current decreases, the line resistance voltage drop decreases due to the unchanged first resistance, and thus the compensation voltage needs to decrease synchronously, so that the voltage loaded on the battery remains unchanged, to prevent the battery from overcharging due to the increase of the voltage across the battery.

[0083] In some embodiments, when the first current decreases to a preset cutoff current, the output voltage of the charging chip is the first voltage. The cutoff current is relatively small, and an example is 0.01C. At this time, the line resistance voltage drop can be ignored, and the output voltage of the charging chip is the first voltage, that is, the voltage loaded on the battery is the first voltage, so that the charging speed of the battery can be improved as much as possible, and the battery will not overcharge due to the excessively high input voltage, to balance between the charging speed and safety.

[0084] The charging process of the battery is described below. First, it is calculated that the battery charging voltage point at which compensation needs to be started is V1=Vfull-IR. When the battery voltage detected by the fuel gauge is about to reach V1, the master control controls the charging chip to start charging compensation. The compensation voltage set by the charging chip is Vset=Vfull+IR. The battery is in the constant current charging phase before reaching Vfull. When the first current decreases, it means that the battery has entered the constant voltage charging phase from the constant current charging phase. The value of Vset also changes, so that the battery can remain in the constant voltage charging state as much as possible, and the actual voltage of the battery is always within the cutoff voltage and does not exceed the design standard. When the current I basically reaches the set charging cutoff current, Vset=Vfull.

[0085] In the case of setting the same size of charging current, before the charging compensation is completed, the battery power needs 2.5H from 0% to 100%, the constant current charging time is very short, and the charging curve is very steep, which does not conform to the conventional charging curve. Please refer to Figure 3 , Figure 3 The charging curve after the charging compensation is completed. Vbat is the battery voltage, and I is the charging current. The 14 points and 24 minutes before are the pre-charging phase, the 14 points and 24 minutes to 14 points and 48 minutes are the constant current charging phase, and the 14 points and 48 minutes after are the constant voltage charging phase. After the charging compensation is completed, the charging time of the battery power from 0% to 100% is less than 50 minutes, the constant current charging time and the constant voltage charging time are appropriately distributed, and the charging curve meets the expectation.

[0086] As shown in Figure 4 , the second aspect of the embodiment of the application provides a charging compensation device. The charging compensation device is applied to the charging compensation device in the wireless earphone, Figure 4 , and is configured to execute the method of the embodiment shown in the specification. Figures 1-2

[0087] ​The charging compensation device can include a storage unit 110, a metering unit 120, and a master control unit 130.

[0088] The storage unit 110 is configured to store a preset first voltage and a first resistance. The first voltage is a full voltage of the battery, and the first resistance is a resistance between the battery and the charging chip.

[0089] The metering unit 120 is configured to obtain a first current. The first current is a current when the battery is charging.

[0090] The master control unit 130 is configured to determine a compensation voltage of the charging chip according to the first voltage, the first resistance, and the first current, and adjust an output voltage of the charging chip to be the compensation voltage. The master control unit 130 communicates with the I2C interface of the charging chip, and adjusts the output voltage of the charging chip by changing the register value of the charging chip.

[0091] In some embodiments, the first voltage can be obtained according to the rated parameters of the battery, or can be measured by a multimeter when the battery is in a full state. The full voltage of the battery can be 4.2V, 4.35V, 4.4V, etc. by way of example, which is not limited herein. The first resistance can be obtained by testing the resistance between the battery and the charging chip by a multimeter, or the voltage difference and the current between the battery and the charging chip can be measured, and the first resistance can be calculated according to Ohm's law. Alternatively, in the present embodiment, the charging compensation method is applied to a Bluetooth earphone, and the battery and the charging chip are connected by a back-hanging wire. The back-hanging wire is a wire for forming an electrical connection between the battery and the charging chip. The back-hanging wire is usually hung on the user's neck. Of course, an insulating layer is usually provided outside the back-hanging wire to protect the back-hanging wire and make the user more comfortable when wearing. In the present embodiment, the resistance of the back-hanging wire is the first resistance. In the present embodiment, the battery type can be a lithium battery, and the model of the charging chip can be SY6103 of Siju Semiconductor.

[0092] In some embodiments, the first current changes according to different charging stages when the battery is charging. For example, the first current is relatively large in the constant current charging stage, and the first current is relatively small in the constant voltage charging stage. Alternatively, the first current can have a small fluctuation in the same charging stage. For example, the output current of the charging chip is set to 0.5A in the constant current charging stage, but the actual output first current can be 0.46A. If it is necessary to obtain the charging current in real time, the metering unit 120 can be used to detect in real time to obtain the accurate value of the first current. The metering unit 120 can be a power meter, and the model of the power meter can be CW2215BAAC of Saimi.

[0093] In some embodiments, the product of the first resistance and the first current is a line resistance voltage drop between the battery and the charging chip. Generally, the output voltage of the charging chip is adjusted according to the charging stage. When the battery is in the constant current charging stage, the output voltage of the charging chip is less than the first voltage. When the battery is in the constant voltage charging stage, the output voltage of the charging chip is equal to the first voltage. However, due to the line resistance voltage drop, the voltage loaded across the battery is less than the output voltage of the charging chip, so that the voltage loaded across the battery is relatively low, and the battery enters the constant voltage charging stage before reaching the first voltage, so that the charging speed of the battery is relatively slow. The embodiments of the present application compensate for the output voltage of the charging chip due to the line resistance voltage drop. By increasing the output voltage of the charging chip, the voltage loaded across the battery can be increased, thereby increasing the charging speed. The embodiments of the present application use the first voltage as a reference, so that the voltage loaded across the battery is not much different from the first voltage, thereby making the battery safe during charging.

[0094] The output voltage of the charging chip can be less than, equal to, or greater than the line resistance voltage drop, which can be selected according to actual needs.

[0095] In some embodiments, the charging chip is instructed to adjust the output voltage according to the instruction. For example, the charging chip communicates through an I2C interface, and the output voltage is adjusted by changing the register value of the charging chip.

[0096] In some embodiments, the main control unit 130 is also configured to calculate the voltage required to be output by the charging chip when the voltage loaded across the battery is the first voltage according to the line resistance voltage drop, and the voltage required to be output by the charging chip is the compensation voltage. The compensation voltage satisfies the following relationship:

[0097] Vset = Vfull + IR;

[0098] Wherein, Vset is the compensation voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

[0099] That is, the compensation voltage output by the charging chip can be Vfull + IR, at this time the voltage loaded across the battery is the first voltage Vfull, and the voltage across the battery reaches the first voltage Vfull only when the constant voltage stage begins, thereby prolonging the constant current charging time as much as possible and improving the charging speed of the battery. Of course, if the compensation voltage output by the charging chip is further increased, the compensation voltage output by the charging chip is greater than Vfull + IR, at this time the voltage loaded across the battery is greater than the first voltage Vfull, which may cause the battery to be damaged due to overcharging.

[0100] The embodiments of the present application can make the voltage loaded on the battery equal to the first voltage as much as possible, so as to improve the charging speed of the battery as much as possible and prevent the battery from overcharging due to the excessively high input voltage, thereby balancing the charging speed and safety.

[0101] In some embodiments, the metering unit 120 is further configured to acquire a second voltage, the second voltage being a voltage when the battery is charging. The storage unit 110 is further configured to store a preset adjustment voltage. The control unit 130 is further configured to adjust the output voltage of the charging chip to the compensation voltage when the second voltage reaches the adjustment voltage.

[0102] In some embodiments, the second voltage is a real-time voltage of the battery, and the second voltage can be measured by a coulomb counter. The voltage of the battery is related to the electric quantity. During the charging process, the electric quantity of the battery gradually increases, and thus the second voltage gradually increases. By measuring the second voltage, the state of the battery can be known, so as to determine the charging plan. For example, before charging, the voltage of the battery is detected first. If the second voltage is lower than 3V, the battery is pre-charged first. If the second voltage is higher than or equal to 3V, the battery is directly subjected to constant-current charging.

[0103] In some embodiments, the adjustment voltage can be a specific voltage value, and the adjustment voltage can be set according to actual needs. For example, the value of the adjustment voltage can be relatively small, for example, 3.1V. The battery starts to be adjusted after entering the constant-current charging stage, so that the battery is. Alternatively, the value of the adjustment voltage can be relatively large, for example, 3.9V. The battery starts to be adjusted when the constant-current charging stage is about to end.

[0104] In some embodiments, whether the second voltage reaches the adjustment voltage is determined by comparing the sizes of the second voltage and the adjustment voltage. When the second voltage reaches the adjustment voltage, the output voltage of the charging chip is adjusted to the compensation voltage. Since the second voltage can be measured in real time and the adjustment voltage is a preset value, the present method only needs to compare the sizes of the two values, and the calculation amount is small and the requirement for hardware is low.

[0105] When the output voltage of the charging chip is adjusted, it can be adjusted to the right place at one time, or it can be gradually adjusted to the right place through multiple fine adjustments.

[0106] In some embodiments, the adjustment voltage can also be related to the line resistance voltage drop. The adjustment voltage satisfies the following relationship:

[0107] V1=Vfull-IR;

[0108] Wherein, V1 is the adjustment voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

[0109] When the second voltage is Vfull-IR, the output voltage of the charging chip is Vfull, at this time, the output voltage of the charging chip is adjusted from Vfull to Vfull+IR, the first current I remains unchanged, at this time, the second voltage becomes Vfull, that is, the voltage loaded across the battery is Vfull, and the battery can be charged at a higher efficiency and will not be damaged due to the voltage being too high.

[0110] In other embodiments, the voltage loaded across the battery can be slightly greater than or slightly less than Vfull, thereby reducing the requirement for the accuracy of the output voltage of the charging chip.

[0111] In some embodiments, when the second voltage is equal to the first voltage, the first current is reduced, and the compensation voltage is reduced synchronously. When the second voltage is equal to the first voltage, that is, the battery enters the constant voltage stage, at this time, the battery is close to the full state, and the speed of the internal chemical reaction will be significantly reduced, and the required current will also be reduced. If the large charging current is continued to be maintained, the battery may be overcharged, gas may be generated, and the battery may even be damaged, thereby shortening the service life of the battery. Therefore, reducing the first current in the constant voltage charging mode can protect the battery to prevent the battery from being overcharged.

[0112] When the first current is reduced, since the first resistance remains unchanged, the line resistance voltage drop will be reduced, and therefore the compensation voltage needs to be reduced synchronously, so that the voltage loaded across the battery remains unchanged, so as to prevent the battery from being overcharged due to the voltage across the battery being increased.

[0113] In some embodiments, when the first current is reduced to a preset cutoff current, the output voltage of the charging chip is the first voltage. The cutoff current is relatively small, and an exemplary cutoff current is 0.01C, at this time, the line resistance voltage drop can be ignored, and the output voltage of the charging chip is the first voltage, that is, the voltage loaded across the battery is the first voltage, thereby balancing between the charging speed and safety.

[0114] As Figure 5As shown in the figure, in some embodiments, the charging chip is U14, the IN pin of U14 is the input pin of the power supply, and the external power supply supplies power to U14 through the IN pin. The INT pin of U14 is the interrupt pin, and U14 can be stopped through the INT pin when an accident occurs. The SDA pin and the SCL pin of U14 are the pins connected to the I2C bus, and U14 mainly communicates with the master unit 130 through the SDA pin and the SCL pin. The GND pin of U14 is grounded, the NTC pin of U14 is used to connect the thermistor to perform temperature compensation, and the VDD pin of U14 is grounded. The SYS pin of U14 is used to supply power to the master unit 130, and the BAT pin of U14 is used to charge the battery.

[0115] As shown in the figure, Figure 4 in some embodiments, the charging compensation device further comprises a protection unit 140 connected with the charging chip, and the protection unit 140 is used to prevent static electricity and surges, thereby reducing the impact on the charging chip. As shown in the figure, Figure 5 the protection unit 140 comprises a TVS tube D7 and a diode D25, the TVS tube D7 can be used to prevent surges, and the diode D25 can prevent static electricity.

[0116] As shown in the figure, Figure 6 in some embodiments, the metering unit 120 comprises a chip U8, the SDA pin and the SCL pin of the chip U8 are the pins connected to the I2C bus, and the metering unit 120 mainly communicates with the master unit 130 through the SDA pin and the SCL pin. The INT pin of U8 is the interrupt pin, and U8 can be stopped through the INT pin when an accident occurs. The VSS pin of U8 is grounded, the TS pin is used to monitor the real-time temperature of the battery, the VCELL pin of U8 is the register pin. The resistance R53 is a measurement resistance, one end of the measurement resistance is connected to the BAT pin of U14, the other end of the measurement resistance is connected to the positive electrode of the battery, the CSP pin of U8 is connected to one end of the measurement resistance R53, and the CSN pin of U8 is connected to the other end of the measurement resistance R53.

[0117] The third aspect of the embodiment of the application provides a computer storage medium, which can store a plurality of program instructions, the program instructions are suitable for being loaded and executed by a processor, and the method steps of the embodiment shown in the above Figures 1-2 The specific execution process can be referred to the specific description of the embodiment shown in the above Figures 1-2 The specific execution process can be referred to the specific description of the embodiment shown in the above

[0118] Please refer to Figure 7 the fourth aspect of the embodiment of the application provides a structural diagram of an electronic device. As shown in the figure, Figure 7As shown, the electronic device 1000 can include at least one processor 1001, such as a CPU, at least one network interface 1004, an input output interface 1003, a memory 1005, at least one communication bus 1002. Among them, the communication bus 1002 is set to realize the connection communication between the components. Among them, the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. The memory 1005 can optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 7 As shown, the memory 1005 as a computer storage medium can include an operating system, a network communication module, an input output interface module, and an information display application.

[0119] In Figure 7 As shown in the electronic device 1000, the input output interface 1003 is mainly set to provide an interface for the user to input, and obtain the data input by the user.

[0120] In one embodiment, the processor 1001 can be set to call the information display application stored in the memory 1005, and specifically perform the following operations:

[0121] When the earphone performs a charging action, a preset first voltage and a first resistance are obtained, the first voltage is the full voltage of the battery, and the first resistance is the resistance between the battery and the charging chip;

[0122] A first current is obtained, and the first current is the current when the battery is charging;

[0123] According to the first voltage, the first resistance and the first current, the compensation voltage of the charging chip is determined;

[0124] The output voltage of the charging chip is adjusted to the compensation voltage.

[0125] In the above embodiments, all or part of the methods can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the methods can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available media can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD)), etc.

[0126] Those of ordinary skill in the art understand that all or part of the processes in the above embodiments can be implemented by a computer program to instruct the relevant hardware, which can be stored in a computer-readable storage medium. The program can include the processes of the above embodiments when executed. The storage medium includes ROM, RAM, magnetic or optical discs, and various program code storage media. In the case of no conflict, the technical features in the embodiments and the embodiments can be combined arbitrarily.

[0127] The above-described embodiments are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements to the technical solutions of the present application made by those of ordinary skill in the art should fall within the scope of protection determined by the claims of the present application.

Claims

1. A charge compensation method characterized by, The method comprises the following steps: obtaining a preset first voltage and a first resistance, the first voltage being a voltage of the battery in a full charge state, and the first resistance being a resistance between the battery and a charging chip; obtaining a first current, the first current being a current when the battery is charging; determining a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current; adjusting an output voltage of the charging chip to the compensation voltage.

2. The charge compensation method according to claim 1, characterized by, The compensation voltage satisfies the following relationship: Vset=Vfull+IR; wherein Vset is the compensation voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

3. The charge compensation method of claim 1, wherein, Before the adjusting of the output voltage of the charging chip to the compensation voltage, the method further comprises the following steps: obtaining a second voltage, the second voltage being a voltage when the battery is charging; obtaining a preset adjustment voltage; when the second voltage reaches the adjustment voltage, adjusting the output voltage of the charging chip to the compensation voltage.

4. The charge compensation method according to claim 3, characterized by, The adjustment voltage satisfies the following relationship: V1=Vfull-IR; wherein V1 is the adjustment voltage, Vfull is the first voltage, I is the first current, and R is the first resistance.

5. The charge compensation method according to claim 3, characterized by, When the second voltage is equal to the first voltage, the first current is reduced, and the compensation voltage is reduced synchronously.

6. The charge compensation method of claim 3, wherein, When the first current is reduced to a preset cut-off current, the output voltage of the charging chip is the first voltage.

7. The charge compensation method according to claim 3, characterized by, When the second voltage reaches the adjustment voltage, the output voltage of the charging chip is adjusted to the compensation voltage at one time.

8. A charge compensation device applied to a wireless earphone, characterized in that, The method comprises the following steps: a storage unit is configured to store a preset first voltage and a first resistance, the first voltage being a full charge voltage of the battery, and the first resistance being a resistance between the battery and a charging chip; a metering unit is configured to obtain a first current, the first current being a current when the battery is charging; a master control unit is configured to determine a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current, and to adjust an output voltage of the charging chip to the compensation voltage.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are adapted to be loaded by a processor and to perform the following steps: obtaining a preset first voltage and a first resistance, the first voltage being a full charge voltage of the battery, and the first resistance being a resistance between the battery and a charging chip; obtaining a first current, the first current being a current when the battery is charging; determining a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current; adjusting an output voltage of the charging chip to the compensation voltage.

10. An electronic device comprising: The processor and the memory; characterized in that the memory stores a computer program, and the computer program is adapted to be loaded by the processor and to perform the following steps: obtaining a preset first voltage and a first resistance, the first voltage being a full charge voltage of the battery, and the first resistance being a resistance between the battery and a charging chip; obtaining a first current, the first current being a current when the battery is charging; determining a compensation voltage of the charging chip according to the first voltage, the first resistance and the first current; adjusting an output voltage of the charging chip to the compensation voltage.