Electric quantity calculation method, charging box and earphone

By designing simple circuits and software algorithms in the charging box to calculate and send the charging amount, the problem of false power of the headphones is solved, and accurate power display and low-cost battery meter functions are realized.

CN120021129APending Publication Date: 2025-05-20ANKER INNOVATIONS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311544578.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

In the prior art, in order to solve the problem of false power of headphones, the complexity of circuit design and the high cost of headphone materials is increased.

Method used

By designing a simple circuit in the charging box and using corresponding software algorithms and processing logic, the charging current and charging time of the charging box are obtained, the charging capacity of the charging box to the headset is calculated, and sending it to the headset, realizing the power meter function of the headset.

Benefits of technology

It effectively solves the problem of inflated battery display when the headset is fast charging. The battery capacity is calculated accurately and the cost is low, and there is no need to use a dedicated battery meter chip in the headset.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120021129A_ABST
    Figure CN120021129A_ABST
Patent Text Reader

Abstract

The invention discloses an electric quantity calculation method, a charging box and an earphone. Specifically, the electric quantity calculation method comprises the following steps: detecting a charging instruction for an earphone, and obtaining the charging duration and the charging current of a charging box; based on the charging duration and the charging current of the charging box, obtaining the charging electric quantity of the charging box for the earphone; and when a charging ending instruction is detected, the charging electric quantity is sent to the earphone. The electric quantity calculation method is simple, reliable and low in cost, and can effectively solve the problem that the electric quantity display is virtually high when the earphone is quickly charged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery charging technology, and in particular to a power calculation method, a charging box and an earphone. Background Technology

[0002] With the continuous improvement of people's living standards and the rapid development of science and technology, people's entertainment life is becoming more and more abundant, and the application of headphones in audio and video entertainment activities is becoming more and more extensive. Headphones are divided into wireless headphones and wired headphones. Wired headphones are generally passive and do not need to be charged. They can be connected to the playback device through a connecting cable. Wireless headphones are equipped with batteries, so a charging device that matches the wireless headphones is required to charge the wireless headphones.

[0003] Existing headphones mainly display the headphone power by reading the battery voltage. When the headphone charging current is relatively large, the collected battery voltage has a large floating pressure, which causes the headphone to display a falsely high power level.

[0004] In the related art, there is a dedicated power meter chip, and this dedicated power meter chip is designed into the earphone circuit. Although this method can solve the problem of virtual electricity, it increases the complexity of circuit design and the material cost of the earphone. SUMMARY OF THE INVENTION

[0005] This application provides a power calculation method, a charging box and earphones to solve the technical problems in the prior art that in order to solve the virtual power problem of earphones, the complexity of circuit design is increased and the material cost of earphones is high.

[0006] To solve the above technical problems, a technical solution adopted by this application is: to provide a power calculation method, which is applied to the charging box, and the power calculation method includes: when a charging instruction for the earphone is detected, the charging time and charging current of the charging box are obtained; based on the charging time and charging current of the charging box, the charging power of the earphone by the charging box is obtained; when a charging end instruction is detected, the charging power is sent to the earphone.

[0007] Further, based on the charging time and charging current of the charging box, the charging amount of the earphones by the charging box is obtained, including calculating the integral of the charging current of the charging box and the charging time to obtain the charging amount of the earphones by the charging box.

[0008] Furthermore, the charging box includes: a connecting terminal and a sampling resistor, the connecting terminal is used to connect to the charging port of the earphone to charge the earphone, one end of the sampling resistor is connected to the negative end of the connecting terminal, and the other end of the sampling resistor is grounded, and obtaining the charging current of the charging box includes: obtaining the current value flowing through the sampling resistor to obtain the charging current of the charging box.

[0009] Further, before the steps of obtaining the charging duration and charging current of the charging case when a charging instruction for the earphone is detected, the power calculation method further includes: obtaining the remaining power of the earphone; when it is confirmed that the remaining power is less than a preset threshold, then execute the steps of obtaining the charging duration and charging current of the charging case when a charging instruction for the earphone is detected; when it is confirmed that the remaining power is greater than or equal to the preset threshold, then end the power calculation.

