Earphone control method and earphone
Patent Information
- Application Number
- CN202210651201.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-19
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2040-08-19
AI Technical Summary
[0003]本申请提出了一种耳机控制方法及耳机,以改善耳机续航时间短的问题
[0008] This application discloses a headphone control method and a headphone, relating to the field of audio equipment technology. The method is applied to a headphone, which includes a headphone body and at least two electrodes disposed on the headphone body. The method includes: measuring the impedance value between the at least two electrodes; determining whether the impedance value meets preset human contact conditions; and when the impedance value meets the human contact conditions, determining whether the headphone is in a worn state or a handheld state based on the impedance value. This application, by determining whether the impedance value meets preset human contact conditions and further determining whether the headphone is in a worn state or a handheld state based on the impedance value, more accurately determines whether the headphone is in a worn state, thereby reducing the false positive rate of headphone wear detection.
Smart Images

Figure CN115052221B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio equipment technology, specifically to a headphone control method and a headphone. Background Technology
[0002] Currently, wireless headphones have gained increasing attention due to their improved portability and significantly enhanced stereo sound compared to traditional headphones, eliminating the need for headphone cables. However, this has also brought new challenges. The limited space in wireless headphones restricts battery capacity, resulting in short battery life. Currently, power consumption can be saved by stopping audio transmission and playback when the headphones are detected as not being worn. Therefore, a reliable method for detecting headphone wear is needed. Summary of the Invention
[0003] This application proposes a headphone control method and a headphone to improve the problem of short headphone battery life.
[0004] In a first aspect, embodiments of this application provide a headphone control method, the method being applied to a headphone, the headphone including a headphone body and at least two electrodes disposed on the headphone body, the method including: measuring the impedance value between the at least two electrodes; determining whether the impedance value meets preset human contact conditions; when the impedance value meets the human contact conditions, determining that the headphone is in a worn state or a handheld state based on the impedance value.
[0005] Secondly, embodiments of this application provide an earphone control device. The device is applied to an earphone, which includes an earphone body and at least two electrodes disposed on the earphone body. The device includes: an impedance measurement module for measuring the impedance value between the at least two electrodes; a condition judgment module for judging whether the impedance value meets a preset human contact condition; and a state determination module for determining whether the earphone is in a wearing state or a handheld state when the impedance value meets the human contact condition.
[0006] Thirdly, embodiments of this application provide an earphone, including: an earphone body, at least two electrodes, an impedance measuring unit, and a control unit. The at least two electrodes are disposed on the earphone body, and the impedance measuring unit is electrically connected to the control unit and the at least two electrodes respectively. The impedance measuring unit is used to measure the impedance value between the at least two electrodes. The control unit is used to determine whether the impedance value meets the human body contact conditions. In addition, the control unit is also used to determine whether the earphone is in a worn state or a handheld state based on the impedance value when the impedance value meets the human body contact conditions.
[0007] Fourthly, embodiments of this application also provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the above-described method.
[0008] This application discloses a headphone control method and a headphone, relating to the field of audio equipment technology. The method is applied to a headphone, which includes a headphone body and at least two electrodes disposed on the headphone body. The method includes: measuring the impedance value between the at least two electrodes; determining whether the impedance value meets preset human contact conditions; and when the impedance value meets the human contact conditions, determining whether the headphone is in a worn state or a handheld state based on the impedance value. This application, by determining whether the impedance value meets preset human contact conditions and further determining whether the headphone is in a worn state or a handheld state based on the impedance value, more accurately determines whether the headphone is in a worn state, thereby reducing the false positive rate of headphone wear detection. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A schematic diagram of an application environment applicable to an embodiment of this application is shown;
[0011] Figure 2 A schematic flowchart of an embodiment of the headphone control method provided in this application is shown;
[0012] Figure 3 A schematic diagram of the structure of the earphone provided in an exemplary embodiment of this application is shown;
[0013] Figure 4 This application shows Figure 2 The illustrated embodiment provides a flowchart of step S130 of the headphone control method;
[0014] Figure 5 A schematic diagram of the impedance measurement circuit for the earphones provided in this application embodiment when held by hand is shown;
[0015] Figure 6 A schematic diagram of the impedance measurement circuit when the earphone is worn in the ear, according to an embodiment of this application, is shown.
[0016] Figure 7 A flowchart illustrating another embodiment of the headphone control method provided in this application is shown;
[0017] Figure 8 A schematic flowchart of a headphone control method according to another embodiment of this application is shown;
[0018] Figure 9 This application shows Figure 8 The illustrated embodiment provides a flowchart of step S440 of the headphone control method;
[0019] Figure 10 A flowchart illustrating another embodiment of the headphone control method of this application is shown;
[0020] Figure 11 A schematic flowchart of another embodiment of the headphone control method provided in this application is shown;
[0021] Figure 12 This paper shows a structural block diagram of an earphone control device according to an embodiment of the present application;
[0022] Figure 13 This paper shows a structural block diagram of an earphone provided in an embodiment of the present application;
[0023] Figure 14 A structural block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0026] Currently, compared to traditional wired headphones, true wireless earbuds not only eliminate the constraints of wires but also offer significantly improved stereo sound effects, providing users with a superior user experience. However, the limited space in wireless earbuds restricts battery capacity, resulting in shorter battery life. Therefore, effective power management to minimize unnecessary waste and extend battery life remains a challenge. One potential optimization scenario is to stop audio or video transmission or playback when the earbuds are not being worn, thus conserving power and extending battery life. Therefore, earbud wear detection becomes a necessary feature.
[0027] Currently, there are two main technologies for detecting whether headphones are worn on the ears, but neither is very effective. Specifically:
[0028] (1) Photoelectric detection technology actively emits a beam of light and determines whether it is worn based on the reflection of the light by the skin. However, this photoelectric detection technology cannot determine whether the reflection is caused by the skin or by external obstructions. Therefore, the false judgment rate of photoelectric detection is high. In addition, the structure of the photoelectric sensor that photoelectric detection depends on is also relatively complex.
[0029] (2) Capacitance detection technology determines whether the headphones are being worn by changing the capacitance of the human body. To a certain extent, it can avoid the shortcomings of photoelectric detection and can distinguish whether it is human contact or contact with other objects. However, it still cannot distinguish whether it is the skin of a human hand touching or normal ear wearing. This means that even if the headphones are removed, the touch of a person's fingers may cause misjudgment. In addition, capacitance detection is greatly affected by temperature, and changes in the absolute value of capacitance often cause errors and misjudgments.
[0030] Both of the above detection technologies suffer from the aforementioned false alarms and cannot effectively detect whether headphones are being worn, nor can they avoid false alarms caused by human touch. Therefore, based on the above problems, this application provides a headphone control method and headphones to accurately detect the wearing status of headphones. To facilitate a better understanding of this application embodiment, the application environment used in this application embodiment is described below.
[0031] Please see Figure 1 , Figure 1 A schematic diagram illustrating an application environment applicable to embodiments of this application is shown. The headphone control method provided in this application embodiment can be applied to, for example... Figure 1 The headphone control system 10 shown includes a terminal device 100 and headphones 200.
[0032] The terminal device 100 can be, but is not limited to, a mobile phone, tablet computer, MP3 player (MovingPicture Experts Group Audio Layer Ⅲ, MP4 player (MovingPicture Experts Group Audio Layer Ⅳ, laptop computer), or wearable electronic device, etc. This application embodiment does not limit the specific device type of the terminal device 100.
[0033] In some embodiments, the terminal device 100 has an application installed that can play audio. Specifically, the application may be audio playback software, video playback software, or call software, etc. The terminal device 100 sends the audio to be played to the headset 200, which then plays the audio.
[0034] The terminal device 100 and the headset 200 can be connected via wired or wireless means. Optionally, if connected wirelessly, the terminal device 100 and the headset 200 can connect wirelessly via Bluetooth, 2.4G wireless communication technology, infrared transmission technology, or a wireless network to achieve data transmission. Optionally, the wireless network can be a mobile communication network or a Wireless Fidelity (WiFi) network. For example, after the headset 200 and the terminal device 100 are wirelessly connected, the headset 200 can obtain audio source data through the terminal device 100 for playback.
[0035] The earphone 200 can be either a wired or wireless earphone. Optionally, the earphone 200 can also be a true wireless earphone. The following description uses a completely wireless true wireless earphone as an example. However, those skilled in the art should understand that the completely wireless true wireless earphone is only an illustrative example. In actual use, those skilled in the art can refer to the solution of the embodiments of this application and select other types of earphones to implement this solution, including but not limited to wired earphones and wireless earphones with a cable between the two earphones.
[0036] In addition, only one earphone is shown in the figure. In practical applications, those skilled in the art can refer to the solution of the embodiment of this application and select a pair of earphones to implement this solution. It should be noted that the wearing detection or touch operation of multiple earphones can be independent of each other or not independent of each other. Moreover, each earphone in a pair of earphones can be connected to the terminal device 100 respectively, and earphones can also be connected to each other. The embodiment of this application does not limit this.
[0037] The headphone control method, headphones, and computer-readable storage medium provided in this application will be described in detail below through specific embodiments.
[0038] Please see Figure 2 , Figure 2 This application shows a schematic flowchart of an embodiment of a headphone control method, which can be applied to, for example... Figure 3 The earphone 20 shown may include an earphone body 201 and at least two electrodes 202 and 203 disposed on the earphone body. Figure 3The illustrated headphone structure uses two electrodes as an example; however, it is understood that there could be three, four, or more electrodes, which is not limited here. The at least two electrodes can be located on either side of the sound outlet. For example, electrode 202 is located on the inner side of the headphone (away from the auricle), and electrode 203 is located on the outer side of the headphone (closer to the auricle). Furthermore, the headphone 20 includes an impedance measurement unit and a control unit, with the impedance measurement unit electrically connected to both the control unit and the at least two electrodes. Under the control of the control unit, the impedance measurement unit transmits an excitation signal to the outside (e.g., to the human body) through the at least two electrodes. This excitation signal is typically an alternating current. When the human body comes into contact with the at least two electrodes, the excitation signal is transmitted within the body and generates a voltage. The impedance measurement unit measures the magnitude of this voltage and, in conjunction with parameters such as the frequency and magnitude of the excitation signal, determines the human body impedance between the at least two electrodes. For example, there can be two electrodes, which contact two measurement points on the human body. A voltage can then be applied to these two measurement points, and the impedance value between the two electrodes can be measured as the human body impedance value between these two measurement points. For example, there can be four electrodes. When the user holds the earphone with their left hand, two electrodes are in contact with the first measurement point of the human body (such as the left thumb), and the other two electrodes are in contact with the second measurement point of the human body (such as the left index finger). At this time, current can be passed into the human hand through the two electrodes connected to the first and second measurement points respectively, and the voltage between the first and second measurement points can be measured through the other two electrodes connected to the first and second measurement points respectively, so as to obtain the human body impedance value between the first and second measurement points, that is, the human body impedance value between the left thumb and the left index finger.
[0039] The following will address... Figure 2 The process shown will be described in detail, and the method may specifically include the following steps:
[0040] Step S110: Measure the impedance between at least two electrodes.
[0041] The electronic devices used in the embodiments of this application may include at least two electrodes, or more than three, four, etc., and this application does not impose specific limitations on this. In some embodiments, the effective area of each detection electrode can be between 0.5 square millimeters and 25 square millimeters, and the edge spacing between two adjacent detection electrodes can be between 1 millimeter and 15 millimeters. For example, the effective area of each detection electrode can be between 1 square millimeter and 4 square millimeters, or between 6.25 square millimeters and 9 square millimeters, or between 12.25 square millimeters and 25 square millimeters. The edge spacing between two adjacent detection electrodes can be 1 millimeter, 2 millimeters, 2.5 millimeters, 4 millimeters, 5 millimeters, 6 millimeters, 8 millimeters, 10 millimeters, or 12 millimeters, and the edge spacing between any two sets of adjacent detection electrodes can be the same or different.
[0042] When the headphones come into contact with the human body, such as when they are worn or held, an alternating current can be injected into the ear or finger of the person being tested through the detection electrodes, and the corresponding voltage change can be detected to obtain the impedance value of the part being measured.
[0043] Step S120: Determine whether the impedance value meets the preset human body contact conditions.
[0044] In this embodiment, as Figure 3 The impedance measurement results of the earphone 20 shown are significantly affected by whether the two electrodes 202 and 203 are in contact with the human body. When the two electrodes are in contact with the human body, i.e., at least two electrodes 202 and 203 are in contact with the human skin, the measured impedance value between the at least two electrodes is the impedance value of certain body segments, which is relatively small. Conversely, when the earphone is not in contact with the human body, there is an open circuit between the at least two electrodes, and the measured impedance value between the at least two electrodes is larger. Therefore, to determine whether the two electrodes of the earphone are in contact with the human body, a human contact condition can be preset. For example, this human contact condition can be a threshold range. When the measured impedance value is within this threshold range, it can be determined that the impedance value meets the preset human contact condition. Alternatively, in some embodiments, 0-100 ohms can be selected as the threshold range. When the measured impedance value is within 0-100 ohms, it can be determined that the impedance value meets the preset human contact condition.
[0045] In some implementations, the heart rate signal can also be obtained based on the impedance value. When the heart rate signal meets the preset wearing heart rate condition, it is determined that the impedance value meets the preset human body contact condition.
[0046] Step S130: When the impedance value meets the human body contact conditions, determine whether the headphones are in a worn state or a handheld state based on the impedance value.
[0047] In this embodiment, when the impedance value meets the human body contact condition, it indicates that the earphone is in contact with the human body. However, the earphone may be in contact with the ear, or it may be in contact with other parts of the body besides the ear, such as a finger. Therefore, when the impedance value meets the human body contact condition, the earphone may be in a wearing state, or it may be in other states besides wearing, such as a handheld state. In some embodiments, the handheld state may include holding the earphone with a finger in contact with a single electrode, or pinching the earphone with a finger in contact with at least two electrodes. According to Figure 3 Taking the earphone 20 as an example, in some embodiments, when the earphone is held in hand and the finger is in contact with a single electrode 202 or electrode 203, the impedance measurement circuit is open, and the measured impedance value is relatively large. Based on the earphone structure and the influence of non-parasitic capacitance in the circuit, this impedance value is typically above 1000 ohms. When the earphone is held by the finger and the finger is in contact with both electrodes 202 and 203, the impedance measurement circuit is closed, and the measured impedance value is relatively small. However, based on the general level of human body impedance, this impedance value is typically greater than 200 ohms. When the earphone is in a worn state, the two electrodes 202 and 203 of the earphone are in contact with the skin of the external auditory canal, the impedance measurement circuit is closed, and the measured impedance value between at least two electrodes is the impedance between the two measurement points in the external auditory canal (i.e., the contact points between the external auditory canal and the electrodes). This impedance value is relatively small, and depending on different frequencies and electrode sizes, this impedance value is typically between 10 ohms and 200 ohms. Therefore, the size of the impedance value can be used to further determine whether the earphone is in a worn state or a held state.
[0048] The headphone control method provided in this application is applied to a headphone, which includes a headphone body and at least two electrodes disposed on the headphone body. By measuring the impedance value between the at least two electrodes, it is determined whether the impedance value meets the human body contact conditions. When the impedance value meets the human body contact conditions, it is determined whether the headphone is in a worn state or a handheld state based on the impedance value. This embodiment first determines whether the impedance value meets the preset human body contact conditions. When the impedance value meets the human body contact conditions, it further determines whether the headphone is in a worn state or a handheld state based on the impedance value. Through dual determination, it accurately detects whether the headphone is in a worn state, thereby reducing the false judgment rate of headphone wear detection.
[0049] In one embodiment, such as Figure 4 As shown, in order to accurately distinguish between the wearing state and the handheld state of the headphones, the above step S130 may specifically include:
[0050] Step S131: When the impedance value meets the human body contact conditions, determine whether the impedance value is less than the preset target impedance value.
[0051] When the human body impedance meets the human body contact condition, it cannot be determined that the headphones are being worn. In some implementations, the impedance value that meets the human body contact condition can also be measured by pinching the headphones with fingers. In this case, it is necessary to further determine whether the contact type between the headphones and the human body is wearing contact or hand contact.
[0052] Please refer to the following: Figure 5 , Figure 5 A schematic diagram of the impedance measurement circuit when the earphone is held in the hand is shown. When the earphone is held by two fingers, the two fingers contact electrodes 103 and 104 respectively. At this time, the excitation signal is transmitted through the human hand along the path shown by the dotted line L1 in the diagram. The measured impedance value is the impedance value between the two fingers (in the following description, L1 represents the path of the excitation signal transmission through the human hand when the earphone is held by fingers). Further details can be found in the following diagram. Figure 6 , Figure 6 A schematic diagram of the impedance measurement circuit when the headphones are worn in the ear is shown. When the headphones are worn in the ear, the skin surface of the external auditory canal contacts electrodes 103 and 104. At this time, the excitation signal is transmitted in the external auditory canal along the path shown by the dotted line L2 in the figure. The measured impedance value is the impedance value between the two measurement points in the external auditory canal (i.e., the contact points between the external auditory canal and the electrodes) (in the following description, L2 represents the path of the excitation signal transmission in the external auditory canal when the headphones are worn in the ear). It can be seen that the measurement path L1 is significantly longer than the measurement path L2. Under the same electrode size and frequency, the impedance value corresponding to the measurement path L1 is also greater than the impedance value corresponding to the measurement path L2. That is, the impedance value measured when the headphones are held in hand is significantly greater than the impedance value measured when the headphones are worn in the ear. Therefore, a target impedance value can be preset according to general human conditions, and then the headphones can be determined to be in a worn state based on whether the impedance value is less than the preset target impedance value. For example, in some embodiments, 150 ohms can be set as the preset target impedance value. When the impedance value is less than 150 ohms, it can be determined that the headphones are in a worn state. (This application embodiment does not impose specific limitations on the preset target impedance value).
[0053] Step S132: When the impedance value is less than the preset target impedance value, determine that the headphones are in the wearing state.
[0054] When the impedance value is less than the preset target impedance value, it indicates that the corresponding impedance measurement path is L2, thus confirming that the headphones are being worn.
[0055] Step S133: When the impedance value is not less than the preset target impedance value, determine that the headphones are in a handheld state.
[0056] When the impedance value meets the preset human contact conditions and is not less than the preset target impedance value, it can be said that the corresponding impedance measurement path is L1, thus confirming that the headphones are in a handheld state.
[0057] In some implementations, the user may touch electrode 103 or 104 with one finger, at which point the impedance measurement circuit is open and the impedance value within the wearing range cannot be measured at all, so the headphones will not be judged as being worn.
[0058] Comparing the two common headphone wear detection technologies, capacitive detection technology can misjudge the state of holding the headphones as wearing them because a finger touching the headphone earpiece (whether on one or both sides) causes a change in capacitance. Infrared wear detection technology can also misjudge the state of holding the headphones as wearing them because a finger touching the headphone earpiece (whether on one or both sides) can block the infrared sensor. Therefore, neither technology can eliminate the possibility of misjudging the headphones as being worn due to being held. However, the embodiment of this application can distinguish between being worn and being held by the headphones based on whether the impedance value is less than the target impedance value, accurately determining whether the headphones are worn and reducing the misjudgment rate of headphone wear detection.
[0059] This application embodiment further determines whether the headphones are being worn by judging whether the impedance value is less than a preset target impedance value. This makes up for the shortcomings of the existing technology for headphone wearing detection, which cannot exclude the situation of handheld headphones. This makes headphone wearing detection more reliable and accurate, thereby reducing the false judgment rate of headphone wearing detection.
[0060] Please see Figure 7 , Figure 7 A flowchart illustrating another embodiment of the headphone control method provided in this application is shown. The following will focus on... Figure 7 The process shown will be described in detail, and the method may specifically include the following steps:
[0061] Step S310: Measure the impedance between at least two electrodes at a single frequency point.
[0062] In this embodiment, measuring the impedance value between at least two electrodes at a single frequency point means that the impedance value of at least two electrodes can be measured based on the excitation signal at a single frequency point. That is, an excitation signal at a single frequency point is passed between at least two electrodes, and the voltage between at least two electrodes is measured under the action of the excitation signal. Then, the impedance value between at least two electrodes can be determined based on the voltage.
[0063] In some implementations, this single frequency point can be a low frequency point, such as 20Hz, 30Hz, 40Hz, 50Hz, 100Hz, etc., or a medium-high frequency point, such as 1KHz, 50KHz, 1MHz, etc. The embodiments of this application do not impose specific restrictions on the selection of this single frequency point.
[0064] Step S320: Determine whether the impedance value is within the preset impedance value range corresponding to a single frequency point.
[0065] First, it should be noted that when at least two electrodes are in contact with the human body, an impedance measurement loop is formed between the human body and the electrodes. The impedance measured between the two electrodes is the human body impedance, which, when affected by the current path, is generally within 500 ohms. However, when at least two electrodes are not in contact with the human body, the impedance measurement loop is broken, and no impedance value can be measured. Therefore, an impedance value range corresponding to a single frequency point can be preset. This preset impedance value range should conform to the general characteristics of the human body impedance when at least two electrodes are in contact (the impedance value is usually within 500 ohms). The impedance value is then determined to meet the human body contact condition by judging whether the impedance value falls within this preset impedance value range.
[0066] It should be noted that the preset impedance value range is related to the frequency of the excitation signal, and the preset impedance value range can be adjusted according to the frequency of the excitation signal. Therefore, the embodiments of this application do not impose specific limitations on the specific value range of the preset impedance value range. For example, when the single frequency point (i.e., the frequency of the excitation signal) is 50KHz, the human body impedance value usually does not exceed 200 ohms. At this time, the preset impedance value range corresponding to the 50KHz frequency point can be 50 ohms to 200 ohms, or only an upper limit threshold such as 200 ohms can be set, in which case the corresponding impedance range is 0-200 ohms.
[0067] Step S330: When the impedance value is within the preset impedance value range corresponding to a single frequency point, determine that the impedance value meets the human body contact conditions.
[0068] In some implementations, when the impedance value is within a preset impedance range corresponding to a single frequency point, it can be determined that the impedance value meets the human contact conditions. For example, if 50 ohms to 200 ohms is selected as the preset impedance range corresponding to a 50 kHz frequency point, and the impedance value is measured to be 100 ohms under the action of a 50 kHz excitation signal, it can be determined that the impedance value is within the preset impedance range corresponding to the 50 kHz frequency point, and therefore it can be determined that the impedance value meets the human contact conditions.
[0069] Step S340: When the impedance value meets the human body contact conditions, determine whether the headphones are in a worn state or a handheld state based on the impedance value.
[0070] For a detailed description of step S340, please refer to step S130, which will not be repeated here.
[0071] The headphone control method provided in this application is applied to headphones, which include a headphone body and at least two electrodes disposed on the headphone body. By measuring the impedance value between the at least two electrodes at a single frequency point, it is determined whether the human body impedance is within a preset impedance range corresponding to the single frequency point. When the impedance value is within the preset impedance range corresponding to the single frequency point, it is determined that the impedance value meets the human body contact condition. When the impedance value meets the human body contact condition, it is determined that the headphone is in a worn state or a handheld state based on the impedance value. This embodiment improves the efficiency of headphone wearing detection by measuring the impedance value at a single frequency point and further determining whether the headphone is in a worn state or a handheld state based on the impedance value when the impedance value meets the human body contact condition. Therefore, the wearing state of the headphone only needs to be determined once by measuring the human body impedance, which improves the efficiency of headphone wearing detection.
[0072] In one embodiment, see Figure 8 , Figure 8 A schematic flowchart of another embodiment of the headphone control method provided in this application is shown. The following will focus on... Figure 8 The process shown will be described in detail, and the method may specifically include the following steps:
[0073] Step S410: Measure multiple impedance values between at least two electrodes at multiple frequency points.
[0074] In this embodiment, multiple impedance values between at least two electrodes can be measured at multiple frequency points. Specifically, the impedance values of at least two electrodes can be measured based on excitation signals at multiple frequency points. That is, multiple excitation signals corresponding to multiple frequency points are passed between at least two electrodes, and multiple voltages between at least two electrodes corresponding to the multiple excitation signals are measured. Then, multiple impedance values between at least two electrodes can be determined based on the voltages, wherein each impedance value corresponds to an excitation signal at one frequency point.
[0075] The multiple frequency points can be two, three, four, etc. This application embodiment does not impose a specific limitation on the number of selected frequency points. For example, the multiple frequency points can be three of 100Hz, 200Hz, 5KHz, 10KHz, 50KHz, 100KHz, and 250KHz. In some implementations, three frequency points—5Hz, 50Hz, and 250Hz—can be selected. This application embodiment does not impose a specific limitation on the selected multiple frequency points. Measuring multiple impedance values between at least two electrodes at multiple frequency points can mean measuring the impedance values between at least two electrodes at each of the multiple frequency points.
[0076] In some embodiments, the multiple frequency points may include at least one first frequency point within a preset low-frequency range and at least one second frequency point within a preset high-frequency range. The preset low-frequency range may be 80Hz to 220Hz, and the preset high-frequency range may be 1kHz to 500kHz. For example, the multiple frequency points may be 90Hz and 100kHz. In some embodiments, the multiple frequency points may also include at least two second frequency points within the preset high-frequency range. For example, the multiple frequency points may be 100kHz and 200kHz. The specific selection of these frequencies is not limited here.
[0077] Step S420: Determine an impedance measurement sequence based on multiple impedance values. The impedance measurement sequence includes multiple impedance values.
[0078] The aforementioned multiple impedance values can be arranged according to the numerical relationship of their corresponding frequency points. For example, they can be arranged in ascending order of the corresponding frequency points, or in descending order of the corresponding frequency points. This application does not impose specific limitations on this. After arranging the measured impedance values in a certain order, an impedance measurement sequence is obtained.
[0079] In some implementations, the frequency difference between any two adjacent impedance values in the impedance measurement sequence can be a fixed value. For example, the impedance value measured at 50 Hz is Z1, the impedance value measured at 100 Hz is Z2, and the impedance value measured at 150 Hz is Z3. Arranging the measured impedance values in ascending order of their corresponding frequency points yields the impedance measurement sequence [Z1, Z2, Z3], where the frequency difference between any two adjacent impedance values is 50 Hz.
[0080] In other embodiments, the frequency difference between any two adjacent impedance values in the impedance measurement sequence may not be a fixed value. For example, the frequency points corresponding to each impedance value in the impedance measurement sequence may be 200Hz, 100Hz, and 50Hz, respectively.
[0081] Step S430: Determine whether the impedance measurement sequence matches the preset human body impedance reference sequence.
[0082] In this embodiment, the human body impedance of one or more human subjects can be measured in advance using the aforementioned headphones based on excitation signals at the aforementioned multiple frequency points, and reference impedance values corresponding to the aforementioned multiple frequency points can be obtained. Each reference impedance value represents the human body impedance of a typical human body at a specific frequency point. By arranging these reference impedance values in a certain order, an impedance reference sequence can be obtained.
[0083] Since the measured human body impedance is related to the frequency of the excitation signal, when measuring the same part of the same human body, the measured impedance value usually decreases as the frequency of the excitation signal increases. Therefore, there is a certain pattern among the multiple reference impedance values in the aforementioned impedance reference sequence. Similarly, in the actual use of headphones, when a user wears or holds the headphones, after detecting the user's human body impedance value using excitation signals at the same multiple frequency points and obtaining the aforementioned impedance measurement sequence, the multiple impedance values in this impedance measurement sequence also conform to the above pattern, that is, the impedance measurement sequence matches the impedance reference sequence. Therefore, by determining whether the impedance measurement sequence matches the preset impedance reference sequence, it can be confirmed whether the impedance measurement sequence conforms to the impedance sequence pattern of a normal human body.
[0084] For example, excitation currents at three frequencies—50Hz, 100Hz, and 150Hz—can be pre-selected to measure one or more samples. The general human body impedance value measured at 50Hz is Y1, at 100Hz it is Y2, and at 150Hz it is Y3. These measured impedance values are arranged in ascending order of these three frequencies to obtain the impedance reference sequence [Y1, Y2, Y3]. In step S420, similarly, excitation currents at 50Hz, 100Hz, and 150Hz are selected to measure the impedance between at least two electrodes, obtaining the impedance measurement sequence [Z1, Z2, Z3].
[0085] In some implementations, it can be determined whether the impedance measurement sequence matches the preset impedance reference sequence by judging whether the impedance measurement sequence is consistent with the preset impedance parameter sequence. For example, when the impedance measurement sequence [Z1, Z2, Z3] is the same as the impedance reference sequence [Y1, Y2, Y3], it is determined that the impedance measurement sequence matches the preset impedance reference sequence.
[0086] In other embodiments, correlation analysis can be performed on the impedance measurement sequence and the impedance reference sequence. Matching is determined by whether the correlation between the impedance measurement sequence and the impedance reference sequence reaches a certain threshold. For example, correlation analysis can be performed on the impedance measurement sequence [Z1, Z2, Z3] and the impedance reference sequence [Y1, Y2, Y3]. If the correlation between the impedance measurement sequence [Z1, Z2, Z3] and the impedance reference sequence [Y1, Y2, Y3] exceeds a certain threshold, such as 80%, the impedance measurement sequence is determined to match the preset impedance reference sequence.
[0087] Step S440: When the impedance measurement sequence matches the human body impedance reference sequence, determine that the impedance value meets the human body contact conditions.
[0088] In this embodiment, when the impedance measurement sequence matches the human body impedance reference sequence, it can be said that the measured impedance measurement sequence conforms to the impedance sequence pattern of a normal human body. Therefore, it can be determined that the impedance value in the impedance measurement sequence is the impedance value of a normal human body, that is, the impedance value meets the human body contact conditions.
[0089] This embodiment determines whether the human contact conditions are met by using the correlation between two sequences rather than the difference between impedance values. This eliminates interference factors caused by impedance measurement errors and improves the accuracy of the judgment results.
[0090] Please see Figure 9 , Figure 9 An embodiment of this application is shown. Figure 8 The flowchart illustrates an embodiment of step S440 of the headphone control method shown. The following will focus on... Figure 9 The process shown will be described in detail, and the method may specifically include the following steps:
[0091] Step S441: Perform correlation analysis on the impedance measurement sequence and the human body impedance reference sequence to obtain the correlation parameters between the impedance measurement sequence and the human body impedance reference sequence.
[0092] In this embodiment, a correlation analysis is performed on the impedance measurement sequence and the human body impedance reference sequence. Specifically, a correlation parameter between the impedance measurement sequence and the human body impedance reference sequence can be calculated. Optionally, this correlation parameter can be a correlation coefficient or an Euclidean distance, where the Euclidean distance can be a standard Euclidean distance or a normalized Euclidean distance. A larger correlation coefficient indicates a stronger correlation or matching degree between the impedance measurement sequence and the impedance reference sequence; conversely, a larger Euclidean distance indicates a weaker correlation or matching degree between the impedance measurement sequence and the human body impedance reference sequence.
[0093] Taking the correlation coefficient as an example, in some embodiments, linear correlation can be used to calculate the correlation coefficient between two sequences, or nonlinear correlation can also be used. For instance, when using linear correlation to calculate the correlation coefficient between two sequences, the ratio of sequences [Z1, Z2, Z3] to [Y1, Y2, Y3] is calculated, i.e. Once the calculation result X is obtained, X is used as the correlation coefficient between the impedance measurement sequence and the preset human body impedance reference sequence. This application embodiment does not impose specific limitations on the method for calculating the correlation coefficient between the impedance measurement sequence and the preset human body impedance reference sequence.
[0094] Step S442: When the value of the relevant parameter is within the preset reference range, determine that the impedance value meets the human body contact conditions.
[0095] A reference range for the correlation parameter can be preset, and the correlation parameter calculated in step S441 can be compared with the preset reference range to determine whether the impedance measurement sequence matches the human body impedance reference sequence. When the value of the correlation parameter is within the preset reference range, the measured impedance value is determined to meet the human body contact conditions. For example, taking the correlation coefficient as an example, a preset range of 0.8-1 can be set. When the correlation coefficient X calculated in step S441 is within 0.8-1, it indicates that the impedance measurement sequence has a high correlation with the preset impedance reference sequence, thus determining that the impedance value meets the human body contact conditions. Similarly, taking the normalized Euclidean distance as an example, a reference range of 0-0.3 can be set. When the normalized Euclidean distance X calculated in step S441 is within 0-0.3, it indicates that the impedance measurement sequence has a high correlation with the preset impedance reference sequence, thus determining that the impedance value meets the human body contact conditions.
[0096] It should be noted that the range of values for the preset correlation parameter can be set according to the actual requirements for the accuracy of headphone detection, and this application embodiment does not impose specific limitations on this.
[0097] Step S450: When the impedance value meets the human body contact conditions, determine whether the headphones are in a worn state or a handheld state based on the impedance value.
[0098] When the impedance value meets the human contact condition, it is not sufficient to indicate that the headphones are being worn. This is because when holding the headphones, the fingers contact at least two electrodes, which also closes the impedance measurement circuit, and the measured impedance value at this time also meets the human contact condition. As described in step S130, the human impedance value is generally greater than 200 ohms when holding the headphones, while it is generally between 10 and 200 ohms when the headphones are being worn. Therefore, a limit value can be set to determine whether the headphones are being worn or held. For example, 200 ohms can be set as the limit value. When Z1, Z2, and Z3 are all less than 200 ohms, it can be determined that the headphones are being worn; when at least one of Z1, Z2, and Z3 is not less than 200 ohms, it can be determined that the headphones are being held. It should be noted that the limit value can be set according to the actual accuracy requirements for headphone wearing detection. This application embodiment does not impose specific restrictions on this. Alternatively, depending on the actual situation, a limit value may not be set, but a threshold range may be set to determine whether the headphone is in a worn state or a handheld state. The determination method can also be set according to the actual requirements for the headphone. This application embodiment does not impose specific restrictions on this.
[0099] The headphone control method provided in this application is applied to a headphone, which includes a headphone body and at least two electrodes disposed on the headphone body. The method measures the impedance values between the at least two electrodes at multiple frequency points, determines an impedance measurement sequence based on these multiple impedance values, and determines whether the impedance measurement sequence matches a preset impedance reference sequence. When the impedance measurement sequence matches the impedance reference sequence, it is determined that the impedance value meets the human body contact condition. When the impedance value meets the human body contact condition, it is determined that the headphone is in a worn state or a handheld state based on the impedance value. By measuring the impedance values between at least two electrodes at multiple frequency points to determine whether the headphone is in a worn state, the accuracy of headphone wear detection is improved, and the false judgment rate of headphone wear detection is reduced.
[0100] In one embodiment, such as Figure 10 As shown, after determining that the headphones are in a worn state, the above-mentioned headphone control method may further include the following steps:
[0101] Step S510: When it is determined that the earphone is in the wearing state, the first impedance value between at least two electrodes is measured by an excitation signal of the first frequency, wherein the first frequency is less than or equal to the frequency point corresponding to the impedance value.
[0102] In this embodiment, when the earphone is in a worn state, the first impedance value between at least two electrodes can be measured by an excitation signal of the first frequency, wherein the first frequency is less than or equal to the frequency corresponding to the impedance value.
[0103] Specifically, when the frequency corresponding to the aforementioned impedance value used to determine whether the human body contact condition is met is in the mid-to-high frequency range, such as 1kHz to 1MHz, and the headphones are detected to be worn, the mid-to-high frequency can be switched to a low frequency, and then the first impedance value between at least two electrodes can be measured at this low frequency. When the frequency corresponding to the aforementioned impedance value used to determine whether the human body contact condition is met is low frequency, such as 90-220Hz, the first impedance value between at least two electrodes can be measured directly at this frequency.
[0104] Since the current is mainly transmitted through the human skin under the action of a low-frequency excitation signal, the first impedance value measured by the excitation signal of the first frequency is the skin impedance between the two measurement points on the user's ear.
[0105] Step S520: Calculate skin conductance parameters based on the first impedance value.
[0106] Skin conductance parameters can be calculated based on skin impedance. Therefore, in this embodiment, when the first impedance value is measured, the skin conductance parameters can be obtained by taking the reciprocal of the first impedance value. The skin conductance parameters may include skin conductance level and skin conductance response.
[0107] Step S530: Determine the wearer's mood based on skin conductance parameters.
[0108] In this embodiment, skin conductivity parameters may include skin conductivity level and skin conductivity response. Skin conductivity level is the baseline value of physiological activity in a resting state, also known as "basal skin conductance." When a person is at rest, the baseline value between two points on the skin surface is the skin conductivity level. This level often fluctuates; it is relatively higher when an individual is active and relatively lower when relaxed. Skin conductivity response is a transient, rapid fluctuation in skin conductivity level, caused by a physiological or psychological agitation state. When a person is stimulated into a state of intense passion, such as anger, the transient, large-amplitude fluctuation in skin conductivity is the skin conductivity response. Skin conductivity level can serve as a baseline or reference point for skin conductivity response. Skin conductivity level and skin conductivity response are continuous processes; the lower the skin conductivity level, the stronger the skin conductivity response, and the more significant the difference between the two. Therefore, based on the baseline value of skin conductivity level, an allowable fluctuation range can be pre-set to determine the wearer's emotional state. When the skin conductance parameters calculated in step S520 are within the preset allowable fluctuation range, it is determined that the wearer of the headphones is relatively calm; when the skin conductance parameters calculated in step S520 exceed the preset allowable fluctuation range, it is determined that the wearer of the headphones may be experiencing significant emotional fluctuations due to excitement, agitation, or anger. It should be noted that this preset allowable fluctuation range can be set according to the actual requirements for the headphones, and this embodiment does not specifically limit it.
[0109] As one implementation method, after determining the wearer's mood, the music or volume being played can be adjusted according to the wearer's mood, so that the music or volume being played matches the user's mood and improves the user experience.
[0110] In this embodiment, when it is determined that the earphone is being worn, the first impedance value between at least two electrodes is measured by a low-frequency excitation signal, and the skin conductance level and skin conductance response are calculated based on the first impedance value. Based on the skin conductance level and skin conductance response, the wearer's mood is determined, making the earphone's functions richer and more diverse.
[0111] Please see Figure 11 , Figure 11 A schematic flowchart of another embodiment of the headphone control method provided in this application is shown. The following will focus on... Figure 11 The process shown will be described in detail, and the method may specifically include the following steps:
[0112] Step S610: Measure the impedance between at least two electrodes.
[0113] For a detailed description of this step, please refer to step S110; it will not be elaborated upon here.
[0114] Step S620: Obtain the heart rate signal based on the impedance value.
[0115] Since impedance values change systematically with blood circulation, this embodiment uses impedance values to obtain heart rate signals and determine whether the impedance values meet preset human contact conditions. Specifically, impedance signals from the human body are collected via electrodes. The collected signals are then subjected to integer-coefficient low-pass filtering to obtain a baseline value (depending on the window size). The original collected signal is then subtracted from the baseline value, followed by integer-coefficient high-pass filtering to remove baseline drift. Integer-coefficient low-pass filtering is then performed to remove high-frequency interference, followed by further filtering. After filtering, a convex-concave algorithm is used to obtain peak and trough signals. A heartbeat template is extracted based on the current peak and trough information. Subsequent heartbeat signals are then analyzed against the heartbeat template to extract peak and trough information, and the heart rate is calculated.
[0116] Step S630: When the heart rate signal meets the preset wearing heart rate condition, determine that the impedance value meets the preset human body contact condition.
[0117] In this embodiment, a heart rate signal threshold can be set to determine whether the calculated heart rate signal meets the wearing heart rate condition. Alternatively, other methods can be used to determine whether the heart rate meets the preset wearing heart rate condition. For example, it can also be determined whether the "heart rate signal" extracted according to the heart rate extraction method conforms to the preset general human heart rate fluctuation pattern. If it does, it means that the extracted signal is a real heart rate signal, thus determining that the extracted heart rate signal meets the preset wearing heart rate condition. Correspondingly, the impedance value meets the preset human body contact condition.
[0118] Step S640: When the impedance value meets the human body contact conditions, determine whether the headphones are in a worn state or a handheld state based on the impedance value.
[0119] For a detailed description of step S640, please refer to step S130, which will not be repeated here.
[0120] The headphone control method provided in this application is applied to headphones, which include a headphone body and at least two electrodes disposed on the headphone body. By measuring the impedance value between the at least two electrodes and acquiring a heart rate signal based on the impedance value, when the heart rate signal meets a preset wearing heart rate condition, it is determined that the impedance value meets a preset human contact condition. When the impedance value meets the preset human contact condition, it is determined that the headphone is in a worn state or a handheld state based on the impedance value. This application embodiment determines the heart rate signal based on the impedance value and judges whether the headphone is worn based on the heart rate signal, reducing the false judgment rate of headphone wear detection.
[0121] Please see Figure 12 , Figure 12 The diagram shows a structural block diagram of an earphone control device according to an embodiment of this application. The device is applied to an earphone, which includes an earphone body and at least two electrodes disposed on the earphone body. The earphone control device 1200 may include an impedance measurement module 1210, a condition judgment module 1220, and a state determination module 1230.
[0122] Impedance measurement module 1210 is used to measure the impedance value between at least two electrodes.
[0123] Furthermore, the impedance measurement module 1210 includes a first impedance measurement submodule and a second impedance measurement submodule, wherein:
[0124] The first impedance measurement submodule is used to measure the impedance value between at least two electrodes at a single frequency point.
[0125] The second impedance measurement submodule is used to measure the impedance value between at least two electrodes at multiple frequency points.
[0126] The condition judgment module 1220 is used to determine whether the impedance value meets the preset human body contact conditions.
[0127] Furthermore, the condition judgment module 1220 includes an impedance value judgment submodule and a first condition determination submodule, wherein:
[0128] The impedance value determination submodule is used to determine whether the impedance value is within the preset impedance value range corresponding to a single frequency point.
[0129] The first condition determination submodule is used to determine whether the impedance value meets the human contact condition when the impedance value is within the preset impedance value range corresponding to a single frequency point.
[0130] Furthermore, the condition judgment module 1220 also includes: a sequence determination submodule, a sequence matching submodule, and a second condition determination submodule, wherein:
[0131] The sequence determination submodule is used to determine the impedance measurement sequence based on multiple impedance values. The impedance measurement sequence includes multiple impedance values.
[0132] The sequence matching submodule is used to determine whether the impedance measurement sequence matches the preset impedance reference sequence.
[0133] The second condition determination submodule is used to determine whether the impedance value meets the human contact condition when the impedance measurement sequence matches the impedance reference sequence.
[0134] Furthermore, the second condition determination submodule includes: a correlation analysis unit and a condition determination unit, wherein:
[0135] The correlation analysis unit is used to perform correlation analysis on the impedance measurement sequence and the impedance reference sequence to obtain the correlation parameters between the impedance measurement sequence and the impedance reference sequence.
[0136] The condition determination unit is used to determine whether the impedance value meets the human contact conditions when the value of the relevant parameter is within the preset reference range.
[0137] Furthermore, the condition judgment module 1220 also includes: a heart rate signal acquisition submodule and a third condition determination submodule, wherein:
[0138] The heart rate signal acquisition submodule is used to acquire heart rate signals based on impedance values.
[0139] The third condition determination submodule is used to determine whether the impedance value meets the preset human body contact condition when the heart rate signal meets the preset wearing heart rate condition.
[0140] The state determination module 1230 is used to determine whether the headphones are in a worn state or a handheld state based on the impedance value when the impedance value meets the human body contact conditions.
[0141] Furthermore, the state determination module 1330 includes: a target impedance value judgment submodule, a first state determination submodule, and a second state determination submodule, wherein:
[0142] The target impedance value judgment submodule is used to determine whether the impedance value is less than the preset target impedance value when the impedance value meets the human contact conditions.
[0143] The first state determination submodule is used to determine that the headphones are in the wearing state when the impedance value is less than the preset target impedance value.
[0144] The second state determination submodule is used to determine that the earphone is in a handheld state when the impedance value is not less than the preset target impedance value.
[0145] Furthermore, the headphone control device 1200 also includes: a first impedance measurement module, a skin conductance calculation module, and an emotion determination module, wherein:
[0146] The first impedance measurement module is used to measure a first impedance value between at least two electrodes when the earphone is in a worn state, wherein the first frequency is less than or equal to the frequency corresponding to the impedance value.
[0147] The skin conductance calculation module is used to calculate skin conductance parameters based on the first impedance value.
[0148] The emotion determination module is used to determine the wearer's emotion based on skin conductance parameters.
[0149] The headphone control device provided in this application embodiment is used to implement the corresponding headphone control method in the foregoing method embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0150] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0151] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0152] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0153] Please refer to Figure 13 , Figure 13 This diagram illustrates a structural block diagram of an earphone according to an embodiment of this application. The earphone 1300 in this application may include one or more of the following components: a processor 1310, a memory 1320, and one or more computer programs. The one or more computer programs may be stored in the memory 1320 and configured to be executed by one or more processors 1310, and the one or more programs are configured to perform the methods described in the foregoing method embodiments.
[0154] The processor 1310 can connect to various parts within the headset 1300 via various interfaces and lines, and executes various functions and processes data of the headset 1300 by running or executing data stored in the memory 1320. Optionally, the processor 1310 can be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1310 can integrate one or a combination of several of the following: Microcontroller Unit (MCU), Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Modem. The CPU primarily handles the operating system, user interface, and computer programs; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem can also be implemented separately as a communication chip without being integrated into the processor 1310.
[0155] The memory 1320 may include random access memory (RAM) or read-only memory (ROM). The memory 1320 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1320 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data (such as audio data) created during the use of the headphones 1300.
[0156] If the above Figure 13 If each unit in the headphone control device shown is a function module such as a program package, each unit in the headphone control device is stored in the memory 1320 and can be called by the processor 1310 to execute the corresponding function.
[0157] In some embodiments, the headset 1300 may further include a wireless communication module, which can be used to communicate with other terminal devices. The wireless communication module may be a Bluetooth module, a WiFi module, etc., and is not specifically limited here.
[0158] Please refer to Figure 14 , Figure 14This diagram illustrates a structural block diagram of a computer-readable storage medium according to an embodiment of this application. The computer-readable storage medium 1400 stores program code that can be invoked by a processor to execute the methods described in the above method embodiments.
[0159] The computer-readable storage medium 1400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1400 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1400 has storage space for program code 1410 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 1410 may be compressed, for example, in a suitable form.
[0160] In summary, this application discloses a headphone control method and a headphone, relating to the field of audio equipment technology. The method is applied to a headphone, which includes a headphone body and at least two electrodes disposed on the headphone body. The method includes: measuring the impedance value between the at least two electrodes; determining whether the impedance value meets preset human contact conditions; and when the impedance value meets the human contact conditions, determining whether the headphone is in a worn state or a handheld state based on the impedance value. This application, by determining whether the impedance value meets preset human contact conditions, and further determining whether the headphone is in a worn state or a handheld state based on the impedance value when the impedance value meets the preset human contact conditions, accurately determines whether the headphone is in a worn state through two determinations, reducing the false positive rate of headphone wear detection.
[0161] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A headphone control method, characterized in that, Applied to headphones, the headphones including a headphone body and at least two electrodes disposed on the headphone body, the method includes: Measure the impedance value between the at least two electrodes; Determine whether the impedance value meets the preset human body contact conditions; When the impedance value meets the human body contact condition, it is determined whether the impedance value is less than a preset target impedance value, which is less than the impedance value measured by the earphone in a handheld state; When the impedance value is less than the preset target impedance value, it is determined that the earphone is in a worn state.
2. The method according to claim 1, characterized in that, Measuring the impedance value between the at least two electrodes includes: Measure the impedance between the at least two electrodes at a single frequency point; The step of determining whether the impedance value meets the human body contact conditions includes: Determine whether the impedance value is within the range of the preset impedance value corresponding to the single frequency point; When the impedance value is within the preset impedance value range corresponding to the single frequency point, it is determined that the impedance value meets the human body contact conditions.
3. The method according to claim 1, characterized in that, Measuring the impedance value between the at least two electrodes includes: Measure multiple impedance values between the at least two electrodes at multiple frequency points; The step of determining whether the impedance value meets the human body contact conditions includes: An impedance measurement sequence is determined based on the plurality of impedance values, wherein the impedance measurement sequence includes the plurality of impedance values; Determine whether the impedance measurement sequence matches a preset human body impedance reference sequence; When the impedance measurement sequence matches the human body impedance reference sequence, it is determined that the impedance value meets the preset human body contact conditions.
4. The method according to claim 3, characterized in that, When the impedance measurement sequence matches the human body impedance reference sequence, determining that the impedance value meets the preset human body contact conditions includes: Correlation analysis is performed on the impedance measurement sequence and the human body impedance reference sequence to obtain the correlation parameters between the impedance measurement sequence and the human body impedance reference sequence; When the value of the correlation parameter is within the preset reference range, the impedance value is determined to meet the preset human contact conditions.
5. The method according to claim 3, characterized in that, The plurality of frequency points include at least one first frequency point in a preset low frequency range and at least one second frequency point in a preset high frequency range, or the plurality of frequency points include at least two second frequency points in a preset high frequency range; The preset low-frequency range is 80Hz to 220Hz, and the preset high-frequency range is 1KHz to 500KHz.
6. The method according to claim 5, characterized in that, When the multiple frequency points are arranged in a preset order, the difference between any two adjacent frequency points is fixed.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: When it is determined that the earphone is in a worn state, a first impedance value between the at least two electrodes is measured by an excitation signal of a first frequency, wherein the first frequency is less than or equal to the frequency point corresponding to the impedance value; Calculate skin conductivity parameters based on the first impedance value; The wearer's mood is determined based on the skin conductivity parameters.
8. The method according to claim 1, characterized in that, The step of determining whether the impedance value meets the preset human contact conditions includes: Heart rate signal is obtained based on the impedance value; When the heart rate signal meets the preset wearing heart rate condition, it is determined that the impedance value meets the preset human body contact condition.
9. An earphone, characterized in that, The device includes an earphone body, at least two electrodes, an impedance measurement unit, and a control unit. The at least two electrodes are disposed on the earphone body. The impedance measurement unit is electrically connected to the control unit and the at least two electrodes, respectively. The impedance measuring unit is used to measure the impedance value between the at least two electrodes; The control unit is used to determine whether the impedance value meets the human body contact conditions; The control unit is further configured to determine whether the impedance value is less than a preset target impedance value when the impedance value meets the human contact condition, wherein the preset target impedance value is less than the impedance value measured by the earphone in a handheld state; The control unit is further configured to determine that the earphone is in a worn state when the impedance value is less than the preset target impedance value.
10. The earphone according to claim 9, characterized in that, The earphone body includes an earphone head, the earphone head includes a sound playback hole for playing audio, and the at least two electrodes are disposed on the earphone head and located on both sides of the sound playback hole; when the earphone is in the wearing state, at least a portion of the earphone head is placed inside the human ear, and the sound playback hole is opposite to the human ear canal, and the at least two electrodes are in contact with the human ear.
11. The earphone according to claim 10, characterized in that, The earphone includes four electrodes, which are arranged in pairs on both sides of the sound hole.
Citation Information
Patent Citations
Detection method and device for wearing state of earphone
CN108134969A
Audio playing system and earphones
CN202034054U