CN113453122A - Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium - Google Patents

Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium Download PDF

Info

Publication number
CN113453122A
CN113453122A CN202110731680.4A CN202110731680A CN113453122A CN 113453122 A CN113453122 A CN 113453122A CN 202110731680 A CN202110731680 A CN 202110731680A CN 113453122 A CN113453122 A CN 113453122A
Authority
CN
China
Prior art keywords
capacitance value
capacitance
value
target
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110731680.4A
Other languages
Chinese (zh)
Other versions
CN113453122B (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

Abstract

The invention discloses a wearing detection method, a wearing detection device, wearing detection equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a prestored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor; determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value; and 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 magnitude relation between the target capacitance value and the capacitance threshold value. 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 wearing state detection accuracy is improved.

Description

Wearing detection method, wearing detection device, wearing detection 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, device, apparatus, and computer-readable storage medium.
Background
The wearing detection of the earphone can adopt an infrared sensor and a capacitance sensor, because the wearing detection based on the infrared sensor has higher error recognition rate, the wearing condition of the earphone is mainly detected by the capacitance sensor at present, however, the wearing condition of the earphone is determined only by judging the data detected by the capacitance sensor in the existing technical scheme for detecting the wearing condition of the earphone by adopting the capacitance sensor, and the occurrence of error detection caused by external factors (such as error 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 rate 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 existing technical scheme for detecting the wearing state of an earphone is low in detection accuracy.
In addition, in order to achieve the above object, the present invention also provides a wearing detection method applied to an in-ear device integrated with a capacitive sensor, the wearing detection method including the steps of:
acquiring a prestored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor;
determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value;
and 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 magnitude relation between the target capacitance value and the capacitance threshold value.
Optionally, the step of determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value includes:
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;
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 a defined capacitance threshold value 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, adjusting the upper limit capacitance value and the lower limit capacitance value;
and if the target capacitance value is larger 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 time according to the magnitude relationship 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 not worn at the current moment.
Optionally, the step of determining the wearing state of the in-ear device at the current time according to the magnitude relationship between the target capacitance value and the capacitance threshold value further includes:
if the target capacitance value belongs to a buffer interval, acquiring 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 the buffer interval to comprise 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 if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn 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 between the target time and the current time if the target capacitance belongs to the buffer interval, the method includes:
if the capacitance trend is a rising 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 rising trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn 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 relationship between the target capacitance value and the capacitance threshold, the method includes:
and when the in-ear device is changed from the wearing state to the non-wearing state, adjusting the audio output function of the in-ear device from an on state to an off state.
Further, 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 prestored experimental capacitance value and acquiring an initial capacitance value through the capacitance sensor;
a capacitance threshold determination module, configured to determine a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
and the wearing state determining module is used for 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 magnitude relation between the target capacitance value and the capacitance threshold value.
Further, to achieve the above object, the present invention also provides a wearing detection apparatus including: a memory, a processor and a wear detection program stored on the memory and executable on the processor, the wear detection program when executed by the processor implementing the steps of the wear detection method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having a wear detection program stored thereon, 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 also provides a computer program product comprising a computer program which, when being executed by a processor, realizes the steps of the wear detection method as described above.
The wearing detection method is applied to an in-ear device integrated with a capacitance sensor, and comprises the steps of firstly obtaining an initial capacitance value and an experimental capacitance value through the capacitance sensor, and then determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value; and finally, 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 value.
Drawings
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a wear detection device according to 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 capacitance trend in a first embodiment of the wearing detection method of the present invention;
FIG. 4 is a schematic flow chart of a wearing detection method according to a second embodiment of the present invention;
fig. 5 is a schematic functional block diagram of an embodiment of the wear detection device of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The wearing detection terminal (also called terminal, equipment or terminal equipment) of the embodiment of the invention can be equipment which can be worn into ears, such as a Bluetooth headset, and the like, and can also be equipment with a program compiling function, such as a personal computer, and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, and a memory 1003. Wherein a communication bus 1002 is used to enable connective communication between these components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a wear detection program may be included in the memory 1003 as a kind of 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 prestored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor;
determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value;
and 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 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:
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;
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 a defined capacitance threshold value 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, adjusting the upper limit capacitance value and the lower limit capacitance value;
and if the target capacitance value is larger 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 not worn 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 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 the buffer interval to comprise 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 if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn 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 a rising 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 rising trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn 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:
and when the in-ear device is changed from the wearing state to the non-wearing state, adjusting the audio output function of the in-ear device from an on state to an off state.
Based on the hardware structure of the equipment, the embodiment of the wearing detection method is provided.
Present earphone is worn to detect and is adopted infrared detection and capacitive touch sensing to detect often, because infrared detection has very high error recognition rate, so adopt capacitive touch sensing to detect the earphone and wear the state and become the selection in order more and more earphones to wear detection scheme, however, prior art often only uses capacitive sensor to detect the wearing state of earphone, because everyone's auricle difference in structure, owing to wear not hard up or earphone surface has the sweat, lead to the earphone to wear the existence that the condition such as appearance error detection appears, therefore, prior art has bluetooth earphone to wear to detect the recognition rate low, detect insensitive scheduling problem, can't solve the influence of auricle difference to wearing the detection simultaneously.
In view of the above problem, the present invention provides a wear detection method, and with reference to fig. 2, in a first embodiment of the wear detection method of the present invention, the wear detection method includes:
step S10, obtaining a prestored experimental capacitance value, and obtaining an initial capacitance value through the capacitance sensor;
it should be noted that the wearing detection method proposed by the present invention is suitable for in-ear devices integrated with a capacitive sensor, such as various in-ear earphones, the capacitive sensor proposed by this embodiment uses various capacitors as sensing elements, and converts a physical quantity or a mechanical quantity to be measured into a conversion device of a capacitance variation, in short, the in-ear device integrated with the capacitive sensor contacts with the auricle when entering the ear to generate a physical quantity (force), the capacitive sensor can convert the physical quantity into a capacitance, the greater the force of the contact, the greater the generated physical quantity, the greater the capacitance converted from the physical quantity, the greater the sensitivity of the capacitive sensor (which can be adjusted), the in-ear device integrated with the capacitive sensor has a certain detected capacitance value when the in-ear device is not in-ear, which is referred to as an initial capacitance value in this embodiment, the in-ear device integrated with the capacitive sensor needs to be subjected to a plurality of experiments before being used by a user to measure the capacitance value detected by the in-ear device integrated with the capacitive sensor in the simulation use, and the capacitance value measured in the simulation experiment is collectively referred to as an experiment capacitance value in the embodiment.
Step S20, determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value;
it should be noted that, if the experimental capacitance is a capacitance generated by the simulated in-ear device during use, it may be determined that the experimental capacitances are both larger than the initial capacitance according to characteristics of the capacitive sensor (the larger the contact force is, the larger the generated physical quantity is, and the larger the capacitance converted from the physical quantity is), and the capacitance threshold proposed by the present invention includes an upper limit capacitance and a lower limit capacitance, where the lower limit capacitance refers to a minimum capacitance that can determine that the in-ear device is in a use state, and the upper limit capacitance may be an average value or a minimum value of capacitances ranked 20% of the experimental capacitances in numerical magnitude, specifically, if the number of times of the experiment that the in-ear device is simulated for use is 10000 times, 10000 experimental capacitances are obtained correspondingly, and then the experimental capacitances are sorted from large to small, an experimental capacitance listed in the top 2000 is selected from the sorted, and an average value of the experimental capacitances listed in the top 2000 is obtained, the obtained average value may be used as the upper limit capacitance value, and similarly, the calculation method of the lower limit capacitance value is similar to the upper limit capacitance value, and the lower limit capacitance value may be the average value or the minimum value of the capacitance values 20% after the numerical rank in the experimental capacitance value, so as to determine the lower limit capacitance value, as shown in fig. 3, the lower limit capacitance value is greater than the initial capacitance value, and the upper limit capacitance value is greater than the lower limit capacitance value, where fig. 3 is only for explaining the magnitude relationship among various capacitance values, and the positions of various capacitance values in fig. 3 do not represent a specific numerical proportion.
Further, in a possible embodiment, the step S20 of determining the capacitance threshold according to the initial capacitance value and the experimental capacitance value may include:
and step S21, acquiring the experimental capacitance value marked as the 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 an unworn state, where the lower-limit capacitance value is greater than the initial capacitance value, and a capacitance threshold is defined to include the upper-limit capacitance value and the lower-limit capacitance value.
It should be noted that, the in-ear device proposed by the present invention may determine the operation state of the in-ear device according to the wearing state of the in-ear device, for example, if the in-ear device is a bluetooth headset, and the bluetooth headset is in a music playing state when the bluetooth headset is in the wearing state, the music playing state will be suspended after the bluetooth headset changes from the wearing state to the non-wearing state, because the in-ear device proposed by the present invention has a function of determining the operation state according to the wearing state, the wearing detection method proposed by the present invention needs to go through many experiments to obtain many experimental capacitance values for determining the wearing state of the in-ear device, according to the above contents, the experimental capacitance values are sorted from large to small, then the experimental capacitance values arranged in the first 20% are selected from the experimental capacitance values, and the experimental capacitance values arranged in the first 20% are pre-labeled as the wearing state, which indicates that the possibility that the experimental capacitance values arranged in the first 20% correspond to the wearing state is very large, similarly, the experimental capacitance values are sorted from large to small, then the experimental capacitance values arranged in the last 20% are selected from the sorted experimental capacitance values, and the experimental capacitance values arranged in the last 20% are marked as the non-wearing state in advance, which indicates that the possibility that the experimental capacitance values arranged in the last 20% correspond to the non-wearing state is very high.
The method includes the steps of marking experimental capacitance values in advance, obtaining the experimental capacitance values marked as a wearing state in the experimental capacitance values in advance when a wearing detection program provided by the invention runs, determining an upper limit capacitance value according to the experimental capacitance values marked as the wearing state in the experimental capacitance values in advance, specifically, solving the mean value or the minimum value of the experimental capacitance values marked as the wearing state in advance, taking the solved mean value as the upper limit capacitance value, determining a lower limit capacitance value according to the experimental capacitance values marked as an unworn state in the experimental capacitance values in advance, specifically, solving the mean value or the minimum value of the experimental capacitance values marked as the unworn state in advance, and taking the solved mean value as the lower limit capacitance value.
Step S30, obtaining a target capacitance value at the current time, and determining a wearing state of the in-ear device at the current time according to a magnitude relationship between the target capacitance value and the capacitance threshold value.
It should be noted that, after determining and presetting an upper limit capacitance value and a lower limit capacitance value in a production stage, the in-ear device may enter a factory stage, so as to be used by a user, a certain time when the in-ear device is used by the user is determined to be a current time in this embodiment, a time when the in-ear device is used by the user also exists before the current time, a target capacitance value at the current time is obtained by 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 by the in-ear device, and according to a magnitude relationship 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 by the in-ear device), a wearing state of the in the current time of the in-ear device is determined, specifically, if the target capacitance value is greater than the upper limit capacitance value determined and preset in the production stage by the in-ear device, 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 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, the step of obtaining the target capacitance value at the current time in step S30 may be followed by:
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;
step 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 relationship between the target capacitance value and the capacitance threshold value.
It should be noted that the initial capacitance value is a detected capacitance value existing before the in-ear device goes out of the factory, and the initial capacitance value is very small, and 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 capacitive 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 that the upper limit capacitance value and the lower limit capacitance value of the in-ear device are synchronously adjusted down by a certain value, 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 be accurately detected; and if the target capacitance value is larger than or equal to the initial capacitance value, executing a step of 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 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;
step a4, if the target capacitance value is smaller than the lower limit capacitance value, determining that the in-ear device is not worn at the current moment.
In this case, if the target capacitance value detected at the current time is greater than the upper-limit capacitance value determined when the in-ear device is shipped, it is determined that the in-ear device is in a wearing state at the current time; and if the target capacitance value detected at the current moment is smaller than the lower limit capacitance value determined when the in-ear device leaves the factory, determining that the in-ear device is in a non-wearing state at the current moment.
Further, in a possible embodiment, the step after the step S30 includes:
and step S40, when the in-ear device changes from the wearing state to the non-wearing state, the audio output function of the in-ear device is adjusted from an on state to an off state.
It should be noted that the in-ear device provided by the present invention may determine the operation state of the in-ear device according to the wearing state of the in-ear device, for example, if the capacitive sensor integrated in the in-ear device detects that the in-ear device is in the wearing state, the in-ear device may turn on the audio output function, that is, the in-ear device may be connected to other devices, so as to implement that the device connected to the in-ear device outputs audio through the in-ear device; if the capacitive sensor integrated in the ear insertion device detects that the ear insertion device is in a non-wearing state, the ear insertion device can close the audio output function, under the condition, the equipment connected with the ear insertion device cannot output audio through the ear insertion device, specifically, if the ear insertion device is changed from the non-wearing state to the wearing state, the connection function of the ear insertion device can be directly opened, and connection with other equipment capable of outputting audio is established, conversely, if the ear insertion device is changed from the wearing state to the non-wearing state, and before the state is changed, connection is established between the ear insertion device and other equipment capable of outputting audio, and after the state is changed, connection between the ear insertion device and other equipment capable of outputting audio is disconnected.
The wearing detection method is applied to an in-ear device integrated with a capacitance sensor, and comprises the steps of firstly obtaining an initial capacitance value and an experimental capacitance value through the capacitance sensor, and then determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value; and finally, 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 value.
Further, referring to fig. 4, a second embodiment of the wear 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 the first embodiment, which is a refinement of step S30, and the difference between this embodiment and the above-described embodiment of the present invention is:
step S31, if the target capacitance value belongs to a buffer interval, acquiring a capacitance trend before the current time and a historical capacitance value between a target time and the current time, 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;
step S32, defining the buffer interval to include 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 time, and adjusting the upper limit capacitance value;
step S33, if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn 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 a buffer interval in this embodiment, and if the target capacitance value belongs to the buffer interval, the capacitance trend before the current time is obtained, and the capacitance trend proposed in this embodiment includes a rising trend, a falling trend, and a steady trend, and it is understood that the falling trend is shown in fig. 3, and the capacitance value before the current time is in the falling trend, and it is known that, if the target capacitance value belongs to the buffer interval, the capacitance trend before the current time and the historical capacitance value between the target time and the current time are obtained, and it is known from fig. 3 that the target time is before the current time, and then the buffer interval is defined to include a high buffer interval and a low buffer interval, and if the capacitance trend is the falling trend and the historical capacitance value is in the high buffer interval, it is determined that the in-ear apparatus is in the wearing state at the current time, and adjusting the upper limit capacitance value, wherein the upper limit capacitance value indicates that the capacitance value detected by the capacitance sensor is reduced before the target time in the process of the current time, but is not reduced to the vicinity of the lower limit capacitance value, which indicates that the in-ear device is loosened in the ear of a person, so that the capacitance value detected by the capacitance sensor is reduced.
If the capacitance trend is a descending trend and the historical capacitance value is in a low buffer interval, determining that the in-ear device is in an unworn state at the current moment, and adjusting the lower limit capacitance value, which indicates that the capacitance value detected by the capacitance sensor is reduced before the target time and in the process of the current time, and falls to the vicinity of the lower limit capacitance value, which indicates that the in-ear device is taken out of the ear of a person, so that the capacitance value detected by the capacitance sensor falls, the reason why the capacitance value detected by the capacitance sensor does not fall below the lower limit capacitance value can be that oil stain or sweat stain exists on the surface of the earphone, so that the capacitance value detected by the capacitance sensor becomes large, under the condition, the in-ear device is judged to be in an unworn state, however, the lower limit capacitance value needs to be adjusted up so that the ear insertion device taken out of the human ear can be more easily determined as the unworn state after the current time.
Further, in a possible embodiment, the steps after the step S31 further include:
step S34, if the capacitance trend is a rising 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 time, and adjusting the upper limit capacitance value;
step S35, if the capacitance trend is a rising trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn at the current time, and adjusting the lower limit capacitance value.
If the capacitance trend is a rising trend and the historical capacitance value is in a 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, which indicates that the capacitance value detected by the capacitance sensor rises before the target time and in the process of the current time, and rises to near the upper limit capacitance value, which indicates that the in-ear device is placed in the human ear, causing the capacitance value detected by the capacitance sensor to rise, but due to the difference of the internal structure of the human ear, the in-ear device does not fit the auricle well, therefore, the capacitance value detected by the capacitance sensor does not rise above the upper limit capacitance value, and in this case, it is determined that the in-ear device is in a wearing state, and the upper limit capacitance value is adjusted downwards, so that the ear insertion device inserted into the ear of the human body is more convenient to judge as a wearing state after the current moment.
If the capacitance trend is a rising trend and the historical capacitance value is in a low buffer interval, determining that the in-ear device is in an unworn state at the current moment, and adjusting a lower limit capacitance value, wherein the situation indicates that the capacitance value detected by the capacitance sensor rises and only rises to the vicinity of the lower limit capacitance value in the process of the in-ear device before the target moment and to the current moment, which indicates that the in-ear device is likely to be touched by mistake, 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 under the situation, determining that the in-ear device is in an unworn state, but adjusting the lower limit capacitance value is needed, so that the in-ear device touched by mistake is more convenient to be determined to be in an unworn state after the current moment.
In this embodiment, the wearing detection method provided by the invention has higher detection accuracy by defining the buffer intervals including the high buffer interval and the low buffer interval and combining the trend of the capacitance value and the interval where the capacitance value is located, corresponding to different actual scenes.
In addition, referring to fig. 5, an embodiment of the present invention further provides a wear detection apparatus, including:
the capacitance value acquisition module 10 is configured to acquire a prestored experimental capacitance value and acquire an initial capacitance value through the capacitance sensor;
a capacitance threshold determination 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 size relationship between the target capacitance value and the capacitance threshold value.
Optionally, the capacitance threshold determining module 20 includes:
an upper limit capacitance value determining unit, configured to obtain an experimental capacitance value marked as a wearing state in the experimental capacitance values, and determine an upper limit capacitance value according to the experimental capacitance value marked as the wearing state;
and a lower limit capacitance value determining unit, configured to obtain an experimental capacitance value marked as an unworn state in the experimental capacitance values, and determine a lower limit capacitance value according to the experimental capacitance value marked as an unworn state, where the lower limit capacitance value is greater than the initial capacitance value, and a capacitance threshold is defined to include the upper limit capacitance value and the lower limit capacitance value.
Optionally, the wearing state determining module 30 includes:
a capacitance value adjusting 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 configured to execute the step of determining the wearing state of the in-ear device at the current moment according to the magnitude relationship between the target capacitance value and the capacitance threshold value if the target capacitance value is greater than or equal to the initial capacitance value.
Optionally, the wearing state determining module 30 includes:
a wearing state determining unit, configured to determine that the in-ear device is in a wearing state at the current time if the target capacitance value is greater than the upper limit capacitance value;
a non-wearing state determining unit, configured to determine that the in-ear device is in a non-wearing state at the current time if the target capacitance value is smaller than the lower limit capacitance value.
Optionally, the wearing state determining module 30 further includes:
a history capacitance value obtaining unit, configured to obtain a capacitance trend before the current time and a history 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;
an upper limit capacitance value adjusting unit, configured to define that the buffer interval includes 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, determine that the in-ear device is in a wearing state at the current time, and adjust the upper limit capacitance value;
and the lower limit capacitance value adjusting unit is used for determining that the in-ear device is not worn 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 interval.
Optionally, the wearing state determining module 30 further includes:
a first adjusting unit, configured to determine that the in-ear device is in a wearing state at the current time and adjust the upper limit capacitance value if the capacitance trend is a rising trend and the historical capacitance value is in the high buffer interval;
and the second adjusting unit is used for determining that the in-ear device is not worn at the current moment and adjusting the lower limit capacitance value if the capacitance trend is a rising trend and the historical capacitance value is in the low buffer interval.
Optionally, the wearing 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, an embodiment of the present invention further provides a computer-readable storage medium, where a wear detection program is stored on the computer-readable storage medium, and when executed by a processor, the wear detection program implements operations in the wear detection method provided in the foregoing embodiment.
The method executed by each program module can refer to each embodiment of the method of the present invention, and is not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the wear detection method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A wear detection method applied to an in-ear device integrated with a capacitive sensor, the wear detection method comprising the steps of:
acquiring a prestored experimental capacitance value, and acquiring an initial capacitance value through the capacitance sensor;
determining a capacitance threshold value according to the initial capacitance value and the experimental capacitance value;
and 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 magnitude relation between the target capacitance value and the capacitance threshold value.
2. The wear detection method of claim 1, wherein the step of determining a capacitance threshold value from the initial capacitance value and the experimental capacitance value comprises:
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;
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 a defined capacitance threshold value comprises the upper limit capacitance value and the lower limit capacitance value.
3. The wear detection method according to claim 2, wherein the step of obtaining the target capacitance value at the current time is followed by:
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 if the target capacitance value is larger 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 wearing detection method of claim 2, wherein the step of determining the wearing state of the in-ear device at the current time according to the magnitude relationship between the target capacitance value and the capacitance threshold value comprises:
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 not worn at the current moment.
5. The wearing detection method according to claim 2, wherein the step of determining the wearing state of the in-ear device at the current time according to the magnitude relationship between the target capacitance value and the capacitance threshold value further comprises:
if the target capacitance value belongs to a buffer interval, acquiring 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 the buffer interval to comprise 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 if the capacitance trend is a descending trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn at the current moment, and adjusting the lower limit capacitance value.
6. The wear detection method according to claim 5, wherein 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 a buffer interval comprises, after:
if the capacitance trend is a rising 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 rising trend and the historical capacitance value is in the low buffer interval, determining that the in-ear device is not worn at the current moment, and adjusting the lower limit capacitance value.
7. The wearing detection method of claim 6, wherein the step of obtaining the 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 relationship between the target capacitance value and the capacitance threshold value comprises:
and when the in-ear device is changed from the wearing state to the non-wearing state, adjusting the audio output function of the in-ear device from an on state to an off state.
8. A wear detection device, characterized in that the wear detection device comprises:
the capacitance value acquisition module is used for acquiring a prestored experimental capacitance value and acquiring an initial capacitance value through the capacitance sensor;
a capacitance threshold determination module, configured to determine a capacitance threshold according to the initial capacitance value and the experimental capacitance value;
and the wearing state determining module is used for 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 magnitude relation between the target capacitance value and the capacitance threshold value.
9. A wear detection device, characterized in that the wear detection device comprises: memory, a processor and a wear detection program stored on the memory and executable on the processor, the wear detection program, when executed by the processor, implementing the steps of the wear detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a wear detection program 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 true CN113453122A (en) 2021-09-28
CN113453122B 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)