[0010] Further, after the steps when a charging end instruction is detected, the power calculation method further includes obtaining the total charging duration of the charging case for the earphone; when it is confirmed that the total charging duration is greater than or equal to a preset charging duration, then do not send the charging power to the earphone; when it is confirmed that the total charging duration is less than the preset charging duration, then execute the step of sending the charging power to the earphone.

[0011] Further, detecting a charging instruction for the earphone includes: when it is confirmed that the charging case is in an open state, determining whether the earphone is located inside the charging case of the charging case; when it is confirmed that the earphone is located inside the charging case of the charging case, then determining whether the charging case is closed; when it is confirmed that the charging case is closed, then generate a charging instruction.

[0012] Further, when a charging end instruction is detected, sending the charging power to the earphone includes, when a charging end instruction is detected, sending the charging power to the earphone through a serial port instruction.

[0013] To solve the above technical problems, another technical solution adopted by this application is: providing a power calculation method applied to an earphone, the earphone establishes a communication connection with a charging case, and the power calculation method includes: when the earphone detects a charging instruction for the earphone from the charging case, obtaining the remaining power of the earphone; when the earphone detects a charging end instruction, receiving the charging power of the charging case for the earphone; based on the remaining power and the charging power, obtaining a power display value of the earphone.

[0014] Further, after the step of obtaining the power display value of the earphone, the power calculation method further includes: obtaining the current voltage value of the battery of the earphone, and obtaining a preset mapping relationship between the battery voltage and the power of the earphone, and updating the power display value of the earphone based on the current voltage value of the battery of the earphone and the preset mapping relationship.

[0015] To solve the above technical problems, a technical solution adopted in this application is: to provide a charging case, which includes: a case body, forming a receiving space for receiving the earphones; a connection terminal, disposed in the receiving space, connected to the charging port of the earphone for charging the earphone; a sampling circuit, connected to the connection terminal for collecting the charging current of the charging case; a control circuit, connected to the connection terminal, and the control circuit is configured to: when detecting a charging instruction for the earphone, obtain the charging duration and charging current of the charging case; based on the charging duration and charging current of the charging case, obtain the charging power of the charging case for the earphone; when detecting a charging end instruction, send the charging power to the earphone.

[0016] Further, the control circuit is further configured to: calculate the integral of the charging current of the charging case with respect to the charging duration to obtain the charging power of the charging case for the earphone.

[0017] Further, the charging case includes: a connection terminal and a sampling resistor. The connection terminal is used to connect to the charging port of the earphone to charge the earphone. One end of the sampling resistor is connected to the negative terminal of the connection terminal, and the other end of the sampling resistor is grounded. The control circuit is further configured to: obtain the current value flowing through the sampling resistor to obtain the charging current of the charging case.

[0018] Further, the control circuit is further configured to: obtain the remaining power of the earphone; when it is confirmed that the remaining power is less than a preset threshold, then execute the step of obtaining the charging duration and charging current of the charging case when detecting a charging instruction for the earphone; when it is confirmed that the remaining power is greater than or equal to the preset threshold, then end the power calculation.

[0019] Further, the control circuit is further configured to: obtain the total charging duration of the charging case for the earphone; when it is confirmed that the total charging duration is greater than or equal to a preset charging duration, then do not send the charging power to the earphone; when it is confirmed that the total charging duration is less than the preset charging duration, then execute the step of sending the charging power to the earphone.

[0020] Further, the control circuit is further configured to: when it is confirmed that the charging case is in an open state, determine whether the earphone is located inside the case body of the charging case; when it is confirmed that the earphone is located inside the case body of the charging case, then determine whether the charging case is closed; when it is confirmed that the charging case is closed, then generate a charging instruction.

[0021] Further, the control circuit is further configured to: when detecting a charging end instruction, send the charging power to the earphone through a serial port instruction.

[0022] To solve the above technical problems, a technical solution adopted in this application is: to provide an earphone, which includes a memory and a controller coupled to each other. The controller is configured to execute program instructions stored in the memory to implement the power calculation method of any of the above embodiments.

