CN111211601A - Charging method, Bluetooth headset and computer readable storage medium - Google Patents

Charging method, Bluetooth headset and computer readable storage medium Download PDF

Info

Publication number
CN111211601A
CN111211601A CN202010126976.9A CN202010126976A CN111211601A CN 111211601 A CN111211601 A CN 111211601A CN 202010126976 A CN202010126976 A CN 202010126976A CN 111211601 A CN111211601 A CN 111211601A
Authority
CN
China
Prior art keywords
charging
bluetooth headset
state
usb
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010126976.9A
Other languages
Chinese (zh)
Other versions
CN111211601B (en
Inventor
刘凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Priority to CN202010126976.9A priority Critical patent/CN111211601B/en
Publication of CN111211601A publication Critical patent/CN111211601A/en
Application granted granted Critical
Publication of CN111211601B publication Critical patent/CN111211601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging method. The charging method comprises the following steps: in the using process of the Bluetooth headset, acquiring state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information; if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into charging equipment or not at intervals of second preset time; and if the USB charging interface is detected to be inserted into the charging equipment, restarting the Bluetooth headset, closing the Bluetooth function, and controlling the Bluetooth headset to enter a charging mode. The invention also discloses a Bluetooth headset and a computer readable storage medium. The invention can realize the safe charging of the Bluetooth headset and avoid potential safety hazards.

Description

Charging method, Bluetooth headset and computer readable storage medium
Technical Field
The invention relates to the technical field of portable listening equipment, in particular to a charging method, a Bluetooth headset and a computer readable storage medium.
Background
Along with the rapid development of mobile terminal technology and chip technology, the earphone market has been rapidly developed, especially the bluetooth earphone market. Bluetooth headsets include the neck-line, head-mounted and bone-conduction bluetooth headsets and TWS (True wireless stereo) headsets, among many others.
Among them, the neck-line type, the head-wearing type and the bone conduction bluetooth headset are generally charged through a USB (Universal Serial Bus) interface connection adapter. When charging, if the user wears the device for use, potential safety hazards exist, such as battery leakage, explosion and the like. Therefore, how to realize the safe charging of the bluetooth headset and avoid the potential safety hazard is a problem which needs to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a charging method, a Bluetooth headset and a computer readable storage medium, and aims to realize safe charging of the Bluetooth headset and avoid potential safety hazards.
In order to achieve the above object, the present invention provides a charging method, including:
in the using process of the Bluetooth headset, acquiring state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information;
if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into charging equipment or not at intervals of second preset time;
and if the USB charging interface is detected to be inserted into the charging equipment, restarting the Bluetooth headset, closing the Bluetooth function, and controlling the Bluetooth headset to enter a charging mode.
Optionally, after the step of determining whether the bluetooth headset is in a non-charging state according to the state information, the method further includes:
if the Bluetooth headset is in a charging state, detecting whether the charging equipment of the USB charging interface is pulled out every third preset time;
and if the charging equipment of the USB charging interface is detected to be pulled out, controlling the Bluetooth headset to be powered off.
Optionally, after the step of detecting whether the charging device of the USB charging interface is pulled out, the method further includes:
and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
Optionally, the step of determining whether the bluetooth headset is in a non-charging state according to the state information includes:
detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result;
and judging whether the Bluetooth headset is in a non-charging state or not according to the detection result.
Optionally, if it is detected that the USB charging interface is inserted into the charging device, the bluetooth headset is restarted and the bluetooth function is turned off, and after the step of controlling the bluetooth headset to enter the charging mode, the method further includes:
and updating the state information of the battery into state information corresponding to the charging state.
In addition, to achieve the above object, the present invention also provides a bluetooth headset, including: a memory, a processor, and a charging program stored on the memory and executable on the processor, the charging program when executed by the processor implementing the steps of:
in the using process of the Bluetooth headset, acquiring state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information;
if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into charging equipment or not at intervals of second preset time;
and if the USB charging interface is detected to be inserted into the charging equipment, restarting the Bluetooth headset, closing the Bluetooth function, and controlling the Bluetooth headset to enter a charging mode.
Optionally, the charging program further implements the following steps when executed by the processor:
if the Bluetooth headset is in a charging state, detecting whether the charging equipment of the USB charging interface is pulled out every third preset time;
and if the charging equipment of the USB charging interface is detected to be pulled out, controlling the Bluetooth headset to be powered off.
Optionally, the charging program further implements the following steps when executed by the processor:
and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
Optionally, the charging program further implements the following steps when executed by the processor:
detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result;
and judging whether the Bluetooth headset is in a non-charging state or not according to the detection result.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a charging program that, when executed by a processor, implements the steps of the charging method as described above.
The invention provides a charging method, a Bluetooth headset and a computer readable storage medium, wherein in the using process of the Bluetooth headset, state information of a battery of the Bluetooth headset is acquired at intervals of first preset time, and whether the Bluetooth headset is in a non-charging state is judged according to the state information; if the Bluetooth headset is in a non-charging state, detecting whether the USB charging interface is inserted into the charging equipment or not at intervals of second preset time; if the USB charging interface is detected to be inserted into the charging equipment, the Bluetooth headset is restarted, the Bluetooth function is closed, and the Bluetooth headset is controlled to enter a charging mode. In this way, in bluetooth headset's use, when detecting bluetooth headset's USB interface that charges and insert battery charging outfit, when charging promptly, restart bluetooth headset and close bluetooth function to the connection between disconnection bluetooth headset and the terminal equipment, the user can not continue to use not last bluetooth headset, thereby can realize bluetooth headset's safe charging, avoids simultaneously charging the potential safety hazard that leads to because of bluetooth headset in the use.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a charging method according to a first embodiment of the present invention;
fig. 3 is a schematic flow chart of a charging method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the prior art, along with the rapid development of mobile terminal technology and chip technology, the earphone market has been rapidly developed, especially the bluetooth earphone market. Bluetooth headsets include various types of neck-line, head-mounted and bone conduction bluetooth headsets and TWS (true wireless Stereo) headsets. Among them, the neck-line type, the head-wearing type and the bone conduction bluetooth headset are generally charged through a USB (Universal Serial Bus) interface connection adapter. When charging, if the user wears the device for use, potential safety hazards exist, such as battery leakage, explosion and the like. Therefore, how to realize the safe charging of the bluetooth headset and avoid the potential safety hazard is a problem which needs to be solved urgently at present.
In order to solve the technical problem, the invention provides a charging method, which comprises the steps of acquiring state information of a battery of a Bluetooth headset every other first preset time in the use process of the Bluetooth headset, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information; if the Bluetooth headset is in a non-charging state, detecting whether the USB charging interface is inserted into the charging equipment or not at intervals of second preset time; if the USB charging interface is detected to be inserted into the charging equipment, the Bluetooth headset is restarted, the Bluetooth function is closed, and the Bluetooth headset is controlled to enter a charging mode. In this way, in bluetooth headset's use, when detecting bluetooth headset's USB interface that charges and insert battery charging outfit, when charging promptly, restart bluetooth headset and close bluetooth function to the connection between disconnection bluetooth headset and the terminal equipment, the user can not continue to use not last bluetooth headset, thereby can realize bluetooth headset's safe charging, avoids simultaneously charging the potential safety hazard that leads to because of bluetooth headset in the use.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a Bluetooth headset which is charged through a USB charging interface, such as a neck wire type Bluetooth headset, a head-wearing type Bluetooth headset, a bone conduction type Bluetooth headset and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, and a memory 1003. Wherein a communication bus 1002 is used to enable connective communication between these components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1003, which is a kind of computer storage medium, may include therein a network communication module and a charging program.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a charging program stored in the memory 1003, and perform the following operations:
in the using process of the Bluetooth headset, acquiring state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information;
if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into charging equipment or not at intervals of second preset time;
and if the USB charging interface is detected to be inserted into the charging equipment, restarting the Bluetooth headset, closing the Bluetooth function, and controlling the Bluetooth headset to enter a charging mode.
Further, the processor 1001 may call the charging program stored in the memory 1003, and also perform the following operations:
if the Bluetooth headset is in a charging state, detecting whether the charging equipment of the USB charging interface is pulled out every third preset time;
and if the charging equipment of the USB charging interface is detected to be pulled out, controlling the Bluetooth headset to be powered off.
Further, the processor 1001 may call the charging program stored in the memory 1003, and also perform the following operations:
and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
Further, the processor 1001 may call the charging program stored in the memory 1003, and also perform the following operations:
detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result;
and judging whether the Bluetooth headset is in a non-charging state or not according to the detection result.
Further, the processor 1001 may call the charging program stored in the memory 1003, and also perform the following operations:
and updating the state information of the battery into state information corresponding to the charging state.
Based on the hardware structure, various embodiments of the charging method of the invention are provided.
The invention provides a charging method.
Referring to fig. 2, fig. 2 is a schematic flow chart of a charging method according to a first embodiment of the present invention.
In this embodiment, the charging method includes:
step S10, in the using process of the Bluetooth headset, acquiring the state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information;
in the embodiment, the charging method is suitable for the scene that the user charges the Bluetooth headset in the process of using the Bluetooth headset, by detecting whether the state of the battery of the bluetooth headset is a non-charging state every first preset time, when the Bluetooth headset is in a non-charging state, if a USB (Universal Serial Bus) charging interface is detected to be inserted into charging equipment, the user charges the Bluetooth headset, at the moment, the Bluetooth headset is restarted and the Bluetooth function is turned off, the Bluetooth headset is controlled to enter a charging mode, thereby disconnecting the connection between the Bluetooth earphone and the terminal equipment by restarting the Bluetooth earphone and closing the Bluetooth function, the user can not continue to use the terminal equipment without connecting the Bluetooth earphone, therefore, the safe charging of the Bluetooth headset can be realized, and the potential safety hazard caused by the simultaneous charging of the Bluetooth headset in the using process is avoided. The terminal of the embodiment of the invention can be a Bluetooth headset which is charged through a USB charging interface, such as a neck wire type Bluetooth headset, a head-wearing type Bluetooth headset, a bone conduction type Bluetooth headset and the like.
In this embodiment, in the using process of the bluetooth headset, the state information of the battery of the bluetooth headset may be acquired every first preset time, and whether the bluetooth headset is in a non-charging state is determined according to the state information. The preset state parameters can be acquired for acquiring the state information of the battery, the preset state parameters are used for representing the state information of the battery, and can be specifically set according to the type of the bluetooth headset, the first preset time can be preset according to the actual situation, for example, the first preset time can be set to 1min, 5min and the like, and the method is not specifically limited here.
Wherein, the step of judging whether the Bluetooth headset is in a non-charging state according to the state information comprises the following steps:
step a1, detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result;
step a2, judging whether the Bluetooth headset is in a non-charging state according to the detection result.
And firstly detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result. The first preset character string may be normal, and the second preset character string may be charging, and it is understood that, in a specific embodiment, the first preset character string and the second preset character string may be specifically set according to setting parameters of different types of bluetooth headsets. And then, judging whether the Bluetooth headset is in a non-charging state or not according to the detection result. For example, in the above example, if the state information of the battery is the first preset character string normal, it is determined that the bluetooth headset is in the non-charging state; and if the state information of the battery is the second preset character string charging, determining that the Bluetooth headset is in a charging state.
Step S20, if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into a charging device every second preset time;
if the bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into the charging device every second preset time so as to determine whether the user is charging the bluetooth headset. Specifically, whether the USB charging interface is inserted into the charging device or not can be determined by detecting the voltage on the pin of the USB charging interface of the bluetooth headset, and when it is detected that the voltage meets a first preset condition, it is indicated that the USB charging interface is inserted into the charging device, where the first preset condition can be specifically set according to an actual situation, and is not specifically limited here. In addition, the detection of whether the USB charging interface is inserted into the charging device may be in real time or at preset time intervals. The second preset time may be preset according to an actual situation, and is not specifically limited herein, and preferably, the second preset time is less than or equal to the first preset time.
And step S30, if the USB charging interface is detected to be inserted into the charging equipment, the Bluetooth headset is restarted and the Bluetooth function is closed, and the Bluetooth headset is controlled to enter a charging mode.
If the USB charging interface is detected to be inserted into the charging device, the user is indicated to charge the Bluetooth headset, and at the moment, the Bluetooth headset is restarted and the Bluetooth function is closed, so that the Bluetooth headset is controlled to enter a charging mode. It should be noted that, during the use of the bluetooth headset, the bluetooth function needs to be restarted and can be turned off. The connection between the Bluetooth earphone and the terminal equipment is disconnected by closing the Bluetooth function, and the user can not continue to use the terminal equipment without connecting the Bluetooth earphone, so that the safe charging of the Bluetooth earphone can be realized, and the potential safety hazard caused by the simultaneous charging of the Bluetooth earphone in the using process is avoided.
The embodiment of the invention provides a charging method, which comprises the steps of acquiring state information of a battery of a Bluetooth headset every other first preset time in the use process of the Bluetooth headset, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information; if the Bluetooth headset is in a non-charging state, detecting whether the USB charging interface is inserted into the charging equipment or not at intervals of second preset time; if the USB charging interface is detected to be inserted into the charging equipment, the Bluetooth headset is restarted, the Bluetooth function is closed, and the Bluetooth headset is controlled to enter a charging mode. In this way, in bluetooth headset's use, when detecting bluetooth headset's USB interface that charges and insert battery charging outfit, when charging promptly, restart bluetooth headset and close bluetooth function to the connection between disconnection bluetooth headset and the terminal equipment, the user can not continue to use not last bluetooth headset, thereby can realize bluetooth headset's safe charging, avoids simultaneously charging the potential safety hazard that leads to because of bluetooth headset in the use.
Further, based on the above-described first embodiment, a second embodiment of the charging method of the present invention is proposed. Referring to fig. 3, fig. 3 is a flowchart illustrating a charging method according to a second embodiment of the present invention.
In this embodiment, after step S10, the charging method further includes:
step S40, if the Bluetooth headset is in a charging state, detecting whether the charging equipment of the USB charging interface is pulled out every third preset time;
in this embodiment, if it is detected that the state information of the battery is the second preset character string charging, that is, the bluetooth headset is in a charging state, it is detected whether the charging device of the USB charging interface is pulled out every third preset time, so as to determine whether the user pulls out the USB data line and stops charging the bluetooth headset. Whether the charging device of the USB charging interface is pulled out or not can be judged by detecting the voltage on the pin of the USB charging interface of the bluetooth headset, when the voltage is detected to meet the second preset condition, it is described that the USB charging interface is inserted into the charging device, and when the voltage is detected to not meet the second preset condition, it is described that the USB charging interface is not inserted into the charging device, wherein the second preset condition can be specifically set according to an actual situation, and is not specifically limited herein, and it can be understood that the first preset condition and the second preset condition are corresponding, for example, if the first preset condition is that the first preset threshold range is met, the second preset condition can be set to meet the second preset threshold range which is opposite to the first preset range. In addition, whether the charging device of the USB charging interface is pulled out or not can be detected in real time or at preset time intervals. In addition, the third preset time may be preset according to an actual situation, and is not specifically limited herein, preferably, the third preset time is less than or equal to the first preset time, and the third preset time and the second preset time may be equal or unequal.
And step S50, if the charging equipment of the USB charging interface is detected to be pulled out, controlling the Bluetooth headset to be powered off.
If the charging equipment of the USB charging interface is detected to be pulled out, the user is indicated to pull out the USB data line and stop charging the Bluetooth headset, and at the moment, the Bluetooth headset is controlled to be powered off. It should be understood that, in an embodiment, when it is detected that the charging device of the USB charging interface is pulled out, the bluetooth function may be turned on first, and a bluetooth communication connection is established with the terminal to send corresponding charging completion information to the terminal to prompt a user that charging is completed, and then when no operation instruction is detected within a preset time, the bluetooth headset is controlled to be turned off to save electric power. Certainly, when detecting that the charging device of the USB charging interface is pulled out, the charging completion reminding can be performed in other manners, for example, a preset reminding sound is played, or the reminding is performed by changing an indicator light (such as flashing, lighting, or extinguishing), and then when no operation instruction is detected within a preset time, it indicates that the user does not need to use the bluetooth headset, and at this time, the bluetooth headset is controlled to be powered off, so as to save electric quantity.
Further, after step S40, the charging method further includes:
and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
If the charging device of the USB charging interface is detected not to be pulled out, the charging state is continuously maintained if the charging device is continuously charged.
By the method, when the Bluetooth headset is detected to be in a charging state, whether the charging equipment of the USB charging interface is pulled out or not is detected every third preset time, and if the charging equipment of the USB charging interface is detected to be pulled out, the Bluetooth headset is controlled to be powered off so as to save electric quantity; and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
Further, based on the above-described first embodiment, a third embodiment of the charging method of the present invention is proposed.
In this embodiment, after step S30, the charging method further includes:
and updating the state information of the battery into state information corresponding to the charging state.
In this embodiment, in the using process of the bluetooth headset, when it is detected that the USB charging interface of the bluetooth headset is inserted into the charging device, that is, when charging is performed, the bluetooth headset is restarted and the bluetooth function is turned off, so as to control the bluetooth headset to enter the charging mode, and after that, the state information of the battery needs to be updated to the state information corresponding to the charging state, that is, the state information is updated to charging, and the state information of the battery is updated in time, so as to facilitate subsequent further detection.
The present invention also provides a computer-readable storage medium having stored thereon a charging program which, when executed by a processor, implements the steps of the charging method as described in any one of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the charging method described above, and is not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A charging method, characterized by comprising the steps of:
in the using process of the Bluetooth headset, acquiring state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information;
if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into charging equipment or not at intervals of second preset time;
and if the USB charging interface is detected to be inserted into the charging equipment, restarting the Bluetooth headset, closing the Bluetooth function, and controlling the Bluetooth headset to enter a charging mode.
2. The charging method according to claim 1, wherein after the step of determining whether the bluetooth headset is in the non-charging state according to the state information, the method further comprises:
if the Bluetooth headset is in a charging state, detecting whether the charging equipment of the USB charging interface is pulled out every third preset time;
and if the charging equipment of the USB charging interface is detected to be pulled out, controlling the Bluetooth headset to be powered off.
3. The charging method according to claim 2, wherein after the step of detecting whether the charging device of the USB charging interface is unplugged, the method further comprises:
and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
4. The charging method according to any one of claims 1 to 3, wherein the step of determining whether the Bluetooth headset is in a non-charging state according to the state information comprises:
detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result;
and judging whether the Bluetooth headset is in a non-charging state or not according to the detection result.
5. The charging method according to any one of claims 1 to 3, wherein the step of restarting the Bluetooth headset and turning off the Bluetooth function if it is detected that the USB charging interface is inserted into the charging device, and after the step of controlling the Bluetooth headset to enter the charging mode, further comprises:
and updating the state information of the battery into state information corresponding to the charging state.
6. A Bluetooth headset, comprising: a memory, a processor, and a charging program stored on the memory and executable on the processor, the charging program when executed by the processor implementing the steps of:
in the using process of the Bluetooth headset, acquiring state information of a battery of the Bluetooth headset every other first preset time, and judging whether the Bluetooth headset is in a non-charging state or not according to the state information;
if the Bluetooth headset is in a non-charging state, detecting whether a Universal Serial Bus (USB) charging interface is inserted into charging equipment or not at intervals of second preset time;
and if the USB charging interface is detected to be inserted into the charging equipment, restarting the Bluetooth headset, closing the Bluetooth function, and controlling the Bluetooth headset to enter a charging mode.
7. The bluetooth headset of claim 6, wherein the charging program, when executed by the processor, further performs the steps of:
if the Bluetooth headset is in a charging state, detecting whether the charging equipment of the USB charging interface is pulled out every third preset time;
and if the charging equipment of the USB charging interface is detected to be pulled out, controlling the Bluetooth headset to be powered off.
8. The bluetooth headset of claim 7, wherein the charging program, when executed by the processor, further performs the steps of:
and if the charging equipment of the USB charging interface is not pulled out, maintaining the charging state.
9. The bluetooth headset of any of claims 6 to 8, wherein the charging program, when executed by the processor, further performs the steps of:
detecting whether the state information is a first preset character string or a second preset character string to obtain a detection result;
and judging whether the Bluetooth headset is in a non-charging state or not according to the detection result.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a charging program which, when executed by a processor, implements the steps of the charging method according to any one of claims 1 to 5.
CN202010126976.9A 2020-02-27 2020-02-27 Charging method, Bluetooth headset and computer readable storage medium Active CN111211601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010126976.9A CN111211601B (en) 2020-02-27 2020-02-27 Charging method, Bluetooth headset and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010126976.9A CN111211601B (en) 2020-02-27 2020-02-27 Charging method, Bluetooth headset and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111211601A true CN111211601A (en) 2020-05-29
CN111211601B CN111211601B (en) 2021-07-30

Family

ID=70789810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010126976.9A Active CN111211601B (en) 2020-02-27 2020-02-27 Charging method, Bluetooth headset and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111211601B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112448448A (en) * 2020-11-13 2021-03-05 Oppo广东移动通信有限公司 Charging control method and device, earphone, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090180638A1 (en) * 2008-01-11 2009-07-16 David Hsu Method and system for wireless headset instant on capability during battery charging
CN201854333U (en) * 2010-10-22 2011-06-01 Tcl集团股份有限公司 Integrated Bluetooth mobile terminal device
CN204993769U (en) * 2015-09-24 2016-01-20 青岛歌尔声学科技有限公司 Earphone charge start device and system
CN205081496U (en) * 2015-09-21 2016-03-09 深圳市冠旭电子有限公司 Bluetooth headset charging system
CN206850479U (en) * 2017-06-08 2018-01-05 歌尔科技有限公司 Charging bluetooth earphone system
CN107786911A (en) * 2016-08-25 2018-03-09 深圳市三诺声智联股份有限公司 A kind of bluetooth earphone and method for start-up and shutdown
CN108924691A (en) * 2018-09-04 2018-11-30 广州由我科技股份有限公司 A kind of bluetooth headset and its charge cabin, charging system
CN109587592A (en) * 2018-06-19 2019-04-05 伍军华 Bluetooth headset and its on-off control method
CN208924446U (en) * 2018-12-10 2019-05-31 深圳芯耀阳科技有限公司 A kind of Bluetooth earphone circuit

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090180638A1 (en) * 2008-01-11 2009-07-16 David Hsu Method and system for wireless headset instant on capability during battery charging
CN201854333U (en) * 2010-10-22 2011-06-01 Tcl集团股份有限公司 Integrated Bluetooth mobile terminal device
CN205081496U (en) * 2015-09-21 2016-03-09 深圳市冠旭电子有限公司 Bluetooth headset charging system
CN204993769U (en) * 2015-09-24 2016-01-20 青岛歌尔声学科技有限公司 Earphone charge start device and system
CN107786911A (en) * 2016-08-25 2018-03-09 深圳市三诺声智联股份有限公司 A kind of bluetooth earphone and method for start-up and shutdown
CN206850479U (en) * 2017-06-08 2018-01-05 歌尔科技有限公司 Charging bluetooth earphone system
CN109587592A (en) * 2018-06-19 2019-04-05 伍军华 Bluetooth headset and its on-off control method
CN108924691A (en) * 2018-09-04 2018-11-30 广州由我科技股份有限公司 A kind of bluetooth headset and its charge cabin, charging system
CN208924446U (en) * 2018-12-10 2019-05-31 深圳芯耀阳科技有限公司 A kind of Bluetooth earphone circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112448448A (en) * 2020-11-13 2021-03-05 Oppo广东移动通信有限公司 Charging control method and device, earphone, electronic equipment and readable storage medium
CN112448448B (en) * 2020-11-13 2023-11-10 Oppo广东移动通信有限公司 Charging control method, device, earphone, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN111211601B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN111163388B (en) Management method and device for charging path of Bluetooth headset and readable storage medium
EP3568882B1 (en) Apparatus for managing battery of electronic device
CN111131966A (en) Mode control method, headphone system, and computer-readable storage medium
CN111030231B (en) Reverse charging method, device, server equipment and computer storage medium
CN112203179B (en) TWS earphone, automatic reconnection method and device thereof, and computer storage medium
US11176078B2 (en) Communication method using input/output interface, and apparatus therefor
CN110768332B (en) Charging cartridge, charging control method thereof, and readable storage medium
CN105322615A (en) Charging control method and electronic device for supporting the same
CN111063170A (en) TWS earphone loss prevention method, TWS earphone and computer readable storage medium
CN111246199B (en) Control method and device for camera test, terminal equipment and storage medium
CN111211601B (en) Charging method, Bluetooth headset and computer readable storage medium
CN109542477B (en) Upgrading method and device applied to earphone, electronic equipment and storage medium
WO2024094068A1 (en) Communication connection control method, vehicle-mounted device, communication system and storage medium
CN104836290A (en) Detection method for plugging and unplugging of charger of mobile terminal and detection system
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
WO2016045346A1 (en) Method, device, and computer storage medium for setting a mobile terminal operating mode
CN114245350A (en) Earphone interaction control method, system, equipment and storage medium
CN114069803B (en) Portable emergency energy storage power supply detection method, device, equipment and storage medium
CN102724351B (en) Mobile terminal and management method of mobile terminal to external interposer attachment
CN106487061B (en) Charging circuit and method
CN116647785A (en) Earphone box control method and device, earphone box and computer readable storage medium
CN111342505A (en) Charging method, device, system, electronic equipment and storage medium
CN112104028A (en) Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN113162131A (en) Reverse charging system, reverse charging method and terminal equipment
CN112119566A (en) Power supply method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant