CN113453122B - Wear detection method, device, equipment and computer readable storage medium - Google Patents

Wear detection method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113453122B
CN113453122B CN202110731680.4A CN202110731680A CN113453122B CN 113453122 B CN113453122 B CN 113453122B CN 202110731680 A CN202110731680 A CN 202110731680A CN 113453122 B CN113453122 B CN 113453122B
Authority
CN
China
Prior art keywords
capacitance value
capacitance
value
ear device
target
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
CN202110731680.4A
Other languages
Chinese (zh)
Other versions
CN113453122A (en
Inventor
张硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202110731680.4A priority Critical patent/CN113453122B/en
Publication of CN113453122A publication Critical patent/CN113453122A/en
Application granted granted Critical
Publication of CN113453122B publication Critical patent/CN113453122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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/1016Earpieces of the intra-aural type
    • 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/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)

Abstract

The invention discloses a wearing detection method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a pre-stored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor; determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value; acquiring a target capacitance value at the current moment, and determining the wearing state of the in-ear device at the current moment according to the size relation between the target capacitance value and the capacitance threshold. According to the invention, the wearing state of the in-ear device at the current moment is determined by comparing the target capacitance value acquired at the current moment with the predetermined capacitance threshold value, so that the accuracy of wearing state detection is improved.

Description

