WO2022233192A1 - Detection method for wireless in-ear earphones, and earphones and storage medium - Google Patents

Detection method for wireless in-ear earphones, and earphones and storage medium Download PDF

Info

Publication number
WO2022233192A1
WO2022233192A1 PCT/CN2022/082218 CN2022082218W WO2022233192A1 WO 2022233192 A1 WO2022233192 A1 WO 2022233192A1 CN 2022082218 W CN2022082218 W CN 2022082218W WO 2022233192 A1 WO2022233192 A1 WO 2022233192A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
ear
sensor
wearing state
determined
Prior art date
Application number
PCT/CN2022/082218
Other languages
French (fr)
Chinese (zh)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022233192A1 publication Critical patent/WO2022233192A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Definitions

  • the present application relates to the field of wireless earphones, and in particular, to a wireless in-ear earphone detection method, an earphone and a storage medium.
  • the left and right earphones of the existing wireless earphones are fixed on the left and right ears of the user through structural design.
  • the left earphone design of some wireless earphones cannot be placed in the right ear
  • the right earphone design cannot be placed in the left ear
  • the left earphone of some wireless earphones outputs the left sound. channel
  • the right earphone outputs the right channel.
  • the wireless earphone cannot be worn on the ear at will. If the earphone is worn incorrectly, the playback effect of the earphone and the wearing experience of the user will be affected.
  • the embodiments of the present application provide a method for detecting a wireless in-ear earphone, an earphone, and a storage medium.
  • a method for detecting a wireless in-ear earphone wherein a first earphone and a second earphone of the wireless in-ear earphone respectively include a sensor; wherein the tragus-side casing of the first earphone includes the sensor, The opposite tragus side housing of the second earphone includes the sensor, and the method includes:
  • the wearing state of the first earphone and/or the second earphone is determined based on the detection value.
  • a wireless in-ear headset is provided.
  • the first earphone and the second earphone of the wireless in-ear earphone respectively include a sensor and a processor; wherein, the tragus side casing of the first earphone includes the sensor, and the opposite tragus side casing of the second earphone includes the sensor, wherein,
  • the sensor configured to collect detection values
  • the processor is configured to determine the wearing state of the first earphone and/or the second earphone based on the detection value.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method described in the foregoing first aspect.
  • Embodiments of the present application provide a method for detecting a wireless in-ear earphone, an earphone, and a storage medium, wherein the first earphone and the second earphone of the wireless in-ear earphone respectively include sensors; wherein, the tragus side of the first earphone The casing includes the sensor, and the opposite tragus side casing of the second earphone includes the sensor, and the method includes: collecting a detection value through the sensor; determining the first earphone and/or the second earphone based on the detection value wearing status.
  • FIG. 1 is a schematic diagram of wearing the right ear of an in-ear earphone in an embodiment of the present application
  • FIG. 2 is a schematic diagram of wearing the left ear of the in-ear earphone according to the embodiment of the application;
  • FIG. 3 is a first schematic flowchart of a method for detecting a wireless in-ear headphone according to an embodiment of the present application
  • FIG. 4 is a second schematic flowchart of a method for detecting a wireless in-ear headphone according to an embodiment of the present application
  • FIG. 5 is a schematic flowchart of a third process of a method for detecting a wireless in-ear headphone according to an embodiment of the present application
  • FIG. 6 is a fourth schematic flowchart of a method for detecting a wireless in-ear headphone according to an embodiment of the present application
  • FIG. 7 is a schematic structural diagram of a wireless in-ear earphone according to an embodiment of the present application.
  • An embodiment of the present application provides a method for detecting a wireless in-ear earphone, wherein a first earphone and a second earphone of the wireless in-ear earphone respectively include sensors; wherein the tragus-side casing of the first earphone includes the sensor, The opposite tragus side housing of the second earphone includes the sensor.
  • the sensor positions of the two earphones are the same, but when the two ears are in the in-ear state at the same time, the sensor detection positions are different.
  • FIG. 1 which is a schematic diagram of wearing the first earphone on the right ear
  • the sensor 11 of the first earphone is close to the tragus side (ie, the first position).
  • the first earphone is worn on the left ear
  • the first earphone The sensor 11 is close to the opposite tragus side (ie the second position).
  • FIG. 2 which is a schematic diagram of wearing the second earphone on the left ear
  • the sensor 21 of the second earphone is close to the opposite tragus side (ie, the second position).
  • the second earphone is worn on the right ear
  • the second The sensor 21 of the earphone is close to the tragus side (ie, the first position). Therefore, the contact characteristics collected by the sensors on different ears of the two earphones are different, and the wearing state of the earphones can be judged according to the detection values collected by the sensors.
  • FIG. 3 is a first schematic flowchart of the method for detecting wireless in-ear headphones in the embodiment of the present application, as shown in FIG. 3 .
  • the method may include:
  • Step 301 collect detection values through sensors
  • Step 302 Determine the wearing state of the first earphone and/or the second earphone based on the detection value.
  • the senor is one of the following: a contact area sensor, a pressure sensor, a temperature sensor, or a light sensor.
  • the detection value is a pressure value
  • the detection value is a temperature value
  • the detection value is the amount of incoming light
  • the installation position of the sensor can be determined according to the contact characteristics of the earphone and the ear canal, and the greater the difference between the contact characteristics, the higher the detection accuracy.
  • the position of the sensor when the first earphone is worn on the left ear, the position of the sensor is in contact with the first position of the ear, and the position opposite to the sensor is not in contact with the second position of the ear.
  • the position of the sensor when worn on the right ear, the position of the sensor is in contact with the second position of the ear, and the position on the opposite side of the sensor is not in contact with the first position of the ear.
  • the sensor is a pressure sensor, a temperature sensor or a light sensor
  • a corresponding sensor when it is detected that the first earphone and/or the second earphone is switched from a non-in-ear state to an in-ear state, a corresponding sensor is turned on; and the first earphone and/or the second earphone is determined After the wearing state, turn off the corresponding sensor. That is to say, when switching from the non-in-ear state to the in-ear state, it indicates that the user performs the wearing operation on the earphone, and the wearing state detection needs to be performed and the sensor is turned on; in other states, there is no need to perform the wearing detection, and the sensor can be turned off to reduce the consumption of the earphone. Electricity.
  • the senor can also be turned on according to a certain time interval, and can also be in a normally on state.
  • the method further includes: controlling the first earphone and/or the second earphone to work in an earphone playing mode corresponding to the wearing state of the first earphone.
  • the earphone playing mode is a left-ear playing mode or a right-ear playing mode.
  • users can use two headphones at the same time, or use one headphone alone. There is no need to distinguish the left and right of the two earphones. After the earphones are worn, they will automatically identify the ear worn by each earphone according to the detection value of the first sensor and the second sensor, so as to control the earphone to work in the earphone playback mode corresponding to its own wearing state. Avoid user wearing errors affecting the playback effect, and improve the user experience of using wireless headphones.
  • the left and right earphones can be set to be exactly the same, which also saves design costs and production costs.
  • the senor is a contact area sensor, and the detected value is a contact area value
  • the determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
  • the contact area value is greater than the area threshold, it is determined that the first earphone is in the right ear wearing state, and when the contact area value is less than the area threshold, it is determined that the first earphone is in the left ear wearing state;
  • the contact area value is greater than the area threshold, it is determined that the second earphone is in the right ear wearing state, and when the contact area value is smaller than the area threshold, it is determined that the second earphone is in the left ear wearing state.
  • the identification methods of the left and right earphones of the first earphone and the second left earphone are exactly the same.
  • the contact area of the earphone on the tragus side ie the first position
  • the contact area of the earphone on the opposite tragus side ie the second position
  • the first sensor is used to detect the contact area value with the first position of the ear of the right ear, and the detected contact area value is relatively large.
  • the sensor is used to detect the contact area value of the second position of the left ear, and the detected contact area value is small.
  • the sensor of the first earphone detects that the contact area value is greater than the area threshold, it is determined that the first earphone is worn on the right ear, and when the contact area value is smaller than the area threshold, it is determined that the first earphone is worn on the left ear.
  • the sensor of the second earphone detects that the contact area value is greater than the area threshold, it is determined that the second earphone is worn on the right ear, and when the contact area value is less than the area threshold, it is determined that the second earphone is worn on the left ear.
  • the area threshold can be obtained by pre-detecting the contact area between the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain an area threshold suitable for left and right ear judgment.
  • the senor is a pressure sensor, and the detected value is a pressure value
  • the determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
  • the pressure value is greater than the pressure threshold, it is determined that the first earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the first earphone is in the left ear wearing state;
  • the pressure value is greater than the pressure threshold, it is determined that the second earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is in the left ear wearing state.
  • the pressure applied by the earphone to the first position is also larger, the contact area of the earphone at the second position of the ear is small, and the pressure of the earphone to the second position is small. less pressure.
  • the sensor is used to detect the pressure value of the first position of the ear of the right ear, and the detected pressure value is relatively large.
  • the sensor is used to detect the pressure value of the second position of the ear of the left ear, and the detected pressure value is relatively small.
  • the sensor of the first earphone detects that the pressure value is greater than the pressure threshold, it is determined that the first earphone is worn on the right ear, and when the pressure value is less than the pressure threshold, it is determined that the first earphone is worn on the left ear.
  • the sensor of the second earphone detects that the pressure value is greater than the pressure threshold, it is determined that the second earphone is worn on the right ear, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is worn on the left ear.
  • the pressure threshold can be obtained by pre-detecting the pressure values at the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain a pressure threshold suitable for left and right ear judgment.
  • the senor is a temperature sensor, and the detected value is a temperature threshold;
  • the determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
  • the temperature threshold is greater than the temperature threshold, it is determined that the first earphone is in the right ear wearing state, and when the temperature threshold is less than the temperature threshold, it is determined that the first earphone is in the left ear wearing state;
  • the temperature threshold is greater than the temperature threshold, it is determined that the second earphone is in the right ear wearing state, and when the temperature threshold is smaller than the temperature threshold, it is determined that the second earphone is in the left ear wearing state.
  • the temperature value detected at the first position is greatly affected by the temperature of the human body, and the contact area of the earphone at the second position of the ear is smaller.
  • the temperature detected by the location is less affected by the body temperature.
  • the sensor is used to detect the temperature value of the first position of the ear of the right ear, and the detected temperature value is relatively large.
  • the sensor is used to detect the temperature value of the second position of the ear of the left ear, and the detected temperature value is small.
  • the sensor of the first earphone detects that the temperature value is greater than the temperature threshold, it is determined that the first earphone is worn on the right ear, and when the temperature value is less than the temperature threshold, it is determined that the first earphone is worn on the left ear.
  • the sensor of the second earphone detects that the temperature value is greater than the temperature threshold, it is determined that the second earphone is worn on the right ear, and when the temperature value is less than the temperature threshold, it is determined that the second earphone is worn on the left ear.
  • the pressure threshold can be obtained by pre-detecting the pressure values at the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain a pressure threshold suitable for left and right ear judgment.
  • the senor is a light sensor, and the detected value is the amount of incoming light
  • the determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
  • the incoming light amount is less than the light incoming amount threshold, it is determined that the first earphone is in the right ear wearing state, and when the incoming light amount is greater than the light incoming amount threshold, it is determined that the first earphone is in the left ear wearing state;
  • the second earphone When the incoming light amount is less than the light incoming amount threshold, it is determined that the second earphone is in the left ear wearing state, and when the incoming light amount is greater than the light incoming amount threshold, it is determined that the second earphone is in the right ear wearing state.
  • the light sensor has the functions of self-illumination and self-reception.
  • the wearing state is judged according to the amount of light received.
  • the light sensor can sense visible light signals or non-visible light signals. As shown in Figure 1, due to the large contact area of the earphone at the first position of the ear, the first position has a greater impact on the light transmission, and the amount of incoming light reflected by the first position into the light sensor is small, and the amount of incoming light detected is relatively small. Small, the contact area of the earphone at the second position of the ear is smaller, the second position has less influence on the light transmission, the amount of incoming light reflected by the second position into the light sensor is larger, and the amount of incoming light detected is larger.
  • the senor when the in-ear earphone is in the state of being worn on the right ear, the sensor is used to detect the amount of light entering the first position of the ear of the right ear. On the contrary, when the in-ear earphone is in the state of being worn on the left ear, the sensor is used to detect the amount of light entering the second position of the ear of the left ear.
  • the sensor of the first earphone detects that the incoming light amount is greater than the incoming light amount threshold, it is determined that the first earphone is worn on the right ear, and when the incoming light amount is less than the incoming light amount threshold, it is determined that the first earphone is worn in the left ear.
  • the sensor of the second earphone detects that the incoming light amount is greater than the incoming light amount threshold, it is determined that the second earphone is worn on the right ear, and when the incoming light amount is less than the incoming light amount threshold, it is determined that the second earphone is worn in the left ear.
  • the light input threshold can be obtained by pre-detecting the light input at the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain a light input threshold suitable for left and right ear judgment.
  • the predetermined condition includes any one of the following: the first earphone and the second earphone are in a communication disconnection state; the first earphone and the second earphone are in a communication connection state , and the first earphone or the second earphone is in an in-ear state; and the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state.
  • the earphone detection method provided by the embodiments of the present application can be implemented for one earphone alone; or can be implemented when two earphones are in a communication connection state, only one earphone is in an in-ear state, or two earphones are in an in-ear state at the same time.
  • the first earphone is used as the receiving end when the first earphone is in the wearing state detection, the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in a communication connection state.
  • the headset is in the in-ear state, as shown in Figure 4, the method further includes:
  • Step 401 the first earphone receives the second detection information sent by the second earphone;
  • the method further includes: within a preset time period, the first earphone does not receive the second detection information sent by the second earphone, and the first earphone is based on the first detection information , and determine that the first earphone is in a left-ear wearing state or a right-ear wearing state.
  • the first earphone does not need to refer to the detection information of the second earphone for judgment, and directly determines the current wearing state according to the first detection information.
  • Step 402 when the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is wrong;
  • the detection information (including the first detection information and the second detection information) may be the wearing state of the left earphone or the wearing state of the right earphone.
  • the method when it is determined that the detection information is wrong (here, the first detection information is wrong), the method further includes: re-executing the wireless in-ear headphone detection method; or generating and outputting prompt information of the detection error.
  • the first detection information and the second detection information are consistent, it means that two earphones are worn on one ear, and there must be an earphone detection error, and prompt information (for example, the prompt sound of Didi or abnormal light) can be generated. signal), prompting the user to manually find the problem. Or generate a re-detection instruction to control the first earphone and the second earphone to perform the detection operation again.
  • prompt information for example, the prompt sound of Didi or abnormal light
  • Step 403 When the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is correct.
  • the method further includes :
  • Step 501 the second earphone receives the first detection information sent by the first earphone
  • the method further includes: within a preset time period, the second earphone does not receive the first detection information sent by the first earphone, and the second earphone is based on the second detection information , and determine that the second earphone is in a left ear wearing state or a right ear wearing state.
  • the second earphone if the second earphone times out when receiving the first detection information, the second earphone also does not need to refer to the detection information of the first earphone for judgment, and directly determines the current wearing state according to the second detection information.
  • Step 502 when the second detection information of the second earphone itself is consistent with the first detection information, determine that the second detection information is wrong;
  • the method when it is determined that the detection information is wrong (here, the second detection information is wrong), the method further includes: re-executing the wireless in-ear headphone detection method; or generating and outputting prompt information of the detection error.
  • the first detection information and the second detection information are consistent, it means that two earphones are worn on one ear, and there must be an earphone detection error, and prompt information (for example, the prompt sound of Didi or abnormal light) can be generated. signal), prompting the user to manually find the problem. Or generate a re-detection instruction to control the first earphone and the second earphone to perform the detection operation again.
  • prompt information for example, the prompt sound of Didi or abnormal light
  • Step 503 When the second detection information of the second earphone itself is inconsistent with the first detection information, it is determined that the second detection information is correct; wherein the detection information is the left earphone wearing state or the right ear wearing state.
  • the detection information (including the first detection information and the second detection information) may also be a detection value.
  • the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, and the method further includes:
  • the first earphone receives the second detection information sent by the second earphone
  • the second earphone receives the first detection information sent by the first earphone
  • the method further includes: when it is determined that the first detection information is correct, controlling the first earphone to work in an earphone playback mode corresponding to the wearing state; when it is determined that the second detection information is correct, controlling the second earphone to work in the same The headset playback mode corresponding to the wearing state.
  • the left and right earphones do not need to be fixed for the wireless in-ear headphones, but the wearing status of the left and right earphones is detected by the set sensor, so as to flexibly set the playback mode of the left and right earphones, to avoid the wrong application playback due to the user's wearing. effect, improve the experience of using wireless headphones.
  • the left and right earphones can be set to be exactly the same, which also saves design costs and manufacturing costs.
  • first earphone and the second earphone are only for distinguishing the two earphones of the wireless earphone, the first earphone can also be regarded as the second earphone, and the second earphone can also be regarded as the first earphone.
  • FIG. 6 is a fourth schematic flowchart of the method for detecting wireless in-ear headphones in the embodiment of the application, as shown in FIG. 6 .
  • the method includes:
  • Step 601 the earphone is in the wearing state
  • Step 602 Determine whether the two earphones are in a connected state, if not, go to Step 603; if so, go to Step 604;
  • Step 603 the contact area value of the local end>the area threshold; if yes, determine the right earphone; if not, determine the left earphone;
  • the opposite end earphone is the second earphone; if the local earphone is the second earphone, the opposite end earphone is the first earphone.
  • the left and right earphones are identified by the single-ear detection method, and there is no need for the two earphones to transmit the detection results for mutual verification.
  • Step 604 request to obtain the peer detection signal
  • both earphones are in the connected state, but both earphones are not in the earphone state, the left and right ear judgments are not performed.
  • Step 605 Determine whether the peer detection message times out, if yes, go to Step 603; if not, go to Step 606;
  • Step 606 determine the contact area value of the opposite end ⁇ the contact area value of the local end, if yes, determine as the right earphone; if not, determine as the left earphone;
  • the local earphone is worn on the right ear and the sensor is close to the tragus, the opposite end earphone is worn on the left ear, the sensor is close to the opposite tragus, and the local contact area value collected by the sensor of the local earphone is larger than that of the opposite end. Contact area value.
  • the opposite earphone is worn on the right ear and the sensor is close to the tragus, and the local contact area value collected by the sensor of the local earphone is smaller than the opposite end contact area value.
  • the contact area value can be collected by the contact area sensor set on the earphone, and the left and right earphones can be distinguished according to the size of the contact area value, so as to ensure the user's wearing experience and the playback effect of the earphone.
  • the embodiment of the present application also provides a wireless in-ear earphone, as shown in FIG. 7 ,
  • the first earphone and the second earphone of the wireless in-ear earphone respectively include a sensor 701 and a processor 702; wherein, the tragus side shell of the first earphone includes the sensor 701, and the opposite tragus of the second earphone includes the sensor 701.
  • the side housing includes the sensor 701, wherein,
  • the sensor 701 is configured to collect detection values
  • the processor 702 is configured to determine the wearing state of the first earphone and/or the second earphone based on the detection value.
  • the senor is one of the following: a contact area sensor, a pressure sensor, a temperature sensor, or a light sensor.
  • the senor is a contact area sensor, and the detected value is a contact area value
  • the processor 702 is specifically configured to, under predetermined conditions, determine that the first earphone is in the right ear wearing state when the contact area value is greater than the area threshold, and determine that the first earphone is in the left ear when the contact area value is less than the area threshold Ear wearing state; when the contact area value is greater than the area threshold, it is determined that the second earphone is in the right ear wearing state, and when the contact area value is less than the area threshold, it is determined that the second earphone is in the left ear wearing state.
  • the senor is a pressure sensor, and the detected value is a pressure value
  • the processor 702 is specifically configured to, under predetermined conditions, determine that the first earphone is in a state of being worn on the right ear when the pressure value is greater than a pressure threshold, and determine that the first earphone is worn on the left ear when the pressure value is less than the pressure threshold state; when the pressure value is greater than the pressure threshold, it is determined that the second earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is in the left ear wearing state.
  • the senor is a temperature sensor, and the detected value is a temperature threshold;
  • the processor 702 is specifically configured to, under a predetermined condition, when the temperature threshold is greater than the temperature threshold, determine that the first earphone is worn on the right ear, and when the temperature threshold is less than the temperature threshold, determine that the first earphone is worn on the left ear state; when the temperature threshold is greater than the temperature threshold, it is determined that the second earphone is in the right ear wearing state, and when the temperature threshold is less than the temperature threshold, it is determined that the second earphone is in the left ear wearing state.
  • the senor is a light sensor, and the detected value is the amount of incoming light; the processor 702 is specifically configured to, under a predetermined condition, when the amount of incoming light is less than a threshold of incoming light, determine that the first earphone is in The wearing state of the right ear, when the light input amount is greater than the light input amount threshold, it is determined that the first earphone is in the left ear wearing state; when the light input amount is less than the light input amount threshold, it is determined that the second earphone is in the left ear wearing state, when the light input amount is in the left ear wearing state, When it is greater than the threshold value of the amount of incoming light, it is determined that the second earphone is in a state of being worn on the right ear.
  • the predetermined condition includes any one of the following: the first earphone and the second earphone are in a communication disconnection state; the first earphone and the second earphone are in a communication connection state , and the first earphone or the second earphone is in an in-ear state; and the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state.
  • the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, and the processor is further configured to control the first earphone to receive the received data.
  • the second detection information sent by the second earphone when the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is wrong; the first detection information of the first earphone itself When the detection information and the second detection information are inconsistent, it is determined that the first detection information is correct; wherein the detection information is a left earphone wearing state or a right ear wearing state.
  • the detection information (including the first detection information and the second detection information) may also be the first detection value and the second detection value.
  • the processor 702 is further configured to control the first earphone to receive the second detection information sent by the second earphone;
  • the wearing state represented by the first detection information is consistent with the wearing state represented by the second detection information, the first detection information is determined to be wrong; when the wearing state represented by the first detection information and the wearing state represented by the second detection information are inconsistent, the first detection information is determined to be incorrect The information is correct. or
  • the processor 702 is further configured to control the second earphone to receive the first detection information sent by the first earphone; when the wearing state represented by the first detection information is consistent with the wearing state represented by the second detection information, it is determined that the first detection information is wrong; When the wearing state represented by the first detection information is inconsistent with the wearing state represented by the second detection information, it is determined that the first detection information is correct.
  • the processor 702 is further configured to, within a preset time period, control the first earphone to control the first earphone based on the The detection information determines whether the first earphone is in a left-ear wearing state or a right-ear wearing state.
  • the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state.
  • the processor 702 is further configured to receive the received data from the second earphone.
  • the processor 702 is further configured to, within a preset time period, the second earphone does not receive the first detection information sent by the first earphone, and the second earphone is based on the second earphone The information is detected, and it is determined that the second earphone is in a left ear wearing state or a right ear wearing state.
  • the processor 702 is further configured to re-execute the wireless in-ear headphone detection method when it is determined that the detection information is incorrect; or generate and output prompt information of the detection error.
  • the processor 702 is further configured to turn on a corresponding sensor when detecting that the first earphone and/or the second earphone are switched from a non-in-ear state to an in-ear state; determine the first earphone and/or the in-ear state. /or after the wearing state of the second earphone, the corresponding sensor is turned off.
  • the first earphone and the second earphone of the wireless in-ear earphone may be provided with a processor to respectively control the two earphones to implement the above-mentioned wireless in-ear earphone detection method.
  • the first earphone and the second earphone may include only one processor, configured to control the two earphones to implement the above-mentioned wireless in-ear earphone detection method.
  • the embodiments of the present application do not specifically limit other hardware structures and control methods of the earphone.
  • the above wireless in-ear headphones further include a memory for storing a computer program, and the processor is configured to execute the steps of the wireless in-ear headphones detection method in any of the foregoing embodiments when the computer program is executed.
  • the bus system is used to realize the connection communication between these components.
  • the bus system also includes a power bus, a control bus and a status signal bus.
  • the above-mentioned wireless in-ear headphones do not need to fix the left and right earphones, but detect the wearing status of the left and right earphones through the set sensors, so as to flexibly set the playback mode of the left and right earphones, avoid the wrong application of the playback effect due to the user's wearing, and improve the use experience of the wireless earphones.
  • an embodiment of the present application further provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of a wireless in-ear headphone, so as to complete the aforementioned wireless in-ear headphone detection method A step of.
  • a computer-readable storage medium such as a memory including a computer program
  • the above-mentioned wireless headset further includes a memory for storing a computer program, and the processor is configured to execute the method steps in any of the foregoing embodiments when the computer program is executed.
  • the bus system is used to realize the connection communication between these components.
  • the bus system also includes a power bus, a control bus and a status signal bus.
  • the above-mentioned processor may be an application specific integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processing device (DSPD, Digital Signal Processing Device), a programmable logic device (PLD, Programmable Logic Device), field programmable At least one of a programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor.
  • ASIC Application Specific Integrated Circuit
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • the electronic device configured to implement the function of the processor may also be other, which is not specifically limited in this embodiment of the present application.
  • the above-mentioned memory can be a volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory); or a non-volatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory) Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
  • volatile memory such as random access memory (RAM, Random-Access Memory
  • non-volatile memory such as read-only memory (ROM, Read-Only Memory) Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive
  • SSD Solid-State Drive
  • first, second, third, etc. may be used in this application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from one another, and are not necessarily used to describe a particular order or sequence.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present invention.
  • the unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may all be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
  • the present application discloses a wireless in-ear earphone detection method, earphone and storage medium, wherein the first earphone and the second earphone of the wireless in-ear earphone respectively include sensors; wherein, the tragus side shell of the first earphone includes all the sensors.
  • the sensor, the opposite tragus side shell of the second earphone includes the sensor, and the method includes: collecting a detection value through the sensor; determining the wearing state of the first earphone and/or the second earphone based on the detection value .

Abstract

Disclosed in the present application are a detection method for wireless in-ear earphones, and earphones and a storage medium. Each of a first earphone and a second earphone of wireless in-ear earphones comprises a sensor, wherein a tragus side shell of the first earphone comprises the sensor, and an opposite tragus side shell of the second earphone comprises the sensor. The method comprises: collecting a detection value by means of a sensor; and determining a wearing state of a first earphone and/or a second earphone on the basis of the detection value. In this way, for in-ear earphones, left and right earphones do not need to be fixed, and wearing states of left and right earphones are detected by means of provided sensors, such that playing modes of left and right earphones are flexibly set, and the playing effect is prevented from being affected by a user wearing same incorrectly, thereby improving the usage experience of wireless earphones.

Description

一种无线入耳式耳机检测方法、耳机及存储介质A wireless in-ear earphone detection method, earphone and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202110497069.X,申请日为2021年05月07日,申请名称为“一种无线入耳式耳机检测方法、耳机及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the application number 202110497069.X, the application date is May 07, 2021, and the application name is "A wireless in-ear earphone detection method, earphone and storage medium" Chinese patent application, and requires the Chinese patent application the priority of the Chinese patent application, the entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请涉及无线耳机领域,尤其涉及一种无线入耳式耳机检测方法、耳机及存储介质。The present application relates to the field of wireless earphones, and in particular, to a wireless in-ear earphone detection method, an earphone and a storage medium.
背景技术Background technique
现有的无线耳机的左右耳机是通过结构设计固定在用户左右耳朵上,比如,一些无线耳机左耳机设计无法放入右耳朵,右耳机设计无法放入左耳朵,一些无线耳机左耳机输出左声道,右耳机输出右声道。这样,固定的左右耳设计,无法将无线耳机随意佩戴在耳朵上,若耳机佩戴错误,会影响耳机播放效果,以及用户的佩戴体验。The left and right earphones of the existing wireless earphones are fixed on the left and right ears of the user through structural design. For example, the left earphone design of some wireless earphones cannot be placed in the right ear, the right earphone design cannot be placed in the left ear, and the left earphone of some wireless earphones outputs the left sound. channel, the right earphone outputs the right channel. In this way, with the fixed left and right ear design, the wireless earphone cannot be worn on the ear at will. If the earphone is worn incorrectly, the playback effect of the earphone and the wearing experience of the user will be affected.
发明内容SUMMARY OF THE INVENTION
为解决上述技术问题,本申请实施例提供了本申请实施例期望提供一种无线入耳式耳机检测方法、耳机及存储介质。In order to solve the above technical problems, the embodiments of the present application provide a method for detecting a wireless in-ear earphone, an earphone, and a storage medium.
本申请的技术方案是这样实现的:The technical solution of the present application is realized as follows:
第一方面,提供了一种无线入耳式耳机检测方法,所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器;其中,所述第一耳机的耳屏侧 外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器,所述方法包括:In a first aspect, a method for detecting a wireless in-ear earphone is provided, wherein a first earphone and a second earphone of the wireless in-ear earphone respectively include a sensor; wherein the tragus-side casing of the first earphone includes the sensor, The opposite tragus side housing of the second earphone includes the sensor, and the method includes:
通过传感器采集检测值;Collect the detected value through the sensor;
基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。The wearing state of the first earphone and/or the second earphone is determined based on the detection value.
第二方面,提供了一种无线入耳式耳机,In a second aspect, a wireless in-ear headset is provided,
所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器和处理器;其中,所述第一耳机的耳屏侧外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器,其中,The first earphone and the second earphone of the wireless in-ear earphone respectively include a sensor and a processor; wherein, the tragus side casing of the first earphone includes the sensor, and the opposite tragus side casing of the second earphone includes the sensor, wherein,
所述传感器,配置为采集检测值;the sensor, configured to collect detection values;
所述处理器,配置为基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。The processor is configured to determine the wearing state of the first earphone and/or the second earphone based on the detection value.
第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现前述第一方面所述的方法的步骤。In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method described in the foregoing first aspect.
本申请实施例中提供了一种无线入耳式耳机检测方法、耳机及存储介质,所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器;其中,所述第一耳机的耳屏侧外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器,所述方法包括:通过传感器采集检测值;基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。这样,对于入耳式耳机无需固定左右耳机,而是通过设置的传感器检测左右耳机的佩戴状态,从而灵活设置左右耳机的播放模式,避免因用户佩戴错误应用播放效果,提高无线耳机的使用体验。Embodiments of the present application provide a method for detecting a wireless in-ear earphone, an earphone, and a storage medium, wherein the first earphone and the second earphone of the wireless in-ear earphone respectively include sensors; wherein, the tragus side of the first earphone The casing includes the sensor, and the opposite tragus side casing of the second earphone includes the sensor, and the method includes: collecting a detection value through the sensor; determining the first earphone and/or the second earphone based on the detection value wearing status. In this way, there is no need to fix the left and right earphones for the in-ear earphones, but the wearing state of the left and right earphones is detected by the set sensor, so as to flexibly set the playback mode of the left and right earphones, avoid the wrong application of the playback effect due to the user wearing, and improve the use experience of the wireless earphones.
附图说明Description of drawings
图1为本申请实施例中入耳式耳机的右耳佩戴示意图;1 is a schematic diagram of wearing the right ear of an in-ear earphone in an embodiment of the present application;
图2为本申请实施例中入耳式耳机的左耳佩戴示意图;FIG. 2 is a schematic diagram of wearing the left ear of the in-ear earphone according to the embodiment of the application;
图3为本申请实施例中无线入耳式耳机检测方法的第一流程示意图;FIG. 3 is a first schematic flowchart of a method for detecting a wireless in-ear headphone according to an embodiment of the present application;
图4为本申请实施例中无线入耳式耳机检测方法的第二流程示意图;FIG. 4 is a second schematic flowchart of a method for detecting a wireless in-ear headphone according to an embodiment of the present application;
图5为本申请实施例中无线入耳式耳机检测方法的第三流程示意图;FIG. 5 is a schematic flowchart of a third process of a method for detecting a wireless in-ear headphone according to an embodiment of the present application;
图6为本申请实施例中无线入耳式耳机检测方法的第四流程示意图;FIG. 6 is a fourth schematic flowchart of a method for detecting a wireless in-ear headphone according to an embodiment of the present application;
图7为本申请实施例中无线入耳式耳机的结构示意图。FIG. 7 is a schematic structural diagram of a wireless in-ear earphone according to an embodiment of the present application.
具体实施方式Detailed ways
为了能够更加详尽地了解本申请实施例的特点与技术内容,下面结合附图对本申请实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本申请实施例。In order to have a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请实施例提供了一种无线入耳式耳机检测方法,所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器;其中,所述第一耳机的耳屏侧外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器。An embodiment of the present application provides a method for detecting a wireless in-ear earphone, wherein a first earphone and a second earphone of the wireless in-ear earphone respectively include sensors; wherein the tragus-side casing of the first earphone includes the sensor, The opposite tragus side housing of the second earphone includes the sensor.
可以理解为,两个耳机的传感器位置相同,但两只耳朵同时处于入耳状态时,传感器检测位置不同。It can be understood that the sensor positions of the two earphones are the same, but when the two ears are in the in-ear state at the same time, the sensor detection positions are different.
如图1所示,为第一耳机在右耳朵的佩戴示意图,则第一耳机的传感器11靠近耳屏侧(即第一位置),相应的,第一耳机佩戴在左耳朵时,第一耳机的传感器11靠近相对耳屏侧(即第二位置)。As shown in FIG. 1 , which is a schematic diagram of wearing the first earphone on the right ear, the sensor 11 of the first earphone is close to the tragus side (ie, the first position). Correspondingly, when the first earphone is worn on the left ear, the first earphone The sensor 11 is close to the opposite tragus side (ie the second position).
如图2所示,为第二耳机在左耳朵的佩戴示意图,则第二耳机的传感器21靠近相对耳屏侧(即第二位置),相应的,第二耳机佩戴在右耳朵时,第二耳机的传感器21靠近耳屏侧(即第一位置)。因此,两个耳机在不同耳朵上传感器采集到的接触特征不同,可以根据传感器采集到的检测值来判断耳机的佩戴状态。As shown in FIG. 2 , which is a schematic diagram of wearing the second earphone on the left ear, the sensor 21 of the second earphone is close to the opposite tragus side (ie, the second position). Correspondingly, when the second earphone is worn on the right ear, the second The sensor 21 of the earphone is close to the tragus side (ie, the first position). Therefore, the contact characteristics collected by the sensors on different ears of the two earphones are different, and the wearing state of the earphones can be judged according to the detection values collected by the sensors.
在上述无线入耳式耳机的基础上,本申请实施例给出了一种无线入耳式耳机检测方法,图3为本申请实施例中无线入耳式耳机检测方法的第一流程示意图,如图3所示,该方法具体可以包括:On the basis of the above wireless in-ear headphones, an embodiment of the present application provides a method for detecting wireless in-ear headphones, and FIG. 3 is a first schematic flowchart of the method for detecting wireless in-ear headphones in the embodiment of the present application, as shown in FIG. 3 . Specifically, the method may include:
步骤301:通过传感器采集检测值;Step 301: collect detection values through sensors;
步骤302:基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。Step 302: Determine the wearing state of the first earphone and/or the second earphone based on the detection value.
在一些实施例中,所述传感器为以下之一:接触面积传感器、压力传感器、温度传感器或光感应器。In some embodiments, the sensor is one of the following: a contact area sensor, a pressure sensor, a temperature sensor, or a light sensor.
相应的,传感器为压力传感器时,检测值为压力值;传感器为温度传感器时,检测值为温度值;传感器为光感应器时,检测值为进光量。Correspondingly, when the sensor is a pressure sensor, the detection value is a pressure value; when the sensor is a temperature sensor, the detection value is a temperature value; when the sensor is a light sensor, the detection value is the amount of incoming light.
如图1所示,入耳式耳机处于佩戴状态时,根据入耳式耳机在靠近耳屏位置(传感器11对应的位置,可称为第一位置)和对侧位置(可称为第二位置)的接触特征的不同,比如接触面积、压力、距离等信息的不同,来判断入耳式耳机佩戴在左耳还是右耳。本申请实施例中,传感器的设置位置可以根据耳机与耳道的接触特征来定,且接触特征的差别越大检测准确性越高。示例性的,第一耳机佩戴在左耳时,传感器所在位置与耳朵第一位置接触,传感器对侧位置与耳朵第二位置不接触。相反,佩戴在右耳朵时,传感器所在位置与耳朵第二位置接触,传感器对侧所在位置与耳朵第一位置不接触。As shown in Figure 1, when the in-ear headphones are in the wearing state, according to the position of the in-ear headphones near the tragus (the position corresponding to the sensor 11, which can be called the first position) and the opposite position (which can be called the second position) The difference in contact characteristics, such as the difference in contact area, pressure, distance and other information, is used to determine whether the in-ear headphones are worn on the left ear or the right ear. In the embodiment of the present application, the installation position of the sensor can be determined according to the contact characteristics of the earphone and the ear canal, and the greater the difference between the contact characteristics, the higher the detection accuracy. Exemplarily, when the first earphone is worn on the left ear, the position of the sensor is in contact with the first position of the ear, and the position opposite to the sensor is not in contact with the second position of the ear. On the contrary, when worn on the right ear, the position of the sensor is in contact with the second position of the ear, and the position on the opposite side of the sensor is not in contact with the first position of the ear.
当传感器为压力传感器、温度传感器或光感应器时,通过比较检测值和检测阈值的大小来确定第一耳机和/或第二耳机的处于左耳佩戴状态还是右耳佩戴状态。When the sensor is a pressure sensor, a temperature sensor or a light sensor, it is determined whether the first earphone and/or the second earphone is in the left ear wearing state or the right ear wearing state by comparing the detection value and the detection threshold.
在一些实施例中,检测到所述第一耳机和/或所述第二耳机从非入耳状态切换到入耳状态时,开启相应的传感器;确定所述第一耳机和/或所述第二耳机的佩戴状态之后,关闭相应的传感器。也就是说,当从非入耳状态切换到入耳状态时,表明用户对耳机执行佩戴操作,需要进行佩戴状态检测,开启传感器;其他状态下,则无需进行佩戴检测,可以关闭传感器,以减少耳机耗电。In some embodiments, when it is detected that the first earphone and/or the second earphone is switched from a non-in-ear state to an in-ear state, a corresponding sensor is turned on; and the first earphone and/or the second earphone is determined After the wearing state, turn off the corresponding sensor. That is to say, when switching from the non-in-ear state to the in-ear state, it indicates that the user performs the wearing operation on the earphone, and the wearing state detection needs to be performed and the sensor is turned on; in other states, there is no need to perform the wearing detection, and the sensor can be turned off to reduce the consumption of the earphone. Electricity.
在另一些实施例中,传感器也可以处于按照一定的时间间隔开启,还 可以处于常开状态。In other embodiments, the sensor can also be turned on according to a certain time interval, and can also be in a normally on state.
在一些实施例中,该方法还包括:控制第一耳机和/或第二耳机工作在与自身佩戴状态对应的耳机播放模式。这里,所述耳机播放模式为左耳播放模式或右耳播放模式。对于入耳式耳机用户可以同时使用两个耳机,也可以单独使用一个耳机。两只耳机无需区分左右,耳机佩戴后会根据第一传感器和第二传感器的检测值的大小,自动识别每个耳机所佩戴的耳朵,从而控制耳机工作在与自身佩戴状态对应的耳机播放模式,避免因用户佩戴错误影响播放效果,提高用户对无线耳机的使用体验。另外,左右耳机可以设置成完全一样,也节省的设计成本和制作成本。In some embodiments, the method further includes: controlling the first earphone and/or the second earphone to work in an earphone playing mode corresponding to the wearing state of the first earphone. Here, the earphone playing mode is a left-ear playing mode or a right-ear playing mode. For in-ear headphones, users can use two headphones at the same time, or use one headphone alone. There is no need to distinguish the left and right of the two earphones. After the earphones are worn, they will automatically identify the ear worn by each earphone according to the detection value of the first sensor and the second sensor, so as to control the earphone to work in the earphone playback mode corresponding to its own wearing state. Avoid user wearing errors affecting the playback effect, and improve the user experience of using wireless headphones. In addition, the left and right earphones can be set to be exactly the same, which also saves design costs and production costs.
下面对不同传感器的检测方法进行进一步的举例说明。The detection methods of different sensors are further illustrated below.
在一些实施例中,所述传感器为接触面积传感器,所述检测值为接触面积值;In some embodiments, the sensor is a contact area sensor, and the detected value is a contact area value;
所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
在预定条件下under predetermined conditions
当接触面积值大于面积阈值时,确定所述第一耳机处于右耳佩戴状态,当接触面积值小于面积阈值时,确定所述第一耳机处于左耳佩戴状态;When the contact area value is greater than the area threshold, it is determined that the first earphone is in the right ear wearing state, and when the contact area value is less than the area threshold, it is determined that the first earphone is in the left ear wearing state;
当接触面积值大于面积阈值时,确定所述第二耳机处于右耳佩戴状态,当接触面积值小于面积阈值时,确定所述第二耳机处于左耳佩戴状态。When the contact area value is greater than the area threshold, it is determined that the second earphone is in the right ear wearing state, and when the contact area value is smaller than the area threshold, it is determined that the second earphone is in the left ear wearing state.
也就是说,第一耳机和第二左耳的左右耳机识别方法完全相同。That is to say, the identification methods of the left and right earphones of the first earphone and the second left earphone are exactly the same.
如图1所示,由于耳机在耳屏侧(即第一位置)的接触面积较大,耳机在相对耳屏侧(即第二位置)的接触面积较小。此时,入耳式耳机处于右耳佩戴状态时,第一传感器用于检测与右耳耳朵第一位置的接触面积值,且检测到的接触面积值较大。相反,入耳式耳机处于左耳佩戴状态时,传感器用于检测左耳耳朵第二位置的接触面积值,且检测到的接触面积值较 小。As shown in FIG. 1 , since the contact area of the earphone on the tragus side (ie the first position) is larger, the contact area of the earphone on the opposite tragus side (ie the second position) is smaller. At this time, when the in-ear earphone is in the right ear wearing state, the first sensor is used to detect the contact area value with the first position of the ear of the right ear, and the detected contact area value is relatively large. On the contrary, when the in-ear earphone is in the left ear wearing state, the sensor is used to detect the contact area value of the second position of the left ear, and the detected contact area value is small.
因此,当第一耳机的传感器检测到接触面积值大于面积阈值,确定第一耳机佩戴在右耳,当接触面积值小于面积阈值,确定第一耳机佩戴在左耳。当第二耳机的传感器检测到接触面积值大于面积阈值,确定第二耳机佩戴在右耳,当接触面积值小于面积阈值,确定第二耳机佩戴在左耳。Therefore, when the sensor of the first earphone detects that the contact area value is greater than the area threshold, it is determined that the first earphone is worn on the right ear, and when the contact area value is smaller than the area threshold, it is determined that the first earphone is worn on the left ear. When the sensor of the second earphone detects that the contact area value is greater than the area threshold, it is determined that the second earphone is worn on the right ear, and when the contact area value is less than the area threshold, it is determined that the second earphone is worn on the left ear.
这里,面积阈值可以通过预先检测入耳式耳机在不同人佩戴时,对于第一位置和第二位置的接触面积,通过分析统计大量检测数据,得到适用于左右耳判断的面积阈值。Here, the area threshold can be obtained by pre-detecting the contact area between the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain an area threshold suitable for left and right ear judgment.
在一些实施例中,所述传感器为压力传感器,所述检测值为压力值;In some embodiments, the sensor is a pressure sensor, and the detected value is a pressure value;
所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
在预定条件下,Under predetermined conditions,
当压力值大于压力阈值时,确定所述第一耳机处于右耳佩戴状态,当压力值小于压力阈值时,确定所述第一耳机处于左耳佩戴状态;When the pressure value is greater than the pressure threshold, it is determined that the first earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the first earphone is in the left ear wearing state;
当压力值大于压力阈值时,确定所述第二耳机处于右耳佩戴状态,当压力值小于压力阈值时,确定所述第二耳机处于左耳佩戴状态。When the pressure value is greater than the pressure threshold, it is determined that the second earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is in the left ear wearing state.
如图1所示,由于耳机在耳朵第一位置的接触面积较大,耳机对第一位置的施压也较大,耳机在耳朵第二位置的接触面积较小,耳机对第二位置的施压较小。此时,入耳式耳机处于右耳佩戴状态时,传感器用于检测右耳耳朵第一位置的压力值,且检测到的压力值较大。相反,入耳式耳机处于左耳佩戴状态时,传感器用于检测左耳耳朵第二位置的压力值,且检测到的压力值较小。As shown in Figure 1, due to the large contact area of the earphone at the first position of the ear, the pressure applied by the earphone to the first position is also larger, the contact area of the earphone at the second position of the ear is small, and the pressure of the earphone to the second position is small. less pressure. At this time, when the in-ear earphone is in the state of being worn on the right ear, the sensor is used to detect the pressure value of the first position of the ear of the right ear, and the detected pressure value is relatively large. On the contrary, when the in-ear earphone is in the state of being worn on the left ear, the sensor is used to detect the pressure value of the second position of the ear of the left ear, and the detected pressure value is relatively small.
因此,当第一耳机的传感器检测到压力值大于压力阈值,确定第一耳机佩戴在右耳,当压力值小于压力阈值,确定第一耳机佩戴在左耳。当第二耳机的传感器检测到压力值大于压力阈值,确定第二耳机佩戴在右耳, 当压力值小于压力阈值,确定第二耳机佩戴在左耳。Therefore, when the sensor of the first earphone detects that the pressure value is greater than the pressure threshold, it is determined that the first earphone is worn on the right ear, and when the pressure value is less than the pressure threshold, it is determined that the first earphone is worn on the left ear. When the sensor of the second earphone detects that the pressure value is greater than the pressure threshold, it is determined that the second earphone is worn on the right ear, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is worn on the left ear.
这里,压力阈值可以通过预先检测入耳式耳机在不同人佩戴时,对于第一位置和第二位置的压力值,通过分析统计大量检测数据,得到适用于左右耳判断的压力阈值。Here, the pressure threshold can be obtained by pre-detecting the pressure values at the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain a pressure threshold suitable for left and right ear judgment.
在一些实施例中,所述传感器为温度传感器,所述检测值为温度阈值;In some embodiments, the sensor is a temperature sensor, and the detected value is a temperature threshold;
所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
在预定条件下,Under predetermined conditions,
当温度阈值大于温度阈值时,确定所述第一耳机处于右耳佩戴状态,当温度阈值小于温度阈值时,确定所述第一耳机处于左耳佩戴状态;When the temperature threshold is greater than the temperature threshold, it is determined that the first earphone is in the right ear wearing state, and when the temperature threshold is less than the temperature threshold, it is determined that the first earphone is in the left ear wearing state;
当温度阈值大于温度阈值时,确定所述第二耳机处于右耳佩戴状态,当温度阈值小于温度阈值时,确定所述第二耳机处于左耳佩戴状态。When the temperature threshold is greater than the temperature threshold, it is determined that the second earphone is in the right ear wearing state, and when the temperature threshold is smaller than the temperature threshold, it is determined that the second earphone is in the left ear wearing state.
如图1所示,由于耳机在耳朵第一位置的接触面积较大,在第一位置检测到的温度值受人体温度影响较大,耳机在耳朵第二位置的接触面积较小,在第二位置检测到的温度受人体温度影响较小。此时,入耳式耳机处于右耳佩戴状态时,传感器用于检测右耳耳朵第一位置的温度值,且检测到的温度值较大。相反,入耳式耳机处于左耳佩戴状态时,传感器用于检测左耳耳朵第二位置的温度值,且检测到的温度值较小。As shown in Figure 1, since the contact area of the earphone at the first position of the ear is large, the temperature value detected at the first position is greatly affected by the temperature of the human body, and the contact area of the earphone at the second position of the ear is smaller. The temperature detected by the location is less affected by the body temperature. At this time, when the in-ear earphone is in the state of being worn on the right ear, the sensor is used to detect the temperature value of the first position of the ear of the right ear, and the detected temperature value is relatively large. On the contrary, when the in-ear earphone is in the state of being worn on the left ear, the sensor is used to detect the temperature value of the second position of the ear of the left ear, and the detected temperature value is small.
因此,当第一耳机的传感器检测到温度值大于温度阈值,确定第一耳机佩戴在右耳,当温度值小于温度阈值,确定第一耳机佩戴在左耳。当第二耳机的传感器检测到温度值大于温度阈值,确定第二耳机佩戴在右耳,当温度值小于温度阈值,确定第二耳机佩戴在左耳。Therefore, when the sensor of the first earphone detects that the temperature value is greater than the temperature threshold, it is determined that the first earphone is worn on the right ear, and when the temperature value is less than the temperature threshold, it is determined that the first earphone is worn on the left ear. When the sensor of the second earphone detects that the temperature value is greater than the temperature threshold, it is determined that the second earphone is worn on the right ear, and when the temperature value is less than the temperature threshold, it is determined that the second earphone is worn on the left ear.
这里,压力阈值可以通过预先检测入耳式耳机在不同人佩戴时,对于第一位置和第二位置的压力值,通过分析统计大量检测数据,得到适用于左右耳判断的压力阈值。Here, the pressure threshold can be obtained by pre-detecting the pressure values at the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain a pressure threshold suitable for left and right ear judgment.
在一些实施例中,所述传感器为光感应器,所述检测值为进光量;In some embodiments, the sensor is a light sensor, and the detected value is the amount of incoming light;
所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
在预定条件下,Under predetermined conditions,
当进光量小于进光量阈值时,确定所述第一耳机处于右耳佩戴状态,当进光量大于进光量阈值时,确定所述第一耳机处于左耳佩戴状态;When the incoming light amount is less than the light incoming amount threshold, it is determined that the first earphone is in the right ear wearing state, and when the incoming light amount is greater than the light incoming amount threshold, it is determined that the first earphone is in the left ear wearing state;
当进光量小于进光量阈值时,确定所述第二耳机处于左耳佩戴状态,当进光量大于进光量阈值时,确定所述第二耳机处于右耳佩戴状态。When the incoming light amount is less than the light incoming amount threshold, it is determined that the second earphone is in the left ear wearing state, and when the incoming light amount is greater than the light incoming amount threshold, it is determined that the second earphone is in the right ear wearing state.
光感应器具有自发光和自接收功能,根据光接收量来判断佩戴状态,光感应器可以感应可见光信号或非可见光信号。如图1所示,由于耳机在耳朵第一位置的接触面积较大,第一位置对光线传输影响较大,被第一位置反射进入光感应器的进光量较小,检测到的进光量较小,耳机在耳朵第二位置的接触面积较小,第二位置对光线传输影响较小,被第二位置反射进入光感应器的进光量较大,检测到的进光量较大。此时,入耳式耳机处于右耳佩戴状态时,传感器用于检测右耳耳朵第一位置的进光量。相反,入耳式耳机处于左耳佩戴状态时,传感器用于检测左耳耳朵第二位置的进光量。The light sensor has the functions of self-illumination and self-reception. The wearing state is judged according to the amount of light received. The light sensor can sense visible light signals or non-visible light signals. As shown in Figure 1, due to the large contact area of the earphone at the first position of the ear, the first position has a greater impact on the light transmission, and the amount of incoming light reflected by the first position into the light sensor is small, and the amount of incoming light detected is relatively small. Small, the contact area of the earphone at the second position of the ear is smaller, the second position has less influence on the light transmission, the amount of incoming light reflected by the second position into the light sensor is larger, and the amount of incoming light detected is larger. At this time, when the in-ear earphone is in the state of being worn on the right ear, the sensor is used to detect the amount of light entering the first position of the ear of the right ear. On the contrary, when the in-ear earphone is in the state of being worn on the left ear, the sensor is used to detect the amount of light entering the second position of the ear of the left ear.
因此,当第一耳机的传感器检测到进光量大于进光量阈值,确定第一耳机佩戴在右耳,当进光量小于进光量阈值,确定第一耳机佩戴在左耳。当第二耳机的传感器检测到进光量大于进光量阈值,确定第二耳机佩戴在右耳,当进光量小于进光量阈值,确定第二耳机佩戴在左耳。Therefore, when the sensor of the first earphone detects that the incoming light amount is greater than the incoming light amount threshold, it is determined that the first earphone is worn on the right ear, and when the incoming light amount is less than the incoming light amount threshold, it is determined that the first earphone is worn in the left ear. When the sensor of the second earphone detects that the incoming light amount is greater than the incoming light amount threshold, it is determined that the second earphone is worn on the right ear, and when the incoming light amount is less than the incoming light amount threshold, it is determined that the second earphone is worn in the left ear.
这里,进光量阈值可以通过预先检测入耳式耳机在不同人佩戴时,对于第一位置和第二位置的进光量,通过分析统计大量检测数据,得到适用于左右耳判断的进光量阈值。Here, the light input threshold can be obtained by pre-detecting the light input at the first position and the second position when the in-ear headphones are worn by different people, and by analyzing and counting a large amount of detection data to obtain a light input threshold suitable for left and right ear judgment.
在一些实施例中,所述预定条件包括以下中的任一项:所述第一耳机 和所述第二耳机处于通信断开状态;所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机或第二耳机处于入耳状态;以及所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态。In some embodiments, the predetermined condition includes any one of the following: the first earphone and the second earphone are in a communication disconnection state; the first earphone and the second earphone are in a communication connection state , and the first earphone or the second earphone is in an in-ear state; and the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state.
也就是说,本申请实施例提供的耳机检测方法,可以针对一个耳机单独实现;也可以在两个耳机处于通信连接状态下,只有一个耳机处于入耳状态或者两个耳机同时处于入耳状态下实现。That is to say, the earphone detection method provided by the embodiments of the present application can be implemented for one earphone alone; or can be implemented when two earphones are in a communication connection state, only one earphone is in an in-ear state, or two earphones are in an in-ear state at the same time.
进一步的,在一些实施例中,第一耳机在进行佩戴状态检测时第一耳机作为接收端,所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态,如图4所示,该方法还包括:Further, in some embodiments, the first earphone is used as the receiving end when the first earphone is in the wearing state detection, the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in a communication connection state. The headset is in the in-ear state, as shown in Figure 4, the method further includes:
步骤401:第一耳机接收第二耳机发送的第二检测信息;Step 401: the first earphone receives the second detection information sent by the second earphone;
在一些实施例中,该方法还包括:在预设时间段内,所述第一耳机未接收到所述第二耳机发送的第二检测信息,所述第一耳机基于所述第一检测信息,确定所述第一耳机为左耳佩戴状态或者右耳佩戴状态。In some embodiments, the method further includes: within a preset time period, the first earphone does not receive the second detection information sent by the second earphone, and the first earphone is based on the first detection information , and determine that the first earphone is in a left-ear wearing state or a right-ear wearing state.
也就是说,若第一耳机接收第二检测信息超时,则第一耳机无需借鉴第二耳机的检测信息进行判断,直接根据第一检测信息确定当前的佩戴状态。That is, if the first earphone times out when receiving the second detection information, the first earphone does not need to refer to the detection information of the second earphone for judgment, and directly determines the current wearing state according to the first detection information.
步骤402:第一耳机自身的第一检测信息和第二检测信息一致时,确定第一检测信息错误;Step 402: when the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is wrong;
其中,检测信息(包括第一检测信息和第二检测信息)可以为左耳机佩戴状态或右耳佩戴状态。Wherein, the detection information (including the first detection information and the second detection information) may be the wearing state of the left earphone or the wearing state of the right earphone.
在一些实施例中,确定检测信息错误(这里为第一检测信息错误)时,该方法还包括:重新执行所述无线入耳式耳机检测方法;或生成检测错误的提示信息并输出。In some embodiments, when it is determined that the detection information is wrong (here, the first detection information is wrong), the method further includes: re-executing the wireless in-ear headphone detection method; or generating and outputting prompt information of the detection error.
也就是说,若第一检测信息和第二检测信息一致,则说明两只耳机佩 戴在一只耳,必定存在一个耳机检测错误,则可以生成提示信息(比如,滴滴的提示音或异常光信号),提示用户手动查找问题。或生成重新检测指令,以控制所述第一耳机和所述第二耳机重新执行检测操作。That is to say, if the first detection information and the second detection information are consistent, it means that two earphones are worn on one ear, and there must be an earphone detection error, and prompt information (for example, the prompt sound of Didi or abnormal light) can be generated. signal), prompting the user to manually find the problem. Or generate a re-detection instruction to control the first earphone and the second earphone to perform the detection operation again.
步骤403:第一耳机自身的第一检测信息和第二检测信息一致时,确定第一检测信息正确。Step 403: When the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is correct.
也就是说,若两只耳机均处于佩戴状态时,还可以根据各自的检测信息进行相互验证,来提高检测的准确性。That is to say, if both earphones are in the wearing state, mutual verification can also be performed according to their respective detection information, so as to improve the detection accuracy.
第二耳机在进行佩戴状态检测时第二耳机作为接收端,第一耳机和第二耳机处于通信连接状态,且第一耳机和第二耳机处于入耳状态,如图5所示,该方法还包括:When the second earphone is in the wearing state detection, the second earphone serves as the receiving end, the first earphone and the second earphone are in the communication connection state, and the first earphone and the second earphone are in the in-ear state, as shown in FIG. 5 , the method further includes :
步骤501:第二耳机接收第一耳机发送的第一检测信息;Step 501: the second earphone receives the first detection information sent by the first earphone;
在一些实施例中,该方法还包括:在预设时间段内,所述第二耳机未接收到所述第一耳机发送的第一检测信息,所述第二耳机基于所述第二检测信息,确定所述第二耳机为左耳佩戴状态或者右耳佩戴状态。In some embodiments, the method further includes: within a preset time period, the second earphone does not receive the first detection information sent by the first earphone, and the second earphone is based on the second detection information , and determine that the second earphone is in a left ear wearing state or a right ear wearing state.
也就是说,若第二耳机接收第一检测信息超时,则第二耳机同样无需借鉴第一耳机的检测信息进行判断,直接根据第二检测信息确定当前的佩戴状态。That is to say, if the second earphone times out when receiving the first detection information, the second earphone also does not need to refer to the detection information of the first earphone for judgment, and directly determines the current wearing state according to the second detection information.
步骤502:第二耳机自身的第二检测信息和第一检测信息一致时,确定第二检测信息错误;Step 502: when the second detection information of the second earphone itself is consistent with the first detection information, determine that the second detection information is wrong;
在一些实施例中,确定检测信息错误(这里为第二检测信息错误)时,该方法还包括:重新执行所述无线入耳式耳机检测方法;或生成检测错误的提示信息并输出。In some embodiments, when it is determined that the detection information is wrong (here, the second detection information is wrong), the method further includes: re-executing the wireless in-ear headphone detection method; or generating and outputting prompt information of the detection error.
也就是说,若第一检测信息和第二检测信息一致,则说明两只耳机佩戴在一只耳,必定存在一个耳机检测错误,则可以生成提示信息(比如,滴滴的提示音或异常光信号),提示用户手动查找问题。或生成重新检测指 令,以控制所述第一耳机和所述第二耳机重新执行检测操作。That is to say, if the first detection information and the second detection information are consistent, it means that two earphones are worn on one ear, and there must be an earphone detection error, and prompt information (for example, the prompt sound of Didi or abnormal light) can be generated. signal), prompting the user to manually find the problem. Or generate a re-detection instruction to control the first earphone and the second earphone to perform the detection operation again.
步骤503:第二耳机自身的第二检测信息和第一检测信息不一致时,确定第二检测信息正确;其中,检测信息为左耳机佩戴状态或右耳佩戴状态。Step 503: When the second detection information of the second earphone itself is inconsistent with the first detection information, it is determined that the second detection information is correct; wherein the detection information is the left earphone wearing state or the right ear wearing state.
在一些实施例中,检测信息(包括第一检测信息和第二检测信息)还可以为检测值。In some embodiments, the detection information (including the first detection information and the second detection information) may also be a detection value.
相应的,第一耳机和第二耳机处于通信连接状态,且第一耳机和第二耳机处于入耳状态,该方法还包括:Correspondingly, the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, and the method further includes:
第一耳机接收第二耳机发送的第二检测信息;the first earphone receives the second detection information sent by the second earphone;
第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态一致时,确定第一检测信息错误;When the wearing state represented by the first detection information is consistent with the wearing state represented by the second detection information, it is determined that the first detection information is incorrect;
第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态不一致时,确定第一检测信息正确。When the wearing state represented by the first detection information and the wearing state represented by the second detection information are inconsistent, it is determined that the first detection information is correct.
or
第二耳机接收第一耳机发送的第一检测信息;The second earphone receives the first detection information sent by the first earphone;
第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态一致时,确定第一检测信息错误;When the wearing state represented by the first detection information is consistent with the wearing state represented by the second detection information, it is determined that the first detection information is incorrect;
第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态不一致时,确定第一检测信息正确。When the wearing state represented by the first detection information and the wearing state represented by the second detection information are inconsistent, it is determined that the first detection information is correct.
在一些实施例中,该方法还包括:确定第一检测信息正确时,控制第一耳机工作在与自身佩戴状态对应的耳机播放模式;确定第二检测信息正确时,控制第二耳机工作在与自身佩戴状态对应的耳机播放模式。In some embodiments, the method further includes: when it is determined that the first detection information is correct, controlling the first earphone to work in an earphone playback mode corresponding to the wearing state; when it is determined that the second detection information is correct, controlling the second earphone to work in the same The headset playback mode corresponding to the wearing state.
这样,对于入耳式耳机无需固定左右耳机,对于无线入耳式耳机无需固定左右耳机,而是通过设置的传感器检测左右耳机的佩戴状态,从而灵活设置左右耳机的播放模式,避免因用户佩戴错误应用播放效果,提高无线耳机的使用体验。另外,左右耳机可以设置成完全一样,也节省的设计 成本和制作成本。In this way, there is no need to fix the left and right earphones for the in-ear headphones, and the left and right earphones do not need to be fixed for the wireless in-ear headphones, but the wearing status of the left and right earphones is detected by the set sensor, so as to flexibly set the playback mode of the left and right earphones, to avoid the wrong application playback due to the user's wearing. effect, improve the experience of using wireless headphones. In addition, the left and right earphones can be set to be exactly the same, which also saves design costs and manufacturing costs.
需要说明的是,第一耳机和第二耳机只是为了区分无线耳机的两只耳机,第一耳机也可视为第二耳机,第二耳机也可视为第一耳机。It should be noted that the first earphone and the second earphone are only for distinguishing the two earphones of the wireless earphone, the first earphone can also be regarded as the second earphone, and the second earphone can also be regarded as the first earphone.
上述一种无线入耳式耳机检测方法的基础上,传感器以面积传感器为例进行进一步的举例说明,图6为本申请实施例中无线入耳式耳机检测方法的第四流程示意图,如图6所示,该方法包括:On the basis of the above-mentioned method for detecting wireless in-ear headphones, the sensor is further illustrated by taking an area sensor as an example. FIG. 6 is a fourth schematic flowchart of the method for detecting wireless in-ear headphones in the embodiment of the application, as shown in FIG. 6 . , the method includes:
步骤601:耳机入耳处于佩戴状态;Step 601: the earphone is in the wearing state;
步骤602:判断两耳机是否处于连接状态,如果否,执行步骤603;如果是,执行步骤604;Step 602: Determine whether the two earphones are in a connected state, if not, go to Step 603; if so, go to Step 604;
步骤603:本端接触面积值>面积阈值;如果是,确定为右耳机;如果否,确定为左耳机;Step 603: the contact area value of the local end>the area threshold; if yes, determine the right earphone; if not, determine the left earphone;
这里,本端耳机为第一耳机,则对端耳机为第二耳机;本端耳机为第二耳机,则对端耳机为第一耳机。Here, if the local earphone is the first earphone, the opposite end earphone is the second earphone; if the local earphone is the second earphone, the opposite end earphone is the first earphone.
也就是说,若两耳机处于断开状态,则采用单耳检测方法识别左右耳机,无需两只耳机传递检测结果相互验证。That is to say, if the two earphones are in a disconnected state, the left and right earphones are identified by the single-ear detection method, and there is no need for the two earphones to transmit the detection results for mutual verification.
在一些实施例中,若两耳机处于连接状态,但一只耳机处于入耳状态,另一只耳机处于未入耳状态,也无需两只耳机传递检测结果相互验证,在这种状态下,也可以理解为一个耳机接收另一个耳机的检测信号超时。In some embodiments, if two earphones are in a connected state, but one earphone is in the in-ear state and the other earphone is in the non-in-ear state, there is no need for the two earphones to transmit the detection results for mutual verification. In this state, it can also be understood that Timeout for one earphone to receive a heartbeat from the other earphone.
步骤604:请求获取对端检测信号;Step 604: request to obtain the peer detection signal;
也就是说,若两耳机处于连接状态,并且都在入耳状态,则可以根据各自的检测结果进行相互验证,来提高检测的准确性。That is to say, if the two earphones are in a connected state and both are in an in-ear state, mutual verification can be performed according to their respective detection results to improve the detection accuracy.
若两耳机处于连接状态,但都在未入耳状态,则不做左右耳判断。If the two earphones are in the connected state, but both earphones are not in the earphone state, the left and right ear judgments are not performed.
步骤605:判断对端检测消息是否超时,如果是,执行步骤603;如果否,执行步骤606;Step 605: Determine whether the peer detection message times out, if yes, go to Step 603; if not, go to Step 606;
步骤606:判断对端接触面积值<本端接触面积值,如果是,确定为右 耳机;如果否,确定为左耳机;Step 606: determine the contact area value of the opposite end < the contact area value of the local end, if yes, determine as the right earphone; if not, determine as the left earphone;
也就是说,若本端耳机佩戴在右耳时,传感器靠近耳屏,则对端耳机佩戴在左耳,传感器靠近相对耳屏侧,本端耳机的传感器采集的本端接触面积值大于对端接触面积值。That is to say, if the local earphone is worn on the right ear and the sensor is close to the tragus, the opposite end earphone is worn on the left ear, the sensor is close to the opposite tragus, and the local contact area value collected by the sensor of the local earphone is larger than that of the opposite end. Contact area value.
若本端耳机佩戴在左耳时,传感器靠近相对耳屏侧,则对端耳机佩戴在右耳,传感器靠近耳屏,本端耳机的传感器采集的本端接触面积值小于对端接触面积值。If the local earphone is worn on the left ear and the sensor is close to the opposite tragus, the opposite earphone is worn on the right ear and the sensor is close to the tragus, and the local contact area value collected by the sensor of the local earphone is smaller than the opposite end contact area value.
采用上述左右耳机自动识别技术,耳机的结构和外观上就不需要区分左右耳机,耳机生产商生产的时候也不需要区分左右耳机。可以通过耳机上设置的接触面积传感器采集接触面积值,根据接触面积值的大小来区分左右耳机,从而保证用户的佩戴体验,以及耳机播放效果。By adopting the above-mentioned automatic identification technology for left and right earphones, there is no need to distinguish the left and right earphones in terms of structure and appearance of the earphones, nor does the earphone manufacturer need to distinguish the left and right earphones during production. The contact area value can be collected by the contact area sensor set on the earphone, and the left and right earphones can be distinguished according to the size of the contact area value, so as to ensure the user's wearing experience and the playback effect of the earphone.
本申请实施例还提供了一种无线入耳式耳机,如图7所示,The embodiment of the present application also provides a wireless in-ear earphone, as shown in FIG. 7 ,
所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器701和处理器702;其中,所述第一耳机的耳屏侧外壳包括所述传感器701,所述第二耳机的相对耳屏侧外壳包括所述传感器701,其中,The first earphone and the second earphone of the wireless in-ear earphone respectively include a sensor 701 and a processor 702; wherein, the tragus side shell of the first earphone includes the sensor 701, and the opposite tragus of the second earphone includes the sensor 701. The side housing includes the sensor 701, wherein,
所述传感器701,配置为采集检测值;The sensor 701 is configured to collect detection values;
所述处理器702,配置为基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。The processor 702 is configured to determine the wearing state of the first earphone and/or the second earphone based on the detection value.
在一些实施例中,所述传感器为以下之一:接触面积传感器、压力传感器、温度传感器或光感应器。In some embodiments, the sensor is one of the following: a contact area sensor, a pressure sensor, a temperature sensor, or a light sensor.
在一些实施例中,所述传感器为接触面积传感器,所述检测值为接触面积值;In some embodiments, the sensor is a contact area sensor, and the detected value is a contact area value;
处理器702,具体用于在预定条件下,当接触面积值大于面积阈值时,确定所述第一耳机处于右耳佩戴状态,当接触面积值小于面积阈值时,确定所述第一耳机处于左耳佩戴状态;当接触面积值大于面积阈值时,确定 所述第二耳机处于右耳佩戴状态,当接触面积值小于面积阈值时,确定所述第二耳机处于左耳佩戴状态。The processor 702 is specifically configured to, under predetermined conditions, determine that the first earphone is in the right ear wearing state when the contact area value is greater than the area threshold, and determine that the first earphone is in the left ear when the contact area value is less than the area threshold Ear wearing state; when the contact area value is greater than the area threshold, it is determined that the second earphone is in the right ear wearing state, and when the contact area value is less than the area threshold, it is determined that the second earphone is in the left ear wearing state.
在一些实施例中,所述传感器为压力传感器,所述检测值为压力值;In some embodiments, the sensor is a pressure sensor, and the detected value is a pressure value;
处理器702,具体用于在预定条件下,当压力值大于压力阈值时,确定所述第一耳机处于右耳佩戴状态,当压力值小于压力阈值时,确定所述第一耳机处于左耳佩戴状态;当压力值大于压力阈值时,确定所述第二耳机处于右耳佩戴状态,当压力值小于压力阈值时,确定所述第二耳机处于左耳佩戴状态。The processor 702 is specifically configured to, under predetermined conditions, determine that the first earphone is in a state of being worn on the right ear when the pressure value is greater than a pressure threshold, and determine that the first earphone is worn on the left ear when the pressure value is less than the pressure threshold state; when the pressure value is greater than the pressure threshold, it is determined that the second earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is in the left ear wearing state.
在一些实施例中,所述传感器为温度传感器,所述检测值为温度阈值;In some embodiments, the sensor is a temperature sensor, and the detected value is a temperature threshold;
处理器702,具体用于在预定条件下,当温度阈值大于温度阈值时,确定所述第一耳机处于右耳佩戴状态,当温度阈值小于温度阈值时,确定所述第一耳机处于左耳佩戴状态;当温度阈值大于温度阈值时,确定所述第二耳机处于右耳佩戴状态,当温度阈值小于温度阈值时,确定所述第二耳机处于左耳佩戴状态。The processor 702 is specifically configured to, under a predetermined condition, when the temperature threshold is greater than the temperature threshold, determine that the first earphone is worn on the right ear, and when the temperature threshold is less than the temperature threshold, determine that the first earphone is worn on the left ear state; when the temperature threshold is greater than the temperature threshold, it is determined that the second earphone is in the right ear wearing state, and when the temperature threshold is less than the temperature threshold, it is determined that the second earphone is in the left ear wearing state.
在一些实施例中,所述传感器为光感应器,所述检测值为进光量;处理器702,具体用于在预定条件下,当进光量小于进光量阈值时,确定所述第一耳机处于右耳佩戴状态,当进光量大于进光量阈值时,确定所述第一耳机处于左耳佩戴状态;当进光量小于进光量阈值时,确定所述第二耳机处于左耳佩戴状态,当进光量大于进光量阈值时,确定所述第二耳机处于右耳佩戴状态。In some embodiments, the sensor is a light sensor, and the detected value is the amount of incoming light; the processor 702 is specifically configured to, under a predetermined condition, when the amount of incoming light is less than a threshold of incoming light, determine that the first earphone is in The wearing state of the right ear, when the light input amount is greater than the light input amount threshold, it is determined that the first earphone is in the left ear wearing state; when the light input amount is less than the light input amount threshold, it is determined that the second earphone is in the left ear wearing state, when the light input amount is in the left ear wearing state, When it is greater than the threshold value of the amount of incoming light, it is determined that the second earphone is in a state of being worn on the right ear.
在一些实施例中,所述预定条件包括以下中的任一项:所述第一耳机和所述第二耳机处于通信断开状态;所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机或第二耳机处于入耳状态;以及所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态。In some embodiments, the predetermined condition includes any one of the following: the first earphone and the second earphone are in a communication disconnection state; the first earphone and the second earphone are in a communication connection state , and the first earphone or the second earphone is in an in-ear state; and the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state.
在一些实施例中,所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态,处理器,还用于控制所述第一耳机接收所述第二耳机发送的第二检测信息;所述第一耳机自身的第一检测信息和所述第二检测信息一致时,确定所述第一检测信息错误;所述第一耳机自身的第一检测信息和所述第二检测信息不一致时,确定所述第一检测信息正确;其中,所述检测信息为左耳机佩戴状态或右耳佩戴状态。In some embodiments, the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, and the processor is further configured to control the first earphone to receive the received data. the second detection information sent by the second earphone; when the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is wrong; the first detection information of the first earphone itself When the detection information and the second detection information are inconsistent, it is determined that the first detection information is correct; wherein the detection information is a left earphone wearing state or a right ear wearing state.
在一些实施例中,检测信息(包括第一检测信息和第二检测信息)还可以为第一检测值和第二检测值。In some embodiments, the detection information (including the first detection information and the second detection information) may also be the first detection value and the second detection value.
相应的,第一耳机和第二耳机处于通信连接状态,且第一耳机和第二耳机处于入耳状态,处理器702,还用于控制第一耳机接收第二耳机发送的第二检测信息;第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态一致时,确定第一检测信息错误;第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态不一致时,确定第一检测信息正确。或Correspondingly, if the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, the processor 702 is further configured to control the first earphone to receive the second detection information sent by the second earphone; When the wearing state represented by the first detection information is consistent with the wearing state represented by the second detection information, the first detection information is determined to be wrong; when the wearing state represented by the first detection information and the wearing state represented by the second detection information are inconsistent, the first detection information is determined to be incorrect The information is correct. or
处理器702,还用于控制第二耳机接收第一耳机发送的第一检测信息;第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态一致时,确定第一检测信息错误;第一检测信息表征的佩戴状态和第二检测信息表征的佩戴状态不一致时,确定第一检测信息正确。The processor 702 is further configured to control the second earphone to receive the first detection information sent by the first earphone; when the wearing state represented by the first detection information is consistent with the wearing state represented by the second detection information, it is determined that the first detection information is wrong; When the wearing state represented by the first detection information is inconsistent with the wearing state represented by the second detection information, it is determined that the first detection information is correct.
在一些实施例中,处理器702,还用于在预设时间段内,所述第一耳机未接收到所述第二耳机发送的第二检测信息,控制所述第一耳机基于所述第一检测信息,确定所述第一耳机为左耳佩戴状态或者右耳佩戴状态。In some embodiments, the processor 702 is further configured to, within a preset time period, control the first earphone to control the first earphone based on the The detection information determines whether the first earphone is in a left-ear wearing state or a right-ear wearing state.
在一些实施例中,所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态,处理器702,还用于所述第二耳机接收所述第一耳机发送的第一检测信息;所述第二耳机自身的第二检测信息和所述第一检测信息一致时,确定所述第二检测信息错误;所述第二耳机自身的第二检测信息和所述第一检测信息不一致时,确定所述第二检 测信息正确;其中,所述检测信息为左耳机佩戴状态或右耳佩戴状态。In some embodiments, the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state. The processor 702 is further configured to receive the received data from the second earphone. The first detection information sent by the first earphone; when the second detection information of the second earphone itself is consistent with the first detection information, it is determined that the second detection information is wrong; the second detection information of the second earphone itself When the detection information and the first detection information are inconsistent, it is determined that the second detection information is correct; wherein the detection information is a left earphone wearing state or a right ear wearing state.
在一些实施例中,处理器702,还用于在预设时间段内,所述第二耳机未接收到所述第一耳机发送的第一检测信息,所述第二耳机基于所述第二检测信息,确定所述第二耳机为左耳佩戴状态或者右耳佩戴状态。In some embodiments, the processor 702 is further configured to, within a preset time period, the second earphone does not receive the first detection information sent by the first earphone, and the second earphone is based on the second earphone The information is detected, and it is determined that the second earphone is in a left ear wearing state or a right ear wearing state.
在一些实施例中,处理器702,还用于确定检测信息错误时,重新执行所述无线入耳式耳机检测方法;或生成检测错误的提示信息并输出。In some embodiments, the processor 702 is further configured to re-execute the wireless in-ear headphone detection method when it is determined that the detection information is incorrect; or generate and output prompt information of the detection error.
在一些实施例中,处理器702,还用于检测到所述第一耳机和/或所述第二耳机从非入耳状态切换到入耳状态时,开启相应的传感器;确定所述第一耳机和/或所述第二耳机的佩戴状态之后,关闭相应的传感器。In some embodiments, the processor 702 is further configured to turn on a corresponding sensor when detecting that the first earphone and/or the second earphone are switched from a non-in-ear state to an in-ear state; determine the first earphone and/or the in-ear state. /or after the wearing state of the second earphone, the corresponding sensor is turned off.
需要说明的是,无线入耳式耳机的第一耳机和第二耳机可以都设置一个处理器,分别控制两只耳机实现上述无线入耳式耳机检测方法。在另一些实施例中,第一耳机和第二耳机可以只包括一个处理器,配置为对两只耳机进行控制实现上述无线入耳式耳机检测方法。本申请实施例对耳机其他硬件结构和控制方法不做具体限定。It should be noted that, the first earphone and the second earphone of the wireless in-ear earphone may be provided with a processor to respectively control the two earphones to implement the above-mentioned wireless in-ear earphone detection method. In other embodiments, the first earphone and the second earphone may include only one processor, configured to control the two earphones to implement the above-mentioned wireless in-ear earphone detection method. The embodiments of the present application do not specifically limit other hardware structures and control methods of the earphone.
实际应用中,上述无线入耳式耳机还包括存储器,存储器用于存储计算机程序,处理器配置为运行计算机程序时,执行前述的任一实施例中的无线入耳式耳机检测方法的步骤。In practical applications, the above wireless in-ear headphones further include a memory for storing a computer program, and the processor is configured to execute the steps of the wireless in-ear headphones detection method in any of the foregoing embodiments when the computer program is executed.
当然,实际应用时,该无线耳机中的各个组件通过总线系统耦合在一起。可理解,总线系统用于实现这些组件之间的连接通信。总线系统除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。Of course, in practical application, various components in the wireless headset are coupled together through a bus system. It can be understood that the bus system is used to realize the connection communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.
上述无线入耳式耳机,无需固定左右耳机,而是通过设置的传感器检测左右耳机的佩戴状态,从而灵活设置左右耳机的播放模式,避免因用户佩戴错误应用播放效果,提高无线耳机的使用体验。The above-mentioned wireless in-ear headphones do not need to fix the left and right earphones, but detect the wearing status of the left and right earphones through the set sensors, so as to flexibly set the playback mode of the left and right earphones, avoid the wrong application of the playback effect due to the user's wearing, and improve the use experience of the wireless earphones.
在示例性实施例中,本申请实施例还提供了一种计算机可读存储介质,例如包括计算机程序的存储器,计算机程序可由无线入耳式耳机的处理器 执行,以完成前述无线入耳式耳机检测方法的步骤。In an exemplary embodiment, an embodiment of the present application further provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of a wireless in-ear headphone, so as to complete the aforementioned wireless in-ear headphone detection method A step of.
实际应用中,上述无线耳机还包括存储器,存储器用于存储计算机程序,处理器配置为运行计算机程序时,执行前述任一实施例中的方法步骤。In practical applications, the above-mentioned wireless headset further includes a memory for storing a computer program, and the processor is configured to execute the method steps in any of the foregoing embodiments when the computer program is executed.
当然,实际应用时,该无线耳机中的各个组件通过总线系统耦合在一起。可理解,总线系统用于实现这些组件之间的连接通信。总线系统除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。Of course, in practical application, various components in the wireless headset are coupled together through a bus system. It can be understood that the bus system is used to realize the connection communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.
在实际应用中,上述处理器可以为特定用途集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理装置(DSPD,Digital Signal Processing Device)、可编程逻辑装置(PLD,Programmable Logic Device)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,配置为实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。In practical applications, the above-mentioned processor may be an application specific integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processing device (DSPD, Digital Signal Processing Device), a programmable logic device (PLD, Programmable Logic Device), field programmable At least one of a programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor. It can be understood that, for different devices, the electronic device configured to implement the function of the processor may also be other, which is not specifically limited in this embodiment of the present application.
上述存储器可以是易失性存储器(volatile memory),例如随机存取存储器(RAM,Random-Access Memory);或者非易失性存储器(non-volatile memory),例如只读存储器(ROM,Read-Only Memory),快闪存储器(flash memory),硬盘(HDD,Hard Disk Drive)或固态硬盘(SSD,Solid-State Drive);或者上述种类的存储器的组合,并向处理器提供指令和数据。The above-mentioned memory can be a volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory); or a non-volatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory) Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
应当理解,在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。本申请中表述“具有”、“可以具有”、“包括”和“包含”、或者“可以包括”和“可以包含”在本文中可以用于指示存在对应的特征(例如,诸如数值、功能、操作或组件等元素), 但不排除附加特征的存在。It should be understood that the terminology used in the present application is for the purpose of describing particular embodiments only, and is not intended to limit the present application. As used in this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items. The expressions "have", "may have", "include" and "include", or "may include" and "may include" in this application may be used herein to indicate the presence of a corresponding feature (eg, such as a value, function, elements such as operations or components), but does not preclude the presence of additional features.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,不必用于描述特定的顺序或先后次序。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from one another, and are not necessarily used to describe a particular order or sequence. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present invention.
本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。The technical solutions described in the embodiments of the present application may be combined arbitrarily if there is no conflict.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法、装置和设备,可以通过其它的方式实现。以上所描述的实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed method, apparatus and device may be implemented in other manners. The above-described embodiments are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or may be integrated into Another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may all be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可 轻易想到变化或替换,都应涵盖在本申请的保护范围之内。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application.
工业实用性Industrial Applicability
本申请公开了一种无线入耳式耳机检测方法、耳机及存储介质,所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器;其中,所述第一耳机的耳屏侧外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器,所述方法包括:通过传感器采集检测值;基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。这样,对于入耳式耳机无需固定左右耳机,而是通过设置的传感器检测左右耳机的佩戴状态,从而灵活设置左右耳机的播放模式,避免因用户佩戴错误应用播放效果,提高无线耳机的使用体验。The present application discloses a wireless in-ear earphone detection method, earphone and storage medium, wherein the first earphone and the second earphone of the wireless in-ear earphone respectively include sensors; wherein, the tragus side shell of the first earphone includes all the sensors. The sensor, the opposite tragus side shell of the second earphone includes the sensor, and the method includes: collecting a detection value through the sensor; determining the wearing state of the first earphone and/or the second earphone based on the detection value . In this way, there is no need to fix the left and right earphones for the in-ear earphones, but the wearing state of the left and right earphones is detected by the set sensor, so as to flexibly set the playback mode of the left and right earphones, avoid the wrong application of the playback effect due to the user wearing, and improve the use experience of the wireless earphones.