[0023] Advantages of the present application: Different from the prior art, in the power calculation method of the present application, the charging current and charging duration of the charging case are first obtained, and then the charging power of the charging case to the earphone is obtained according to the charging current and charging duration. In this way, the charging case is added with the function of a power meter, with low cost and accurate power calculation, and can effectively solve the problem of false high power display when the earphone is fast charging. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0025] Figure 1 is a schematic structural diagram of an embodiment of the charging case provided by the present application;

[0026] Figure 2 is Figure 1 a partial structural schematic diagram of an embodiment of the charging circuit of the charging case shown;

[0027] Figure 3 is a schematic flowchart of an embodiment of a power calculation method provided by the present application;

[0028] Figure 4 is a schematic flowchart of an embodiment of a power calculation method provided by the present application;

[0029] Figure 5 is a relationship curve diagram of the charging rate and battery capacity of the battery of the earphone provided by the present application;

[0030] Figure 6 is a relationship curve diagram of the charging time and battery power of the battery of the earphone provided by the present application;

[0031] Figure 7 is a schematic flowchart of another embodiment of a power calculation method provided by the present application;

[0032] Figure 8 is a schematic flowchart of another embodiment of a power calculation method provided by the present application;

[0033] Figure 9 is a schematic framework diagram of an embodiment of the earphone provided by the present application;

[0034] Figure 10 is a schematic framework diagram of an embodiment of the computer-readable storage device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0035] To make the above objects, features, and advantages of the present application more obvious and understandable, the following provides a detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings. It can be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Additionally, it should be noted that for the convenience of description, only the parts related to the present application rather than all the structures are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0036] The terms "first", "second", etc. in the present application are used to distinguish different objects rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.

[0037] Referring to "embodiments" herein means that the specific features, structures, or characteristics described in conjunction with the embodiments can be included in at least one embodiment of the present application. The phrase appearing at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0038] The present application discloses a power calculation method. This power calculation method does not require a dedicated power meter chip in the earphone. Only by designing a simple circuit on the charging case and applying corresponding software algorithms and processing logics, the power meter function of the earphone can be realized. The solution of the present application can solve the problem of virtual power in the case of fast charging of the earphone, and the reliability of power calculation is high and the cost is low.

[0039] Please refer to Figure 1 as shown in Figure 1 is a schematic structural diagram of an embodiment of the charging case provided by the present application. Specifically, the charging case 10 includes a case body 11, a connection terminal 12, and a sampling circuit 13.

[0040] The case body 11 forms a receiving space 101 for receiving the earphone 20. The connection terminal 12 is provided on the case body 11 and is located within the receiving space 101. The connection terminal 12 is connected to the charging port of the earphone 20 for charging the earphone 20. The charging current of the earphone 20 flows from the positive terminal of the connection terminal 12 to the negative terminal of the connection terminal 12.

[0041] The sampling circuit 13 is connected to the connection terminal 12, and the sampling circuit 13 is used to collect the charging current of the charging case 10.

[0042] In some specific embodiments, the sampling circuit 13 includes a sampling resistor, and the sampling resistor is disposed at the negative terminal of the connection terminal 12. As Figure 2 shown, Figure 2 is Figure 1 a partial structural schematic diagram of an embodiment of the charging circuit of the charging case shown, in this embodiment, the earphone 20 is an earphone, and the charging case 10 is used to charge the left earphone and the right earphone.

[0043] One end of the sampling resistor is connected to the negative terminal of the connection terminal 12, and the other end of the sampling resistor is grounded. The resistance value of the sampling resistor can be a fixed resistor with a relatively small resistance value. For example, the sampling resistor can be a fixed resistor with a resistance value less than or equal to 1 ohm.

[0044] The ADC (Analog To Digital Converter) pin of the control circuit (not shown in the figure) of the charging case 10 reads the voltage value of the sampling resistor at the negative terminal of the connection terminal 12, and then converts it into the current flowing through the sampling resistor, so as to obtain the charging current of the charging case 10. By using the sampling resistor to collect the charging current of the charging case 10, the cost is relatively low.

[0045] In some other embodiments, the sampling circuit 13 may further include a current meter, and the current meter is connected to the connection terminal 12 and is used to directly sense the charging current of the charging case 10.

[0046] The control circuit of the charging case 10 is connected to the connection terminal 12, and the control circuit is used to implement the power calculation method at the charging case end in any of the following embodiments, so that the charging case adds the function of a power meter. The control circuit may include a control chip.

[0047] When the earphone 20 needs to be charged, the earphone 20 is placed in the accommodation space 101 of the charging case 10, so that the charging port of the earphone 20 is connected to the connection terminal 12 of the charging case 10. After the charging case 10 receives the charging instruction, the charging case 10 charges the earphone 20 through the connection terminal 12. During the process of charging the earphone 20 by the charging case 10, the charging case 10 obtains the charging current through the sampling circuit 13 and obtains the charging duration, and then the charging case 10 calculates the charging power of the charging case 10 for the earphone 20 based on the charging current and the charging duration. After the charging of the charging case 10 is completed, the charging case 10 sends the charging power to the earphone 20, and the earphone 20 receives the charging power, and the earphone 20 obtains an accurate power display value based on the remaining power before charging and the charging power. In this way, the charging case 10 can add the function of a power meter, and can effectively solve the problem of false charging of the earphone 20 during fast charging.

[0048] The power calculation method provided by this application will be introduced in detail below.

[0049] Please refer to Figure 3 as shown in Figure 3 which is a schematic flowchart of an embodiment of a power calculation method provided by this application. In this embodiment, the power calculation method is applied to a charging case. Specifically, the power calculation method includes:

[0050] S11: When a charging instruction for the earphone is detected, obtain the charging duration and charging current of the charging case.

[0051] After the earphone is placed in the charging case and the charging case receives a charging instruction, it charges the earphone inside. At this time, the control circuit of the charging case obtains the charging duration of the charging case and obtains the charging current of the charging case.

[0052] After detecting the charging instruction, the control circuit of the charging case can record the charging duration of the charging case for charging the earphone and can collect the charging current of the charging case through a sampling circuit. Among them, the control circuit can obtain the charging current of the charging case once every preset duration. For example, the control circuit can obtain the charging current of the charging case every 1 s, 2 s, or 5 s, etc.

[0053] In some embodiments, the control circuit can obtain the charging current of the charging case by obtaining the current flowing through the sampling resistor. Specifically, the control circuit obtains the voltage value V ADC of the sampling resistor, converts it into the charging current I, and then obtains the current value flowing through the sampling resistor according to the voltage value V ADC of the sampling resistor and the resistance value R of the sampling resistor, that is, obtains the charging current I = V ADC / R.

[0054] In some other embodiments, the control circuit can directly measure the charging current of the charging case through a current meter.

[0055] In some embodiments, the charging case includes detection sensors for opening and closing the cover (such as a Hall IC). When the control circuit of the charging case confirms that the charging case is in the open state, it determines whether the earphone is inside the charging case; when it confirms that the earphone is inside the charging case, it determines whether the charging case is closed; when it confirms that the charging case is closed, a charging instruction for the earphone by the charging case is generated. That is, when the earphone is placed in the box body of the charging case and the box body is closed, the charging case starts to charge the earphone.

[0056] S12: Based on the charging duration and charging current of the charging case, obtain the charging power of the charging case for the earphone.

[0057] After obtaining the charging duration and charging current of the charging case, calculate the charging power of the charging case for the earphones based on the obtained charging duration and charging current. Specifically, calculate the product of the charging duration and the charging current to obtain the charging power.

[0058] In some embodiments, the integral of the charging current with respect to the charging duration can be calculated to obtain the charging power of the charging case for the earphones. For example, the control circuit of the charging case can sample the charging current once every second and accumulate it to obtain the charging power Q of the charging case. OUT ; that is, Q OUT = ∫I(t)dt. In this way, a more accurate charging power can be obtained.

[0059] In other embodiments, the average value of the charging currents measured in all time periods can be calculated, and then the average value of the charging current is multiplied by the total charging duration to obtain the charging power of the charging case for the earphones.

[0060] After obtaining the charging power of the charging case, the charging power can be converted into the percentage increase in the battery power of the earphones.