Wear detection method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of detection, and in particular, to a wear detection method, apparatus, device, and computer readable storage medium.
Background
The wearing detection of the earphone can adopt an infrared sensor and a capacitance sensor, and because the wearing detection based on the infrared sensor has higher false recognition rate, the wearing condition of the earphone is mainly detected by adopting the capacitance sensor at present, however, the existing technical scheme for detecting the wearing condition of the earphone by adopting the capacitance sensor only determines the wearing condition of the earphone by judging the data detected by the capacitance sensor, and the false detection caused by external factors (such as false touch, different auricle structures of each person and sweat on the surface of the earphone) is not considered, so the problem of low detection accuracy exists in the existing technical scheme for detecting the wearing condition of the earphone.
Disclosure of Invention
The invention mainly aims to provide a wearing detection method, a wearing detection device, wearing detection equipment and a computer readable storage medium, and aims to solve the technical problem that the detection accuracy is low in the existing technical scheme for detecting the wearing state of an earphone.
In addition, in order to achieve the above object, the present invention also provides a wear detection method applied to an in-ear device integrated with a capacitive sensor, the wear detection method comprising the steps of:
acquiring a pre-stored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor;
determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
acquiring a target capacitance value at the current moment, and determining the wearing state of the in-ear device at the current moment according to the size relation between the target capacitance value and the capacitance threshold.
Optionally, the step of determining the capacitance threshold according to the initial capacitance value and the experimental capacitance value includes:
acquiring an experimental capacitance value marked as a wearing state in the experimental capacitance values, and determining an upper limit capacitance value according to the experimental capacitance value marked as the wearing state;
and acquiring an experimental capacitance value marked as an unworn state in the experimental capacitance values, and determining a lower limit capacitance value according to the experimental capacitance value marked as the unworn state, wherein the lower limit capacitance value is larger than the initial capacitance value, and a defined capacitance threshold comprises the upper limit capacitance value and the lower limit capacitance value.
Optionally, after the step of obtaining the target capacitance value at the current time, the method includes:
if the target capacitance value is smaller than the initial capacitance value, the upper limit capacitance value and the lower limit capacitance value are adjusted;
and if the target capacitance value is greater than or equal to the initial capacitance value, executing the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value.
Optionally, the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value includes:
if the target capacitance value is larger than the upper limit capacitance value, determining that the in-ear device is in a wearing state at the current moment;
and if the target capacitance value is smaller than the lower limit capacitance value, determining that the in-ear device is in an unworn state at the current moment.
Optionally, the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value further includes:
if the target capacitance value belongs to a buffer interval, acquiring a capacitance trend before the current moment and a historical capacitance value between the target moment and the current moment, wherein the minimum value of the buffer interval is the lower limit capacitance value, the maximum value of the buffer interval is the upper limit capacitance value, and the target moment is before the current moment;
Defining that the buffer interval comprises a high buffer interval and a low buffer interval, if the capacitance trend is a descending trend and the historical capacitance value is in the high buffer interval, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
and if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value.
Optionally, after the step of obtaining the capacitance trend before the current time and the historical capacitance value between the target time and the current time if the target capacitance value belongs to the buffer interval, the method includes:
if the capacitance trend is rising trend and the historical capacitance value is in the high buffer zone, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
and if the capacitance trend is rising trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value.
Optionally, after the step of obtaining the target capacitance value at the current time and determining the wearing state of the in-ear device at the current time according to the magnitude relation between the target capacitance value and the capacitance threshold, the method includes:
when the in-ear device is changed from the wearing state to the unworn state, the audio output function of the in-ear device is adjusted from an on state to an off state.
In addition, in order to achieve the above object, the present invention also provides a wear detection device including:
the capacitance value acquisition module is used for acquiring a pre-stored experimental capacitance value and acquiring an initial capacitance value through the capacitance sensor;
the capacitance threshold determining module is used for determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
the wearing state determining module is used for obtaining a target capacitance value at the current moment and determining the wearing state of the in-ear device at the current moment according to the size relation between the target capacitance value and the capacitance threshold.
In addition, to achieve the above object, the present invention also provides a wear detection apparatus including: the wearing detection device comprises a memory, a processor and a wearing detection program which is stored in the memory and can run on the processor, wherein the wearing detection program realizes the steps of the wearing detection method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a wear detection program which, when executed by a processor, implements the steps of the wear detection method as described above.
Furthermore, to achieve the above object, the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the wear detection method as described above.
The wearing detection method, the wearing detection device, the wearing detection equipment and the computer readable storage medium provided by the embodiment of the invention are applied to an in-ear device integrated with a capacitance sensor, and an initial capacitance value and an experimental capacitance value are firstly obtained through the capacitance sensor, and then a capacitance threshold value is determined according to the initial capacitance value and the experimental capacitance value; finally, a target capacitance value at the current moment is obtained, and the wearing state of the in-ear device at the current moment is determined according to the size relation between the target capacitance value and the capacitance threshold.
Drawings
Fig. 1 is a schematic hardware structure of an implementation manner of a wear detection device provided in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the wearing detection method of the present invention;
FIG. 3 is a schematic diagram of a capacitive trend in a first embodiment of the wear detection method of the present invention;
FIG. 4 is a flowchart of a wearing detection method according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of functional modules of an embodiment of the wear detection device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The wearing detection terminal (called terminal, equipment or terminal equipment) in the embodiment of the invention can be equipment such as a Bluetooth earphone and the like which can be worn in the ear, and also can be equipment such as a personal computer and the like which has a program compiling function.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit ), a communication bus 1002, a memory 1003. Wherein the communication bus 1002 is used to enable connected communication between these components. The memory 1003 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1003 may alternatively be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a wear detection program may be included in a memory 1003 as a computer storage medium.
In the terminal shown in fig. 1, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and perform the following operations:
acquiring a pre-stored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor;
determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
acquiring a target capacitance value at the current moment, and determining the wearing state of the in-ear device at the current moment according to the size relation between the target capacitance value and the capacitance threshold.
Further, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and further perform the following operations:
acquiring an experimental capacitance value marked as a wearing state in the experimental capacitance values, and determining an upper limit capacitance value according to the experimental capacitance value marked as the wearing state;
and acquiring an experimental capacitance value marked as an unworn state in the experimental capacitance values, and determining a lower limit capacitance value according to the experimental capacitance value marked as the unworn state, wherein the lower limit capacitance value is larger than the initial capacitance value, and a defined capacitance threshold comprises the upper limit capacitance value and the lower limit capacitance value.
Further, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and further perform the following operations:
if the target capacitance value is smaller than the initial capacitance value, the upper limit capacitance value and the lower limit capacitance value are adjusted;
and if the target capacitance value is greater than or equal to the initial capacitance value, executing the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value.
Further, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and further perform the following operations:
If the target capacitance value is larger than the upper limit capacitance value, determining that the in-ear device is in a wearing state at the current moment;
and if the target capacitance value is smaller than the lower limit capacitance value, determining that the in-ear device is in an unworn state at the current moment.
Further, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and further perform the following operations:
if the target capacitance value belongs to a buffer interval, acquiring a capacitance trend before the current moment and a historical capacitance value between the target moment and the current moment, wherein the minimum value of the buffer interval is the lower limit capacitance value, the maximum value of the buffer interval is the upper limit capacitance value, and the target moment is before the current moment;
defining that the buffer interval comprises a high buffer interval and a low buffer interval, if the capacitance trend is a descending trend and the historical capacitance value is in the high buffer interval, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
and if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value.
Further, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and further perform the following operations:
if the capacitance trend is rising trend and the historical capacitance value is in the high buffer zone, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
and if the capacitance trend is rising trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value.
Further, the processor 1001 may be configured to call the wear detection program stored in the memory 1003, and further perform the following operations:
when the in-ear device is changed from the wearing state to the unworn state, the audio output function of the in-ear device is adjusted from an on state to an off state.
Based on the hardware structure of the device, the embodiment of the wearing detection method is provided.
At present, infrared detection and capacitive touch sensing detection are often adopted in earphone wearing detection, and because the infrared detection has very high false recognition rate, the detection of earphone wearing state by adopting capacitive touch sensing becomes the choice of more and more earphone wearing detection schemes, however, the wearing state of the earphone is often detected by only using a capacitive sensor in the prior art, and because of the difference in auricle structure of each person, the wearing of the earphone is loose or sweat exists on the surface of the earphone, so that the situations of false detection and the like occur in the earphone wearing process, and therefore, the problems of low detection recognition rate, insensitive detection and the like in the Bluetooth earphone wearing detection exist in the prior art, and meanwhile, the influence of the auricle structure difference on the wearing detection cannot be solved.
In view of the above problems, the present invention provides a wear detection method, referring to fig. 2, in a first embodiment of the wear detection method of the present invention, the wear detection method includes:
step S10, a pre-stored experimental capacitance value is obtained, and an initial capacitance value is obtained through the capacitance sensor;
it should be noted that, the wearing detection method provided by the present invention is suitable for in-ear devices integrated with a capacitance sensor, such as various in-ear headphones, the capacitance sensor provided by the present embodiment uses various types of capacitors as sensing elements, and converts the measured physical quantity or mechanical quantity into a capacitance variation, in short, the in-ear device integrated with a capacitance sensor contacts with an auricle to generate a physical quantity (force), the capacitance sensor can convert the physical quantity into a capacitance, the greater the contact force is, the greater the physical quantity is, the greater the capacitance converted from the physical quantity is, and because the sensitivity (adjustable sensitivity) of the capacitance sensor is greater, the in-ear device integrated with a capacitance sensor has a certain detected capacitance value, which is referred to as an initial capacitance value, and the in-ear device integrated with a capacitance sensor needs to undergo multiple experiments before being used by a user, so as to measure the capacitance value of the in-ear device integrated with a capacitance sensor when the in-ear device is used for simulating the capacitance value, the in-ear device is implemented to simulate the capacitance value.
Step S20, determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
it should be noted that, if the experimental capacitance value is a capacitance value generated when the in-ear device is used, according to the characteristics of the capacitance sensor (the larger the force of contact is, the larger the generated physical quantity is, the larger the capacitance converted from the physical quantity is), the experimental capacitance values can be determined to be larger than the initial capacitance value, while the capacitance threshold proposed by the invention includes an upper limit capacitance value and a lower limit capacitance value, wherein the lower limit capacitance value refers to the smallest capacitance value which can be determined to be in the in-ear device in use state, and the upper limit capacitance value can be the average value or the smallest value of the capacitance value with the upper limit capacitance value being 20% before the upper limit capacitance value, specifically, if the number of experiments performed by the in-ear device is 10000 times, the experimental capacitance values are correspondingly obtained, then the experimental capacitance values are sequenced from large to small, the average value of the experimental capacitance values which are arranged in front 2000 is calculated, the calculated average value of the experimental capacitance values can be used as the upper capacitance value, and the lower limit capacitance value is the average value, and the average value calculated average value is calculated as the upper capacitance value, and the average value is calculated as the average value of the upper capacitance value, and the average value is 3, and the average value is calculated as the average value is 3, and the average value is not equal to the upper limit capacitance value and the average value is 3, and the average value is larger than the average value and the average value is 3.
Further, in a possible embodiment, the determining the capacitance threshold according to the initial capacitance value and the experimental capacitance value in step S20 may include:
and S21, acquiring an experimental capacitance value marked as a wearing state in the experimental capacitance values, and determining an upper limit capacitance value according to the experimental capacitance value marked as the wearing state.
Step S22, obtaining an experimental capacitance value marked as an unworn state in the experimental capacitance values, and determining a lower limit capacitance value according to the experimental capacitance value marked as the unworn state, wherein the lower limit capacitance value is greater than the initial capacitance value, and the defined capacitance threshold includes the upper limit capacitance value and the lower limit capacitance value.
It should be noted that, the in-ear device according to the present invention may determine the running state of the in-ear device according to the wearing state thereof, for example, if the in-ear device is a bluetooth headset, the bluetooth headset is in a state of playing music when in the wearing state, the state of playing music will be paused after the bluetooth headset is changed from the wearing state to the non-wearing state.
The method comprises the steps of marking experimental capacitance values in advance, obtaining the experimental capacitance values marked in advance as wearing states in the experimental capacitance values when the wearing detection program provided by the invention runs, determining an upper limit capacitance value according to the experimental capacitance values marked in advance as wearing states in the experimental capacitance values, specifically, obtaining the average value or the minimum value of the experimental capacitance values marked in advance as wearing states, taking the obtained average value as the upper limit capacitance value, determining a lower limit capacitance value according to the experimental capacitance values marked in advance as unworn states in the experimental capacitance values, specifically, obtaining the average value or the minimum value of the experimental capacitance values marked in advance as unworn states, and taking the obtained average value as the lower limit capacitance value.
Step S30, obtaining a target capacitance value at the current moment, and determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold.
It should be noted that, after the upper limit capacitance value and the lower limit capacitance value are determined and preset in the production stage, the in-ear device may enter the factory stage, so as to be used by a user, a certain moment when the in-ear device is used by the user is determined to be the current moment in the embodiment, before the current moment, a moment when the in-ear device is used by the user also exists, a target capacitance value at the current moment is obtained through a capacitance sensor integrated in the in-ear device, then the obtained target capacitance value is compared with the upper limit capacitance value and the lower limit capacitance value determined and preset in the production stage of the in-ear device, and according to the size relation between the target capacitance value and a capacitance threshold value (the upper limit capacitance value and the lower limit capacitance value determined and preset in the production stage of the in-ear device), the wearing state of the in-ear device at the current moment is determined, specifically, if the target capacitance value is greater than the upper limit capacitance value determined and preset in the production stage of the in-ear device, the wearing state at the current moment is determined; if the target capacitance value is smaller than the lower limit capacitance value determined and preset in the production stage of the in-ear device, determining that the in-ear device is in a non-wearing state at the current moment.
Further, in a possible embodiment, after the step of obtaining the target capacitance value at the current time in the step S30, the method may include:
step a1, if the target capacitance value is smaller than the initial capacitance value, adjusting the upper limit capacitance value and the lower limit capacitance value;
and a2, if the target capacitance value is greater than or equal to the initial capacitance value, executing the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value.
It should be noted that, the initial capacitance value refers to a detected capacitance value existing when the in-ear device is not in the ear before the factory stage, the initial capacitance value is small, if the target capacitance value is smaller than the initial capacitance value, it indicates that the in-ear device has been used by the user for a long time, and the sensitivity of the capacitance sensor integrated in the in-ear device has changed, in this case, the upper limit capacitance value and the lower limit capacitance value of the in-ear device need to be adjusted, and the adjustment method may be to adjust the upper limit capacitance value and the lower limit capacitance value of the in-ear device by a certain value synchronously, and the purpose of adjusting the upper limit capacitance value and the lower limit capacitance value of the in-ear device is to adjust the sensitivity of the in-ear device for detecting the wearing state, so that the wearing state of the in-ear device can also be accurately detected; and if the target capacitance value is greater than or equal to the initial capacitance value, executing the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value.
Further, in a possible embodiment, the step of refining in step S30 further includes:
step a3, if the target capacitance value is larger than the upper limit capacitance value, determining that the in-ear device is in a wearing state at the current moment;
and a step a4 of determining that the in-ear device is in an unworn state at the current moment if the target capacitance value is smaller than the lower limit capacitance value.
It should be noted that, if the current time is the time when the user just starts to use the in-ear device, the upper limit capacitance value provided in this embodiment is the upper limit capacitance value determined by the in-ear device when leaving the factory, and in this case, if the target capacitance value detected at the current time is greater than the upper limit capacitance value determined by the in-ear device when leaving the factory, it is determined that the in-ear device is in the wearing state at the current time; if the detected target capacitance value at the current moment is smaller than the lower limit capacitance value determined by the in-ear device when leaving the factory, determining that the in-ear device is in a non-wearing state at the current moment.
Further, in a possible embodiment, the steps after the step S30 include:
step S40, when the in-ear device is changed from the wearing state to the unworn state, adjusting the audio output function of the in-ear device from the on state to the off state.
It should be noted that, the in-ear device provided by the invention can determine the running state of the in-ear device according to the wearing state of the in-ear device, for example, if the in-ear device is detected to be in the wearing state by the capacitive sensor integrated in the in-ear device, the in-ear device can start the audio output function, that is, the in-ear device can be connected with other devices, so that the devices connected with the in-ear device can output audio through the in-ear device; if the integrated capacitive sensor in the in-ear device detects that the in-ear device is in a non-wearing state, the in-ear device can close the audio output function, in this case, the equipment connected with the in-ear device cannot output audio through the in-ear device, specifically, if the in-ear device changes from the non-wearing state to the wearing state, the connection function of the in-ear device can be directly opened, connection with other equipment capable of outputting audio is established, conversely, if the in-ear device changes from the wearing state to the non-wearing state, and before the state change, connection is established between the in-ear device and other equipment capable of outputting audio, and after the state change, connection between the in-ear device and other equipment capable of outputting audio is disconnected.
The invention provides a wearing detection method, a device, equipment and a computer readable storage medium, wherein the wearing detection method is applied to an in-ear device integrated with a capacitance sensor, an initial capacitance value and an experimental capacitance value are firstly obtained through the capacitance sensor, and then a capacitance threshold value is determined according to the initial capacitance value and the experimental capacitance value; finally, a target capacitance value at the current moment is obtained, and the wearing state of the in-ear device at the current moment is determined according to the size relation between the target capacitance value and the capacitance threshold.
Further, referring to fig. 4, a second embodiment of the wearing detection method of the present invention is proposed on the basis of the above-described embodiment of the present invention.
This embodiment is a step of refining step S30 in the first embodiment, and is different from the above-described embodiment of the present invention in that:
step S31, if the target capacitance value belongs to a buffer interval, acquiring a capacitance trend before the current moment and a historical capacitance value between the target moment and the current moment, wherein the minimum value of the buffer interval is the lower limit capacitance value, the maximum value of the buffer interval is the upper limit capacitance value, and the target moment is before the current moment;
Step S32, defining that the buffer interval comprises a high buffer interval and a low buffer interval, if the capacitance trend is a descending trend and the historical capacitance value is in the high buffer interval, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
step S33, if the capacitance trend is a decreasing trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current time, and adjusting the lower limit capacitance value.
It should be noted that, the interval between the upper limit capacitance value and the lower limit capacitance value is the buffer interval in this embodiment, if the target capacitance value belongs to the buffer interval, the capacitance trend before the current time is obtained, the capacitance trend proposed in this embodiment includes an ascending trend, a descending trend and a smooth trend, it can be understood that, as shown in fig. 3, the capacitance value detected by the capacitance sensor is in the descending trend before the current time, and if the target capacitance value belongs to the buffer interval, the capacitance trend before the current time is obtained, and the historical capacitance value between the target time and the current time is obtained, according to fig. 3, the target time is before the current time, then the buffer interval is defined to include a high buffer interval and a low buffer interval, if the capacitance trend is the descending trend, and the historical capacitance value is in the high buffer interval, then the in the wearing state at the current time is determined, and the upper limit capacitance value is adjusted, which indicates that the capacitance value detected by the capacitance sensor is in the process before the target time, but the capacitance value is in the loose state is detected by the capacitance sensor, and the situation that the capacitance value is in the vicinity of the current time is still in the wearing state is not required to be reduced, and the situation that the capacitance sensor is in the wearing state is required to be in the state is still reduced.
If the capacitance trend is a falling trend and the historical capacitance value is in a low buffer zone, determining that the in-ear device is in an unworn state at the current moment and adjusting the lower limit capacitance value, wherein the situation indicates that the capacitance value detected by the capacitance sensor is reduced and falls to the vicinity of the lower limit capacitance value in the process from the time before the target moment of the in-ear device, which indicates that the in-ear device is taken out of the human ear, so that the capacitance value detected by the capacitance sensor is reduced, and the reason that the capacitance value detected by the capacitance sensor is not reduced below the lower limit capacitance value can be that oil stains or sweat stains exist on the surface of the earphone, so that the capacitance value detected by the capacitance sensor is increased.
Further, in a possible embodiment, the steps after the step S31 further include:
step S34, if the capacitance trend is rising trend and the historical capacitance value is in the high buffer zone, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
Step S35, if the capacitance trend is an ascending trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current time, and adjusting the lower limit capacitance value.
If the capacitance trend is rising trend and the historical capacitance value is in a high buffer zone, the in-ear device is determined to be in a wearing state at the current moment, and the upper limit capacitance value is adjusted, wherein the situation indicates that the capacitance value detected by the capacitance sensor rises and reaches the vicinity of the upper limit capacitance value in the process from the time before the target moment to the current moment, and the in-ear device is put into the human ear, so that the capacitance value detected by the capacitance sensor rises, but the in-ear device is not well attached to the auricle due to the difference of the internal structures of the human ear, so that the capacitance value detected by the capacitance sensor does not rise to be above the upper limit capacitance value, in this case, the in-ear device is determined to be in the wearing state, and the upper limit capacitance value is adjusted, so that the in-ear device put into the human ear is more convenient to be determined to be in the wearing state after the current moment.
If the capacitance trend is rising trend and the historical capacitance value is in a low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value, wherein the situation indicates that the capacitance value detected by the capacitance sensor rises and only reaches the vicinity of the lower limit capacitance value in the process from the time before the target moment to the current moment, which indicates that the in-ear device can be mistakenly touched, so that the capacitance value detected by the capacitance sensor rises, but the capacitance value detected by the capacitance sensor does not rise to the vicinity of the upper limit capacitance value, and in this case, determining that the in-ear device is in the unworn state, but adjusting the lower limit capacitance value is needed, so that the mistakenly touched in-ear device is more convenient to determine as the unworn state after the current moment.
According to the wearing detection method, the buffer interval comprises the high buffer interval and the low buffer interval, the trend of the capacitance value and the interval where the capacitance value is located are combined, and the wearing detection method corresponds to different scenes in reality, so that the wearing detection method has higher detection accuracy.
In addition, referring to fig. 5, an embodiment of the present invention further proposes a wear detection device, including:
the capacitance value acquisition module 10 is used for acquiring a pre-stored experimental capacitance value and acquiring an initial capacitance value through the capacitance sensor;
a capacitance threshold determining module 20, configured to determine a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
the wearing state determining module 30 is configured to obtain a target capacitance value at a current time, and determine a wearing state of the in-ear device at the current time according to a magnitude relation between the target capacitance value and the capacitance threshold.
Optionally, the capacitance threshold determining module 20 includes:
the upper limit capacitance value determining unit is used for obtaining an experimental capacitance value marked as a wearing state in the experimental capacitance values and determining an upper limit capacitance value according to the experimental capacitance value marked as the wearing state;
the lower limit capacitance value determining unit is used for obtaining an experimental capacitance value marked as an unworn state in the experimental capacitance values, and determining a lower limit capacitance value according to the experimental capacitance value marked as the unworn state, wherein the lower limit capacitance value is larger than the initial capacitance value, and the defined capacitance threshold comprises the upper limit capacitance value and the lower limit capacitance value.
Optionally, the wearing state determining module 30 includes:
a capacitance value adjustment unit configured to adjust the upper limit capacitance value and the lower limit capacitance value if the target capacitance value is smaller than the initial capacitance value;
and the execution unit is used for executing the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value if the target capacitance value is larger than or equal to the initial capacitance value.
Optionally, the wearing state determining module 30 includes:
the wearing state determining unit is used for determining that the in-ear device is in a wearing state at the current moment if the target capacitance value is larger than the upper limit capacitance value;
and the non-wearing state determining unit is used for determining that the in-ear device is in a non-wearing state at the current moment if the target capacitance value is smaller than the lower limit capacitance value.
Optionally, the wearing state determining module 30 further includes:
a historical capacitance value obtaining unit, configured to obtain a capacitance trend before the current time and a historical capacitance value between a target time and the current time if the target capacitance value belongs to a buffer interval, where a minimum value of the buffer interval is the lower limit capacitance value, a maximum value of the buffer interval is the upper limit capacitance value, and the target time is before the current time;
The upper limit capacitance value adjusting unit is used for defining that the buffer interval comprises a high buffer interval and a low buffer interval, and if the capacitance trend is a descending trend and the historical capacitance value is in the high buffer interval, determining that the in-ear device is in a wearing state at the current moment and adjusting the upper limit capacitance value;
and the lower limit capacitance value adjusting unit is used for determining that the in-ear device is in an unworn state at the current moment and adjusting the lower limit capacitance value if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer zone.
Optionally, the wearing state determining module 30 further includes:
the first adjusting unit is used for determining that the in-ear device is in a wearing state at the current moment and adjusting the upper limit capacitance value if the capacitance trend is an ascending trend and the historical capacitance value is in the high buffer zone;
and the second adjusting unit is used for determining that the in-ear device is in an unworn state at the current moment and adjusting the lower limit capacitance value if the capacitance trend is an ascending trend and the historical capacitance value is in the low buffer zone.
Optionally, the wear detection device further includes:
and the audio output function switch module is used for adjusting the audio output function of the in-ear device from an on state to an off state when the in-ear device is changed from the wearing state to the non-wearing state.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a wearing detection program, and the wearing detection program realizes the operations in the wearing detection method provided by the embodiment when being executed by a processor.
The methods performed by the program modules may refer to various embodiments of the methods according to the present invention, and are not described herein.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any actual such relationship or order between such entities/operations/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the units illustrated as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the wear detection method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A wear detection method, characterized in that the wear detection method is applied to an in-ear device integrated with a capacitive sensor, the wear detection method comprising the steps of:
acquiring a pre-stored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor;
determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value, wherein the capacitance threshold comprises an upper limit capacitance value and a lower limit capacitance value;
acquiring a target capacitance value at the current moment, and determining the wearing state of the in-ear device at the current moment according to the size relation between the target capacitance value and the capacitance threshold;
after the step of obtaining the target capacitance value at the current moment, the method comprises the following steps:
if the target capacitance value is smaller than the initial capacitance value, the upper limit capacitance value and the lower limit capacitance value are adjusted, wherein the initial capacitance value is a capacitance value detected when the in-ear device is not worn before a delivery stage;
The adjusting the upper limit capacitance value and the lower limit capacitance value includes:
and synchronously and downwards regulating the upper limit capacitance value and the lower limit capacitance value of the in-ear device by a certain value.
2. The wear detection method according to claim 1, wherein the step of determining a capacitance threshold value from the initial capacitance value and the experimental capacitance value includes:
acquiring an experimental capacitance value marked as a wearing state in the experimental capacitance values, and determining an upper limit capacitance value according to the experimental capacitance value marked as the wearing state;
and acquiring an experimental capacitance value marked as an unworn state in the experimental capacitance values, and determining a lower limit capacitance value according to the experimental capacitance value marked as the unworn state, wherein the lower limit capacitance value is larger than the initial capacitance value, and a defined capacitance threshold comprises the upper limit capacitance value and the lower limit capacitance value.
3. The wear detection method according to claim 2, wherein after the step of acquiring the target capacitance value at the current time, the method includes:
and if the target capacitance value is greater than or equal to the initial capacitance value, executing the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relation between the target capacitance value and the capacitance threshold value.
4. The wear detection method according to claim 2, wherein the step of determining the wear state of the in-ear device at the current time based on the magnitude relation between the target capacitance value and the capacitance threshold value includes:
if the target capacitance value is larger than the upper limit capacitance value, determining that the in-ear device is in a wearing state at the current moment;
and if the target capacitance value is smaller than the lower limit capacitance value, determining that the in-ear device is in an unworn state at the current moment.
5. The wear detection method according to claim 2, wherein the step of determining the wear state of the in-ear device at the current time according to the magnitude relation between the target capacitance value and the capacitance threshold value further includes:
if the target capacitance value belongs to a buffer interval, acquiring a capacitance trend before the current moment and a historical capacitance value between the target moment and the current moment, wherein the minimum value of the buffer interval is the lower limit capacitance value, the maximum value of the buffer interval is the upper limit capacitance value, and the target moment is before the current moment;
Defining that the buffer interval comprises a high buffer interval and a low buffer interval, if the capacitance trend is a descending trend and the historical capacitance value is in the high buffer interval, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
and if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value.
6. The wear detection method according to claim 5, wherein the step of acquiring the capacitance trend before the current time and the historical capacitance value between the target time and the current time if the target capacitance value belongs to a buffer zone includes:
if the capacitance trend is rising trend and the historical capacitance value is in the high buffer zone, determining that the in-ear device is in a wearing state at the current moment, and adjusting the upper limit capacitance value;
and if the capacitance trend is rising trend and the historical capacitance value is in the low buffer zone, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value.
7. The method for detecting wear of an in-ear device according to claim 6, wherein the step of obtaining the target capacitance value at the current time and determining the wearing state of the in-ear device at the current time according to the magnitude relation between the target capacitance value and the capacitance threshold value comprises:
when the in-ear device is changed from the wearing state to the unworn state, the audio output function of the in-ear device is adjusted from an on state to an off state.
8. A wear detection device, the wear detection device comprising:
the capacitance value acquisition module is used for acquiring a pre-stored experimental capacitance value and acquiring an initial capacitance value through the capacitance sensor;
the capacitance threshold determining module is used for determining a capacitance threshold according to the initial capacitance value and the experimental capacitance value, wherein the capacitance threshold comprises an upper limit capacitance value and a lower limit capacitance value;
the wearing state determining module is used for obtaining a target capacitance value at the current moment and determining the wearing state of the in-ear device at the current moment according to the size relation between the target capacitance value and the capacitance threshold;
the wearing state determining module is further configured to adjust the upper limit capacitance value and the lower limit capacitance value if the target capacitance value is smaller than the initial capacitance value, where the initial capacitance value is a capacitance value detected when the in-ear device is not worn before the factory stage;
The wearing state determining module is further configured to synchronously adjust the upper limit capacitance value and the lower limit capacitance value of the in-ear device by a certain value.
9. A wear detection device, the wear detection device comprising: a memory, a processor and a wear detection program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the wear detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a wear detection program is stored, which when executed by a processor implements the steps of the wear detection method according to any one of claims 1 to 7.
CN202110731680.4A 2021-06-29 2021-06-29 Wear detection method, device, equipment and computer readable storage medium Active CN113453122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110731680.4A CN113453122B (en) 2021-06-29 2021-06-29 Wear detection method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110731680.4A CN113453122B (en) 2021-06-29 2021-06-29 Wear detection method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113453122A CN113453122A (en) 2021-09-28
CN113453122B true CN113453122B (en) 2023-04-25

Family

ID=77814150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110731680.4A Active CN113453122B (en) 2021-06-29 2021-06-29 Wear detection method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113453122B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095823A (en) * 2021-11-15 2022-02-25 歌尔科技有限公司 Earphone leakage compensation method, device, equipment and storage medium
CN113825063B (en) * 2021-11-24 2022-03-15 珠海深圳清华大学研究院创新中心 Earphone voice recognition starting method and earphone voice recognition method
CN114071304B (en) * 2021-11-29 2023-04-25 歌尔科技有限公司 Active noise reduction method and device for earphone, earphone and computer readable storage medium
CN114153172B (en) * 2021-12-08 2022-09-13 中山东菱威力电器有限公司 Induction type flushing triggering control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145257A (en) * 2017-04-26 2017-09-08 努比亚技术有限公司 A kind of touch threshold method to set up, equipment and storage medium
CN107817537A (en) * 2017-10-27 2018-03-20 华米(北京)信息科技有限公司 Wear control method and device, the wearable device of detection
CN208924444U (en) * 2018-11-30 2019-05-31 潍坊歌尔电子有限公司 A kind of bluetooth headset

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108139790B (en) * 2016-09-20 2021-01-08 华为技术有限公司 Intelligent equipment wearing detection method and intelligent equipment
CN109328293B (en) * 2018-09-30 2021-11-23 深圳市汇顶科技股份有限公司 Capacitance detection module, method and electronic equipment
CN112468913B (en) * 2019-09-06 2022-07-19 华为技术有限公司 Wearing detection device
CN110737026A (en) * 2019-10-31 2020-01-31 歌尔科技有限公司 equipment wearing detection method, device, equipment and readable storage medium
CN111352534B (en) * 2020-03-13 2021-05-28 珠海格力电器股份有限公司 Touch key touch threshold correction method, wire controller, electric appliance and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145257A (en) * 2017-04-26 2017-09-08 努比亚技术有限公司 A kind of touch threshold method to set up, equipment and storage medium
CN107817537A (en) * 2017-10-27 2018-03-20 华米(北京)信息科技有限公司 Wear control method and device, the wearable device of detection
CN208924444U (en) * 2018-11-30 2019-05-31 潍坊歌尔电子有限公司 A kind of bluetooth headset

