Detection Method, Device, Earphone and Readable Storage Medium for Earphone Wearing State

By setting a plurality of first sensors in the TWS headset and determining the target sensor based on the user's auricle size, the problem that the headset in the prior art cannot adapt to the auricle size of different users is solved, and the accurate wearing state detection and the effect of reducing the false trigger rate is achieved.

CN114827805BActive Publication Date: 2025-06-24GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210341769.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2025-06-24
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

When detecting the wearing status of existing TWS headphones, due to the different auricle sizes of different users, the installation position of the capacitance sensor is not adapted, and it is impossible to accurately detect the wearing status, and it is prone to incorrect triggering.

Method used

A plurality of first sensors are arranged in the earphones, located in the area where the earphones come into contact with the human ear, and the corresponding detection position of each sensor is different. By obtaining signal data of multiple sensors in the worn and unwear states when the user first wears the headset or changes the wearer, the target sensor whose signal change amount meets the preset conditions is determined to accurately detect the wearing state of the headset.

Benefits of technology

It realizes the use of users with different auricle sizes to accurately detect the wearing status of the headphones, reduces the false trigger rate and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114827805B_ABST
    Figure CN114827805B_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure discloses a method, device, earphone, and readable storage medium for detecting the wearing state of an earphone. The method is applied to the earphone and includes: when the wearing setting function of the earphone is turned on, when the user performs a first operation on the earphone, obtaining a first data set collected by a plurality of first sensors, where the first data set includes a plurality of first signals output by the plurality of first sensors; when the user performs a second operation on the earphone, obtaining a second data set collected by the plurality of first sensors, where the second data set includes a plurality of second signals output by the plurality of first sensors; determining a target sensor according to the first data set and the second data set to detect the wearing state of the earphone through the target sensor; where the target sensor is a first sensor whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the technical field of wireless earphones. More specifically, embodiments of the present disclosure relate to a method, apparatus, earphone, and readable storage medium for detecting the wearing state of an earphone. Background Art

[0002] During the use of TWS (True Wireless Stereo) earphones, functions such as automatic Bluetooth connection, automatic play or pause of audio files can be achieved by detecting the wearing state of the earphones.

[0003] In related technologies, a capacitance sensor is usually used to detect the wearing state of TWS earphones. Moreover, when arranging the capacitance sensor in the earphone, the installation position of the capacitance sensor is generally selected according to actual experience.

[0004] However, since the auricle sizes of different users are different, setting the capacitance sensor in the above manner will cause the earphone to be unable to adapt to different users. For example, for some users, after the earphone is worn, the worn state of the earphone cannot be detected; for other users, the fit between the earphone and the human ear is poor, and the earphone will shake during use, which is likely to cause misidentification.

[0005] Therefore, it is necessary to provide a new method for detecting the wearing state of an earphone to reduce the false trigger rate and improve the user experience. Summary of the Invention

[0006] The purpose of the embodiments of the present disclosure is to provide a method, apparatus, earphone, and readable storage medium for detecting the wearing state of an earphone to reduce the false trigger rate and improve the user experience.

[0007] According to a first aspect of the embodiments of the present disclosure, there is provided a method for detecting the wearing state of an earphone, which is applied to an earphone. A plurality of first sensors are provided in the earphone. The plurality of first sensors are located in an area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different. The method includes:

[0008] When the wearing setting function of the earphone is turned on, when a user performs a first operation on the earphone, a first data set collected by the plurality of first sensors is obtained, where the first data set includes a plurality of first signals output by the plurality of first sensors;

[0009] When the user performs a second operation on the earphone, a second data set collected by the plurality of first sensors is obtained, where the second data set includes a plurality of second signals output by the plurality of first sensors, and the plurality of second signals correspond to the plurality of first signals one by one;

[0010] Determine a target sensor based on the first data set and the second data set to detect the wearing state of the earphone through the target sensor; wherein, the target sensor is a first sensor among the multiple first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal.

[0011] Optionally, the first sensors among the multiple first sensors whose signal change amount meets the preset condition include at least one of the following:

[0012] A first sensor among the multiple first sensors whose signal change amount is greater than a first threshold;

[0013] A first sensor among the multiple first sensors whose signal change amount is the largest;

[0014] A preset number of first sensors among the multiple first sensors whose signal change amount is relatively large.

[0015] Optionally, determining the target sensor according to the first data set and the second data set includes:

[0016] Send the first data set and the second data set to an electronic device so that the electronic device determines the target sensor according to the first data set and the second data set.

[0017] Optionally, before determining the target sensor according to the first data set and the second data set, the method further includes:

[0018] Send the first data set and the second data set to an electronic device so that the electronic device, when obtaining user information, associates and stores the first data set, the second data set, and the user information.

[0019] Optionally, after obtaining the first data set collected by the multiple first sensors when the user performs a first operation on the earphone, the method further includes:

[0020] Send a first prompt message to prompt the user to perform the second operation on the earphone.

[0021] Optionally, before obtaining the first data set collected by the multiple first sensors when the user performs a first operation on the earphone in the case of enabling the wearing setting function of the earphone, the method further includes:

[0022] Receive a first instruction sent by an electronic device;

[0023] In response to the first instruction, enable the wearing setting function of the earphone.

[0024] Optionally, after determining the target sensor according to the first data set and the second data set, the method further includes:

[0025] Turn off the wearing setting function of the earphone and send a second prompt message to the electronic device so that the electronic device outputs the second prompt message.

[0026] According to a second aspect of the embodiments of the present disclosure, there is provided a detecting device for the wearing state of an earphone, which is applied to the earphone. A plurality of first sensors are arranged in the earphone, and the plurality of first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different; the device includes:

[0027] A first obtaining module, configured to obtain a first data set collected by the plurality of first sensors when the user performs a first operation on the earphone in the case of turning on the wearing setting function of the earphone, where the first data set includes a plurality of first signals output by the plurality of first sensors;

[0028] A second obtaining module, configured to obtain a second data set collected by the plurality of first sensors when the user performs a second operation on the earphone, where the second data set includes a plurality of second signals output by the plurality of first sensors, and the plurality of second signals correspond to the plurality of first signals one by one;

[0029] A determining module, configured to determine a target sensor according to the first data set and the second data set to detect the wearing state of the earphone through the target sensor; where the target sensor is a first sensor among the plurality of first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal.

[0030] According to a third aspect of the embodiments of the present disclosure, there is provided an earphone, including:

[0031] A plurality of first sensors, the plurality of first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different;

[0032] A memory, configured to store executable computer instructions;

[0033] A processor, configured to execute the method for detecting the wearing state of the earphone according to the first aspect of the embodiments of the present disclosure under the control of the executable computer instructions.

[0034] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having computer instructions stored thereon, and when the computer instructions are run by a processor, they execute the method for detecting the wearing state of the earphone as described in the first aspect of the embodiments of the present disclosure.

[0035] According to the embodiments of the present disclosure, when the wearing setting function of the earphone is turned on, when the user performs a first operation on the earphone, the signal values of the first signals collected by a plurality of first sensors are obtained; then, when the user performs a second operation on the earphone, the signal values of the second signals collected by the plurality of first sensors are obtained; and then, according to the signal change amount between the first signals and the second signals collected by the plurality of first sensors, the target sensor can be determined. In this way, by providing a plurality of first sensors in the earphone, when the user first wears the earphone or changes the wearer, according to the difference in the signal values of the first signals collected by the plurality of first sensors in the worn state and the second signals collected in the non-worn state, the target sensor capable of accurately detecting the wearing state of the earphone is determined, so that different users can select the best detection position according to actual needs, and the first sensor corresponding to the best detection position is used as the target sensor, thereby enabling the earphone to adapt to users with different auricle sizes, avoiding the inability to recognize the wearing state, and reducing the false trigger rate of the earphone, resulting in a better user experience.

[0036] Through the following detailed description of the exemplary embodiments of the present disclosure with reference to the accompanying drawings, other features and advantages of the embodiments of the present disclosure will become clear. Description of the Drawings

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative efforts.

[0038] Figure 1 is a schematic diagram of the hardware configuration of a control system that can be used to implement the detection method of an embodiment;

[0039] Figure 2 is a flowchart of the method for detecting the wearing state of an earphone according to an embodiment;

[0040] Figure 3 is a flowchart of the method for detecting the wearing state of an earphone according to another embodiment;

[0041] Figure 4 is a comparison diagram of the signal change amounts at different channel positions according to an embodiment;

[0042] Figure 5 is a block diagram of the principle of a detection device for the wearing state of an earphone according to an embodiment;

[0043] Figure 6 is a schematic diagram of the hardware structure of an earphone according to an embodiment. Detailed Embodiments

[0044] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions and values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.

[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way a limitation on the present disclosure or its application or use.

[0046] Technologies, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and devices should be regarded as part of the specification.

[0047] In all the examples shown and discussed herein, any specific values should be construed as merely exemplary and not as limitations. Therefore, other examples of the exemplary embodiments may have different values.

[0048] It should be noted that: like reference numerals and letters denote like items in the following drawings, and thus, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.

[0049] <Hardware Configuration>

[0050] Figure 1 is a schematic diagram of the hardware configuration of a control system that can be used to implement the detection method according to an embodiment.

[0051] As Figure 1 shown, the control system 100 includes an earphone 1000 and an electronic device 2000.

[0052] In one embodiment, as Figure 1As shown, the headset 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a microphone 1500, and a speaker 1600. The processor 1100 may include, but is not limited to, a central processing unit CPU, a microcontroller unit MCU, etc. The memory 1200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1400 can perform wired or wireless communication, for example, a Bluetooth communication device. The microphone 1500 can be used to input voice information. The speaker 1600 can be used to output voice information. The headset 1000 further includes a plurality of first sensors located in the area where the headset contacts the human ear, and the detection positions corresponding to each first sensor are different. The first sensor can be, for example, a capacitance sensor.

[0053] Although a plurality of devices of the headset 1000 are shown in Figure 1 , the present invention may only relate to some of the devices.

[0054] In one embodiment, the headset 1000 can be, for example, a TWS headset or the like.

[0055] In this embodiment, the memory 1200 of the headset 1000 is used to store program instructions for controlling the processor 1100 to operate to execute the detection method of the headset wearing state. Those skilled in the art can design the instructions according to the solutions disclosed in the present invention. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0056] Figure 1 The shown headset 1000 is only explanatory and is by no means intended to limit this specification, its application, or use.

