Wearing position identification method and electronic device

By using a direction sensor in the earphones to identify the wearing direction, the problem of difficulty in distinguishing the left and right ears of new earphones is solved, automatic channel matching and control logic adjustment are realized, and the user experience is improved.

WO2024222069A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/072790
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2024-01-17
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The new type of headphones does not explicitly distinguish between left and right ears, making it difficult for users to wear them correctly, resulting in channel matching errors and confusing control logic, which affects the user experience.

Method used

It uses a direction sensor, such as a magnetic sensor, to automatically identify and determine the position of the left and right ears by measuring the wearing direction of the earplugs, and adjust the sound channel and control logic according to the position.

Benefits of technology

It enables headphones that do not require appearance distinction to automatically identify the position of the left and right ears, ensuring correct channel matching and control logic, and improving the use experience and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024072790_31102024_PF_FP_ABST
    Figure CN2024072790_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a wearing position identification method and an electronic device. According to the embodiments of the present application, the wearing position identification method comprises: when it is detected that a user wears an electronic device, acquiring a first direction of the electronic device by means of a direction sensor provided in the electronic device; and determining a wearing position of the electronic device according to the first direction. According to the embodiments of the present application, a posture of the electronic device can be sensed under the cooperation of the direction sensor, thereby determining the wearing position of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Wearing position identification method and electronic device Technical Field

[0001] The embodiments of the present application relate to the field of earphone technology, and more particularly to a wearing position identification method and electronic device. Background Art

[0002] Most earphones are designed to differentiate between left and right ears. For example, a pair of wireless earphones may have two designs, one for the left earphone and the other for the right earphone. Alternatively, a headset may have an L (for the left earphone) or an R (for the right earphone) marked near each earpiece. This allows users to identify the correct earphone fit by observing the design or markings.

[0003] Currently, a new type of headset has emerged that no longer explicitly distinguishes between left and right ears. The left and right ears share the same appearance, and there is no L (left) or R (right) mark on the headset. This type of headset is more convenient to produce and use. However, although the left and right ears are not explicitly distinguished, the headset still needs to clearly know whether the user is wearing the left or right ear in order to match the corresponding channels and avoid errors in 3D scenes (for example, music channels, movie channels, game channels, etc.). In addition, if the left and right ears are not clear, there are some control logics that come with the headset, such as sliding control, tapping control, etc., which will cause confusion and thus operational errors.

[0004] Therefore, for headphones that do not explicitly distinguish between left and right ears, it is hoped that there will be technical means to distinguish them efficiently and quickly.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a wearing position identification method and an electronic device, which can sense the posture of the electronic device in cooperation with a direction sensor, and then determine the wearing position of the electronic device.

[0007] In a first aspect, an embodiment of the present application provides an earphone, comprising: a first earplug; the first earplug and a second earplug.

[0008] In one possible implementation, the first earbud may include a first direction sensor and a first processor, where the first direction sensor is configured to sense a posture of the first earbud:

[0009] 1) When the first earbud is worn on the user's left ear, the first earbud is in a first posture, and the first processor configures the first earbud to play sound in the left channel;

[0010] 2) When the first earbud is worn in the user's right ear, the first earbud is in a second posture, and the first processor configures the first earbud to play sound in the right channel;

[0011] In the first position, the first earbud faces the ground; in the second position, the first earbud faces the ground; the first and second positions are different. Therefore, the position of the first earbud changes when it is worn on different ears of the user.

[0012] Optionally, the first position and the second position are two opposite positions on the first earbud; in the first posture, the first position faces the ground and the second position faces away from the ground; in the second posture, the second position faces the ground and the first position faces away from the ground. Thus, the first position and the second position are two opposite positions on the first earbud. Therefore, when the first earbud is worn on the user's left ear and the user's right ear, respectively, the first position and the second position face opposite directions, indicating that the posture of the first earbud has been flipped. It should be understood that in the embodiments of the present application, "facing the ground" or "facing away from the ground" may refer to the approximate orientation of the first position or the second position, and is not an absolute vertical direction pointing directly to the ground or away from the ground.

[0013] Optionally, when the first earbud is worn on the user's left ear, the first processor further configures the first earbud to use the left ear touch logic to interact with the user; when the first earbud is worn on the user's right ear, the first processor further configures the first earbud to use the right ear touch logic to interact with the user. Thus, it can be seen that when the first earbud is worn on the user's left ear and the user's right ear, respectively, the touch logic implemented by it changes. For example, the left ear touch logic includes answering / hanging up the call, and the right ear touch logic includes adjusting the volume. Then, when the first earbud is worn on the user's left ear, the first processor of the first earbud implements the left ear touch logic for answering / hanging up the call, and when the first earbud is worn on the user's right ear, the first processor of the first earbud implements the right ear touch logic for adjusting the volume.

[0014] Optionally, the first direction sensor may send a direction signal to the first processor.

[0015] In one possible implementation, the second earbud may include a second direction sensor and a second processor, where the second direction sensor is configured to sense a posture of the second earbud;

[0016] 1) When the second earbud is worn on the user's left ear, the second earbud is in a first posture, and the second processor configures the second earbud to play sound in the left channel;

[0017] 2) When the second earbud is worn in the user's right ear, the second earbud is in a second posture, and the second processor configures the second earbud to play the sound of the right channel;

[0018] In the first position, the second earbud's first position faces the ground; in the second position, the second earbud's second position faces the ground, and the first and second positions are different. This shows that the second earbud's position changes when it is worn on different ears of the user, similar to the first earbud's position.

[0019] Optionally, when the first earbud is worn on the left ear of the first user and the second earbud is worn on the left ear of the second user, both the first earbud and the second earbud play the sound of the left channel; when the first earbud is worn on the right ear of the first user and the second earbud is worn on the right ear of the second user, both the first earbud and the second earbud play the sound of the right channel. Thus, it can be seen that the channels played by the first earbud and the second earbud are related to their wearing positions. If both are worn on the left ear, the sound of the left channel is played; if both are worn on the right ear, the sound of the right channel is played; if the first earbud is worn on the left ear, the sound of the left channel is played, and if the second earbud is worn on the right ear, the sound of the right channel is played; if the first earbud is worn on the right ear, the sound of the right channel is played, and if the second earbud is worn on the left ear, the sound of the left channel is played.

[0020] In one possible implementation, the second earbud may include a second processor (e.g., processor 110 described above). The difference from the above is that the second earbud does not include a second direction sensor, so the second earbud cannot sense the posture of the second earbud. In this case, the second earbud can be connected to the first earbud for communication (the communication connection method may include Bluetooth connection, near-field communication, etc., which is not specifically limited to this); when the first earbud is worn on the user's left ear and the second earbud is worn on the user's right ear, the first earbud sends a first signal to the second earbud; the second earbud receives the first signal, and the second earbud plays the sound of the right ear canal. Thus, the first earbud can sense its own posture through the direction sensor, and thus determine its own wearing position based on its own posture; then the first earbud sends its own posture to the second earbud via the first signal, and the second earbud can use the inverse posture of the first earbud as its own posture, and thus determine its own wearing position based on its own posture.

[0021] Optionally, the first direction sensor sends a direction signal to the first processor.

[0022] Optionally, the earplug includes: a first end, a second end and a connecting portion; wherein the first end includes a speaker, and the speaker is configured to play sound into the user's ear canal.

[0023] Optionally, the first direction sensor includes one or more of a gravity sensor, a magnetic sensor, a magnet, a Hall sensor, a magnetic sensor, a magnetometer, and a magnetometer.

[0024] In a second aspect, an embodiment of the present application provides a method for identifying a wearing position, comprising: when it is detected that a user is wearing an electronic device, obtaining a first direction of the electronic device through a direction sensor provided on the electronic device; and determining the wearing position of the electronic device based on the first direction.

[0025] In an embodiment of the present application, the first direction of the earphone after being worn by the user can be measured based on the magnetic sensor on the earphone. The left and right positions of the earphone can be quickly determined based on the first direction without the need for cooperation with other sensors, which can simplify the structure of the earphone. In addition, the two earphones are independent of each other and can use the above method to confirm the left and right positions respectively.

[0026] Earbuds usually have a wearing detection function to determine whether the user is wearing / taking off the earbuds. This can be used to trigger the phone to automatically play / pause music. If the user takes off the earbuds and does not wear them for a long time and does not put them back into the charging box, the earbuds can automatically sleep / shut down to save power. This improves the experience of using the earbuds in one ear or both ears. One ear can be taken off while the other continues to play, making switching more seamless. Wearing detection methods can include: (1) using the principle of human body induction capacitance for judgment, and / or, (2) using the emission, reflection, and reception of light for judgment. Both methods can be implemented through sensors, control chips, etc.

[0027] In some embodiments, when a user wears the earbuds on their ears, the earbuds can instantly detect the wearing status and thereby trigger the earbuds to identify the left and right positions. In some embodiments, the earbuds can periodically trigger left and right position recognition, or perform left and right position recognition based on other triggering conditions, which are not specifically limited in the embodiments of the present application.

[0028] In the embodiments of the present application, whether it is an ear clip-on wireless headset or a semi-in-ear wireless headset, its appearance is characterized by not explicitly distinguishing between left and right, but its functional use requires distinguishing between left and right positions. That is, the two earbuds in a pair of headphones must clearly indicate whether they are worn by the user's left ear or right ear, so that the two earbuds can each match the corresponding audio channel when processing audio (the left channel matches the left audio channel when worn on the left ear, and the right channel matches the right audio channel when worn on the right ear), avoiding errors in 3D scenes (for example, the audio channels of music, movies, games, etc.). In addition, it is also convenient to implement some control logic of the earbuds in specific positions. For example, the earbud worn on the left ear can answer / hang up the call through sliding control, tapping control, etc., while the earbud worn on the right ear can adjust the volume through sliding control, tapping control, etc., thereby avoiding user operation errors.

[0029] As described above, the electronic device is provided with a direction sensor (also called a magnetic sensor), which can measure a first direction, and then determine the wearing position of the electronic device with the help of the first direction.

[0030] Exemplarily, when the user is in a standing or sitting state, when the first direction measured by the magnetic sensor is downward, the angle between the first direction and the geomagnetic direction is 0°, and the first direction can be recorded as 0°; or, when the first direction measured by the force sensor is upward, the angle between the first direction and the geomagnetic direction is 180°, and the first direction can be recorded as 180°. When the user is in a supine state, when the first direction measured by the force sensor is obliquely downward, the angle between the first direction and the geomagnetic direction is 40°, and the first direction can be recorded as 40°. It should be noted that the aforementioned angle can be recorded as an angle value in the clockwise direction, and the angle between the first direction and the geomagnetic direction can also be recorded as an angle value in the counterclockwise direction, without specific limitation.

[0031] In one possible implementation, when the first direction is downward, the earplug is worn in the first position, and when the first direction is upward, the earplug is worn in the second position; or, when the first direction is upward, the earplug is worn in the first position, and when the first direction is downward, the earplug is worn in the second position.

[0032] As described above, based on the pre-set settings of the earbud, when the earbud is pointed in the first direction, the earbud's wearing position can be directly determined based on the angle of the first direction. For example, when the first direction is downward, the earbud is worn on the left ear, and when the first direction is upward, the earbud is worn on the right ear. Similarly, when the first direction is upward, the earbud is worn on the left ear, and when the first direction is downward, the earbud is worn on the right ear.

[0033] In a possible implementation, the earplug may first obtain a second direction as a reference and a third position corresponding to the second direction; and then determine the wearing position of the electronic device according to the first direction, the second direction, and the third position.

[0034] The earplug can obtain the second direction and its own position (ie, the third position) in the second direction state in advance through some methods.

[0035] For example, when the two earbuds of the wireless headset are placed in the headset box, they can receive slot information from the headset box. When the slot information received by one of the earbuds indicates that its slot is the left slot, the earbud can set its own position (i.e., the first position) to the left. When the slot information received by the earbud indicates that its slot is the right slot, the earbud can set its own position (i.e., the first position) to the right.

[0036] The earbud then measures a second direction through the magnetic sensor and associates the second direction with its left or right position. For example, if the second direction is downward, recorded as 0°, and the earbud is set to the left, the earbud can associate 0° with the left position; or, if the second direction is upward, recorded as 180°, and the earbud is set to the right, the earbud can associate 180° with the right position. For another example, if the second direction is downward, recorded as 0°, and the earbud is set to the right, the earbud can associate 0° with the right position; or, if the second direction is upward, recorded as 180°, and the earbud is set to the left, the earbud can associate 180° with the left position.

[0037] It should be noted that the earplug can also obtain the second direction and the third position through other methods, for example, pre-setting the direction corresponding to the fixed angle as the second direction and the fixed position as the third position. This embodiment of the present application does not specifically limit this.

[0038] In the embodiment of the present application, a first threshold and a second threshold can be pre-set. When the angle between the first direction and the second direction is less than the first threshold, it can be considered that the displacement between the first direction and the second direction is small. In this case, it can be considered that the left and right positions of the headset have not changed in the first and second directions. In this case, the left and right positions corresponding to the second direction can be assigned to the first direction, and this position is the current position of the headset. When the angle between the first direction and the second direction is greater than the second threshold, it can be considered that the displacement between the first direction and the second direction is large, or even flipped. In this case, it can be considered that the left and right positions of the headset have changed in the first and second directions. In this case, the opposite position of the left and right positions corresponding to the second direction can be assigned to the first direction, and this position is the current position of the headset. It should be noted that the first threshold and the second threshold can be the same angle value or different angle values. When the two are different, the first threshold is less than the second threshold. In addition, the embodiment of the present application does not specifically limit the first threshold and the second threshold.

[0039] Based on the magnetic sensor on the earbud, the first direction of the earbud after being worn by the user can be measured. Based on the angle between the first direction and the second direction, the left and right positions of the earbud can be quickly determined without the need for other sensors, which can simplify the structure of the earbud. In addition, the two earbuds are independent of each other and can use the above method to confirm the left and right positions respectively.

[0040] In one possible implementation, the posture of the little figure is lying flat or prone. When the angle between the first direction and the second direction measured by the magnetic sensor on the earplug is 90° (equal to the first threshold and equal to the second threshold), it is equivalent to the user wearing two earplugs in a lying position. At this time, the earplug cannot distinguish between the left and right positions.

[0041] Based on this, an enabling interval for the first direction can be pre-set, for example, T1≤θ≤90° or 90°≤θ≤T2, where θ can be the angle corresponding to the measured first direction, and T1 and T2 can be pre-set. If the range of θ is outside the aforementioned interval, it can be considered that the user's posture is equivalent to lying flat, and the earplugs cannot distinguish between the left and right positions.

[0042] In one possible implementation, when an earbud is worn on the left ear, the magnetic sensor senses that the first direction is consistent with the second direction, and the magnetic sensor sends a first signal to the processor of the earbud, so that the processor knows that the earbud is worn on the left ear; when an earbud is worn on the right ear, the magnetic sensor senses that the first direction is opposite to the second direction, and the magnetic sensor sends a second signal to the processor, so that the processor knows that the earbud is worn on the right ear.

[0043] Correspondingly, the processor can adjust the usage functions of the earbuds according to whether they are worn on the left or right ear. For example, the earbud worn on the left ear processes the left channel and is responsible for implementing the logic of answering / hanging up the call. The earbud worn on the right ear processes the right channel and is responsible for implementing the logic of adjusting the volume.

