Dynamic mode switching method, device, headphone device and readable storage medium

By detecting the distance and angle between TWS earphones, it automatically determines the wearer and controls the mode switching, solving the problem of tedious manual settings for users and achieving efficient earphone mode switching and friendly human-computer interaction.

CN116132870BActive Publication Date: 2025-09-16GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310113576.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2025-09-16
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

When users use TWS earphones, especially when sharing them, they need to manually set the earphones to independent use mode and unbind the connected terminal device. The operation is cumbersome, resulting in low switching efficiency when the earphones switch from binaural mode to monaural mode, affecting the user experience.

Method used

By detecting the distance and angle between the first earphone and the second earphone, it is determined whether the wearers are the same person. If they are not the same person, the earphones are automatically controlled to switch from binaural mode to monaural mode, including using a Bluetooth module or UWB sensor for distance and angle measurement, and playing a prompt tone to confirm the switching operation when necessary.

Benefits of technology

The headset can automatically switch from binaural mode to monaural mode when users share it, which improves switching efficiency and enhances the friendliness of human-computer interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132870B_ABST
    Figure CN116132870B_ABST
Patent Text Reader

Abstract

The present invention discloses a dynamic mode switching method, apparatus, headphone device, and computer-readable storage medium. The dynamic mode switching method is applied to a first headphone. The method comprises: detecting a first distance and a first angle between the first headphone and the second headphone, when the first headphone and the second headphone are in binaural mode and both are in the worn state; if the first distance and the first angle meet a preset multi-wearer condition, determining that the wearers of the first headphone and the second headphone are not the same person, and controlling the first headphone and the second headphone to switch from binaural mode to monaural mode. The present invention improves the switching efficiency and human-computer interaction friendliness of the headphone device when switching from binaural mode to monaural mode.
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 a dynamic mode switching method, apparatus, earphone device, and computer-readable storage medium. Background Art

[0002] True Wireless Stereo (TWS) Bluetooth earphones are two separate earphones that are synchronized wirelessly via Bluetooth. TWS earphones typically switch between single-ear and dual-ear modes during use. This convenience allows users to share one earphone with a friend.

[0003] However, when using TWS earphones, especially when sharing them, users need to manually set the TWS earphones to independent use mode and unbind the connected terminal device. The operation is cumbersome and inconvenient, resulting in low switching efficiency when the earphones switch from binaural mode to monaural mode, which has a great impact on the user experience. Summary of the Invention

[0004] The main purpose of the present invention is to provide a dynamic mode switching method, device, headphone device and computer-readable storage medium, aiming to propose a dynamic mode switching solution for headphones to improve the switching efficiency and human-computer interaction friendliness when the headphones cause the headphones to switch from a binaural model to a monaural mode.

[0005] To achieve the above object, the present invention provides a dynamic mode switching method, which includes the following steps:

[0006] When the first earphone and the second earphone are in binaural mode and both are in the worn state, detecting a first distance and a first angle between the first earphone and the second earphone, wherein the first angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0007] If the first distance and the first angle meet the preset multi-wearer condition, it is determined that the wearers of the first earphone and the second earphone are not the same person, and the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode.

[0008] Optionally, if the first distance and the first angle meet a preset multi-wearer condition, the step of determining that the wearers of the first earphone and the second earphone are not the same person includes:

[0009] If each of the first distances detected within the first preset time period is greater than the first preset threshold, and each of the first angles detected within the first preset time period is within the preset threshold range, it is determined that the wearers of the first earphone and the second earphone are not the same person.

[0010] Optionally, before the step of controlling the first earphone and the second earphone to switch from binaural mode to monaural mode, the method further includes:

[0011] Play the preset prompt tone;

[0012] If a signal for canceling the switching operation is detected within a second preset time period after the prompt tone is played, keeping the first earphone and the second earphone in binaural mode;

[0013] The step of controlling the first earphone and the second earphone to switch from binaural mode to monaural mode includes:

[0014] If no cancel switching operation signal is detected within the second preset time period after playing the prompt tone, the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode.

[0015] Optionally, the step of controlling the first earphone and the second earphone to switch from binaural mode to monaural mode includes:

[0016] Control the first headset and the second headset to delete the pairing information between each other and enter an automatic pairing mode with the terminal device.

[0017] Optionally, the dynamic mode switching method further includes:

[0018] When the first earphone and the second earphone are in the monaural mode and both are in the worn state, detecting a second distance and a second angle between the first earphone and the second earphone, wherein the second angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0019] If the second distance and the second angle meet the preset single wearer condition, it is determined that the wearers of the first earphone and the second earphone are the same person, and the first earphone and the second earphone are controlled to switch from the monaural mode to the binaural mode.

[0020] Optionally, before the step of detecting the first distance and the first angle between the first earphone and the second earphone when the first earphone and the second earphone are in binaural mode and both are in the worn state, the method further includes:

[0021] Obtaining a wearing status of an earphone detected by a wearing detection module in the first earphone;

[0022] If the wearing status of the first earphone is worn, the first earphone obtains the wearing status of the second earphone;

[0023] If the wearing status of the second earphone is worn, it is determined that the wearing status of the first earphone and the second earphone are both worn.

[0024] Optionally, the step of obtaining the earphone wearing status detected by the wearing detection module in the first earphone includes:

[0025] Obtaining a third distance between the first headset and the nearest obstacle detected by the wearing detection module;

[0026] If the third distance is greater than a second preset threshold, determining that the wearing state of the first earphone is not worn;

[0027] If the third distance is less than or equal to the second preset threshold, acquiring the motion data collected by the wearing detection module;

[0028] When the motion data meets a preset human action state data standard, it is determined that the wearing state of the earphone is worn.

[0029] To achieve the above objectives, the present invention further provides a dynamic mode switching device, which is deployed in a first earphone and includes:

[0030] a detection module, configured to detect a first distance and a first angle between the first earphone and the second earphone when the first earphone and the second earphone are in binaural mode and both are in the worn state, wherein the first angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0031] a control module configured to determine that the wearers of the first earphone and the second earphone are not the same person if the first distance and the first angle meet a preset multi-wearer condition, and control the first earphone and the second earphone to switch from binaural mode to monaural mode.

[0032] To achieve the above-mentioned objectives, the present invention also provides an earphone device, which includes: a memory, a processor, and a dynamic mode switching program stored in the memory and executable on the processor. When the dynamic mode switching program is executed by the processor, the steps of the above-mentioned dynamic mode switching method are implemented.

[0033] In addition, to achieve the above objectives, the present invention also proposes a computer-readable storage medium, which stores a dynamic mode switching program. When the dynamic mode switching program is executed by a processor, the steps of the dynamic mode switching method described above are implemented.

[0034] In the present invention, when the first earphone and the second earphone are in binaural mode and both are in the worn state, a first distance and a first angle between the first earphone and the second earphone are detected, wherein the first angle is the angle formed between the line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, and the preset spatial coordinate system is established with the first earphone or the second earphone as a reference; if the first distance and the first angle meet the preset multi-wearer condition, it is determined that the wearers of the first earphone and the second earphone are not the same person, and the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode. The present invention achieves the effect that the earphones can automatically switch from binaural mode to monaural mode when users share wireless earphones, improves the switching efficiency of the earphones when switching from binaural mode to monaural mode, and enhances the human-computer interaction friendliness of the earphones. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 Schematic diagram of the flow of the first embodiment of the dynamic mode switching method of the present invention;

[0036] Figure 2 Schematic diagram of the functional modules of a preferred embodiment of the dynamic mode switching device of the present invention.

[0037] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a dynamic mode switching method according to the present invention.

[0040] The present invention provides an embodiment of a dynamic mode switching method. It should be noted that although the flowchart shows a logical order, in some cases, the steps shown or described may be performed in a different order. The dynamic mode switching method of the present invention is applied to a first headset. In this embodiment, the dynamic mode switching method includes:

[0041] Step S10: When the first earphone and the second earphone are in binaural mode and both are in the worn state, detecting a first distance and a first angle between the first earphone and the second earphone, wherein the first angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0042] The first earphone can be either earphone in a pair of wireless earphones, and the second earphone can be the other earphone in the pair of wireless earphones. Binaural mode refers to a mode in which a pair of wireless earphones are connected to the same terminal device to create a stereo effect.

[0043] In a feasible implementation, the first earphone and the second earphone may be a pair of TWS earphones. In binaural mode, a pair of TWS earphones generally establishes a wireless connection (such as a Bluetooth connection) with a successfully paired smart terminal, and the two earphones are synchronized via Bluetooth wireless.