Claims (14)

  1. 一种无线入耳式耳机检测方法,其中,所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器;其中,所述第一耳机的耳屏侧外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器,所述方法包括:A method for detecting a wireless in-ear earphone, wherein a first earphone and a second earphone of the wireless in-ear earphone respectively include a sensor; wherein the tragus side shell of the first earphone includes the sensor, and the second earphone includes the sensor. The opposite tragus side housing of the earphone includes the sensor, and the method includes:
    通过传感器采集检测值;Collect the detected value through the sensor;
    基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。The wearing state of the first earphone and/or the second earphone is determined based on the detection value.
  2. 根据权利要求1所述的方法,其中,所述传感器为接触面积传感器,所述检测值为接触面积值;The method according to claim 1, wherein the sensor is a contact area sensor, and the detection value is a contact area value;
    所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
    在预定条件下,Under predetermined conditions,
    当接触面积值大于面积阈值时,确定所述第一耳机处于右耳佩戴状态,当接触面积值小于面积阈值时,确定所述第一耳机处于左耳佩戴状态;When the contact area value is greater than the area threshold, it is determined that the first earphone is in the right ear wearing state, and when the contact area value is less than the area threshold, it is determined that the first earphone is in the left ear wearing state;
    当接触面积值大于面积阈值时,确定所述第二耳机处于右耳佩戴状态,当接触面积值小于面积阈值时,确定所述第二耳机处于左耳佩戴状态。When the contact area value is greater than the area threshold, it is determined that the second earphone is in the right ear wearing state, and when the contact area value is smaller than the area threshold, it is determined that the second earphone is in the left ear wearing state.
  3. 根据权利要求1所述的方法,其中,所述传感器为压力传感器,所述检测值为压力值;The method according to claim 1, wherein the sensor is a pressure sensor, and the detected value is a pressure value;
    所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
    在预定条件下,Under predetermined conditions,
    当压力值大于压力阈值时,确定所述第一耳机处于右耳佩戴状态,当压力值小于压力阈值时,确定所述第一耳机处于左耳佩戴状态;When the pressure value is greater than the pressure threshold, it is determined that the first earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the first earphone is in the left ear wearing state;
    当压力值大于压力阈值时,确定所述第二耳机处于右耳佩戴状态,当 压力值小于压力阈值时,确定所述第二耳机处于左耳佩戴状态。When the pressure value is greater than the pressure threshold, it is determined that the second earphone is in the right ear wearing state, and when the pressure value is less than the pressure threshold, it is determined that the second earphone is in the left ear wearing state.
  4. 根据权利要求1所述的方法,其中,所述传感器为温度传感器,所述检测值为温度阈值;The method of claim 1, wherein the sensor is a temperature sensor, and the detected value is a temperature threshold;
    所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
    在预定条件下,Under predetermined conditions,
    当温度阈值大于温度阈值时,确定所述第一耳机处于右耳佩戴状态,当温度阈值小于温度阈值时,确定所述第一耳机处于左耳佩戴状态;When the temperature threshold is greater than the temperature threshold, it is determined that the first earphone is in the right ear wearing state, and when the temperature threshold is less than the temperature threshold, it is determined that the first earphone is in the left ear wearing state;
    当温度阈值大于温度阈值时,确定所述第二耳机处于右耳佩戴状态,当温度阈值小于温度阈值时,确定所述第二耳机处于左耳佩戴状态。When the temperature threshold is greater than the temperature threshold, it is determined that the second earphone is in the right ear wearing state, and when the temperature threshold is smaller than the temperature threshold, it is determined that the second earphone is in the left ear wearing state.
  5. 根据权利要求1所述的方法,其中,所述传感器为光感应器,所述检测值为进光量;The method according to claim 1, wherein the sensor is a light sensor, and the detection value is the amount of incoming light;
    所述基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态,包括:The determining the wearing state of the first earphone and/or the second earphone based on the detection value includes:
    在预定条件下,Under predetermined conditions,
    当进光量小于进光量阈值时,确定所述第一耳机处于右耳佩戴状态,当进光量大于进光量阈值时,确定所述第一耳机处于左耳佩戴状态;When the incoming light amount is less than the light incoming amount threshold, it is determined that the first earphone is in the right ear wearing state, and when the incoming light amount is greater than the light incoming amount threshold, it is determined that the first earphone is in the left ear wearing state;
    当进光量小于进光量阈值时,确定所述第二耳机处于右耳佩戴状态,当进光量大于进光量阈值时,确定所述第二耳机处于左耳佩戴状态。When the incoming light amount is less than the light incoming amount threshold, it is determined that the second earphone is in the right ear wearing state, and when the incoming light amount is greater than the light incoming amount threshold, it is determined that the second earphone is in the left ear wearing state.
  6. 根据权利要求2-5中任一项所述的方法,其中,所述预定条件包括以下中的任一项:The method according to any one of claims 2-5, wherein the predetermined condition includes any one of the following:
    所述第一耳机和所述第二耳机处于通信断开状态;the first earphone and the second earphone are in a communication disconnected state;
    所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机或第二耳机处于入耳状态;以及the first earphone and the second earphone are in a communication connection state, and the first earphone or the second earphone is in an in-ear state; and
    所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和 第二耳机处于入耳状态。The first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state.
  7. 根据权利要求6所述的方法,其中,所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态,所述方法还包括:The method according to claim 6, wherein the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, the method further comprising:
    所述第一耳机接收所述第二耳机发送的第二检测信息;receiving, by the first earphone, second detection information sent by the second earphone;
    所述第一耳机自身的第一检测信息和所述第二检测信息一致时,确定所述第一检测信息错误;When the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is wrong;
    所述第一耳机自身的第一检测信息和所述第二检测信息一致时,确定所述第一检测信息正确;When the first detection information of the first earphone itself is consistent with the second detection information, it is determined that the first detection information is correct;
    其中,所述检测信息为左耳机佩戴状态或右耳佩戴状态。Wherein, the detection information is the wearing state of the left earphone or the wearing state of the right earphone.
  8. 根据权利要求6所述的方法,其中,所述方法还包括:The method of claim 6, wherein the method further comprises:
    在预设时间段内,所述第一耳机未接收到所述第二耳机发送的第二检测信息,所述第一耳机基于所述第一检测信息,确定所述第一耳机为左耳佩戴状态或者右耳佩戴状态。Within a preset time period, the first earphone does not receive the second detection information sent by the second earphone, and the first earphone determines that the first earphone is worn on the left ear based on the first detection information state or the right ear wearing state.
  9. 根据权利要求6所述的方法,其中,所述第一耳机和所述第二耳机处于通信连接状态,且所述第一耳机和第二耳机处于入耳状态,所述方法还包括:The method according to claim 6, wherein the first earphone and the second earphone are in a communication connection state, and the first earphone and the second earphone are in an in-ear state, the method further comprising:
    所述第二耳机接收所述第一耳机发送的第一检测信息;receiving, by the second earphone, the first detection information sent by the first earphone;
    所述第二耳机自身的第二检测信息和所述第一检测信息一致时,确定所述第二检测信息错误;When the second detection information of the second earphone itself is consistent with the first detection information, it is determined that the second detection information is wrong;
    所述第二耳机自身的第二检测信息和所述第一检测信息不一致时,确定所述第二检测信息正确;When the second detection information of the second earphone itself is inconsistent with the first detection information, it is determined that the second detection information is correct;
    其中,所述检测信息为左耳机佩戴状态或右耳佩戴状态。Wherein, the detection information is the wearing state of the left earphone or the wearing state of the right earphone.
  10. 根据权利要求9所述的方法,其中,所述方法还包括:The method of claim 9, wherein the method further comprises:
    在预设时间段内,所述第二耳机未接收到所述第一耳机发送的第一检 测信息,所述第二耳机基于所述第二检测信息,确定所述第二耳机为左耳佩戴状态或者右耳佩戴状态。Within a preset time period, the second earphone does not receive the first detection information sent by the first earphone, and the second earphone determines that the second earphone is worn on the left ear based on the second detection information state or the right ear wearing state.
  11. 根据权利要求7或9所述的方法,其中,确定检测信息错误时,所述方法还包括:The method according to claim 7 or 9, wherein, when it is determined that the detection information is wrong, the method further comprises:
    重新执行所述无线入耳式耳机检测方法;或re-performing the wireless in-ear headphone detection method; or
    生成检测错误的提示信息并输出。Generate and output error detection information.
  12. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    检测到所述第一耳机和/或所述第二耳机从非入耳状态切换到入耳状态时,开启相应的传感器;When it is detected that the first earphone and/or the second earphone is switched from the non-in-ear state to the in-ear state, turn on the corresponding sensor;
    确定所述第一耳机和/或所述第二耳机的佩戴状态之后,关闭相应的传感器。After the wearing state of the first earphone and/or the second earphone is determined, the corresponding sensor is turned off.
  13. 一种无线入耳式耳机,其中,A wireless in-ear earphone, wherein,
    所述无线入耳式耳机的第一耳机和第二耳机分别包括传感器和处理器;其中,所述第一耳机的耳屏侧外壳包括所述传感器,所述第二耳机的相对耳屏侧外壳包括所述传感器,其中,The first earphone and the second earphone of the wireless in-ear earphone respectively include a sensor and a processor; wherein, the tragus side casing of the first earphone includes the sensor, and the opposite tragus side casing of the second earphone includes the sensor, wherein,
    所述传感器,配置为采集检测值;the sensor, configured to collect detection values;
    所述处理器,配置为基于所述检测值确定所述第一耳机和/或第二耳机的佩戴状态。The processor is configured to determine the wearing state of the first earphone and/or the second earphone based on the detection value.
  14. 一种计算机可读存储介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现权利要求1至12任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 12.