[0044] In a third aspect, an embodiment of the present application provides a wearing position identification device, comprising: a detection module, for obtaining a first direction of the electronic device through a direction sensor provided on the electronic device when it is detected that a user is wearing the electronic device; and a determination module, for determining the wearing position of the electronic device based on the first direction.

[0045] In one possible implementation, when the first direction is downward, the electronic device is worn in a first position, and when the first direction is upward, the electronic device is worn in a second position; or, when the first direction is upward, the electronic device is worn in a first position, and when the first direction is downward, the electronic device is worn in a second position.

[0046] In a possible implementation, it also includes: an acquisition module, used to obtain a second direction as a reference and a third position corresponding to the second direction; the determination module, specifically used to determine the wearing position of the electronic device based on the first direction, the second direction and the third position.

[0047] In one possible implementation, the determination module is specifically used to obtain the angle between the first direction and the second direction; when the angle is less than a first threshold, the third position is determined as the wearing position of the electronic device; when the angle is greater than a second threshold, the fourth position is determined as the wearing position of the electronic device, and the fourth position is the reverse position of the third position.

[0048] In a possible implementation, the first threshold is smaller than the second threshold; or the first threshold is equal to the second threshold.

[0049] In one possible implementation, the acquisition module is specifically used to receive slot information from the storage device when the electronic device is placed in the storage device; obtain the third position of the electronic device in the storage device based on the slot information; and obtain the second direction of the electronic device through the direction sensor.

[0050] In a possible implementation, the acquisition module is specifically configured to determine a direction corresponding to a preset angle as the second direction; and determine a preset position as the third position.

[0051] In one possible implementation, when the second direction is the direction of gravity and the first position is the left position, if the first direction is the direction of gravity, the wearing position is the left position; or, if the first direction is the anti-gravity direction, the wearing position is the right position.

[0052] In one possible implementation, when the second direction is the anti-gravity direction and the first position is the left position, if the first direction is the anti-gravity direction, the wearing position is the left position; or, if the first direction is the gravity direction, the wearing position is the right position.

[0053] In one possible implementation, when the angle of the first direction is in a first interval or a second interval, the first direction is an effective enabling direction, wherein the first interval is [T1, 90°], the second interval is [90°, T2], and T1 and T2 are preset positive integers.

[0054] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a direction sensor; one or more processors;

[0055] A memory for storing one or more programs; the direction sensor for detecting a first direction of the electronic device; when the one or more programs are executed by the one or more processors, the one or more processors determine a wearing position according to the first direction.

[0056] In one possible implementation, when the first direction is downward, the electronic device is worn in a first position, and when the first direction is upward, the electronic device is worn in a second position; or, when the first direction is upward, the electronic device is worn in a first position, and when the first direction is downward, the electronic device is worn in a second position.

[0057] In a possible implementation, the electronic device is an earphone, which includes two earplugs having the same shape; the earplug includes a first end, a second end, and a connecting portion; wherein the first end includes a speaker.

[0058] In a possible implementation, the first end and the second end are clamped on the auricle of the user when worn.

[0059] In a possible implementation, the two earplugs are respectively worn on the left ear or the right ear of the user.

[0060] In a possible implementation, the electronic device is a wearable watch, and a crown is provided on the side of the dial of the wearable watch.

[0061] In a possible implementation, the wearable watch is worn on the left wrist or the right wrist of the user.

[0062] In a fifth aspect, an embodiment of the present application provides an electronic device comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any one of the above second aspects.

[0063] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising a computer program. When the computer program runs on an electronic device, the electronic device executes a method as described in any one of the above-mentioned second aspects.

[0064] In a seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on an electronic device, the electronic device executes the method described in any one of the above-mentioned second aspects.

[0065] In an eighth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes a method as described in any one of the second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] FIG1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application;

[0067] Figures 2a and 2b are schematic diagrams of an application scenario provided by an embodiment of the present application;

[0068] Figures 3a and 3b are schematic diagrams of an application scenario provided by an embodiment of the present application;

[0069] Figures 4a and 4b are schematic diagrams of a plane-symmetrical wireless headset;

[0070] Figures 5a-5c are schematic diagrams of an application scenario provided by an embodiment of the present application;

[0071] FIG6 is a flowchart of a process 600 of a wearing position identification method provided in an embodiment of the present application;

[0072] FIG7 is a schematic diagram of a first direction and a second direction;

[0073] FIG8 is a schematic diagram of the initial state of the earplug;

[0074] FIG9 is a schematic diagram of the earplug in the box;

[0075] FIG10 is a schematic diagram of the earplugs in the box;

[0076] Figures 11a and 11b are schematic diagrams of a user wearing earplugs;

[0077] FIG12 shows a schematic block diagram of an apparatus 1200 according to an embodiment of the present application. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0079] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0080] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0081] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0082] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0083] Before describing the technical solutions of the embodiments of the present application, the application scenarios of the embodiments of the present application are first described with reference to the accompanying drawings.

[0084] FIG1 is a schematic diagram of the structure of an electronic device 100 according to an embodiment of the present application. It should be understood that the electronic device 100 shown in FIG1 is merely an example, and that the electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different component configuration. The various components shown in FIG1 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0085] The electronic device 100 may include: a processor 110, an internal memory 120, a power management module 130, an antenna 1, a wireless communication module 140, an audio module 150, a speaker 150A, a microphone 150B, a button 160, a direction sensor 170, etc.

[0086] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a controller, a memory, an audio codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0087] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0088] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0089] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, and / or a general-purpose input / output (GPIO) interface.

[0090] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 150 via the I2S bus to enable communication between the processor 110 and the audio module 150. In some embodiments, the audio module 150 can transmit audio signals to the wireless communication module 140 via the I2S interface, enabling the function of listening to audio via Bluetooth.

[0091] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 150 and the wireless communication module 140 can be coupled via a PCM bus interface. In some embodiments, the audio module 150 can also transmit audio signals to the wireless communication module 140 via the PCM interface, enabling the function of playing audio through a Bluetooth headset or Bluetooth speaker. Both the I2S interface and the PCM interface can be used for audio communication.

[0092] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 140. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 140 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 150 can transmit audio signals to the wireless communication module 140 via the UART interface, enabling the function of playing audio through Bluetooth headphones or Bluetooth speakers.

[0093] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the wireless communication module 140, the audio module 150, etc. The GPIO interface can also be configured as an I2S interface, a UART interface, etc.

[0094] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0095] The power management module 130 is connected to the processor 110 and provides power to the processor 110, the internal memory 120, the audio module 150, and the wireless communication module 140. In other embodiments, the power management module 130 may also be provided in the processor 110.

[0096] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the wireless communication module 140, the modem processor and the baseband processor.

[0097] Antenna 1 is used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. In other embodiments, the antenna can be used in conjunction with a tuning switch.

[0098] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs the sound signal through an audio device (not limited to the speaker 150A, etc.). In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110.

[0099] The wireless communication module 140 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), etc. applied to the electronic device 100. The wireless communication module 140 can be one or more devices integrating at least one communication processing module. The wireless communication module 140 receives electromagnetic waves via the antenna 1, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 140 can also receive the signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 1.

[0100] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the wireless communication module 140 so that the electronic device 100 can communicate with a network and other devices via wireless communication technologies such as BT and / or WLAN.

[0101] Audio codecs are used to compress or decompress digital audio. Electronic device 100 may support one or more audio codecs. This allows electronic device 100 to play or record audio in a variety of encoding formats, such as Moving Picture Experts Group Audio Layer III (MP3).

[0102] The NPU is a neural network (NN) computing processor that rapidly processes input information by drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, and can also continuously self-learn. The NPU can realize intelligent cognition applications such as speech recognition in electronic device 100.