[0044] The preset spatial coordinate system is established with the first earphone or the second earphone as a reference. In one feasible embodiment, the preset spatial coordinate system is established with the first earphone as a reference. When the first earphone is placed in a person's ear, the direction toward the ear canal is set as the z-axis, the direction perpendicular to the horizontal plane is set as the y-axis, and the direction parallel to the horizontal plane is set as the x-axis; and the xy plane is used as the preset reference plane.

[0045] There are many ways to detect the first distance and the first angle between the first earphone and the second earphone, which are not limited in this embodiment. For example, in a feasible implementation, the first earphone and the second earphone can be provided with a Bluetooth module, wherein the Bluetooth module in any earphone serves as a host module and the Bluetooth module in the other earphone serves as a slave module. When performing distance measurement, the host module continuously scans the broadcasts sent by the surrounding slave modules, and judges the distance between the two earphones by the RSSI value (Received Signal Strength Indication) of the broadcast; when performing angle measurement, the host module establishes a communication connection with the slave module, and uses the angle of arrival (AOA) or angle of departure (AOD) angle measurement method to calculate the direction of the Bluetooth signal. According to the direction, the angle between the line connecting the two earphones and the horizontal plane can be obtained. In the above manner, the Bluetooth module can be used to obtain the first distance and the first angle between the first earphone and the second earphone.

[0046] For example, in another feasible embodiment, a UWB (Ultra WideBand) sensor provided in the first earphone can be used to detect the first distance and first angle between the first earphone and the second earphone. The first and second earphones are provided with UWB sensors, each including a transmitter and a matching receiver. When measuring the distance and angle between the first and second earphones, a spatial coordinate system is established with the first earphone as the reference. The direction of the first earphone toward the ear canal when worn is defined as the z-axis, and the plane xy perpendicular to the z-axis is used as the reference plane. In this spatial coordinate system, the earphone and the UWB sensor provided in the earphone can be considered as a single entity. When measuring distance, the transmitter of the UWB sensor in the first earphone sends a first data packet to the receiver of the UWB sensor in the second earphone. After the receiver of the UWB sensor in the second earphone receives the first data packet, the transmitter of the UWB sensor in the second earphone sends a second data packet to the UWB sensor in the first earphone. The second data packet contains information such as the time the second data packet was sent and the time the first data packet was received. After receiving the second data packet, the UWB sensor in the first earphone calculates the difference between the sending time of the second data packet and the receiving time of the first data packet recorded in the second data packet to obtain the transmission time of the data packet between the two UWB sensors, and then multiplies the transmission time by the speed of light to obtain the distance between the UWB sensors of the two earphones; since the UWB sensors are set in the earphones, it can be considered that the distance between the UWB sensor in the first earphone and the UWB sensor in the second earphone is equal to the distance between the first earphone and the second earphone, and thus this distance is used as the first distance between the first earphone and the second earphone. When measuring the angle, the phase difference between the two receiving antennas when the receiving end of the UWB sensor in the first earphone receives the second data packet is obtained, and then the phase difference is divided by the nominal frequency of the UWB sensor to obtain the time difference between the two receiving antennas receiving the second data packet. Based on the time difference, the path field from the second data packet to the two receiving antennas and the distance between the two receiving antennas of the UWB sensor in the first earphone are calculated to construct a triangle, and the law of cosines is used to calculate the angle of arrival of the data received by the UWB sensor. Since the UWB sensors are arranged in the earphones, the line connecting the UWB sensor in the first earphone and the UWB sensor in the second earphone can be regarded as the line connecting the first earphone and the second earphone. Based on the arrival angle, the angle formed between the line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system can be converted, that is, the first angle between the first earphone and the second earphone can be obtained.Compared with other ranging angle sensing modules, UWB sensors have the advantages of low system complexity, low transmitted signal power spectrum density, insensitivity to channel fading, low interception capability, and high positioning accuracy. They are particularly suitable for high-speed wireless access in dense multipath places such as indoors, thereby being able to accurately obtain the first distance and first angle between the first earphone and the second earphone.

[0047] Step S20: If the first distance and the first angle meet the preset multi-wearer condition, it is determined that the wearers of the first earphone and the second earphone are not the same person, and the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode.

[0048] When the first and second earphones are worn by different people, the distance and angle between the two earphones will vary depending on the wearers' positions. The multi-wearer condition determines the conditions that must be met for the first distance and first angle when the first and second earphones are worn by different people. In specific implementations, the multi-wearer condition can be set based on the distance and angle between the two earphones when worn by different people in different usage scenarios, and this is not a limitation in this embodiment. It is understandable that although people have different body shapes, when wearing headphones at the same time, the distance between the two headphones will have a maximum critical value, and the angle between the two headphones will also be within a certain range. The distance and angle between the first earphone and the second earphone can be collected when wearers of different body shapes wear the two headphones alone, and the maximum distance among the distances is used as a preset threshold. Based on the distribution of each angle, the maximum angle range that the angles of the two earphones may be when the person wears the two headphones alone is determined, and the range outside the angle range is set as a preset range. The multi-wearer condition is set based on the preset threshold and preset range. For example, the multi-wearer condition can be that when it is detected that the first distance measured at a certain time point is greater than the preset threshold and the first angle is within the preset range, that is, when it is detected that the first distance is greater than the preset threshold and the first angle is within the preset range, it can be considered that the multi-wearer condition is met, and it is determined that the two headphones are worn by different people.

[0049] Single-ear mode refers to the working mode in which a pair of wireless headphones are connected to different terminal devices respectively during operation.

[0050] It can be understood that after determining that the first earphone and the second earphone are both in the worn state and in binaural mode, it can be considered that the positional relationship between the two earphones is basically the same as the positional relationship between the two earphone wearers. By analyzing whether the distance and angle between the two earphones meet the preset multi-wearer conditions, it is determined whether the wearers of the two earphones are the same person, and then the two earphones are controlled to switch from binaural mode to monaural mode.

[0051] There are many ways to control the headphones to switch from binaural mode to monaural mode, which are not limited in this embodiment. For example, in one feasible implementation, the first headphone can enter automatic pairing mode with the terminal device and send a signal to control the second headphone to enter automatic pairing mode with the terminal device, thereby controlling both headphones to switch from binaural mode to monaural mode.

[0052] Furthermore, in a feasible implementation manner, step S20 includes:

[0053] Step S201: If each of the first distances detected within the first preset time period is greater than the first preset threshold, and each of the first angles detected within the first preset time period is within the preset threshold range, it is determined that the wearers of the first earphone and the second earphone are not the same person.

[0054] In this embodiment, the preset multi-wearer condition may be that each first distance detected within a continuous first preset time period is greater than a first preset threshold and the first angles are all within a first preset range.

[0055] The first preset duration can be set as needed and is not limited in this embodiment. For example, it can be set to 3 seconds.

[0056] The first preset threshold and the preset threshold range can be set as needed. The specific values ​​can be obtained through experiments. The embodiment of the present invention is not limited to this. For example, the first preset threshold can be 50 cm, and the preset threshold range can include three small ranges: 0°-85°, 95°-265°, and 275°-360°. When the first distances between the two earphones detected within 3 seconds are all greater than 50 cm, and the first angles between the two earphones are all within any small range of the above-mentioned preset threshold ranges, it can be determined that the wearers of the two earphones are not the same person.

[0057] Furthermore, in one feasible implementation, step S20 includes:

[0058] Step S202: Control the first headset and the second headset to delete the pairing information between each other and enter an automatic pairing mode with the terminal device.

[0059] In binaural mode, the first earphone and the second earphone are paired and maintain a communication connection with each other. The terminal device only directly pairs with one of the earphones and establishes a communication connection. In the process of switching the first earphone and the second earphone from binaural mode to monaural mode, the first earphone can delete the pairing information with the second earphone and control the second earphone to delete the pairing information with the first earphone. After deleting the pairing information between each other, the two earphones enter the automatic pairing mode with the terminal device, so that the two earphones can each pair with the terminal device to achieve the purpose of independent use. Among them, two automatic pairing modes are set in the earphone, namely automatic pairing mode with the earphone device and automatic pairing mode with the terminal device; when in automatic pairing mode with the earphone device, the earphone is paired with the searched earphone device; when in automatic pairing mode with the terminal device, the earphone is paired with the searched terminal device.

[0060] In this embodiment, when the first earphone and the second earphone are in binaural mode and both are in the worn state, a first distance and a first angle between the first earphone and the second earphone are detected, where the first angle is the angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference; if the first distance and the first angle meet the preset multi-wearer condition, it is determined that the wearers of the first earphone and the second earphone are not the same person, and the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode. This embodiment enables the earphones to automatically switch from binaural mode to monaural mode when users share wireless earphones, improves the switching efficiency of the earphones when switching from binaural mode to monaural mode, and enhances the human-computer interaction friendliness of the earphones.

