State determination method and device, electronic device and readable storage medium
Through the combination of multiple detection areas and sensors, the accuracy of TWS headset status detection is improved, the problems of false triggering and high energy consumption in the existing technology are solved, and higher working reliability and energy efficiency are achieved.
Patent Information
- Application Number
- CN202210727033.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-06-24
AI Technical Summary
The accuracy of the existing TWS headset status detection solution is low, causing the headset to be easily triggered accidentally when the user holds or places it, reducing working reliability and increasing energy consumption.
Using multiple detection areas and corresponding sensors, by obtaining the value of each detection area, combined with the preset values and conditions, it is determined whether the earphones are worn, avoiding false triggers and optimizing energy consumption.
It improves the accuracy of headphone status detection, avoids false triggering, improves working reliability and reduces energy consumption.
Smart Images

Figure CN115278431B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to a state determination method and device, an electronic device, and a readable storage medium. Background Art
[0002] The application and popularization of TWS (True Wireless Stereo) headphones have freed users from the constraints of "wires". In order to improve the usability of TWS headphones and the stability of interactive operations, most TWS headphones are equipped with a wearing detection module. When using TWS headphones, the wearing detection module on it detects the usage status of the TWS headphones, and then controls the TWS headphones to perform various tasks.
[0003] However, the current headphone status detection scheme has low accuracy in detecting the usage status of the headphone. When the user holds the headphone in his hand or places the headphone on a table or in a pocket, the distance sensing sensor (such as a wearing sensor or an infrared sensor, etc.) on it will be triggered, causing the headphone to be triggered by mistake, which not only reduces the reliability of the headphone operation, but also generates unnecessary energy consumption. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a state determination method and device, an electronic device and a readable storage medium, which can solve the problem of low accuracy of the detection results of the headphone state in the prior art, thereby reducing the reliability of the headphone operation and generating unnecessary energy consumption.
[0005] In a first aspect, an embodiment of the present application provides a state determination method, which is applied to an earphone, wherein the earphone includes N first detection areas and M second detection areas, and the state determination method includes: obtaining N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas; when at least one first detection value among the N first detection values is greater than or equal to a first preset value, determining that the earphone is in a fallen-off state; when the N first detection values are less than the first preset value and the M second detection values meet a first preset condition, determining that the earphone is in a fallen-off state; wherein, when the earphone is in a worn state, there is a distance between the N first detection areas and the skin, and the M second detection areas are in contact with the skin.
[0006] In a second aspect, an embodiment of the present application provides a state determination device, which is applied to an earphone, wherein the earphone includes N first detection areas and M second detection areas, and the state determination device includes: an acquisition unit, used to acquire N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas; a processing unit, used to determine that the earphone is in a fallen-off state when at least one first detection value among the N first detection values is greater than or equal to a first preset value; the processing unit is also used to determine that the earphone is in a fallen-off state when the N first detection values are less than the first preset value and the M second detection values meet the first preset condition; wherein, when the earphone is in a worn state, there is a distance between the N first detection areas and the skin, and the M second detection areas are in contact with the skin.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the state determination method of the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a program or instruction stored thereon, which, when executed by a processor, implements the steps of the state determination method of the first aspect.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the state determination method of the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the state determination method of the first aspect.
[0011] In the embodiment of the present application, when determining the state of the earphone, N first detection values corresponding to the N first detection areas in the earphone and M second detection values corresponding to the M second detection areas are obtained, and then when at least one of the N first detection values is greater than or equal to the first preset value, it is determined that the earphone is in a state of falling off, and when the N first detection values are less than the first preset value and the M second detection values meet the first preset condition, it is determined that the earphone is in a state of falling off. Wherein, when the earphone is in the wearing state, there is a distance between the N first detection areas in the earphone and the skin, and the M second detection areas in the earphone are in contact with the skin.
[0012] Through the above-mentioned state determination method, the earphone is divided into N first detection areas with a distance from the human ear skin and M second detection areas in contact with the human ear skin according to the contact between the human ear skin and the earphone in the normal wearing state. On this basis, when determining the state of the earphone, each detection value corresponding to each detection area in the earphone is obtained, and then when any first detection value is greater than or equal to the first preset value, or when each first detection value is less than the first preset value and the M second detection values meet the first preset condition, it is determined that the earphone is in a falling-off state.
[0013] In this way, by combining the first detection values of each first detection area that does not contact the human ear skin when the earphone is worn and the second detection values of each second detection area that can contact the human ear skin when the earphone is worn, it is determined whether the earphone is in a fallen-off state, thereby improving the accuracy of determining the earphone status. In this way, when the earphone is in a fallen-off state such as when the user holds the earphone in the hand or places the earphone on a desk or pocket, the earphone is avoided from being accidentally triggered, thereby improving the reliability of the earphone operation and reducing the energy consumption of the earphone. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flow chart of a state determination method provided in an embodiment of the present application;
[0015] Figure 2 One of the structural schematic diagrams of the earphone provided in the embodiment of the present application;
[0016] Figure 3 The second structural diagram of the earphone provided in the embodiment of the present application;
[0017] Figure 4 The third structural diagram of the earphone provided in the embodiment of the present application;
[0018] Figure 5 A structural block diagram of a state determination device provided in an embodiment of the present application;
[0019] Figure 6 One of the hardware schematic diagrams of the electronic device provided in the embodiment of the present application;
[0020] Figure 7 The second hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0023] The embodiment of the first aspect of the present application proposes a state determination method. The execution subject of the technical solution of the state determination method provided in the embodiment of the present application can be a state determination device, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. In order to more clearly describe the state determination method provided in the embodiment of the present application, the execution subject of the state determination method is exemplarily described as a state determination device in the following method embodiment.
[0024] The state determination method provided in the embodiment of the first aspect of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0025] like Figure 1 As shown, an embodiment of the present application provides a state determination method, which is applied to an earphone, and the earphone includes N first detection areas and M second detection areas. The method may include the following S102 to S106:
[0026] S102: Obtain N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas.
[0027] The earphone is divided into multiple detection areas according to the contact between the ear and the earphone in the normal wearing state. It can be understood that detecting the earphone status in areas can avoid misjudgment to a certain extent, thereby improving the accuracy of the detection result of the earphone status.
[0028] Specifically, the earphone is divided into N first detection areas and M second detection areas according to the contact between the ear and the earphone in a normal wearing state. When the earphone is in a wearing state, there is a distance between the N first detection areas and the skin of the ear, and the M second detection areas are in contact with the skin of the ear.
[0029] For example, Figure 2 and Figure 3As shown, according to the contact between the human ear and the earphone in a normal wearing state, the earphone includes a first area 202, a second area 204 and a third area 206. When the earphone is in the wearing state, the second area 204 and the third area 206 are in contact with the skin of the human ear, and there is a gap between the first area 202 and the skin of the human ear, that is, the first area 202 does not contact the skin of the human ear.
[0030] Furthermore, N and M are both positive integers greater than or equal to 1, that is, in the state determination method proposed in the embodiment of the present application, the usage state of the earphone is determined based on the area detection values of at least one first detection area that is not in contact with the skin of the human ear and at least one second detection area that is in contact with the skin of the human ear.
[0031] In actual application, since different types of headphones have different contact conditions with the human ear skin, and different parts of the same type of headphones have different contact conditions with the human ear skin, the user can flexibly choose how to set or divide the multiple detection areas in the headphones according to actual conditions, and no specific restrictions are made here.
[0032] Furthermore, the N first detection values correspond one-to-one to the N first detection areas, and each first detection value is used to characterize the deviation between the actual position of the first detection area in the earphone to which it corresponds and the standard position of the first detection area in the normal wearing state of the earphone. Among them, the first detection value can be specifically expressed as the distance value between the first detection area to which it corresponds and the skin of the human ear, and the first detection value can also be expressed as the skin capacitance value detected by the first detection area to which it corresponds. When the first detection value is large, it means that there is a large deviation between the actual position of the first detection area corresponding to the first detection value and the standard position of the first detection area in the normal wearing state of the earphone, and when the first detection value is small or even zero, it means that the actual position of the first detection area corresponding to the first detection value has a small deviation from the standard position of the first detection area in the normal wearing state of the earphone, or even no deviation.
[0033] Furthermore, the M second detection values correspond to the M second detection areas one by one, and each second detection value is used to characterize the deviation between the actual position of the second detection area in the earphone corresponding to it and the standard position of the second detection area in the normal wearing state of the earphone. According to the different specific expressions of the second detection value, the corresponding relationship between the numerical value of the second detection value and the deviation between the actual position of the second detection area represented by it and the standard position is also different.
[0034] For example, in the case where the second detection value is expressed as the skin capacitance value detected by the second detection area to which it corresponds, when the second detection value is large, it means that the actual position of the second detection area corresponding to the second detection value has a small deviation from the standard position of the second detection area in the normal wearing state of the headset, or even no deviation; when the second detection value is small or even zero, it means that there is a large deviation between the actual position of the second detection area corresponding to the second detection value and the standard position of the second detection area in the normal wearing state of the headset. In the case where the second detection value is expressed as the distance value between the second detection area to which it corresponds and the skin of the human ear, when the second detection value is large, it means that the actual position of the second detection area corresponding to the second detection value has a large deviation from the standard position of the first detection area in the normal wearing state of the headset; when the second detection value is small or even zero, it means that the actual position of the second detection area corresponding to the second detection value has a small deviation from the standard position of the second detection area in the normal wearing state of the headset, or even no deviation.
[0035] In actual application, the user can flexibly set the correspondence between the second detection area represented by the second detection value and the contact state of the human ear skin according to the specific expression form of the second detection value, and no specific limitation is made here.
[0036] In addition, in actual application, the first detection value and the second detection value can be obtained by a detection device such as a sensor corresponding to each detection area set in the headset, or by detecting the current value, voltage value, etc. of each detection area in the headset. The user can select the method for obtaining the first detection value and the second detection value according to actual conditions, and no specific limitation is made here.
[0037] S104: When at least one first detection value among the N first detection values is greater than or equal to a first preset value, determine that the earphone is in a dropped-off state.
[0038] The first detection value is used to characterize the deviation between the actual position of the first detection area in the earphone corresponding to it and the standard position of the first detection area in the normal wearing state of the earphone. Specifically, when the first detection value is large, it means that there is a large deviation between the actual position of the first detection area corresponding to the first detection value and its standard position, and when the first detection value is small or even zero, it means that the deviation between the actual position of the first detection area corresponding to the first detection value and its standard position is small, or even no deviation.
[0039] Furthermore, the above-mentioned first preset value is a value pre-stored in the storage device of the headset, which can be used as a basis for determining the numerical value of the above-mentioned first detection value, that is, as a criterion for determining whether the actual position of the first detection area on the headset meets the normal headset wearing condition. Specifically, when the first detection value is greater than or equal to the first preset value, it means that the first detection value is large, that is, it means that the deviation between the actual position of the first detection area corresponding to the first detection value and its standard position is large, that is, it means that the actual position of the first detection area does not meet the normal headset wearing condition; and when the first detection value is less than the above-mentioned first preset value, it means that the first detection value is small, that is, it means that the deviation between the actual position of the first detection area corresponding to the first detection value and its standard position is small, that is, it means that the actual position of the first detection area meets the normal headset wearing condition.
[0040] It is understandable that when the earphone is in a normal wearing state, the N first detection areas in the earphone are not in contact with human skin, and the N first detection areas are located relatively close to the skin of the human ear. Therefore, once it is detected that one of the N first detection areas is in contact with human skin or is far away from the skin of the human ear, it can be directly determined that the earphone is in a state of falling off.
[0041] Specifically, when determining the state of the earphone, N first detection values detected in the N first detection areas in the earphone can be obtained respectively, and then the obtained N first detection values are compared with the first preset values pre-stored in the storage device of the earphone. Once it is detected that the value of one of the above N first detection values is greater than or equal to the above first preset value, it is determined that the earphone is in a detached state.
[0042] In addition, it should be noted that the above-mentioned first preset value can be obtained by testing the headphones multiple times before the headphones leave the factory. The technicians can also set the specific value of the above-mentioned first preset value according to the actual application situation, and no specific limitation is made here.
[0043] S106: When the N first detection values are less than the first preset value and the M second detection values meet the first preset condition, determine that the earphone is in a detached state.
[0044] The first detection value is used to characterize the deviation between the actual position of the first detection area in the earphone corresponding to it and the standard position of the first detection area in the normal wearing state of the earphone. The first preset value is used as a basis for determining the numerical value of the first detection value, that is, as a criterion for determining whether the actual position of the first detection area on the earphone meets the normal wearing state of the earphone.
[0045] Specifically, when the first detection value is greater than or equal to the first preset value, it means that the first detection value is large, which means that the actual position of the first detection area does not conform to the normal headphone wearing condition; and when the first detection value is less than the above-mentioned first preset value, it means that the first detection value is small, which means that the actual position of the first detection area conforms to the normal headphone wearing condition.
[0046] Furthermore, the second detection value is used to characterize the deviation between the actual position of the second detection area in the earphone corresponding to it and the standard position of the second detection area in the normal wearing state of the earphone. The first preset condition is used to describe the numerical values of the M second detection values when there is a large deviation between the actual positions of the M second detection areas in the earphone and their standard positions.
[0047] It is understandable that when the N first detection values corresponding to the N first detection areas in the headset are all smaller than the above-mentioned first preset value, it means that the actual positions of the N first detection areas in the headset are all in line with the normal wearing conditions of the headset. However, in the case where the above-mentioned first detection value is expressed as the skin capacitance value detected by the first detection area to which it corresponds, when the headset is placed on a desktop or in a pocket, although the skin capacitance value detected in the N first detection areas, that is, the value of the first detection value, is also small, the headset is in a state of falling off. Therefore, when it is detected that the above-mentioned N first detection values are all smaller than the above-mentioned first preset value, the state of the headset cannot be directly determined, and it is necessary to further determine the actual state of the headset in combination with the specific values of the M second detection values detected by the M second detection areas in the headset.
[0048] Specifically, when determining the state of the earphone, N first detection values detected by the N first detection areas in the earphone and M second detection values detected by the M second detection areas in the earphone can be obtained respectively, and the obtained N first detection values are compared with the first preset value pre-stored in the storage device of the earphone, and the specific values of the obtained M second detection values are analyzed and processed. Then, when the values of the above-mentioned N first detection values are all smaller than the above-mentioned first preset value, and the values of the M second detection values meet the above-mentioned first preset condition, that is, there is a large deviation between the actual positions of the M second detection areas of the earphone and their standard positions, it is determined that the earphone is in a detached state.
[0049] In the above-mentioned state determination method provided by the embodiment of the present application, the earphone is divided into N first detection areas with a spacing between the human ear skin and the human ear skin, and M second detection areas in contact with the human ear skin according to the contact between the human ear skin and the earphone in the normal wearing state. On this basis, when determining the state of the earphone, each detection value corresponding to each detection area in the earphone is obtained, and then when any first detection value is greater than or equal to the first preset value, or when each first detection value is less than the first preset value and the M second detection values meet the first preset condition, it is determined that the earphone is in a falling-off state. In this way, the earphone state is determined by combining the first detection values of each first detection area that does not contact the human ear skin when the earphone is worn, and the second detection values of each second detection area that can contact the human ear skin when the earphone is worn, so as to improve the accuracy of the determination of the earphone state, thereby avoiding the earphone from being triggered by mistake when the user holds the earphone or places the earphone on the desktop and pocket, and the reliability of the earphone operation is improved while reducing the energy consumption of the earphone.
[0050] In the embodiment of the present application, after the above S102, the above state determination method further includes the following S108:
[0051] S108: When the N first detection values are less than the first preset value and at least one second detection value among the M second detection values meets a second preset condition, determine that the earphone is in the wearing state.
[0052] The first detection value is used to characterize the deviation between the actual position of the first detection area in the earphone corresponding to it and the standard position of the first detection area in the normal wearing state of the earphone. The first preset value is used as a basis for determining the numerical value of the first detection value, that is, as a criterion for determining whether the actual position of the first detection area on the earphone meets the normal wearing state of the earphone.
[0053] Specifically, when the first detection value is greater than or equal to the first preset value, it means that the first detection value is large, which means that the actual position of the first detection area does not conform to the normal headphone wearing condition; and when the first detection value is less than the above-mentioned first preset value, it means that the first detection value is small, which means that the actual position of the first detection area conforms to the normal headphone wearing condition.
[0054] Furthermore, the second detection value is used to characterize the deviation between the actual position of the second detection area in the earphone corresponding to it and the standard position of the second detection area when the earphone is normally worn.
[0055] Furthermore, the second preset condition is used to describe the numerical value of the second detection value corresponding to a second detection area among the M second detection areas of the headset when the deviation between the actual position of the second detection area and its standard position is small.
[0056] It is understandable that when the N first detection values corresponding to the N first detection areas in the headset are all smaller than the above-mentioned first preset value, it means that the actual positions of the N first detection areas in the headset are in line with the normal wearing condition of the headset. However, when the above-mentioned first detection value is expressed as the skin capacitance value detected by the first detection area to which it corresponds, when the headset is placed on a desk or in a pocket and the headset is in a detached state, the skin capacitance value detected in the N first detection areas, that is, the value of the first detection value, is also small. Therefore, when it is detected that the above-mentioned N first detection values are all smaller than the above-mentioned first preset value, the state of the headset cannot be directly determined, and it is necessary to further determine the actual state of the headset in combination with the specific values of the M second detection values detected by the M second detection areas in the headset.
[0057] Specifically, when determining the state of the earphone, N first detection values detected by the N first detection areas in the earphone and M second detection values detected by the M second detection areas in the earphone can be obtained respectively, and the obtained N first detection values are compared with the first preset value pre-stored in the storage device of the earphone, and the specific values of the obtained M second detection values are analyzed and processed, and then when the values of the above N first detection values are all smaller than the above first preset value, and the value of at least one second detection value meets the above second preset condition, that is, the deviation between the actual position of at least one second detection area and its standard position is small, it is determined that the earphone is in a wearing state.
[0058] In the above-mentioned embodiment provided by the present application, when determining the state of the earphone, after obtaining N first detection values of N first detection areas in the earphone, and obtaining M second detection values of M second detection areas in the earphone, it is also determined that the earphone is in the wearing state when each first detection value is less than the first preset value, and at least one second detection value meets the second preset condition. In this way, the state of the earphone is determined by combining the first detection values of each first detection area that does not contact the skin of the human ear when the earphone is worn, and the second detection values of each second detection area that can contact the skin of the human ear when the earphone is worn, thereby improving the accuracy of determining the state of the earphone, thereby preventing the earphone from being accidentally triggered when the user holds the earphone or places the earphone on a desk or pocket, and reducing the energy consumption of the earphone while improving the reliability of the earphone operation.
[0059] In an embodiment of the present application, the earphone includes N first sensors, the N first sensors are respectively used to detect N first detection areas, and the N first detection values are respectively used to indicate the contact status between the first detection areas and the skin; wherein, when the first sub-detection value among the N first detection values is greater than or equal to the first preset value, the first detection area corresponding to the first sub-detection value is in contact with the skin; when the first sub-detection value among the N first detection values is less than the first preset value, the first detection area corresponding to the first sub-detection value has a distance from the skin.
[0060] In the state determination method proposed in the embodiment of the present application, the above-mentioned earphone includes N first sensors.
[0061] In actual application, the N first sensors correspond one-to-one to the N first detection areas in the earphone, and each first sensor detects the first detection area corresponding to it, so as to obtain the first detection value of the first detection area.
[0062] The number of the first sensors can be multiple. It is understandable that when a user wears the earphone normally, the relative position between the earphone and the ear is fixed within a certain range. Therefore, after locking the relative position between the earphone and the ear under normal wearing conditions, Figure 4 As shown, multiple first sensors can be set corresponding to multiple first detection areas 208 on the earphone that do not contact the human ear skin, so that the multiple first sensors can detect the multiple first detection areas 208 in the earphone, and then determine the state of the earphone. In this way, the multiple first sensors can be used to determine whether the actual positions of the multiple first detection areas 208 on the earphone are consistent with the normal earphone wearing situation, which can effectively improve the accuracy of earphone falling off recognition, thereby improving the accuracy of earphone state determination and reducing the possibility of the earphone being triggered by mistake.
[0063] Furthermore, the first sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the first detection value is determined according to the actual type of the first sensor to which it corresponds.
[0064] Specifically, when the above-mentioned first sensor is a proximity sensor, the above-mentioned first detection value is specifically expressed as the distance value between the first detection area corresponding to it and the skin of the human ear. When the above-mentioned first sensor is a wearable sensor, the above-mentioned first detection value is specifically expressed as the skin capacitance value detected by the first detection area corresponding to it.
[0065] Furthermore, the first detection value is used to indicate a contact state between the corresponding first detection area in the earphone and the skin.
[0066] Specifically, when the first sub-detection value among the N first detection values is greater than or equal to the first preset value, it means that the skin capacitance value detected by the first detection area corresponding to the first sub-detection value is large, or the distance between the first detection area and the human ear skin is large (such as when the user holds the earphone), and this means that the first detection area corresponding to the first sub-detection value is in contact with the human skin. When the first sub-detection value among the N first detection values is less than the first preset value, it means that the skin capacitance value detected by the first detection area corresponding to the first sub-detection value is small, or the distance between the first detection area and the human ear skin is small (such as when the earphone is worn normally), and this means that there is a distance between the first detection area corresponding to the first sub-detection value and the human skin, that is, the first detection area is not in contact with the human skin.
[0067] It is understandable that when the earphone is in a normal wearing state, none of the N first detection areas in the earphone is in contact with human skin. Therefore, in the process of determining the state of the earphone, once it is determined that the first sub-detection value among the N first detection values is greater than or equal to the above-mentioned first preset value, that is, it is determined that a certain first detection area among the N first detection areas is in contact with human skin, it can be directly determined that the earphone is in a falling-off state.
[0068] In the above embodiment provided by the present application, the earphone includes N first sensors for detecting N first detection areas respectively, and the above N first detection values are respectively used to indicate the contact state between the first detection area and the skin. On this basis, the contact state between the N first detection areas in the earphone and the skin can be determined according to the N first detection values detected by the N first sensors, and then the earphone state can be determined. In this way, the accuracy of determining the earphone state is improved, and the earphone is prevented from being falsely triggered when the user holds the earphone or places the earphone on a desk or pocket, thereby improving the reliability of the earphone operation while reducing the energy consumption of the earphone.
[0069] In an embodiment of the present application, the earphone includes M second sensors, the M second sensors are respectively used to detect M second detection areas, and the M second detection values are respectively used to indicate the contact status between the second detection area and the skin; wherein, when the second sub-detection value among the M second detection values satisfies the second preset condition, the second detection area corresponding to the second sub-detection value is in contact with the skin; when the second sub-detection value among the M second detection values satisfies the first preset condition, the second detection area corresponding to the second sub-detection value has a distance from the skin.
[0070] In the state determination method proposed in the embodiment of the present application, the above-mentioned earphone includes M second sensors.
[0071] In actual application, the M second sensors correspond one-to-one to the M second detection areas in the earphone, and each second sensor detects the second detection area corresponding to it, so as to obtain the second detection value of the second detection area.
[0072] The second sensor may be a wearable sensor or a proximity sensor, and the specific form of expression of the second detection value is determined according to the actual type of the corresponding second sensor.
[0073] Specifically, when the above-mentioned second sensor is a proximity sensor, the above-mentioned second detection value is specifically expressed as the distance value between the second detection area corresponding to it and the skin of the human ear. When the above-mentioned second sensor is a wearable sensor, the above-mentioned second detection value is specifically expressed as the skin capacitance value detected by the second detection area corresponding to it.
[0074] Furthermore, the first preset condition is used to describe the numerical value of the second detection value when there is a large deviation between the actual position of the second detection area in the headset and its standard position. The second preset condition is used to describe the numerical value of the second detection value corresponding to the second detection area when the deviation between the actual position of the second detection area in the headset and its standard position is small.
[0075] Furthermore, the second detection value is used to indicate the contact state between the corresponding second detection area in the earphone and the skin.
[0076] Specifically, when the second sub-detection value among the M second detection values satisfies the above-mentioned second preset condition, it means that the deviation between the actual position of the second detection area corresponding to the second sub-detection value and its standard position is small, that is, the skin capacitance value detected in the second detection area is large, or the distance between the second detection area and the human ear skin is small, and at this time, it means that the second detection area corresponding to the second sub-detection value is in contact with the human skin. When the second sub-detection value among the M second detection values satisfies the above-mentioned first preset condition, it means that the deviation between the actual position of the second detection area corresponding to the second sub-detection value and its standard position is large, that is, the skin capacitance value detected in the second detection area is small (such as when the earphone is placed on a desktop or pocket), or the distance between the second detection area and the human ear skin is large (such as when the user holds the earphone or the earphone is placed on a desktop or pocket), and at this time, it means that the second detection area corresponding to the second sub-detection value has a distance from the skin, that is, the second detection area corresponding to the second sub-detection value is not in contact with the human skin.
[0077] In the above-mentioned embodiment provided by the present application, the earphone includes M second sensors respectively used to detect M second detection areas, and the above-mentioned M second detection values are respectively used to indicate the contact state between the second detection area and the skin. On this basis, the contact state between the M second detection areas in the earphone and the skin can be determined according to the M second detection values detected by the M second sensors, and then the earphone state can be determined. In this way, the accuracy of determining the earphone state is improved, and the earphone is prevented from being falsely triggered when the user holds the earphone or places the earphone on a desk or pocket, thereby improving the reliability of the earphone operation while reducing the energy consumption of the earphone.
[0078] In an embodiment of the present application, the first sensor is a wearable sensor or a proximity sensor; when the first sensor is a wearable sensor, the first detection value is a first capacitance value of the skin; when the first sensor is a proximity sensor, the first detection value is a first distance value between the proximity sensor and the skin.
[0079] In the state determination method proposed in the embodiment of the present application, the first sensor may specifically be a wearing sensor or a proximity sensor.
[0080] Furthermore, the specific expression form of the above-mentioned first detection value is determined according to the actual type of the first sensor to which it corresponds.
[0081] Specifically, when the first sensor is a wearable sensor, the first detection value is specifically represented by the first capacitance value of the skin detected by the first detection area corresponding to it. When the first sensor is a proximity sensor, the first detection value is specifically represented by the first distance value between the first detection area corresponding to it and the skin of the human ear.
[0082] Wherein, in the case where the first detection value is the first capacitance value of the skin, the first capacitance value can be used to characterize the contact area between the first detection area corresponding thereto and the human skin, and the numerical value of the first capacitance value is proportional to the contact area between the first detection area and the human skin. That is, the larger the first capacitance value, the larger the contact area between the first detection area corresponding to the first capacitance value and the human skin, and the smaller the first capacitance value, the smaller the contact area between the first detection area corresponding to the first capacitance value and the human skin.
[0083] It is understandable that when the earphone is in a normal wearing state, the N first detection areas in the earphone are not in contact with the human skin, and the N first detection areas are located close to the human ear skin. Therefore, in the process of determining the state of the earphone, the contact area between the corresponding first detection area and the human skin can be determined according to the first capacitance value obtained, or the distance between the first detection area and the human ear skin can be determined according to the first distance value obtained, so as to determine the deviation between the actual position of the first detection area and the standard position of the first detection area when the earphone is normally worn, so as to subsequently determine the state of the earphone according to the deviation.
[0084] In the above embodiment provided by the present application, the above first sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the above first detection value is determined according to the actual type of the first sensor to which it corresponds. In this way, the first detection area can be detected by changing different types of first sensors, so as to determine the state of the earphone, which ensures the accuracy of the determination of the earphone state and improves the flexibility of the determination of the earphone state and the design of the earphone.
[0085] In an embodiment of the present application, the second sensor is a wearable sensor or a proximity sensor; when the second sensor is a wearable sensor, the second detection value is a second capacitance value of the skin, the first preset condition is that the second detection value is less than the second preset value, and the second preset condition is that the second detection value is greater than or equal to the second preset value; when the second sensor is a proximity sensor, the second detection value is a second distance value between the proximity sensor and the skin, the first preset condition is that the second detection value is greater than the third preset value, and the second preset condition is that the second detection value is less than or equal to the third preset value.
[0086] In the state determination method proposed in the embodiment of the present application, the second sensor may specifically be a wearing sensor or a proximity sensor.
[0087] Furthermore, the specific expression form of the second detection value is determined according to the actual type of the second sensor to which it corresponds.
[0088] Specifically, in the case where the second sensor is a wearable sensor, the second detection value is specifically expressed as a second capacitance value of the skin detected by the second detection area corresponding thereto, and the second capacitance value can be used to characterize the contact area between the second detection area corresponding thereto and the human skin. On this basis, the first preset condition is that the second detection value is less than the second preset value, that is, the contact area between the second detection area and the human skin is small, and the second preset condition is that the second detection value is greater than or equal to the second preset value, that is, the contact area between the second detection area and the human skin is large.
[0089] Furthermore, in the case where the second sensor is a proximity sensor, the second detection value is specifically expressed as a second distance value between the second detection area corresponding thereto and the skin of the human ear. On this basis, the first preset condition is that the second detection value is greater than the third preset value, that is, the distance between the second detection area and the skin of the human ear is larger, and the second preset condition is that the second detection value is less than or equal to the third preset value, that is, the distance between the second detection area and the skin of the human ear is smaller.
[0090] It should be noted that the second preset value and the third preset value can be obtained by testing the headset multiple times before the headset leaves the factory. The technician can also set the specific values of the second preset value and the third preset value according to the actual application situation, and no specific limitation is made here.
[0091] In the above embodiment provided by the present application, the above second sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the above second detection value is determined according to the actual type of the second sensor to which it corresponds. In this way, the second detection area can be detected by changing different types of second sensors, so as to determine the state of the earphone, which ensures the accuracy of the determination of the state of the earphone and further improves the flexibility of the determination of the state of the earphone and the design of the earphone.
[0092] In addition, it should be noted that in actual application, the first sensor and the second sensor may also be inductive sensors, pressure sensors, light sensors and other types of sensors, and users may choose according to actual conditions, and no specific restrictions are made here.
[0093] Among them, when the above-mentioned first sensor and the second sensor are pressure sensors, the detection value of each area is the pressure value detected by the pressure sensor; when the above-mentioned first sensor and the second sensor are inductance sensors, the detection value of each area is the inductance value detected by the inductance sensor; when the above-mentioned first sensor and the second sensor are photosensors, the detection value of each area is the photosensitive signal value detected by the photosensor.
[0094] To summarize, the state determination method provided in the embodiment of the present application, combined with the N first detection values of the N first detection areas that do not contact the human ear skin when the earphone is worn, and the M second detection values of the M second detection areas that can contact the human ear skin when the earphone is worn, accurately determines the state of the earphone, thereby improving the accuracy of determining the state of the earphone, thereby avoiding the earphone from being accidentally triggered when the user holds the earphone in his hand or places the earphone on a desk or pocket and other situations where the earphone is in a detached state, thereby improving the reliability of the earphone operation and reducing the energy consumption of the earphone.
[0095] In the actual application process, a logic judgment table can be pre-stored in the storage interval of the state determination device, and the logic judgment table includes the comparison result of the first detection value of each first detection area in the earphone with the first preset value, wherein the first detection value is greater than or equal to the first preset value, and is recorded as "1", and the first detection value is less than the first preset value. The logic judgment table also includes the matching result of the second detection value of each second detection area in the earphone with the first preset condition or the second preset condition, wherein the second detection value is recorded as "0" when it meets the first preset condition, and is recorded as "1" when it meets the second preset condition; the logic judgment table also includes the judgment result of the earphone state of the first detection value and the second detection value in each case.
[0096] On this basis, when judging the status of the earphone, the first detection value of each first detection area in the earphone can be compared with the first preset value, and the second detection value of each second detection area in the earphone can be compared with the first preset condition or the second preset condition, thereby obtaining a group of logical judgment values composed of "0" or "1", and then comparing this group of logical judgment values with multiple groups of logical judgment values in the above-mentioned logical judgment table to determine the status of the earphone.
[0097] The state determination method proposed in this application is described below through 8 specific embodiments:
[0098] In embodiment 1, the earphone includes a first wearing sensor and a second wearing sensor, wherein the first wearing sensor is used to detect a first detection area on the earphone to obtain a first capacitance value, and the second wearing sensor is used to detect a second detection area on the earphone to obtain a second capacitance value. On this basis, when determining the state of the earphone, the earphone state can be determined specifically according to the logical judgment rules in the following Table 1. Among them, the first capacitance value is greater than or equal to the first preset value and is recorded as "1", the first capacitance value is less than the first preset value and is recorded as "0", the second capacitance value is greater than or equal to the second preset value and is recorded as "1", and the second capacitance value is less than the second preset value and is recorded as "0".
[0099] Table 1: Headphone status logic judgment table 1
[0100]
[0101] It can be seen from Table 1 above that when the earphone includes two wearing sensors that respectively detect the first detection area and the second detection area on the earphone to determine the state of the earphone, when the first capacitance value is greater than or equal to the first preset value, and when the first capacitance value is less than the first preset value and the second capacitance value is less than the second preset value, the earphone is determined to be in a detached state; and when the first capacitance value is less than the first preset value and the second capacitance value is greater than or equal to the second preset value, the earphone is determined to be in a wearing state.
[0102] In embodiment 2, the earphone includes a first wearing sensor, a second wearing sensor and a third wearing sensor, wherein the first wearing sensor is used to detect a first detection area on the earphone to obtain a first capacitance value, and the second wearing sensor and the third wearing sensor are used to detect a second detection area on the earphone to obtain a second capacitance value. On this basis, when determining the state of the earphone, the earphone state can be determined specifically according to the logical judgment rules in the following Table 2. Among them, the first capacitance value is greater than or equal to the first preset value and is recorded as "1", the first capacitance value is less than the first preset value and is recorded as "0", the second capacitance value is greater than or equal to the second preset value and is recorded as "1", and the second capacitance value is less than the second preset value and is recorded as "0".
[0103] It can be seen from Table 2 that when the earphone includes a wearing sensor for detecting a first detection area on the earphone, and two wearing sensors for detecting a second detection area on the earphone, when judging the state of the earphone, when the first capacitance value detected by the first wearing sensor is greater than or equal to the first preset value, and when the first capacitance value detected by the first wearing sensor is less than the first preset value, and the second capacitance values detected by the second wearing sensor and the third wearing sensor are both less than the second preset value, the earphone is judged to be in a fallen-off state; when the first capacitance value detected by the first wearing sensor is less than the first preset value, and the second capacitance value detected by the second wearing sensor and / or the third wearing sensor is greater than or equal to the second preset value, the earphone is judged to be in a wearing state.
[0104] Table 2: Headphone status logic judgment table 2
[0105]
[0106] In embodiment 3, the headset includes a first proximity sensor, a second proximity sensor and a third proximity sensor, wherein the first proximity sensor is used to detect a first detection area on the headset to obtain a first distance value, and the second proximity sensor and the third proximity sensor are both used to detect a second detection area on the headset to obtain a second distance value. On this basis, when determining the state of the headset, the headset state can be determined specifically according to the logical judgment rules in the following Table 3. Among them, the first distance value greater than or equal to the first preset value is recorded as "1", the first distance value less than the first preset value is recorded as "0", the second distance value greater than the third preset value is recorded as "0", and the second distance value less than or equal to the third preset value is recorded as "1".
[0107] It can be seen from Table 3 that when the earphone includes a proximity sensor for detecting a first detection area on the earphone, and two proximity sensors for detecting a second detection area on the earphone, when determining the state of the earphone, when the first distance value detected by the first proximity sensor is greater than or equal to the first preset value, and when the first distance value detected by the first proximity sensor is less than the first preset value, and the second distance values detected by the second proximity sensor and the third proximity sensor are both greater than the third preset value, the earphone is determined to be in a detached state; when the first distance value detected by the first proximity sensor is less than the first preset value, and the second distance value detected by the second proximity sensor and / or the third proximity sensor is less than or equal to the third preset value, the earphone is determined to be in a wearing state.
[0108] Table 3: Headphone status logic judgment table 3
[0109]
[0110] In Embodiment 4, the headset includes a first proximity sensor, a first wearing sensor, and a second wearing sensor, wherein the first proximity sensor is used to detect a first detection area on the headset to obtain a first distance value, and the first wearing sensor and the second wearing sensor are both used to detect a second detection area on the headset to obtain a second capacitance value. On this basis, when determining the state of the headset, the headset state can be determined specifically according to the logical judgment rules in Table 4 below. Among them, the first distance value greater than or equal to the first preset value is recorded as "1", the first distance value less than the first preset value is recorded as "0", the second capacitance value greater than or equal to the second preset value is recorded as "1", and the second capacitance value less than the second preset value is recorded as "0".
[0111] Table 4: Headphone status logic judgment table 4
[0112]
[0113] It can be seen from Table 4 that when the earphone includes a proximity sensor for detecting a first detection area on the earphone, and two wearing sensors for detecting a second detection area on the earphone, when determining the state of the earphone, when the first distance value detected by the first proximity sensor is greater than or equal to the first preset value, and when the first distance value detected by the first proximity sensor is less than the first preset value, and the second capacitance values detected by the first wearing sensor and the second wearing sensor are both less than the second preset value, the earphone is determined to be in a fallen-off state; when the first distance value detected by the first proximity sensor is less than the first preset value, and the second capacitance value detected by the first wearing sensor and / or the second wearing sensor is greater than or equal to the second preset value, the earphone is determined to be in a wearing state.
[0114] In embodiment 5, the headset includes a first wearing sensor, a first proximity sensor and a second proximity sensor, wherein the first wearing sensor is used to detect a first detection area on the headset to obtain a first capacitance value, and the first proximity sensor and the second proximity sensor are both used to detect a second detection area on the headset to obtain a second distance value. On this basis, when determining the state of the headset, the headset state can be determined specifically according to the logical judgment rules in the following Table 5. Among them, the first capacitance value is greater than or equal to the first preset value and is recorded as "1", the first capacitance value is less than the first preset value and is recorded as "0", the second distance value is greater than the third preset value and is recorded as "0", and the second distance value is less than or equal to the third preset value and is recorded as "1".
[0115] Table 5: Headphone status logic judgment table 5
[0116]
[0117] It can be seen from Table 5 that when the earphone includes a wearing sensor for detecting a first detection area on the earphone, and two proximity sensors for detecting a second detection area on the earphone, when determining the state of the earphone, when the first capacitance value detected by the first wearing sensor is greater than or equal to the first preset value, and when the first capacitance value detected by the first wearing sensor is less than the first preset value, and the second distance values detected by the first proximity sensor and the second proximity sensor are both greater than the third preset value, the earphone is determined to be in a falling-off state; when the first capacitance value detected by the first wearing sensor is less than the first preset value, and the second distance value detected by the first proximity sensor and / or the second proximity sensor is less than or equal to the third preset value, the earphone is determined to be in a wearing state.
[0118] Embodiment 6, the headset includes a first wearing sensor, a second wearing sensor and a first proximity sensor, wherein the first wearing sensor is used to detect a first detection area on the headset to obtain a first capacitance value, the second wearing sensor is used to detect a corresponding second detection area on the headset to obtain a second capacitance value, and the first proximity sensor is used to detect a corresponding second detection area on the headset to obtain a second distance value. On this basis, when determining the state of the headset, the headset state can be determined specifically according to the logical judgment rules in the following Table 6. Among them, the first capacitance value is greater than or equal to the first preset value and is recorded as "1", the first capacitance value is less than the first preset value and is recorded as "0", the second capacitance value is greater than or equal to the second preset value and is recorded as "1", the second capacitance value is less than the second preset value and is recorded as "0", the second distance value is greater than the third preset value and is recorded as "0", and the second distance value is less than or equal to the third preset value and is recorded as "1".
[0119] Table 6: Headphone status logic judgment table 6
[0120]
[0121] It can be seen from Table 6 that when the earphone includes a wearing sensor for detecting a first detection area on the earphone, a wearing sensor for detecting a second detection area on the earphone, and a proximity sensor for detecting the second detection area on the earphone, when determining the state of the earphone, when the first capacitance value detected by the first wearing sensor is greater than or equal to the first preset value, and when the first capacitance value detected by the first wearing sensor is less than the first preset value, and the second capacitance value detected by the second wearing sensor is less than the second preset value, and the second distance value detected by the first proximity sensor is greater than the third preset value, the earphone is determined to be in a falling-off state; when the first capacitance value detected by the first wearing sensor is less than the first preset value, the second capacitance value detected by the second wearing sensor is greater than or equal to the second preset value, and / or the second distance value detected by the first proximity sensor is less than or equal to the third preset value, the earphone is determined to be in a wearing state.
[0122] Table 7: Headphone status logic judgment table 7
[0123]
[0124] Embodiment 7, the headset includes a first proximity sensor, a second proximity sensor and a first wearing sensor, wherein the first proximity sensor is used to detect a first detection area on the headset to obtain a first distance value, the second proximity sensor is used to detect a corresponding second detection area on the headset to obtain a second distance value, and the first wearing sensor is used to detect a corresponding second detection area on the headset to obtain a second capacitance value. On this basis, when determining the state of the headset, the headset state can be specifically determined according to the logical judgment rules in the above Table 7. Among them, the first distance value is greater than or equal to the first preset value and is recorded as "1", the first distance value is less than the first preset value and is recorded as "0", the second capacitance value is greater than or equal to the second preset value and is recorded as "1", the second capacitance value is less than the second preset value and is recorded as "0", the second distance value is greater than the third preset value and is recorded as "0", and the second distance value is less than or equal to the third preset value and is recorded as "1".
[0125] It can be seen from Table 7 that when the earphone includes a proximity sensor for detecting a first detection area on the earphone, a wearing sensor for detecting a second detection area on the earphone, and a proximity sensor for detecting the second detection area on the earphone, when determining the state of the earphone, when the first distance value detected by the first proximity sensor is greater than or equal to the first preset value, and when the first distance value detected by the first proximity sensor is less than the first preset value, and the second capacitance value detected by the first wearing sensor is less than the second preset value, and the second distance value detected by the second proximity sensor is greater than the third preset value, the earphone is determined to be in a falling-off state; when the first capacitance value detected by the first proximity sensor is less than the first preset value, the second capacitance value detected by the first wearing sensor is greater than or equal to the second preset value and / or the second distance value detected by the second proximity sensor is less than or equal to the third preset value, the earphone is determined to be in a wearing state.
[0126] In Example 8, the earphone includes a first wearing sensor, a second wearing sensor, a third wearing sensor and a fourth wearing sensor, wherein the first wearing sensor and the second wearing sensor are both used to detect the first detection area on the earphone to obtain a first capacitance value, and the third wearing sensor and the fourth wearing sensor are both used to detect the second detection area on the earphone to obtain a second capacitance value. On this basis, when determining the state of the earphone, the earphone state can be determined specifically according to the logical judgment rules in the following Table 8. Among them, the first capacitance value greater than or equal to the first preset value is recorded as "1", the first capacitance value less than the first preset value is recorded as "0", the second capacitance value greater than or equal to the second preset value is recorded as "1", and the second capacitance value less than the second preset value is recorded as "0".
[0127] It can be seen from Table 8 that when the earphone includes two wearing sensors for detecting a first detection area on the earphone, and two wearing sensors for detecting a second detection area on the earphone, when judging the state of the earphone, when the first capacitance value detected by the first wearing sensor and / or the second wearing sensor is greater than or equal to the first preset value, and when the first capacitance values detected by the first wearing sensor and the second wearing sensor are both less than the first preset value, and the second capacitance values detected by the third wearing sensor and the fourth wearing sensor are both less than the second preset value, the earphone is judged to be in a fallen-off state; when the first capacitance values detected by the first wearing sensor and the second wearing sensor are both less than the first preset value, and the second capacitance value detected by the third wearing sensor and / or the fourth wearing sensor is greater than or equal to the second preset value, the earphone is judged to be in a worn state.
[0128] Table 8: Headphone status logic judgment table 8
[0129]
[0130] The state determination method provided in the embodiment of the present application can be executed by a state determination device. In the embodiment of the present application, the state determination device provided in the embodiment of the present application is described by taking the state determination device executing the above state determination method as an example.
[0131] like Figure 5 As shown, an embodiment of the present application provides a state determination device 500, which is applied to an earphone, and the earphone includes N first detection areas and M second detection areas. The state determination device 500 may include the following acquisition unit 502 and processing unit 504.
[0132] An acquisition unit 502 is used to acquire N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas;
[0133] The processing unit 504 is configured to determine that the earphone is in a detached state when at least one first detection value among the N first detection values is greater than or equal to a first preset value;
[0134] The processing unit 504 is further configured to determine that the earphone is in a detached state when the N first detection values are less than the first preset value and the M second detection values meet the first preset condition;
[0135] When the earphone is in a wearing state, there is a distance between the N first detection areas and the skin, and the M second detection areas are in contact with the skin.
[0136] In the state determination device 500 provided in the embodiment of the present application, the earphone is divided into N first detection areas with a spacing between the human ear skin and the earphone according to the contact between the human ear skin and the earphone in the normal wearing state, and M second detection areas in contact with the human ear skin. On this basis, when determining the state of the earphone, the acquisition unit 502 acquires each detection value corresponding to each detection area in the earphone, and the processing unit 504 further determines that the earphone is in a falling-off state when any first detection value is greater than or equal to the first preset value, or when each first detection value is less than the first preset value and the M second detection values meet the first preset condition. In this way, the earphone state is determined by combining the first detection values of each first detection area that does not contact the human ear skin when the earphone is worn, and the second detection values of each second detection area that can contact the human ear skin when the earphone is worn, thereby improving the accuracy of the earphone state determination, thereby preventing the earphone from being triggered by mistake when the user holds the earphone or places the earphone on the desktop and pocket, and reducing the energy consumption of the earphone while improving the reliability of the earphone operation.
[0137] In the embodiment of the present application, the processing unit 504 is further configured to: determine that the headset is in the wearing state when the N first detection values are less than the first preset value and at least one second detection value among the M second detection values meets the second preset condition.
[0138] In the above embodiment provided by the present application, when determining the state of the earphone, after the acquisition unit 502 acquires N first detection values of N first detection areas in the earphone, and acquires M second detection values of M second detection areas in the earphone, the processing unit 504 will also determine that the earphone is in the wearing state when each first detection value is less than the first preset value, and at least one second detection value meets the second preset condition. In this way, the state of the earphone is determined by combining the first detection values of each first detection area that does not contact the skin of the human ear when the earphone is worn, and the second detection values of each second detection area that can contact the skin of the human ear when the earphone is worn, thereby improving the accuracy of determining the state of the earphone, thereby preventing the earphone from being triggered by mistake when the user holds the earphone or places the earphone on a desk or pocket, and reducing the energy consumption of the earphone while improving the reliability of the earphone.
[0139] In an embodiment of the present application, the earphone includes N first sensors, the N first sensors are respectively used to detect N first detection areas, and the N first detection values are respectively used to indicate the contact status between the first detection areas and the skin; wherein, when the first sub-detection value among the N first detection values is greater than or equal to the first preset value, the first detection area corresponding to the first sub-detection value is in contact with the skin; when the first sub-detection value among the N first detection values is less than the first preset value, the first detection area corresponding to the first sub-detection value has a distance from the skin.
[0140] In the above embodiment provided by the present application, the earphone includes N first sensors for detecting N first detection areas respectively, and the above N first detection values are respectively used to indicate the contact state between the first detection area and the skin. On this basis, the contact state between the N first detection areas in the earphone and the skin can be determined according to the N first detection values detected by the N first sensors, and then the earphone state can be determined. In this way, the accuracy of determining the earphone state is improved, and the earphone is prevented from being falsely triggered when the user holds the earphone or places the earphone on a desk or pocket, thereby improving the reliability of the earphone operation while reducing the energy consumption of the earphone.
[0141] In an embodiment of the present application, the earphone includes M second sensors, the M second sensors are respectively used to detect M second detection areas, and the M second detection values are respectively used to indicate the contact status between the second detection area and the skin; wherein, when the second sub-detection value among the M second detection values satisfies the second preset condition, the second detection area corresponding to the second sub-detection value is in contact with the skin; when the second sub-detection value among the M second detection values satisfies the first preset condition, the second detection area corresponding to the second sub-detection value has a distance from the skin.
[0142] In the above-mentioned embodiment provided by the present application, the earphone includes M second sensors respectively used to detect M second detection areas, and the above-mentioned M second detection values are respectively used to indicate the contact state between the second detection area and the skin. On this basis, the contact state between the M second detection areas in the earphone and the skin can be determined according to the M second detection values detected by the M second sensors, and then the earphone state can be determined. In this way, the accuracy of determining the earphone state is improved, and the earphone is prevented from being falsely triggered when the user holds the earphone or places the earphone on a desk or pocket, thereby improving the reliability of the earphone operation while reducing the energy consumption of the earphone.
[0143] In an embodiment of the present application, the first sensor is a wearable sensor or a proximity sensor; when the first sensor is a wearable sensor, the first detection value is a first capacitance value of the skin; when the first sensor is a proximity sensor, the first detection value is a first distance value between the proximity sensor and the skin.
[0144] In the above embodiment provided by the present application, the above first sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the above first detection value is determined according to the actual type of the first sensor to which it corresponds. In this way, the first detection area can be detected by changing different types of first sensors, so as to determine the state of the earphone, which ensures the accuracy of the determination of the earphone state and improves the flexibility of the determination of the earphone state and the design of the earphone.
[0145] In an embodiment of the present application, the second sensor is a wearable sensor or a proximity sensor; when the second sensor is a wearable sensor, the second detection value is a second capacitance value of the skin, the first preset condition is that the second detection value is less than the second preset value, and the second preset condition is that the second detection value is greater than or equal to the second preset value; when the second sensor is a proximity sensor, the second detection value is a second distance value between the proximity sensor and the skin, the first preset condition is that the second detection value is greater than the third preset value, and the second preset condition is that the second detection value is less than or equal to the third preset value.
[0146] In the above embodiment provided by the present application, the above second sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the above second detection value is determined according to the actual type of the second sensor to which it corresponds. In this way, the second detection area can be detected by changing different types of second sensors, so as to determine the state of the earphone, which ensures the accuracy of the determination of the state of the earphone and further improves the flexibility of the determination of the state of the earphone and the design of the earphone.
[0147] The state determination device 500 in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0148] The state determination device 500 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0149] The state determination device 500 provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0150] Alternatively, if Figure 6 As shown, an embodiment of the present application further provides an electronic device 600, including a processor 602 and a memory 604, wherein the memory 604 stores programs or instructions that can be executed on the processor 602, and when the program or instructions are executed by the processor 602, the various steps of the state determination method embodiment of the first aspect mentioned above are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0151] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0152] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0153] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
[0154] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0155] The electronic device 700 of the embodiment of the present application can be used to implement the various steps of the embodiment of the state determination method of the first aspect mentioned above.
[0156] The processor 710 is used to obtain N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas;
[0157] The processor 710 is further configured to, when at least one first detection value among the N first detection values is greater than or equal to a first preset value, determine that the earphone is in a detached state;
[0158] The processor 710 is further configured to, when the N first detection values are less than the first preset value and the M second detection values meet the first preset condition, determine that the earphone is in a detached state;
[0159] When the earphone is in a wearing state, there is a distance between the N first detection areas and the skin, and the M second detection areas are in contact with the skin.
[0160] In the embodiment of the present application, the earphone is divided into N first detection areas with a spacing between the human ear skin and the earphone according to the contact between the human ear skin and the earphone in the normal wearing state, and M second detection areas in contact with the human ear skin. On this basis, when determining the state of the earphone, the processor 710 obtains each detection value corresponding to each detection area in the earphone, and then determines that the earphone is in a falling-off state when any first detection value is greater than or equal to the first preset value, or when each first detection value is less than the first preset value and the M second detection values meet the first preset condition. In this way, the earphone state is determined by combining the first detection values of each first detection area that does not contact the human ear skin when the earphone is worn, and the second detection values of each second detection area that can contact the human ear skin when the earphone is worn, thereby improving the accuracy of determining the earphone state, thereby preventing the earphone from being triggered by mistake when the user holds the earphone or places the earphone on a desktop or pocket, and reducing the energy consumption of the earphone while improving the reliability of the earphone operation.
[0161] Optionally, the processor 710 is further configured to: determine that the headset is in the wearing state when the N first detection values are less than the first preset value and at least one second detection value among the M second detection values meets the second preset condition.
[0162] In the above-mentioned embodiment provided by the present application, when determining the state of the earphone, after the processor 710 obtains N first detection values of N first detection areas in the earphone, and obtains M second detection values of M second detection areas in the earphone, it will also determine that the earphone is in the wearing state when each first detection value is less than the first preset value, and at least one second detection value meets the second preset condition. In this way, the state of the earphone is determined by combining the first detection values of each first detection area that does not contact the skin of the human ear when the earphone is worn, and the second detection values of each second detection area that can contact the skin of the human ear when the earphone is worn, thereby improving the accuracy of determining the state of the earphone, thereby preventing the earphone from being triggered by mistake when the user holds the earphone or places the earphone on a desk or pocket, and reducing the energy consumption of the earphone while improving the reliability of the earphone operation.
[0163] Optionally, the earphone includes N first sensors, which are respectively used to detect N first detection areas, and the N first detection values are respectively used to indicate the contact status of the first detection areas with the skin; wherein, when the first sub-detection value among the N first detection values is greater than or equal to the first preset value, the first detection area corresponding to the first sub-detection value is in contact with the skin; when the first sub-detection value among the N first detection values is less than the first preset value, the first detection area corresponding to the first sub-detection value has a distance from the skin.
[0164] In the above embodiment provided by the present application, the earphone includes N first sensors for detecting N first detection areas respectively, and the above N first detection values are respectively used to indicate the contact state between the first detection area and the skin. On this basis, the contact state between the N first detection areas in the earphone and the skin can be determined according to the N first detection values detected by the N first sensors, and then the earphone state can be determined. In this way, the accuracy of determining the earphone state is improved, and the earphone is prevented from being falsely triggered when the user holds the earphone or places the earphone on a desk or pocket, thereby improving the reliability of the earphone operation while reducing the energy consumption of the earphone.
[0165] Optionally, the earphone includes M second sensors, the M second sensors are respectively used to detect M second detection areas, and the M second detection values are respectively used to indicate the contact status of the second detection area with the skin; wherein, when the second sub-detection value among the M second detection values satisfies the second preset condition, the second detection area corresponding to the second sub-detection value is in contact with the skin; when the second sub-detection value among the M second detection values satisfies the first preset condition, the second detection area corresponding to the second sub-detection value has a distance from the skin.
[0166] In the above-mentioned embodiment provided by the present application, the earphone includes M second sensors respectively used to detect M second detection areas, and the above-mentioned M second detection values are respectively used to indicate the contact state between the second detection area and the skin. On this basis, the contact state between the M second detection areas in the earphone and the skin can be determined according to the M second detection values detected by the M second sensors, and then the earphone state can be determined. In this way, the accuracy of determining the earphone state is improved, and the earphone is prevented from being falsely triggered when the user holds the earphone or places the earphone on a desk or pocket, thereby improving the reliability of the earphone operation while reducing the energy consumption of the earphone.
[0167] Optionally, the first sensor is a wearable sensor or a proximity sensor; when the first sensor is a wearable sensor, the first detection value is a first capacitance value of the skin; when the first sensor is a proximity sensor, the first detection value is a first distance value between the proximity sensor and the skin.
[0168] In the above embodiment provided by the present application, the above first sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the above first detection value is determined according to the actual type of the first sensor to which it corresponds. In this way, the first detection area can be detected by changing different types of first sensors, so as to determine the state of the earphone, which ensures the accuracy of the determination of the earphone state and improves the flexibility of the determination of the earphone state and the design of the earphone.
[0169] Optionally, the second sensor is a wearable sensor or a proximity sensor; when the second sensor is a wearable sensor, the second detection value is a second capacitance value of the skin, the first preset condition is that the second detection value is less than the second preset value, and the second preset condition is that the second detection value is greater than or equal to the second preset value; when the second sensor is a proximity sensor, the second detection value is a second distance value between the proximity sensor and the skin, the first preset condition is that the second detection value is greater than a third preset value, and the second preset condition is that the second detection value is less than or equal to the third preset value.
[0170] In the above embodiment provided by the present application, the above second sensor may be a wearable sensor or a proximity sensor, and the specific expression form of the above second detection value is determined according to the actual type of the second sensor to which it corresponds. In this way, the second detection area can be detected by changing different types of second sensors, so as to determine the state of the earphone, which ensures the accuracy of the determination of the state of the earphone and further improves the flexibility of the determination of the state of the earphone and the design of the earphone.
[0171] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0172] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 can include a volatile memory or a non-volatile memory, or the memory 709 can include both volatile and non-volatile memories.
[0173] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0174] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.
[0175] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the state determination method embodiment of the first aspect mentioned above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0176] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0177] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the state determination method embodiment of the first aspect above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0178] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0179] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the state determination method embodiment of the first aspect above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0180] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0181] 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 application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0182] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A state determination method, It is characterized in that Applied to an earphone, the earphone includes N first detection areas and M second detection areas, and the state determination method includes: Obtaining N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas; When at least one first detection value among the N first detection values is greater than or equal to a first preset value, determining that the earphone is in a detached state; When the N first detection values are less than the first preset value and the M second detection values meet the first preset condition, it is determined that the earphone is in a detached state; Wherein, when the earphone is in a wearing state, there is a distance between the N first detection areas and the skin, and the M second detection areas are in contact with the skin; The first preset value is a value pre-stored in a storage device of the headset; The first preset condition is used to express the numerical values of the M second detection values when there is a deviation between the actual positions of the M second detection areas in the headset and the standard positions; The N first detection values are respectively used to indicate the contact state between the first detection area and the skin; Wherein, when a first sub-detection value among the N first detection values is greater than or equal to a first preset value, a first detection area corresponding to the first sub-detection value is in contact with the skin; When a first sub-detection value among the N first detection values is less than a first preset value, a first detection area corresponding to the first sub-detection value has a distance from the skin; The M second detection values are respectively used to indicate the contact state between the second detection area and the skin; Wherein, when a second sub-detection value among the M second detection values satisfies a second preset condition, a second detection area corresponding to the second sub-detection value is in contact with the skin; When a second sub-detection value among the M second detection values satisfies a first preset condition, a second detection area corresponding to the second sub-detection value has a distance from the skin.
2. The state determination method according to claim 1, It is characterized in that After acquiring the N first detection values corresponding to the N first detection areas and the M second detection values corresponding to the M second detection areas, the method further includes: When the N first detection values are less than the first preset value and at least one second detection value among the M second detection values meets a second preset condition, determining that the headset is in a wearing state; The second preset condition is used to express the numerical value of the second detection value corresponding to a second detection area among the M second detection areas of the headset when there is a deviation between the actual position and the standard position.
3. The state determination method according to claim 1, It is characterized in that The earphone includes N first sensors, and the N first sensors are used to detect the N first detection areas respectively.
4. The state determination method according to claim 1, It is characterized in that The earphone includes M second sensors, and the M second sensors are used to detect the M second detection areas respectively.
5. The state determination method according to claim 3, It is characterized in that The first sensor is a wearing sensor or a proximity sensor; In the case where the first sensor is a wearable sensor, the first detection value is a first capacitance value of the skin; In the case where the first sensor is a proximity sensor, the first detection value is a first distance value between the proximity sensor and the skin.
6. The state determination method according to claim 4, It is characterized in that The second sensor is a wearing sensor or a proximity sensor; In the case where the second sensor is a wearable sensor, the second detection value is a second capacitance value of the skin, the first preset condition is that the second detection value is less than a second preset value, and the second preset condition is that the second detection value is greater than or equal to the second preset value; When the second sensor is a proximity sensor, the second detection value is a second distance value between the proximity sensor and the skin, the first preset condition is that the second detection value is greater than a third preset value, and the second preset condition is that the second detection value is less than or equal to the third preset value.
7. A state determination device, It is characterized in that Applied to an earphone, the earphone comprises N first detection areas and M second detection areas, and the state determination device comprises: An acquisition unit, used to acquire N first detection values corresponding to the N first detection areas and M second detection values corresponding to the M second detection areas; A processing unit, configured to determine that the earphone is in a detached state when at least one first detection value among the N first detection values is greater than or equal to a first preset value; The processing unit is further configured to determine that the earphone is in a detached state when the N first detection values are less than the first preset value and the M second detection values meet a first preset condition; Wherein, when the earphone is in a wearing state, there is a distance between the N first detection areas and the skin, and the M second detection areas are in contact with the skin; The first preset value is a value pre-stored in a storage device of the headset; The first preset condition is used to express the numerical values of the M second detection values when there is a deviation between the actual positions of the M second detection areas in the headset and the standard positions; The N first detection values are respectively used to indicate the contact state between the first detection area and the skin; Wherein, when a first sub-detection value among the N first detection values is greater than or equal to a first preset value, a first detection area corresponding to the first sub-detection value is in contact with the skin; When a first sub-detection value among the N first detection values is less than a first preset value, a first detection area corresponding to the first sub-detection value has a distance from the skin; The M second detection values are respectively used to indicate the contact state between the second detection area and the skin; Wherein, when a second sub-detection value among the M second detection values satisfies a second preset condition, a second detection area corresponding to the second sub-detection value is in contact with the skin; When a second sub-detection value among the M second detection values satisfies a first preset condition, a second detection area corresponding to the second sub-detection value has a distance from the skin.
8. The state determination device according to claim 7, It is characterized in that The processing unit is also used for: When the N first detection values are less than the first preset value and at least one second detection value among the M second detection values meets a second preset condition, determining that the headset is in a wearing state; The second preset condition is used to express the numerical value of the second detection value corresponding to a second detection area among the M second detection areas of the headset when there is a deviation between the actual position and the standard position.
9. The state determination device according to claim 7, It is characterized in that The earphone includes N first sensors, and the N first sensors are used to detect the N first detection areas respectively.
10. The state determination device according to claim 7, It is characterized in that The earphone includes M second sensors, and the M second sensors are used to detect the M second detection areas respectively.
11. The state determination device according to claim 9, It is characterized in that The first sensor is a wearing sensor or a proximity sensor; In the case where the first sensor is a wearable sensor, the first detection value is a first capacitance value of the skin; In the case where the first sensor is a proximity sensor, the first detection value is a first distance value between the proximity sensor and the skin.
12. The state determination device according to claim 10, It is characterized in that The second sensor is a wearing sensor or a proximity sensor; In the case where the second sensor is a wearable sensor, the second detection value is a second capacitance value of the skin, the first preset condition is that the second detection value is less than a second preset value, and the second preset condition is that the second detection value is greater than or equal to the second preset value; When the second sensor is a proximity sensor, the second detection value is a second distance value between the proximity sensor and the skin, the first preset condition is that the second detection value is greater than a third preset value, and the second preset condition is that the second detection value is less than or equal to the third preset value.
13. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the state determination method according to any one of claims 1 to 6 are implemented.
14. A readable storage medium, It is characterized in that The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the state determination method according to any one of claims 1 to 6 are implemented.