[0057] In this embodiment, the electronic device 2000 is used to establish a communication connection with the headset 1000. The electronic device 2000 can be, for example, a mobile phone, a portable computer, a tablet computer, a personal digital assistant, etc. The electronic device 2000 can also be, for example, a server. The embodiments of the present disclosure do not limit this.

[0058] In one embodiment, as Figure 1As shown in the figure, the electronic device 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, a microphone 2700, and a speaker 2800. The processor 2100 may include, but is not limited to, a central processing unit CPU, a microcontroller unit MCU, etc. The memory 2200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 2300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 2400 can perform wired or wireless communication, for example. The display device 2500 is, for example, a liquid crystal display screen, an LED display screen, a touch display screen, etc. The input device 2600 includes, for example, a touch screen, a keyboard, etc. The microphone 2700 can be used to input voice information. The speaker 2800 can be used to output voice information.

[0059] Although multiple devices of the electronic device 2000 are shown in Figure 1 the present invention may only relate to some of the devices. For example, the electronic device 2000 only relates to the processor 2100, the memory 2200, and the communication device 2400.

[0060] In this embodiment, the memory 2200 of the electronic device 2000 is used to store program instructions for controlling the processor 2100 to operate to execute the method for detecting the headphone wearing state. Those skilled in the art can design the instructions according to the solution disclosed in the present invention. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0061] It should be understood that although Figure 1 only one headphone 1000 and one electronic device 2000 are shown, it does not mean to limit the respective quantities. The control system 100 may include multiple headphones 1000 and multiple electronic devices 2000.

[0062] In the above description, those skilled in the art can design the instructions according to the solution provided by the present disclosure. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0063] <Method Embodiment>

[0064] The present disclosure embodiment provides a method for detecting the headphone wearing state. The method for detecting the headphone wearing state can be implemented by the Figure 1 shown control system 100. As Figure 2 shown, the method for detecting the headphone wearing state includes the following steps: step S2100 to step S2300.

[0065] Step S2100, when the wearing setting function of the earphone is enabled, when the user performs a first operation on the earphone, obtain a first data set collected by the multiple first sensors, where the first data set includes multiple first signals output by the multiple first sensors.

[0066] In this embodiment, multiple first sensors are provided in the earphone. The multiple first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different. The multiple first sensors are used to detect the wearing state of the earphone. Exemplarily, the first sensor can be, for example, a capacitance sensor. Providing multiple first sensors in the earphone can be to provide a multi-channel capacitance sensor in the earphone, where one channel corresponds to one capacitance sensor, and the detection positions of the capacitance sensors corresponding to each channel are different. It should be noted here that the present disclosure embodiment does not specifically limit the number of first sensors. For example, as many first sensors as possible can be provided in the available accommodation space of the earphone. In this way, for users with different auricle sizes, through one or more of the first sensors, the wearing state of the earphone can be accurately detected.

[0067] The wearing setting function of the earphone can be to determine the function of the first sensor for detecting the wearing state of the earphone when the earphone is used for the first time or when the user is changed. In this embodiment, based on the communication connection established between the earphone and the electronic device, the wearing setting function of the earphone is run through the electronic device. Exemplarily, a target application for configuring the earphone is installed on the electronic device. After establishing the communication connection between the earphone and the electronic device, open the target application, and run the wearing setting function of the earphone through the target application.

[0068] The first operation can be the operation of the user wearing the earphone. The first data set can be the first signals collected by the multiple first sensors when the earphone is in the worn state. The first data set can include the first signals output by each of the multiple first sensors. Taking the multiple first sensors as multi-channel capacitance sensors as an example, the first data set includes the capacitance signals output by each channel of the multi-channel capacitance sensor when the earphone is in the worn state.

[0069] In one embodiment, before obtaining the first data set collected by the multiple first sensors when the wearing setting function of the earphone is enabled and the user performs a first operation on the earphone, the method further includes: receiving a first instruction sent by the electronic device; in response to the first instruction, enabling the wearing setting function of the earphone.