[0061] Furthermore, based on the above-mentioned first embodiment, a second embodiment of the dynamic mode switching method of the present invention is proposed. In this embodiment, before step S20, the following steps may be further included:

[0062] Step S30, playing a preset prompt tone;

[0063] After determining that the wearers of the first earphone and the second earphone are not the same person, the first earphone plays a preset prompt tone. The prompt tone is used to remind the wearer that the earphone unbinding operation is about to be performed before the mode is switched. The specific content of the prompt tone can be configured as needed and is not limited in this embodiment.

[0064] Step S40: If a signal to cancel the switching operation is detected within a second preset time period after the prompt tone is played, the first earphone and the second earphone are kept in binaural mode;

[0065] The first earphone detects whether there is a signal to cancel the switching operation within a second preset time period after playing the prompt tone. The second preset time period can be configured as needed. The signal to cancel the switching operation can be sent by the wearer using a button on the earphone itself or a terminal device paired with the earphone, which is not limited in this embodiment.

[0066] In a feasible implementation, if the wearer of the earphones only wants to share the content played by the earphones, and not to share the earphones with others, the wearer of the earphones will operate the button on the earphone body to generate a cancel switch operation signal, then the first earphone will detect the above-mentioned cancel switch operation signal, and after detecting the signal, keep the first earphone and the second earphone in binaural mode.

[0067] Step S50: If no signal for canceling the switching operation is detected within the second preset time period after the prompt tone is played, controlling the first earphone and the second earphone to switch from the binaural mode to the monaural mode;

[0068] After playing the prompt tone, if the wearer of the earphones needs to share the earphones with others, the relevant cancellation switch operation will not be performed. Therefore, the first earphone will not detect the above-mentioned cancellation switch operation signal within the second preset time period. When the second preset time period expires, the first earphone and the second earphone will be controlled to switch from binaural mode to monaural mode.

[0069] In this embodiment, after determining that the wearers of the first earphone and the second earphone are not the same person, the earphone plays a preset prompt tone. The earphone can selectively switch from binaural to monaural use according to whether the wearer of the earphone has the need to share the earphone with others, so that the mode switching function is more in line with the user's actual usage scenario, thereby improving the practicality of the earphone when switching modes.

[0070] Furthermore, based on the above-mentioned first and second embodiments, a third embodiment of the dynamic mode switching method of the present invention is proposed. In this embodiment, the dynamic mode switching method of the present invention may further include:

[0071] Step S60: Detecting a second distance and a second angle between the first earphone and the second earphone when the first earphone and the second earphone are in the monaural mode and both are in the worn state, where the second angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0072] When the first earphone and the second earphone are in monaural mode and both are worn, the first earphone can detect the distance (hereinafter referred to as the second distance for distinction) and angle (hereinafter referred to as the second angle for distinction) between the first earphone and the second earphone.

[0073] When the first earphone and the second earphone are in the monaural mode and both are in the worn state, the second distance and the second angle between the first earphone and the second earphone are detected to facilitate mode switching when the wearer of the earphone retracts the earphone.

[0074] Step S70: If the second distance and the second angle meet the preset single wearer condition, it is determined that the wearers of the first earphone and the second earphone are the same person, and the first earphone and the second earphone are controlled to switch from the monaural mode to the binaural mode.

[0075] The single wearer condition is used to determine whether the two wireless headphones are worn by the same wearer. The setting method of the single wearer condition can refer to the setting method of the multiple wearer condition mentioned above, and will not be repeated here.

[0076] In one possible implementation, the single-wearer condition can be that all second distances detected over a sustained period are less than or equal to a first preset threshold, and all second angles are outside a preset threshold range. When the preset single-wearer condition is met, the two earphones are deemed to be worn by the same wearer, and the first and second earphones are controlled to switch from monaural mode to binaural mode.

[0077] In this embodiment, after determining that the first earphone and the second earphone are both in monaural mode and are being worn, the second distance and the second angle between the two earphones are detected. When the second distance and the second angle meet the preset single-wearer condition, it is determined that the two earphones are worn by the same person, and the two earphones are controlled to switch from monaural mode to binaural mode. This ensures that after the wearer stops sharing the earphones, the earphones can quickly switch from monaural mode to binaural mode, further improving the efficiency of the earphones in performing mode switching.