[0103] The internal memory 120 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 120. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function), etc. The data storage area can store data (such as audio data) created during the use of the electronic device 100, etc. In addition, the internal memory 120 may include a high-speed random access memory.

[0104] The electronic device 100 can implement audio functions such as music playback, video and sound playback, and voice playback through the audio module 150, the speaker 150A, the microphone 150B, and the application processor.

[0105] The audio module 150 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 150 can also be used to encode and decode audio signals. In some embodiments, the audio module 150 can be provided in the processor 110, or some functional modules of the audio module 150 can be provided in the processor 110.

[0106] The speaker 150A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can play audio, such as music, movie sounds, and voice, through the speaker 150A. In the embodiment of the present application, the electronic device 100 can be equipped with multiple speakers.

[0107] Microphone 150B, also known as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a video or voice call through electronic device 100, the user can place their mouth close to microphone 150B and speak, inputting the sound signal into microphone 150B. Electronic device 100 may be provided with one microphone 150B. In other embodiments, electronic device 100 may be provided with two microphones 150B, which, in addition to collecting sound signals, can also implement noise reduction.

[0108] The buttons 160 include a power button, a volume button, and the like. The buttons 160 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0109] The direction sensor 170 includes a gravity sensor and / or a magnetic sensor, a magnet, a Hall sensor, a magnetometer (Magnetic, M-Sensor), also known as one or more of the geomagnetic, magnetic sensor, magnetometer, etc. Among them, the gravity sensor, also known as a gravity inductor, uses an elastic sensitive element to make a cantilever displacer, and uses an energy storage spring made of an elastic sensitive element to drive the electrical contacts to complete the conversion from gravity changes to electrical signals. On the one hand, it can measure the direction of gravity, and on the other hand, it can trigger the screen rotation of the electronic device, application control changes, etc. when the direction of the electronic device changes (for example, flipping horizontally or vertically) based on the direction of gravity. Magnetic sensors, magnets, Hall sensors, magnetometers, etc. can be used to test the direction of electronic devices and locate the orientation of electronic devices. In some embodiments, the direction sensor 170 can sense the orientation of a certain position on the electronic device (the position can be pre-set), for example, the direction sensor 170 senses whether the position is facing the ground or away from the ground, etc. In the embodiments of the present application, the orientation of a certain position on the electronic device can be represented as a first direction. Alternatively, the first direction can be represented by the angle between the direction of gravity and the first direction in the clockwise direction. Other methods can also be used to represent the first direction, which are not specifically limited.

[0110] The embodiments of the present application can be applied to the above-mentioned electronic device 100, which does not explicitly distinguish between left and right, that is, the electronic device may not clearly distinguish between left and right in appearance or structure. For example, it can have the same comfort and / or experience when worn on the left side of the user or the right side of the user. For example, the two earplugs of the headset can be designed to be exactly the same or roughly the same in appearance or structure. Either of the two earplugs can provide the user with the same or similar comfort regardless of whether it is worn on the left ear or the right ear, and can provide a user experience that is not different or has little difference. However, the electronic device 100 needs to distinguish between the left and right positions in terms of functionality, that is, the functions provided by the electronic device when worn on the left side are different from those provided when worn on the right side. For example, the two earbuds of the headset, the earbud worn on the left ear and the earbud worn on the right ear respectively correspond to different left and right channels; the earbuds worn on the left ear and the earbuds worn on the right ear respectively have different sound pickup directions; the earbuds worn on the left ear and the earbuds worn on the right ear respectively have different touch logic. For example, the earbud worn on the left ear needs to have touch logic for answering / hanging up the call, and the earbud worn on the right ear needs to have touch logic for adjusting the volume, and so on.

[0111] In a possible application scenario, for example, Figures 2a and 2b are schematic diagrams of an application scenario provided by an embodiment of the present application. As shown in Figure 2a, in this application scenario, the electronic device 100 is a pair of ear-clip wireless headphones, a pair of headphones including two earplugs 201 and earplugs 202 with identical appearances. Taking the structure of the earplug 201 as an example for explanation, the earplug includes a first end, a second end, and a connecting portion connecting the two. The first end may include a speaker for playing sound to the user's ear canal, and the second end may include a microphone (not shown in the figure due to occlusion) for picking up sound. In some embodiments, the microphone may also be located at the first end and / or the connecting portion. As shown in Figure 2b, the user can clip the two earplugs 201 and earplugs 202 onto the auricles of the left and right ears in the manner of wearing ear clips, wherein the earplug 201 worn on the user's right ear has the first end on the outside of the auricle and the second end on the inside of the auricle; the earplug 202 worn on the user's left ear has the first end on the outside of the auricle and the second end on the inside of the auricle. Optionally, the earplug 201 can also be worn on the user's left ear, and the earplug 202 can also be worn on the user's right ear.

[0112] In a possible application scenario, illustratively, Figures 3a and 3b are schematic diagrams of an application scenario provided by an embodiment of the present application. As shown in Figure 3a, in this application scenario, the electronic device 100 can be a pair of semi-in-ear wireless headphones, a pair of headphones including two earplugs 301 and earplugs 302 with identical appearances. The structure of the earplug 301 is used as an example for illustration, and the earplug includes multiple speakers and microphones (not shown in the figure due to occlusion). As shown in Figure 3b, the user can plug the earplug 301 into the ear hole of the user's left ear and the earplug 302 into the ear hole of the user's right ear. Optionally, the earplug 301 can also be worn on the user's left ear, and the earplug 302 can also be worn on the user's right ear. Among them, the earplugs shown in Figures 3a and 3b can be understood as ear-bean earplugs.

[0113] The earphones in the embodiments shown in FIG2a to FIG3b may include a first earplug (eg, earplug 201 or earplug 301) and a second earplug (eg, earplug 202 or earplug 302).

[0114] In one possible implementation, the first earbud may include a first direction sensor (e.g., the direction sensor 170 described above) and a first processor (e.g., the processor 110 described above), where the first direction sensor is configured to sense the posture of the first earbud:

[0115] 1) When the first earbud is worn on the user's left ear, the first earbud is in a first posture, and the first processor configures the first earbud to play sound in the left channel;

[0116] 2) When the first earbud is worn in the user's right ear, the first earbud is in a second posture, and the first processor configures the first earbud to play sound in the right channel;

[0117] In the first position, the first earbud faces the ground; in the second position, the first earbud faces the ground; the first and second positions are different. Therefore, the position of the first earbud changes when it is worn on different ears of the user.

[0118] Optionally, the first position and the second position are two opposite positions on the first earbud; in the first posture, the first position faces the ground and the second position faces away from the ground; in the second posture, the second position faces the ground and the first position faces away from the ground. Thus, the first position and the second position are two opposite positions on the first earbud. Therefore, when the first earbud is worn on the user's left ear and the user's right ear, respectively, the first position and the second position face opposite directions, indicating that the posture of the first earbud has been flipped. It should be understood that in the embodiments of the present application, "facing the ground" or "facing away from the ground" may refer to the approximate orientation of the first position or the second position, and is not an absolute vertical direction pointing directly to the ground or away from the ground.

[0119] Optionally, when the first earbud is worn on the user's left ear, the first processor further configures the first earbud to use the left ear touch logic to interact with the user; when the first earbud is worn on the user's right ear, the first processor further configures the first earbud to use the right ear touch logic to interact with the user. Thus, it can be seen that when the first earbud is worn on the user's left ear and the user's right ear, respectively, the touch logic implemented by it changes. For example, the left ear touch logic includes answering / hanging up the call, and the right ear touch logic includes adjusting the volume. Then, when the first earbud is worn on the user's left ear, the first processor of the first earbud implements the left ear touch logic for answering / hanging up the call, and when the first earbud is worn on the user's right ear, the first processor of the first earbud implements the right ear touch logic for adjusting the volume.

[0120] Optionally, the first direction sensor may send a direction signal to the first processor.

