CN111225320A - Earphone wearing state detection method, earphone and readable storage medium - Google Patents

Earphone wearing state detection method, earphone and readable storage medium Download PDF

Info

Publication number
CN111225320A
CN111225320A CN201911424445.1A CN201911424445A CN111225320A CN 111225320 A CN111225320 A CN 111225320A CN 201911424445 A CN201911424445 A CN 201911424445A CN 111225320 A CN111225320 A CN 111225320A
Authority
CN
China
Prior art keywords
earphone
color information
box
wearing state
state
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
CN201911424445.1A
Other languages
Chinese (zh)
Other versions
CN111225320B (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 CN201911424445.1A priority Critical patent/CN111225320B/en
Publication of CN111225320A publication Critical patent/CN111225320A/en
Application granted granted Critical
Publication of CN111225320B publication Critical patent/CN111225320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for detecting the wearing state of an earphone, which is applied to the earphone, wherein the earphone is provided with an infrared sensor, and the method comprises the following steps: when the infrared sensor detects that the distance is smaller than the preset distance, acquiring color information of the earphone box; when the color information is matched with the preset color information, the state of the charging pin is obtained, and when the charging pin is in the charging state, the earphone is judged to be in the box entering state. The invention also provides an earphone and a computer readable storage medium. According to the method for detecting the wearing state of the earphone, when the infrared sensor detects that the earphone is in the wearing state to be detected, in order to eliminate the phenomenon that the current state of the earphone is mistakenly identified as the wearing state due to the fact that the earphone is placed in the earphone box with the preset color information, when the color of the earphone box is the preset color information, and when the charging pin of the earphone is further determined to be in the non-charging state, the wearing state of the earphone is determined, and the problem that the earphone is abnormally used due to the fact that the wearing state of the earphone is mistakenly identified is solved.

Description

Earphone wearing state detection method, earphone and readable storage medium
Technical Field
The invention relates to the technical field of earphones, in particular to an earphone wearing state detection method, a mobile terminal and a readable storage medium.
Background
Nowadays, Wireless headsets are favored by more and more users due to their convenience of use, wherein the Wireless headsets include True Wireless Stereo (TWS) headsets, TWS headsets for short. The TWS headset is a device for transmitting stereo signals based on bluetooth technology, i.e. the left and right headsets receive stereo signals from a playing device such as a mobile phone through bluetooth without any wire connection, so as to realize playback. When the TWS earphone is used, the wearing condition of the current TWS earphone is judged through wearing detection, if the wearing condition is the non-wearing state, the TWS earphone can be controlled to be used according to the current wearing condition of the TWS earphone, and if music is not played when the TWS earphone is detected to be worn, the music is controlled to be automatically played; and when detecting that the TWS headset is not worn and the music is playing, controlling the music to pause playing.
At present, the wearing detection of the TWS earphones on the market is mostly realized by adopting an IR infrared sensor, and whether the TWS earphones are in a wearing state or a non-wearing state is judged by detecting the distance between the TWS earphones and the skin of a human body. However, the storage of the TWS headset needs to be fixed in the storage cavity such as a charging box, a charging phone case, etc. When the TWS earphone is stored in the storage cavity with the skin color close to that of a human body, the problem of error detection of the TWS earphone in a wearing state is easily identified by mistake, and the TWS earphone is abnormal in use.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an earphone wearing state detection method, an earphone and a readable storage medium, and aims to solve the problem that the earphone is abnormally used due to mistaken identification of the wearing state of the earphone when the earphone is stored in a storage cavity with the skin color close to that of a human body.
In order to achieve the above object, the present invention provides a method for detecting a wearing state of an earphone, including the steps of:
when the infrared sensor detects that the distance is smaller than the preset distance, acquiring color information of the earphone box;
when the color information is matched with preset color information, the state of a charging pin is obtained, and when the color of the earphone box is the color corresponding to the preset color information, the earphone box reflects the received infrared light;
and when the charging pin is in a charging state, judging that the earphone is in a box-entering state.
Optionally, after the step of acquiring the state of the charging pin, the method further includes:
and when the charging pin is in an uncharged state, the earphone is judged to be in a wearing state.
Optionally, when the color information matches preset color information, the step of obtaining the state of the charging pin includes:
and when the color information is matched with the preset color information, acquiring the state of the charging pin after a preset time interval.
Optionally, after the step of obtaining the color information of the earphone box, the earphone wearing state detection method further includes:
and when the color information is not matched with preset color information, judging that the earphone is in a wearing state.
Optionally, when the distance detected by the infrared sensor is smaller than the preset distance, the step of obtaining the color information of the headphone case includes:
when the infrared sensor detects that the distance is smaller than the preset distance, sending a color information acquisition request to the earphone box;
and receiving color information returned by the earphone box.
Optionally, when the distance detected by the infrared sensor is smaller than the preset distance, the step of obtaining the color information of the headphone case includes:
when receiving a color information updating instruction sent by the current earphone box, receiving actual color information returned from the current earphone box;
acquiring stored color information of the earphone box;
and when the actual color information of the current earphone box is not matched with the stored color information of the earphone box, updating the stored color information of the earphone box according to the actual color information.
In addition, in order to achieve the above object, the present invention further provides an earphone, which includes a memory, a processor, and an earphone wearing state detection program stored in the memory and executable on the processor, wherein the earphone wearing state detection program, when executed by the processor, implements the steps of the embedded earphone wearing state detection method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing a headphone wearing state detection program, which when executed by the processor, implements the steps of the embedded headphone wearing state detection method as described above.
When the infrared sensor detects that the distance is smaller than the preset distance, namely when the infrared sensor detects that the earphone is in a wearing state to be detected, in order to eliminate the phenomenon that the current state of the earphone is mistakenly identified as the wearing state because the earphone box with preset color information is put in the earphone, when the color of the earphone box is the preset color information, the current state of the earphone is determined by further judging whether the current state of a charging pin is in a charging state, namely when the charging pin of the earphone is in the charging state, the earphone is in a box-in state; when the charging pin of earphone is in the non-charging state, confirm the earphone wearing state, effectively avoided adopting and accomodate the earphone with the similar cavity of accomodating of human skin colour when, because the wearing state of mistake discernment earphone leads to the earphone to use unusual problem.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal according to various embodiments of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a method for detecting wearing states of earphones according to the present invention;
fig. 3 is a schematic flow chart illustrating a first embodiment of the method for detecting wearing states of an earphone according to color information in accordance with the present invention;
fig. 4 is a schematic flow chart illustrating a process of acquiring a charging pin state of an earphone according to a first embodiment of the earphone wearing state detection method of the present invention;
fig. 5 is a flowchart illustrating a second embodiment of a method for detecting wearing states of earphones according to the present invention;
fig. 6 is a flowchart illustrating a method for detecting wearing states of earphones according to a third 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.
When the infrared sensor detects that the distance is smaller than the preset distance, acquiring color information of the earphone box; when the color information is matched with the preset color information, the state of the charging pin is obtained, and when the charging pin is in the charging state, the earphone is judged to be in the box entering state. According to the method for detecting the wearing state of the earphone, when the infrared sensor detects that the earphone is in the wearing state to be detected, in order to eliminate the phenomenon that the current state of the earphone is mistakenly identified as the wearing state due to the fact that the earphone is placed in the earphone box with the preset color information, when the color of the earphone box is the preset color information, and when the charging pin of the earphone is further determined to be in the non-charging state, the wearing state of the earphone is determined, and the problem that the earphone is abnormally used due to the fact that the wearing state of the earphone is mistakenly identified is solved.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a terminal according to various embodiments of the present invention, where the terminal according to the embodiments of the present invention is an earphone, the terminal may include: memory 101, processor 102, and communication module 103. Those skilled in the art will appreciate that the terminal configuration shown in fig. 1 is not intended to be limiting, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. The memory 101 stores a central control system and an earphone wearing state detection program. The processor 102 is a control center of the terminal, and the processor 102 executes the headphone wearing state detection program stored in the memory 101 to implement the steps of the embodiments of the headphone wearing state detection method of the present invention. The communication module 103 establishes data communication with the earphone box through a network protocol to send a color information acquisition request to the earphone box to acquire color information returned by the earphone box.
Based on the above schematic diagram of the hardware structure, embodiments of the method for detecting the wearing state of the headset are provided.
The invention provides a method for detecting a wearing state of an earphone, which is applied to the earphone, wherein the earphone is provided with an infrared sensor, and please refer to fig. 2, and fig. 2 is a schematic flow chart of a first embodiment of the method for detecting the wearing state of the earphone. In this embodiment, the headphone wearing state detection method includes the steps of:
step S10, when the infrared sensor detects that the distance is less than the preset distance, acquiring color information of the earphone box;
color information includes, but is not limited to, color type and flag value of the color flag bit. Wherein the color type is light color system or dark color system. The flag value of the color flag may be set to only two values to distinguish between the light color system and the dark color system, for example: a mark value of 1 indicates a light color system, and a mark value of 2 indicates a dark color system; different values may also be set for different colors, which is not limited in this embodiment. There are various ways to obtain the color information of the earphone box, and it can be understood that the earphone can be placed in the earphone box with fixed color for charging, so the color information of the earphone box can be directly preset in the earphone, and the color information of the earphone box can be directly obtained from the earphone, wherein the color information of the earphone box can be obtained by reading the mark value of the color mark position, and further the color information of the earphone box can be determined according to the mark value; the earphone can also be placed in earphone boxes with different colors for charging, so that the color information of the earphone box can be acquired by sending a color information acquisition request to the earphone box; the color information returned by the earphone box is received to obtain the color information of the earphone box, or when an instruction for replacing the earphone box is received, the stored color information is updated according to the received actual color information for replacing the earphone box, the color information for replacing the earphone box is obtained by obtaining the updated color information, compared with a mode for obtaining the color information of the earphone box by receiving the color information returned by the earphone box, the mode for obtaining the color information for replacing the earphone box by obtaining the updated color information does not need to send a color information obtaining request to the earphone box, and the specific implementation of the step is not limited in this embodiment.
Step S20, when the color information is matched with preset color information, the state of the charging pin is obtained, and when the color of the earphone box is the color corresponding to the preset color information, the earphone box reflects the received infrared light;
and step S30, when the charging pin is in a charging state, judging that the earphone is in a box-entering state.
The preset color information is color information of an earphone box which easily causes error identification of the wearing state of the earphone, for example, a light color system, when the color of the earphone box is a color corresponding to the preset color information, the earphone box reflects the received infrared light, so that the infrared sensor of the earphone receives the infrared light reflected by the earphone box, when the earphone is placed into the earphone box with the preset color information, and the distance detected by the infrared sensor of the earphone is smaller than the preset distance, the error detection problem that the wearing state of the earphone is detected is easily generated, when the color information of the earphone box is matched with the preset color information, the current wearing state of the earphone to be detected can be determined, wherein the wearing state to be detected comprises a box entering state and an ear entering state, and by acquiring the state of a charging pin of the earphone, the earphone is further determined to be in the box entering state or the ear entering state according to the state of the charging pin, it can be understood that when the state of the charging pin is the charging state, the earphone can be judged to be in the box-entering state; when the state of the charging pin is the non-charging state, the earphone can be judged to be in an in-ear state, namely a wearing state. It should be noted that, determining the state of the charging pin may be performed by obtaining a flag value of the charging flag, where the flag value of the charging flag may set two values to distinguish between the charging state and the non-charging state, for example: a flag value of 1 indicates a charged state, and a flag value of 0 indicates a non-charged state.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a method for detecting a wearing state of an earphone according to a first embodiment of the present invention. The step S10 includes, after acquiring the color information of the headphone case: and step S40, when the color information is not matched with the preset color information, judging that the earphone is in a wearing state.
It can be understood that, when the color information of the earphone box is not matched with the preset color information, that is, when the color of the earphone box is a dark color system, the earphone box can absorb most of infrared light, which may result in that the infrared sensor of the earphone cannot receive the infrared light reflected by the earphone box, that is, when the color information of the earphone box is not matched with the preset color information, the infrared sensor cannot detect that the distance is less than the preset distance. Since the infrared sensor detects that the distance is less than the preset distance in step S10 and the color information of the earphone box does not match the preset color information, it may be determined that the earphone is currently in the wearing state.
Optionally, referring to fig. 4, fig. 4 is a schematic flow chart illustrating a process of acquiring a charging pin state of an earphone according to a first embodiment of the earphone wearing state detection method of the present invention. Step S20 includes: step S21, when the color information matches the preset color information, acquiring the state of the charging pin after a preset time interval.
In the practical application process, because the earphone is placed in the earphone box in different ways, it may be determined that the distance detected by the infrared sensor is smaller than the preset distance, that is, the earphone is in the wearing state to be detected, wherein the wearing state to be detected includes a box-in state and an ear-in state, and the charging pin of the earphone is electrically contacted and charged with the charging position of the earphone box, so that the charging pin of the earphone is in the charging state, it can be understood that there is a time delay between the charging state of the earphone and the wearing state to be detected, and when the color information matches with the preset color information, the state of the charging pin of the earphone can be obtained after the preset time interval, thereby avoiding the situation that the charging pin of the earphone cannot be accurately obtained due to the time delay, and thus, the earphone is further determined to be in the box-in state or the ear-in state according to the obtained state, it can be understood that when the state of the charging pin is the charging state, the earphone can be judged to be in the box-entering state; when the state of the charging pin is the non-charging state, the earphone can be judged to be in an in-ear state, namely a wearing state.
In the technical scheme disclosed in this embodiment, when the infrared sensor detects that the distance is smaller than the preset distance, that is, when the infrared sensor detects that the earphone is in the wearing state to be detected, in order to eliminate the problem that the current state of the earphone is mistakenly identified as the wearing state because the earphone is placed into the earphone box with the preset color information, when the color of the earphone box is the preset color information, the current state of the earphone is determined by further judging whether the current state of the charging pin is in the charging state, that is, when the charging pin of the earphone is in the charging state, the earphone is determined to be in the box-in state; when the charging pin of earphone is in the non-charging state, confirm the earphone wearing state, effectively avoided adopting and accomodate the earphone with the similar cavity of accomodating of human skin colour when, because the wearing state of mistake discernment earphone leads to the earphone to use unusual problem.
A second embodiment of the method for detecting wearing status of an earphone according to the present invention is provided based on any one of the above embodiments, please refer to fig. 5, and fig. 5 is a flowchart illustrating the second embodiment of the method for detecting wearing status of an earphone according to the present invention. In this embodiment, step S10 includes:
step S11, when the infrared sensor detects that the distance is less than the preset distance, a color information acquisition request is sent to the earphone box;
and step S12, receiving the color information returned by the earphone box.
It should be noted that, before sending the color information acquisition request to the earphone box, the bluetooth broadcast information of the pairing request instruction sent by the searched earphone box can be used; determining a target earphone box according to the device identification information in the Bluetooth broadcast information, establishing Bluetooth connection with the target earphone box to realize interaction between the earphone and the earphone box, wherein when a plurality of pieces of Bluetooth broadcast information are searched, the target earphone box is determined according to the device identification information in the Bluetooth broadcast information, and the target equipment identification information matched with the device information in the connected equipment list in the device identification information corresponding to the plurality of pieces of Bluetooth broadcast information can be obtained, and the earphone box corresponding to the target equipment identification information is used as the target earphone box; the device identification information matched with the preset device identification information in the device identification information may also be used as the target device identification information, and the earphone box corresponding to the target device identification information may also be used as the target earphone box.
After the bluetooth connection is established to realize the interaction between the earphone and the earphone box, a color information acquisition request is sent to the earphone box to acquire color information of the earphone box, that is, the earphone box can acquire a preset mark value of the color flag bit, and further, the color information is determined according to the mark value, and the color information is sent to the earphone, wherein the setting of the mark value of the color flag bit of the earphone box can be preset before the earphone box leaves the factory, or can be manually set by a user, which is not limited in this embodiment.
In the technical scheme disclosed in this embodiment, when detecting that the earphone is in waiting to detect the wearing state through infrared sensor, whether the current earphone box is the earphone box of the preset color that easily causes the misrecognition earphone current state to be the wearing state, through directly sending the color information acquisition request to the earphone box, and then confirm the color of earphone box according to the color information that receives the earphone box return, can realize that the earphone can be placed and charge in the earphone box of arbitrary color, acquire the color information of current earphone box in real time, the flexibility is strong and the earphone of being convenient for uses.
Referring to fig. 6, fig. 6 is a schematic flow chart of a third embodiment of the method for detecting wearing states of earphones according to the present invention. In this embodiment, step S10 is preceded by:
step S50, when receiving the color information updating command sent by the current earphone box, receiving the actual color information returned from the current earphone box;
step S60, acquiring the color information of the stored earphone box;
step S70, when the actual color information of the current headphone box is not matched with the color information of the stored headphone box, updating the color information of the stored headphone box according to the actual color information.
It should be noted that, before receiving the actual color information returned from the current earphone box, the bluetooth broadcast information of the pairing request instruction sent by the searched earphone box may be used; determining a target earphone box according to the device identification information in the Bluetooth broadcast information, establishing Bluetooth connection with the target earphone box to realize interaction between the earphone and the earphone box, wherein when a plurality of pieces of Bluetooth broadcast information are searched, the target earphone box is determined according to the device identification information in the Bluetooth broadcast information, and the target equipment identification information matched with the device information in the connected equipment list in the device identification information corresponding to the plurality of pieces of Bluetooth broadcast information can be obtained, and the earphone box corresponding to the target equipment identification information is used as the target earphone box; the device identification information matched with the preset device identification information in the device identification information may also be used as the target device identification information, and the earphone box corresponding to the target device identification information may also be used as the target earphone box.
The actual color information is the color information of the earphone box after replacement. The stored color information of the earphone box is the color information of the earphone box which is stored in the earphone and is interacted with the connection established with the earphone. It can be understood that, for the earphone uses, the earphone can be placed in the earphone box of different colours and charge for being convenient for, so, colour information for the earphone box that guarantees the earphone has been matches with the colour information of the earphone box of using, when changing the earphone box at every turn, through the colour information that acquires the correspondence from the earphone box after changing, also receive the actual colour information of returning from current earphone box, the actual colour information of current earphone box of contrast and the colour information of the earphone box that has been, it is easy to understand, when the actual colour information of current earphone box does not match with the colour information of the earphone box that has been, the colour information of the earphone box that has been had according to actual colour information more renew, make the colour information of the earphone box that has been had keep unanimous with the colour information of the earphone box that uses at present. It should be noted that, substantially, by acquiring the mark value of the color flag of the current headphone box and the stored mark value of the color flag of the headphone regarding the headphone box of the headphone according to the actual color information, when it is determined that the mark value of the current headphone box is inconsistent with the stored mark value of the headphone, the stored mark value of the headphone is updated according to the mark value of the current headphone box, that is, the stored mark value of the headphone is modified to the mark value of the current headphone box. The color information includes, but is not limited to, a color type and a flag value of a color flag bit.
In the technical scheme disclosed in this embodiment, need to send the colour information to the earphone box and acquire the request through the colour information of prestoring the earphone box at the earphone when can avoiding acquireing the colour information of earphone box at every turn, after changing the earphone box, through receiving the update colour information instruction, when the actual colour information of earphone box after changing does not match with the colour information of prestoring, through the actual colour information of the colour information update for changing the earphone box of prestoring, when realizing that the earphone can place and charge in the earphone box of arbitrary colour, and need to send the colour information to the earphone box and acquire the request when avoiding acquireing the colour information of earphone box at every turn, reduce resource occupation and be convenient for the earphone to continue to supply power.
The present invention also provides an earphone, including: the earphone wearing state detection program is stored in the memory and can run on the processor, and when being executed by the processor, the earphone wearing state detection program realizes the steps of the earphone wearing state detection method in any one of the embodiments.
The invention further provides a readable storage medium, wherein the readable storage medium stores an earphone wearing state detection program, and the earphone wearing state detection program realizes the steps of the earphone wearing state detection method in any embodiment when executed by the processor.
In the embodiments of the terminal device and the readable storage medium provided by the present invention, all technical features of the embodiments of the method for detecting a wearing state of an earphone are included, and the contents of the expansion and the explanation of the specification are basically the same as those of the embodiments of the method for detecting a wearing state of an earphone, and are not described herein again.
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) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment 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 (8)