[0078] Furthermore, based on the first, second, and third embodiments above, a fourth embodiment of the dynamic mode switching method of the present invention is proposed. In this embodiment, before step S10 above, the following steps may be further included:

[0079] Step S80, obtaining the earphone wearing status detected by the wearing detection module in the first earphone;

[0080] The wearing detection module can be used to detect whether the headset is being worn. In one embodiment, the wearing sensor may include a ranging sensor, which may include one or more of an ultrasonic ranging sensor, a laser ranging sensor, an infrared ranging sensor, and a 24GHz radar ranging sensor. When the user wears the headset, the headset uses the wearing detection module to determine the multiple distances detected. When the maximum value of the distances is less than a preset threshold, the headset is determined to be worn. The preset threshold can be set as needed and is not limited in this embodiment.

[0081] Step S90: If the wearing status of the first earphone is worn, the first earphone obtains the wearing status of the second earphone;

[0082] In one feasible implementation, when the first headset is detected as being worn, the first headset may poll the second headset at a certain interval to obtain the wearing status of the second headset. This interval may vary depending on system differences, user habits, etc., and is not limited in this embodiment.

[0083] Step A10: If the wearing status of the second earphone is worn, it is determined that the wearing status of the first earphone and the second earphone are both worn.

[0084] Furthermore, in a feasible implementation manner, step S80 includes:

[0085] Step S801: Obtain a third distance between the first headset and the nearest obstacle detected by the wearing detection module;

[0086] In a feasible embodiment, the wearing detection module has a pair of infrared signal transmitters and receivers. The transmitter transmits an infrared signal of a specific frequency, and the receiver receives the infrared signal of the specific frequency. When the infrared signal hits an obstacle, it will be reflected back along the transmission path. After receiving the obstacle, the receiver calculates the distance based on the time difference between signal reception and transmission.

[0087] When the first earphone is worn, the nearest obstacle to the earphone is the user's ear canal. By comparing the third distance between the earphone and the nearest obstacle and the second preset threshold, a preliminary judgment can be made on the wearing status of the first earphone. The second preset threshold can be set to different values ​​according to factors such as the shape of the user's ear canal and the shape of the earphone, and this embodiment does not impose any restrictions on this.

[0088] Step S802: If the third distance is greater than a second preset threshold, determining that the wearing state of the first headset is not worn;

[0089] It should be noted that, when the user places the first headset on a desk or in a drawer, the third distance may be greater than the second preset threshold. In this case, it can be determined that the wearing state of the headset is not worn.

[0090] Step S803: if the third distance is less than or equal to the second preset threshold, obtaining the motion data collected by the wearing detection module;

[0091] When the user places the first earphone in a pocket or holds it in his hand, and the end of the earphone where the wearing sensor is installed is close to an obstacle, it is possible that the above-mentioned third distance is less than or equal to the second preset threshold. Therefore, in order to accurately determine the wearing condition of the earphone, further analysis is needed in combination with the motion data collected by the wearing sensor.

[0092] In a feasible implementation manner, the motion data collected by the wearable sensor includes acceleration data on its three measurement axes.

[0093] Step S804: When the motion data meets the preset human motion state data standard, determining that the wearing state of the earphone is worn;

[0094] In one feasible embodiment, the preset human motion state data standard can be the acceleration or acceleration change trend of the human head when performing various daily activities. The specific value can be obtained through experiments and is not limited in this embodiment. In the process of determining the wearing state of the earphones, the collected motion data is continuously compared with the acceleration or acceleration change trend in the human motion state data standard. When the motion data meets the human motion state standard data, for example, if the head acceleration in the human motion state standard data is 5m / s2 to 10m / s2 and the acceleration in the motion data is 7m / s2, then the motion data can be considered to meet the preset human motion state data standard, and the wearing state of the earphones is determined to be worn.

[0095] In this embodiment, the distance data of the wearing detection module in the first earphone is first analyzed to preliminarily determine the wearing status of the first earphone. If necessary, the motion status of the first earphone is analyzed in combination with the acceleration data of the wearing detection module to accurately determine the wearing status of the first earphone. Then, the first earphone obtains the wearing status of the second earphone in the same manner, thereby avoiding the situation where the dynamic mode switching is mistakenly activated when the first earphone and the second earphone are not worn by the user or are only stored, thereby improving the accuracy of the earphone in executing the dynamic mode switching method and reducing the power consumption of the earphone in executing the mode switching.

