CN108955758B - Wearable device wearing detection method and related product - Google Patents

Wearable device wearing detection method and related product Download PDF

Info

Publication number
CN108955758B
CN108955758B CN201810387109.3A CN201810387109A CN108955758B CN 108955758 B CN108955758 B CN 108955758B CN 201810387109 A CN201810387109 A CN 201810387109A CN 108955758 B CN108955758 B CN 108955758B
Authority
CN
China
Prior art keywords
frequency
resistor
triode
wearable device
earplug
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.)
Active
Application number
CN201810387109.3A
Other languages
Chinese (zh)
Other versions
CN108955758A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810387109.3A priority Critical patent/CN108955758B/en
Publication of CN108955758A publication Critical patent/CN108955758A/en
Application granted granted Critical
Publication of CN108955758B publication Critical patent/CN108955758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • 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/1041Mechanical or electronic switches, or control elements
    • 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

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

Abstract

The embodiment of the application discloses a wearing detection method of a wearable device and a related product, wherein the wearable device comprises: at least one earplug, the earplug comprising: the device comprises a first cavity, a second cavity, a first pressure sensor, a second pressure sensor and a processor; the first cavity is in wearable equipment is when wearing the state with the duct intercommunication, the second cavity and atmosphere intercommunication. The technical scheme that this application provided has the improvement and wears the degree of accuracy, improves user experience's advantage.

Description