1. A method for detecting the wearing state of an earphone is applied to the earphone and is characterized in that an infrared sensor is arranged on the earphone, and the method for detecting the wearing state of the earphone comprises the following steps:
when the infrared sensor detects that the distance is smaller than the preset distance, acquiring color information of the earphone box;
when the color information is matched with preset color information, the state of a charging pin is obtained, and when the color of the earphone box is the color corresponding to the preset color information, the earphone box reflects the received infrared light;
and when the charging pin is in a charging state, judging that the earphone is in a box-entering state.
2. The headset wearing state detection method according to claim 1, further comprising, after the step of acquiring the state of the charging pin:
and when the charging pin is in an uncharged state, the earphone is judged to be in a wearing state.
3. The method for detecting the wearing state of the earphone according to claim 1, wherein the step of acquiring the state of the charging pin when the color information matches preset color information comprises:
and when the color information is matched with the preset color information, acquiring the state of the charging pin after a preset time interval.
4. The headphone wearing state detection method according to claim 1, wherein after the step of acquiring the color information of the headphone case, the headphone wearing state detection method further comprises:
and when the color information is not matched with preset color information, judging that the earphone is in a wearing state.
5. The method for detecting a wearing state of an earphone according to claim 1, wherein the step of acquiring color information of the earphone case when the distance detected by the infrared sensor is less than a preset distance comprises:
when the infrared sensor detects that the distance is smaller than the preset distance, sending a color information acquisition request to the earphone box;
and receiving color information returned by the earphone box.
6. The method for detecting a wearing state of an earphone according to claim 1, wherein the step of acquiring color information of the earphone case when the distance detected by the infrared sensor is less than a preset distance comprises:
when receiving a color information updating instruction sent by the current earphone box, receiving actual color information returned from the current earphone box;
acquiring stored color information of the earphone box;
and when the actual color information of the current earphone box is not matched with the stored color information of the earphone box, updating the stored color information of the earphone box according to the actual color information.
7. An earphone, characterized in that the earphone comprises: a memory, a processor and a headset wearing state detection program stored in the memory and executable on the processor, the headset wearing state detection program, when executed by the processor, implementing the steps of the headset wearing state detection method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headset wearing state detection program, which when executed by a processor implements the steps of the headset wearing state detection method according to any one of claims 1 to 6.
CN201911424445.1A 2019-12-31 2019-12-31 Earphone wearing state detection method, earphone and readable storage medium Active CN111225320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911424445.1A CN111225320B (en) 2019-12-31 2019-12-31 Earphone wearing state detection method, earphone and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911424445.1A CN111225320B (en) 2019-12-31 2019-12-31 Earphone wearing state detection method, earphone and readable storage medium