Cited By (4)

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

Citations (8)

* 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
CN108139790A (en) * 2016-09-20 2018-06-08 华为技术有限公司 Smart machine wears detection method and smart machine
CN208924444U (en) * 2018-11-30 2019-05-31 潍坊歌尔电子有限公司 A kind of bluetooth headset
CN110737026A (en) * 2019-10-31 2020-01-31 歌尔科技有限公司 equipment wearing detection method, device, equipment and readable storage medium
US20200103446A1 (en) * 2018-09-30 2020-04-02 Shenzhen GOODIX Technology Co., Ltd. Capacitance detection module, method and electronic device
CN111352534A (en) * 2020-03-13 2020-06-30 珠海格力电器股份有限公司 Touch key touch threshold correction method, wire controller, electric appliance and computer readable storage medium
CN112468913A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Wearing detection device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108139790A (en) * 2016-09-20 2018-06-08 华为技术有限公司 Smart machine wears detection method and smart machine
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
US20200103446A1 (en) * 2018-09-30 2020-04-02 Shenzhen GOODIX Technology Co., Ltd. Capacitance detection module, method and electronic device
CN208924444U (en) * 2018-11-30 2019-05-31 潍坊歌尔电子有限公司 A kind of bluetooth headset
CN112468913A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Wearing detection device
CN110737026A (en) * 2019-10-31 2020-01-31 歌尔科技有限公司 equipment wearing detection method, device, equipment and readable storage medium
CN111352534A (en) * 2020-03-13 2020-06-30 珠海格力电器股份有限公司 Touch key touch threshold correction method, wire controller, electric appliance and computer readable storage medium