[0070] In this embodiment, the electronic device can be an electronic device that establishes a communication connection with the earphone and is used to set the earphone. The electronic device can be, for example, a mobile phone, a tablet computer, a laptop computer, etc.

[0071] The first instruction may be an instruction sent to the earphone to turn on the wearing setting function of the earphone in response to a first input by the user to the electronic device. The first input may be, for example, a click input on a target control. For example, a target application for configuring the earphone is installed on the electronic device. After establishing a communication connection between the earphone and the electronic device, the target application is opened, and the target control for turning on the wearing setting function of the earphone is clicked. At this time, the electronic device sends a first instruction to the earphone to turn on the wearing setting function of the earphone.

[0072] In this embodiment, when the user first uses the earphone or changes the wearer, the wearing setting function of the earphone can be turned on. In this way, combined with the subsequent steps, the target sensor for detecting the wearing state of the earphone can be re-determined, so that it can be applicable to different wearers and the user experience is better.

[0073] In one embodiment, after obtaining the first data set collected by the multiple first sensors when the user performs a first operation on the earphone, the method further includes: sending a first prompt message to prompt the user to perform the second operation on the earphone.

[0074] The first prompt message is used to prompt the user to perform a second operation. The second operation may be an operation for the user to take off the earphone. For example, the first prompt message is "The first operation has been completed. Please perform the second operation: Take off the earphone".

[0075] In this embodiment, when the user performs a first operation on the earphone and after obtaining the first data set collected by the multiple first sensors, a first prompt message is sent through the earphone to guide the user to perform the second operation, which can prevent the user from taking off the earphone before the first data set is completely collected and can ensure the accuracy of detection.

[0076] After step S2100, step S2200 is executed. When the user performs a second operation on the earphone, a second data set collected by the multiple first sensors is obtained, where the second data set includes multiple second signals output by the multiple first sensors, and the multiple second signals correspond to the multiple first signals one by one.

[0077] The second operation may be an operation for the user to take off the earphone. The second data set may be second signals collected by the multiple first sensors when the earphone is in an unworn state. The second data set may include second signals output by each of the multiple first sensors, and a second signal output by a first sensor corresponds to the first signal output by the first sensor. Taking the multiple first sensors as multi-channel capacitive sensors as an example, the second data set includes capacitance signals output by each channel of the multi-channel capacitive sensors when the earphone is in an unworn state.

[0078] After step S2200, step S2300 is executed to determine a target sensor according to the first data set and the second data set, so as to detect the wearing state of the earphone through the target sensor; wherein, the target sensor is a first sensor among the multiple first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal.

[0079] The target sensor is a first sensor used to detect the wearing state of the earphone during the use of the earphone. The target sensor can be one or multiple, and the present disclosure embodiment does not limit the number of target sensors.

[0080] In this embodiment, the wearing state of the earphone may include a worn state and an unworn state. When the detection position of the first sensor is the target detection position, when the earphone is in the worn state, the detection position of the first sensor fits the auricle of the human ear. In this way, when the earphone is in the unworn state, the earphone is not in contact with the human ear, and the signal value of the second signal output by the first sensor is small. When the earphone is in the worn state, the earphone is in contact with the human ear, and the signal value of the first signal output by the first sensor will increase significantly. That is to say, when the detection position of the first sensor fits the wearer, the difference between the signal value of the first signal and the signal value of the second signal of the first sensor is large.

[0081] However, when the detection position of the first sensor is not the target detection position, when the earphone is in the worn state, the detection position of the first sensor cannot fit the auricle of the human ear completely. In this way, when the earphone is in different wearing states, the difference in the signal values output by the first sensor is not large. That is to say, when the detection position of the first sensor does not fit the wearer, the difference between the signal value of the first signal collected by the first sensor when the earphone is in the worn state and the signal value of the second signal collected by the first sensor when the earphone is in the worn state is small.

[0082] Based on this, according to the first data set and the second data set, that is, according to the signal change amount output by each first sensor, the target sensor can be determined from the multiple first sensors.

[0083] In one embodiment, the first sensors among the multiple first sensors whose signal change amount meets the preset condition include at least one of the following: the first sensors among the multiple first sensors whose signal change amount is greater than the first threshold; the first sensor among the multiple first sensors whose signal change amount is the largest; a preset number of first sensors among the multiple first sensors whose signal change amount is relatively large.

[0084] The following uses a specific example to illustrate different preset conditions.

[0085] Exemplarily, for the first sensors among the multiple first sensors whose signal change amount is greater than the first threshold, they are used as target sensors.

[0086] The first threshold can be used to measure whether the signal values of the first signal output by the first sensor and the second signal meet the requirements. When the signal variable of the first sensor is greater than the first threshold, it indicates that the change in the signal values of the first signal and the second signal output by the first sensor set at the detection position is relatively large, and the wearing state of the earphone can be accurately detected.

[0087] Taking the example of setting 10 first sensors in the earphone, when the user wears the earphone, obtain the first signal output by each of the 10 first sensors; then, when the user takes off the earphone, obtain the second signal output by each of the 10 first sensors; then, determine the signal change amount of each of the 10 first sensors, compare the signal change amounts of these 10 first sensors with the first threshold, and use the first sensors with signal change amounts greater than the first threshold as target sensors. During the use of the earphone, determine the wearing state of the earphone according to the signal output by the target sensors.

[0088] Exemplarily, for the first sensor among the multiple first sensors with the largest signal change amount, it is used as the target sensor.

[0089] Continuing with the example of setting 10 first sensors in the earphone, when the user wears the earphone, obtain the first signal output by each of the 10 first sensors; then, when the user takes off the earphone, obtain the second signal output by each of the 10 first sensors; then, determine the signal change amount of each of the 10 first sensors, compare the signal change amounts of these 10 first sensors, and use the first sensor with the largest signal change amount as the target sensor. During the use of the earphone, determine the wearing state of the earphone according to the signal output by the target sensor.

[0090] Exemplarily, for a preset number of first sensors among the multiple first sensors with relatively large signal change amounts, they are used as target sensors.

[0091] The preset number can be the number of target sensors. The preset number can be set by those skilled in the art according to actual experience. For example, the preset number is 2 - 3, and the embodiments of the present disclosure do not limit this.

[0092] Continuing with the example of having 10 first sensors set inside the earphone, when the user wears the earphone, obtain the first signal output by each of the 10 first sensors; then, when the user removes the earphone, obtain the second signal output by each of the 10 first sensors; then, determine the signal change amount of each of the 10 first sensors, compare the signal change amounts of these 10 first sensors, and take the 3 first sensors with larger signal change amounts as the target sensors. During the use of the earphone, determine the wearing state of the earphone according to the signals output by the target sensors.

[0093] In this embodiment, the first sensors whose signal change amounts meet the preset conditions are used as target sensors to detect the wearing state of the earphone, which can adapt to users with different auricle sizes, has high detection accuracy, and can reduce the false trigger rate of the earphone.

[0094] In one embodiment, determining the target sensors according to the first data group and the second data group may further include: sending the first data group and the second data group to an electronic device, so that the electronic device determines the target sensors according to the first data group and the second data group.

[0095] The electronic device may be an electronic device that establishes a communication connection with the earphone. Exemplarily, the electronic device may be an electronic device with a Bluetooth communication module. For example, a mobile terminal, which has a Bluetooth communication module and can directly establish a communication connection with the earphone.

[0096] In specific implementation, after the earphone obtains the first data group and the second data group output by multiple first sensors, the first data group and the second data group may be sent to the electronic device. The electronic device determines the target sensors according to the first data group and the second data group, and returns the identification information of the target sensors to the earphone, so that the earphone can determine the target sensors from multiple first sensors and detect the wearing state of the earphone according to the target sensors.

[0097] In this embodiment, the first data group and the second data group can be analyzed and processed by the electronic device, which can reduce the power consumption of the earphone and extend the usage time of the earphone.

[0098] In one embodiment, before determining the target sensors according to the first data group and the second data group, the method further includes: sending the first data group and the second data group to an electronic device, so that the electronic device, when obtaining user information, associates and stores the first data group, the second data group, and the user information.

[0099] In this embodiment, the electronic device can be a mobile terminal or a server. The electronic device can be provided with a first interface, and user information can be obtained through the first interface. The user information can include the user's auricle information. Based on the communication connection between the electronic device and the earphone, a first data set and a second data set corresponding to the auricle information can be obtained to associate and store the user information, the corresponding first data set, and the second data set.

[0100] In this embodiment, after obtaining the first data set and the second data set collected by multiple first sensors, the relationship between the first data set, the second data set, and the corresponding user information can be stored. In this way, for users with the same user or the same auricle information, the corresponding data can be directly obtained to determine the target sensor and the target detection position according to the stored data, making it more convenient to use.

[0101] In one embodiment, after determining the target sensor according to the first data set and the second data set, the method further includes: turning off the wearing setting function of the earphone and sending a second prompt message to the electronic device so that the electronic device outputs the second prompt message.

[0102] The second prompt message is used to prompt the user that the wearing setting of the earphone has been completed. The second prompt message can be a voice prompt message, a text prompt message, a vibration prompt message, etc. For example, the second prompt message is "The wearing setting of the earphone has been completed, please use it".

[0103] In this embodiment, after determining the target sensor according to the first data set and the second data set, the earphone sends a second prompt message to the electronic device to prompt the user that the wearing setting of the earphone has been completed and can be used normally, providing a better user experience.

[0104] In one embodiment, as Figure 3 shown, the method further includes: steps S3100 to S3400.

[0105] Step S3100, the electronic device provides a second interface and a third interface;

[0106] Step S3200, through the second interface, obtain a first data set output by multiple first sensors, where the first data set includes multiple first data groups, and each first data set includes signal values of multiple first signals output by multiple first sensors. One first data group corresponds to one user.

[0107] Each first data group in the first data set is the signal value of the first signal output by multiple first sensors when each user wears the earphone. It can be understood that the auricle information of each user is different. For example, the auricle sizes of each user are different.

[0108] Step S3300: Obtain a second data set output by multiple first sensors through the third interface. The second data set includes multiple second data groups, and each second data set includes signal values of multiple second signals output by multiple first sensors. One second data group corresponds to one user.

[0109] For each second data group in the second data set, it is the signal value of the second signal output by multiple first sensors when each user wears the earphone. It can be understood that the auricle information of each user is different. For example, the auricle sizes of each user are different.

[0110] Step S3400: Determine a target sensor based on the first data set and the second data set to detect the wearing state of the earphone through the target sensor; where the target sensor is a first sensor among the multiple first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal.

[0111] Exemplarily, taking 9 first sensors (9-channel capacitive sensors) as an example, assume there are three users with different auricle information, namely, User A, User B, and User C.

[0112] Obtain the signal change amount of the signals output by the 9-channel capacitive sensors of User A. Specifically, when the earphone is in the worn state, obtain the signal value of the first signal output by each channel of the 9-channel capacitive sensor; when the earphone is in the unworn state, obtain the signal value of the second signal output by each channel of the 9-channel capacitive sensor; determine the signal change amount of the signals output by each channel of the 9-channel capacitive sensor.

[0113] Obtain the signal change amount of the signals output by the 9-channel capacitive sensors of User B. Specifically, when the earphone is in the worn state, obtain the signal value of the first signal output by each channel of the 9-channel capacitive sensor; when the earphone is in the unworn state, obtain the signal value of the second signal output by each channel of the 9-channel capacitive sensor; determine the signal change amount of the signals output by each channel of the 9-channel capacitive sensor.

[0114] Obtain the signal change amount of the signals output by the 9-channel capacitive sensors of User C. Specifically, when the earphone is in the worn state, obtain the signal value of the first signal output by each channel of the 9-channel capacitive sensor; when the earphone is in the unworn state, obtain the signal value of the second signal output by each channel of the 9-channel capacitive sensor; determine the signal change amount of the signals output by each channel of the 9-channel capacitive sensor.

[0115] After that, as Figure 4As shown in the figure, the signal change amounts of the output signals of each channel of User A, User B, and User C are compared, and the three first sensors with relatively large signal change amounts corresponding to User A, User B, and User C are used as target sensors. For example, the capacitance sensors corresponding to channel positions 4, 7, and 8 are used as target sensors, that is, channel positions 4, 7, and 8 are used as target detection positions, that is, the positions where it is more suitable to set capacitance sensors.

[0116] In this embodiment, by obtaining the first dataset and the second dataset of users with different auricle information, and determining the optimal setting position of the capacitance sensor according to the first dataset and the second dataset, it is possible to avoid the earphone from not being able to recognize the wearing state of some users and reduce the false triggering rate of the earphone.

[0117] According to the embodiments of the present disclosure, when the wearing setting function of the earphone is turned on, when the user performs a first operation on the earphone, the signal values of the first signals collected by multiple first sensors are obtained; then, when the user performs a second operation on the earphone, the signal values of the second signals collected by multiple first sensors are obtained; then, according to the signal change amounts of the first signals and the second signals collected by the multiple first sensors, the target sensor can be determined. In this way, by setting multiple first sensors in the earphone, when the user first wears the earphone or changes the wearer, according to the difference in the signal values of the first signals collected in the worn state and the second signals collected in the non-worn state by the multiple first sensors, the target sensor that can accurately detect the wearing state of the earphone is determined, so that different users can select the optimal detection position according to actual needs, and the first sensor corresponding to the optimal detection position is used as the target sensor, so that the earphone can be adapted to users with different auricle sizes, avoid the inability to recognize the wearing state, and can also reduce the false triggering rate of the earphone, and the user experience is better.

[0118] <Device Embodiment>

[0119] The embodiments of the present disclosure provide a detection device for the wearing state of an earphone, as Figure 5 shown, applied to the earphone, multiple first sensors are arranged in the earphone, the multiple first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different; the detection device 500 for the wearing state of the earphone may include a first acquisition module 510, a second acquisition module 520, and a determination module 530.

[0120] The first acquisition module 510 can be used to acquire a first data set collected by the multiple first sensors when the user performs a first operation on the earphone in the case of enabling the wearing setting function of the earphone, where the first data set includes multiple first signals output by the multiple first sensors;

[0121] The second acquisition module 520 can be used to acquire a second data set collected by the multiple first sensors when the user performs a second operation on the earphone, where the second data set includes multiple second signals output by the multiple first sensors, and the multiple second signals correspond one-to-one to the multiple first signals;