Publications (2)

Publication Number Publication Date
CN111225320A true CN111225320A (en) 2020-06-02
CN111225320B CN111225320B (en) 2021-07-13

Family

ID=70830994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911424445.1A Active CN111225320B (en) 2019-12-31 2019-12-31 Earphone wearing state detection method, earphone and readable storage medium

Country Status (1)

Country Link
CN (1) CN111225320B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740458A (en) * 2020-06-19 2020-10-02 歌尔科技有限公司 Earphone box, charging detection method and device thereof, and storage medium
CN112235708A (en) * 2020-10-29 2021-01-15 深圳市安特信技术有限公司 Testing system and method for earphone production
CN112887891A (en) * 2021-01-11 2021-06-01 维沃移动通信有限公司 Use state detection method and device and electronic equipment
CN113993055A (en) * 2021-10-29 2022-01-28 歌尔科技有限公司 Method for detecting earphone in and out box, earphone box and readable storage medium
US20220417674A1 (en) * 2021-06-24 2022-12-29 Bose Corporation Acoustic earwax detection

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792308A (en) * 2016-12-06 2017-05-31 歌尔科技有限公司 The control method and earphone of earphone
EP3236639A1 (en) * 2016-04-20 2017-10-25 LG Electronics Inc. Portable sound equipment
US9949015B1 (en) * 2016-09-23 2018-04-17 Apple Inc. Wireless headset carrying case with wireless transmitter
CN108600886A (en) * 2018-04-20 2018-09-28 Oppo广东移动通信有限公司 UV detection method and Related product
CN109150294A (en) * 2018-08-14 2019-01-04 歌尔科技有限公司 A kind of means of communication, wireless headset and charging box
CN109257674A (en) * 2018-09-28 2019-01-22 歌尔科技有限公司 A kind of wear condition detection method, device and the wireless headset of wireless headset
CN109600694A (en) * 2019-01-16 2019-04-09 歌尔科技有限公司 A kind of matching method of wireless headset, device, terminal and charging box
CN110087161A (en) * 2019-04-23 2019-08-02 青岛恒茂电子有限公司 A kind of wearing state switching method, earphone and the storage medium of bluetooth headset
CN110213685A (en) * 2019-05-11 2019-09-06 出门问问信息科技有限公司 Earphone condition checkout gear, earphone condition detection method and earphone
CN209608812U (en) * 2019-03-07 2019-11-08 歌尔科技有限公司 A kind of earphone charging box

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3236639A1 (en) * 2016-04-20 2017-10-25 LG Electronics Inc. Portable sound equipment
US9949015B1 (en) * 2016-09-23 2018-04-17 Apple Inc. Wireless headset carrying case with wireless transmitter
CN106792308A (en) * 2016-12-06 2017-05-31 歌尔科技有限公司 The control method and earphone of earphone
CN108600886A (en) * 2018-04-20 2018-09-28 Oppo广东移动通信有限公司 UV detection method and Related product
CN109150294A (en) * 2018-08-14 2019-01-04 歌尔科技有限公司 A kind of means of communication, wireless headset and charging box
CN109257674A (en) * 2018-09-28 2019-01-22 歌尔科技有限公司 A kind of wear condition detection method, device and the wireless headset of wireless headset
CN109600694A (en) * 2019-01-16 2019-04-09 歌尔科技有限公司 A kind of matching method of wireless headset, device, terminal and charging box
CN209608812U (en) * 2019-03-07 2019-11-08 歌尔科技有限公司 A kind of earphone charging box
CN110087161A (en) * 2019-04-23 2019-08-02 青岛恒茂电子有限公司 A kind of wearing state switching method, earphone and the storage medium of bluetooth headset
CN110213685A (en) * 2019-05-11 2019-09-06 出门问问信息科技有限公司 Earphone condition checkout gear, earphone condition detection method and earphone

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740458A (en) * 2020-06-19 2020-10-02 歌尔科技有限公司 Earphone box, charging detection method and device thereof, and storage medium
CN111740458B (en) * 2020-06-19 2023-03-10 歌尔科技有限公司 Earphone box, charging detection method and device thereof, and storage medium
CN112235708A (en) * 2020-10-29 2021-01-15 深圳市安特信技术有限公司 Testing system and method for earphone production
CN112887891A (en) * 2021-01-11 2021-06-01 维沃移动通信有限公司 Use state detection method and device and electronic equipment
CN112887891B (en) * 2021-01-11 2022-12-30 维沃移动通信有限公司 Use state detection method and device and electronic equipment
US20220417674A1 (en) * 2021-06-24 2022-12-29 Bose Corporation Acoustic earwax detection
US11882405B2 (en) * 2021-06-24 2024-01-23 Bose Corporation Acoustic earwax detection
CN113993055A (en) * 2021-10-29 2022-01-28 歌尔科技有限公司 Method for detecting earphone in and out box, earphone box and readable storage medium

