Headphone wearing detection method, device, headphone equipment and storage medium
By arranging the first and second wearing detection sensors in the earphone device, which are respectively located in contact with and away from human skin, the problem of false detection of existing earphone wearing detection is solved, achieving higher detection accuracy and better user experience. experience.
Patent Information
- Application Number
- CN202210193111.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-02-28
AI Technical Summary
The wearing detection of existing headphones is likely to affect the user experience due to mis-detection, especially when the user takes off the headphones but is still mistakenly considered wearing.
A first wearing detection sensor and a second wearing detection sensor are provided in the earphone device, which are located at positions where the earphones are in contact with and away from human skin respectively, and the wearing status of the earphones is determined by obtaining detection results of the two.
The accuracy of earphone wearing detection is improved and false detections are reduced, thus improving the user experience of using earphones.
Smart Images

Figure CN114501292B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of earphone technology, and in particular to an earphone wearing detection method, an apparatus, an earphone device and a storage medium. Background Art
[0002] At present, headphones generally support a wearing detection function to detect whether the headphones are in a wearing state. However, the current wearing detection of headphones generally uses infrared or capacitive sensors as wearing detection sensors, which are set on the inner side of the headphone where the headphone contacts the human skin in the ear, so that when the headphones are worn, the corresponding wearing status signal can be detected. However, when the user takes off the headphones and holds them in their hands, the wearing detection sensor may mistakenly detect that the headphones are in a wearing state. When the wearing state is mistakenly detected, the headphones may be mistakenly triggered to enter the corresponding function, which affects the user experience. For example, if the transparent transmission mode is turned on in the holding state, the sound signal will become a closed loop, causing the headphones to howl. Therefore, how to improve the accuracy of headphone wearing detection is a problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of the present invention is to provide a headphone wearing detection method, device, headphone device and storage medium, aiming to provide a headphone wearing detection solution to improve the accuracy of headphone wearing detection, thereby improving the user experience of using the headphone.
[0004] To achieve the above object, the present invention provides an earphone wearing detection method, which is applied to an earphone device, wherein a first wearing detection sensor is provided on the side of the earphone device that contacts human skin when worn, and a second wearing detection sensor is provided on the side away from human skin, and the method comprises the following steps:
[0005] Acquire a first detection result obtained by the first wearing detection sensor, and acquire a second detection result obtained by the second wearing detection sensor;
[0006] When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, it is determined that the earphone device is in a wearing state.
[0007] Optionally, both the first wearing detection sensor and the second wearing detection sensor are temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, and the second detection result is a second temperature value detected by the second wearing detection sensor, and after the steps of obtaining the first detection result detected by the first wearing detection sensor and obtaining the second detection result detected by the second wearing detection sensor, the method further includes:
[0008] If it is detected that the first temperature value falls within a first preset temperature range, determining that the first detection result indicates that the earphone device is in a contact state;
[0009] If it is detected that the second temperature value falls within a second preset temperature range, it is determined that the second detection result indicates that the headphone device is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
[0010] Optionally, after the steps of acquiring the first detection result obtained by the first wearing detection sensor and acquiring the second detection result obtained by the second wearing detection sensor, the method further includes:
[0011] If it is detected that the second temperature value falls within a third preset temperature range, determining that the second detection result indicates that the headphone device is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
[0012] When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
[0013] If it is determined that the earphone device is in the hand-held state and it is detected that the earphone device is in the transparent transmission mode, the transparent transmission mode is turned off.
[0014] Optionally, the method further comprises:
[0015] Acquiring temperature data from a user terminal connected to the headset device, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an ambient temperature value detected by a temperature sensor in the user terminal;
[0016] The second preset temperature range is set according to the temperature data.
[0017] Optionally, the method further comprises:
[0018] When an ear temperature entry instruction triggered by the wearing prompt information output by the earphone device is detected, acquiring a third temperature value entered by the first wearing detection sensor;
[0019] The first preset temperature range is set according to the third temperature value.
[0020] Optionally, when the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, after the step of determining that the earphone device is in a wearing state, the step further includes:
[0021] If it is determined that the earphone device is in a wearing state, turning on a transparent transmission mode in the earphone device;
[0022] In the transparent transmission mode, the ambient sound signal is picked up by the feedforward microphone in the headphone device;
[0023] The ambient sound signal is processed using preset transparent transmitter parameters to obtain a compensated sound signal, and the compensated sound signal is played through the speaker of the headphone device.
[0024] Optionally, before the step of acquiring a first detection result obtained by the first wearing detection sensor and acquiring a second detection result obtained by the second wearing detection sensor, the step further includes:
[0025] Monitoring the wearing detection instruction in the headphone device;
[0026] If the wearing detection instruction is monitored, the steps of acquiring the first detection result obtained by the first wearing detection sensor and acquiring the second detection result obtained by the second wearing detection sensor are performed.
[0027] To achieve the above object, the present invention further provides an earphone wearing detection device, which is deployed in an earphone device, wherein a first wearing detection sensor is arranged on the side of the earphone device that contacts human skin when worn, and a second wearing detection sensor is arranged on the side away from human skin, wherein the device comprises:
[0028] an acquisition module, configured to acquire a first detection result obtained by the first wearing detection sensor, and acquire a second detection result obtained by the second wearing detection sensor;
[0029] The determination module is used to determine that the headphone device is in a wearing state when the first detection result indicates that the headphone device is in a contact state and the second detection result indicates that the headphone device is in a non-contact state.
[0030] To achieve the above-mentioned purpose, the present invention also provides an earphone device, which includes: a memory, a processor, and an earphone wearing detection program stored in the memory and executable on the processor, wherein the earphone wearing detection program implements the steps of the earphone wearing detection method described above when executed by the processor.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a headphone wearing detection program is stored. When the headphone wearing detection program is executed by a processor, the steps of the headphone wearing detection method as described above are implemented.
[0032] In the present invention, a first wearing detection sensor is arranged on a side of the earphone device that contacts human skin when worn, and a second wearing detection sensor is arranged on a side that is away from human skin. When wearing detection is required, a first detection result obtained by the first wearing detection sensor is obtained, and a second detection result obtained by the second wearing detection sensor is obtained. When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, it is determined that the earphone device is in a wearing state, which can improve the accuracy of wearing detection of the earphone device, thereby improving the user experience of using the earphone. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a flow chart of a first embodiment of a method for detecting earphone wearing according to the present invention;
[0034] Figure 2 A schematic diagram of the arrangement position of a wearing detection sensor in an earphone device according to an embodiment of the present invention;
[0035] Figure 3 Schematic diagram of functional modules of a preferred embodiment of the headphone wearing detection device of the present invention.
[0036] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0037] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0038] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a method for detecting earphone wearing according to the present invention.
[0039] The embodiment of the present invention provides an embodiment of the headphone wearing detection method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order than here. The headphone wearing detection method of the embodiment of the present invention is applied to a headphone device. If the headphone device has two headphones, it can be applied to any one of the headphones. In this embodiment, the headphone wearing detection method includes:
[0040] Step S10, obtaining a first detection result obtained by the first wearing detection sensor, and obtaining a second detection result obtained by the second wearing detection sensor;
[0041] In this embodiment, in order to improve the accuracy of earphone wearing detection, it is proposed to set two groups of wearing detection sensors at different positions in the earphone device, and one group of wearing detection sensors includes at least one wearing detection sensor. One group is set on the side of the earphone device that contacts the human skin when the earphone device is worn, and is called the first wearing detection sensor, and the other group is set on the side of the earphone device that is away from the human skin when the earphone device is worn, and is called the second wearing detection sensor. Figure 2 As shown, wearing detection design one is the current headphone wearing detection scheme, in which a group of wearing detection sensors (Sensor) are arranged on the side of the headphone that contacts with human skin when the headphone is worn. In this embodiment, referring to wearing detection design two, a first wearing detection sensor (Sensor A) is arranged on the side of the headphone that contacts with human skin when the headphone is worn, and a second wearing detection sensor (Sensor B) is arranged on the side away from human skin when the headphone is worn.
[0042] The wearing detection sensor in this embodiment is a sensor that can detect whether the position where the wearing detection sensor is set in the headphone device is in contact with an object (such as the user's skin), that is, any sensor that can achieve this effect can be used, for example, a conventional wearing detection sensor based on the infrared principle, or a wearing detection sensor based on the capacitance principle, etc., which is not limited in this embodiment. Each wearing detection sensor can be of the same type or of different types.
[0043] When the earphone device needs to perform wearing detection, the wearing detection can be performed by the first wearing detection sensor and the second wearing detection sensor respectively, and the detection result of the first wearing detection sensor (hereinafter referred to as the first detection result) and the detection result of the second wearing detection sensor (hereinafter referred to as the second detection result) can be obtained. The first detection result and the second detection result are results that can directly or indirectly characterize whether the earphone device is in a contact state. It should be noted that the first detection result characterizes that the earphone device is in a contact state, specifically means that the position where the first wearing detection sensor is set in the earphone device is in contact with other objects, and the second detection result characterizes that the earphone device is in a contact state, specifically means that the position where the second wearing detection sensor is set in the earphone device is in contact with other objects; conversely, the first detection result characterizes that the earphone device is in a non-contact state, specifically means that the position where the first wearing detection sensor is set in the earphone device is not in contact with other objects, and the second detection result characterizes that the earphone device is in a non-contact state, specifically means that the position where the second wearing detection sensor is set in the earphone device is not in contact with other objects.
[0044] The first detection result and the second detection result may be data directly detected by the wearing detection sensor, for example, may be the receiving and sending data of infrared signals detected by the wearing detection sensor based on the infrared principle, and the headphone device may determine based on the data whether the first detection result and the second detection result represent that the headphone device is in a contact state; the first detection result and the second detection result may also be the result of whether the headphone device is in a contact state after analyzing the data directly detected by the wearing detection sensor, that is, the wearing detection sensor may report a status signal to the headphone device, for example, 0 indicates a non-contact state, and 1 indicates a contact state.
[0045] In a specific implementation, the scenarios in which the headphone device needs to perform wearing detection can be set as needed. In one implementation, the headphone device can be set to perform periodic wearing detection when it is turned on, so that when the headphone device is detected to be in a wearing state, certain functions that can only be turned on in a wearing state are automatically triggered, and when the headphone device is detected to be in a not-worn state, certain functions that can only be turned on in a wearing state are automatically turned off; for example, the headphone device can be set to automatically turn on the active noise reduction function when it is detected to be in a wearing state. In another implementation, the headphone device can be set to automatically perform wearing detection when certain functions are turned on, so that the instruction to turn on the function is not executed when these functions can only be turned on in a wearing state.
[0046] Furthermore, in one embodiment, before step S10, the method further includes:
[0047] Step a, monitoring the wearing detection instruction in the earphone device;
[0048] Step b: If the wearing detection instruction is monitored, execute step S10.
[0049] The headphone device can be set to automatically trigger the wearing detection instruction when certain functions are turned on, and monitor the wearing detection instruction after the device is turned on. If the headphone device monitors the wearing detection instruction, step S10 is executed, that is, a first detection result obtained by the first wearing detection sensor and a second detection result obtained by the second wearing detection sensor are obtained, and it is determined whether the headphone device is in a wearing state according to the first detection result and the second detection result.
[0050] Step S20: When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, determine that the earphone device is in a wearing state.
[0051] The earphone device can determine whether the first detection result indicates that the earphone device is in a contact state, and determine whether the second detection result indicates that the earphone device is in a non-contact state. If so, it is determined that the earphone device is in a wearing state.
[0052] It can be understood that when the user wears the earphones, only the side of the earphone device that is in contact with the user's skin when worn is in a contact state, and the side that is away from the user's skin when worn is in a non-contact state. When the user holds the earphone device with his hand, both the side that is in contact with the user's skin when worn and the side that is away from the user's skin when worn are in a contact state. In this embodiment, the earphone device is determined to be in a wearing state only when the earphone device determines that the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state. This can avoid misidentifying the state of the user holding the earphone as being in a wearing state. Therefore, compared with the solution in which the earphone device determines the wearing state of the earphone device only based on the detection result of the wearing detection sensor on the side that is in contact with the user's skin, this solution of this embodiment can improve the accuracy of wearing detection of the earphone device.
[0053] Furthermore, in one embodiment, when the earphone device detects that it is in a wearing state, it can turn on functions in the earphone device that need to be turned on when in the wearing state, such as an active noise reduction function, a transparent transmission mode, etc.
[0054] Further, in one embodiment, if the earphone device determines that the first detection result indicates that the earphone device is in a non-contact state, or determines that the second detection result indicates that the earphone device is in a contact state, it can be determined that the earphone device is in a non-worn state. Further, when the earphone device determines that it is in a non-worn state, the earphone device can turn off a function that is only enabled in the wearing mode in the earphone device to avoid howling or waste of power of the earphone device.
[0055] Furthermore, in one embodiment, after step S20, the method further includes:
[0056] Step S30, if it is determined that the earphone device is in a wearing state, then turning on the transparent transmission mode in the earphone device;
[0057] Step S40, in the transparent transmission mode, picking up the ambient sound signal through the feedforward microphone in the headphone device;
[0058] Step S50: Process the ambient sound signal using preset transparent transmitter parameters to obtain a compensated sound signal, and play the compensated sound signal through the speaker of the headphone device.
[0059] When the headphone device is set to automatically trigger the transparent transmission mode after detecting that it is in a wearing state, the transparent transmission mode in the headphone device can be turned on after determining that it is in a wearing state. In the transparent transmission mode, the headphone device can pick up the ambient sound signal through the feedforward microphone. Among them, the feedforward microphone is generally arranged on the side where the housing structure of the headphone device contacts the external environment. The headphone device can process the picked up ambient sound signal using preset transparent transmitter parameters to obtain a compensating sound signal for compensating for the sound that the user is blocked by the headphone device and cannot hear. Among them, the preset transparent transmitter parameters can be set in advance as needed, and the processing of the ambient sound signal using the preset transparent transmitter parameters can refer to the signal processing method in the conventional transparent transmission mode, which is not limited here. The headphone device uses a speaker to play a supplementary sound signal so that the user can hear the external environment sound blocked by the headphone device.
[0060] In this embodiment, a first wearing detection sensor is set on the side of the earphone device that contacts the human skin when worn, and a second wearing detection sensor is set on the side away from the human skin. When wearing detection is required, a first detection result obtained by the first wearing detection sensor is obtained, and a second detection result obtained by the second wearing detection sensor is obtained. When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, it is determined that the earphone device is in a wearing state, which can improve the accuracy of wearing detection of the earphone device, thereby improving the user experience of using the earphone.
[0061] Furthermore, in one embodiment, when the earphone device is determined to be in a not-worn state, if it is determined that the transparent transmission mode in the earphone device is in an on state, the transparent transmission mode in the earphone device may be turned off to avoid howling when the earphone device is held in the hand of the user when not being worn.
[0062] Further, based on the above first embodiment, a second embodiment of the headphone wearing detection method of the present invention is proposed. In this embodiment, after step S20, the method further includes:
[0063] Step S60, if it is detected that the first temperature value falls within a first preset temperature range, determining that the first detection result indicates that the earphone device is in a contact state;
[0064] In this embodiment, the first wearing detection sensor and the second wearing detection sensor can be implemented by a dimensional sensor. The temperature sensor can measure the temperature of the environment in which it is located and output a temperature value. The temperature of the human ear canal is different from the temperature of the external environment. In this embodiment, the range of the temperature value can be used to determine whether the position where the temperature sensor is set in the headphone device (that is, the position where the first wearing detection sensor and the second wearing detection sensor are set) is in contact with the user's ear.
[0065] The temperature value detected by the first wearing sensor is hereinafter referred to as the first temperature value, and the temperature value detected by the second wearing sensor is hereinafter referred to as the second temperature value. The headphone device may use the first temperature value obtained as the first detection result, and use the second temperature value as the second detection result.
[0066] After obtaining the first temperature value, the headphone device can detect whether the first temperature value falls within a first preset temperature range. The first preset temperature range can be a temperature range pre-set as required, used to represent the temperature range of the human ear canal. In a specific implementation, the average level can be taken after measuring the population in advance and built into the headphone device, or can be customized and entered by the user of the headphone device.
[0067] If it is detected that the first temperature value falls within the first preset temperature range, the headphone device can determine that the first detection result indicates that the headphone device is in a contact state, that is, it can be determined that the position where the first wearing detection sensor is set in the headphone device is in a contact state. It can be understood that since the first preset temperature range is set according to the temperature range of the ear canal of the human ear, when the first temperature value falls within the range, it means that the position where the first wearing detection sensor is set in the headphone device is most likely in contact with the user's ear canal, and when the position is only in contact with other objects, the result that the position is in a contact state will not be obtained due to the different temperatures of the other objects, thereby avoiding misidentification when the headphone device is not worn but is only covered by other objects. That is, the temperature sensor is used as the wearing detection sensor in this embodiment, and the accuracy of detecting whether the headphone device is in contact with the user's ear canal is higher than that of using a wearing detection sensor based on infrared or capacitance principles.
[0068] Step S70: If it is detected that the second temperature value falls within a second preset temperature range, determining that the second detection result indicates that the headphone device is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
[0069] After obtaining the second temperature value, the headphone device can detect whether the second temperature value falls within a second preset temperature range. The second preset temperature range can be a temperature range pre-set as needed, and the second preset temperature range is different from the first preset temperature range and is used to represent the external environment temperature range. In a specific implementation, the second preset temperature range can be entered by a user of the headphone device, or the headphone device can set the second preset temperature range according to the ambient temperature in the weather forecast data obtained from the network platform.
[0070] If it is detected that the second temperature value falls within the second preset temperature range, the headphone device can determine that the second detection result indicates that the headphone device is in a non-contact state, that is, it can be determined that the position where the second wearing detection sensor is set in the headphone device is in a non-contact state. It can be understood that since the second preset temperature range is set according to the ambient temperature range, when the second temperature value falls within the range, it means that the position where the second wearing detection sensor is set in the headphone device is very likely to not contact the object (such as the user's skin). Therefore, when it is determined that the first detection result indicates that the headphone device is in a contact state and the second detection result indicates that the headphone device is in a non-contact state, it is determined that the headphone device is in a wearing state, which can improve the accuracy of the headphone device in wearing detection.
[0071] Furthermore, in one embodiment, after step S20, the method further includes:
[0072] Step A10, if it is detected that the second temperature value falls within a third preset temperature range, determining that the second detection result indicates that the earphone device is in contact, wherein the third preset temperature range is different from the second preset temperature range;
[0073] After the headphone device obtains the second temperature value, it can determine whether the second temperature value falls within a third preset temperature range. The third preset temperature range can be a temperature range that is pre-set as needed, and the third preset temperature range is different from the second preset temperature range, and is used to represent the temperature range of the user's palm. In a specific embodiment, the third preset temperature range can be entered by the user of the headphone device, or the headphone device can set the third preset temperature range according to the ambient temperature in the weather forecast data obtained from the network platform. It can be understood that the temperature range of the human ear canal generally overlaps or coincides with the temperature range of the human palm, and therefore, the third preset temperature range can be the same as or overlaps with the first preset temperature range.
[0074] If it is detected that the third temperature value falls within the third preset temperature range, the headphone device can determine that the second detection result indicates that the headphone device is in a contact state, that is, it can be determined that the position where the second wearing detection sensor is set in the headphone device is in a contact state. It can be understood that since the third preset temperature range is set according to the temperature range of the user's palm, when the second temperature value falls within the range, it means that the position where the second wearing detection sensor is set in the headphone device is very likely to be in contact with the user's palm.
[0075] Step A20, when the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
[0076] When the headphone device determines that the first detection result indicates that the headphone device is in a contact state, and the second detection result indicates that the headphone device is in a contact state, it can be determined that the headphone device is in a hand-held state. That is, when the user holds the headphone device, the temperature values at the first wearing detection sensor and the second wearing detection sensor will fall into the corresponding temperature range, thereby triggering the headphone device to detect that it is in a hand-held state rather than a wearing state.
[0077] Step A30: If it is detected that the earphone device is in a transparent transmission mode when it is determined that the earphone device is in a hand-held state, the transparent transmission mode is turned off.
[0078] When the earphone device is determined to be in a hand-held state, it can detect whether the earphone device is in a transparent transmission mode, that is, whether the transparent transmission mode is turned on. If it is turned on, the transparent transmission mode is turned off to avoid howling of the earphone device caused by hand-holding.
[0079] Furthermore, in one embodiment, the method further comprises:
[0080] Step A40, obtaining temperature data from a user terminal connected to the headset device, wherein the temperature data is a weather forecast temperature value obtained by the user terminal from a network platform or an ambient temperature value detected by a temperature sensor in the user terminal;
[0081] In this embodiment, in order to further improve the accuracy of wearing detection of the headphone device, the second preset temperature range in the headphone device can be set according to the real-time weather forecast temperature value. In a specific implementation, if the headphone device can be directly connected to the network, the weather forecast temperature value can be directly obtained from the network platform. If the headphone device cannot be connected to the network, the weather forecast temperature value can be obtained from the network platform through the user terminal after being connected to the user terminal.
[0082] Alternatively, in order to further improve the accuracy of wearing detection of the headphone device, the real-time ambient temperature value may be detected by a temperature sensor, and the second preset temperature range may be set according to the real-time ambient temperature value. In a specific embodiment, the headphone device may detect the ambient temperature value by a temperature sensor serving as a second wearing detection sensor, and the headphone device may determine that the position of the second wearing detection sensor is exposed to the external environment according to the instruction triggered by the user, and obtain the ambient temperature value through the second wearing detection sensor; or, the headphone device may detect the ambient temperature value through a temperature sensor in a user terminal connected to the headphone device, the headphone device is connected to the user terminal, and the user terminal sends the temperature value collected by the temperature sensor to the headphone device, wherein the temperature sensor of the user terminal may be set at a position that is not easily blocked by the user holding the user terminal.
[0083] Step A50: setting the second preset temperature range according to the temperature data.
[0084] After the headphone device obtains the temperature data, that is, the weather forecast temperature value or the ambient temperature value, the second preset temperature range can be set according to the temperature value, for example, the temperature value plus a numerical value is used as the upper limit of the temperature range, and a numerical value is subtracted as the lower limit of the temperature range. The specific setting can be based on the needs and is not limited here.
[0085] In one implementation, the time period for the headphone device to set the second preset temperature range can be set as needed, for example, once a day.
[0086] Furthermore, in one embodiment, the method further comprises:
[0087] Step A60, when an ear temperature input instruction triggered by the wearing prompt information output by the earphone device is detected, obtaining a third temperature value input by the first wearing detection sensor;
[0088] In order to further improve the accuracy of wearing detection of the headphone device, considering the difference in human body temperature, the headphone device can set a personalized ear canal temperature range for the user, that is, set a first preset temperature range for the user. Specifically, the headphone device can output a wearing prompt message, which is used to prompt the user to wear the headphones so that the headphone device can record the temperature value of the user's ear canal. The prompt message can be output in the form of voice or text information to the user terminal, and output through the display screen of the user terminal for the user to view.
[0089] After outputting the wearing prompt information, the headphone device detects whether an ear canal temperature recording instruction is received within a certain period of time. Among them, the headphone device can receive a confirmation instruction triggered by the user through voice or button triggering, and the confirmation instruction represents the ear canal temperature recording instruction. That is, when the user hears or sees the wearing prompt information output by the headphone device, the headphone device can be worn and the confirmation instruction can be triggered so that the headphone device can start recording the temperature value.
[0090] After the earphone device detects the ear canal temperature input instruction, the input temperature value (hereinafter referred to as the third temperature value for distinction) is obtained through the first wearing detection sensor. The third temperature value can be regarded as the temperature value in the user's ear canal.
[0091] Step A70: setting the first preset temperature range according to the third temperature value.
[0092] After obtaining the third temperature value, the headphone device can set the first preset temperature range according to the third temperature value, for example, adding a value to the temperature value as the upper limit of the temperature range and subtracting a value as the lower limit of the temperature range. The specific setting can be based on needs and is not limited here.
[0093] In one embodiment, the earphone device may set the first preset temperature range periodically, or may set the first preset temperature range when it is first powered on, or may be triggered to set the first preset temperature range in other scenarios, without specific limitation.
[0094] In addition, an embodiment of the present invention further provides an earphone wearing detection device, wherein the device is deployed in an earphone device, wherein a first wearing detection sensor is arranged on a side of the earphone device in contact with human skin when worn, and a second wearing detection sensor is arranged on a side away from human skin, Figure 3 , the device comprises:
[0095] An acquisition module 10 is used to acquire a first detection result obtained by the first wearing detection sensor, and to acquire a second detection result obtained by the second wearing detection sensor;
[0096] The determination module 20 is configured to determine that the earphone device is in a wearing state when the first detection result indicates that the earphone device is in a contact state and the second detection result indicates that the earphone device is in a non-contact state.
[0097] Further, the first wearing detection sensor and the second wearing detection sensor are both temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, and the second detection result is a second temperature value detected by the second wearing detection sensor, and the determination module 20 is further used for:
[0098] If it is detected that the first temperature value falls within a first preset temperature range, determining that the first detection result indicates that the earphone device is in a contact state;
[0099] If it is detected that the second temperature value falls within a second preset temperature range, it is determined that the second detection result indicates that the headphone device is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
[0100] Furthermore, the determining module 20 is further configured to:
[0101] If it is detected that the second temperature value falls within a third preset temperature range, determining that the second detection result indicates that the headphone device is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
[0102] When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
[0103] The device also includes:
[0104] The closing module is used to close the transparent transmission mode if it is detected that the earphone device is in the transparent transmission mode when it is determined that the earphone device is in the hand-held state.
[0105] Furthermore, the acquisition module 10 is also used for:
[0106] Acquiring temperature data from a user terminal connected to the headset device, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an ambient temperature value detected by a temperature sensor in the user terminal;
[0107] The device also includes:
[0108] The first setting module is used to set the second preset temperature range according to the temperature data.
[0109] Furthermore, the acquisition module 10 is also used for:
[0110] When an ear temperature entry instruction triggered by the wearing prompt information output by the earphone device is detected, acquiring a third temperature value entered by the first wearing detection sensor;
[0111] The device also includes:
[0112] The second setting module is used to set the first preset temperature range according to the third temperature value.
[0113] Furthermore, the device also includes:
[0114] An enabling module, configured to enable a transparent transmission mode in the earphone device if it is determined that the earphone device is in a wearing state;
[0115] The acquisition module 10 is also used to pick up the ambient sound signal through the feedforward microphone in the headphone device in the transparent transmission mode;
[0116] The device also includes:
[0117] The processing module is used to process the ambient sound signal using preset transparent transmitter parameters to obtain a compensated sound signal, and play the compensated sound signal through the speaker of the headphone device.
[0118] Furthermore, the device also includes:
[0119] A monitoring module, used for monitoring the wearing detection instruction in the headphone device;
[0120] The acquisition module is further configured to execute the operations of acquiring the first detection result obtained by the first wearing detection sensor and acquiring the second detection result obtained by the second wearing detection sensor if the wearing detection instruction is monitored.
[0121] The expanded contents of the specific implementation manner of the headphone wearing detection device of the present invention are basically the same as the embodiments of the headphone wearing detection method described above, and will not be elaborated here.
[0122] The earphone device of the present invention includes a structural shell, a communication module, a main control module (such as a microcontroller unit MCU), a speaker, a microphone, a memory, etc. A first wearing detection sensor is provided on the side of the earphone device that contacts the human skin when worn, and a second wearing detection sensor is provided on the side away from the human skin. The main control module may include a microprocessor, an audio decoding unit, a power supply and a power management unit, sensors required by the system, and other active or passive devices (which may be replaced, deleted or added according to actual functions) to realize the reception and playback functions of wireless audio. The earphone device can establish a communication connection with the user terminal through the communication module. The earphone memory may store an earphone wearing detection program, and the microprocessor may be used to call the earphone wearing detection program stored in the memory, and perform the following operations:
[0123] Acquire a first detection result obtained by the first wearing detection sensor, and acquire a second detection result obtained by the second wearing detection sensor;
[0124] When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, it is determined that the earphone device is in a wearing state.
[0125] Further, the first wearing detection sensor and the second wearing detection sensor are both temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, and the second detection result is a second temperature value detected by the second wearing detection sensor. After the operation of obtaining the first detection result detected by the first wearing detection sensor and obtaining the second detection result detected by the second wearing detection sensor, the microprocessor can also be used to call the earphone wearing detection program stored in the memory to perform the following operations:
[0126] If it is detected that the first temperature value falls within a first preset temperature range, determining that the first detection result indicates that the earphone device is in a contact state;
[0127] If it is detected that the second temperature value falls within a second preset temperature range, it is determined that the second detection result indicates that the headphone device is in a non-contact state, wherein the first preset temperature range is different from the second preset temperature range.
[0128] Further, after the operations of obtaining the first detection result obtained by the first wearing detection sensor and obtaining the second detection result obtained by the second wearing detection sensor, the microprocessor may also be used to call the earphone wearing detection program stored in the memory to perform the following operations:
[0129] If it is detected that the second temperature value falls within a third preset temperature range, determining that the second detection result indicates that the headphone device is in a contact state, wherein the third preset temperature range is different from the second preset temperature range;
[0130] When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in a hand-held state;
[0131] If it is determined that the earphone device is in the hand-held state and it is detected that the earphone device is in the transparent transmission mode, the transparent transmission mode is turned off.
[0132] Furthermore, the microprocessor may also be used to call the earphone wearing detection program stored in the memory to perform the following operations:
[0133] Acquiring temperature data from a user terminal connected to the headset device, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an ambient temperature value detected by a temperature sensor in the user terminal;
[0134] The second preset temperature range is set according to the temperature data.
[0135] Furthermore, the microprocessor may also be used to call the earphone wearing detection program stored in the memory to perform the following operations:
[0136] When an ear temperature entry instruction triggered by the wearing prompt information output by the earphone device is detected, acquiring a third temperature value entered by the first wearing detection sensor;
[0137] The first preset temperature range is set according to the third temperature value.
[0138] Further, when the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, after determining that the earphone device is in a wearing state, the microprocessor may also be used to call an earphone wearing detection program stored in a memory to perform the following operations:
[0139] If it is determined that the earphone device is in a wearing state, turning on a transparent transmission mode in the earphone device;
[0140] In the transparent transmission mode, the ambient sound signal is picked up by the feedforward microphone in the headphone device;
[0141] The ambient sound signal is processed using preset transparent transmitter parameters to obtain a compensated sound signal, and the compensated sound signal is played through the speaker of the headphone device.
[0142] Furthermore, before the operations of obtaining the first detection result obtained by the first wearing detection sensor and obtaining the second detection result obtained by the second wearing detection sensor, the microprocessor may also be used to call the earphone wearing detection program stored in the memory and perform the following operations:
[0143] Monitoring the wearing detection instruction in the headphone device;
[0144] If the wearing detection instruction is monitored, the operations of obtaining the first detection result obtained by the first wearing detection sensor and obtaining the second detection result obtained by the second wearing detection sensor are performed.
[0145] The various embodiments of the earphone device and the computer-readable storage medium of the present invention may refer to the various embodiments of the earphone wearing detection method of the present invention, which will not be described in detail here.
[0146] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0147] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0149] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting wearing of an earphone device, characterized in that: The method is applied to an earphone device, wherein a first wearing detection sensor is arranged on a side of the earphone device that contacts human skin when worn, and a second wearing detection sensor is arranged on a side that is away from human skin. The method comprises the following steps: Obtaining a first detection result obtained by the first wearing detection sensor, and obtaining a second detection result obtained by the second wearing detection sensor, wherein the first wearing detection sensor and the second wearing detection sensor are both temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, and the second detection result is a second temperature value detected by the second wearing detection sensor; When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a non-contact state, it is determined that the earphone device is in a wearing state, and a transparent transmission mode in the earphone device is turned on. In the transparent transmission mode, an ambient sound signal is picked up by a feedforward microphone in the earphone device, the ambient sound signal is processed using a preset transparent transmitter parameter to obtain a compensation sound signal, and the compensation sound signal is played through a speaker of the earphone device; When the first detection result indicates that the earphone device is in a non-contact state, or the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in an unworn state, and if the transparent transmission mode is in an on state, turning off the transparent transmission mode in the earphone device; Wherein, after the steps of obtaining the first detection result obtained by the first wearing detection sensor and obtaining the second detection result obtained by the second wearing detection sensor, the method further includes: If it is detected that the first temperature value falls within a first preset temperature range, determining that the first detection result indicates that the earphone device is in a contact state, wherein the first preset temperature range represents a temperature range of a human ear canal; If it is detected that the second temperature value falls within a second preset temperature range, determining that the second detection result indicates that the headphone device is in a non-contact state, wherein the second preset temperature range is used to represent an external environment temperature range; Wherein, the method further comprises: When an ear temperature entry instruction triggered by the wearing prompt information output by the earphone device is detected, acquiring a third temperature value entered by the first wearing detection sensor; Setting the first preset temperature range according to the third temperature value; Wherein, the method further comprises: Acquiring temperature data from a user terminal connected to the headset device, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an ambient temperature value detected by a temperature sensor in the user terminal; Setting the second preset temperature range according to the temperature data; Wherein, after the steps of obtaining the first detection result obtained by the first wearing detection sensor and obtaining the second detection result obtained by the second wearing detection sensor, the method further includes: If it is detected that the second temperature value falls within a third preset temperature range, determining that the second detection result indicates that the headphone device is in a contact state, wherein the third preset temperature range is used to represent a temperature range of a user's palm; When the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a contact state, determining that the earphone device is in a hand-held state; If it is determined that the earphone device is in the hand-held state and it is detected that the earphone device is in the transparent transmission mode, the transparent transmission mode is turned off.
2. The headphone device wearing detection method according to claim 1, characterized in that: Before the steps of acquiring the first detection result obtained by the first wearing detection sensor and acquiring the second detection result obtained by the second wearing detection sensor, the method further includes: Monitoring the wearing detection instruction in the headphone device; If the wearing detection instruction is monitored, the steps of acquiring the first detection result obtained by the first wearing detection sensor and acquiring the second detection result obtained by the second wearing detection sensor are performed.
3. A headphone device wearing detection device, characterized in that: The device is deployed on an earphone device, and a first wearing detection sensor is arranged on a side of the earphone device that contacts human skin when worn, and a second wearing detection sensor is arranged on a side away from human skin. The device comprises: an acquisition module, configured to acquire a first detection result obtained by the first wearing detection sensor, and acquire a second detection result obtained by the second wearing detection sensor, wherein the first wearing detection sensor and the second wearing detection sensor are both temperature sensors, the first detection result is a first temperature value detected by the first wearing detection sensor, and the second detection result is a second temperature value detected by the second wearing detection sensor; a determination module, configured to determine that the earphone device is in a wearing state when the first detection result indicates that the earphone device is in a contact state and the second detection result indicates that the earphone device is in a non-contact state; An enabling module, used to enable the transparent transmission mode in the earphone device; The acquisition module is further configured to pick up the ambient sound signal through the feedforward microphone in the headphone device in the transparent transmission mode; A processing module, configured to process the ambient sound signal using preset transparent transmitter parameters to obtain a compensation sound signal, and play the compensation sound signal through a speaker of the headphone device; The determining module is further configured to determine that the earphone device is in an unworn state when the first detection result indicates that the earphone device is in a non-contact state, or when the second detection result indicates that the earphone device is in a contact state; The determination module is further configured to, if it is detected that the first temperature value falls within a first preset temperature range, determine that the first detection result indicates that the earphone device is in a contact state, wherein the first preset temperature range represents a temperature range of a human ear canal; The determination module is further configured to, if it is detected that the second temperature value falls within a second preset temperature range, determine that the second detection result indicates that the earphone device is in a non-contact state, wherein the second preset temperature range is used to represent an external environment temperature range; The acquisition module is further configured to, when detecting an ear temperature entry instruction triggered by wearing prompt information output by the headphone device, acquire the entered third temperature value through the first wearing detection sensor; The device further comprises a second setting module, configured to set the first preset temperature range according to the third temperature value; The acquisition module is further used to acquire temperature data from a user terminal connected to the headset device, wherein the temperature data is a weather forecast temperature value acquired by the user terminal from a network platform or an ambient temperature value detected by a temperature sensor in the user terminal; The device further comprises a first setting module, configured to set the second preset temperature range according to the temperature data; The determination module is further configured to, if it is detected that the second temperature value falls within a third preset temperature range, determine that the second detection result indicates that the earphone device is in a contact state, wherein the third preset temperature range is different from the second preset temperature range; The determination module is further configured to, when the first detection result indicates that the earphone device is in a contact state, and the second detection result indicates that the earphone device is in a contact state, determine that the earphone device is in a hand-held state; The device further includes a closing module, which is used to close the transparent transmission mode if it is detected that the earphone device is in a transparent transmission mode when it is determined that the earphone device is in a hand-held state.
4. A headphone device, characterized in that: The headphone device comprises: a memory, a processor, and a headphone device wearing detection program stored in the memory and executable on the processor. When the headphone device wearing detection program is executed by the processor, the steps of the headphone device wearing detection method according to any one of claims 1 to 2 are implemented.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a headphone device wearing detection program, and when the headphone device wearing detection program is executed by the processor, the steps of the headphone device wearing detection method according to any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Wireless earphone, detection method and device for wearing state of wireless earphone, and storage medium
CN111366175A
Hearing equipment
CN208434109U