[0096] In addition, an embodiment of the present invention further provides a dynamic mode switching device, which is applied to a headphone device and includes:

[0097] a detection module 10, configured to detect a first distance and a first angle between the first earphone and the second earphone when the first earphone and the second earphone are in binaural mode and both are in the worn state, wherein the first angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0098] The control module 20 is configured to determine that the wearers of the first earphone and the second earphone are not the same person if the first distance and the first angle meet a preset multi-wearer condition, and control the first earphone and the second earphone to switch from binaural mode to monaural mode.

[0099] Furthermore, the control module 20 is further configured to:

[0100] If each of the first distances detected within the first preset time period is greater than the first preset threshold, and each of the first angles detected within the first preset time period is within the preset threshold range, it is determined that the wearers of the first earphone and the second earphone are not the same person.

[0101] Furthermore, the dynamic mode switching device further includes:

[0102] Playing module, used to play the preset prompt tone;

[0103] The control module 20 is further configured to maintain the first earphone and the second earphone in the binaural mode if a cancel switching operation signal is detected within a second preset time period after the prompt tone is played;

[0104] If no cancel switching operation signal is detected within the second preset time period after playing the prompt tone, the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode.

[0105] Furthermore, the control module 20 is further configured to:

[0106] Control the first headset and the second headset to delete the pairing information between each other and enter an automatic pairing mode with the terminal device.

[0107] Furthermore, the detection module 10 is further configured to:

[0108] When the first earphone and the second earphone are in the monaural mode and both are in the worn state, detecting a second distance and a second angle between the first earphone and the second earphone, wherein the second angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference;

[0109] The control module 20 is further configured to:

[0110] If the second distance and the second angle meet the preset single wearer condition, it is determined that the wearers of the first earphone and the second earphone are the same person, and the first earphone and the second earphone are controlled to switch from the monaural mode to the binaural mode.

[0111] Furthermore, the dynamic mode switching device further includes:

[0112] an acquisition module, configured to acquire a wearing status of the earphone detected by a wearing detection module in the first earphone;

[0113] If the wearing status of the first earphone is worn, obtaining the wearing status of the second earphone;

[0114] The determination module is configured to determine that the wearing states of the first earphone and the second earphone are both worn if the wearing state of the second earphone is worn.

[0115] Furthermore, the acquisition module is further configured to:

[0116] Obtaining a third distance between the first headset and the nearest obstacle detected by the wearing detection module;

[0117] If the third distance is greater than a second preset threshold, determining that the wearing state of the first earphone is not worn;

[0118] If the third distance is less than or equal to the second preset threshold, acquiring the motion data collected by the wearing detection module;

[0119] When the motion data meets a preset human action state data standard, it is determined that the wearing state of the earphone is worn.

[0120] The expanded content of the specific implementation of the dynamic mode switching device of the present invention is basically the same as the embodiments of the above-mentioned dynamic mode switching method, and will not be repeated here.

[0121] The headphone device of the present invention comprises a structural housing, a communication module, a main control module (e.g., a microcontroller unit (MCU)), a speaker, a microphone, and a memory. The main control module may include a microprocessor, an audio decoding unit, a power supply and power management unit, sensors required by the system, and other active or passive components (which may be replaced, deleted, or added based on actual functionality) to implement wireless audio reception and playback. The headphone memory may store a dynamic mode switching program, and the microprocessor may be used to call the dynamic mode switching program stored in the memory and execute the dynamic mode switching method described in the above embodiments.

[0122] The various embodiments of the headphone device and the computer-readable storage medium of the present invention may refer to the various embodiments of the dynamic mode switching method of the present invention, and will not be described in detail here.

[0123] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0124] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of various embodiments of the present invention.

[0126] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A dynamic mode switching method, characterized in that: The dynamic mode switching method is applied to a first headset, and the dynamic mode switching method includes: When the first earphone and the second earphone are in binaural mode and both are in the worn state, detecting a first distance and a first angle between the first earphone and the second earphone, wherein the first angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference; If the first distance and the first angle meet a preset multi-wearer condition, it is determined that the wearers of the first earphone and the second earphone are not the same person, and the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode, wherein the binaural mode refers to an operating mode in which a pair of wireless earphones are connected to the same terminal device when working, and the monaural mode refers to an operating mode in which a pair of wireless earphones are connected to different terminal devices when working; The step of controlling the first earphone and the second earphone to switch from binaural mode to monaural mode includes: Control the first headset and the second headset to delete the pairing information between each other and enter an automatic pairing mode with the terminal device.