Also Published As

Publication number Publication date
CN111225320B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN111225320B (en) Earphone wearing state detection method, earphone and readable storage medium
KR102194751B1 (en) Audio class-compliant charging accessories for wireless headphones and headsets
KR20200117461A (en) Electronic device and method of communicating with an external device via a power supply line
CN106851530A (en) The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment
KR20200017302A (en) Apparatus and method for communicating by using bluetooth low energy
KR20200044505A (en) Electronic device suporting link sharing and method therefor
KR20200099735A (en) Electronic device for performing handover in wireless network environment and method thereof
CN110650408B (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN108347719B (en) Bluetooth device connection method, device, storage medium, mobile terminal and server
CN108513196B (en) Wireless earphone and pairing method thereof
WO2019019050A1 (en) Wireless communication pairing method, wireless receiving device, and wireless transmitting device and system
KR20210051932A (en) Apparatus and method for switching source device based on sharing of bluetooth connection information
KR20200144759A (en) Method for establishing bluetooth communication connection and electronic device thereof
CN110856086A (en) Method and device for controlling sound system and readable storage medium
KR20200106743A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
KR102456913B1 (en) Electronic device for performing device to device communication and method thereof
KR20210017030A (en) Electronic device for reducing power consumption and operating method thereof
CN116193413B (en) Bluetooth connection method, system, storage medium and device
CN116074679B (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN111970603A (en) Detection method, audio component and readable storage medium
CN111586521A (en) Auxiliary playing device, control method and control device thereof, and readable storage medium
KR20200106317A (en) Appartus and method for controlling application relocation in edge computing environment
CN109473096B (en) Intelligent voice equipment and control method thereof
CN110971762B (en) Communication frequency setting method, earphone, base and cordless communication device
KR20200127687A (en) Electronic device for establishing a communiation with external electronic device and controlling method thereof

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