[0061] Furthermore, the capacity of the battery of the earphones can be obtained; based on the charging power and the capacity of the battery of the earphones, the percentage increase in the power of the earphones is obtained. In some specific embodiments, if the known capacity of the battery of the earphones is Q BAT mAh, then the cumulative value corresponding to 1% of the power of the earphones is: (Q BAT *3600 / 100) = 36Q BAT . When the charging amount of the charging case accumulates to 36Q BAT , the charging power count is incremented by 1%, and so on.

[0062] S13: When a charging end instruction is detected, send the charging power to the earphones.

[0063] When the control circuit detects a charging end instruction, the control circuit sends the charging power of the charging case to the earphones.

[0064] The charging case outputs a charging voltage to charge the earphones through the connection terminal, or the connection terminal is switched to a communication voltage to achieve two-way serial port instruction communication.

[0065] In some specific embodiments, when the charging case detects through the detection sensor that the case body is in the open state, the connection terminal is switched to the communication voltage, and the earphones and the charging case can communicate bidirectionally through serial port instructions. The charging case can send the charging power to the earphones through serial port instructions; when the charging case detects through the detection sensor that it is in the closed state, the connection terminal is switched to the charging voltage, and only charges the earphones without communication.

[0066] In some embodiments, when the detection sensor detects that the case of the charging case is opened, a charging end instruction is generated, that is, when the case of the charging case is opened, the charging case stops charging the earphone.

[0067] In the above embodiments, based on a simple circuit design and the application of corresponding software processing logic, the charging case can enable the connection terminal of the charging case to achieve two-way communication with the earphone using serial port instructions and can also add the function of a fuel gauge, with a relatively low cost, and can effectively solve the problem of false high power display when the earphone is fast charging.

[0068] Please refer to Figure 4 shown Figure 4 which is a schematic flowchart of another embodiment of the power calculation method provided by this application. The power calculation method is applied to the charging case. Specifically, the power calculation method includes:

[0069] S21: Obtain the remaining power of the earphone.

[0070] After the earphone is placed in the case and before charging the earphone, the control circuit obtains the remaining power of the earphone.

[0071] For example, when the charging case senses that the earphone is in the case, it obtains the remaining power of the earphone.

[0072] S22: When it is confirmed that the remaining power is greater than or equal to a preset threshold, the power calculation ends.

[0073] When the remaining power of the earphone is relatively large, the charging rate decreases more. Since the charging current decreases significantly, there will be no obvious false power problem for the earphone. For example, as Figure 5 shown, when the battery power of a certain earphone is greater than 85%, the charging rate decreases by more than one-half. Since the charging current decreases significantly, there will be no obvious false power problem for this earphone. Therefore, when the remaining power of the earphone is greater than or equal to the preset threshold, there will be no obvious false power problem. Therefore, the power calculation can be stopped, and at this time, the control circuit ends the power calculation.

[0074] That is, the control circuit can determine whether to enable the power calculation function by judging whether the remaining power of the earphone is less than the preset threshold. The preset threshold can be set according to the characteristics of the battery of the earphone. If the battery power is higher than the preset threshold, there will be no obvious false power problem. If the battery power is lower than the preset threshold, there will be a problem of false high power display.

[0075] S23: When it is confirmed that the remaining power is less than the preset threshold, when a charging instruction for the earphone is detected, the steps of obtaining the charging duration and charging current of the charging case are executed.

[0076] When it is confirmed that the remaining power of the earphone is less than a preset threshold, it indicates an obvious virtual power problem. Therefore, power calculation is required. When the control circuit executes the charging instruction of the charging case and detects it, it acquires the charging duration and charging current of the charging case.

[0077] When the charging instruction of the charging case is detected, for the steps of acquiring the charging duration and charging current of the charging case, please refer to the introduction of step S11 and will not be elaborated here.

[0078] S24: Based on the charging duration and charging current of the charging case, obtain the charging power of the charging case for the earphone.

[0079] Step S24 is the same as step S12 and will not be elaborated here.

[0080] S25: When the charging end instruction is detected, acquire the total charging duration of the charging case for the earphone.

[0081] As Figure 6 shown, when the charging duration of the earphone is sufficient, the power of the earphone is close to full charge. Therefore, it is not necessary to send the charging power to the earphone. Therefore, when the control circuit detects the charging end instruction of the charging case, it acquires the total charging duration of the charging case for the earphone.