[0121] In one possible implementation, the second earbud may include a second direction sensor (e.g., the direction sensor 170 described above) and a second processor (e.g., the processor 110 described above), wherein the second direction sensor is configured to sense the posture of the second earbud;

[0122] 1) When the second earbud is worn on the user's left ear, the second earbud is in a first posture, and the second processor configures the second earbud to play sound in the left channel;

[0123] 2) When the second earbud is worn in the user's right ear, the second earbud is in a second posture, and the second processor configures the second earbud to play the sound of the right channel;

[0124] In the first position, the second earbud's first position faces the ground; in the second position, the second earbud's second position faces the ground, and the first and second positions are different. This shows that the second earbud's position changes when it is worn on different ears of the user, similar to the first earbud's position.

[0125] Optionally, when the first earbud is worn on the left ear of the first user and the second earbud is worn on the left ear of the second user, both the first earbud and the second earbud play the sound of the left channel; when the first earbud is worn on the right ear of the first user and the second earbud is worn on the right ear of the second user, both the first earbud and the second earbud play the sound of the right channel. Thus, it can be seen that the channels played by the first earbud and the second earbud are related to their wearing positions. If both are worn on the left ear, the sound of the left channel is played; if both are worn on the right ear, the sound of the right channel is played; if the first earbud is worn on the left ear, the sound of the left channel is played, and if the second earbud is worn on the right ear, the sound of the right channel is played; if the first earbud is worn on the right ear, the sound of the right channel is played, and if the second earbud is worn on the left ear, the sound of the left channel is played.

[0126] In one possible implementation, the second earbud may include a second processor (e.g., processor 110 described above). The difference from the above is that the second earbud does not include a second direction sensor, so the second earbud cannot sense the posture of the second earbud. In this case, the second earbud can be connected to the first earbud for communication (the communication connection method may include Bluetooth connection, near-field communication, etc., which is not specifically limited to this); when the first earbud is worn on the user's left ear and the second earbud is worn on the user's right ear, the first earbud sends a first signal to the second earbud; the second earbud receives the first signal, and the second earbud plays the sound of the right ear canal. Thus, the first earbud can sense its own posture through the direction sensor, and thus determine its own wearing position based on its own posture; then the first earbud sends its own posture to the second earbud via the first signal, and the second earbud can use the inverse posture of the first earbud as its own posture, and thus determine its own wearing position based on its own posture.

[0127] Figures 4a and 4b are schematic diagrams of plane-symmetric wireless headphones. As shown in Figure 4a, plane symmetry can mean that an object, after undergoing plane symmetry, still retains the original object. This object can then be called self-symmetric about the plane. For example, any earbud in a pair of headphones (e.g., earbud 201 in Figure 2a) is symmetrical along the vertical plane but asymmetrical along the horizontal plane.

[0128] FIG4b shows the process of flipping an earbud (e.g., earbud 301 in FIG3a ) from a left-ear wearing state to an intermediate state and then to a right-ear wearing state. The earbud includes a speaker and a direction sensor (using a magnetic sensor as an example). The first direction may refer to the orientation of the magnetic sensor on the earbud.

[0129] Left ear wearing state: In this state, the earbud's posture includes the speaker facing right, the magnetic sensor is located at the bottom of the earbud, and the first direction can refer to the direction of the bottom of the earbud. The magnetic sensor senses that the first direction is downward, which is consistent with the direction of gravity, and the angle between the two is 0°.

[0130] Intermediate state: In this state, the earbud's speaker is facing downward to the right, the magnetic sensor is located at the lower left of the earbud, and the first direction can be the direction of the bottom of the earbud. The magnetic sensor senses the first direction as being downward to the left, with an angle of 40° with the direction of gravity.

[0131] Right ear wearing state: In this state, the earbud's posture includes the speaker facing left, the magnetic sensor is located at the top of the earbud, and the first direction can be the direction of the bottom of the earbud. The magnetic sensor senses that the first direction is upward, opposite to the direction of gravity, and the angle between the two is 180°.

[0132] As can be seen, the face-symmetric earbuds in this embodiment can be worn in either the left or right ear, and are not restricted to left or right ear use based on their appearance or structure. This eliminates the need for manufacturers to physically distinguish between the left and right earbuds when producing these wireless headphones, reducing design costs and improving production efficiency. Users can also wear either earbud freely, regardless of their appearance.

[0133] Optionally, the magnetic sensor can be set on one side of the earplug in the vertical direction. For example, when the earplug is in the above-mentioned left ear wearing state, the magnetic sensor is located at the bottom of the earplug; when the wireless headset is in the right ear wearing state, the magnetic sensor is located at the top of the earplug. Alternatively, the magnetic sensor can be set on one side in the horizontal direction. For example, the magnetic sensor is located on the side of the earplug without a speaker. In addition, the magnetic sensor can also be set at other positions of the earplug, which is not specifically limited in the embodiments of the present application. In one possible implementation, the magnetic sensor can be set inside the earplug so that the magnetic sensor is not visible from the outside.

[0134] In a possible application scenario, Figures 5a-5c are schematic diagrams of an application scenario provided by an embodiment of the present application. As shown in Figure 5a, in this application scenario, the electronic device 100 is a wearable watch. A crown is provided on the right side of the dial of the wearable watch, and a magnetic sensor is provided adjacent to the crown. It should be understood that the magnetic sensor can be provided on the outer surface of the wearable watch or inside the wearable watch, and there is no specific limitation on this. As shown in Figure 5b, the user is accustomed to wearing the watch on the left wrist. When the user's left arm is naturally drooping, the crown of the watch is downward. As shown in Figure 5c, the user is accustomed to wearing the watch on the right wrist. When the user's right arm is naturally drooping, the crown of the watch is upward. Usually, a user can only wear one wearable watch. Based on user habits, the wearable watch may be worn on the left wrist or the right wrist. However, no matter which wrist it is worn on, the content of the dial is positive when the user raises his hand to look at the watch. For example, the number 12 on the dial is positive. Optionally, a magnetic sensor may be disposed at the crown of the wearable watch, and the direction measured by the magnetic sensor is consistent with the crown.

[0135] On the basis of the above embodiments, the embodiments of the present application provide a method for identifying the wearing position. Figure 6 is a flowchart of process 600 of the method for identifying the wearing position provided by the embodiment of the present application. As shown in Figure 6, process 600 can be performed by the above-mentioned electronic device 100, such as an ear-clip wireless headset, a semi-in-ear wireless headset, a wearable watch, etc. For ease of description, this embodiment is described by taking the electronic device 100 as an earplug (such as the earplug 201 in Figure 2a or the earplug 301 in Figure 3a) of a semi-in-ear wireless headset (which can be simply referred to as a headset) as an example, and the other earplug in a pair of headphones (such as the earplug 202 in Figure 2a or the earplug 302 in Figure 3a) can also use the method of the present application to determine its left and right positions, and the two earplugs are independent of each other and can each determine their own left and right positions. It should be understood that the technical solution of the embodiment of the present application can be applied to any of the aforementioned electronic devices.

[0136] While process 600 is described as a series of steps or operations, it should be understood that process 600 may be performed in various orders and / or concurrently, and is not limited to the order of execution shown in FIG6 . Process 600 includes the following steps:

[0137] Step 601: When it is detected that the user is wearing an earplug, a first direction of the earplug is obtained.

[0138] Earbuds usually have a wearing detection function to determine whether the user is wearing / taking off the earbuds. This can be used to trigger the phone to automatically play / pause music. If the user takes off the earbuds and does not wear them for a long time and does not put them back into the charging box, the earbuds can automatically sleep / shut down to save power. This improves the experience of using the earbuds in one ear or both ears. One ear can be taken off while the other continues to play, making switching more seamless. Wearing detection methods can include: (1) using the principle of human body induction capacitance for judgment, and / or, (2) using the emission, reflection, and reception of light for judgment. Both methods can be implemented through sensors, control chips, etc.