[0122] The determination module 530 can be used to determine a target sensor according to the first data set and the second data set to detect the wearing state of the earphone through the target sensor; where the target sensor is a first sensor among the multiple first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal.

[0123] In one embodiment, the first sensors among the multiple first sensors whose signal change amount meets a preset condition include at least one of the following:

[0124] The first sensors among the multiple first sensors whose signal change amount is greater than a first threshold;

[0125] The first sensor among the multiple first sensors whose signal change amount is the largest;

[0126] A preset number of first sensors among the multiple first sensors whose signal change amount is relatively large.

[0127] In one embodiment, the determination module 530 is specifically configured to: send the first data set and the second data set to an electronic device so that the electronic device determines a target sensor according to the first data set and the second data set.

[0128] In one embodiment, the apparatus further includes: a first sending module, configured to send the first data set and the second data set to an electronic device so that the electronic device, when acquiring user information, stores the first data set, the second data set, and the user information in an associated manner.

[0129] In one embodiment, the apparatus further includes: an output module, configured to emit a first prompt message to prompt the user to perform the second operation on the earphone.

[0130] In one embodiment, the device further includes: a receiving module, configured to receive a first instruction sent by an electronic device; and an enabling module, configured to enable the wearing setting function of the earphone in response to the first instruction.

[0131] In one embodiment, the device further includes: a disabling module, configured to disable the wearing setting function of the earphone; and a second sending module, configured to send a second prompt message to the electronic device, so that the electronic device outputs the second prompt message.

[0132] According to an embodiment of the present disclosure, when the wearing setting function of the earphone is enabled, when the user performs a first operation on the earphone, the signal values of first signals collected by a plurality of first sensors are obtained; then, when the user performs a second operation on the earphone, the signal values of second signals collected by the plurality of first sensors are obtained; and then, according to the signal change amount between the first signals and the second signals collected by the plurality of first sensors, a target sensor can be determined. In this way, by arranging a plurality of first sensors in the earphone, when the user wears the earphone for the first time or changes the wearer, according to the difference in the signal values of the first signals collected by the plurality of first sensors in the worn state and the second signals collected in the non-worn state, a target sensor capable of accurately detecting the wearing state of the earphone can be determined, so that different users can select the best detection position according to actual needs, and the first sensor corresponding to the best detection position is used as the target sensor, so that the earphone can be adapted to users with different auricle sizes, avoiding the situation of not being able to recognize the wearing state, and reducing the false trigger rate of the earphone, resulting in a better user experience.

[0133] <Embodiment of Earphone>

[0134] Figure 6 is a schematic diagram of the hardware structure of an earphone according to an embodiment. As Figure 6 shown, the earphone 600 includes a memory 610, a processor 620, and a first sensor 630.

[0135] The memory 610 can be used to store executable computer instructions.

[0136] The processor 620 can be configured to execute the method for detecting the wearing state of the earphone according to the embodiment of the method of the present disclosure under the control of the executable computer instructions.

[0137] The first sensor 630 can be used to detect the wearing state of the earphone. Exemplarily, the first sensor can be, for example, a capacitance sensor.

[0138] In another embodiment, the earphone 600 can include the above-mentioned detecting device 500 for the wearing state of the earphone.

[0139] In one embodiment, each module of the above headphone wearing state detection device 500 can be implemented by a processor 620 running computer instructions stored in a memory 610.

[0140] According to an embodiment of the present disclosure, when the headphone wearing setting function is enabled, when the user performs a first operation on the headphone, signal values of first signals collected by a plurality of first sensors are obtained; thereafter, when the user performs a second operation on the headphone, signal values of second signals collected by the plurality of first sensors are obtained; and then, according to the signal change amount between the first signals and the second signals collected by the plurality of first sensors, a target sensor can be determined. In this way, by providing a plurality of first sensors in the headphone, when the user first wears the headphone or changes the wearer, the target sensor capable of accurately detecting the headphone wearing state can be determined according to the difference in the signal values of the first signals collected in the worn state and the second signals collected in the non-worn state by the plurality of first sensors, so that different users can select the best detection position according to actual needs, and the first sensor corresponding to the best detection position is used as the target sensor, so that the headphone can be adapted to users with different auricle sizes, avoiding the inability to recognize the wearing state, and reducing the false trigger rate of the headphone, resulting in a better user experience.

[0141] <Computer-readable storage medium>

[0142] An embodiment of the present disclosure also provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are run by a processor, the headphone wearing state detection method provided by the embodiment of the present disclosure is executed.

[0143] An embodiment of the present disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium, on which computer-readable program instructions for causing a processor to implement various aspects of the embodiment of the present disclosure are loaded.

[0144] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example—but not limited to—an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punched card or raised structures in grooves having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium used herein is not construed as being a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.

[0145] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to respective computing / processing devices, or can be downloaded to an external computer or an external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0146] The computer program instructions for performing the operations of the embodiments of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the embodiments of the present disclosure.