[0082] The control circuit can determine whether the total charging duration is less than a preset charging duration to confirm whether the earphone is fully charged or close to full charge. The preset duration can be the charging duration required for the earphone to reach full charge or close to full charge from the current remaining power.

[0083] S26: When it is confirmed that the total charging duration is less than the preset charging duration, execute the step of sending the charging power to the earphone.

[0084] When it is confirmed that the total charging duration is less than the preset duration, it can be confirmed that the earphone is not fully charged. Therefore, the control circuit executes the step of sending the charging power to the device to be charged. This step is the same as step S13 and will not be elaborated here.

[0085] S27: When it is confirmed that the total charging duration is greater than or equal to the preset charging duration, do not send the charging power to the earphone.

[0086] When it is confirmed that the total charging duration is greater than or equal to the preset duration, it can be considered that the power of the earphone is already fully charged or close to full charge. Therefore, it is not necessary to send the charging power to the earphone to reduce the power consumption of the charging case.

[0087] In this embodiment, the charging case can add the function of the fuel gauge based on a simple circuit design and the application of corresponding software processing logic, with a relatively low cost, and can effectively solve the problem of inflated power display during fast charging of the earphones. In addition, in this application, it is possible to select whether to perform power calculation according to the actual situation, and whether to send the calculated charging power to the earphones, with a high degree of intelligence and can reduce the power consumption of the charging case.

[0088] Please refer to Figure 7 as shown in Figure 7 FIG. 7 is a schematic flowchart of another embodiment of a power calculation method provided by this application. In this embodiment, this power calculation method is applied to the earphones. Specifically, this power calculation method includes:

[0089] S71: When the earphones detect a charging instruction from the charging case, obtain the remaining power of the earphones.

[0090] When the earphones detect a charging instruction from the charging case, the earphones record their current remaining power. For example, when the charging case closes its lid, the earphones obtain their remaining power, and the remaining power of the earphones is the initial power before charging the earphones.

[0091] S72: When the earphones detect a charging end instruction, receive the charging power of the charging case for the earphones.

[0092] When the charging case receives a charging instruction, the charging case starts charging the earphones. When the charging case receives a charging end instruction, the charging case stops charging the earphones. When the charging case finishes charging the earphones, the charging case can calculate the charging power for the earphones and send the charging power to the earphones. After the earphones finish charging, they can receive the charging power from the charging case.

[0093] In some embodiments, the earphones obtain the charging power sent by the charging case through a serial port instruction.

[0094] S73: Based on the remaining power and the charging power, obtain the power display value of the earphones.

[0095] After the earphones obtain the remaining power and the charging power of the charging case for the earphones, add the two to obtain the power display value of the earphones. The earphones perform power display based on this power display value.

[0096] In this embodiment, the earphones can obtain a relatively accurate charging power according to the calculation of the charging power by the charging case, solve the problem of virtual power during fast charging of the earphones, and improve the accuracy of the earphone power display. Moreover, the earphones do not need to increase any material costs.

[0097] Please refer to Figure 8 as shown in Figure 8It is a schematic flowchart of another embodiment of a power calculation method provided by this application. This power calculation method is applied to earphones. Specifically, this power calculation method includes:

[0098] S81: When the earphone detects a charging instruction from the charging case to the earphone, obtain the remaining power value of the earphone.

[0099] Step S81 is the same as step S71 and will not be elaborated here.

[0100] S82: When the earphone detects a charging end instruction, receive the charging power value of the charging case to the earphone.

[0101] Step S82 is the same as step S72 and will not be elaborated here.

[0102] S83: Based on the remaining power value and the charging power value, obtain the power display value of the earphone.

[0103] Step S83 is the same as step S73 and will not be elaborated here.

[0104] S84: Obtain the current voltage value of the battery of the earphone, and obtain the preset mapping relationship between the battery voltage and the power of the earphone.

[0105] When the earphone stops charging, the voltage of the battery inside it is in a stable state.

[0106] During the use of the earphone, the power of the battery will be gradually consumed, and the earphone will also update its power display value in a timely manner.

[0107] The earphone can obtain the current voltage value of the battery inside it, and then obtain the mapping relationship between the battery voltage and the power of the earphone.