Cited By (5)

* 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
CN113825063A (en) * 2021-11-24 2021-12-21 珠海深圳清华大学研究院创新中心 Earphone voice recognition starting method and earphone voice recognition method
CN114071304A (en) * 2021-11-29 2022-02-18 歌尔科技有限公司 Earphone active noise reduction method and device, earphone and computer readable storage medium
CN114071304B (en) * 2021-11-29 2023-04-25 歌尔科技有限公司 Active noise reduction method and device for earphone, earphone and computer readable storage medium
CN114153172A (en) * 2021-12-08 2022-03-08 中山东菱威力电器有限公司 Induction type flushing triggering control method and device

Also Published As

Publication number Publication date
CN113453122B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN113453122A (en) Wearing detection method, wearing detection device, wearing detection equipment and computer-readable storage medium
CN108702567B (en) Earphone, method for detecting wearing state of earphone and electronic equipment
US8786573B2 (en) Data input device of electronic device and input control method
CN111698601B (en) Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof
US20130257793A1 (en) Method and system of data input for an electronic device equipped with a touch screen
CN111083271B (en) Wearing detection method, system, equipment and computer readable storage medium
CN107294522A (en) Response method, device, storage medium and electronic equipment based on touch key-press
CN111078053B (en) Touch data reporting method, device and storage medium
US20160179239A1 (en) Information processing apparatus, input method and program
TW201339935A (en) Capacitive touch control system and touch control device and touch control method using the same
CN106503657A (en) A kind of fingerprint collecting method and terminal
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
CN111131954A (en) Wireless earphone charging box, earphone in-out box detection method, system and storage medium
WO2021103261A1 (en) Method for detecting retrieval or replacement of headphones in case, electronic device, and headphone assembly
CN108759892A (en) Sensor calibrating method, electronic device and computer readable storage medium
CN108445475B (en) Data processing method and device and related medium product
JP2014048971A (en) Input device, method for controlling input device, control program, and computer readable recording medium recorded with control program
CN105739776B (en) A kind of calibration method of pressure value, device and mobile terminal
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
US20150193068A1 (en) Method and apparatus for sensing touch pressure of touch panel and touch sensing apparatus using the same
CN112804612B (en) Earphone control method, earphone control device, earphone and computer readable storage medium
US20150193075A1 (en) Touch apparatus and touch method thereof
KR20210047613A (en) Apparatus and method for detecting wearing using inertial sensor
JP2017192563A (en) Activity meter and exercise amount calculation device
CN105739778A (en) Mobile terminal and touch screen

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