[0139] In some embodiments, when a user wears the earbuds on their ears, the earbuds can instantly detect the wearing status and thereby trigger the earbuds to identify the left and right positions. In some embodiments, the earbuds can periodically trigger left and right position recognition, or perform left and right position recognition based on other triggering conditions, which are not specifically limited in the embodiments of the present application.

[0140] In the embodiments of the present application, referring to the embodiments shown in Figures 2a and 2b, whether it is an ear clip-on wireless headset or a semi-in-ear wireless headset, its appearance is characterized by not explicitly distinguishing between left and right. However, functionally, it is necessary to distinguish between left and right positions. That is, the two earbuds in a pair of headphones must clearly indicate whether they are worn by the user's left or right ear. This allows the two earbuds to match the corresponding audio channels when processing audio (the left earbud matches the left audio channel, and the right earbud matches the right audio channel), thus avoiding errors in 3D scenes (for example, the audio channels of music, movies, games, etc.). In addition, it is also convenient to implement some control logic built into the earbuds in specific positions. For example, the earbud worn on the left ear can answer / end a call through sliding controls or tapping controls, while the earbud worn on the right ear can adjust the volume through sliding controls or tapping controls, thereby avoiding user operation errors.

[0141] As described above, the electronic device 100 is provided with a magnetic sensor, which can measure the first direction, and then the wearing position of the electronic device 100 can be determined with the help of the first direction.

[0142] Exemplarily, when the user is in a standing or sitting position, when the first direction measured by the magnetic sensor is vertically downward (refer to the left ear wearing state in FIG4b ), the angle between the first direction and the geomagnetic direction is 0°, and the first direction can be recorded as 0°; or, when the first direction measured by the force sensor is vertically upward (refer to the right ear wearing state in FIG4b ), the angle between the first direction and the geomagnetic direction is 180°, and the first direction can be recorded as 180°. When the user is in a supine position, when the first direction measured by the force sensor is obliquely downward (refer to the middle state in FIG4b ), the angle between the first direction and the geomagnetic direction is 40°, and the first direction can be recorded as 40°. It should be noted that the aforementioned angle can be recorded as an angle value in the clockwise direction, and the angle between the first direction and the geomagnetic direction can also be recorded as an angle value in the counterclockwise direction, without specific limitation.

[0143] Step 602: Determine the wearing position of the earplug according to the first direction.

[0144] In one possible implementation, when the first direction is vertically downward, the earplug is worn in the first position, and when the first direction is vertically upward, the earplug is worn in the second position; or, when the first direction is vertically upward, the earplug is worn in the first position, and when the first direction is vertically downward, the earplug is worn in the second position.

[0145] As described above, based on the pre-set settings of the earbud, when the earbud is pointing in the first direction, the earbud's wearing position can be directly determined based on the angle of the first direction. For example, referring to Figure 4b, when the first direction is vertically downward, the earbud is worn in the left ear, and when the first direction is vertically upward, the earbud is worn in the right ear. Similarly, when the first direction is vertically upward, the earbud is worn in the left ear, and when the first direction is vertically downward, the earbud is worn in the right ear.

[0146] In a possible implementation, the earplug may first obtain a second direction as a reference and a third position corresponding to the second direction; and then determine the wearing position of the electronic device according to the first direction, the second direction, and the third position.

[0147] The earplug can obtain the second direction and its own position (ie, the third position) in the second direction state in advance through some methods.

[0148] For example, when the two earbuds of the wireless headset are placed in the headset box, they can receive slot information from the headset box. When the slot information received by one of the earbuds indicates that its slot is the left slot, the earbud can set its own position (i.e., the first position) to the left. When the slot information received by the earbud indicates that its slot is the right slot, the earbud can set its own position (i.e., the first position) to the right.

[0149] The earbud then measures a second direction through the magnetic sensor and associates the second direction with its left or right position. For example, if the second direction is vertically downward and is recorded as 0°, and the earbud is set to the left, the earbud can associate 0° with the left position; or if the second direction is vertically upward and is recorded as 180°, and the earbud is set to the right, the earbud can associate 180° with the right position. For another example, if the second direction is vertically downward and is recorded as 0°, and the earbud is set to the right, the earbud can associate 0° with the right position; or if the second direction is vertically upward and is recorded as 180°, and the earbud is set to the left, the earbud can associate 180° with the left position.

[0150] It should be noted that the earplug can also obtain the second direction and the third position through other methods, for example, pre-setting the direction corresponding to the fixed angle as the second direction and the fixed position as the third position. This embodiment of the present application does not specifically limit this.

[0151] In the embodiment of the present application, a first threshold and a second threshold can be pre-set. When the angle between the first direction and the second direction is less than the first threshold, it can be considered that the displacement between the first direction and the second direction is small. In this case, it can be considered that the left and right positions of the headset have not changed in the first and second directions. In this case, the left and right positions corresponding to the second direction can be assigned to the first direction, and this position is the current position of the headset. When the angle between the first direction and the second direction is greater than the second threshold, it can be considered that the displacement between the first direction and the second direction is large, or even flipped. In this case, it can be considered that the left and right positions of the headset have changed in the first and second directions. In this case, the opposite position of the left and right positions corresponding to the second direction can be assigned to the first direction, and this position is the current position of the headset. It should be noted that the first threshold and the second threshold can be the same angle value or different angle values. When the two are different, the first threshold is less than the second threshold. In addition, the embodiment of the present application does not specifically limit the first threshold and the second threshold.

[0152] For example, Figure 7 is a schematic diagram of the first direction and the second direction. The little man in the figure presents different postures, including upright, lying on his back, prone, lying flat, and lying flat, etc. It is assumed that the second direction is vertically downward (the angle between it and the geomagnetic direction is 0°), and its associated wearing position is the left position. The first direction is measured by the magnetic sensor on the earplug, and the angle between the first direction and the second direction is recorded in the clockwise direction. The first threshold and the second threshold can be 0° to 90°, and 90° is taken as an example in the example.

[0153] As shown in Figure 7 (a), the figure is standing upright. When the first direction measured by the magnetic sensor on the earbud is 0°, it can be determined that the angle between the first and second directions is 0° (less than the first threshold). Based on this, the first and second directions are the same and correspond to the left side, so it can be determined that the earbud is currently worn on the user's left ear. When the first direction measured by the magnetic sensor on the earbud is 180°, it can be determined that the angle between the first and second directions is 180° (greater than the second threshold). Based on this, the first and second directions are different and correspond to the right side, so it can be determined that the earbud is currently worn on the user's right ear.

[0154] As shown in Figure 7(b), the figure is lying on its back. When the first direction measured by the magnetic sensor on the earbud is 300°, it can be determined that the angle between the first and second directions is 60° (less than the first threshold). Based on this, the first and second directions are the same and also correspond to the left position. Therefore, it can be determined that the earbud is currently worn on the user's left ear. When the first direction measured by the magnetic sensor on the earbud is 120°, it can be determined that the angle between the first and second directions is 120° (greater than the second threshold). Based on this, the first and second directions are different and correspond to the right position. Therefore, it can be determined that the earbud is currently worn on the user's right ear.

[0155] As shown in Figure 7(c), the figure is in a prone position. When the first direction measured by the magnetic sensor on the earbud is 60°, it can be determined that the angle between the first and second directions is 60° (less than the first threshold). Based on this, the first and second directions are the same and also correspond to the left position. Therefore, it can be determined that the earbud is currently worn on the user's left ear. When the first direction measured by the magnetic sensor on the earbud is 240°, it can be determined that the angle between the first and second directions is 120° (greater than the second threshold). Based on this, the first and second directions are different and correspond to the right position. Therefore, it can be determined that the earbud is currently worn on the user's right ear.

[0156] It can be seen that the first direction of the earplug after being worn by the user can be measured based on the magnetic sensor on the earplug, and the left and right positions of the earplug can be quickly determined based on the angle between the first direction and the second direction. No other sensors are required, which can simplify the structure of the earplug. In addition, the two earplugs are independent of each other, and the above method can be used to confirm the left and right positions respectively.

[0157] In one possible implementation, as shown in (d) and (e) in Figure 7, the posture of the little figure is lying flat or lying flat, respectively. When the angle between the first direction and the second direction measured by the magnetic sensor on the earplug is 90° (equal to the first threshold and equal to the second threshold), it is equivalent to the user wearing two earplugs in a lying position. At this time, the earplug cannot distinguish between the left and right positions.

[0158] Based on this, an enabling interval for the first direction can be pre-set, for example, T1≤θ≤90° or 90°≤θ≤T2, where θ can be the angle corresponding to the measured first direction, and T1 and T2 can be pre-set. If the range of θ is outside the aforementioned interval, it can be considered that the user's posture is equivalent to lying flat, and the earplugs cannot distinguish between the left and right positions.

[0159] In one possible implementation, when an earplug (for example, earplug 201 or 202 in Figure 2a, or earplug 301 or 302 in Figure 3a) is worn on the left ear, the magnetic sensor senses that the first direction is consistent with the second direction, and the magnetic sensor sends a first signal to the processor of the earplug, so that the processor knows that the earplug is worn on the left ear; when an earplug (for example, earplug 201 or 202 in Figure 2a, or earplug 301 or 302 in Figure 3a) is worn on the right ear, the magnetic sensor senses that the first direction is opposite to the second direction, and the magnetic sensor sends a second signal to the processor, so that the processor knows that the earplug is worn on the right ear.

[0160] Correspondingly, the processor can adjust the usage functions of the earbuds according to whether they are worn on the left or right ear. For example, the earbud worn on the left ear processes the left channel and is responsible for implementing the logic of answering / hanging up the call. The earbud worn on the right ear processes the right channel and is responsible for implementing the logic of adjusting the volume.

[0161] In an embodiment of the present application, a first direction of the earphone after being worn by a user can be measured based on a magnetic sensor on the earphone, and the left and right positions of the earphone can be quickly determined based on the angle between the first direction and the second direction. No other sensors are required, which can simplify the structure of the earphone. In addition, the two earphones are independent of each other and can use the above method to confirm the left and right positions respectively.

[0162] In one possible implementation, when the electronic device 100 is a wearable watch, since the watch is not in the box, a preset direction can be used as the above-mentioned second direction. For example, the crown of the wearable watch is pointed vertically upward as the angle corresponding to the second direction. In order to ensure that the words on the dial are displayed in the positive direction, the user must ensure that the words on the dial remain in the positive direction when the arm is raised when wearing it. Therefore, the second direction corresponds to the right position.

[0163] Based on this, as shown in Figures 5b and 5c, the sensor on the wearable watch can detect that the user's arm is drooping, and at this time, the first direction can be detected by the magnetic sensor on the wearable watch. When the measured first direction is vertically downward, recorded as 0°, the angle between the first direction and the second direction is 180°, indicating that the crown of the watch is vertically downward, so the opposite position of the left and right positions corresponding to the second direction can be assigned to the first direction, indicating that the wearable watch is worn on the user's left wrist. When the measured first direction is vertically upward, recorded as 180°, the angle between the first direction and the second direction is 0°, indicating that the crown of the watch is vertically upward, so the left and right positions corresponding to the second direction can be assigned to the first direction, indicating that the wearable watch is worn on the user's right wrist.

[0164] Based on the above embodiments, the technical solutions of the present application are described below through specific embodiments.

[0165] Figure 8 is a schematic diagram of the earbuds in their initial state. As shown in Figure 8 , when manufacturing earbuds, manufacturers can simply design and produce the exterior design of one earbud and install a magnetic sensor in the same location on the earbud. This allows each earbud to measure the first direction and, therefore, determine its left-right position using the same method. The three earbuds shown in Figure 8 appear identical in appearance. The earbuds may be earbuds 201 or 202 in Figure 2a , or earbuds 301 or 302 in Figure 3a .

[0166] Optionally, the earplug may also be preset with a second direction in the initial state, for example, a direction consistent with the geomagnetic direction may be set as the second direction.

[0167] Figure 9 shows the earbuds in their original state. As shown in Figure 9, when a user places two earbuds into the earphone case, they simulate the wearable state, with their speakers facing each other. The first earbud can be placed into the case in its original state, with its magnetic sensor at the bottom. The second earbud needs to be flipped over and placed into the case, with its magnetic sensor at the top. However, this is still the user's operational phase, and the earbuds don't yet know their left-right position.

[0168] Figure 10 shows the earbuds in their case. As shown in Figure 10, after the earbuds are placed in the case, the user closes the lid. The earbuds receive slot information from the case. The first earbud receives slot information indicating that it is in the left slot (L), so the first earbud can position itself to the left. The second earbud receives slot information indicating that it is in the right slot (R), so the second earbud can position itself to the right.

[0169] The second direction measured by the magnetic sensor of the first earbud is vertically downward, recorded as 0°. Based on this, the first earbud associates 0° with the left position. The second direction measured by the magnetic sensor of the second earbud is vertically upward, recorded as 180°. Based on this, the second earbud associates 180° with the right position.

[0170] Figures 11a and 11b are schematic diagrams of a user wearing earbuds. As shown in Figure 11a, after the user takes both earbuds out of the earphone case, they wear the first earbud on their left ear and the second earbud on their right ear. At this point, after the first earbud detects the wearing state, the first direction measured by the magnetic sensor is 0°, and the angle between it and the second direction (0°) of the first earbud is 0°. Therefore, the first earbud can determine that it has not flipped over and then assigns the left position of the second direction to the first direction, that is, the first earbud determines that the user is wearing it on the left ear. After the second earbud detects the wearing state, the first direction measured by the magnetic sensor is 180°, and the angle between it and the second direction (180°) of the second earbud is 0°. Therefore, the second earbud can determine that it has not flipped over and then assigns the right position of the second direction to the first direction, that is, the second earbud determines that the user is wearing it on the right ear.

[0171] As shown in Figure 11b, after the user takes both earbuds out of the earphone case, they wear the first earbud on their right ear and the second earbud on their left ear. At this point, after the first earbud detects the wearing state, the first direction measured by the magnetic sensor is 180°, and the angle between it and the second direction (0°) of the first earbud is 180°. Therefore, the first earbud can determine that it has flipped over and assign the opposite position of the left side of the second direction to the first direction, that is, the first earbud determines that the user is wearing it on the right ear. After the second earbud detects the wearing state, the first direction measured by the magnetic sensor is 0°, and the angle between it and the second direction (180°) of the second earbud is 180°. Therefore, the second earbud can determine that it has flipped over and assign the left side of the second direction to the first direction, that is, the second earbud determines that the user is wearing it on the left ear.

[0172] It is understandable that in order to realize the above functions, the large screen includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0173] In one example, FIG12 shows a schematic block diagram of a device 1200 according to an embodiment of the present application. The device 1200 may include: a processor 1201 and a transceiver / transceiver pin 1202 , and optionally, a memory 1203 .

[0174] The various components of the device 1200 are coupled together via a bus 1204, wherein the bus 1204 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for the sake of clarity, all buses are referred to as bus 1204 in the figure.

[0175] Optionally, the memory 1203 may be used for instructions in the aforementioned method embodiment. The processor 1201 may be used to execute instructions in the memory 1203 and control the receiving pin to receive a signal and control the transmitting pin to send a signal.

[0176] The apparatus 1200 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0177] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0178] This embodiment also provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the wearing position identification method in the above-mentioned embodiment.

[0179] This embodiment also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the above-mentioned related steps to implement the wearing position identification method in the above-mentioned embodiment.

[0180] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the wearing position identification method in the above-mentioned method embodiments.

[0181] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0182] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0183] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0184] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0185] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0186] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0187] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0188] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0189] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0190] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0191] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A headset, characterized in that: include: First earplugs; The first earbud includes a first direction sensor and a first processor, the first direction sensor being configured to sense a posture of the first earbud; When the first earplug is worn on the left ear of the user, the first earplug is in a first posture, and the first processor configures the first earplug to play the sound of the left channel; When the first earplug is worn on the right ear of the user, the first earplug is in a second posture, and the first processor configures the first earplug to play the sound of the right channel; Wherein, in the first posture, a first position of the first earplug faces the ground; in the second posture, a second position of the first earplug faces the ground; and the first position and the second position are different.

2. The earphone according to claim 1, characterized in that The first position and the second position are two opposite positions on the first earplug; In the first posture, the first position faces the ground, and the second position faces away from the ground; In the second posture, the second position faces the ground and the first position faces away from the ground.

3. The earphone according to claim 1, characterized in that When the first earbud is worn on the left ear of the user, the first processor further configures the first earbud to interact with the user using left ear touch control logic; When the first earbud is worn in the right ear of the user, the first processor further configures the first earbud to interact with the user using right ear touch control logic.

4. The earphone according to claim 1, characterized in that The first direction sensor sends a direction signal to the first processor.

5. The earphone according to claim 1, characterized in that The earplug comprises: a first end, a second end and a connecting portion; wherein, The first end includes a speaker configured to play sound into an ear canal of the user.

6. The earphone according to claim 1, characterized in that The first direction sensor includes one or more of a gravity sensor, a magnetic sensor, a magnet, a Hall sensor, a magnetic sensor, a magnetometer and a magnetometer.

7. The earphone according to any one of claims 1 to 6, characterized in that: Also includes: Second earplug; The second earbud includes a second direction sensor and a second processor, the second direction sensor being configured to sense a posture of the second earbud; When the second earplug is worn on the left ear of the user, the second earplug is in a first posture, and the second processor configures the second earplug to play the sound of the left channel; When the second earplug is worn on the right ear of the user, the second earplug is in a second posture, and the second processor configures the second earplug to play the sound of the right channel; Wherein, in the first posture, a first position of the second earplug faces the ground; in the second posture, a second position of the second earplug faces the ground, and the first position and the second position are different.

8. The earphone according to claim 7, characterized in that: When the first earplug is worn on the left ear of the first user and the second earplug is worn on the left ear of the second user, both the first earplug and the second earplug play the sound of the left channel; When the first earplug is worn on the right ear of the first user and the second earplug is worn on the right ear of the second user, both the first earplug and the second earplug play the sound of the right channel.

9. The earphone according to any one of claims 1 to 6, characterized in that: Also includes: Second earplug; The second earplug includes a second processor, and the first earplug is communicatively connected with the second earplug; When the first earplug is worn on the left ear of the user and the second earplug is worn on the right ear of the user, the first earplug sends a first signal to the second earplug; The second earplug receives the first signal, and plays the sound of the right ear canal.

10. A method for identifying a wearing position, characterized in that: include: When it is detected that the user is wearing the electronic device, a first direction of the electronic device is acquired through a direction sensor disposed on the electronic device; The wearing position of the electronic device is determined according to the first direction.

11. The method according to claim 10, characterized in that When the first direction is downward, the electronic device is worn at a first position, and when the first direction is upward, the electronic device is worn at a second position; or, When the first direction is upward, the electronic device is worn in a first position, and when the first direction is downward, the electronic device is worn in a second position.

12. The method according to claim 10, characterized in that Before determining the wearing position of the electronic device according to the first direction, the method further includes: Acquire a second direction as a reference and a third position corresponding to the second direction; The step of determining the wearing position of the electronic device according to the first direction includes: The wearing position of the electronic device is determined according to the first direction, the second direction and the third position.

13. The method according to claim 12, characterized in that The determining the wearing position of the electronic device according to the first direction, the second direction and the third position includes: Obtaining an angle between the first direction and the second direction; When the angle is less than a first threshold, determining the third position as the wearing position of the electronic device; When the angle is greater than a second threshold, a fourth position is determined as the wearing position of the electronic device, and the fourth position is a reverse position of the third position.

14. The method according to claim 13, characterized in that The first threshold is smaller than the second threshold; or, the first threshold is equal to the second threshold.

15. The method according to any one of claims 12 to 14, characterized in that: The acquiring of a second direction as a reference and a third position corresponding to the second direction includes: When the electronic device is placed in the storage device, receiving slot information from the storage device; Acquire the third position of the electronic device in the storage device according to the slot information; The second direction of the electronic device is acquired through the direction sensor.

16. The method according to any one of claims 12 to 14, characterized in that: The acquiring of a second direction as a reference and a third position corresponding to the second direction includes: Determine the direction corresponding to the preset angle as the second direction; The preset position is determined as the third position.

17. The method according to any one of claims 12 to 16, characterized in that: When the second direction is the gravity direction and the first position is the left position, If the first direction is the direction of gravity, the wearing position is the left side; or, If the first direction is the anti-gravity direction, the wearing position is the right side position.

18. The method according to any one of claims 12 to 16, characterized in that: When the second direction is the anti-gravity direction and the first position is the left position, If the first direction is the anti-gravity direction, the wearing position is the left side; or, If the first direction is the direction of gravity, the wearing position is the right side.

19. The method according to any one of claims 10 to 18, characterized in that When the angle of the first direction is in a first interval or a second interval, the first direction is a valid enabling direction, wherein the first interval is [T1, 90°], the second interval is [90°, T2], and T1 and T2 are preset positive integers.

20. An electronic device, characterized in that: include: Direction sensor; one or more processors; A memory for storing one or more programs; The direction sensor is used to detect a first direction of the electronic device; When the one or more programs are executed by the one or more processors, the one or more processors determine the wearing position according to the first direction.

21. The electronic device according to claim 20, characterized in that: When the first direction is downward, the electronic device is worn at a first position, and when the first direction is upward, the electronic device is worn at a second position; or, When the first direction is upward, the electronic device is worn in a first position, and when the first direction is downward, the electronic device is worn in a second position.

22. The electronic device according to claim 20 or 21, characterized in that: The electronic device is a headset, and the headset comprises two earplugs, and the two earplugs have the same shape; The earplug comprises a first end, a second end and a connecting portion; wherein, The first end includes a speaker.

23. The electronic device according to claim 22, characterized in that: The first end portion and the second end portion are clamped on the auricle of the user when worn.

24. The electronic device according to claim 22 or 23, characterized in that: The two earplugs are respectively worn on the left ear or the right ear of the user.

25. The electronic device according to claim 20 or 21, characterized in that: The electronic device is a wearable watch, and a crown is arranged on the side of the dial of the wearable watch.

26. The electronic device according to claim 25, characterized in that: The wearable watch is worn on the left wrist or the right wrist of the user.

27. A computer-readable storage medium, characterized in that: The method comprises a computer program, and when the computer program is run on an electronic device, the electronic device executes the method according to any one of claims 10 to 19.

28. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on an electronic device, the electronic device is enabled to perform the method according to any one of claims 10 to 19.

29. A chip, characterized in that: It comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, the signal comprising a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 10-19.

Citation Information

Patent Citations

  • Bluetooth equipment and audio playing method using same

    CN102316394A

  • Headphone sound channel switching method and device

    CN106445457A

  • Method and device for identifying left earphone and right earphone, and earphone

    CN115086817A

  • Electronic device and control method thereof

    US20150077353A1

Cited By

  • Adaptive earphone and orientation sensor

    EP4753286A1