CN111866691A - State detection method and device of wireless earphone and earphone - Google Patents
State detection method and device of wireless earphone and earphone Download PDFInfo
- Publication number
- CN111866691A CN111866691A CN202010523817.2A CN202010523817A CN111866691A CN 111866691 A CN111866691 A CN 111866691A CN 202010523817 A CN202010523817 A CN 202010523817A CN 111866691 A CN111866691 A CN 111866691A
- Authority
- CN
- China
- Prior art keywords
- wearing
- wireless
- state
- wireless headset
- earphone
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
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 embodiment of the invention provides a wireless earphone and a state detection method and device thereof. The wireless earphone is provided with a posture sensor and an infrared sensor, and the method comprises the following steps: acquiring the current attitude angle of the earphone through the attitude sensor; and after the earphone is determined to meet the wearing posture angle according to the current posture angle, triggering the infrared sensor to detect the wearing state of the earphone. According to the embodiment of the invention, the problem of false triggering of wireless earphone state switching can be effectively solved, and the overall power consumption of the wireless earphone can be reduced.
Description
Technical Field
The present invention relates to the field of earphone detection technologies, and in particular, to a method and an apparatus for detecting a state of a wireless earphone, and a computer-readable storage medium.
Background
With the continuous update of consumer electronics, wireless earphones are increasingly popular with users due to their advantages of portability, wireless performance, and the like. The wireless earphone integrates the functions of wearing detection, box-in detection and the like, and can be used by a user greatly and conveniently.
In a traditional scheme for detecting whether the earphone is worn or put in a box, the wearing state or the putting-in-box state of the earphone is usually detected through an infrared sensor, but the scheme has the problem of false triggering of earphone state switching. Therefore, there is a need for improvement in view of the above-mentioned drawbacks.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a new technical solution for detecting the state of a wireless headset.
According to a first aspect of the present invention, there is provided a state detection method for a wireless headset in which an attitude sensor and an infrared sensor are provided, the method comprising:
acquiring the current attitude angle of the wireless headset through the attitude sensor;
and after the wireless headset meets the wearing posture angle according to the current posture angle, triggering the infrared sensor to detect the wearing state of the wireless headset.
Optionally, the determining that the wireless headset satisfies the wearing posture angle according to the current posture angle includes:
judging whether the current attitude angle meets a wearing attitude angle threshold value;
if so, determining that the wireless earphone is in the wearing posture angle;
if not, repeating the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value until the judgment result is yes.
Optionally, before determining whether the current posture angle satisfies the wearing posture angle threshold, the method further includes:
judging whether the current attitude angle meets an initial attitude angle threshold value;
if not, executing the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value;
if yes, determining whether the wireless earphone is in a box entering state according to a box entering detection algorithm.
Optionally, the determining whether the wireless headset is in the in-box state according to the in-box detection algorithm includes:
if the wireless earphone is determined to be in the box entering state according to the box entering detection algorithm, controlling the wireless earphone to enter a sleep mode;
and if the wireless earphone is determined not to be in the in-box state according to the in-box detection algorithm, repeating the operation of judging whether the current attitude angle meets the initial attitude angle threshold value.
Optionally, after the triggering the infrared sensor to detect the wearing state of the wireless headset, the method further includes:
if the infrared sensor detects that the wireless earphone is in a wearing state, controlling the wireless earphone to enter a working state;
and if the infrared sensor detects that the wireless earphone is in a non-wearing state, controlling the wireless earphone to enter a pairing state.
Optionally, the initial attitude angle threshold ranges from-1 ° to 1 °; the wearing posture angle threshold value ranges from 89 degrees to 91 degrees.
According to a second aspect of the present invention, there is provided a state detection apparatus of a wireless headset, the apparatus comprising:
the acquisition module is used for acquiring the current attitude angle of the wireless headset through the attitude sensor;
and the triggering module is used for triggering the infrared sensor to detect the wearing state of the wireless earphone after the wireless earphone is determined to meet the wearing posture angle according to the current posture angle.
According to a third aspect of the present invention, there is provided an electronic device comprising the state detection apparatus of a wireless headset according to the second aspect of the present invention, or comprising:
a memory for storing executable commands;
a processor for executing the method of detecting a state of a wireless headset according to any of the first aspect of the invention under the control of the executable command.
According to a fourth aspect of the present invention, there is provided a wireless headset comprising: the device comprises an attitude sensor, an infrared sensor and a controller;
the attitude sensor is used for acquiring the current attitude angle of the wireless headset;
The controller is used for determining whether the wireless headset meets a wearing posture angle according to the current posture angle acquired by the posture sensor and sending a trigger signal to the infrared sensor when the wearing posture angle is met;
the infrared sensor is used for detecting the wearing state of the wireless earphone according to the trigger signal of the controller.
According to a fifth aspect of the present invention, there is provided a computer-readable storage medium storing executable instructions that, when executed by a processor, perform the method of detecting a state of a wireless headset according to any one of the first aspect of the present invention.
According to one embodiment of the invention, a posture sensor and an infrared sensor are arranged in a wireless headset, and the current posture angle of the headset is obtained through the posture sensor; and after the earphone is determined to meet the wearing posture angle according to the current posture angle, triggering the infrared sensor to detect the wearing state of the earphone. Therefore, when the current posture angle of the wireless earphone is determined to be the wearing posture angle, the infrared sensor is started to further determine the wearing state of the earphone, the problem of false triggering of state switching of the wireless earphone is effectively solved, and meanwhile the overall power consumption of the wireless earphone can be reduced.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram of a wireless headset to which the method according to the embodiment of the present invention can be applied;
fig. 2 is a schematic flow chart of a state detection method of a wireless headset of an embodiment of the present invention;
fig. 3 is a flowchart of an example of a state detection method of a wireless headset of an embodiment of the present invention;
fig. 4 is a functional block diagram of a state detection apparatus of a wireless headset according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a functional block diagram of a wireless headset according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 is a schematic diagram of a wireless headset to which the method according to the embodiment of the present invention can be applied.
As shown in fig. 1, the Wireless headset 1000 may be a TWS (True Wireless Stereo) headset, and the Wireless headset 1000 includes a first headset and a second headset. The wireless headset 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a speaker 1500, a microphone 1600, and the like. Processor 1100 may be a mobile version processor, among others. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 communicates with the charging box using, for example, a contact point connection (Pogo Pin). The communication device 1400 is capable of wired or wireless communication, for example, and the communication device 1400 may include a short-range communication device, for example, any device that performs short-range wireless communication based on a short-range wireless communication protocol such as a Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, or the like. A user can input/output voice information through the speaker 1500 and the microphone 1600.
In this embodiment, the wireless headset 1000 is further provided with an attitude sensor for acquiring an attitude angle of the wireless headset 1000, and the attitude sensor is, for example, a gyroscope; and an infrared sensor for collecting infrared signals.
The wireless headset 1000 shown in fig. 1 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the wireless headset 1000 is used for storing instructions for controlling the processor 1100 to operate so as to execute any one of the wireless headset state detection methods provided by the embodiment of the present invention.
It will be understood by those skilled in the art that although a plurality of devices are shown in fig. 1 for the wireless headset 1000, the present invention may relate only to some of the devices, for example, the wireless headset 1000 relates only to the processor 1100, the memory 1200, the attitude sensor, and the infrared sensor. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
In the above description, the skilled person can design the instructions according to the solutions provided in the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< method examples >
The present embodiment provides a method for detecting a state of a wireless headset, which may be performed by, for example, the wireless headset 1000 shown in fig. 1, and in one example, the wireless headset 1000 may be, for example, a True Wireless Stereo (TWS) bluetooth headset in which a gesture sensor and an infrared sensor are disposed.
As shown in fig. 2, the method includes steps 2100 to 2200 of:
In practical use, the attitude sensor may be, for example, a gyroscope for detecting an attitude angle of the TWS bluetooth headset.
It should be noted that, before the TWS bluetooth headset leaves the factory, the initial attitude angle of the gyroscope needs to be calibrated, for example, when the TWS bluetooth headset is put into the charging box, the initial attitude angle is defined as 0 °, and the initial attitude angle is used as a reference value of an initial position and is defined as an initial attitude angle threshold of the TWS bluetooth headset, and meanwhile, considering that the initial attitude of the TWS bluetooth headset may deviate during actual use, in this embodiment, the initial attitude angle threshold is set to 0 ° ± 1 °, that is, the range of the initial attitude angle threshold is-1 °.
Also, before the TWS bluetooth headset leaves the factory, the wearing attitude angle of the gyroscope needs to be calibrated, for example, when the user normally wears the TWS bluetooth headset, the wearing attitude angle is defined to be 90 °, and meanwhile, in consideration of the fact that the wearing attitude of the TWS bluetooth headset may deviate during actual use, in the present embodiment, the wearing attitude threshold value is set to 90 ° ± 1 °, that is, the wearing attitude threshold value ranges from 89 ° to 91 °.
Specifically, in this step, after the current attitude angle of the wireless headset is acquired through the attitude sensor, whether the current attitude angle meets the wearing attitude angle threshold value can be judged; if so, determining that the wireless earphone is in the wearing posture angle; if not, repeating the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value until the judgment result is yes.
Further, before determining whether the current posture angle satisfies the wearing posture angle threshold, it may be determined whether the wireless headset is located in the charging box. Namely, whether the current attitude angle meets an initial attitude angle threshold value is judged; if the current attitude angle does not meet the initial attitude angle threshold, executing the operation of judging whether the current attitude angle meets the wearing attitude angle threshold; and if the initial attitude angle threshold is met, determining whether the wireless earphone is in a box entering state according to a box entering detection algorithm.
If the wireless earphone is determined to be in the in-box state according to the in-box detection algorithm, controlling the wireless earphone to enter a sleep mode so as to save power consumption; and if the wireless earphone is determined not to be in the in-box state according to the in-box detection algorithm, repeating the operation of judging whether the current attitude angle meets the initial attitude angle threshold value.
Further, after the infrared sensor is triggered to detect the wearing state of the wireless headset, if the infrared sensor detects that the wireless headset is in the wearing state, the wireless headset is controlled to enter a working state; and if the infrared sensor detects that the wireless earphone is in a non-wearing state, the wireless earphone is in a box-out state and is not worn temporarily, and the wireless earphone is controlled to enter a pairing state.
< example >
Fig. 3 is a flowchart of an example of a state detection method of a wireless headset according to an embodiment of the present invention.
As shown in fig. 3, in this example, the attitude sensor disposed in the wireless headset is, for example, a gyroscope, and specifically, the method may include the following steps 3100 to 3800:
and 3100, acquiring the current attitude angle of the wireless headset through a gyroscope.
Wherein the initial attitude angle threshold ranges from-1 to 1.
And 3300, determining whether the wireless headset is in a box-in state according to a box-in detection algorithm. If the wireless headset is in the in-box state, executing step 3400; if the wireless headset is not in the in-box state, step 3200 is repeatedly performed.
And step 3400, controlling the wireless headset to enter a sleep mode.
In the sleep mode, only the gyroscope is in an operating state for all components in the wireless headset, so that power consumption is reduced.
Wherein the wearing posture angle threshold is in a range of 89-91 °.
And 3600, triggering the infrared sensor to detect whether the wireless headset is in a wearing state. If yes, go to step 3700; if not, go to step 3800.
3700, controlling the wireless headset to enter a working state.
The method for detecting the state of the wireless headset according to the present embodiment has been described above with reference to the accompanying drawings and specific examples. The method comprises the steps that an attitude sensor and an infrared sensor are arranged in a wireless earphone, and the current attitude angle of the earphone is obtained through the attitude sensor; and after the earphone is determined to meet the wearing posture angle according to the current posture angle, triggering the infrared sensor to detect the wearing state of the earphone. Therefore, when the current posture angle of the wireless earphone is determined to be the wearing posture angle, the infrared sensor is started to further determine the wearing state of the earphone, the problem of false triggering of state switching of the wireless earphone is effectively solved, and meanwhile the overall power consumption of the wireless earphone can be reduced.
< apparatus embodiment >
The present embodiment provides a state detection apparatus of a wireless headset, for example, the state detection apparatus 4000 of a wireless headset shown in fig. 4, for example, the state detection apparatus 4000 of a wireless headset may be applied to an electronic device 1000 shown in fig. 1.
As shown in fig. 4, the state detecting apparatus 4000 of the wireless headset may include: an acquisition module 4100 and a trigger module 4200.
The obtaining module 4100 is configured to obtain a current posture angle of the wireless headset through the posture sensor.
The triggering module 4200 is configured to trigger the infrared sensor to detect a wearing state of the wireless headset after it is determined that the wireless headset meets the wearing posture angle according to the current posture angle.
Specifically, the trigger module 4200 is configured to determine whether the current pose angle meets a wearing pose angle threshold; if so, determining that the wireless earphone is in the wearing posture angle; if not, repeating the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value until the judgment result is yes.
Before determining whether the current attitude angle meets the wearing attitude angle threshold, the triggering module 4200 may be further configured to determine whether the current attitude angle meets an initial attitude angle threshold; if not, executing the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value; if yes, determining whether the wireless earphone is in a box entering state according to a box entering detection algorithm.
When determining whether the wireless headset is in the in-box state according to the in-box detection algorithm, the trigger module 4200 may be specifically configured to: if the wireless earphone is determined to be in the box entering state according to the box entering detection algorithm, controlling the wireless earphone to enter a sleep mode; and if the wireless earphone is determined not to be in the in-box state according to the in-box detection algorithm, repeating the operation of judging whether the current attitude angle meets the initial attitude angle threshold value.
Further, the trigger module 4200 may be further configured to control the wireless headset to enter an operating state if the infrared sensor detects that the wireless headset is in a wearing state; and if the infrared sensor detects that the wireless earphone is in a non-wearing state, controlling the wireless earphone to enter a pairing state.
Wherein the initial attitude angle threshold ranges from-1 to 1 °; the wearing posture angle threshold value ranges from 89 degrees to 91 degrees.
The state detection apparatus of the wireless headset of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
< apparatus embodiment >
In this embodiment, an electronic device is further provided, where the electronic device includes the wireless headset state detection apparatus 4000 described in the embodiment of the apparatus of the present invention; alternatively, the electronic device is the electronic device 5000 shown in fig. 5, and includes:
a memory 5100 for storing executable commands.
The processor 5200 is configured to execute the methods described in any of the method embodiments of the present invention under the control of executable commands stored in the memory 5100.
The implementation subject in the electronic device according to the method embodiment performed may be a wireless headset.
< Wireless earphone >
In this embodiment, a wireless headset is also provided, where the wireless headset is a wireless headset 6000 shown in fig. 6, and the wireless headset includes: an attitude sensor 6100, an infrared sensor 6200, and a controller 6300.
Wherein, the gesture sensor 6100 is configured to obtain the current gesture angle of the wireless headset 6000.
The controller 6300 is configured to determine whether the wireless headset 6000 meets the wearing posture angle according to the current posture angle obtained by the posture sensor 6100, and send a trigger signal to the infrared sensor 6200 when the wearing posture angle is met.
The infrared sensor 6200 is configured to detect a wearing state of the wireless headset 6000 according to the trigger signal of the controller.
It should be noted that the controller may also be configured to execute the method described in any method embodiment of the present invention, and details are not described herein.
< computer-readable storage Medium embodiment >
The present embodiments provide a computer-readable storage medium having stored therein executable instructions that, when executed by a processor, perform the method described in any of the method embodiments of the present invention.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims (10)
1. A state detection method of a wireless earphone is characterized in that an attitude sensor and an infrared sensor are arranged in the wireless earphone, and the method comprises the following steps:
acquiring the current attitude angle of the wireless headset through the attitude sensor;
and after the wireless headset meets the wearing posture angle according to the current posture angle, triggering the infrared sensor to detect the wearing state of the wireless headset.
2. The method of claim 1, wherein the determining that the wireless headset satisfies a wearing pose angle according to the current pose angle comprises:
Judging whether the current attitude angle meets a wearing attitude angle threshold value;
if so, determining that the wireless earphone is in the wearing posture angle;
if not, repeating the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value until the judgment result is yes.
3. The method of claim 2, wherein prior to determining whether the current pose angle satisfies a wear pose angle threshold, the method further comprises:
judging whether the current attitude angle meets an initial attitude angle threshold value;
if not, executing the operation of judging whether the current attitude angle meets the wearing attitude angle threshold value;
if yes, determining whether the wireless earphone is in a box entering state according to a box entering detection algorithm.
4. The method of claim 3, wherein determining whether the wireless headset is in a pocketed state according to a pocketed detection algorithm comprises:
if the wireless earphone is determined to be in the box entering state according to the box entering detection algorithm, controlling the wireless earphone to enter a sleep mode;
and if the wireless earphone is determined not to be in the in-box state according to the in-box detection algorithm, repeating the operation of judging whether the current attitude angle meets the initial attitude angle threshold value.
5. The method of claim 3, wherein after the triggering the infrared sensor to detect the wearing status of the wireless headset, the method further comprises:
if the infrared sensor detects that the wireless earphone is in a wearing state, controlling the wireless earphone to enter a working state;
and if the infrared sensor detects that the wireless earphone is in a non-wearing state, controlling the wireless earphone to enter a pairing state.
6. The method of claim 3, wherein the initial attitude angle threshold ranges from-1 ° to 1 °; the wearing posture angle threshold value ranges from 89 degrees to 91 degrees.
7. A state detection apparatus of a wireless headset, the apparatus comprising:
the acquisition module is used for acquiring the current attitude angle of the wireless headset through the attitude sensor;
and the triggering module is used for triggering the infrared sensor to detect the wearing state of the wireless earphone after the wireless earphone is determined to meet the wearing posture angle according to the current posture angle.
8. An electronic device comprising the state detection apparatus of the wireless headset of claim 7, or comprising:
A memory for storing executable commands;
a processor for performing the method of wireless headset status detection of any of claims 1-6 under the control of the executable commands.
9. A wireless headset, comprising: the device comprises an attitude sensor, an infrared sensor and a controller;
the attitude sensor is used for acquiring the current attitude angle of the wireless headset;
the controller is used for determining whether the wireless headset meets a wearing posture angle according to the current posture angle acquired by the posture sensor and sending a trigger signal to the infrared sensor when the wearing posture angle is met;
the infrared sensor is used for detecting the wearing state of the wireless earphone according to the trigger signal of the controller.
10. A computer-readable storage medium storing executable instructions that, when executed by a processor, perform a method of state detection for a wireless headset according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010523817.2A CN111866691A (en) | 2020-06-10 | 2020-06-10 | State detection method and device of wireless earphone and earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010523817.2A CN111866691A (en) | 2020-06-10 | 2020-06-10 | State detection method and device of wireless earphone and earphone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111866691A true CN111866691A (en) | 2020-10-30 |
Family
ID=72986473
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010523817.2A Pending CN111866691A (en) | 2020-06-10 | 2020-06-10 | State detection method and device of wireless earphone and earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111866691A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112964175A (en) * | 2021-01-28 | 2021-06-15 | 歌尔科技有限公司 | Wearing detection module, wearing detection method and wearable device |
CN114915887A (en) * | 2021-02-09 | 2022-08-16 | Oppo广东移动通信有限公司 | Earphone state detection method, earphone, device and computer readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010004624A1 (en) * | 2008-07-09 | 2010-01-14 | パイオニア株式会社 | Earphone |
US20120027242A1 (en) * | 2010-07-29 | 2012-02-02 | Microsoft Corporation | Adjustable earphone and earphone set |
CN105451111A (en) * | 2015-12-10 | 2016-03-30 | 小米科技有限责任公司 | Earphone play control method and apparatus and terminal |
CN107809696A (en) * | 2017-11-30 | 2018-03-16 | 成都必盛科技有限公司 | It is a kind of to establish the wireless headset interacted with Earphone box |
CN108966087A (en) * | 2018-07-26 | 2018-12-07 | 歌尔科技有限公司 | A kind of wear condition detection method, device and the wireless headset of wireless headset |
CN109511034A (en) * | 2018-12-13 | 2019-03-22 | 歌尔股份有限公司 | A kind of wearing detection method, device and the earphone of earphone |
CN110970984A (en) * | 2019-12-31 | 2020-04-07 | 歌尔科技有限公司 | Earphone charging box and charging device |
CN111131954A (en) * | 2019-12-27 | 2020-05-08 | 歌尔科技有限公司 | Wireless earphone charging box, earphone in-out box detection method, system and storage medium |
-
2020
- 2020-06-10 CN CN202010523817.2A patent/CN111866691A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010004624A1 (en) * | 2008-07-09 | 2010-01-14 | パイオニア株式会社 | Earphone |
US20120027242A1 (en) * | 2010-07-29 | 2012-02-02 | Microsoft Corporation | Adjustable earphone and earphone set |
CN105451111A (en) * | 2015-12-10 | 2016-03-30 | 小米科技有限责任公司 | Earphone play control method and apparatus and terminal |
CN107809696A (en) * | 2017-11-30 | 2018-03-16 | 成都必盛科技有限公司 | It is a kind of to establish the wireless headset interacted with Earphone box |
CN108966087A (en) * | 2018-07-26 | 2018-12-07 | 歌尔科技有限公司 | A kind of wear condition detection method, device and the wireless headset of wireless headset |
CN109511034A (en) * | 2018-12-13 | 2019-03-22 | 歌尔股份有限公司 | A kind of wearing detection method, device and the earphone of earphone |
CN111131954A (en) * | 2019-12-27 | 2020-05-08 | 歌尔科技有限公司 | Wireless earphone charging box, earphone in-out box detection method, system and storage medium |
CN110970984A (en) * | 2019-12-31 | 2020-04-07 | 歌尔科技有限公司 | Earphone charging box and charging device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112964175A (en) * | 2021-01-28 | 2021-06-15 | 歌尔科技有限公司 | Wearing detection module, wearing detection method and wearable device |
CN114915887A (en) * | 2021-02-09 | 2022-08-16 | Oppo广东移动通信有限公司 | Earphone state detection method, earphone, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111148009B (en) | Earphone wearing state determining method and device and earphone | |
KR102644030B1 (en) | Wireless audio output devices | |
KR102005071B1 (en) | Change of companion communication device behavior based on wearable device state | |
CN106068640B (en) | It selectively redirects and notifies to wearable computing devices | |
CN109684249B (en) | Host device for facilitating positioning of an accessory using connection attributes of an electronic accessory connection | |
CN104832446A (en) | Method and device for controlling fan | |
CN110677768A (en) | Wireless earphone control method and device, wireless earphone and storage medium | |
CN112013949A (en) | Earphone wearing state determining method and device and earphone | |
CN110972058B (en) | Method and device for determining position of wireless communication device | |
KR20150060602A (en) | Electronic apparatus, battery protection method and device | |
JP2020042799A (en) | Ear set control method and system | |
US9516429B2 (en) | Hearing aid and method for controlling hearing aid | |
CN111831138B (en) | Signal identification method and device of wireless earphone and wireless earphone | |
CN111866691A (en) | State detection method and device of wireless earphone and earphone | |
CN110933551A (en) | Operation method and system of wireless earphone and wireless communication equipment | |
CN109714476B (en) | Data processing method and device, mobile terminal and storage medium | |
CN112119565A (en) | Power polarity detection for accessory mode change | |
US20220053256A1 (en) | Wireless earphone linking method and apparatus and wireless earphone | |
CN112258809B (en) | Loss detection method and device of wireless earphone and earphone | |
CN111857366B (en) | Method and device for determining double-click action of earphone and earphone | |
CN110784797A (en) | Wireless earphone control method and device, wireless earphone and storage medium | |
CN105446578A (en) | Information processing method, first electronic equipment and wearable electronic equipment | |
CN106686747B (en) | Method and device for controlling WeChat voice broadcast and wearable device | |
CN110933550A (en) | Control method and system of wireless earphone pair and wireless communication equipment | |
US20180165922A1 (en) | Alert processing |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201030 |
|
RJ01 | Rejection of invention patent application after publication |