2. The dynamic mode switching method according to claim 1, wherein: If the first distance and the first angle meet a preset multi-wearer condition, the step of determining that the wearers of the first earphone and the second earphone are not the same person includes: If each of the first distances detected within the first preset time period is greater than the first preset threshold, and each of the first angles detected within the first preset time period is within the preset threshold range, it is determined that the wearers of the first earphone and the second earphone are not the same person.

3. The dynamic mode switching method according to claim 1, wherein: Before the step of controlling the first earphone and the second earphone to switch from binaural mode to monaural mode, the method further includes: Play the preset prompt tone; If a signal for canceling the switching operation is detected within a second preset time period after the prompt tone is played, maintaining the first earphone and the second earphone in the binaural mode; The step of controlling the first earphone and the second earphone to switch from binaural mode to monaural mode includes: If no cancel switching operation signal is detected within the second preset time period after playing the prompt tone, the first earphone and the second earphone are controlled to switch from binaural mode to monaural mode.

4. The dynamic mode switching method according to any one of claims 1 to 3, wherein: The dynamic mode switching method further includes: When the first earphone and the second earphone are in the monaural mode and both are in the worn state, detecting a second distance and a second angle between the first earphone and the second earphone, wherein the second angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference; If the second distance and the second angle meet the preset single wearer condition, it is determined that the wearers of the first earphone and the second earphone are the same person, and the first earphone and the second earphone are controlled to switch from the monaural mode to the binaural mode.

5. The dynamic mode switching method according to any one of claims 1 to 3, characterized in that: Before the step of detecting the first distance and the first angle between the first earphone and the second earphone when the first earphone and the second earphone are in binaural mode and both are in the worn state, the method further includes: Obtaining a wearing status of an earphone detected by a wearing detection module in the first earphone; If the wearing status of the first earphone is worn, obtaining the wearing status of the second earphone; If the wearing status of the second earphone is worn, it is determined that the wearing status of the first earphone and the second earphone are both worn.

6. The dynamic mode switching method according to claim 5, wherein: The step of obtaining the earphone wearing status detected by the wearing detection module in the first earphone includes: Obtaining a third distance between the first headset and the nearest obstacle detected by the wearing detection module; If the third distance is greater than a second preset threshold, determining that the wearing state of the first earphone is not worn; If the third distance is less than or equal to the second preset threshold, acquiring the motion data collected by the wearing detection module; When the motion data meets a preset human action state data standard, it is determined that the wearing state of the earphone is worn.

7. A dynamic mode switching device, characterized in that: The dynamic mode switching device is disposed on the first earphone, and the dynamic mode switching device: a detection module, configured to detect a first distance and a first angle between the first earphone and the second earphone when the first earphone and the second earphone are in binaural mode and both are in the worn state, wherein the first angle is an angle formed between a line connecting the first earphone and the second earphone and a preset reference line or reference plane in a preset spatial coordinate system, where the preset spatial coordinate system is established with the first earphone or the second earphone as a reference; a control module, configured to, if the first distance and the first angle meet a preset multi-wearer condition, determine that the wearers of the first earphone and the second earphone are not the same person, and control the first earphone and the second earphone to switch from binaural mode to monaural mode, wherein binaural mode refers to an operating mode in which a pair of wireless earphones are connected to the same terminal device during operation, and monaural mode refers to an operating mode in which a pair of wireless earphones are connected to different terminal devices during operation; The control module is further configured to control the first headset and the second headset to delete pairing information between each other and enter an automatic pairing mode with a terminal device.

8. A headphone device, characterized in that: The headphone device includes: a memory, a processor, and a dynamic mode switching program stored in the memory and executable on the processor. When the dynamic mode switching program is executed by the processor, the steps of the dynamic mode switching method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a dynamic mode switching program, which, when executed by a processor, implements the steps of the dynamic mode switching method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wireless earphone control method, wireless earphone and control system thereof

    CN111770412A

  • Working state adjusting method and device

    CN113115179A