[0147] Aspects of the embodiments of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0148] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is produced that implements the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause a computer, a programmable data processing device, and / or other devices to work in a specific manner. Thus, the computer-readable medium storing the instructions includes a manufactured article that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0149] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other devices to implement the functions / acts specified in one or more blocks of the flowchart and / or block diagram.

[0150] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or acts, or by a combination of dedicated hardware and computer instructions. As is well known to those of ordinary skill in the art, implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.

[0151] The embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art in the technical field without departing from the scope and spirit of the described embodiments. The selection of the terms used herein is intended to best explain the principles of the embodiments, the practical application, or the improvement of technologies in the market, or to enable other ordinary skill in the art in the technical field to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.

Claims

1. A method for detecting the wearing state of an earphone, applied to the earphone, characterized in that, A plurality of first sensors are provided inside the earphone, and the plurality of first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different; the method includes: When the wearing setting function of the earphone is turned on, when the user performs a first operation on the earphone, obtain a first data set collected by the plurality of first sensors, where the first data set includes a plurality of first signals output by the plurality of first sensors; When the user performs a second operation on the earphone, obtain a second data set collected by the plurality of first sensors, where the second data set includes a plurality of second signals output by the plurality of first sensors, and the plurality of second signals correspond one-to-one to the plurality of first signals; According to the first data set and the second data set, determine a target sensor to detect the wearing state of the earphone through the target sensor; where the target sensor is a first sensor among the plurality of first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal; The first sensors among the plurality of first sensors whose signal change amount meets the preset condition include at least one of the following: The first sensors among the plurality of first sensors whose signal change amount is greater than a first threshold; The first sensor among the plurality of first sensors whose signal change amount is the largest; A preset number of first sensors among the plurality of first sensors whose signal change amount is relatively large.

2. The method according to claim 1, wherein The determining the target sensor according to the first data set and the second data set includes: Send the first data set and the second data set to an electronic device, so that the electronic device determines the target sensor according to the first data set and the second data set.

3. The method according to claim 1, characterized in that, Before determining the target sensor according to the first data set and the second data set, the method further includes: Send the first data set and the second data set to an electronic device, so that the electronic device, when obtaining user information, associates and stores the first data set, the second data set with the user information.

4. The method according to claim 1, characterized in that After obtaining the first data set collected by the plurality of first sensors when the user performs the first operation on the earphone, the method further includes: Send out a first prompt message to prompt the user to perform the second operation on the earphone.

5. The method according to claim 1, wherein Before obtaining the first data set collected by the plurality of first sensors when the user performs the first operation on the earphone in the case of turning on the wearing setting function of the earphone, the method further includes: Receive a first instruction sent by an electronic device; In response to the first instruction, turn on the wearing setting function of the earphone.

6. The method according to claim 1, characterized in that, After determining the target sensor according to the first data set and the second data set, the method further includes: Turn off the wearing setting function of the earphone and send a second prompt message to the electronic device, so that the electronic device outputs the second prompt message.

7. A detection device for the wearing state of an earphone, applied to the earphone, characterized in that A plurality of first sensors are provided inside the earphone. The plurality of first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different; the device includes: A first acquisition module, configured to, when the wearing setting function of the earphone is turned on and the user performs a first operation on the earphone, acquire a first data set collected by the plurality of first sensors, where the first data set includes a plurality of first signals output by the plurality of first sensors; A second acquisition module, configured to, when the user performs a second operation on the earphone, acquire a second data set collected by the plurality of first sensors, where the second data set includes a plurality of second signals output by the plurality of first sensors, and the plurality of second signals correspond one-to-one to the plurality of first signals; A determination module, configured to determine a target sensor according to the first data set and the second data set, so as to detect the wearing state of the earphone through the target sensor; where the target sensor is a first sensor among the plurality of first sensors whose signal change amount meets a preset condition, and the signal change amount is the difference between the signal value of the first signal and the signal value of the corresponding second signal; the first sensors among the plurality of first sensors whose signal change amount meets the preset condition include at least one of the following: The first sensors among the plurality of first sensors whose signal change amount is greater than a first threshold; The first sensor among the plurality of first sensors whose signal change amount is the largest; A preset number of first sensors among the plurality of first sensors whose signal change amount is relatively large.

8. An earphone, characterized in that, Includes: A plurality of first sensors, the plurality of first sensors are located in the area where the earphone contacts the human ear, and the detection positions corresponding to each first sensor are different; A memory, configured to store executable computer instructions; A processor, configured to execute the method for detecting the wearing state of the earphone according to any one of claims 1-6 under the control of the executable computer instructions.

9. A computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are run by a processor, the method for detecting the wearing state of the earphone according to any one of claims 1-6 is executed.

Citation Information

Patent Citations

  • TWS earphone control method, TWS earphone, equipment and storage medium

    CN108429964A

  • Wearing detection method and device, wearable equipment and storage medium

    CN109792573A