[0108] S85: Based on the current voltage value of the battery of the earphone and the preset mapping relationship, update the power display value of the earphone.

[0109] According to the current voltage value of the battery of the earphone, find out the power value corresponding to this current voltage value from the preset mapping relationship, and then update the power display value of the earphone based on the queried power value.

[0110] In this embodiment, the earphone can obtain a relatively accurate charging power according to the calculation of the charging power by the charging case, solve the problem of false power during fast charging of the earphone. Moreover, there is no need to increase any material cost of the earphone. In addition, the earphone can update its power display in a timely manner during use, and the accuracy of the power display is also relatively high.

[0111] This application also provides an earphone, as Figure 9 shown, Figure 9FIG. 0 is a schematic diagram of the framework of an embodiment of the earphone provided by the present application. The earphone 20 includes a memory 21 and a controller 22 which are coupled to each other. The controller 22 is configured to execute the program instructions stored in the memory 21 to implement the steps in the earphone-side power calculation method of any of the above embodiments. The earphone 20 may be an electronic device such as an earphone or a smart bracelet.

[0112] The controller 22 may also be referred to as a CPU (Central Processing Unit). The controller 22 may be an integrated circuit chip with signal processing capabilities. The controller 22 may also be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the controller 22 may also be any conventional processor, etc. Additionally, the controller 22 may be implemented jointly by integrated circuit chips.

[0113] The above earphone 20 can obtain a relatively accurate charging power according to the charging power calculation of the charging case, effectively solve the problem of false charging during fast charging of the earphone, and improve the accuracy of the earphone power display. Moreover, there is no need to increase any material cost of the earphone.

[0114] The present application also provides a computer-readable storage device. Please refer to Figure 10 as shown in Figure 10 FIG. 13 is a schematic diagram of the framework of an embodiment of the computer-readable storage device provided by the present application. The computer-readable storage device 90 stores program data 91 that can be run by a processor. The program data 91 is used to implement the steps of the power calculation methods at the charging case end and the earphone end of any of the above embodiments.

[0115] Among them, the program data 91 may be stored in the above computer-readable storage device 90 in the form of a software product, including several instructions for causing a device or processor to execute all or part of the steps of the methods of various embodiments of the present application.

[0116] The computer-readable storage device 90 is a medium in a computer memory for storing a certain discontinuous physical quantity. Among them, the computer-readable storage device 90 includes: USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs and other media that can store the code of the program data 91.

[0117] The above are only the embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present application.

Claims

1. A method for calculating electric quantity, characterized in that: Applied to the charging box, the power calculation method includes: When a charging instruction for the earphone is detected, the charging time and charging current of the charging box are obtained; Based on the charging time and charging current of the charging box, obtaining the charging amount of the earphone by the charging box; When a charging end instruction is detected, the charging amount is sent to the headset.

2. The method for calculating electric quantity according to claim 1, characterized in that: The charging amount of the earphone charged by the charging box is obtained based on the charging time and the charging current of the charging box, include, The integral of the charging current of the charging box and the charging time is calculated to obtain the charging amount of the earphone by the charging box.

3. The method for calculating electric quantity according to any one of claims 1 to 2, characterized in that: The charging box includes: a connecting terminal and a sampling resistor, wherein the connecting terminal is used to be connected to the charging port of the earphone to charge the earphone, one end of the sampling resistor is connected to the negative end of the connecting terminal, and the other end of the sampling resistor is grounded. The obtaining the charging current of the charging box includes: The current value flowing through the sampling resistor is obtained to obtain the charging current of the charging box.

4. The method for calculating electric quantity according to claim 1, characterized in that: Before the step of obtaining the charging time and the charging current of the charging box when the charging instruction for the earphone is detected, the power calculation method further includes: Obtaining the remaining power of the headset; When it is confirmed that the remaining power is less than the preset threshold, the step of acquiring the charging time and charging current of the charging box when a charging instruction for the earphone is detected is executed; When it is confirmed that the remaining power is greater than or equal to the preset threshold, the power calculation is terminated.