Also Published As

Publication number Publication date
CN113453122A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN113453122B (en) Wear detection method, device, equipment and computer readable storage medium
CN108550353B (en) Brightness adjusting method and related product
WO2019120027A1 (en) Screen brightness adjustment method and apparatus, storage medium and mobile terminal
CN109361985B (en) TWS earphone wearing detection method and system, electronic device and storage medium
CN111698601B (en) Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof
CN111083271B (en) Wearing detection method, system, equipment and computer readable storage medium
CN110139018B (en) Camera control module, camera movement control method and terminal
JPWO2014196188A1 (en) Method for adjusting physical quantity sensor and physical quantity sensor
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
WO2022065682A1 (en) Wearable device and control method therefor
CN105824424A (en) Music control method and terminal
CN107784298B (en) Identification method and device
CN114630242B (en) Earphone wearing detection method, earphone and storage medium
CN107508979B (en) Volume adjusting method, device, terminal and storage medium
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN105739776B (en) A kind of calibration method of pressure value, device and mobile terminal
JP2014048971A (en) Input device, method for controlling input device, control program, and computer readable recording medium recorded with control program
US20150193068A1 (en) Method and apparatus for sensing touch pressure of touch panel and touch sensing apparatus using the same
US9557848B2 (en) Handheld electronic apparatus and method for controlling the same
WO2019015556A1 (en) Terminal motion state analysis method, mobile terminal and readable storage medium
CN114630228A (en) Calibration method, device, equipment and medium for TWS earphone capacitive sensor
CN112804612B (en) Earphone control method, earphone control device, earphone and computer readable storage medium
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
JP2017192563A (en) Activity meter and exercise amount calculation device
CN106768311A (en) A kind of environment light detection method, device and terminal

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