Wearable device wearing detection method and related product
Technical Field
The application relates to the technical field of mobile terminal accessories, in particular to a wearable device wearing detection method and a related product.
Background
With the popularization and application of smart phones, users increasingly rely on smart phones, and wearable devices, such as wireless earphones, smart watches, smart bracelets and other devices, are also widely applied with the rise of smart phones. For wearable equipment, here take wireless headset as an example, wireless headset has the advantage of being connected with the smart mobile phone conveniently, and wearable equipment such as the wearing detection of earphone has important meaning, and for the earphone, whether wear is the important condition of its work, for example whether wear and can decide whether to open the audio frequency function of earphone, current earphone can't wear the detection accurately, leads to user experience low.
Disclosure of Invention
The embodiment of the application provides a wearable device and a wearing detection method thereof, so as to improve the wearing detection accuracy and improve the user experience.
In a first aspect, an embodiment of the present application provides a wearable device, where the wearable device includes: at least one earplug, the earplug comprising: the device comprises a first cavity, a second cavity, a first pressure sensor, a second pressure sensor and a processor; the first cavity is communicated with an ear canal when the wearable device is in a wearing state, and the second cavity is communicated with the atmosphere;
a first pressure sensor for detecting atmospheric pressure of the first cavity using a first frequency and outputting a first electrical signal;
a second pressure sensor for outputting a second electrical signal for said detecting atmospheric pressure of said second cavity using said first frequency;
the earplug further comprises: an amplification comparison circuit, the amplification comparison circuit comprising: a first amplifying circuit, a second amplifying circuit and a comparing circuit;
the input end of the first amplifying circuit is connected with the first electric signal, the output end of the first amplifying circuit is connected with one input end of the comparing circuit, the input end of the second amplifying circuit is connected with the second electric signal, the output end of the second amplifying circuit is connected with the other input end of the comparing circuit, and the output end of the comparing circuit is connected with one input/output pin of the processor;
the processor is configured to obtain a third electrical signal of the input/output pin, detect a second frequency of the third electrical signal in a first time interval, and determine whether the earplug is in a wearing state according to a relationship between the second frequency and the first frequency.
In a second aspect, a wearing detection method for a wearable device is provided, where the method is applied to a wearable device, and the wearable device includes: at least one earplug, the earplug comprising: the device comprises a first cavity, a second cavity, a first pressure sensor, a second pressure sensor and a processor; the first cavity is communicated with an ear canal when the wearable device is in a wearing state, and the second cavity is communicated with the atmosphere; a first pressure sensor for detecting atmospheric pressure of the first cavity using a first frequency and outputting a first electrical signal; a second pressure sensor for outputting a second electrical signal for said detecting atmospheric pressure of said second cavity using said first frequency; the earplug further comprises: an amplification comparison circuit, the amplification comparison circuit comprising: a first amplifying circuit, a second amplifying circuit and a comparing circuit; the input end of the first amplifying circuit is connected with the first electric signal, the output end of the first amplifying circuit is connected with one input end of the comparing circuit, the input end of the second amplifying circuit is connected with the second electric signal, the output end of the second amplifying circuit is connected with the other input end of the comparing circuit, and the output end of the comparing circuit is connected with one input/output pin of the processor; the method comprises the following steps:
acquiring a third electric signal of the input/output pin, detecting a second frequency of the third electric signal in a first time interval, and determining whether the earplug is in a wearing state according to a relation between the second frequency and the first frequency.
In a third aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided by the second aspect.
In a fourth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being operable to cause a computer to perform the method provided by the second aspect.
It can be seen that the wearable device provided by the application realizes that the wearing detection is based on the change of the air pressure, for wearable equipment, taking an earphone as an example, when the earphone is worn in the ear of a person, the space of the ear canal becomes a closed space, and through experimental verification, the pressure of the enclosed space is different from the pressure of the outside atmosphere, and the pressure of the enclosed space is almost constant in the wearing state, then here the frequencies between the first electrical signal and the second electrical signal, which we obtain by setting the same sampling frequency between the first sensor and the second sensor, are the same, and the magnitude relation of the first electric signal and the second electric signal is also fixed under the wearing state, so that if the frequency of the third electric signal at the output end of the comparison circuit is the same as the sampling frequency, the corresponding wearing state can be determined.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture of a wearable device and a wireless communication device.
Fig. 1a is a schematic structural diagram of a wireless headset provided in the present application.
Fig. 1b is another schematic structural diagram of a wireless headset provided in the present application.
Fig. 2 is a schematic structural diagram of a wearable device provided in the present application.
Fig. 2a is a waveform diagram of the present application in a wearing state.
FIG. 2b is a waveform diagram of the present application in a wearing state
Fig. 3 is a schematic diagram of an amplification comparison circuit according to the present application.
Fig. 4 is a schematic flow chart of a wearing detection method of a wearable device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present disclosure.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The wireless communication device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. Of course, in other applications, the wireless communication device may also be a network side device, such as a base station, an access point, and the like. For convenience of description, the above-mentioned devices are collectively referred to as wireless communication devices.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture for implementing a display control method according to an embodiment of the present disclosure, where the network architecture may include an electronic device and a wireless headset, and the wireless headset may be communicatively connected to the electronic device through a wireless network (e.g., bluetooth, infrared, or WiFi). It should be noted that the wireless headset may include one or more earplugs, and the embodiments of the present application are not limited thereto. In a specific implementation, the wireless headset may send a pairing request to the electronic device, and the electronic device may receive the pairing request sent by the wearable device, where the wearable device includes at least one independent component, and in response to the pairing request, detect a number of components included in the wearable device, and display information of the wearable device, such as an electric quantity, a pairing number, and the like, according to the number of components.
Fig. 1a is a structural diagram of a wireless headset according to an embodiment of the present application, and as shown in fig. 1a, two earplugs are completely separated from each other, but in practical applications, especially in sports-type wireless headsets, a connecting component may also be disposed between two earplugs, for example, as shown in fig. 1a, the two earplugs are connected by a connecting wire, and the present application is not limited to the connection manner between the two earplugs in the wireless headset. As shown in fig. 1b, the wireless headset includes: two earplugs, each earplug comprising: the earbud casing 121, the touch pad disposed on the surface of the earbud casing 121, and the speaker, the earbud may further include: the wireless transceiver 122, the processing chip (not shown in the figure) and the air pressure detecting circuit (not shown in the figure), the processing chip is electrically connected with the touch pad, the wireless transceiver and the air pressure detecting circuit, specifically, the electrical connection may be connected by a bus, and in practical applications, the electrical connection may also be connected by other connection methods.
Referring to fig. 1b, fig. 1b is a schematic structural diagram of a wearable device 100 disclosed in an embodiment of the present application, the wearable device 100 includes a storage and processing circuit 110, and a communication circuit 120 and an audio component 140 connected to the storage and processing circuit 110, wherein in some specific wearable devices 100, a display component 130 or a touch component may be further disposed.
The wearable device 100 can include control circuitry that can include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the wearable device 100, such as Voice Over Internet Protocol (VOIP) phone call applications, simultaneous interpretation functions, media playing applications, operating system functions, and the like. These software may be used to perform control operations such as camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the wearable device 100, to name a few, embodiments of the present application are not limited.
The wearable device 100 may also include input-output circuitry 150. The input-output circuit 150 can be used to cause the wearable device 100 to enable input and output of data, that is, to allow the wearable device 100 to receive data from an external device and also to allow the wearable device 100 to output data from the wearable device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 150 may also include a touch sensor array (i.e., display 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The wearable device 100 may also include an audio component 140. The audio component 140 can be used to provide audio input and output functionality for the wearable device 100. The audio components 140 in the wearable device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The wearable device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes or other status indicators, and the like.
A user can input commands through the input-output circuit 150 to control the operation of the wearable device 100, and can use the output data of the input-output circuit 150 to enable receiving state information and other outputs from the wearable device 100.
Referring to fig. 2, fig. 2 is a view of a wearable device according to an embodiment of the present application, where the wearable device includes: at least one earplug, the earplug comprising: the device comprises a first cavity 201, a second cavity 202, a first pressure sensor and a second pressure sensor; the first cavity 201 is communicated with the ear canal (i.e. communicated with the ear canal air) when the wearable device is in a wearing state, and the second cavity 202 is communicated with the atmosphere;
a first pressure sensor 203 for detecting atmospheric pressure of the first cavity 201 using a first frequency and outputting a first electrical signal;
a second pressure sensor 204 for detecting the atmospheric pressure of the second cavity 202 using the first frequency and outputting a second electrical signal;
the wearable device may further include: an amplification comparison circuit, the amplification comparison circuit comprising: an amplifying circuit and a comparing circuit, wherein,
the input end of the first amplifying circuit is connected with a first electric signal, the output end of the first amplifying circuit is connected with one input end of the comparing circuit, the input end of the second amplifying circuit is connected with a second electric signal, the output end of the second amplifying circuit is connected with the other input end of the comparing circuit, and the output end of the comparing circuit is connected with one input/output pin of the processor;
and the processor is used for acquiring the third electric signal of the input/output pin, detecting the second frequency of the third electric signal in the first time interval, and determining whether the earplug is in a wearing state according to the relation between the second frequency and the first frequency.
The wearable device provided by the application realizes that wearing detection is based on changes of air pressure, for the wearable device, taking an earphone as an example, when the earphone is worn in a human ear, a space of an ear canal becomes a closed space, and experiments verify that the air pressure of the closed space is different from the pressure of the external atmosphere, and the air pressure of the closed space is almost unchanged in a wearing state, so that the frequencies between a first electric signal and a second electric signal obtained by setting the same sampling frequency between a first sensor and a second sensor are the same, and the magnitude relation between the first electric signal and the second electric signal is also fixed in the wearing state, so that if the frequency of a third electric signal at the output end of a comparison circuit is the same as the sampling frequency, the wearing state can be determined.
The above determination of the wearing state is based on that the wearable device is relatively fixed in wearing state, i.e. needs to be detected through a set time length, which is highly accurate for detecting actions, because it is unlikely to have good continuity for an action, for example, during a wearing action of the headset, for various reasons, the pressure value of the first cavity 201 and the pressure value of the second cavity 202 may be large or small, which may result in that the first electrical signal sampled by the first pressure sensor may be larger or smaller than the second electrical signal, at this time, after being amplified by the amplifying circuit, because the magnitude relationship between the first electrical signal and the second electrical signal is unstable, the comparing circuit may output a high level or level, which may also change the second frequency of the third electrical signal, so that the value of the second frequency is not necessarily a constant value, and in addition, the second frequency is not completely the same as the first frequency, so that the in-ear misdetection caused by the accident of action is avoided, and the method has the advantages of accurate wearing detection and improvement of user experience.
Optionally, the processor is specifically configured to determine that the earplug is in a worn state if the second frequency is different from the first frequency, and determine that the earplug is in a non-worn state if the second frequency is the same as the first frequency.
Optionally, the processor is specifically configured to determine that the earplug is in the non-wearing state if the first frequency does not change at the set time but the second frequency changes.
Optionally, the processor is further configured to change the first frequency of the first pressure sensor and the first frequency of the second pressure sensor to a third frequency in a second time interval (a time interval after the first time interval), obtain a fourth frequency of the third signal in a second time interval after a delay time t, and determine that the wearable device is in the wearing state if the fourth frequency is the same as the third frequency.
According to the technical scheme, whether the situation of false detection occurs or not is determined by changing the sampling frequency, and the detection accuracy can be greatly improved by the scheme that the detection of the two frequencies is consistent.
Referring to fig. 2a, fig. 2a is a waveform diagram of a first electrical signal, a second electrical signal and a third electrical signal, as shown in fig. 2a, which is a schematic view of a wearing state of the wearable device.
Referring to fig. 2b, fig. 2b is a waveform diagram of the first electrical signal, the second electrical signal and the third electrical signal, as shown in fig. 2b, which is a schematic diagram of a non-wearing state of the wearable device.
Referring to fig. 3, fig. 3 provides an amplification comparison circuit, as shown in fig. 3, including: an amplifying circuit 301 and a comparing circuit 302, wherein the amplifying circuit 301 comprises: a first amplification circuit 3011 and a second amplification circuit 3012;
the first amplification circuit 3011 includes: the other end of the first resistor R1 is connected with the base of a first triode T1, the collector of the first triode T1 is connected with the other end of an eleventh resistor R11, one end of the eleventh resistor R11 is connected with a first voltage source VCC1, the two ends of the second resistor R2 are respectively connected with the collector and the base of the first triode T1, the emitter of the first triode T1 is grounded, one end of the third resistor R3 is connected with the collector of the first triode T1, the other end of the third resistor R3 is connected with the base of the second triode T2, the two ends of the fourth resistor R4 are respectively connected with the collector and the base of the second triode T2, one end of the fifth resistor R5 is connected with the collector of the second triode T2, the other end of the fifth resistor R5 is connected with the first voltage source VCC1, and the collector of the second triode T2 is connected with one input end of the comparator; a collector of the second triode T2 is an output terminal of the first amplifying circuit 3011, an emitter of the second triode T2 is grounded, and one end of the first resistor R1 is an input terminal of the first amplifying circuit 3011;
the second amplification circuit 3012 includes: the other end of the sixth resistor R6 is connected to the base of the third triode T3, the collector of the third triode T3 is connected to the other end of the twelfth resistor R12, one end of the twelfth resistor R12 is connected to the first voltage source VCC1, the two ends of the seventh resistor R7 are connected to the collector and the base of the third triode T3 respectively, the emitter of the third triode T3 is grounded, one end of the eighth resistor R8 is connected to the collector of the third triode T3, the other end of the eighth resistor R8 is connected to the base of the fourth triode T4, the two ends of the ninth resistor R9 are connected to the collector and the base of the fourth triode T4 respectively, one end of the tenth resistor R10 is connected to the collector of the fourth triode T4, the other end of the tenth resistor R10 is connected to the first voltage source VCC1, and the collector of the fourth triode T4 is connected to the other input end of the comparator; a collector of the fourth triode T4 is an output terminal of the second amplifying circuit 3012, and one end of the sixth resistor R6 is an input terminal of the second amplifying circuit 3012;
the electrical parameters of the first resistor R1 and the sixth resistor R6 are the same;
the electrical parameters of the second resistor R2 and the seventh resistor R7 are the same;
the electrical parameters of the third resistor R3 and the eighth resistor R8 are the same;
the electrical parameters of the fourth resistor R4 and the ninth resistor R9 are the same;
the electrical parameters of the fifth resistor R5 and the tenth resistor R10 are the same;
the electrical parameters of the eleventh resistor R11 and the twelfth resistor R12 are the same;
the electrical parameters of the first triode T1 and the third triode T3 are the same;
the electrical parameters of the second triode T2 and the fourth triode T4 are the same.
The output end of the comparator is connected with one input/output pin of the processor.
The same electrical parameters can make the amplification performances of the amplification circuits completely same, thus avoiding the change of voltage values caused by different amplification performances.
The method for detecting wearing of the wearable device is applied to the wearable device, and the wearable device comprises: at least one earplug, the earplug comprising: the device comprises a first cavity, a second cavity, a first pressure sensor, a second pressure sensor and a processor; the first cavity is communicated with an ear canal when the wearable device is in a wearing state, and the second cavity is communicated with the atmosphere; a first pressure sensor for detecting atmospheric pressure of the first cavity using a first frequency and outputting a first electrical signal; a second pressure sensor for outputting a second electrical signal for said detecting atmospheric pressure of said second cavity using said first frequency; the earplug further comprises: an amplification comparison circuit, the amplification comparison circuit comprising: a first amplifying circuit, a second amplifying circuit and a comparing circuit; the input end of the first amplifying circuit is connected with the first electric signal, the output end of the first amplifying circuit is connected with one input end of the comparing circuit, the input end of the second amplifying circuit is connected with the second electric signal, the output end of the second amplifying circuit is connected with the other input end of the comparing circuit, and the output end of the comparing circuit is connected with one input/output pin of the processor; referring to fig. 4, the method provided in fig. 4 includes the steps of:
step S401, acquiring a third electric signal of the input/output pin;
step S402, detecting a second frequency of the third electric signal in a first time interval, and determining whether the earplug is in a wearing state according to a relation between the second frequency and the first frequency.
The wearable device provided by the application realizes that wearing detection is based on changes of air pressure, for the wearable device, taking an earphone as an example, when the earphone is worn in a human ear, a space of an ear canal becomes a closed space, and experiments verify that the air pressure of the closed space is different from the pressure of the external atmosphere, and the air pressure of the closed space is almost unchanged in a wearing state, so that the frequencies between a first electric signal and a second electric signal obtained by setting the same sampling frequency between a first sensor and a second sensor are the same, and the magnitude relation between the first electric signal and the second electric signal is also fixed in the wearing state, so that if the frequency of a third electric signal at the output end of a comparison circuit is the same as the sampling frequency, the wearing state can be determined.
The above determination of the wearing state is based on that the wearable device is relatively fixed in wearing state, i.e. needs to be detected through a set time length, which is highly accurate for detecting actions, because it is unlikely to have good continuity for an action, for example, during a wearing action of the headset, for various reasons, the pressure value of the first cavity 201 and the pressure value of the second cavity 202 may be large or small, which may result in that the first electrical signal sampled by the first pressure sensor may be larger or smaller than the second electrical signal, at this time, after being amplified by the amplifying circuit, because the magnitude relationship between the first electrical signal and the second electrical signal is unstable, the comparing circuit may output a high level or level, which may also change the second frequency of the third electrical signal, so that the value of the second frequency is not necessarily a constant value, and in addition, the second frequency is not completely the same as the first frequency, so that the in-ear misdetection caused by the accident of action is avoided, and the method has the advantages of accurate wearing detection and improvement of user experience.
Optionally, the determining whether the earplug is in the wearing state according to the relationship between the second frequency and the first frequency may specifically include:
and if the second frequency is not the same as the first frequency, determining that the earplug is in a wearing state, and if the second frequency is the same as the first frequency, determining that the earplug is in a non-wearing state.
Optionally, the determining whether the earplug is in the wearing state according to the relationship between the second frequency and the first frequency may specifically include:
determining that the earplug is in a non-worn state if the first frequency does not change during the first time interval but the second frequency changes during the first time interval.
Optionally, the method may further include:
changing the first frequency of the first pressure sensor and the second frequency of the second pressure sensor into a third frequency in a second time interval, obtaining a fourth frequency of the third electrical signal in the second time interval after a delay time t, and determining that the wearable device is in a wearing state if the fourth frequency is the same as the third frequency.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The foregoing is an implementation of the embodiments of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the embodiments of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.

Claims (10)

1. A wearable device, the wearable device comprising: at least one earplug, wherein the earplug comprises: the device comprises a first cavity, a second cavity, a first pressure sensor, a second pressure sensor and a processor; the first cavity is communicated with an ear canal when the wearable device is in a wearing state, and the second cavity is communicated with the atmosphere;
a first pressure sensor for detecting atmospheric pressure of the first cavity using a first frequency and outputting a first electrical signal;
a second pressure sensor for outputting a second electrical signal for said detecting atmospheric pressure of said second cavity using said first frequency;
the earplug further comprises: an amplification comparison circuit, the amplification comparison circuit comprising: a first amplifying circuit, a second amplifying circuit and a comparing circuit;
the input end of the first amplifying circuit is connected with the first electric signal, the output end of the first amplifying circuit is connected with one input end of the comparing circuit, the input end of the second amplifying circuit is connected with the second electric signal, the output end of the second amplifying circuit is connected with the other input end of the comparing circuit, and the output end of the comparing circuit is connected with one input/output pin of the processor;
the processor is configured to obtain a third electrical signal of the input/output pin, detect a second frequency of the third electrical signal in a first time interval, and determine whether the earplug is in a wearing state according to a relationship between the second frequency and the first frequency.
2. The wearable device according to claim 1,
the processor is specifically configured to determine that the earplug is in a worn state if the second frequency is different from the first frequency, and determine that the earplug is in a non-worn state if the second frequency is the same as the first frequency.
3. The wearable device according to claim 1,
the processor is specifically configured to determine that the earplug is in a non-worn state if the first frequency does not change during the first time interval but the second frequency changes during the first time interval.
4. The wearable device according to claim 1,
the processor is further configured to change the first frequency of the first pressure sensor and the first frequency of the second pressure sensor to a third frequency in a second time interval, acquire a fourth frequency of the third electrical signal in the second time interval after a delay time t, and determine that the wearable device is in a wearing state if the fourth frequency is the same as the third frequency.
5. The wearable device according to any one of claims 1 to 4, wherein the amplification comparison circuit specifically comprises:
the first amplification circuit includes: the other end of the first resistor is connected with the base electrode of the first triode, the collector electrode of the first triode is connected with the other end of the eleventh resistor, one end of the eleventh resistor is connected with the first voltage source, the two ends of the second resistor are respectively connected with the collector electrode and the base electrode of the first triode, the emitter electrode of the first triode is grounded, one end of the third resistor is connected with the collector electrode of the first triode, the other end of the third resistor is connected with the base electrode of the second triode, the two ends of the fourth resistor are respectively connected with the collector electrode and the base electrode of the second triode, one end of the fifth resistor is connected with the collector electrode of the second triode, the other end of the fifth resistor is connected with the first voltage source, and the collector electrode of the second; the collector of the second triode is the output end of the first amplifying circuit, the emitter of the second triode is grounded, and one end of the first resistor is the input end of the first amplifying circuit;
the second amplifying circuit includes: the other end of the sixth resistor is connected with the base electrode of the third triode, the collector electrode of the third triode is connected with the other end of the twelfth resistor, one end of the twelfth resistor is connected with the first voltage source, the two ends of the seventh resistor are respectively connected with the collector electrode and the base electrode of the third triode, the emitter electrode of the third triode is grounded, one end of the eighth resistor is connected with the collector electrode of the third triode, the other end of the eighth resistor is connected with the base electrode of the fourth triode, the two ends of the ninth resistor are respectively connected with the collector electrode and the base electrode of the fourth triode, one end of the tenth resistor is connected with the collector electrode of the fourth triode, the other end of the tenth resistor is connected with the first voltage source, and the collector electrode of the fourth triode is; a collector of the fourth triode is an output end of the second amplifying circuit, and one end of the sixth resistor is an input end of the second amplifying circuit;
the first resistor and the sixth resistor have the same electrical parameters, the second resistor and the seventh resistor have the same electrical parameters, the third resistor and the eighth resistor have the same electrical parameters, the fourth resistor and the ninth resistor have the same electrical parameters, the fifth resistor and the tenth resistor have the same electrical parameters, the eleventh resistor and the twelfth resistor have the same electrical parameters, the first triode and the third triode have the same electrical parameters, and the second triode and the fourth triode have the same electrical parameters;
the output end of the comparator is connected with one input/output pin of the processor.
6. A wearing detection method of a wearable device, the method being applied to the wearable device, the wearable device comprising: at least one earplug, wherein the earplug comprises: the device comprises a first cavity, a second cavity, a first pressure sensor, a second pressure sensor and a processor; the first cavity is communicated with an ear canal when the wearable device is in a wearing state, and the second cavity is communicated with the atmosphere; a first pressure sensor for detecting atmospheric pressure of the first cavity using a first frequency and outputting a first electrical signal; a second pressure sensor for outputting a second electrical signal for said detecting atmospheric pressure of said second cavity using said first frequency; the earplug further comprises: an amplification comparison circuit, the amplification comparison circuit comprising: a first amplifying circuit, a second amplifying circuit and a comparing circuit; the input end of the first amplifying circuit is connected with the first electric signal, the output end of the first amplifying circuit is connected with one input end of the comparing circuit, the input end of the second amplifying circuit is connected with the second electric signal, the output end of the second amplifying circuit is connected with the other input end of the comparing circuit, and the output end of the comparing circuit is connected with one input/output pin of the processor; the method comprises the following steps:
acquiring a third electric signal of the input/output pin, detecting a second frequency of the third electric signal in a first time interval, and determining whether the earplug is in a wearing state according to a relation between the second frequency and the first frequency.
7. The method according to claim 6, wherein said determining whether the earplug is worn according to the relationship between the second frequency and the first frequency comprises:
and if the second frequency is not the same as the first frequency, determining that the earplug is in a wearing state, and if the second frequency is the same as the first frequency, determining that the earplug is in a non-wearing state.
8. The method according to claim 6, wherein said determining whether the earplug is worn according to the relationship between the second frequency and the first frequency comprises:
determining that the earplug is in a non-worn state if the first frequency does not change during the first time interval but the second frequency changes during the first time interval.
9. The method of claim 6, further comprising:
changing the first frequency of the first pressure sensor and the second frequency of the second pressure sensor into a third frequency in a second time interval, obtaining a fourth frequency of the third electrical signal in the second time interval after a delay time t, and determining that the wearable device is in a wearing state if the fourth frequency is the same as the third frequency.
10. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 6-9.
CN201810387109.3A 2018-04-26 2018-04-26 Wearable device wearing detection method and related product Active CN108955758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810387109.3A CN108955758B (en) 2018-04-26 2018-04-26 Wearable device wearing detection method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810387109.3A CN108955758B (en) 2018-04-26 2018-04-26 Wearable device wearing detection method and related product

Publications (2)

Publication Number Publication Date
CN108955758A CN108955758A (en) 2018-12-07
CN108955758B true CN108955758B (en) 2021-04-09

Family

ID=64498903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810387109.3A Active CN108955758B (en) 2018-04-26 2018-04-26 Wearable device wearing detection method and related product

Country Status (1)

Country Link
CN (1) CN108955758B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110114738B (en) * 2019-03-25 2020-12-01 深圳市汇顶科技股份有限公司 Wearable device, wearing detection method, and storage medium
CN110161575A (en) * 2019-05-22 2019-08-23 广州杰赛科技股份有限公司 A kind of intelligent wearable device disassembly status detection method, device and storage medium
CN112653958B (en) * 2019-10-11 2023-07-14 Oppo广东移动通信有限公司 Earphone box, earphone device and mobile terminal

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102610248A (en) * 2012-03-16 2012-07-25 深圳市福智软件技术有限公司 Method and device for reducing electric power consumption
CN102600012A (en) * 2012-03-16 2012-07-25 深圳市福智软件技术有限公司 Method and device for preventing ear fatigue
CN202736242U (en) * 2012-03-16 2013-02-13 深圳市福智软件技术有限公司 Device preventing ear fatigue
CN103257873A (en) * 2013-04-18 2013-08-21 北京小米科技有限责任公司 Method and system for controlling intelligent terminal device
CN104010241A (en) * 2013-02-21 2014-08-27 Lg电子株式会社 Bluetooth headset
CN104113794A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method, information processing system and headset
CN104185109A (en) * 2014-09-01 2014-12-03 联想(北京)有限公司 Control system, earphone, electronic device and control method
CN104808781A (en) * 2014-01-24 2015-07-29 北京奇虎科技有限公司 Device and method for determining validity of operation of head-wearing intelligent device
CN105744325A (en) * 2015-11-04 2016-07-06 广东欧珀移动通信有限公司 Audio/video play control method and audio/video play control device
CN106293601A (en) * 2016-08-09 2017-01-04 乐视控股(北京)有限公司 A kind of audio frequency playing method and device
CN106454588A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Earphone and earphone channel switching method
CN106535020A (en) * 2016-12-02 2017-03-22 歌尔科技有限公司 Neck-worn in-ear Bluetooth headset and in-ear detection method thereof
CN206136198U (en) * 2016-08-25 2017-04-26 歌尔股份有限公司 Earphone
CN106851459A (en) * 2017-03-22 2017-06-13 广州三星通信技术研究有限公司 In-Ear Headphones
CN107106044A (en) * 2017-03-30 2017-08-29 深圳市汇顶科技股份有限公司 Wearable device, wear quality determining method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10911860B2 (en) * 2016-03-23 2021-02-02 Intel Corporation Automated and body driven headset audio control

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102600012A (en) * 2012-03-16 2012-07-25 深圳市福智软件技术有限公司 Method and device for preventing ear fatigue
CN202736242U (en) * 2012-03-16 2013-02-13 深圳市福智软件技术有限公司 Device preventing ear fatigue
CN102610248A (en) * 2012-03-16 2012-07-25 深圳市福智软件技术有限公司 Method and device for reducing electric power consumption
CN104010241A (en) * 2013-02-21 2014-08-27 Lg电子株式会社 Bluetooth headset
CN103257873A (en) * 2013-04-18 2013-08-21 北京小米科技有限责任公司 Method and system for controlling intelligent terminal device
CN104113794A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method, information processing system and headset
CN104808781A (en) * 2014-01-24 2015-07-29 北京奇虎科技有限公司 Device and method for determining validity of operation of head-wearing intelligent device
CN104185109A (en) * 2014-09-01 2014-12-03 联想(北京)有限公司 Control system, earphone, electronic device and control method
CN105744325A (en) * 2015-11-04 2016-07-06 广东欧珀移动通信有限公司 Audio/video play control method and audio/video play control device
CN106293601A (en) * 2016-08-09 2017-01-04 乐视控股(北京)有限公司 A kind of audio frequency playing method and device
CN206136198U (en) * 2016-08-25 2017-04-26 歌尔股份有限公司 Earphone
CN106454588A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Earphone and earphone channel switching method
CN106535020A (en) * 2016-12-02 2017-03-22 歌尔科技有限公司 Neck-worn in-ear Bluetooth headset and in-ear detection method thereof
CN106851459A (en) * 2017-03-22 2017-06-13 广州三星通信技术研究有限公司 In-Ear Headphones
CN107106044A (en) * 2017-03-30 2017-08-29 深圳市汇顶科技股份有限公司 Wearable device, wear quality determining method and device

Also Published As

Publication number Publication date
CN108955758A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN109040887B (en) Master-slave earphone switching control method and related product
CN109068206B (en) Master-slave earphone switching control method and related product
CN108955759B (en) Wearable device wearing detection method and related product
CN108886653B (en) Earphone sound channel control method, related equipment and system
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN109150221B (en) Master-slave switching method for wearable equipment and related product
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
CN108955758B (en) Wearable device wearing detection method and related product
EP2299669B1 (en) Electronic device and system and method thereof for identifying electronic accessory and controlling electronic device
CN108897516B (en) Wearable device volume adjustment method and related product
CN113810809B (en) Sensor module and earphone
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN109067965B (en) Translation method, translation device, wearable device and storage medium
WO2022033176A1 (en) Audio play control method and apparatus, and electronic device and storage medium
CN106453838B (en) Volume adjusting method and device
WO2020007174A1 (en) Communication connection establishment method and related device
CN108769401B (en) Signal detection method and related product
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN109121034B (en) Master-slave switching method based on volume and related product
CN108668018B (en) Mobile terminal, volume control method and related product
CN108649671B (en) Wireless charging circuit and wearable equipment
CN108680181B (en) Wireless earphone, step counting method based on earphone detection and related product
CN109417667B (en) Audio control method, circuit, graphical user interface, electronic equipment and storage medium
CN109040425B (en) Information processing method and related product
CN108958481B (en) Equipment control method and related product

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