PCT/CN2022/082218 2021-05-07 2022-03-22 Detection method for wireless in-ear earphones, and earphones and storage medium WO2022233192A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110497069.XA CN115314825A (en) 2021-05-07 2021-05-07 Wireless in-ear earphone detection method, earphone and storage medium
CN202110497069.X 2021-05-07

Publications (1)

Publication Number Publication Date
WO2022233192A1 true WO2022233192A1 (en) 2022-11-10

Family

ID=83853385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082218 WO2022233192A1 (en) 2021-05-07 2022-03-22 Detection method for wireless in-ear earphones, and earphones and storage medium

Country Status (2)

Country Link
CN (1) CN115314825A (en)
WO (1) WO2022233192A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744177A (en) * 2023-08-15 2023-09-12 宜百科技(深圳)有限公司 Method for judging left and right earphone

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079238A1 (en) * 2012-09-20 2014-03-20 International Business Machines Corporation Automated left-right headphone earpiece identifier
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN105872895A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Audio output apparatus, information processing methods, and audio play device
CN106358127A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Left and right sound channel switching method and mobile terminal
CN110536196A (en) * 2018-05-24 2019-12-03 群光电子股份有限公司 Symmetrical Headphone device
CN110891217A (en) * 2019-11-12 2020-03-17 维沃移动通信有限公司 Earphone, earphone control method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079238A1 (en) * 2012-09-20 2014-03-20 International Business Machines Corporation Automated left-right headphone earpiece identifier
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN105872895A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Audio output apparatus, information processing methods, and audio play device
CN106358127A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Left and right sound channel switching method and mobile terminal
CN110536196A (en) * 2018-05-24 2019-12-03 群光电子股份有限公司 Symmetrical Headphone device
CN110891217A (en) * 2019-11-12 2020-03-17 维沃移动通信有限公司 Earphone, earphone control method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116744177A (en) * 2023-08-15 2023-09-12 宜百科技(深圳)有限公司 Method for judging left and right earphone
CN116744177B (en) * 2023-08-15 2023-11-28 宜百科技(深圳)有限公司 Method for judging left and right earphone