5. The method for calculating electric quantity according to claim 1, characterized in that: After the step of detecting the charging end instruction, the power calculation method further includes: Obtain the total charging time of the headset by the charging box; When it is confirmed that the total charging time is greater than or equal to the preset charging time, the charging amount is not sent to the headset; When it is confirmed that the total charging time is less than the preset charging time, the step of sending the charging amount to the headset is performed.

6. The method for calculating electric quantity according to claim 1, characterized in that: The detecting of a charging instruction for the earphone comprises: When it is confirmed that the charging box is in an open state, determining whether the earphone is located in the box body of the charging box; When it is confirmed that the earphone is in the body of the charging box, determining whether the cover of the charging box is closed; When it is confirmed that the charging box cover is closed, the charging instruction is generated.

7. The method for calculating electric quantity according to claim 1, characterized in that: When the charging end instruction is detected, the charging amount is sent to the headset, include, When the charging end instruction is detected, the charging amount is sent to the headset via a serial port instruction.

8. A method for calculating power, applied to headphones, characterized in that: The earphone establishes a communication connection with the charging box, and the power calculation method includes: When the earphone detects a charging instruction from the charging box to the earphone, obtaining the remaining power of the earphone; When the earphone detects a charging end instruction, receiving the charging amount of the earphone by the charging box; Based on the remaining power and the charged power, a power display value of the headset is obtained.

9. The method for calculating electric quantity according to claim 8, characterized in that: After the step of obtaining the displayed value of the power of the headset, the power calculation method further includes: Acquire the current voltage value of the battery of the headset, and acquire a preset mapping relationship between the battery voltage and the power of the headset, Based on the current voltage value of the battery of the headset and the preset mapping relationship, the power display value of the headset is updated.

10. A charging box, characterized in that: The charging box includes: The box body is formed with a containing space, and the containing space is used to contain the earphone; A connection terminal is disposed in the accommodating space, and the connection terminal is connected to the charging port of the earphone for charging the earphone; A sampling circuit, connected to the connection terminal, for collecting the charging current of the charging box; A control circuit is connected to the connection terminal, and the control circuit is used to: when a charging instruction for the earphone is detected, obtain the charging time and charging current of the charging box; based on the charging time and charging current of the charging box, obtain the charging amount of the earphone by the charging box; when a charging end instruction is detected, send the charging amount to the earphone.

11. The charging box according to claim 10, characterized in that: The control circuit is also used to calculate the integral of the charging current of the charging box and the charging time to obtain the charging amount of the earphone by the charging box.

12. The charging box according to any one of claims 10-11, characterized in that: The charging box includes: a connecting terminal and a sampling resistor, the connecting terminal is used to connect to the charging port of the earphone to charge the earphone, one end of the sampling resistor is connected to the negative end of the connecting terminal, and the other end of the sampling resistor is grounded, and the control circuit is also used to obtain the current value flowing through the sampling resistor to obtain the charging current of the charging box.

13. The charging box according to claim 10, characterized in that: The control circuit is also used to: obtain the remaining power of the earphone; when it is confirmed that the remaining power is less than a preset threshold, execute the step of obtaining the charging time and charging current of the charging box when a charging instruction for the earphone is detected; when it is confirmed that the remaining power is greater than or equal to the preset threshold, end the power calculation.

14. The charging box according to claim 10, characterized in that: The control circuit is also used to: obtain the total charging time of the headset by the charging box; when it is confirmed that the total charging time is greater than or equal to the preset charging time, the charging amount is not sent to the headset; When it is confirmed that the total charging time is less than the preset charging time, the step of sending the charging amount to the headset is performed.

15. The charging box according to claim 10, characterized in that: The control circuit is also used to: when it is confirmed that the charging box is in an open state, determine whether the earphone is located in the box body of the charging box; when it is confirmed that the earphone is located in the box body of the charging box, determine whether the charging box is closed; when it is confirmed that the charging box is closed, generate the charging instruction.

16. The charging box according to claim 10, characterized in that: The control circuit is further configured to: upon detecting the charging end instruction, send the charging power to the headset via a serial port instruction.

17. A headset, characterized in that: The headset includes a memory and a controller coupled to each other, and the controller is used to execute program instructions stored in the memory to implement the power calculation method as described in any one of claims 8-9.