CN110891217A - Earphone, earphone control method and electronic equipment - Google Patents

Earphone, earphone control method and electronic equipment Download PDF

Info

Publication number
CN110891217A
CN110891217A CN201911100583.4A CN201911100583A CN110891217A CN 110891217 A CN110891217 A CN 110891217A CN 201911100583 A CN201911100583 A CN 201911100583A CN 110891217 A CN110891217 A CN 110891217A
Authority
CN
China
Prior art keywords
sensor
earphone
earphone body
detection information
worn state
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201911100583.4A
Other languages
Chinese (zh)
Other versions
CN110891217B (en
Inventor
陈作行
杨凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911100583.4A priority Critical patent/CN110891217B/en
Publication of CN110891217A publication Critical patent/CN110891217A/en
Application granted granted Critical
Publication of CN110891217B publication Critical patent/CN110891217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04R1/1016Earpieces of the intra-aural type
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention provides an earphone, an earphone control method and electronic equipment, wherein the earphone comprises: the earphone comprises a first earphone body, wherein the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first side of the first earphone body. The invention can realize the automatic detection of the wearing states of the left and right earphones of the first earphone body, and avoids the need for distinguishing the left and right earphone bodies for wearing by a user, thereby being beneficial to simplifying the user operation.

Description

Earphone, earphone control method and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to an earphone, an earphone control method and electronic equipment.
Background
At present, the earphone is usually designed to distinguish the left and right ears structurally, namely, according to the physiological structure difference of the left and right ears, the earphone is designed to be worn on the left earphone body of the left ear and on the right earphone body of the right ear, and the left earphone body or the right earphone body can be distinguished before the user uses the earphone by marking the L on the left earphone body and marking the R on the right earphone body.
When the earphone is connected with the electronic equipment, the electronic equipment outputs left channel audio data to the left earphone body and outputs right channel audio data to the right earphone body so as to achieve the stereo effect. However, in the existing earphone structure, a user needs to distinguish the left earphone body or the right earphone body for wearing, so that the user operation is increased; and also affects the stereo effect and the direction of sound perceived by the user in case of a wrong wearing of the left or right headset body.
Disclosure of Invention
The invention provides an earphone, an earphone control method and electronic equipment, and aims to solve the problem that the operation is inconvenient because a left ear and a right ear of an earphone body need to be distinguished in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an earphone, including a first earphone body, where the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, opposite to the first side, of the first earphone body.
Optionally, the earphone further includes a second earphone body, the second earphone body is provided with a third sensor and a fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side of the second earphone body, opposite to the third side.
In a second aspect, an embodiment of the present invention further provides an earphone control method, which is applied to an earphone, where the earphone includes a first earphone body, where the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, opposite to the first side, of the first earphone body;
the method comprises the following steps:
acquiring first detection information acquired by the first sensor and second detection information acquired by the second sensor;
and determining the worn state of the first earphone body according to the first detection information and the second detection information.
Optionally, the determining the worn state of the first earphone body according to the first detection information and the second detection information includes:
determining that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
determining that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
after determining the worn state of the first earphone body according to the first detection information and the second detection information, the method further includes:
and determining a sound channel output mode corresponding to the first earphone body according to the worn state of the first earphone body.
Optionally, the headset further includes a second headset body, and the method includes:
determining that the worn state of the second earphone body is a second worn state when the worn state of the first earphone body is a first worn state;
determining that the worn state of the second earphone body is a first worn state when the worn state of the first earphone body is a second worn state;
and determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
Optionally, the earphone further includes a second earphone body, the second earphone body is provided with a third sensor and a fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side of the second earphone body, opposite to the third side;
the method comprises the following steps:
acquiring third detection information acquired by the third sensor and fourth detection information acquired by the fourth sensor;
and determining the worn state of the second earphone body according to the third detection information and the fourth detection information.
Optionally, the determining the worn state of the second earphone body according to the third detection information and the fourth detection information includes:
determining that the worn state is a first worn state when the third detection information and the fourth detection information satisfy a third preset condition;
determining that the worn state is a second worn state when the third detection information and the fourth detection information satisfy a fourth preset condition;
after determining the worn state of the second earphone body according to the third detection information and the fourth detection information, the method further includes:
and determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
Optionally, after the determining the worn state of the first earphone body, the method further includes:
determining a first target sensor of the first earphone body according to the worn state of the first earphone body; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
when the first target sensor detects a first operation input by a user, a first target function corresponding to the first operation is determined.
Optionally, after the determining the worn state of the second earphone body, the method further includes:
determining a second target sensor of the second earphone body according to the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
when the second target sensor detects a second operation input by the user, a second target function corresponding to the second operation is determined.
Optionally, after the determining the worn state of the first earphone body, the method includes:
determining a first target sensor of the first earphone body according to the worn state of the first earphone body; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
after the determining the worn state of the second headphone body, the method further includes:
determining a second target sensor of the second earphone body according to the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
determining a third target function corresponding to a third operation input by a user when the first and second target sensors detect the third operation.
Optionally, the method further includes:
sending first state information of the worn state of the first earphone body to electronic equipment which establishes communication connection with the earphone;
or sending the first detection information and the second detection information to the electronic equipment.
Optionally, the method further includes:
sending second state information of the worn state of the second earphone body to electronic equipment which establishes communication connection with the earphone;
or sending the third detection information and the fourth detection information to the electronic device.
In a third aspect, an embodiment of the present invention further provides an earphone, where the earphone includes a first earphone body, where the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, opposite to the first side, of the first earphone body; the earphone further comprises:
the first acquisition module is used for acquiring first detection information acquired by the first sensor and second detection information acquired by the second sensor;
the first determining module is used for determining the worn state of the first earphone body according to the first detection information and the second detection information.
Optionally, the first determining module includes:
a first determining sub-module, configured to determine that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
a second determining submodule, configured to determine that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
the earphone further comprises:
and the second determining module is used for determining a sound channel output mode corresponding to the first earphone body according to the worn state of the first earphone body after determining the worn state of the first earphone body according to the first detection information and the second detection information.
Optionally, the headset further comprises a second headset body, and
a third determining module, configured to determine that the worn state of the second earphone body is the second worn state when the worn state of the first earphone body is the first worn state;
a fourth determining module, configured to determine that the worn state of the second earphone body is the first worn state when the worn state of the first earphone body is the second worn state;
and the fifth determining module is used for determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
Optionally, the earphone further includes a second earphone body, the second earphone body is provided with a third sensor and a fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side of the second earphone body, opposite to the third side;
the earphone further comprises:
the second acquisition module is used for acquiring third detection information acquired by the third sensor and fourth detection information acquired by the fourth sensor;
a sixth determining module, configured to determine, according to the third detection information and the fourth detection information, a worn state of the second earphone body.
Optionally, the sixth determining module includes:
a third determining sub-module, configured to determine that the worn state is the first worn state when the third detection information and the fourth detection information satisfy a third preset condition;
a fourth determining sub-module, configured to determine that the worn state is a second worn state when the third detection information and the fourth detection information satisfy a fourth preset condition;
the earphone further comprises:
a seventh determining module, configured to determine, according to the third detection information and the fourth detection information, a channel output mode corresponding to the second headphone body according to the worn state of the second headphone body after determining the worn state of the second headphone body.
Optionally, the earphone further comprises:
an eighth determining module, configured to determine, according to the worn state of the first earphone body, a first target sensor of the first earphone body after the worn state of the first earphone body is determined; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
a ninth determining module, configured to determine, when the first target sensor detects a first operation input by a user, a first target function corresponding to the first operation.
Optionally, the earphone further comprises:
a tenth determining module, configured to determine, according to the worn state of the second earphone body, a second target sensor of the second earphone body after the determination of the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
an eleventh determining module, configured to determine, when the second target sensor detects a second operation input by the user, a second target function corresponding to the second operation.
Optionally, the earphone further comprises:
a twelfth determining module, configured to determine, according to the worn state of the first earphone body, a first target sensor of the first earphone body after the worn state of the first earphone body is determined; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
a thirteenth determining module, configured to determine, according to the worn state of the second earphone body, a second target sensor of the second earphone body after the determination of the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
a fourteenth determining module, configured to determine, when the first object sensor and the second object sensor detect a third operation input by a user, a third object function corresponding to the third operation.
Optionally, the earphone further comprises:
the first sending module is used for sending first state information of the worn state of the first earphone body to electronic equipment which establishes communication connection with the earphone;
and the second sending module is used for sending the first detection information and the second detection information to the electronic equipment.
Optionally, the earphone further comprises:
the third sending module is used for sending second state information of the worn state of the second earphone body to the electronic equipment which establishes communication connection with the earphone;
and the fourth sending module is used for sending the third detection information and the fourth detection information to the electronic equipment.
In a fourth aspect, embodiments of the present invention further provide a headset, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the headset control method as described above.
In a fifth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the earphone control method as described above.
In a sixth aspect, an embodiment of the present invention further provides an earphone control method, which is applied to an electronic device, and the method includes:
receiving first state information of a worn state of a first earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
determining the worn state of the first earphone body according to the first state information;
alternatively, the first and second electrodes may be,
receiving first detection information collected by a first sensor and second detection information collected by a second sensor, which are sent by the earphone;
determining the worn state of the first earphone body according to the first detection information and the second detection information;
the earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
Optionally, determining the worn state of the earphone body according to the first detection information and the second detection information includes:
determining that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
determining that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
after determining the worn state of the first earphone body according to the first detection information and the second detection information, the method further includes:
and outputting corresponding sound channel audio data to the first earphone body according to the worn state of the first earphone body.
Optionally, the earphone further includes a second earphone body, and the method further includes:
determining that the worn state of the second earphone body is a second worn state when the worn state of the first earphone body is a first worn state;
determining that the worn state of the second earphone body is a first worn state when the worn state of the first earphone body is a second worn state;
and outputting corresponding sound channel audio data to the first earphone body according to the worn state of the second earphone body.
Optionally, the method further includes:
receiving second state information of the worn state of a second earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
and determining the worn state of the second earphone body according to the second state information.
Alternatively, the first and second electrodes may be,
receiving third detection information acquired by a third sensor and fourth detection information acquired by a fourth sensor, which are sent by the earphone;
determining the worn state of the second earphone body according to the third detection information and the fourth detection information;
the earphone further comprises a second earphone body, the second earphone body is provided with the third sensor and the fourth sensor, the third sensor is located on a third side of an audio output port of the second earphone body, and the fourth sensor is located on a fourth side, opposite to the third side, of the second earphone body.
In a seventh aspect, an embodiment of the present invention further provides an electronic device, including:
the first receiving module is used for receiving first state information of the worn state of a first earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
the first determining module is used for determining the worn state of the first earphone body according to the first state information;
alternatively, the first and second electrodes may be,
the second receiving module is used for receiving first detection information acquired by a first sensor and second detection information acquired by a second sensor, which are sent by the earphone;
the second determining module is used for determining the worn state of the first earphone body according to the first detection information and the second detection information;
the earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
Optionally, the second determining module includes:
a first determining sub-module, configured to determine that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
a second determining submodule, configured to determine that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
the electronic device further includes:
and a second determining module, configured to, after determining the worn state of the first headphone body according to the first detection information and the second detection information, output corresponding channel audio data to the first headphone body according to the worn state of the first headphone body.
Optionally, the earphone further includes a second earphone body, and the electronic device further includes:
a third determining module, configured to determine that the worn state of the second earphone body is the second worn state when the worn state of the first earphone body is the first worn state;
a fourth determining module, configured to determine that the worn state of the second earphone body is the first worn state when the worn state of the first earphone body is the second worn state;
and the fifth determining module is used for outputting corresponding sound channel audio data to the first earphone body according to the worn state of the second earphone body.
Optionally, the electronic device further includes:
the third receiving module is used for receiving second state information of the worn state of the second earphone body, which is sent by the earphone which establishes communication connection with the electronic equipment;
a sixth determining module, configured to determine, according to the second state information, a worn state of the second earphone body.
Alternatively, the first and second electrodes may be,
the fourth receiving module is used for receiving third detection information acquired by a third sensor and fourth detection information acquired by a fourth sensor, which are sent by the earphone;
a seventh determining module, configured to determine a worn state of the second earphone body according to the third detection information and the fourth detection information;
the earphone further comprises a second earphone body, the second earphone body is provided with the third sensor and the fourth sensor, the third sensor is located on a third side of an audio output port of the second earphone body, and the fourth sensor is located on a fourth side, opposite to the third side, of the second earphone body.
In an eighth aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the earphone control method described above are implemented.
In a ninth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the earphone control method as described above.
In the embodiment of the invention, the first sensor and the second sensor are arranged on the first earphone body, so that whether objects exist on two sides of the audio output port is detected through the first sensor and the second sensor respectively, the worn state of the first earphone body is determined, the left and right ear wearing states of the first earphone body are automatically detected, the situation that a user needs to distinguish the left and right earphone bodies for wearing is avoided, and the user operation is simplified.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic view of a first viewing angle of an earphone body according to an embodiment of the present invention;
fig. 2 is a schematic view of a second perspective of the earphone body according to the embodiment of the present invention;
fig. 3 is a schematic view of an earphone body according to an embodiment of the present invention in a right ear wearing mode;
fig. 4 shows a schematic view of an earphone body according to an embodiment of the present invention in a left ear wearing mode;
FIG. 5 shows a block diagram of a headset hardware system according to an embodiment of the invention;
fig. 6 shows a flowchart of an earphone control method of an earphone side according to an embodiment of the present invention;
fig. 7 shows a block diagram of a headset according to an embodiment of the invention;
fig. 8 shows one of flowcharts of an earphone control method on the electronic device side according to the embodiment of the present invention;
fig. 9 shows a second flowchart of the earphone control method of the electronic device side according to the embodiment of the invention;
FIG. 10 shows a block diagram of an electronic device of an embodiment of the invention;
fig. 11 is a schematic diagram showing a hardware configuration of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides an earphone, including: at least one earphone body.
As shown in fig. 1 and 2, an example of a headphone body is given. At least one of the at least one earphone body is provided with a first sensor and a second sensor, the first sensor is positioned on a first side of an audio output port of the earphone body, and the second sensor is positioned on a second side of the audio output port of the earphone body;
specifically, the earphone may include an earphone body, if the earphone includes a first earphone body 100, the first earphone body 100 is provided with a first sensor 210 and a second sensor 220, the first sensor 210 is located on a first side of the audio output port 110 of the first earphone body 100, and the second sensor 220 is located on a second side of the first earphone body 100 opposite to the first side.
Optionally, the earphone may further include: a controller; the controller is in communication connection with the first sensor 210 and the second sensor 220, and is configured to acquire first detection information acquired by the first sensor 210 and second detection information acquired by the second sensor 220, and determine a worn state of the earphone body 100 according to the first detection information and the second detection information.
Optionally, the earphone may also include two earphone bodies. Such as the earphone including a first earphone body 100 and a second earphone body; the first earphone body 100 is provided with a first sensor 210 and a second sensor 220, the first sensor 210 is located on a first side of the audio output port 110 of the first earphone body 100, and the second sensor 220 is located on a second side, opposite to the first side, of the first earphone body 100; the second earphone body is provided with a third sensor and a fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side, opposite to the third side, of the second earphone body.
Particularly, the earphone bodies (the first earphone body 100 and the second earphone body) may not be distinguished from left and right ear models, that is, the shells of the first earphone body 100 and the second earphone body may be made of the same model, so that the first earphone body 100 and the second earphone body may be worn on both the left ear and the right ear of the human body.
Alternatively, the controller may be disposed inside the earphone body 100, for example: a wireless headset having one headset body 100, or a wireless headset having two headset bodies 100, etc.
In the wireless headset with two headset bodies 100, if the first headset body 100 is provided with the first sensor 210 and the second sensor 220, and the second headset body is provided with the third sensor and the fourth sensor, the first headset body 100 may be provided with a first controller, and the second headset body may be provided with a second controller; the first controller is in communication connection with the first sensor 210 and the second sensor 220 respectively, and the second controller is in communication connection with the third sensor and the fourth sensor respectively; or the wireless headset has a controller, which is disposed inside one of the first headset body 100 and the second headset body, and the controller is in communication connection with the first sensor 210 and the second sensor 220 on the first headset body 100, and the third sensor and the fourth sensor on the second headset body.
In addition, the earphone can also be a wired earphone, namely, an earphone plug is arranged on the earphone, and the earphone plug is inserted into an earphone jack of the electronic equipment, so that the communication connection between the earphone and the electronic equipment is realized. The wired earphone can comprise two earphone bodies and a control device connected with the earphone bodies, wherein the control device is provided with a shell, and the controller can be arranged in the shell; optionally, the control device may further include a key, such as: a key for a volume adjustment function, a key for an answering/hanging-up function, a key for a play/pause function, a key for a previous/next tune function, etc.
Optionally, the form of the first sensor 210 and the second sensor 220 includes, but is not limited to: capacitive sensors, infrared distance sensors, pressure sensors, etc.
Of course, fig. 1 and fig. 2 show an example of the location of the audio output port 110, and it should be noted that other audio output ports may also be disposed on the earphone body, such as: in addition, the audio output port may be disposed on a first side where the first sensor 210 is located, and/or disposed on a second side where the second sensor 220 is located, which is not limited in the disclosure.
Alternatively, the first sensor 210 and the second sensor 220 may be implemented via a digital interface, such as: a Serial Peripheral Interface (SPI) or an Integrated Circuit bus (IIC) communicates with the controller.
When the earphone starts to be used (for example, the wireless earphone is in a power-on state, and the wired earphone is connected with the electronic device), the controller may monitor the first detection information of the first sensor 210 and the second detection information of the second sensor 220; such as: the controller actively monitors the detection results of the first sensor 210 and the second sensor 220 on the first headphone body 100 periodically;
alternatively, the controller may receive the first detection information sent by the first sensor 210 and the second detection information sent by the second sensor 220; such as: the first sensor 210 and the second sensor 220 inform the controller through an interrupt so that the controller passively acquires the detection result of the sensors.
In this embodiment, a first sensor is used to detect the presence of an object on a first side of audio outlet 110, and a second sensor 220 is used to detect the presence of an object on a second side of audio outlet 110. In this way, it is determined that the first earphone body 100 is in the worn state by detecting that there is an object on one side of the audio output port and there is no object on the other side by the first sensor 210 and the second sensor 220, and then the wearing state of the earphone body (i.e. the left ear wearing state or the right ear wearing state) can be further determined according to the corresponding relationship between the preset first sensor 210 and the second sensor 220 and the left ear wearing state and the right ear wearing state. According to the scheme, the automatic detection of the wearing state of the left and right earphones of the earphones is realized, the situation that a user needs to distinguish the left earphone body from the right earphone body to wear the earphones is avoided, and therefore the user operation is simplified. Of course, the principle of detecting the wearing state of the second earphone body is the same as that of the first earphone body 100, and is not described herein again.
Specifically, when determining the wearing state of the earphone body according to the first detection information and the second detection information, the controller is configured to: determining that the worn state is a right ear wearing state if the first detection information indicates that no object is present on the first side of the audio outlet 110 and the second detection information indicates that an object is present on the second side of the audio outlet 110; determining that the worn state is a left ear wearing state if the first detection information indicates that an object is present on the first side of the audio outlet 110 and the second detection information indicates that an object is not present on the second side of the audio outlet 110.
It should be noted that the detection results of the first detection information and the second detection information are related to the corresponding relationship between the worn state and the right ear worn state, the setting positions of the first sensor 210 and the second sensor 220, and the specific structure of the earphone body; in addition, a person skilled in the art may make corresponding changes according to the arrangement positions of the first sensor 210 and the second sensor 220 and the specific structure of the earphone body, and all of them are within the protection of the present invention.
Specifically, the working principle of a single earphone body 100 (e.g., the first earphone body 100) is described by taking an infrared distance sensor as an example:
as shown in fig. 3, when the first earphone body 100 is worn on the right ear 400, the first sensor 210 faces the outside of the right ear and does not detect the approach of an object, and the second sensor 220 faces the inside of the right ear and can detect the approach of an object; that is, the first detection information detected by the first sensor 210 indicates that no object is present on the first side of the audio output port 110, and the second detection information detected by the second sensor 220 indicates that an object is present on the second side of the audio output port 110, it is determined that the worn state is the right ear wearing state.
As shown in fig. 4, when the first earphone body 100 is worn on the left ear 500, the information detection states of the first sensor 210 and the second sensor 220 are opposite to the information detection state when the first earphone body is worn on the right ear, the second sensor 220 faces the outer side of the left ear, no object is detected to be close, the first sensor 210 faces the inner side of the left ear, and the object can be detected to be close; that is, when the first detection information detected by the first sensor 210 indicates that an object is present on the first side of the audio output port 110, and the second detection information detected by the second sensor 220 indicates that an object is not present on the second side of the audio output port 110, it is determined that the worn state is the left ear wearing state. In this way, the controller can determine the specific wearing state of the first earphone body 100 according to the different detection results of the first sensor 210 and the second sensor 220.
Referring to fig. 5, a block diagram of a headset hardware system is shown. Taking a wireless headset as an example, a hardware system of the headset comprises: the wireless headset comprises a controller 300 (also called as a wireless headset main control system), a first sensor 210, a second sensor 220, a communication module 600, a battery 700, a headset power amplifier 800 and a loudspeaker 900 connected with the headset power amplifier. The first sensor 210, the second sensor 220, the communication module 600, the battery 700 and the earphone power amplifier 800 are all connected to the controller 300. The headset (or the controller 300) is communicatively connected to the electronic device 1000 via the communication module 600.
Optionally, when the first earphone body 100 is in a worn state, one of the first sensor 210 and the second sensor 220, which is disposed away from the ear, is configured to receive a user operation and send a control signal corresponding to the user operation to the controller 300;
the controller 300 is further configured to: executing a function corresponding to the control signal when the control signal is a first predetermined signal; and sending the control signal to the electronic device 1000 in communication connection with the headset through the communication module 600 when the control signal is a second predetermined signal, so that the electronic device 1000 executes a function corresponding to the control signal.
Specifically, after the controller 300 completes the left and right ear wearing state detection, the first sensor 210 or the second sensor 220 in the non-trigger state of the two sensors may be used to implement the virtual key function. For example, if the controller 300 detects that the earphone body 100 is worn on the right ear, the second sensor 220 detects that an object is approaching and is in a triggered state because it faces towards the ear of the user; the first sensor 210 faces away from the human ear, does not detect an object approaching, and is in a non-triggering state; the controller may utilize the idle first sensor 210 to detect the approach or touch action of the user's finger, such as: different control functions may be implemented depending on the time or number of approaches or touches. Of course, if the controller 300 detects that the first earphone body 100 is worn on the left ear, the approach or touch action of the user's finger may be detected by the second sensor 220 in the non-trigger state. Therefore, the earphone in the embodiment can also realize the virtual key function by utilizing the sensor in a non-trigger state, and is favorable for improving the diversity of the interactive regulation and control function.
The first predetermined signal may be a power on/off signal of the headset, or a connection control signal (for example, the connection control signal is used to control the headset to establish a communication connection with the electronic device that is successfully paired, where the communication connection may be a bluetooth connection).
The second predetermined signal may be a volume adjustment signal, a control signal for listening/hanging up, a control signal for playing/pausing, a control signal for switching a previous song/a next song, etc.
Such as: in the music playing mode, when the controller 300 detects that the finger is close to and away from the earphone body 100 for a single time or touches the earphone body 100 for a single time (e.g., detected by a sensor), the controller 300 controls music to pause or play; alternatively, when the controller 300 detects that the finger is approaching and moving away from or touching the headphone body twice in succession (as detected by the sensor), the controller 300 performs a switch to the next action.
In addition, different functions can be set for the same user operation according to different wearing states (such as a left ear wearing state and a right ear wearing state) of the first earphone body 100. Such as: when the first earphone body 100 is in a right ear wearing state, a single approach and distance or a single touch corresponds to a music pause or play function, and when the first earphone body 100 is in a left ear wearing state, a single approach and distance or a single touch corresponds to a volume turning-down function; of course, other operations may be set to correspond to different functions, and the invention is not limited thereto.
According to at least one of the above embodiments, as an implementation manner, the communication module 600 is configured to send status information of a worn state of the first earphone body 100 to the electronic device 1000 communicatively connected to the earphone, and/or receive audio data sent by the electronic device 1000.
The controller 300, in case of receiving the audio data transmitted by the electronic device 1000, is configured to: under the condition that the worn state is determined to be a right ear wearing state, controlling an audio output port of the earphone to play right channel data in the audio data; and controlling an audio output port of the earphone to play left channel data in the audio data under the condition that the worn state is determined to be a left ear wearing state.
Specifically, when neither the first sensor 210 nor the second sensor 220 detects that an object is approaching, the controller 300 determines that the earphone body 100 is in a non-wearing state;
when the first sensor 210 detects that an object is approaching and the second sensor 220 does not detect that the object is approaching, the controller 300 determines that the first earphone body 100 is in a wearing state and worn on the left ear, and the controller 300 sends state information that the first earphone body 100 is in the wearing state on the left ear to the electronic device 1000 in communication connection with the earphone, so that the electronic device 1000 determines the wearing state of the first earphone body 100 according to the state information of the wearing mode.
Further, the electronic device 1000 may send the audio data of the corresponding channel to the controller 300 according to the worn state of the first earphone body 100, such as: when the first earphone body 100 is in a left ear wearing state, the electronic device 1000 sends left channel audio data to the controller 300, so that the controller 300 outputs the left channel audio data through the earphone power amplifier 800 and the speaker 900.
When the second sensor 220 detects that an object is approaching and the first sensor 210 does not detect that the object is approaching, the controller 300 determines that the first earphone body 100 is in the wearing state and worn on the right ear, and the controller 300 sends the state information that the earphone body 100 is in the wearing state on the right ear to the electronic device 1000 in communication connection with the earphone, so that the electronic device 1000 determines the wearing state of the first earphone body 100 according to the state information of the worn mode.
Further, the electronic device 1000 may send the audio data of the corresponding channel to the controller 300 according to the worn state of the first earphone body 100, such as: when the first earphone body 100 is in a right ear wearing state, the electronic device 1000 sends right channel audio data to the controller 300, so that the controller 300 outputs the right channel audio data through the earphone power amplifier 800 and the speaker 900.
When both the first sensor 210 and the second sensor 220 detect the approach of an object, the controller 300 determines that the earphone body 100 is placed in the charging box.
In addition, when the controller 300 sends the state information of the worn state of the first earphone body 100 to the electronic device 1000 through the communication module 600, the power state of the battery 700 may also be sent to the electronic device 1000, so that the corresponding power state and connection state are displayed on the corresponding earphone icon of the electronic device 1000; such as: when the earphone body 100 is in a left ear wearing state, displaying corresponding electric quantity and a connection state on a left earphone icon; when the earphone body 100 is in the right ear wearing state, the corresponding electric quantity and the connection state are displayed on the right earphone icon. Thus, the left and right ear icons on the electronic device 1000, which display the electric quantity and connection state of the earphone, can be correspondingly worn on the left or right ear earphone, so that the display is more accurate.
Of course, after the controller 300 sends the state information of the worn state of the first earphone body 100 to the electronic device 1000 in communication connection with the earphone through the communication module 600, it may also receive audio data sent by the electronic device 1000; wherein the audio data includes left channel audio data and right channel audio data. Further, the controller 300 may process the audio data according to the worn state where the first earphone body 100 is currently located, so as to output the audio data of the corresponding channel. Such as: when the first earphone body 100 is in a left ear wearing state, the controller 300 processes the audio data to obtain left channel audio data, and then outputs the left channel audio data through the earphone power amplifier 800 and the speaker 900; when the first earphone body 100 is in a right ear wearing state, the controller 300 processes the audio data to obtain right channel audio data, and then outputs the right channel audio data through the earphone power amplifier 800 and the speaker 900. In this way, the controller 300 can automatically recognize the worn state of the first headphone body 100 and perform switching control of left and right channel audio output.
As another implementation manner, the communication module 600 is further configured to send the first detection information and the second detection information to the electronic device 1000, so that the electronic device 1000 determines the worn state of the first earphone body 100 according to the first detection information and the second detection information.
In addition, when the earphone has the first earphone body and the second earphone body, the second earphone body may have the same structure as the first earphone body described in at least one of the above embodiments, for example, the second earphone body has a controller independent from the control on the first earphone body, and can individually control the wearing state, the audio output mode, and the like of the second earphone body; or when second earphone body and first earphone body pass through a controller control, if controller and communication module set up on first earphone body, second earphone body includes: the device comprises a battery, a third sensor, a fourth sensor, an earphone power amplifier, a loudspeaker and the like.
The earphone in the above scheme can detect the worn state of the earphone body, and if the earphone body is worn on the left ear or the right ear, the left/right channel audio data can be played on the earphone worn correspondingly, so that the left/right earphone body can be worn freely, namely, the user can be ensured to obtain accurate channel audio data without distinguishing the left/right earphone body, and the stereo effect of audio output is ensured. In addition, by adopting the scheme in the embodiment of the invention, the left/right earphone bodies do not need to be differentially designed, namely, the left/right earphone bodies can be produced by adopting a unified model, thereby being beneficial to saving the cost of the structural model.
As shown in fig. 6, an embodiment of the present invention further provides an earphone control method, which is applied to an earphone, where the earphone includes a first earphone body, where the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, opposite to the first side, of the first earphone body;
the method comprises the following steps:
step 61: acquiring first detection information acquired by the first sensor and second detection information acquired by the second sensor;
optionally, first detection information of whether an object exists on a first side of the audio output port acquired by the first sensor and second detection information of whether an object exists on a second side of the audio output port acquired by the second sensor are acquired;
step 62: and determining the wearing state of the first earphone body according to the first detection information and the second detection information.
Optionally, the determining the worn state of the earphone body according to the first detection information and the second detection information includes:
determining that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition; determining that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
specifically, when the first detection information indicates that no object is present on the first side of the audio output port, and the second detection information indicates that an object is present on the second side of the audio output port, it is determined that the worn state is a right ear worn state; and under the condition that the first detection information indicates that an object exists on the first side of the audio output port and the second detection information indicates that an object does not exist on the second side of the audio output port, determining that the worn state is a left ear wearing state.
Optionally, after the determining the worn state of the first earphone body, the method further includes:
determining a first target sensor of the first earphone body according to the worn state of the first earphone body; the first target sensor is one of the first sensor and the second sensor facing away from the human ear; when the first target sensor detects a first operation input by a user, a first target function corresponding to the first operation is determined.
Specifically, when the first earphone body is in a worn state, a control signal corresponding to a user operation sent by the first sensor or the second sensor is received; executing a function corresponding to the control signal when the control signal is a first predetermined signal; and under the condition that the control signal is a second preset signal, sending the control signal to electronic equipment in communication connection with the earphone through a communication module so that the electronic equipment executes a function corresponding to the control signal.
The first predetermined signal may be a power on/off signal of the headset, or a connection control signal (for example, the connection control signal is used to control the headset to establish a communication connection with the electronic device that is successfully paired, where the communication connection may be a bluetooth connection).
The second predetermined signal may be a volume adjustment signal, a control signal for listening/hanging up, a control signal for playing/pausing, a control signal for switching a previous song/a next song, etc.
Such as: in the music playing mode, when the finger is detected to be close to and far away from the first earphone body at a single time or the finger is detected to be touched at a single time (for example, the finger is detected by one sensor which is opposite to the ear of a person in the first sensor or the second sensor), music is controlled to be paused or played; alternatively, when it is detected that the finger is approaching and departing from or touching the first headphone body twice in succession (as detected by one of the first and second sensors facing away from the human ear), switching to the next action is performed.
Optionally, after determining the worn state of the first earphone body, the method further includes:
and determining a sound channel output mode corresponding to the first earphone body according to the worn state of the first earphone body.
Specifically, the method may be configured to receive audio data sent by an electronic device communicatively connected to the headset; under the condition that the worn state is determined to be a right ear wearing state, controlling an audio output port of the earphone to play right channel data in the audio data; and controlling an audio output port of the earphone to play left channel data in the audio data under the condition that the worn state is determined to be a left ear wearing state.
Optionally, after the obtaining of the first detection information collected by the first sensor and the second detection information collected by the second sensor, the method further includes:
and sending the first detection information and the second detection information to electronic equipment in communication connection with the earphone, so that the electronic equipment determines the worn state of the first earphone body according to the first detection information and the second detection information.
Or after the worn state of the first earphone body is determined according to the first detection information and the second detection information, directly sending the first state information of the worn state of the first earphone body to the electronic equipment which establishes communication connection with the earphone, so that the electronic equipment directly determines the worn state of the first earphone body.
The earphone control method provided by the embodiment of the invention can be applied to the earphone with the first earphone body in the earphone embodiment, and the specific structure of the earphone is not described again in order to avoid repetition.
In the scheme, first detection information of whether an object exists on a first side of the audio output port acquired by the first sensor and second detection information of whether an object exists on a second side of the audio output port acquired by the second sensor are acquired; and determining the wearing state of the first earphone body according to the first detection information and the second detection information, so that the wearing state of the left and right ears of the first earphone body is automatically detected, and the situation that a user needs to distinguish the left and right earphone bodies for wearing is avoided, thereby simplifying the user operation.
Optionally, as an implementation manner, the headset further includes a second headset body, and the method includes:
determining that the worn state of the second earphone body is a second worn state when the worn state of the first earphone body is a first worn state; determining that the worn state of the second earphone body is a first worn state when the worn state of the first earphone body is a second worn state; and determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
The earphone control method of the embodiment can be applied to an earphone with a first earphone body and a second earphone body, wherein the earphone can be provided with one controller, namely the wearing state of the second earphone body can be directly determined through the one controller under the condition that the wearing state of the first earphone body is determined, and the processing process of independently detecting the wearing state of the second earphone body can be avoided, so that the device setting cost is reduced, and the detection efficiency is improved.
Optionally, as another implementation manner, the earphone may further include a second earphone body, where the second earphone body is provided with a third sensor and a fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side of the second earphone body, opposite to the third side;
the method further comprises the following steps:
acquiring third detection information acquired by the third sensor and fourth detection information acquired by the fourth sensor; and determining the worn state of the second earphone body according to the third detection information and the fourth detection information.
Optionally, third detection information of whether an object exists on a third side of the audio output port of the second earphone body, which is acquired by the third sensor, and fourth detection information of whether an object exists on a fourth side of the audio output port of the second earphone body, which is acquired by the fourth sensor, are acquired; and determining the worn state of the second earphone body according to the third detection information and the fourth detection information.
Optionally, determining the worn state of the second earphone body according to the third detection information and the fourth detection information may specifically include:
determining that the worn state is a first worn state when the third detection information and the fourth detection information satisfy a third preset condition; and determining that the worn state is a second worn state when the third detection information and the fourth detection information satisfy a fourth preset condition.
Specifically, in a case where the third detection information indicates that no object is present on the third side of the audio output port of the second headphone body, and the fourth detection information indicates that an object is present on the fourth side of the audio output port of the second headphone body, it is determined that the worn state is a right ear worn state;
determining that the worn state is a left ear wearing state if the third detection information indicates that an object is present on a third side of the audio output port of the second headphone body and the fourth detection information indicates that an object is not present on a fourth side of the audio output port of the second headphone body.
Optionally, after determining the worn state of the second earphone body according to the third detection information and the fourth detection information, the method further includes:
and determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
Specifically, the method may be configured to receive audio data sent by an electronic device communicatively connected to the headset; under the condition that the worn state is determined to be a right ear wearing state, controlling an audio output port of the earphone to play right channel data in the audio data; and controlling an audio output port of the earphone to play left channel data in the audio data under the condition that the worn state is determined to be a left ear wearing state.
Optionally, after the determining the worn state of the second earphone body, the method further includes:
determining a second target sensor of the second earphone body according to the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear; when the second target sensor detects a second operation input by the user, a second target function corresponding to the second operation is determined.
Specifically, when the second earphone body is in a worn state, a control signal corresponding to a user operation sent by the third sensor or the fourth sensor is received; executing a function corresponding to the control signal when the control signal is a first predetermined signal; and under the condition that the control signal is a second preset signal, sending the control signal to electronic equipment in communication connection with the earphone through a communication module so that the electronic equipment executes a function corresponding to the control signal.
The first predetermined signal may be a power on/off signal of the headset, or a connection control signal (for example, the connection control signal is used to control the headset to establish a communication connection with the electronic device that is successfully paired, where the communication connection may be a bluetooth connection).
The second predetermined signal may be a volume adjustment signal, a control signal for listening/hanging up, a control signal for playing/pausing, a control signal for switching a previous song/a next song, etc.
Such as: in the music playing mode, when the finger is detected to be close to and far away from the second earphone body at a single time or the finger is detected to be touched at a single time (for example, the finger is detected by one sensor which is opposite to the ear of a person in the third sensor and the fourth sensor), music is controlled to be paused or played; or, when the finger is detected to approach and depart from or touch the second earphone body twice (as detected by one of the third sensor and the fourth sensor facing away from the human ear), switching to the next action is performed.
Optionally, the method may further include: determining a first target sensor of the first earphone body according to the worn state of the first earphone body; the first target sensor is one of the first sensor and the second sensor facing away from the human ear; determining a second target sensor of the second earphone body according to the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear; determining a third target function corresponding to a third operation input by a user when the first and second target sensors detect the third operation.
Specifically, in the case where both the first headphone body and the second headphone body are in the wearing mode, the user can perform a function corresponding to the touch operation by simultaneously touching one of the first sensor and the second sensor that is away from the human ear and one of the third sensor and the fourth sensor that is away from the human ear (as by simultaneously touching the first sensor and the fourth sensor); or executing a function corresponding to the touch operation according to the sequence that a user touches one of the first sensor and the second sensor which deviates from the human ear and the sequence that one of the third sensor and the fourth sensor which deviates from the human ear; the specific touch operation form and the corresponding relationship of the third target function may be set according to actual requirements, and the present invention is not particularly limited.
Optionally, after obtaining the third detection information acquired by the third sensor and the fourth detection information acquired by the fourth sensor, the method further includes:
and sending the third detection information and the fourth detection information to electronic equipment in communication connection with the earphone, so that the electronic equipment determines the worn state of the second earphone body according to the third detection information and the fourth detection information.
Or after the worn state of the second earphone body is determined according to the third detection information and the fourth detection information, directly sending second state information of the worn state of the second earphone body to the electronic equipment which establishes communication connection with the earphone, so that the electronic equipment directly determines the worn state of the second earphone body.
The earphone control method of the embodiment can be applied to an earphone with a first earphone body and a second earphone body, wherein the first earphone body and the second earphone body can be respectively provided with a controller, namely, the worn state of the first earphone body and the worn state of the second earphone body, an audio output mode, a control mode and the like can be independently realized, and the accuracy of the control of the second earphone body is favorably improved.
As shown in fig. 7, an embodiment of the present invention further provides an earphone 700, where the earphone includes a first earphone body, where the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, opposite to the first side, of the first earphone body; the earphone further comprises:
an obtaining module 710, configured to obtain first detection information acquired by the first sensor and second detection information acquired by the second sensor;
a first determining module 720, configured to determine a worn state of the first earphone body according to the first detection information and the second detection information.
Optionally, the first determining module 720 includes:
a first determining sub-module, configured to determine that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
a second determining submodule, configured to determine that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
the headset 700 further comprises:
and the second determining module is used for determining a sound channel output mode corresponding to the first earphone body according to the worn state of the first earphone body after determining the worn state of the first earphone body according to the first detection information and the second detection information.
Optionally, the headset 700 further comprises a second headset body, an
A third determining module, configured to determine that the worn state of the second earphone body is the second worn state when the worn state of the first earphone body is the first worn state;
a fourth determining module, configured to determine that the worn state of the second earphone body is the first worn state when the worn state of the first earphone body is the second worn state;
and the fifth determining module is used for determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
Optionally, the earphone 700 further includes a second earphone body, where the second earphone body is provided with a third sensor and a fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side of the second earphone body, opposite to the third side;
the headset 700 further comprises:
the second acquisition module is used for acquiring third detection information acquired by the third sensor and fourth detection information acquired by the fourth sensor;
a sixth determining module, configured to determine, according to the third detection information and the fourth detection information, a worn state of the second earphone body.
Optionally, the sixth determining module includes:
a third determining sub-module, configured to determine that the worn state is the first worn state when the third detection information and the fourth detection information satisfy a third preset condition;
a fourth determining sub-module, configured to determine that the worn state is a second worn state when the third detection information and the fourth detection information satisfy a fourth preset condition;
the headset 700 further comprises:
a seventh determining module, configured to determine, according to the third detection information and the fourth detection information, a channel output mode corresponding to the second headphone body according to the worn state of the second headphone body after determining the worn state of the second headphone body.
Optionally, the earphone 700 further includes:
an eighth determining module, configured to determine, according to the worn state of the first earphone body, a first target sensor of the first earphone body after the worn state of the first earphone body is determined; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
a ninth determining module, configured to determine, when the first target sensor detects a first operation input by a user, a first target function corresponding to the first operation.
Optionally, the earphone 700 further includes:
a tenth determining module, configured to determine, according to the worn state of the second earphone body, a second target sensor of the second earphone body after the determination of the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
an eleventh determining module, configured to determine, when the second target sensor detects a second operation input by the user, a second target function corresponding to the second operation.
Optionally, the earphone 700 further includes:
a twelfth determining module, configured to determine, according to the worn state of the first earphone body, a first target sensor of the first earphone body after the worn state of the first earphone body is determined; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
a thirteenth determining module, configured to determine, according to the worn state of the second earphone body, a second target sensor of the second earphone body after the determination of the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
a fourteenth determining module, configured to determine, when the first object sensor and the second object sensor detect a third operation input by a user, a third object function corresponding to the third operation.
Optionally, the earphone 700 further includes:
the first sending module is used for sending first state information of the worn state of the first earphone body to electronic equipment which establishes communication connection with the earphone;
and the second sending module is used for sending the first detection information and the second detection information to the electronic equipment.
Optionally, the earphone 700 further includes:
the third sending module is used for sending second state information of the worn state of the second earphone body to the electronic equipment which establishes communication connection with the earphone;
and the fourth sending module is used for sending the third detection information and the fourth detection information to the electronic equipment.
The earphone provided by the embodiment of the invention is the earphone corresponding to the earphone control method embodiment, and is not described again in order to avoid repetition.
In the earphone 700 in the embodiment of the present invention, the first sensor and the second sensor are disposed on the first earphone body, so as to detect whether objects exist on two sides of the audio output port respectively through the first sensor and the second sensor, so as to determine the worn state of the first earphone body, thereby implementing automatic detection of the worn state of the left and right ears of the first earphone body, avoiding the need for a user to distinguish the left and right earphone bodies for wearing, and simplifying user operation.
The embodiment of the present invention further provides an earphone, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the embodiment of the earphone control method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the method for controlling an earphone on an earphone side or an electronic device side, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As shown in fig. 8, an embodiment of the present invention provides an earphone control method, which is applied to an electronic device, and the method includes:
step 81: receiving first state information of a worn state of a first earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
step 82: and determining the worn state of the first earphone body according to the first state information.
The earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
Specifically, the electronic device may directly receive the state information of the currently worn state of the first earphone body sent by the controller of the earphone, that is, the controller determines the currently worn state of the first earphone body, and directly sends the first state information of the worn state of the first earphone body to the electronic device, so that the electronic device may directly determine the worn state of the first earphone body according to the first state information of the worn state of the first earphone body sent by the earphone.
As shown in fig. 9, an embodiment of the present invention further provides an earphone control method, which is applied to an electronic device, and the method includes:
step 91: receiving first detection information collected by a first sensor and second detection information collected by a second sensor, which are sent by the earphone;
and step 92: determining the worn state of the first earphone body according to the first detection information and the second detection information;
the earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
Specifically, the electronic device may receive first detection information collected by a first sensor and second detection information collected by a second sensor, which are sent by the controller of the headset through the communication module, so that the electronic device may determine the worn state of the first headset body according to the corresponding relationship between the detection results of the first detection information and the second detection information and the worn state of the first headset body.
Specifically, determining the worn state of the earphone body according to the first detection information and the second detection information includes:
determining that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition; determining that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
specifically, when the first detection information indicates that no object is present on the first side of the audio output port, and the second detection information indicates that an object is present on the second side of the audio output port, it is determined that the worn state is a right ear worn state; and under the condition that the first detection information indicates that an object exists on the first side of the audio output port and the second detection information indicates that an object does not exist on the second side of the audio output port, determining that the worn state is a left ear wearing state.
Here, the function of determining the worn state of the earphone body on the electronic device side is similar to the function of determining the worn state of the earphone body on the earphone side, and for a specific embodiment, reference may be made to an example in which the earphone-side controller determines the worn state of the earphone body, and details are not described here.
Optionally, after determining the worn state of the first earphone body according to the first detection information and the second detection information, the method further includes:
and outputting corresponding sound channel audio data to the first earphone body according to the worn state of the first earphone body.
Specifically, the electronic device may send audio data to the headset through the communication module according to the worn state of the first headset body.
For example, the electronic device may send audio data of a corresponding channel to the controller of the headset according to the worn state of the first headset body sent by the controller of the headset or the worn state of the first headset body determined according to the first detection information and the second detection information sent by the controller; such as: when the first earphone body is in a left ear wearing state, sending left channel audio data to a controller of the earphone; when the first earphone body is in a right ear wearing state, right channel audio data are sent to a controller of the earphone.
Of course, the electronic device may also send audio data including the left channel data and the right channel data to the controller of the headset, so that the controller controls the audio data output of the corresponding channel according to the worn state of the headset body.
Optionally, the earphone further includes a second earphone body, and the method according to at least one embodiment further includes:
determining that the worn state of the second earphone body is a second worn state when the worn state of the first earphone body is a first worn state; determining that the worn state of the second earphone body is a first worn state when the worn state of the first earphone body is a second worn state; and outputting corresponding sound channel audio data to the first earphone body according to the worn state of the second earphone body.
According to the earphone control method, when the earphone is provided with the first earphone body and the second earphone body, the wearing state of the second earphone body can be directly determined by determining the wearing state of the first earphone body, the processing process of independently detecting the wearing state of the second earphone body can be avoided, and therefore device setting cost is reduced and detection efficiency is improved.
Optionally, the earphone further includes a second earphone body, wherein the second earphone body is provided with the third sensor and the fourth sensor, the third sensor is located on a third side of the audio output port of the second earphone body, and the fourth sensor is located on a fourth side of the second earphone body, opposite to the third side.
As an implementation, the method further comprises:
receiving second state information of the worn state of a second earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment; and determining the worn state of the second earphone body according to the second state information.
Specifically, the electronic device may directly receive the state information of the currently worn state of the second earphone body sent by the controller of the earphone, that is, the controller determines the currently worn state of the second earphone body, and directly sends the second state information of the worn state of the second earphone body to the electronic device, so that the electronic device may directly determine the worn state of the second earphone body according to the second state information of the worn state of the second earphone body sent by the earphone.
As another implementation, the method may further include:
receiving third detection information acquired by a third sensor and fourth detection information acquired by a fourth sensor, which are sent by the earphone; and determining the worn state of the second earphone body according to the third detection information and the fourth detection information.
Specifically, the electronic device may receive third detection information acquired by a third sensor and fourth detection information acquired by a fourth sensor, which are sent by the controller of the headset through the communication module, so that the electronic device may determine the worn state of the second headset body according to the corresponding relationship between the detection results of the third detection information and the fourth detection information and the worn state of the second headset body.
Specifically, determining the worn state of the earphone body according to the third detection information and the fourth detection information includes:
determining that the worn state is a first worn state when the third detection information and the fourth detection information satisfy a first preset condition; determining that the worn state is a second worn state when the third detection information and the fourth detection information satisfy a second preset condition;
specifically, in a case where the third detection information indicates that no object is present on the third side of the audio outlet and the fourth detection information indicates that an object is present on the fourth side of the audio outlet, it is determined that the worn state is a right ear wearing state; determining that the worn state is a left ear wearing state if the third detection information indicates that an object is present on a third side of the audio outlet and the fourth detection information indicates that an object is not present on a fourth side of the audio outlet.
Here, the function of determining the worn state of the earphone body on the electronic device side is similar to the function of determining the worn state of the earphone body on the earphone side, and for a specific embodiment, reference may be made to an example in which the earphone-side controller determines the worn state of the earphone body, and details are not described here.
Optionally, after determining the worn state of the second earphone body according to the third detection information and the fourth detection information, the method further includes:
and outputting corresponding sound channel audio data to the second earphone body according to the worn state of the second earphone body.
Specifically, the electronic device may send audio data to the headset through the communication module according to the worn state of the second headset body.
For example, the electronic device may send audio data of a corresponding channel to the controller of the headset according to the worn state of the second headset body sent by the controller of the headset or the worn state of the second headset body determined according to the third detection information and the fourth detection information sent by the controller; such as: when the second earphone body is in a left ear wearing state, sending left channel audio data to a controller of the earphone; and when the second earphone body is in a right ear wearing state, right channel audio data are sent to the controller of the earphone.
Of course, the electronic device may also send audio data including the left channel data and the right channel data to the controller of the headset, so that the controller controls the audio data output of the corresponding channel according to the worn state of the headset body.
Optionally, the electronic device may further receive a control signal sent by the earphone, and perform a corresponding function. The control signal may be detected by a sensor on the first earphone body facing away from the human ear and/or a sensor on the second earphone body facing away from the human ear, and the specific correspondence between the control signal and the function may be specifically set according to actual requirements, which is not specifically limited in the present invention.
In the above scheme, the current state information of the earphone body worn state is sent through the receiving earphone, or the current state of the earphone body worn state is determined according to the detection information sent by the earphone, and then the current state of the earphone body worn can be determined, and corresponding audio data is output, thereby realizing the automatic detection of the left and right ear wearing states of the earphone body, avoiding the need of distinguishing left and right earphone bodies by users, thereby simplifying the user operation, further realizing the automatic adaptation of the audio data output according to the worn mode of the earphone body, ensuring that the users obtain accurate sound channel audio data, and further being beneficial to ensuring the stereo effect of the audio output.
As shown in fig. 10, an embodiment of the present invention further provides an electronic device 1000, including:
a first receiving module 1010, configured to receive first state information of a worn state of a first earphone body, where the first state information is sent by an earphone that establishes a communication connection with the electronic device;
a first determining module 1020, configured to determine a worn state of the first earphone body according to the first state information;
a second receiving module 1030, configured to receive first detection information acquired by a first sensor and second detection information acquired by a second sensor, where the first detection information and the second detection information are sent by the headset;
a second determining module 1040, configured to determine a worn state of the first earphone body according to the first detection information and the second detection information;
the earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
Optionally, the second determining module 1040 includes:
a first determining sub-module, configured to determine that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
a second determining submodule, configured to determine that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
the electronic device 1000 further comprises:
and a second determining module, configured to, after determining the worn state of the first headphone body according to the first detection information and the second detection information, output corresponding channel audio data to the first headphone body according to the worn state of the first headphone body.
Optionally, the headset further includes a second headset body, and the electronic device 1000 further includes:
a third determining module, configured to determine that the worn state of the second earphone body is the second worn state when the worn state of the first earphone body is the first worn state;
a fourth determining module, configured to determine that the worn state of the second earphone body is the first worn state when the worn state of the first earphone body is the second worn state;
and the fifth determining module is used for outputting corresponding sound channel audio data to the first earphone body according to the worn state of the second earphone body.
Optionally, the electronic device 1000 further includes:
the third receiving module is used for receiving second state information of the worn state of the second earphone body, which is sent by the earphone which establishes communication connection with the electronic equipment;
a sixth determining module, configured to determine, according to the second state information, a worn state of the second earphone body;
the fourth receiving module is used for receiving third detection information acquired by a third sensor and fourth detection information acquired by a fourth sensor, which are sent by the earphone;
a seventh determining module, configured to determine a worn state of the second earphone body according to the third detection information and the fourth detection information;
the earphone further comprises a second earphone body, the second earphone body is provided with the third sensor and the fourth sensor, the third sensor is located on a third side of an audio output port of the second earphone body, and the fourth sensor is located on a fourth side, opposite to the third side, of the second earphone body.
The electronic device in the embodiment of the present invention is an electronic device corresponding to the embodiment of the earphone control method, and is not described herein again to avoid repetition.
Electronic equipment 1000 in the above-mentioned scheme, the earphone body through receiving the earphone sends is the state information of the state of wearing at present, perhaps confirm the earphone body according to the detection information that the earphone sent is the state of wearing at present, and then can be according to the current state of wearing of this earphone body, output corresponding audio data, thereby the left side of earphone body, the automated inspection of the state of wearing of the right ear has been realized, avoid needing the user to distinguish left, the right ear earphone body is worn, thereby user operation has been simplified, the output of audio data is still realized according to the automatic adaptation of the mode of wearing of earphone body, guarantee that the user obtains accurate sound channel audio data, and then be favorable to guaranteeing the stereo effect of audio output.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, processor 1110, and power supply 1111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 1101 is configured to receive first state information of a worn state of a first earphone body sent by an earphone which establishes a communication connection with the electronic device, or receive first detection information collected by a first sensor and second detection information collected by a second sensor sent by the earphone; the earphone comprises a first earphone body, wherein the first earphone body is provided with a first sensor and a second sensor, the first sensor is positioned on a first side of an audio output port of the first earphone body, and the second sensor is positioned on a second side, opposite to the first side, of the first earphone body;
a processor 1110, configured to determine a worn state of the first earphone body according to the first state information, or determine a worn state of the first earphone body according to the first detection information and the second detection information.
Electronic equipment 1100 in the above scheme, the current state information of being worn of earphone body through receiving earphone transmission, perhaps confirm the current state of being worn of earphone body according to the detection information that the earphone was sent, and then electronic equipment can be according to the current state of being worn of this earphone body, output corresponding audio data, thereby left side of earphone body, the automated inspection of the state of being worn of the right ear has been realized, avoid needing the user to distinguish left, the right ear earphone body is worn, thereby user operation has been simplified, the automatic adaptation of the mode of being worn of the output basis earphone body of audio data has still been realized, guarantee that the user obtains accurate sound channel audio data, and then be favorable to guaranteeing the stereo effect of audio output.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1101 may be configured to receive and transmit signals during a message transmission or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1110; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 1102, such as to assist the user in sending and receiving e-mail, browsing web pages, and accessing streaming media.
The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as sound. Also, the audio output unit 1103 may also provide audio output related to a specific function performed by the electronic device 1100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1104 is used to receive audio or video signals. The input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing device, such as a camera, in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1106. The image frames processed by the graphic processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio frequency unit 1101 or the network module 1102. The microphone 11042 may receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1101 in case of the phone call mode.
The electronic device 1100 also includes at least one sensor 1105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 11061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 11061 and/or the backlight when the electronic device 1100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., and will not be described in detail herein.
The display unit 1106 is used to display information input by a user or information provided to the user. The Display unit 1106 may include a Display panel 11061, and the Display panel 11061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1107 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function control of the electronic apparatus. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 11071 (e.g., operations by a user on or near the touch panel 11071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 11071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1110, and receives and executes commands sent from the processor 1110. In addition, the touch panel 11071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 1107 may include other input devices 11072 in addition to the touch panel 11071. In particular, the other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 11071 can be overlaid on the display panel 11061, and when the touch panel 11071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1110 to determine the type of the touch event, and then the processor 1110 provides a corresponding visual output on the display panel 11061 according to the type of the touch event. Although the touch panel 11071 and the display panel 11061 are shown in fig. 11 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 11071 and the display panel 11061 may be integrated to implement the input and output functions of the electronic device, and the embodiment is not limited herein.
The interface unit 1108 is an interface for connecting an external device to the electronic apparatus 1100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within electronic device 1100 or may be used to transmit data between electronic device 1100 and external devices.
The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 1109 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1109 and calling data stored in the memory 1109, thereby integrally monitoring the electronic device. Processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
The electronic device 1100 may further include a power supply 1111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 1111 may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 1100 includes some functional modules that are not shown, and thus are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 1110, a memory 1109, and a computer program that is stored in the memory 1109 and is executable on the processor 1110, where the computer program, when executed by the processor 1110, implements each process of the above-described earphone control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the earphone control method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (18)

1. The utility model provides an earphone, its characterized in that includes first earphone body, first earphone body is equipped with first sensor and second sensor, first sensor is located the first side of the audio output mouth of first earphone body, the second sensor is located on the first earphone body with the second side that the first side carried on the back mutually.
2. The headphone of claim 1 further comprising a second headphone body provided with a third sensor located on a third side of the audio output port of the second headphone body and a fourth sensor located on a fourth side of the second headphone body opposite the third side.
3. A headset control method is applied to a headset and is characterized in that the headset comprises a first headset body, the first headset body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first headset body, and the second sensor is located on a second side, opposite to the first side, of the first headset body;
the method comprises the following steps:
acquiring first detection information acquired by the first sensor and second detection information acquired by the second sensor;
and determining the worn state of the first earphone body according to the first detection information and the second detection information.
4. The method according to claim 3, wherein the determining the worn state of the first headphone body based on the first detection information and the second detection information includes:
determining that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
determining that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
after determining the worn state of the first earphone body according to the first detection information and the second detection information, the method further includes:
and determining a sound channel output mode corresponding to the first earphone body according to the worn state of the first earphone body.
5. The method of claim 4, wherein the headset further comprises a second headset body, the method comprising:
determining that the worn state of the second earphone body is a second worn state when the worn state of the first earphone body is a first worn state;
determining that the worn state of the second earphone body is a first worn state when the worn state of the first earphone body is a second worn state;
and determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
6. The method of claim 3, wherein the headset further comprises a second headset body provided with a third sensor located on a third side of the audio output port of the second headset body and a fourth sensor located on a fourth side of the second headset body opposite the third side;
the method comprises the following steps:
acquiring third detection information acquired by the third sensor and fourth detection information acquired by the fourth sensor;
and determining the worn state of the second earphone body according to the third detection information and the fourth detection information.
7. The method according to claim 6, wherein the determining the worn state of the second headphone body according to the third detection information and the fourth detection information includes:
determining that the worn state is a first worn state when the third detection information and the fourth detection information satisfy a third preset condition;
determining that the worn state is a second worn state when the third detection information and the fourth detection information satisfy a fourth preset condition;
after determining the worn state of the second earphone body according to the third detection information and the fourth detection information, the method further includes:
and determining a sound channel output mode corresponding to the second earphone body according to the worn state of the second earphone body.
8. The method of claim 3, wherein after the determining the worn state of the first earpiece body, the method further comprises:
determining a first target sensor of the first earphone body according to the worn state of the first earphone body; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
when the first target sensor detects a first operation input by a user, a first target function corresponding to the first operation is determined.
9. The method of claim 6, wherein after the determining the worn state of the second earpiece body, the method further comprises:
determining a second target sensor of the second earphone body according to the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
when the second target sensor detects a second operation input by the user, a second target function corresponding to the second operation is determined.
10. The method according to claim 6, wherein after the determining of the worn state of the first headphone body, the method comprises:
determining a first target sensor of the first earphone body according to the worn state of the first earphone body; the first target sensor is one of the first sensor and the second sensor facing away from the human ear;
after the determining the worn state of the second headphone body, the method further includes:
determining a second target sensor of the second earphone body according to the worn state of the second earphone body; the second target sensor is one of the third sensor and the fourth sensor facing away from the human ear;
determining a third target function corresponding to a third operation input by a user when the first and second target sensors detect the third operation.
11. The method of claim 3, further comprising:
sending first state information of the worn state of the first earphone body to electronic equipment which establishes communication connection with the earphone;
or sending the first detection information and the second detection information to the electronic equipment.
12. The method of claim 6, further comprising:
sending second state information of the worn state of the second earphone body to electronic equipment which establishes communication connection with the earphone;
or sending the third detection information and the fourth detection information to the electronic device.
13. An earphone is characterized by comprising a first earphone body, wherein the first earphone body is provided with a first sensor and a second sensor, the first sensor is positioned on a first side of an audio output port of the first earphone body, and the second sensor is positioned on a second side, opposite to the first side, of the first earphone body; the earphone further comprises:
the acquisition module is used for acquiring first detection information acquired by the first sensor and second detection information acquired by the second sensor;
and the determining module is used for determining the worn state of the first earphone body according to the first detection information and the second detection information.
14. An earphone control method applied to an electronic device, the method comprising:
receiving first state information of a worn state of a first earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
determining the worn state of the first earphone body according to the first state information;
alternatively, the first and second electrodes may be,
receiving first detection information collected by a first sensor and second detection information collected by a second sensor, which are sent by the earphone;
determining the worn state of the first earphone body according to the first detection information and the second detection information;
the earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
15. The method according to claim 14, wherein determining the worn state of the headphone body based on the first detection information and the second detection information includes:
determining that the worn state is a first worn state when the first detection information and the second detection information satisfy a first preset condition;
determining that the worn state is a second worn state when the first detection information and the second detection information satisfy a second preset condition;
after determining the worn state of the first earphone body according to the first detection information and the second detection information, the method further includes:
and outputting corresponding sound channel audio data to the first earphone body according to the worn state of the first earphone body.
16. The method of claim 14 or 15, wherein the headset further comprises a second headset body, the method further comprising:
determining that the worn state of the second earphone body is a second worn state when the worn state of the first earphone body is a first worn state;
determining that the worn state of the second earphone body is a first worn state when the worn state of the first earphone body is a second worn state;
and outputting corresponding sound channel audio data to the first earphone body according to the worn state of the second earphone body.
17. The method of claim 14, further comprising:
receiving second state information of the worn state of a second earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
determining the worn state of the second earphone body according to the second state information;
alternatively, the first and second electrodes may be,
receiving third detection information acquired by a third sensor and fourth detection information acquired by a fourth sensor, which are sent by the earphone;
determining the worn state of the second earphone body according to the third detection information and the fourth detection information;
the earphone further comprises a second earphone body, the second earphone body is provided with the third sensor and the fourth sensor, the third sensor is located on a third side of an audio output port of the second earphone body, and the fourth sensor is located on a fourth side, opposite to the third side, of the second earphone body.
18. An electronic device, comprising:
the first receiving module is used for receiving first state information of the worn state of a first earphone body, which is sent by an earphone which establishes communication connection with the electronic equipment;
the first determining module is used for determining the worn state of the first earphone body according to the first state information;
alternatively, the first and second electrodes may be,
the second receiving module is used for receiving first detection information acquired by a first sensor and second detection information acquired by a second sensor, which are sent by the earphone;
the second determining module is used for determining the worn state of the first earphone body according to the first detection information and the second detection information;
the earphone comprises a first earphone body, the first earphone body is provided with a first sensor and a second sensor, the first sensor is located on a first side of an audio output port of the first earphone body, and the second sensor is located on a second side, back to back, of the first earphone body.
CN201911100583.4A 2019-11-12 2019-11-12 Earphone, earphone control method and electronic equipment Active CN110891217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911100583.4A CN110891217B (en) 2019-11-12 2019-11-12 Earphone, earphone control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911100583.4A CN110891217B (en) 2019-11-12 2019-11-12 Earphone, earphone control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110891217A true CN110891217A (en) 2020-03-17
CN110891217B CN110891217B (en) 2021-05-25

Family

ID=69747372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911100583.4A Active CN110891217B (en) 2019-11-12 2019-11-12 Earphone, earphone control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110891217B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329301A (en) * 2021-06-29 2021-08-31 歌尔科技有限公司 Left and right ear wearing detection method and device of headset and headset
CN113784267A (en) * 2021-08-09 2021-12-10 深圳曦华科技有限公司 Left and right ear detection method and system
WO2022233192A1 (en) * 2021-05-07 2022-11-10 Oppo广东移动通信有限公司 Detection method for wireless in-ear earphones, and earphones and storage medium
WO2023051748A1 (en) * 2021-09-30 2023-04-06 华为技术有限公司 Data processing method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158787A (en) * 2011-03-15 2011-08-17 迈尔森电子(天津)有限公司 MEMS (Micro Electro Mechanical System) microphone and pressure integration sensor, and manufacturing method thereof
CN104618831A (en) * 2015-01-27 2015-05-13 深圳市百泰实业有限公司 Wireless intelligent headphone
US20150257662A1 (en) * 2014-03-12 2015-09-17 Cheng Uei Precision Industry Co., Ltd. Physiological function detecting earphone and detecting method thereof
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN106254993A (en) * 2016-09-27 2016-12-21 依偎科技(南昌)有限公司 A kind of earphone left and right acoustic channels self-adaptation control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158787A (en) * 2011-03-15 2011-08-17 迈尔森电子(天津)有限公司 MEMS (Micro Electro Mechanical System) microphone and pressure integration sensor, and manufacturing method thereof
US20150257662A1 (en) * 2014-03-12 2015-09-17 Cheng Uei Precision Industry Co., Ltd. Physiological function detecting earphone and detecting method thereof
CN104618831A (en) * 2015-01-27 2015-05-13 深圳市百泰实业有限公司 Wireless intelligent headphone
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN106254993A (en) * 2016-09-27 2016-12-21 依偎科技(南昌)有限公司 A kind of earphone left and right acoustic channels self-adaptation control method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022233192A1 (en) * 2021-05-07 2022-11-10 Oppo广东移动通信有限公司 Detection method for wireless in-ear earphones, and earphones and storage medium
CN113329301A (en) * 2021-06-29 2021-08-31 歌尔科技有限公司 Left and right ear wearing detection method and device of headset and headset
CN113784267A (en) * 2021-08-09 2021-12-10 深圳曦华科技有限公司 Left and right ear detection method and system
WO2023051748A1 (en) * 2021-09-30 2023-04-06 华为技术有限公司 Data processing method and related device

Also Published As

Publication number Publication date
CN110891217B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN110891217B (en) Earphone, earphone control method and electronic equipment
CN110166610B (en) Mobile terminal and switching method of sound outlet
CN111459456B (en) Audio control method and electronic equipment
CN109086027B (en) Audio signal playing method and terminal
CN110209313B (en) Icon moving method and terminal equipment
CN109710150B (en) Key control method and terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN107728923B (en) Operation processing method and mobile terminal
EP4213473A1 (en) Electronic device, and control method and control apparatus therefor
CN109710130B (en) Display method and terminal
CN108683980B (en) Audio signal transmission method and mobile terminal
CN108984145B (en) Brightness adjusting method and electronic equipment
US20230037238A1 (en) Audio output mode switching method and electronic device
CN111078186A (en) Playing method and electronic equipment
CN111061404A (en) Control method and first electronic device
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN109005297B (en) Display method of navigation application and mobile terminal
CN109521937B (en) Screen display control method and mobile terminal
CN108540642B (en) Mobile terminal and operation method thereof
WO2021197311A1 (en) Volume adjustment display method and electronic apparatus
CN108319440B (en) Audio output method and mobile terminal
CN111352566B (en) Parameter adjusting method and electronic equipment
CN109634503B (en) Operation response method and mobile terminal
CN108804071B (en) Receiver driving method and mobile terminal
CN108900942B (en) Play control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant