Earphone identification method, earphone and storage medium

By installing sensors in the headset, obtaining coordinate data after wearing, automatically determining the headset position and switching channel configuration, the problem that existing headsets cannot automatically switch left and right channels is solved, and a convenient wearing experience is achieved.

CN119893372APending Publication Date: 2025-04-25BEJING EDIFIER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510067546.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Existing headphones cannot realize the function of automatically switching left and right channels after wearing them by different users. Users need to manually distinguish left and right earphones, and it is impossible to achieve the convenience of wearing directly without distinguishing left and right earphones.

Method used

By installing the sensors of the first and second headphones in the headphones, the coordinate data collected by the sensor after wearing are obtained, the wearing angle and position of the headphones are determined, and the headphone channel configuration is automatically controlled based on these data, so as to automatically switch the left and right channels.

Benefits of technology

It realizes that different users will automatically switch left and right sound channels after wearing the same headset, improving user experience and convenience. Users can use them normally without manually distinguishing left and right earphones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893372A_ABST
    Figure CN119893372A_ABST
Patent Text Reader

Abstract

The invention discloses an earphone identification method, an earphone and a storage medium. The earphones comprise a first earphone and a second earphone, the first earphone is provided with a first sensor, the second earphone is provided with a second sensor, and first coordinate data collected by the first sensor after the first earphone is taken out of a bin and second coordinate data collected by the second sensor after the second earphone is taken out of the bin are obtained; correspondingly determining a first current wearing angle of the first earphone and a second current wearing angle of the second earphone according to the first coordinate data and the second coordinate data, and determining whether the first earphone and / or the second earphone are / is worn according to the first current wearing angle and the second current wearing angle; and determining a wearing position of the first earphone and / or the second earphone according to a result of determining whether the first earphone and / or the second earphone are / is worn, and correspondingly controlling earphone sound channel configuration of the first earphone and / or the second earphone based on the wearing position. The earphone can be directly worn without distinguishing the left ear and the right ear, so that the convenience and the user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of earphone technology, and in particular to an earphone identification method, an earphone and a storage medium. Background Art

[0002] Usually, when using headphones, users need to correctly distinguish whether they are using the left headphone or the right headphone, so that the voice information of the left and right channels can be correctly distributed to the headphones on the corresponding sides. Current headphones have left and right ear labels on them, and users are required to clearly specify the wearing position and method. It is not possible to achieve that users can wear them directly without distinguishing between left and right ears, and it is not possible to achieve functions such as different users wearing a pair of headphones and automatically switching left and right channels after the headphones automatically detect the position of the left and right ears. Summary of the invention

[0003] The present invention provides an earphone identification method, earphone and storage medium, so as to solve the problem that the function of automatically switching left and right channels after different users wear a pair of earphones cannot be realized at present.

[0004] According to one aspect of the present invention, a method for identifying an earphone is provided, the earphone comprising a first earphone and a second earphone, the first earphone having a first sensor, the second earphone having a second sensor, the earphone identification method comprising:

[0005] Acquire first coordinate data collected by the first sensor after the first earphone is out of the warehouse and second coordinate data collected by the second sensor after the second earphone is out of the warehouse;

[0006] Correspondingly determining a first current wearing angle of the first earphone and a second current wearing angle of the second earphone according to the first coordinate data and the second coordinate data, and determining whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle;

[0007] The wearing positions of the first earphone and / or the second earphone are determined according to the result of determining whether the first earphone and / or the second earphone are worn, and the earphone channel configurations of the first earphone and / or the second earphone are correspondingly controlled based on the wearing positions.

[0008] Optionally, determining a first current wearing angle of the first earphone and a second current wearing angle of the second earphone according to the first coordinate data and the second coordinate data includes:

[0009] Based on the first coordinate data, any one of the X-axis, Y-axis or Z-axis of the first sensor is selected to determine a first current wearing angle of the first headset; and

[0010] Based on the second coordinate data, any one of the X-axis, Y-axis or Z-axis of the second sensor is selected to determine the second current wearing angle of the second earphone.

[0011] Optionally, before determining whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle, the method further includes:

[0012] Get the effective wearing angle range of the headset;

[0013] Determining whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle includes:

[0014] If the first current wearing angle is within the effective wearing angle range of the headset, and the second current wearing angle is not within the effective wearing angle range of the headset, it is determined that the first headset is worn and the second headset is not worn; or,

[0015] If the first current wearing angle is not within the effective wearing angle range of the headset, and the second current wearing angle is within the effective wearing angle range of the headset, it is determined that the first headset is not worn and the second headset is worn; or,

[0016] If the first current wearing angle is within the effective wearing angle range of the headset, and the second current wearing angle is within the effective wearing angle range of the headset, it is determined that both the first headset and the second headset are worn.

[0017] Optionally, the effective wearing angle range of the headset includes an effective wearing angle range for the left ear and an effective wearing angle range for the right ear;

[0018] Determining a wearing position of the first earphone and / or the second earphone according to a result of determining whether the first earphone and / or the second earphone is worn includes:

[0019] If it is determined that the first earphone is worn, and the first current wearing angle is within the left ear effective wearing angle range, determining that the wearing position of the first earphone is the left ear;

[0020] If it is determined that the first earphone is worn, and the first current wearing angle is within the right ear effective wearing angle range, determining that the wearing position of the first earphone is the right ear;

[0021] If it is determined that the second earphone is worn, and the second current wearing angle is within the left ear effective wearing angle range, determining that the wearing position of the second earphone is the left ear;

[0022] If it is determined that the second earphone is worn, and the second current wearing angle is within the right ear effective wearing angle range, then it is determined that the wearing position of the second earphone is the right ear.

[0023] Optionally, correspondingly controlling the headphone channel configuration of the first headphone and / or the second headphone based on the wearing position includes:

[0024] If it is determined that the first earphone is worn and the second earphone is not worn, determining that the earphone channel configuration of the first earphone is a mixing configuration function;

[0025] If it is determined that the first earphone is not worn and the second earphone is worn, determining that the earphone channel configuration of the second earphone is a mixing configuration function;

[0026] If it is determined that both the first earphone and the second earphone are worn, the earphone channel configurations of the first earphone and the second earphone are correspondingly controlled based on the wearing positions of the first earphone and the second earphone.

[0027] Optionally, correspondingly controlling the headphone channel configurations of the first headphone and the second headphone based on the wearing positions of the first headphone and the second headphone includes:

[0028] If the wearing position of the first earphone is the left ear, and the last wearing position of the first earphone is the left ear, determining that the earphone channel configuration of the first earphone maintains the left ear configuration function;

[0029] If the wearing position of the first earphone is the right ear, and the last wearing position of the first earphone is the right ear, determining that the earphone channel configuration of the first earphone maintains the right ear configuration function;

[0030] If the wearing position of the second earphone is the left ear, and the last wearing position of the second earphone is the left ear, determining that the earphone channel configuration of the second earphone maintains the left ear configuration function;

[0031] If the wearing position of the second earphone is the right ear, and the last wearing position of the second earphone is the right ear, it is determined that the earphone channel configuration of the second earphone maintains the right ear configuration function.

[0032] Optionally, correspondingly controlling the headphone channel configurations of the first headphone and the second headphone based on the wearing positions of the first headphone and the second headphone includes:

[0033] If the wearing position of the first earphone is the left ear, and the last wearing position of the first earphone is the right ear, determining that the earphone channel configuration of the first earphone is switched to the left ear configuration function;

[0034] If the wearing position of the first earphone is the right ear, and the last wearing position of the first earphone is the left ear, determining that the earphone channel configuration of the first earphone is switched to the right ear configuration function;

[0035] If the wearing position of the second earphone is the left ear, and the last wearing position of the second earphone is the right ear, determining that the earphone channel configuration of the second earphone is switched to the left ear configuration function;

[0036] If the wearing position of the second earphone is the right ear, and the previous wearing position of the second earphone is the left ear, it is determined that the earphone channel configuration of the first earphone is switched to the right ear configuration function.

[0037] Optionally, obtaining first coordinate data collected by the first sensor after the first earphone is out of the warehouse and second coordinate data collected by the second sensor after the second earphone is out of the warehouse includes:

[0038] When it is detected that the first earphone is worn, first coordinate data collected by the first sensor after the first earphone is out of the compartment is obtained; and when it is detected that the second earphone is worn, second coordinate data collected by the second sensor after the second earphone is out of the compartment is obtained; or

[0039] The first coordinate data collected by the first sensor after the first earphone is out of the warehouse and the second coordinate data collected by the second sensor after the second earphone is out of the warehouse are periodically obtained.

[0040] According to another aspect of the present invention, there is provided an earphone, the earphone comprising a first earphone and a second earphone, the first earphone having a first sensor, the second earphone having a second sensor;

[0041] The headset also includes:

[0042] at least one processor; and,

[0043] a memory communicatively connected to the at least one processor; wherein,

[0044] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the headset recognition method described in any embodiment of the present invention.

[0045] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the headset recognition method described in any embodiment of the present invention when executed.

[0046] The technical solution of the embodiment of the present invention, the earphone includes a first earphone and a second earphone, the first earphone has a first sensor, the second earphone has a second sensor, the first coordinate data collected by the first sensor after the first earphone is out of the warehouse and the second coordinate data collected by the second sensor after the second earphone is out of the warehouse are obtained; the first current wearing angle of the first earphone and the second current wearing angle of the second earphone are correspondingly determined according to the first coordinate data and the second coordinate data, and whether the first earphone and / or the second earphone are worn is determined according to the first current wearing angle and the second current wearing angle; the wearing position of the first earphone and / or the second earphone is determined according to the result of determining whether the first earphone and / or the second earphone are worn, and the earphone channel configuration of the first earphone and / or the second earphone is correspondingly controlled based on the wearing position. The present invention is different from the traditional wearing method of fixed left and right earphones, and can be directly worn without distinguishing between left and right ears, thereby improving convenience and user experience.

[0047] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 is a flow chart of a method for identifying an earphone according to an embodiment of the present invention;

[0050] Figure 2 is a flow chart of a method for identifying an earphone according to an embodiment of the present invention;

[0051] Figure 3 is a schematic diagram of determining a left ear effective wearing angle range and a right ear effective wearing angle range applicable to an embodiment of the present invention;

[0052] Figure 4 The present invention is a schematic diagram of the structure of a headset for implementing the headset identification method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0055] Figure 1 A flowchart of a headset recognition method is provided for an embodiment of the present invention. This embodiment is applicable to the case where different users wear the same headset to achieve channel adaptation and intelligent dynamic switching. The headset recognition method can be executed by a headset recognition device, which can be implemented in the form of hardware and / or software. The headset recognition device can be configured in a headset such as a head-mounted / neck-hanging headset, a TWS true wireless Bluetooth headset, or an OWS open wireless headset. The headset includes a first headset and a second headset, the first headset having a first sensor, and the second headset having a second sensor, such as Figure 1 As shown, the headset identification method includes:

[0056] S110. Acquire first coordinate data collected by a first sensor after the first earphone is removed from the warehouse and second coordinate data collected by a second sensor after the second earphone is removed from the warehouse.

[0057] The first earphone and the second earphone are equipped with a charging compartment, and the first earphone and the second earphone are opened in the charging compartment, and the first earphone and the second earphone are turned on and activated. It is known that the first earphone and the second earphone are connected to the charging compartment through PogoPin (which is a precision connector used in electronic products such as mobile phones) and support data communication (such as UART interface or I2C interface, etc.). Since the charging compartment has a fixed left / right ear placement position, when the first earphone and the second earphone are placed in the charging compartment, the data communicated between the charging compartment and the first earphone and the second earphone includes the left / right ear information (such as L / R identifiers, fields, etc.). At this time, the first earphone and the second earphone can determine the position information of the first earphone and the second earphone in the charging compartment through the communication of the charging compartment, thereby determining and setting the left / right ear status and information of the first earphone and the second earphone.

[0058] If it is detected that the first earphone and the second earphone are out of the earphone compartment, or it is detected that the first earphone and the second earphone are worn, the first coordinate data collected by the first sensor after the first earphone is out of the compartment is obtained, and the second coordinate data collected by the second sensor after the second earphone is out of the compartment is obtained. Further, if the first earphone and the second earphone are taken out of the ear, the wearing state of the first earphone and the second earphone at this time is the out-of-ear state, then it is continued to detect whether the first earphone and the second earphone are out of the earphone compartment, or whether the first earphone and the second earphone are worn.

[0059] If the first earphone and the second earphone do not support wearing detection, the first coordinate data collected by the first sensor after the first earphone leaves the warehouse and the second coordinate data collected by the second sensor after the second earphone leaves the warehouse can be obtained at regular intervals.

[0060] It can be understood that the first earphone and the second earphone can be worn by the same user or by different users. The first earphone can be any earphone in the earphone compartment, and the second earphone can be the other earphone in the earphone compartment. This embodiment does not impose any restrictions on the left and right ear usage status of the first earphone and the second earphone and the users.

[0061] The first sensor may be, but is not limited to, one of an acceleration sensor, a gyroscope, a capacitive touch sensor, an optical detection sensor, or a pressure sensor; the second sensor may be, but is not limited to, one of an acceleration sensor, a gyroscope, a capacitive touch sensor, an optical detection sensor, or a pressure sensor.

[0062] It can be understood that in this embodiment, the first earphone and the second earphone can each select a first sensor and a second sensor to implement the earphone recognition, thereby reducing the increase in hardware cost.

[0063] In addition, the sensing axis and installation position of the first sensor and the second sensor can be designed arbitrarily without being required to be parallel or perpendicular to the central axis of the earphone.

[0064] The first coordinate data is the coordinate data of the X-axis, Y-axis and Z-axis when the first earphone is worn, and the first coordinate data is obtained by real-time collection using the first sensor. Similarly, the second coordinate data is the coordinate data of the X-axis, Y-axis and Z-axis when the second earphone is worn, and the second coordinate data is obtained by real-time collection using the second sensor.

[0065] S120. Determine a first current wearing angle of the first earphone and a second current wearing angle of the second earphone according to the first coordinate data and the second coordinate data, and determine whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle.

[0066] On the basis of the above, since the first sensor and the second sensor do not need to consider the installation position when the circuit board and the structure are designed in the headset, in the later stage, according to the position of the first sensor and the second sensor, one of the X-axis, Y-axis or Z-axis of the first sensor and the second sensor can be directly read as the wearing angle detection.

[0067] Specifically, based on the first coordinate data, any one of the X-axis, Y-axis or Z-axis of the first sensor is selected, and the gravity acceleration sensing value between the selected axis and the center of the earth is determined as the first current wearing angle of wearing the first earphone; and based on the second coordinate data, any one of the X-axis, Y-axis or Z-axis of the second sensor is selected, and the gravity acceleration sensing value between the selected axis and the center of the earth is determined as the second current wearing angle of wearing the second earphone.

[0068] It can be seen that after obtaining the first coordinate data through the I2C or SPI interface, any one of the X-axis, Y-axis or Z-axis of the first sensor is selected, and after obtaining the second coordinate data through the I2C or SPI interface, any one of the X-axis, Y-axis or Z-axis of the second sensor is selected. Coordinates and vectors are not involved, and there is no need to use conversion formulas such as trigonometric formulas, Euler, matrices, and vector products.

[0069] Exemplarily, no matter whether the user wearing the first earphone and the user wearing the second earphone are lying flat, walking, or in any moving or still state, if the Z axis just points to the center of the earth, that is, the Z axis is selected as the basis for judging the wearing angle, the Z axis of the first sensor is selected based on the first coordinate data, and the Z axis of the second sensor is selected based on the second coordinate data, thereby determining a first current wearing angle of the first earphone and a second current wearing angle of the second earphone.

[0070] It can be understood that when determining the first current wearing angle of the first earphone and the second current wearing angle of the second earphone, the axis whose coordinate axes of the first sensor and the second sensor in the earphone just point to the center of the earth can be selected as the basis for judging the wearing angle.

[0071] The effective wearing angle range of the earphone is the effective wearing angle range for determining whether the first earphone or the second earphone is worn. The effective wearing angle range of the earphone can be obtained by technicians in this field based on the actual situation of the earphone and repeated experiments. This embodiment does not impose any special restrictions on its specific range.

[0072] It can be known that if the first current wearing angle and the second current wearing angle are not within the effective wearing angle range of the earphone, it is considered that the first earphone and the second earphone are not worn.

[0073] If the first current wearing angle is within the effective wearing angle range of the headset, and the second current wearing angle is not within the effective wearing angle range of the headset, it is considered that the first headset is worn and the second headset is not worn.

[0074] If the first current wearing angle is not within the effective wearing angle range of the earphone, and the second current wearing angle is within the effective wearing angle range of the earphone, it is considered that the first earphone is not worn and the second earphone is worn.

[0075] If the first current wearing angle is within the effective wearing angle range of the earphone, and the second current wearing angle is within the effective wearing angle range of the earphone, it is considered that both the first earphone and the second earphone are worn.

[0076] S130: Determine a wearing position of the first earphone and / or the second earphone according to a result of determining whether the first earphone and / or the second earphone is worn, and control an earphone channel configuration of the first earphone and / or the second earphone based on the wearing position.

[0077] Furthermore, in order to distinguish the wearing positions of the first earphone and / or the second earphone when being worn, the effective wearing angle range of the earphone is further divided into an effective wearing angle range for the left ear and an effective wearing angle range for the right ear. The effective wearing angle range when the earphone is worn on the left ear can be defined as the effective wearing angle range for the left ear, and the effective wearing angle range when the earphone is worn on the right ear can be defined as the effective wearing angle range for the right ear. The effective wearing angle range for the left ear and the effective wearing angle range for the right ear are theoretically detectable effective wearing angle ranges when the earphones are worn. This embodiment does not impose any special restrictions on this. The effective wearing angle range for the left ear and the effective wearing angle range for the right ear are selected and set according to the actual usage of the earphones. This method is simple and easy to use and does not require CPU computing power. In addition, the use of a single axis also simplifies and removes the coupling relationship with multiple axes. The method is simple and practical.

[0078] In this embodiment, if it is determined that the first earphone is worn and the first current wearing angle is within the effective wearing angle range for the left ear, the wearing position of the first earphone is determined to be the left ear; if it is determined that the first earphone is worn and the first current wearing angle is within the effective wearing angle range for the right ear, the wearing position of the first earphone is determined to be the right ear; if it is determined that the second earphone is worn and the second current wearing angle is within the effective wearing angle range for the left ear, the wearing position of the second earphone is determined to be the left ear; if it is determined that the second earphone is worn and the second current wearing angle is within the effective wearing angle range for the right ear, the wearing position of the second earphone is determined to be the right ear.

[0079] It can be understood that, when it is determined that the first earphone is worn and the second earphone is not worn, the first earphone is worn on one ear at this time regardless of whether the wearing position of the first earphone is the left ear or the right ear, and the headphone channel configuration of the first earphone can be controlled to be a mixing configuration function; similarly, when it is determined that the first earphone is not worn and the second earphone is worn, the second earphone is worn on one ear at this time regardless of whether the wearing position of the second earphone is the left ear or the right ear, and the headphone channel configuration of the second earphone can be controlled to be a mixing configuration function.

[0080] In one embodiment, when it is determined that both the first earphone and the second earphone are worn and the first earphone and the second earphone are worn by the same user, if the wearing position of the first earphone is the left ear and the previous wearing position of the first earphone is the left ear, then it is determined that the headphone channel configuration of the first earphone maintains the left ear configuration function. Similarly, if the wearing position of the first earphone is the left ear and the previous wearing position of the first earphone is the right ear, then it is determined that the headphone channel configuration of the first earphone is switched to the left ear configuration function; if the wearing position of the second earphone is the right ear and the previous wearing position of the second earphone is the right ear, then it is determined that the headphone channel configuration of the second earphone maintains the right ear configuration function. Similarly, if the wearing position of the second earphone is the right ear and the previous wearing position of the second earphone is the left ear, then it is determined that the headphone channel configuration of the first earphone is switched to the right ear configuration function.

[0081] On the contrary, when the first earphone and the second earphone are worn by the same user, if the wearing position of the first earphone is the right ear, and the previous wearing position of the first earphone is the right ear, then the headphone channel configuration of the first earphone is determined to maintain the right ear configuration function. Similarly, if the wearing position of the first earphone is the right ear, and the previous wearing position of the first earphone is the left ear, then the headphone channel configuration of the first earphone is determined to switch to the right ear configuration function; if the wearing position of the second earphone is the left ear, and the previous wearing position of the second earphone is the left ear, then the headphone channel configuration of the second earphone is determined to maintain the left ear configuration function. Similarly, if the wearing position of the second earphone is the left ear, and the previous wearing position of the second earphone is the right ear, then the headphone channel configuration of the second earphone is determined to switch to the left ear configuration function.

[0082] In another embodiment, when it is determined that both the first earphone and the second earphone are worn and the first earphone and the second earphone are worn by different users, the first earphone is worn by the first user and the second earphone is worn by the second user, and the wearing position of the first earphone and the wearing position of the second earphone are different ears of the first user and the second user, that is, the wearing position of the first earphone is the left ear of the first user and the wearing position of the second earphone is the right ear of the second user, or the wearing position of the first earphone is the right ear of the first user and the wearing position of the second earphone is the left ear of the second user, and further, the headphone channel configurations of the first earphone and the second earphone can be correspondingly controlled according to the wearing position of the first earphone and the wearing position of the second earphone.

[0083] In another embodiment, when it is determined that both the first earphone and the second earphone are worn and the first earphone and the second earphone are worn by different users, the first earphone is worn by the first user and the second earphone is worn by the second user, and the wearing position of the first earphone and the wearing position of the second earphone are the same position of the ears of the first user and the second user, that is, the wearing position of the first earphone is the left ear of the first user and the wearing position of the second earphone is the left ear of the second user, or the wearing position of the first earphone is the right ear of the first user and the wearing position of the second earphone is the right ear of the second user, and further, the headphone channel configurations of the first earphone and the second earphone can be correspondingly controlled according to the wearing position of the first earphone and the wearing position of the second earphone.

[0084] It should be noted that the first sensor and the second sensor between the first earphone and the second earphone are processed separately and independently. There is no need to transmit the sensor data collected by the first sensor of the first earphone to the second sensor of the second earphone and unify the sensor data collected by the second sensor of the second earphone for processing. The two are completely independent individuals and calculated separately. Therefore, when the first earphone and the second earphone are worn on the left ears of different users respectively, the headphone channel configurations of the first earphone and the second earphone are both recognized as left ear configuration functions; when the first earphone and the second earphone are worn on the right ears of different users respectively, the headphone channel configurations of the first earphone and the second earphone are both recognized as right ear configuration functions. This left ear configuration function and right ear configuration function can be applied to application scenarios such as sharing by multiple users.

[0085] It can be understood that the first earphone is identified as the right channel or the left channel, and the second earphone is identified as the right channel or the left channel, and the first earphone and the second earphone are respectively configured with corresponding left ear configuration functions and right ear configuration functions. For example, the left ear configuration function and the right ear configuration function can be function buttons and prompt sounds and other control, feedback and status information functions, and the left ear configuration function and the right ear configuration function will switch to the corresponding left / right ear function definition accordingly.

[0086] The technical solution of the embodiment of the present invention is that the earphone includes a first earphone and a second earphone, the first earphone has a first sensor, and the second earphone has a second sensor, and the first coordinate data collected by the first sensor after the first earphone is out of the warehouse and the second coordinate data collected by the second sensor after the second earphone is out of the warehouse are obtained; the first current wearing angle of the first earphone and the second current wearing angle of the second earphone are correspondingly determined according to the first coordinate data and the second coordinate data, and whether the first earphone and / or the second earphone are worn are determined according to the first current wearing angle and the second current wearing angle; the wearing position of the first earphone and / or the second earphone is determined according to the result of determining whether the first earphone and / or the second earphone are worn, and the earphone channel configuration of the first earphone and / or the second earphone is correspondingly controlled based on the wearing position. The present invention is different from the traditional wearing method of fixed left and right earphones, and can be directly worn without distinguishing between left and right ears, thereby improving convenience and user experience.

[0087] Based on the same inventive concept, Figure 2 The present invention provides a flowchart of a method for identifying an earphone according to an embodiment of the present invention. This embodiment provides an optional implementation method based on the above embodiment. The earphone includes a first earphone and a second earphone. The first earphone has a first sensor, and the second earphone has a second sensor. Figure 2 As shown, the headset identification method includes:

[0088] S210: Acquire first coordinate data collected by a first sensor after the first earphone is removed from the warehouse and second coordinate data collected by a second sensor after the second earphone is removed from the warehouse.

[0089] S220. Based on the first coordinate data, select any one of the X-axis, Y-axis or Z-axis of the first sensor to determine a first current wearing angle of the first earphone; and based on the second coordinate data, select any one of the X-axis, Y-axis or Z-axis of the second sensor to determine a second current wearing angle of the second earphone.

[0090] S230: Obtain an effective wearing angle range of the earphone.

[0091] S240. If the first current wearing angle is within the effective wearing angle range of the earphone, and the second current wearing angle is not within the effective wearing angle range of the earphone, it is determined that the first earphone is worn and the second earphone is not worn; or, if the first current wearing angle is not within the effective wearing angle range of the earphone, and the second current wearing angle is within the effective wearing angle range of the earphone, it is determined that the first earphone is not worn and the second earphone is worn; or, if the first current wearing angle is within the effective wearing angle range of the earphone, and the second current wearing angle is within the effective wearing angle range of the earphone, it is determined that both the first earphone and the second earphone are worn.

[0092] S250: Determine a wearing position of the first earphone and / or the second earphone according to a result of determining whether the first earphone and / or the second earphone is worn, and control an earphone channel configuration of the first earphone and / or the second earphone based on the wearing position.

[0093] For example, see Figure 3 As shown, Figure 3 100 may represent a first sensor of a first earphone or a second sensor of a second earphone. Figure 3 Whether the earphone shown is the first earphone or the second earphone is not particularly limited in this embodiment.

[0094] Continue to see Figure 3 As shown, when the first earphone or the second earphone is worn on the left ear, the g value range that can be read within the left ear effective wearing angle range of -80 degrees to 80 degrees is -1g to -0.17g, then the first current wearing angle is between -1g and -0.17g, or the second current wearing angle is between -1g and -0.17g, it can be determined that the wearing position of the first earphone is the left ear, or the wearing position of the second earphone is the left ear.

[0095] Similarly, see Figure 3 As shown, when the first earphone or the second earphone is worn on the right ear, the g value that can be read within the right ear effective wearing angle range of -80 degrees to 80 degrees is in the range of 0.17g to 1g, then the first current wearing angle is between 0.17g and 1g, or the second current wearing angle is between 0.17g and 1g, it can be determined that the wearing position of the first earphone is the right ear, or the wearing position of the second earphone is the right ear.

[0096] The unit of g is m / s 2 .

[0097] It can be known that the effective wearing angle range for the left ear and the effective wearing angle range for the right ear are preset in the first earphone and the second earphone programs, and the left / right wearing of the first earphone and the second earphone can be adaptively achieved by detecting the left / right position and angle of the later user.

[0098] Based on the same inventive concept, the earphone comprises a first earphone and a second earphone, the first earphone has a first sensor, the second earphone has a second sensor, Figure 4 FIG. 4 is a schematic diagram showing the structure of an earphone 410 that can be used to implement an embodiment of the present invention. Figure 4As shown, the headset 410 also includes at least one processor 411, and a memory connected to the at least one processor 411, such as a read-only memory (ROM 412), a random access memory (RAM 413), etc., wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM 412) or the computer program loaded from the storage unit 418 to the random access memory (RAM 413). In the RAM 413, various programs and data required for the operation of the headset 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An I / O (input / output) interface 415 is also connected to the bus 414.

[0099] Multiple components in the headset 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the headset 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0100] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 executes the various methods and processes described above, such as a method for identifying a headset.

[0101] In some embodiments, the headset recognition method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the headset 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the headset recognition method described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the headset recognition method in any other appropriate manner (e.g., by means of firmware).

[0102] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0103] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0104] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] To provide interaction with a user, the systems and techniques described herein may be implemented on a headset having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the headset. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0106] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0107] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying a headset, characterized in that: The earphone comprises a first earphone and a second earphone, the first earphone has a first sensor, the second earphone has a second sensor, and the earphone recognition method comprises: Acquire first coordinate data collected by the first sensor after the first earphone is out of the warehouse and second coordinate data collected by the second sensor after the second earphone is out of the warehouse; Correspondingly determining a first current wearing angle of the first earphone and a second current wearing angle of the second earphone according to the first coordinate data and the second coordinate data, and determining whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle; The wearing positions of the first earphone and / or the second earphone are determined according to the result of determining whether the first earphone and / or the second earphone are worn, and the earphone channel configurations of the first earphone and / or the second earphone are correspondingly controlled based on the wearing positions.

2. The earphone recognition method according to claim 1, characterized in that: Correspondingly determining a first current wearing angle of the first earphone and a second current wearing angle of the second earphone according to the first coordinate data and the second coordinate data includes: Based on the first coordinate data, any one of the X-axis, Y-axis or Z-axis of the first sensor is selected to determine a first current wearing angle of the first headset; and Based on the second coordinate data, any one of the X-axis, Y-axis or Z-axis of the second sensor is selected to determine the second current wearing angle of the second earphone.

3. The earphone identification method according to claim 1, characterized in that: Before determining whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle, the method further includes: Get the effective wearing angle range of the headset; Determining whether the first earphone and / or the second earphone is worn according to the first current wearing angle and the second current wearing angle includes: If the first current wearing angle is within the effective wearing angle range of the headset, and the second current wearing angle is not within the effective wearing angle range of the headset, it is determined that the first headset is worn and the second headset is not worn; or, If the first current wearing angle is not within the effective wearing angle range of the headset, and the second current wearing angle is within the effective wearing angle range of the headset, it is determined that the first headset is not worn and the second headset is worn; or, If the first current wearing angle is within the effective wearing angle range of the headset, and the second current wearing angle is within the effective wearing angle range of the headset, it is determined that both the first headset and the second headset are worn.

4. The earphone identification method according to claim 3, characterized in that: The effective wearing angle range of the headset includes an effective wearing angle range for the left ear and an effective wearing angle range for the right ear; Determining a wearing position of the first earphone and / or the second earphone according to a result of determining whether the first earphone and / or the second earphone is worn includes: If it is determined that the first earphone is worn, and the first current wearing angle is within the left ear effective wearing angle range, determining that the wearing position of the first earphone is the left ear; If it is determined that the first earphone is worn, and the first current wearing angle is within the right ear effective wearing angle range, determining that the wearing position of the first earphone is the right ear; If it is determined that the second earphone is worn, and the second current wearing angle is within the left ear effective wearing angle range, determining that the wearing position of the second earphone is the left ear; If it is determined that the second earphone is worn, and the second current wearing angle is within the right ear effective wearing angle range, then it is determined that the wearing position of the second earphone is the right ear.

5. The earphone identification method according to claim 3, characterized in that: Correspondingly controlling the headphone channel configuration of the first headphone and / or the second headphone based on the wearing position includes: If it is determined that the first earphone is worn and the second earphone is not worn, determining that the earphone channel configuration of the first earphone is a mixing configuration function; If it is determined that the first earphone is not worn and the second earphone is worn, determining that the earphone channel configuration of the second earphone is a mixing configuration function; If it is determined that both the first earphone and the second earphone are worn, the earphone channel configurations of the first earphone and the second earphone are correspondingly controlled based on the wearing positions of the first earphone and the second earphone.

6. The earphone identification method according to claim 5, characterized in that: The method of correspondingly controlling the headphone channel configurations of the first headphone and the second headphone based on the wearing positions of the first headphone and the second headphone includes: If the wearing position of the first earphone is the left ear, and the last wearing position of the first earphone is the left ear, determining that the earphone channel configuration of the first earphone maintains the left ear configuration function; If the wearing position of the first earphone is the right ear, and the last wearing position of the first earphone is the right ear, determining that the earphone channel configuration of the first earphone maintains the right ear configuration function; If the wearing position of the second earphone is the left ear, and the last wearing position of the second earphone is the left ear, determining that the earphone channel configuration of the second earphone maintains the left ear configuration function; If the wearing position of the second earphone is the right ear, and the last wearing position of the second earphone is the right ear, it is determined that the earphone channel configuration of the second earphone maintains the right ear configuration function.

7. The earphone identification method according to claim 5, characterized in that: The method of correspondingly controlling the headphone channel configurations of the first headphone and the second headphone based on the wearing positions of the first headphone and the second headphone includes: If the wearing position of the first earphone is the left ear, and the last wearing position of the first earphone is the right ear, determining that the earphone channel configuration of the first earphone is switched to the left ear configuration function; If the wearing position of the first earphone is the right ear, and the last wearing position of the first earphone is the left ear, determining that the earphone channel configuration of the first earphone is switched to the right ear configuration function; If the wearing position of the second earphone is the left ear, and the last wearing position of the second earphone is the right ear, determining that the earphone channel configuration of the second earphone is switched to the left ear configuration function; If the wearing position of the second earphone is the right ear, and the previous wearing position of the second earphone is the left ear, it is determined that the earphone channel configuration of the first earphone is switched to the right ear configuration function.

8. The earphone identification method according to claim 1, characterized in that: Acquiring first coordinate data collected by the first sensor after the first earphone is out of the warehouse and second coordinate data collected by the second sensor after the second earphone is out of the warehouse, including: When it is detected that the first earphone is worn, first coordinate data collected by the first sensor after the first earphone is out of the compartment is obtained; and when it is detected that the second earphone is worn, second coordinate data collected by the second sensor after the second earphone is out of the compartment is obtained; or The first coordinate data collected by the first sensor after the first earphone is out of the warehouse and the second coordinate data collected by the second sensor after the second earphone is out of the warehouse are periodically obtained.

9. A headset, characterized in that: The earphone comprises a first earphone and a second earphone, the first earphone has a first sensor, and the second earphone has a second sensor; The headset also includes: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the headset recognition method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the headset recognition method according to any one of claims 1 to 8 when executed.