Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a charging control method, electronic equipment and a storage medium, which can control a fully-charged earphone to enter a shutdown state when a charging box is in a wired charging state or a wireless charging state.
According to a first aspect of the present invention, a charging control method is applied to a wireless headset charging system, the wireless headset charging system including a wireless headset and a charging box, the charging box being configured to accommodate the wireless headset, the charging box including a spring pin, the spring pin being configured to be electrically connected to the wireless headset so as to perform a charging operation on the wireless headset, the charging control method including:
acquiring a first charging state of the wireless earphone;
And if the first charging state indicates that the wireless earphone is fully charged, stopping outputting the charging voltage so as to enable the wireless earphone to enter a shutdown state.
The charging control method has the advantages that the charging box obtains the first charging state used for representing the charging state of the wireless earphone through the self power supply state, so that the problem that the wireless earphone cannot enter the power-off state when the charging box is in the wired charging state or the wireless charging state is solved by means of software design on the basis of not increasing hardware design, and standby power consumption of the wireless earphone is reduced.
According to some embodiments of the invention, the obtaining the first charging state of the wireless headset includes:
acquiring a first electric quantity consumption;
and obtaining the first charging state according to the first electric quantity consumption.
According to some embodiments of the invention, if the first charging state indicates that the wireless headset is fully charged, stopping outputting the charging voltage to make the wireless headset enter a power-off state, including:
acquiring a second charging state, wherein the second charging state is used for representing the connection state of the charging box and an external power supply;
If the second charging state represents charging, stopping outputting the charging voltage, and outputting the charging voltage after a preset time interval;
acquiring a second electric quantity consumption;
And if the second electric quantity consumption is smaller than a preset threshold value, stopping outputting the charging voltage so as to enable the wireless earphone to enter the power-off state.
According to some embodiments of the invention, if the first charging state indicates that the wireless headset is fully charged, stopping outputting the charging voltage to make the wireless headset enter a power-off state, further comprising:
and if the second electric quantity consumption is larger than a preset threshold value, continuously outputting the charging voltage.
According to some embodiments of the invention, if the first charging state indicates that the wireless headset is fully charged, stopping outputting the charging voltage to make the wireless headset enter a power-off state, including:
and if the second charging state indicates that the wireless earphone is not charged, stopping outputting the charging voltage so as to enable the wireless earphone to enter the power-off state.
According to some embodiments of the invention, the obtaining the first charging state of the wireless headset includes:
Acquiring charging current according to the spring needle;
And obtaining a charging duration and a charging interval according to the charging current, and obtaining the first charging state according to the charging duration and the charging interval.
An electronic device according to an embodiment of the second aspect of the present invention includes:
At least one processor;
at least one memory for storing at least one program;
the at least one program, when executed by the at least one processor, causes the at least one processor to implement the charge control method as described in the first aspect.
A storage medium according to an embodiment of the third aspect of the present invention, in which processor-executable instructions are stored, which when executed by a processor are for implementing the charge control method as described in the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that references to orientation descriptions such as upper, lower, front, rear, left, right, etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of description of the present invention and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a number is one or more, the meaning of a number is two or more, and greater than, less than, exceeding, etc. are understood to exclude the present number, and the meaning of a number is understood to include the present number. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
In the description of the present invention, the descriptions of the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the related art, the problem that the wireless earphone cannot enter a shutdown state when the charging box is in a wired charging state or a wireless charging state is solved by the following two methods, wherein in the first method, communication chips for communication are respectively arranged in the wireless earphone and the charging box, and the wireless earphone sends the charging state of the wireless earphone to the charging box through the communication chips. The charging box receives the charging state according to the communication chip and determines whether to output charging voltage to the wireless earphone according to the charging state. Second, the wireless earphone is always in the inquiry state, and when the wireless earphone inquires that the battery power of the wireless earphone is lower than a preset threshold value, the wireless earphone restarts to charge.
However, in the first method, both the wireless headset and the charging box need to have hardware communication, thereby increasing the cost of the wireless headset charging system. In the second method, since the wireless headset is in a state of repeated charge, it affects the life of the battery in the wireless headset and is prone to give the user the illusion of the wireless headset being under-charged.
Based on the above, the embodiment of the application provides a charging control method, which solves the problem that a wireless earphone cannot enter a shutdown state when a charging box is in a wired charging state or a wireless charging state by means of software design on the basis of not increasing hardware design, thereby reducing standby power consumption of the wireless earphone.
Referring to fig. 1 and 2, an embodiment of the present application provides a charging control method applied to a wireless headset charging system including a wireless headset 100 and a charging box 200. The charging box 200 is used for accommodating the wireless earphone 100, and the charging box 200 comprises a spring pin, and the spring pin is used for being electrically connected with the wireless earphone 100 so as to perform charging operation on the wireless earphone 100.
It will be appreciated that the interior of the charging cartridge 200 includes a receiving cavity in which the wireless headset 100 is electrically connected to a pogo pin disposed in the receiving cavity when the wireless headset 100 is placed therein, thereby obtaining a charging voltage provided by a battery within the charging cartridge 200.
Referring to fig. 2, in some embodiments, the charge control method includes, but is not limited to, steps S210 to S220.
S210, the charging box acquires a first charging state of the wireless earphone;
and S220, if the first charging state indicates that the wireless earphone is fully charged, the charging box stops outputting the charging voltage so as to enable the wireless earphone to enter a shutdown state.
Specifically, the charging box obtains a first charging state used for representing the charging state of the wireless earphone through the self power supply state, for example, the charging box obtains the first charging state through self power consumption, or the charging box obtains the charging current of the wireless earphone through a spring needle, so that the first charging state is determined according to the charging current. When the first charging state indicates that the wireless earphone is fully charged, the charging box stops outputting charging voltage to the spring needle, so that the wireless earphone can enter a shutdown state, and further standby power consumption of the wireless earphone is reduced. It can be understood that, when the charging box has no charging voltage output, the method for automatically entering the power-off state of the wireless earphone can refer to the control method in the related art, and the embodiment of the application is not particularly limited.
Hereinafter, embodiments of stopping output of the charging voltage corresponding to the two first charge state acquisition methods will be specifically described with reference to the above embodiments.
First, an embodiment in which the charging box obtains the first charging state through its own power consumption will be specifically described. Referring to fig. 3, in some embodiments, step S210 includes, but is not limited to, sub-steps S310 through S320.
S310, the charging box acquires a first electric quantity consumption;
S320, the charging box obtains a first charging state according to the first electric quantity consumption.
Specifically, the charging box acquires its own first electricity consumption amount to confirm whether the charging box is fully charged. For example, when the charging box obtains that the charging current of the wireless headset is smaller than 0.1C according to the first electric quantity consumption, the first charging state is determined to indicate that the wireless headset is fully charged. When the charging box obtains that the charging electric quantity of the wireless earphone is larger than 0.1C according to the first electric quantity consumption, the first charging state is determined to be indicative of the wireless earphone not being fully charged.
Referring to fig. 4, in some embodiments, step S220 includes, but is not limited to, sub-steps S410 through S440.
S410, the charging box acquires a second charging state, wherein the second charging state is used for representing the connection state of the charging box and an external power supply;
s420, if the second charging state represents charging, the charging box stops outputting the charging voltage, and outputs the charging voltage after a preset time interval;
s430, the charging box acquires a second electric quantity consumption;
S440, if the second electric quantity consumption is smaller than a preset threshold value, the charging box stops outputting the charging voltage so as to enable the wireless earphone to enter a power-off state;
s450, if the second electric quantity consumption is larger than the preset threshold value, the charging box continuously outputs the charging voltage.
It can be understood that when the first charging state of the wireless headset is determined to be fully charged by the above method, the charging box determines its charging state (i.e. the second charging state) so as to avoid the situation that the wireless headset is abnormal in temperature due to the charging box being in the charging state, and thus the charging current of the wireless headset is less than 0.1C (i.e. the first charging state is fully charged). Specifically, the second charging state may be determined by detecting whether the charging box receives the external power supply, or by other means. If the charging box is in the charging state, namely the second charging state represents charging, the charging box stops outputting the charging voltage to the spring needle, and outputs the charging voltage to the spring needle after a preset time interval. The current charging current of the wireless earphone is detected through the second electric quantity consumption of the charging box.
If the current charging current is still less than 0.1C, the actual first charging state of the wireless earphone is confirmed to be fully charged. At this time, the charging box stops outputting the charging voltage to the spring pin, so that the wireless earphone can enter a power-off state, and the standby power consumption of the wireless earphone is reduced.
If the current charging current is greater than 0.1C, it indicates that the current charging current of the wireless headset is less than 0.1C due to abnormal temperature, so that the actual first charging state of the wireless headset is not fully charged. At this time, the charging cartridge keeps outputting the charging voltage to the pogo pin.
In some embodiments, step S220 further comprises the sub-steps of:
S460, if the second charging state indicates that the wireless earphone is not charged, the charging box stops outputting the charging voltage so as to enable the wireless earphone to enter a power-off state.
Specifically, if it is determined that the charging box is in an uncharged state, that is, the second charging state indicates that the wireless headset is fully charged. At this time, the charging box stops outputting the charging voltage to the spring pin, so that the wireless earphone can enter a power-off state, and the standby power consumption of the wireless earphone is reduced.
Secondly, the charging current of the wireless earphone is obtained through the spring needle by the charging box, so that the embodiment corresponding to the first charging state is determined according to the charging current. Referring to fig. 5, in some embodiments, step S210 includes, but is not limited to, sub-steps S510 through S520.
S510, the charging box acquires charging current according to the spring needle;
s520, the charging box obtains a charging duration and a charging interval according to the charging current, and obtains a first charging state according to the charging duration and the charging interval.
It can be understood that when the wireless earphone is charged fully and the charging current is less than 0.1C, the wireless earphone can perform the cycle operation of 1s charging and 1s stopping charging, and when the wireless earphone is charged fully and the charging current is less than 0.1C due to other reasons such as abnormal temperature, the wireless earphone can only perform other operations such as stopping charging, namely the cycle operation cannot be performed. Therefore, the charging box acquires the charging current of the wireless earphone through the spring needle, and records the duration (namely the charging duration) of the charging current and the charging interval between the two charging currents, so as to judge whether the wireless earphone is in the cyclic operation according to the charging duration and the charging interval. When the wireless headset is determined to be in the cyclic operation, the first charging state is determined to indicate that the wireless headset is fully charged, and the charging box stops outputting the charging voltage to the spring pin.
The embodiment of the application also provides electronic equipment, which comprises at least one processor and a memory in communication connection with the at least one processor. The memory stores a program that is executed by the at least one processor to cause the at least one processor to implement the charge control method as described in any one of the embodiments above when executing the instructions.
An embodiment of the present application provides a storage medium storing processor-executable instructions for performing the charge control method described in any one of the above embodiments.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present application have been described in detail with reference to the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present application. Furthermore, embodiments of the application and features of the embodiments may be combined with each other without conflict.