Charging control method and device, and earphone
By acquiring power and controlling charging when the earphones are connected to the charging device to avoid prolonged charging, the problem of poor battery stability in the earphones themselves is solved, thus improving battery life.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2022-02-11
- Publication Date
- 2026-05-12
AI Technical Summary
Keeping the earphones in a charging or fully charged state for extended periods can degrade the stability of the battery cells, affecting battery life.
By acquiring power when the earphone is connected to the charging device, and controlling charging when the power level is greater than a threshold and preset conditions are met, the system avoids prolonged charging and ensures that the power level drops to a safe threshold.
This avoids the earphone body being in a high SOC/high voltage state for a long time, ensuring the stability of the battery positive electrode/electrolyte, reducing the rate of battery capacity decay, and improving battery life.
Smart Images

Figure CN114465313B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of charging technology, specifically relating to a charging control method, device, and headphones. Background Technology
[0002] With the trend towards portless smartphones, the market demand for headphones such as True Wireless Stereo (TWS) and traditional Bluetooth headphones is gradually increasing. Consequently, users are placing higher demands on headphone products, with battery life becoming a particularly important factor for them.
[0003] Earphones typically consist of the earphones themselves and a charging case. The charging case is used to charge the earphones placed inside. Currently, as long as the charging case has power, it will charge the earphones inside until they are fully charged. Therefore, the earphones inside the charging case are usually fully charged.
[0004] However, if the earphones are constantly charging or fully charged, the battery cells within them will remain in a high-charge (SOC) / high-voltage state for an extended period. This leads to decreased stability of the positive electrode and electrolyte in the battery cells, resulting in faster battery capacity degradation and impacting the earphones' battery life. The longer the earphones are in a charging / fully charged state, the worse their battery life becomes. Summary of the Invention
[0005] The purpose of this application is to provide a charging control method, device, and earphone that can solve the problem that the earphone body's battery life is affected when it is in a charging state or fully charged state for a long time.
[0006] In a first aspect, embodiments of this application provide a charging control method applied to headphones, the headphones including a headphone body and a charging device; the method includes:
[0007] When the earphone body is connected to the charging device, the power level of the earphone body is obtained;
[0008] When the battery level of the earphone body is greater than the battery threshold and the earphone meets the first preset condition, the earphone body is controlled to charge the charging device.
[0009] When the remaining power of the earphone body after charging the charging device is equal to the power threshold, the earphone body is controlled to stop charging the charging device, and the power threshold is less than the power saturation value of the earphone body.
[0010] Optionally, the earphones satisfying the first preset condition include: the earphones not being connected to the electronic device for a consecutive target number of target time periods; or, the earphones not being connected to the electronic device for a first target duration exceeding the target time period.
[0011] Optionally, after obtaining the battery level of the earphone body, the method further includes:
[0012] When the battery level of the earphone body is less than the battery threshold, the charging device is controlled to charge the earphone body.
[0013] If the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, the charging device is controlled to stop charging the earphone body.
[0014] When the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone meets the second preset condition, the charging device is controlled to charge the earphone body.
[0015] Optionally, the earphones satisfying the second preset condition include: the time interval between the current time and the start time of the target time period is less than or equal to the second target duration, and the value of the second target duration is proportional to the difference between the available power and the power saturation value.
[0016] Optionally, the target time period includes at least one of the following: a first time period during which the earphone and the electronic device are connected within a set duration; a second time period when the distance between the earphone and the electronic device is less than a target distance threshold; and a third time period corresponding to the target trip in the trip schedule recorded by the electronic device that requires the earphone to be connected, wherein the electronic device and the earphone have a connection relationship.
[0017] Secondly, embodiments of this application provide a charging control device for use in headphones, the headphones including a headphone body and a charging device; the device includes:
[0018] The acquisition module is used to acquire the battery level of the earphone body when the earphone body is connected to the charging device;
[0019] The control module is configured to control the earphone body to charge the charging device when the battery level of the earphone body is greater than a battery threshold and the earphone meets a first preset condition; and is further configured to control the earphone body to stop charging the charging device when the remaining battery level after the earphone body has charged the charging device is the battery threshold, wherein the battery threshold is less than the battery saturation value of the earphone body.
[0020] Optionally, the earphones satisfying the first preset condition include: the earphones not being connected to the electronic device for a consecutive target number of target time periods; or, the earphones not being connected to the electronic device for a first target duration exceeding the target time period.
[0021] Optionally, the control module is further configured to:
[0022] When the battery level of the earphone body is less than the battery threshold, the charging device is controlled to charge the earphone body.
[0023] If the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, the charging device is controlled to stop charging the earphone body.
[0024] When the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone meets the second preset condition, the charging device is controlled to charge the earphone body.
[0025] Optionally, the earphones satisfying the second preset condition include: the time interval between the current time and the start time of the target time period is less than or equal to the second target duration, and the value of the second target duration is proportional to the difference between the available power and the power saturation value.
[0026] Optionally, the target time period includes at least one of the following: a first time period during which the earphone and the electronic device are connected within a set duration; a second time period when the distance between the earphone and the electronic device is less than a target distance threshold; and a third time period corresponding to the target trip in the trip schedule recorded by the electronic device that requires the earphone to be connected, wherein the electronic device and the earphone have a connection relationship.
[0027] Thirdly, embodiments of this application provide an earphone. The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the method described in the first aspect.
[0028] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0029] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0030] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0031] In this embodiment, when the connection between the earphone and the charging device is detected, the battery level of the earphone is acquired. If the battery level of the earphone is greater than a battery threshold and the earphone meets a first preset condition, the earphone is controlled to charge the charging device. If the remaining battery level after charging is equal to the battery threshold, the earphone is controlled to stop charging the charging device. The battery threshold is less than the earphone's battery saturation value. This technical solution allows the earphone to charge the charging device when its battery level is greater than the battery threshold and the first preset condition is met, preventing the earphone from being in a charging state for extended periods. Furthermore, since the battery level can be controlled to drop below the earphone's battery saturation value, the earphone is also prevented from being constantly fully charged. Therefore, this technical solution avoids the earphone's battery being in a high SOC / high voltage state for extended periods, ensuring the stability of the battery's positive electrode / electrolyte, reducing the rate of battery capacity decay, and improving the earphone's battery life. Attached Figure Description
[0032] Figure 1 This is a schematic diagram of the structure of an earphone provided in an embodiment of this application.
[0033] Figure 2 This is a flowchart of a charging control method provided in an embodiment of this application.
[0034] Figure 3 This is a flowchart of another charging control method provided in the embodiments of this application.
[0035] Figure 4 This is a block diagram of a charging control device provided in an embodiment of this application.
[0036] Figure 5 This is a block diagram of another type of headphone provided in an embodiment of this application.
[0037] Figure 6 This is a schematic diagram of the hardware structure of an earphone provided in an embodiment of this application. Detailed Implementation
[0038] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0039] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first time period can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0040] The charging control method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0041] Please refer to Figure 1 This illustrates a structural schematic diagram of an earphone provided in an embodiment of this application. Figure 1 As shown, the earphone 100 includes an earphone body 101 and a charging device 102. The earphone body 101 can be electrically connected to the charging device 102. The charging device 102 can charge the earphone body 101. The earphone body 101 can also charge the charging device 102, meaning the earphone body 101 can recharge the charging device 102. For example, the earphone 100 can be a true wireless stereo (TWS) Bluetooth earphone or a traditional Bluetooth earphone, etc.
[0042] It should be noted that an earphone 101 may include two earphone bodies 101. The structures of the two earphone bodies 101 may be exactly the same or different. This application embodiment takes two earphone bodies that are exactly the same as an example for illustration. Therefore, the earphone body involved in the following embodiments refers to any one of the two earphone bodies.
[0043] Optionally, the earphone 100 may also include a controller for controlling the earphone body to charge the charging device. It may also control the charging device to charge the earphone body.
[0044] For further options, please refer to the following. Figure 1The earphone body 101 may include: a battery 1011, a charging chip 1012, and a recharge circuit unit 1013 connected to each other. The recharge circuit unit is also called a recharge topology circuit (Boost / buck-boost) unit. The charging device 102 may include: a battery 1021, a battery management unit 1022, a microcontroller unit (MCU) 1023, and a charging circuit unit 1024 connected to each other. The charging circuit unit is also called a charging topology circuit (Boost / buck-boost) unit. The battery management unit 1022 may integrate a power management unit (PMU) / charger chip. In this embodiment, the controller may be integrated with the microcontroller unit. This embodiment describes the situation with the controller and microcontroller unit integrated, i.e., the microcontroller unit executing the charging control method provided in this embodiment.
[0045] The battery 1011 of the earphone body 101 can be used to store power to power the earphone body. The microcontroller unit 1023 can be used to control the charger chip 1012 through the power management unit 1022, thereby controlling the battery 1011 to charge the battery 1021 of the charging device 102 through the recharge circuit unit 1013. The microcontroller unit 1023 can also be used to control the battery management unit 1022 of the charging device 102 to charge the battery 1011 of the earphone body 101 through the charging circuit unit 1024.
[0046] For further options, please refer to the following. Figure 1 The headset body 101 may also include: a Personal Identification Number (PIN) connection unit 1014, a Power Management Unit (PMU) 1015, a Bluetooth audio master control chip (BT SOC) 1016, a sensor 1017, an audio speaker 1018, a microphone (MIC) 1019, and a speaker (SPK) 1020.
[0047] The charging device 102 may also include: a PIN connection unit 1025, a Universal Serial Bus (USB) charging interface unit 1026, a button unit 1027, a sensor 1028, and a light-emitting diode (LED) unit 1029.
[0048] It should be noted that, Figure 1Taking a wireless earphone that includes two earphone bodies as an example, the corresponding charging device 102 includes two PIN connection units 1025 that are respectively connected to the PIN connection units 1014 of the two earphone bodies 101.
[0049] Please refer to Figure 2 The diagram illustrates a flowchart of a charging control method provided in an embodiment of this application. The charging control method can be applied to... Figure 1 The aforementioned headphones. Optionally, the charging control method can be provided by... Figure 1 The wireless charging headphones shown are executed by a microcontroller unit. This application embodiment uses the example of a charging control method executed by a microcontroller unit for illustration. For example... Figure 2 As shown, the method includes:
[0050] Step 201: With the earphone body connected to the charging device, obtain the battery level of the earphone body.
[0051] In this embodiment, after using the earphones, the user can control the earphones to connect to the charging device. When the earphones are connected to the charging device, the microcontroller can obtain the battery level of the earphones.
[0052] Optionally, when the battery level of the earbuds is below a certain threshold, the charging device can be controlled to charge the earbuds. This threshold is lower than the earbuds' battery saturation value, which refers to the battery capacity when fully charged. The threshold can be a safe battery level. If the earbuds remain at this safe battery level for an extended period, the battery capacity loss is less than the threshold. Alternatively, there may be no battery capacity loss. Optionally, the threshold value can be between 60% and 80% of the earbuds' battery saturation value. For example, in the case of TWS earbuds, after use, the user places the earbuds in the charging device (charging case) to connect them.
[0053] Step 202: When the battery level of the earphone is greater than the battery threshold and the earphone meets the first preset condition, control the earphone to charge the charging device.
[0054] In this embodiment, the first preset condition can be a condition indicating that the earphones have not been used for a long time, and the indicated duration is longer than a preset duration. When the earphones meet the first preset condition, the microcontroller determines that the earphones are in a state of prolonged inactivity. Then, when the earphones' battery level is greater than a battery threshold, it can control the earphones to charge the charging device. That is, it can control the earphones to recharge the charging device to release some of the earphones' battery power.
[0055] Optionally, the headphones meeting the first preset condition may include: the headphones not being connected to the electronic device for a consecutive target number of target time periods; or, the headphones not being connected to the electronic device for a first target duration exceeding the target time period.
[0056] The target time period can refer to a period when the probability of connection between the headset and the electronic device is high, i.e., the time when the user typically uses the headset. Alternatively, it can be a specific time period set by the user. Optionally, the target time period may include at least one of the following: a first time period within a set duration when the headset and electronic device are connected; a second time period when the distance between the headset and the electronic device is less than a target distance threshold; or a third time period corresponding to a target trip in the electronic device's recorded schedule that requires headset connection. The electronic device and headset have a connection relationship. A connection relationship between the electronic device and the headset can refer to the current connection between the electronic device and the headset, or a historical connection between the electronic device and the headset. For example, the target time period includes the first, second, and third time periods. The set duration can refer to one month or one day. The target distance threshold can be the longest possible connection distance between the headset and the electronic device. The target trip can include voice conference trips, video conference trips, and online course trips. For example, assuming the set duration is one day, the first time period could be 8:00 to 9:00, 12:00 to 13:30, and 20:00 to 21:00. The number of targets can be 3, 4, or 5, etc.
[0057] The first target duration can be a fixed duration. For example, the first target duration could be one hour, three hours, or five hours. Alternatively, the first target duration can be determined based on headphone usage behavior information. For example, the first target duration can be less than the maximum interval between two adjacent target time periods.
[0058] For example, suppose the headphones meet the first preset condition including: the headphones are not connected to the electronic device for three consecutive target time periods. Alternatively, the headphones are not connected to the electronic device for three hours beyond the target time periods. And suppose the target time periods are 8:00-9:00, 12:00-13:30, and 20:00-21:00. If the headphones are not connected to the electronic device for all three consecutive target time periods on the same day (8:00-9:00, 12:00-13:30, and 20:00-21:00), then the headphones are determined to meet the first preset condition. Alternatively, if it is determined that the headphones are not connected to the electronic device for three hours beyond 9:00, then the headphones are determined to meet the first preset condition.
[0059] Step 203: When the remaining power of the earphone body after charging the charging device is at the power threshold, control the earphone body to stop charging the charging device.
[0060] In this embodiment, when the earphone's battery level is greater than a battery threshold and the earphone meets a first preset condition, the microcontroller controls the earphone to charge the charging device until the earphone's battery level reaches the battery threshold. That is, it can control the earphone to recharge the charging device to release some of its battery power, ensuring that the remaining battery power after charging is equal to the battery threshold.
[0061] Optionally, the microcontroller unit can detect the remaining battery power after the earphones have charged the charging device, either in real time or periodically. If the remaining battery power after charging is equal to a battery threshold, the microcontroller unit can stop charging the earphones, ensuring that the remaining battery power is equal to the battery threshold.
[0062] In summary, the charging control method provided in this application, upon detecting a connection between the earphone and the charging device, acquires the earphone's battery level. If the earphone's battery level exceeds a battery threshold and the earphone meets a first preset condition, the method controls the earphone to charge the charging device. If the remaining battery level after charging is equal to the battery threshold, the method stops charging the earphone, where the battery threshold is less than the earphone's battery saturation value. This technical solution allows the earphone to charge the device when its battery level exceeds the battery threshold and the first preset condition is met, preventing the earphone from being in a charging state for extended periods. Furthermore, by controlling the earphone's battery level to drop below its battery saturation value, it also prevents the earphone from being constantly fully charged. Therefore, this technical solution avoids the earphone's battery being in a high SOC / high voltage state for extended periods, ensuring the stability of the battery's positive electrode / electrolyte, reducing the rate of battery capacity decay, and improving the earphone's battery life.
[0063] Please refer to Figure 3 The diagram illustrates a flowchart of a charging control method provided in an embodiment of this application. The charging control method can be applied to... Figure 1 The aforementioned headphones. Optionally, the charging control method can be provided by... Figure 1 The wireless charging headphones shown are executed by a microcontroller unit. This application embodiment uses the example of a charging control method executed by a microcontroller unit for illustration. For example... Figure 3 As shown, the method includes:
[0064] Step 301: With the earphone body connected to the charging device, obtain the battery level of the earphone body.
[0065] In this embodiment, after using the earphones, the user can control the earphones to connect to the charging device. When the earphones are connected to the charging device, the microcontroller can obtain the battery level of the earphones.
[0066] Step 302: When the battery level of the earphone is less than the battery threshold, control the charging device to charge the earphone.
[0067] Optionally, the microcontroller can control the charging device to charge the earphones when the battery level of the earphones is less than the battery threshold, until the battery level of the earphones reaches the battery threshold.
[0068] The battery threshold is less than the battery saturation value of the earphones themselves. The battery saturation value refers to the battery capacity when fully charged. The battery threshold can be a safe battery level. If the earphones remain at the safe battery level for an extended period, the battery capacity loss is less than the threshold. Alternatively, there may be no battery capacity loss. Optionally, the battery threshold can be between 60% and 80% of the earphones' battery saturation value. For example, in the case of TWS earphones, after use, the user places the earphones in the charging case to connect them to the charging device.
[0069] Step 303: If the available power of the earphone body is at the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, control the charging device to stop charging the earphone body.
[0070] Optionally, the microcontroller unit can detect, in real time or periodically, the available power of the earphones after the charging device has charged them. If the available power of the earphones after charging is equal to a power threshold, it can determine whether the earphones meet the second preset condition.
[0071] In this embodiment, the second preset condition can be a condition indicating whether the headphones may be used. If the headphones do not meet the second preset condition, the microcontroller indicates that the headphones are unlikely to be used. Therefore, it can control the charging device to stop charging the headphones.
[0072] Optionally, the second preset condition can be that the connection duration between the earphone body and the charging device is greater than a second preset duration threshold, and the second preset duration threshold is less than a first preset duration threshold. The second preset duration threshold can be determined based on the interval of the target time period. For example, the second preset duration threshold can be less than the minimum interval between two adjacent target time periods. For example, the second preset duration threshold is 1 hour, 3 hours, 5 hours, or 8 hours.
[0073] Alternatively, the second preset condition can be that the time interval between the current moment and the start moment of the target time period is less than or equal to the second target duration. The value of the second target duration is proportional to the difference between the target charging amount and the battery saturation value, where the target charging amount is the usable battery power of the earphones after the charging device charges them. For example, the second target duration can be the time required for the charging device to charge the earphones from the target charging amount to the battery saturation value.
[0074] For example, if the second preset condition is that the time interval between the current time and the start time of the user's preferred target time period is less than or equal to the second target duration, the microcontroller unit can, after the available power of the earphones reaches a power threshold after the charging device has charged the earphones, determine whether the time interval between the current time of the earphones and the start time of the user's preferred target time period satisfies the condition that the time interval is less than or equal to the second target duration. If the time interval does not satisfy the condition of being less than or equal to the second target duration, it indicates that the time interval between the current time of the earphones and the start time of the user's preferred target time period is greater than the second target duration. Then, the microcontroller unit controls the charging device to stop charging the earphones.
[0075] Step 304: After the charging device charges the earphone body, the available power of the earphone body is at the power threshold, and the earphone meets the second preset condition, control the charging device to charge the earphone body.
[0076] Optionally, if the available battery power of the earphones after charging is at a certain threshold, it is determined whether the earphones meet a second preset condition. If the earphones meet the second preset condition, it indicates that the earphones are about to be used. Then, the charging device can be controlled to charge the earphones.
[0077] For example, if the second preset condition is that the time interval between the current time and the start time of the user's preferred target time period is less than or equal to the second target duration, the microcontroller unit can determine whether the time interval between the current time of the earphone and the start time of the user's preferred target time period satisfies the condition that the time interval is less than or equal to the second target duration after the earphone is charged by the charging device and the available power of the earphone reaches a power threshold. If the time interval is less than or equal to the second target duration, the microcontroller unit controls the charging device to charge the earphone.
[0078] In one optional implementation, the microcontroller can control the charging device to charge the earphone body when the earphone meets a second preset condition, until the earphone body's power level reaches a second power threshold. The second power threshold is greater than the first power threshold and less than the power saturation value. The value of the second power threshold is proportional to the magnitude of the target time period.
[0079] Optionally, the second battery threshold can be set in a value proportional to the duration of the nearest target time period. That is, the shorter the duration of the nearest target time period, the smaller the second battery threshold. This ensures battery stability, reduces battery capacity degradation, and improves the overall battery life of the headphones while guaranteeing sufficient power for the user's earphone usage.
[0080] In another alternative implementation, the microcontroller can control the charging device to charge the earphones until they reach full charge when the earphones meet a second preset condition. Because the microcontroller controls the charging device to charge the earphones to their maximum battery capacity when it determines that the earphones are about to be used, the earphones are always fully charged when the user uses them, ensuring sufficient power and preventing undercharging, thus improving the user experience.
[0081] Step 305: When the battery level of the earphone is greater than the battery threshold and the earphone meets the first preset condition, control the earphone to charge the charging device.
[0082] In this embodiment, if the battery level of the earphone body obtained in step 301 is greater than a battery threshold, or if the battery level of the earphone body is greater than the battery threshold after being charged by the charging device in step 304, it can be determined whether the earphone meets a first preset condition. The first preset condition can be a condition indicating that the earphone has not been used for a long time, where the indicated duration is greater than a preset duration. If the earphone meets the first preset condition, the microcontroller unit determines that the earphone has been in a long-term unused state and can then control the earphone body to charge the charging device. That is, it can control the earphone body to recharge the charging device to release some of the battery power.
[0083] Optionally, the headphones meeting the first preset condition may include: the headphones not being connected to the electronic device for a consecutive target number of target time periods; or, the headphones not being connected to the electronic device for a first target duration exceeding the target time period.
[0084] The target time period can refer to a period when the probability of connection between the headset and the electronic device is high, i.e., the time when the user typically uses the headset. Alternatively, it can be a specific time period set by the user. Optionally, the target time period may include at least one of the following: a first time period within a set duration when the headset and electronic device are connected; a second time period when the distance between the headset and the electronic device is less than a target distance threshold; or a third time period corresponding to a target trip in the electronic device's recorded schedule that requires headset connection. The electronic device and headset have a connection relationship. A connection relationship between the electronic device and the headset can refer to the current connection between the electronic device and the headset, or a historical connection between the electronic device and the headset. For example, the target time period includes the first, second, and third time periods. The set duration can refer to one month or one day. The target distance threshold can be the longest possible connection distance between the headset and the electronic device. The target trip can include voice conference trips, video conference trips, and online course trips. For example, assuming the set duration is one day, the first time period could be 8:00 to 9:00, 12:00 to 13:30, and 20:00 to 21:00. The number of targets can be 3, 4, or 5, etc.
[0085] The first target duration can be a fixed duration. For example, the first target duration could be one hour, three hours, or five hours. Alternatively, the first target duration can be determined based on headphone usage behavior information. For example, the first target duration can be less than the maximum interval between two adjacent target time periods.
[0086] For example, suppose the headphones meet the first preset condition including: the headphones are not connected to the electronic device for three consecutive target time periods. Alternatively, the headphones are not connected to the electronic device for three hours beyond the target time periods. And suppose the target time periods are 8:00-9:00, 12:00-13:30, and 20:00-21:00. If the headphones are not connected to the electronic device for all three consecutive target time periods on the same day (8:00-9:00, 12:00-13:30, and 20:00-21:00), then the headphones are determined to meet the first preset condition. Alternatively, if it is determined that the headphones are not connected to the electronic device for three hours beyond 9:00, then the headphones are determined to meet the first preset condition.
[0087] In this embodiment of the application, optionally, if the battery level of the earphone body is greater than the battery threshold and the earphone does not meet the first preset condition, the microcontroller unit may not perform any operation.
[0088] Step 306: When the remaining power of the earphone body after charging the charging device is at the power threshold, control the earphone body to stop charging the charging device.
[0089] In this embodiment, when the earphone's battery level is greater than a battery threshold and the earphone meets a first preset condition, the microcontroller controls the earphone to charge the charging device until the earphone's battery level reaches the battery threshold. That is, it can control the earphone to recharge the charging device to release some of its battery power, ensuring that the remaining battery power after charging is equal to the battery threshold.
[0090] Optionally, the microcontroller unit can detect the remaining battery power after the earphones have charged the charging device, either in real time or periodically. If the remaining battery power after charging is equal to a battery threshold, the microcontroller unit can stop charging the earphones, ensuring that the remaining battery power is equal to the battery threshold.
[0091] In this embodiment of the application, before step 301, the method further includes: determining a target time period.
[0092] When the target time period includes the first time period, the process of determining the target time period may include: recording the first time period during which the headphones are connected to the electronic device within a set duration, and using the first time period as the target time period.
[0093] Optionally, if the set duration is one day, the first time period can be the period during which the headset is connected to the terminal within one day. The microcontroller unit can collect the period during which the headset is connected to the terminal for each day within a month as at least one initial time period. The initial time period that overlaps with at least a set number of initial time periods is selected as the first time period.
[0094] For example, suppose the set quantity is 2, and the initial time periods collected by the microcontroller include: 9:00 to 10:00 on the 1st (initial time period 1), 9:30 to 10:00 on the 2nd (initial time period 2), 14:00 to 15:00 on the 2nd (initial time period 3), and 9:05 to 10:00 on the 16th (initial time period 4). Then, initial time period 1 overlaps with initial time periods 2 and 4, so initial time period 1 is taken as the first time period. Similarly, initial time period 2 overlaps with initial time periods 1 and 4, so initial time period 1 is taken as the first time period. Since initial time period 3 does not overlap with any initial time period, initial time period 3 is not the first time period. Based on this, the target time periods include: initial time period 1, initial time period 2, and initial time period 4.
[0095] When the target time period includes a second time period, the process of determining the target time period may include: recording the second time period when the distance between the headphones and the electronic device is less than the target distance threshold, and using the second time period as the target time period.
[0096] Optionally, the target distance threshold can be the longest possible connection distance between the headphones and the electronic device. The headphones can acquire first location information in real time and second location information of the electronic device. The distance between the headphones and the electronic device is determined based on the first and second location information. The distance is then compared to the target distance threshold. If the distance is determined to be less than the target distance threshold, the time period during which the distance is less than the target distance threshold is recorded and designated as the second time period.
[0097] The headphones can obtain a secondary location from an electronic device when connected to it. Alternatively, the electronic device can share its location information to cloud storage. A third-party network-enabled Bluetooth device connected to the cloud storage can obtain the electronic device's location information from the cloud storage and broadcast the location information to a public Bluetooth channel. The headphones can then obtain the broadcast location information from the electronic device via the public Bluetooth channel.
[0098] When the target time period includes a third time period, the process of determining the target time period may include: obtaining the target trip that requires the connection of headphones from the trip schedule recorded by the electronic device, and taking the third time period corresponding to the target trip as the target time period.
[0099] Optionally, the electronic device can filter out the target trip from its recorded schedule, and transmit the target trip and its corresponding third time period to the headset, so that the headset can obtain the third time period of the target trip and use the third time period as the target time period. For example, the target trip may include a voice conference trip, a video conference trip, and an online course trip. The method by which the electronic device transmits the target trip and its corresponding third time period to the headset can refer to the process described above for the headset to obtain the second location information of the electronic device, and will not be elaborated on in this embodiment.
[0100] In summary, the charging control method provided in this application, upon detecting a connection between the earphone and the charging device, acquires the earphone's battery level. If the earphone's battery level exceeds a battery threshold and the earphone meets a first preset condition, the method controls the earphone to charge the charging device. If the remaining battery level after charging is equal to the battery threshold, the method stops charging the earphone, where the battery threshold is less than the earphone's battery saturation value. This technical solution allows the earphone to charge the device when its battery level exceeds the battery threshold and the first preset condition is met, preventing the earphone from being in a charging state for extended periods. Furthermore, by controlling the earphone's battery level to drop below its battery saturation value, it also prevents the earphone from being constantly fully charged. Therefore, this technical solution avoids the earphone's battery being in a high SOC / high voltage state for extended periods, ensuring the stability of the battery's positive electrode / electrolyte, reducing the rate of battery capacity decay, improving the earphone's battery life, and effectively optimizing the earphone's battery lifespan.
[0101] Furthermore, since both the first and second preset conditions are related to the target time period when the user usually uses the headphones, the charging and discharging of the headphones are controlled according to the target time period. This ensures the power supply of the headphones and avoids insufficient charging of the headphones, thereby improving the user experience.
[0102] The charging control method provided in this application can be executed by a charging control device. This application uses the charging control device executing the charging control method as an example to illustrate the charging control device provided in this application.
[0103] Please refer to Figure 4 The diagram illustrates a block diagram of a charging control device according to an embodiment of this application. The charging control device is applied to headphones, which include a headphone body and a charging device. Figure 4 As shown, the charging control device 400 includes an acquisition module 401 and a control module 402.
[0104] The acquisition module 401 is used to acquire the battery level of the earphone body when the earphone body is connected to the charging device;
[0105] The control module 402 is used to control the earphone body to charge the charging device when the battery level of the earphone body is greater than the battery threshold and the earphone meets the first preset condition; and is also used to control the earphone body to stop charging the charging device when the remaining battery level after the earphone body has charged the charging device is the battery threshold, wherein the battery threshold is less than the battery saturation value of the earphone body.
[0106] Optionally, the headphones satisfying the first preset condition includes: the headphones not being connected to the electronic device for a consecutive target number of target time periods; or, the headphones not being connected to the electronic device for a first target duration exceeding the target time period.
[0107] Optionally, the control module 402 is also used for:
[0108] When the battery level of the earphone is less than the battery threshold, the charging device is controlled to charge the earphone.
[0109] If the available power of the earphone body is the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, the charging device is controlled to stop charging the earphone body.
[0110] When the earphone body is charged by the charging device and the available power of the earphone body is at the power threshold, and the earphone meets the second preset condition, the charging device is controlled to charge the earphone body.
[0111] Optionally, the headphones satisfying the second preset condition include: the time interval between the current time and the start time of the target time period is less than or equal to the second target duration, and the value of the second target duration is proportional to the difference between the available power and the power saturation value.
[0112] Optionally, the target time period includes at least one of the following: a first time period during which the headphones and electronic device are connected within a set duration; a second time period when the distance between the headphones and electronic device is less than a target distance threshold; and a third time period corresponding to the target trip in the trip schedule recorded by the electronic device that requires the headphones to be connected, wherein the electronic device and headphones have a connection relationship.
[0113] In summary, the charging control device provided in this application, upon detecting a connection between the earphone and the charging device, acquires the earphone's battery level. If the earphone's battery level exceeds a battery threshold and the earphone meets a first preset condition, the device controls the earphone to charge the charging device. If the remaining battery level after charging is equal to the battery threshold, the device stops charging the earphone, where the battery threshold is less than the earphone's battery saturation value. This technical solution allows the earphone to charge the device when its battery level exceeds the battery threshold and the first preset condition is met, preventing the earphone from being in a charging state for extended periods. Furthermore, by controlling the earphone's battery level to drop below its battery saturation value, it also prevents the earphone from being constantly fully charged. Therefore, this technical solution avoids the earphone's battery being in a high SOC / high voltage state for extended periods, ensuring the stability of the battery's positive electrode / electrolyte, reducing the rate of battery capacity decay, improving the earphone's battery life, and effectively optimizing the earphone's battery lifespan.
[0114] The charging control device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0115] The charging control device provided in this application embodiment can achieve... Figures 2 to 3 To avoid repetition, the various processes implemented in any of the method embodiments will not be described again here.
[0116] Optionally, such as Figure 5 As shown, this application embodiment also provides an earphone 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described charging control method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0117] It should be noted that the earphone 500 in this application embodiment includes all the components of the earphone 500 described above.
[0118] Optional, Figure 6 This is a schematic diagram of the hardware structure of an earphone provided in an embodiment of this application. Figure 6 As shown, the headset 600 includes, but is not limited to, the following components: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
[0119] Those skilled in the art will understand that the headphone 600 may also include a power supply (such as a battery) for powering various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The headphone structure shown does not constitute a limitation on the headphone. The headphone may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0120] The processor 610 is used to obtain the power level of the earphone body when the earphone body is connected to the charging device.
[0121] When the battery level of the earphone body is greater than the battery threshold and the earphone meets the first preset condition, the earphone body is controlled to charge the charging device.
[0122] When the remaining power of the earphone body after charging the charging device is equal to the power threshold, the earphone body is controlled to stop charging the charging device, and the power threshold is less than the power saturation value of the earphone body.
[0123] In this embodiment, when the connection between the earphone and the charging device is detected, the battery level of the earphone is acquired. If the battery level of the earphone is greater than a battery threshold and the earphone meets a first preset condition, the earphone is controlled to charge the charging device. If the remaining battery level after the earphone has charged the charging device is equal to the battery threshold, the earphone is controlled to stop charging the charging device. The battery threshold is less than the battery saturation value of the earphone. In this technical solution, when the battery level of the earphone is greater than the battery threshold and the earphone meets the first preset condition, the earphone can be controlled to charge the charging device, avoiding the earphone from being in a charging state for a long time. Furthermore, since the battery level of the earphone can be controlled to drop below the battery saturation value, the earphone is also prevented from being in a fully charged state for a long time. Based on this, this technical solution can prevent the battery of the earphone from being in a high SOC / high voltage state for a long time, ensuring the stability of the battery positive electrode / electrolyte, reducing the rate of battery capacity decay, improving the battery life of the earphone, and effectively optimizing the battery life of the earphone.
[0124] Optionally, the earphone satisfying the first preset condition includes: the earphone not being connected to the electronic device for a consecutive target number of target time periods; or, the earphone not being connected to the electronic device for a first target duration exceeding the target time period.
[0125] Optionally, the processor 610 is also used for:
[0126] When the battery level of the earphone body is less than the battery threshold, the charging device is controlled to charge the earphone body.
[0127] If the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, the charging device is controlled to stop charging the earphone body.
[0128] When the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone meets the second preset condition, the charging device is controlled to charge the earphone body.
[0129] Optionally, the earphones satisfying the second preset condition include: the time interval between the current time and the start time of the target time period is less than or equal to the second target duration, and the value of the second target duration is proportional to the difference between the available power and the power saturation value.
[0130] Optionally, the target time period includes at least one of the following: a first time period during which the earphone and the electronic device are connected within a set duration; a second time period when the distance between the earphone and the electronic device is less than a target distance threshold; and a third time period corresponding to the target trip in the trip schedule recorded by the electronic device that requires the earphone to be connected, wherein the electronic device and the earphone have a connection relationship.
[0131] In this embodiment, when the connection between the earphone and the charging device is detected, the battery level of the earphone is acquired. If the battery level of the earphone is greater than a battery threshold and the earphone meets a first preset condition, the earphone is controlled to charge the charging device. If the remaining battery level after the earphone has charged the charging device is equal to the battery threshold, the earphone is controlled to stop charging the charging device. The battery threshold is less than the battery saturation value of the earphone. In this technical solution, when the battery level of the earphone is greater than the battery threshold and the earphone meets the first preset condition, the earphone can be controlled to charge the charging device, avoiding the earphone from being in a charging state for a long time. Furthermore, since the battery level of the earphone can be controlled to drop below the battery saturation value, the earphone is also prevented from being in a fully charged state for a long time. Based on this, this technical solution can prevent the battery of the earphone from being in a high SOC / high voltage state for a long time, ensuring the stability of the battery positive electrode / electrolyte, reducing the rate of battery capacity decay, improving the battery life of the earphone, and effectively optimizing the battery life of the earphone.
[0132] It should be understood that, in this embodiment, the input unit 604 may include a microphone 6041. The display unit 606 may include a display panel 6061, which may be configured as a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, function keys (such as volume control buttons, power buttons, etc.), trackballs, joysticks, etc., which will not be described in detail here.
[0133] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback function, timing control function, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0134] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.
[0135] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described charging control method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0136] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0137] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described charging control method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0138] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0139] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the charging control method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0140] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0141] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0142] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A charging control method, characterized in that, Applied to headphones, the headphones including a headphone body and a charging device; the method includes: Determining a target time period includes: when the target time period includes a first time period, recording the first time period within a set duration during which the earphone is connected to the electronic device, and using the first time period as the target time period; When the earphone body is connected to the charging device, the power level of the earphone body is obtained; When the battery level of the earphone body is greater than a battery threshold and the earphone meets a first preset condition, the earphone body is controlled to charge the charging device; the earphone meeting the first preset condition includes: the earphone not being connected to the electronic device for a consecutive target number of target time periods; or, the earphone not being connected to the electronic device for a first target duration exceeding the target time period. When the remaining power of the earphone body after charging the charging device is equal to the power threshold, the earphone body is controlled to stop charging the charging device, and the power threshold is less than the power saturation value of the earphone body.
2. The method according to claim 1, characterized in that, After obtaining the battery level of the earphone body, the method further includes: When the battery level of the earphone body is less than the battery threshold, the charging device is controlled to charge the earphone body. If the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, the charging device is controlled to stop charging the earphone body. When the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone meets the second preset condition, the charging device is controlled to charge the earphone body.
3. The method according to claim 2, characterized in that, The earphones satisfying the second preset condition include: the time interval between the current time and the start time of the target time period is less than or equal to the second target duration, and the value of the second target duration is proportional to the difference between the available power and the power saturation value.
4. The method according to claim 1 or 3, characterized in that, The target time period includes at least one of the following: a first time period within a set duration during which the earphone and the electronic device are connected; a second time period when the distance between the earphone and the electronic device is less than a target distance threshold; and a third time period corresponding to the target trip in the trip schedule recorded by the electronic device that requires the earphone to be connected. The electronic device and the earphone have a connection relationship.
5. A charging control device, characterized in that, Applied to headphones, the headphones include a headphone body and a charging device; The device includes: A determining module is used to determine a target time period; including: when the target time period includes a first time period, recording the first time period within a set duration during which the earphone is connected to the electronic device, and using the first time period as the target time period; The acquisition module is used to acquire the battery level of the earphone body when the earphone body is connected to the charging device; The control module is configured to control the earphone body to charge the charging device when the battery level of the earphone body is greater than a battery threshold and the earphone meets a first preset condition; the earphone meeting the first preset condition includes: the earphone not being connected to the electronic device for a consecutive target number of target time periods; or, the earphone not being connected to the electronic device for a first target duration exceeding the target time period; and is further configured to control the earphone body to stop charging the charging device when the remaining battery level after the earphone body charges the charging device is the battery threshold, wherein the battery threshold is less than the battery saturation value of the earphone body.
6. The apparatus according to claim 5, characterized in that, The control module is also used for: When the battery level of the earphone body is less than the battery threshold, the charging device is controlled to charge the earphone body. If the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone does not meet the second preset condition, the charging device is controlled to stop charging the earphone body. When the available power of the earphone body is equal to the power threshold after the charging device charges the earphone body, and the earphone meets the second preset condition, the charging device is controlled to charge the earphone body.
7. The apparatus according to claim 6, characterized in that, The earphones satisfying the second preset condition include: the time interval between the current time and the start time of the target time period is less than or equal to the second target duration, and the value of the second target duration is proportional to the difference between the available power and the power saturation value.
8. The apparatus according to claim 5 or 7, characterized in that, The target time period includes at least one of the following: a first time period within a set duration during which the earphone and the electronic device are connected; a second time period when the distance between the earphone and the electronic device is less than a target distance threshold; and a third time period corresponding to the target trip in the trip schedule recorded by the electronic device that requires the earphone to be connected. The electronic device and the earphone have a connection relationship.
9. An earphone, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the charging control method as described in any one of claims 1 to 4.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the charging control method as described in any one of claims 1 to 4.