Also Published As

Publication number Publication date
CN115314825A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
WO2021016899A1 (en) Wireless earphone control method and apparatus, wireless earphone, and storage medium
CN108810788B (en) Wearing condition detection method and device of wireless earphone and wireless earphone
WO2021042942A1 (en) Wireless earphones and wireless earphone system
EP2597844A1 (en) Method and device for sharing micro-usb interface between earphone and usb
CN108810697B (en) Wireless earphone pairing method and device and wireless earphone
CN108882210B (en) Communication control method, binaural wireless headset, communication device, system, and medium
US11736851B2 (en) Wireless playback device, and playback control method and apparatus thereof
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
JP2009512373A (en) Interchangeable acoustic system and hearing aid for hearing aids
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
WO2022233192A1 (en) Detection method for wireless in-ear earphones, and earphones and storage medium
US11166113B2 (en) Method for operating a hearing system and hearing system comprising two hearing devices
CN112449259B (en) Earphone pairing method and terminal
WO2022233193A1 (en) Detection method for earphone, and earphones and storage medium
WO2023274080A1 (en) State detection method, earphone, and computer readable storage medium
TW201029410A (en) Data communication device, communication control method, and program
CN111770409A (en) Earphone loss prevention method, device and system and earphone
EP3157270B1 (en) Hearing device with vibration sensitive transducer
WO2020052164A1 (en) Wireless earphone linking method and apparatus and wireless earphone
CN111787444A (en) Bluetooth headset pairing method and device, Bluetooth headset and storage medium
CN110944261B (en) Earphone sound effect control method and headset
TW201625020A (en) Headset and controlling handheld device system, method
WO2020042491A1 (en) Headphone far-field interaction method, headphone far-field interaction accessory, and wireless headphones
EP3890344B1 (en) Hearing devices and methods for implementing automatic sensor-based on/off control of a hearing device
JPWO2019187736A1 (en) Speaker device and allocation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22798534

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22798534

Country of ref document: EP

Kind code of ref document: A1