Headphone charging control method, headphone and computer readable storage medium
By dynamically adjusting the charging current according to the charging time in TWS earphones, the problem of high current charging reducing battery life is solved and more efficient battery life protection is achieved.
Patent Information
- Application Number
- CN202111437727.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-11-29
AI Technical Summary
When TWS earphones are charged with high current, the charging efficiency is reduced and the battery life is shortened, resulting in reduced battery life.
When receiving the charging control command, the charging time is determined, the charging current is determined based on the charging time, and the charging module of the headset is controlled to perform the charging action to avoid using the maximum charging current for each charge.
It effectively improves the service life of the headset battery and protects battery health by dynamically adjusting the charging current according to the charging speed requirements.
Smart Images

Figure CN114243816B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of charging control technology, and in particular to a charging control method for an earphone, an earphone and a computer-readable storage medium. Background Art
[0002] With the development of technology, TWS (True Wireless Stereo) headphones are becoming more and more popular because of their convenience in carrying and wearing.
[0003] In the related art, the charging box of TWS earphones can provide storage and charging functions for TWS earphones, extending the use time of TWS earphones. In order to shorten the charging time, various types of TWS earphones mostly use high current charging. However, high current charging will reduce the charging efficiency and lead to energy waste on the one hand, and on the other hand, it will also affect the battery life and reduce the battery life.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a charging control method for earphones, earphones and computer-readable storage medium, aiming to achieve the effect of extending the service life of earphone batteries.
[0006] To achieve the above object, the present invention provides a method for controlling charging of an earphone, the method comprising the following steps:
[0007] Upon receiving a charging control instruction, determining a charging duration corresponding to the charging control instruction;
[0008] Determining a charging current according to the charging duration;
[0009] The charging module of the earphone is controlled to perform a charging action according to the charging current.
[0010] Optionally, the step of determining the charging current according to the charging duration includes:
[0011] Obtaining a maximum charging current and a minimum charging current corresponding to the headset;
[0012] The charging current is determined according to the maximum charging current, the minimum charging current and the charging duration.
[0013] Optionally, the step of determining the charging current according to the charging duration includes:
[0014] Get the pre-stored charging curve;
[0015] The charging current is determined according to the charging duration and the pre-stored charging curve.
[0016] Optionally, the step of determining the charging current according to the charging duration includes:
[0017] Determine the duration interval of the charging duration;
[0018] The charging current associated with the time interval is obtained.
[0019] Optionally, the charging module includes a charging chip, and the step of controlling the charging module of the earphone to perform a charging action according to the charging current includes:
[0020] Determining current control parameters of the charging control chip;
[0021] When the current control parameter does not match the charging current, the control parameter of the charging control chip is updated according to the charging current, so that the charging control chip controls the charging module to perform a charging action according to the updated control parameter.
[0022] Optionally, when receiving the charging control instruction, the step of determining the charging duration corresponding to the charging control instruction includes:
[0023] Receiving charging control instructions sent by other terminals; or;
[0024] receiving an input voice, and determining the charging control instruction according to the input voice; or
[0025] When the preset control action is received, the charging control instruction is triggered.
[0026] Optionally, when receiving the charging control instruction, the step of determining the charging duration corresponding to the charging control instruction includes:
[0027] Upon receiving the charging control instruction, determining the current time period;
[0028] The charging duration associated with the time period is obtained as the charging duration corresponding to the charging control instruction.
[0029] Optionally, before the step of obtaining the charging duration associated with the time period as the charging duration corresponding to the charging control instruction, the step further includes:
[0030] Obtaining historical usage data of the headset;
[0031] The charging duration associated with each of the time periods is determined according to the historical usage data.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides an earphone, which includes a memory, a processor, and a charging control program stored in the memory and executable on the processor, and the charging control program, when executed by the processor, implements the steps of the charging control method of the earphone as described above.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a charging control program is stored. When the charging control program is executed by a processor, the steps of the charging control method of the earphone as described above are implemented.
[0034] The embodiment of the present invention proposes a charging control method for earphones, earphones and computer-readable storage medium. When receiving a charging control instruction, the charging duration corresponding to the charging control instruction is first determined, and then the charging current is determined according to the charging duration, and the charging module of the earphone is controlled to perform a charging action according to the charging current. Since the charging current can be determined according to the charging duration, it is avoided that the earphone is charged with the maximum charging current every time, which effectively improves the service life of the earphone battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0036] Figure 2 It is a flow chart of an embodiment of a method for controlling charging of earphones of the present invention;
[0037] Figure 3 is a schematic diagram of a charging curve involved in an embodiment of the present invention;
[0038] Figure 4 It is a flow chart of another embodiment of the earphone charging control method of the present invention;
[0039] Figure 5 FIG. 4 is a flow chart of another embodiment of the earphone charging control method of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] In the related art, the charging box of TWS earphones can provide storage and charging functions for TWS earphones, extending the use time of TWS earphones. In order to shorten the charging time, various types of TWS earphones mostly use high current charging. However, high current charging will reduce the charging efficiency and lead to energy waste on the one hand, and on the other hand, it will also affect the battery life and reduce the battery life.
[0043] In order to solve the above defects, an embodiment of the present invention proposes a charging control method for earphones, and its main solution is:
[0044] Upon receiving a charging control instruction, determining a charging duration corresponding to the charging control instruction;
[0045] Determining a charging current according to the charging duration;
[0046] The charging module of the earphone is controlled to perform a charging action according to the charging current.
[0047] When receiving a charging control instruction, the charging time corresponding to the charging control instruction is determined, and then the charging current is determined according to the charging time, and the charging module of the headset is controlled to perform a charging action according to the charging current. Since the charging current can be determined according to the charging time, it is avoided that the headset is charged with the maximum charging current every time, which effectively increases the service life of the headset battery.
[0048] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0049] The terminal in the embodiment of the present invention may be a terminal device such as a headset.
[0050] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a user interface 1003, a memory 1004, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a button, etc., and the user interface 1003 may also include a standard wired interface and a wireless interface. The memory 1004 may be a high-speed RAM memory or a stable memory (non-volatile memory). The memory 1004 may also be a storage device independent of the aforementioned processor 1001.
[0051] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0052] like Figure 1 As shown, the memory 1004 as a computer storage medium may include an operating system, a user interface module, and a charging control program.
[0053] exist Figure 1 In the terminal shown, the processor 1001 can be used to call the charging control program stored in the memory 1004 and perform the following operations:
[0054] Upon receiving a charging control instruction, determining a charging duration corresponding to the charging control instruction;
[0055] Determining a charging current according to the charging duration;
[0056] The charging module of the earphone is controlled to perform a charging action according to the charging current.
[0057] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0058] Obtaining a maximum charging current and a minimum charging current corresponding to the headset;
[0059] The charging current is determined according to the maximum charging current, the minimum charging current and the charging duration.
[0060] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0061] Get the pre-stored charging curve;
[0062] The charging current is determined according to the charging duration and the pre-stored charging curve.
[0063] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0064] Determine the duration interval of the charging duration;
[0065] The charging current associated with the time interval is obtained.
[0066] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0067] Determining current control parameters of the charging control chip;
[0068] When the current control parameter does not match the charging current, the control parameter of the charging control chip is updated according to the charging current, so that the charging control chip controls the charging module to perform a charging action according to the updated control parameter.
[0069] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0070] Receiving charging control instructions sent by other terminals; or;
[0071] receiving an input voice, and determining the charging control instruction according to the input voice; or
[0072] When the preset control action is received, the charging control instruction is triggered.
[0073] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0074] Upon receiving the charging control instruction, determining the current time period;
[0075] The charging duration associated with the time period is obtained as the charging duration corresponding to the charging control instruction.
[0076] Further, the processor 1001 may call the charging control program stored in the memory 1004, and further perform the following operations:
[0077] Obtaining historical usage data of the headset;
[0078] The charging duration associated with each of the time periods is determined according to the historical usage data.
[0079] With the development of technology, TWS (True Wireless Stereo) headphones are becoming more and more popular because of their convenience in carrying and wearing.
[0080] In the related art, the charging box of the TWS headset can provide storage and charging functions for the TWS headset, extending the use time of the TWS headset. In addition, in order to shorten the charging time, various types of TWS headsets mostly use high current charging. Although the headset is charged with a large current at a time, which effectively saves the charging time, it will also cause irreversible damage to the battery of the headset. Therefore, the battery life of the battery of the fast-charging headset is greatly reduced compared to the trickle-charging headset. In order to improve the battery life of the TWS headset, an embodiment of the present invention proposes a charging control method for the headset. When a charging control instruction is received, the charging time is first determined, and then the charging current is determined according to the charging time. The purpose is to dynamically determine the charging current according to the charging speed requirement to avoid charging the headset with the maximum charging current each time, which can effectively improve the battery life of the headset. Below, the charging control method of the above-mentioned headset is further explained through specific embodiments.
[0081] It should be understood that the following description is intended to enable those skilled in the art to better understand the protection scope of the claims of the present invention, but is not intended to limit the protection scope of the present invention.
[0082] Reference Figure 2 In one embodiment of the earphone charging control method of the present invention, the earphone charging control method comprises the following steps:
[0083] Step S10: upon receiving a charging control instruction, determining a charging duration corresponding to the charging control instruction;
[0084] Step S20, determining a charging current according to the charging duration;
[0085] Step S30: Control the charging module of the headset to perform a charging action according to the charging current.
[0086] In this embodiment, the embodiment of the present invention may be implemented by a rechargeable headset with a power storage function. When the headset receives a charging control instruction, the charging time corresponding to the charging control instruction may be determined first.
[0087] It is understandable that there are multiple ways for the headset to determine the charging time corresponding to the charging control instruction. The following describes the way in which the headset determines the charging time corresponding to the charging control instruction in conjunction with an exemplary embodiment.
[0088] Example 1: As an optional implementation scheme, the headset is provided with a maximum charging current and a minimum charging current. When receiving a charging control instruction, the headset can first obtain the maximum charging current and the minimum charging current corresponding to itself. It is understandable that the maximum charging current and the minimum charging current are comprehensively determined according to the specific charging current, battery model, battery performance and other hardware structures of the headset. They are fixed values and can be pre-stored in the headset so that the headset can directly read the pre-stored maximum charging current and the minimum charging current.
[0089] To better understand the solution provided in this example, this example is further explained in combination with specific application scenarios.
[0090] In this embodiment, it takes 1 hour for the product to be charged using a fast charging current (maximum charging current), and 6 hours for a moderate charging current (minimum charging current). This allows the user to select an expected value between 1 hour and 6 hours. Some users are used to charging the headset in the morning, so they can set the expected value to 3 or 4 hours. Some users are used to charging the headset during their lunch break, so they can set it to 1.5 or 2 hours. This method can protect the battery life to the maximum extent while satisfying the user's charging time. During the implementation process, the headset calculates the corresponding charging current according to the time the user expects to complete charging, and the headset uses this charging current to charge, thereby completing the charging process within the expected time.
[0091] Example 2, as another optional implementation, the charging curve can be pre-stored in the headset. Then the charging current is determined according to the charging time and the pre-stored charging curve. It can be understood that the charging curve is a curve with the charging time as the independent variable and the charging current as the dependent variable. Referring to Figure 3, the pre-stored charging curve can be as follows Figure 3 shown.
[0092] Example three, as another implementation scheme, after determining the charging duration, you can first determine the duration interval in which the charging duration is located, and then obtain the charging current associated with the duration interval. Among them, the interval length of the duration interval can be customized according to needs. For example, the interval length of the duration interval can be set to 10 minutes, 15 minutes, 30 minutes, 45 minutes or 60 minutes. The setting of the duration interval is determined according to the interval length, the minimum charging duration and the maximum charging duration, that is, within the interval with the minimum charging duration and the maximum charging duration as the boundary, it is divided into multiple small intervals according to the interval length. Then set the corresponding charging current for each small interval. After determining the interval into which the acquired charging duration falls, obtain the charging current corresponding to the interval as its corresponding charging current.
[0093] After the charging current is acquired, the charging module of the headset can be controlled to perform a charging action according to the charging current.
[0094] It is understandable that the headset is provided with a charging module, and the charging module includes a charging control chip. The charging control chip controls the charging module to perform corresponding charging actions by executing a pre-stored charging program. The charging control chip can be the main processor of the headset, and of course, it can also be set to be a chip independent of the main processor for controlling charging. This embodiment is not limited to this.
[0095] After determining the charging current, the current control parameters of the charging control chip can be obtained. Then, according to the architecture of the charging control chip and / or the execution logic of the charging execution program, it is determined whether the current control parameters match the charging current. That is, it is determined whether the expected charging current matches the determined charging current when the charging module is controlled to perform the charging action with the current control parameters. If yes, the charging module is directly controlled to start charging according to the current control parameters. If not, the control parameters of the charging control chip are updated according to the charging current, so that the charging control chip controls the charging module to perform the charging action according to the updated control parameters.
[0096] Optionally, in some embodiments, if the headset determines that the headset has entered the charging state after determining the charging current, the charging current of the current charging state may not be changed. When entering the charging state next time, the headset is controlled to charge with the charging current determined this time.
[0097] In the technical solution disclosed in this embodiment, when a charging control instruction is received, the charging time corresponding to the charging control instruction is determined, and then the charging current is determined according to the charging time, and the charging module of the headset is controlled to perform the charging action according to the charging current. Since the charging current can be determined according to the charging time, it is avoided that the headset is charged with the maximum charging current every time, which effectively improves the service life of the headset battery.
[0098] Optionally, refer to Figure 4 Based on the above embodiment, in another embodiment, before step S10, the method further includes:
[0099] S40, receiving a charging control instruction sent by other terminals; or receiving an input voice, and determining the charging control instruction according to the input voice; or triggering the charging control instruction when a preset control action is received.
[0100] In this embodiment, as an implementation scheme, the headset can establish a communication connection with other terminals. The other terminals may be terminal devices such as mobile phones, tablet computers and / or laptop computers that can be used to drive the headset. A charging control interface may be provided on the terminal device. The user can control the charging of the headset through the charging control interface. The charging control interface includes a charging start control button and a setting control for setting the charging time and / or charging mode. The user can control the headset connected to itself to enter the charging state and set the charging time through the charging control interface.
[0101] When the terminal receives the charging time and / or charging mode set by the user, it generates a charging control instruction according to the charging time and / or charging mode and sends it to the headset, so that after the headset receives the charging control instruction, it can directly determine the charging time and / or determine the charging time according to the charging mode.
[0102] As another implementation scheme, the headset is provided with a microphone so that the headset can receive the user's control voice, and then trigger the charging control instruction when receiving the preset control voice, and determine the charging time corresponding to the charging control instruction according to the control voice.
[0103] As another embodiment, a user interface is provided on the earphone box of the earphone or the earphone body. For example, the user interface may be a touch screen or a button. Thus, when the earphone receives a preset control action through the user interface, the charging control instruction is triggered.
[0104] It should be noted that the headset can achieve the effect of receiving the charging control instruction based on one or more of the above methods.
[0105] In the technical solution disclosed in this embodiment, charging control instructions can be sent to the headset in a variety of ways, making the headset control more diverse and improving the convenience of headset use.
[0106] Reference Figure 5 Based on any of the above embodiments, in another embodiment, step S10 includes:
[0107] Step S11, upon receiving the charging control instruction, determining the current time period;
[0108] Step S12: Acquire the charging duration associated with the time period as the charging duration corresponding to the charging control instruction.
[0109] In this embodiment, upon receiving the charging control instruction, the headset may first determine the current time period. Then, the charging duration associated with the time period is obtained as the charging duration corresponding to the charging control instruction. The charging duration associated with each time period may be set to a fixed value and pre-stored in the headset. It may also be determined based on the user's usage habits stored in the headset.
[0110] For example, 0:00 to 6:00 is generally a rest period, and the user's demand for the headset is the smallest, so it can be charged at a slower charging speed. Therefore, the charging time corresponding to the time period [0:00, 6:00] can be set to Tmax, (6:00, 12:00] and [14:00, 18:00] are generally working hours, and the demand for the use of the headset is medium, so the charging time can be set to Tmax-n. (12:00, 14:00) and (18:00, 24:00) are generally leisure time periods, and the demand for the use of the headset is the highest, so the charging time can be set to Tmin, so as to complete the charging at the fastest speed.
[0111] It is understandable that the division of time periods and the charging duration associated with each time period may be customized by the user or the system, and the above examples are only for a better understanding of the solutions recorded in this embodiment.
[0112] Optionally, in one embodiment, in order to enhance the intelligence of the headset, the headset can save the user's historical usage data. And the user's usage of the headset in various time periods in the historical time. Then determine the usage score of the headset in each time period. Among them, in a time period, the longer the cumulative usage time of the headset, the greater the corresponding usage score. The usage score can be determined based on the cumulative usage time corresponding to each time period in the past month, or a week (the time length can be customized, and it can only be limited to one month or one week). Then determine the charging time of the headset in the time period based on the usage score. Among them, the larger the usage score, the shorter the charging time associated with the time period. Thereby, it is achieved that the headset is charged at the fastest charging speed (shortest charging time) during high-frequency usage periods.
[0113] In this embodiment, the current time period determines the charging time of the headset, which eliminates the need for the user to manually set the charging time, thereby improving the convenience of the headset.
[0114] In addition, an embodiment of the present invention further proposes an earphone, which includes a memory, a processor, and a charging control program stored in the memory and executable on the processor, wherein the charging control program, when executed by the processor, implements the steps of the earphone charging control method described in the above embodiments.
[0115] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a charging control program is stored. When the charging control program is executed by a processor, the steps of the earphone charging control method described in the above embodiments are implemented.
[0116] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a headset, etc.) to execute the methods described in each embodiment of the present invention.
[0119] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for controlling charging of an earphone, characterized in that: The earphone charging control method comprises: Obtain historical usage data of the headset; determine the charging duration associated with each time period according to the historical usage data, wherein the historical usage data includes the cumulative usage duration of the headset in each time period, wherein the longer the cumulative usage duration, the greater the corresponding usage score, and the shorter the charging duration associated with the time period; When receiving the charging control instruction, determining the charging duration corresponding to the charging control instruction includes: when receiving the charging control instruction, determining the time period at the current moment; obtaining the charging duration associated with the time period as the charging duration corresponding to the charging control instruction; Determine the charging current according to the charging duration, wherein the longer the charging duration is, the smaller the charging current is, the shorter the charging duration is, the larger the charging current is, the charging duration is greater than or equal to the minimum charging duration and less than or equal to the maximum charging duration, the charging current is greater than or equal to the minimum charging current and less than or equal to the maximum charging current; The charging module of the earphone is controlled to perform a charging action according to the charging current.
2. The earphone charging control method according to claim 1, characterized in that: The step of determining the charging current according to the charging duration comprises: Obtaining a maximum charging current and a minimum charging current corresponding to the headset; The charging current is determined according to the maximum charging current, the minimum charging current and the charging duration.
3. The earphone charging control method according to claim 1, characterized in that: The step of determining the charging current according to the charging duration comprises: Get the pre-stored charging curve; The charging current is determined according to the charging duration and the pre-stored charging curve.
4. The earphone charging control method according to claim 1, characterized in that: The step of determining the charging current according to the charging duration comprises: Determine the duration interval of the charging duration; The charging current associated with the time interval is obtained.
5. The earphone charging control method according to claim 1, characterized in that: The charging module includes a charging control chip, and the steps of controlling the charging module of the earphone to perform a charging action according to the charging current include: Determining current control parameters of the charging control chip; When the current control parameter does not match the charging current, the control parameter of the charging control chip is updated according to the charging current, so that the charging control chip controls the charging module to perform a charging action according to the updated control parameter.
6. The earphone charging control method according to claim 1, characterized in that: When receiving the charging control instruction, the step of determining the charging duration corresponding to the charging control instruction includes: Receiving charging control instructions sent by other terminals; or; receiving an input voice, and determining the charging control instruction according to the input voice; or When the preset control action is received, the charging control instruction is triggered.
7. A headset, characterized in that: The headset comprises: a memory, a processor, and a charging control program stored in the memory and executable on the processor. When the charging control program is executed by the processor, the steps of the charging control method for the headset as described in any one of claims 1 to 6 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a charging control program, and when the charging control program is executed by the processor, the steps of the charging control method for the earphone according to any one of claims 1 to 6 are implemented.
