Method for detecting wearing position of earphone, earphone and electronic equipment
By detecting the wearer's kinematic parameters and updating the headphone's wearing position indication based on the movement status, the problem of inconsistent headphone wearing position indication is solved, improving the accuracy of the wearing position indication and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN SHOKZ CO LTD
- Filing Date
- 2024-08-27
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technology, the wearing position indication stored in the headphones cannot be updated when the wearing method is incorrect, resulting in a decline in user experience.
The wearer's kinematic parameters are obtained through the detection module. An update strategy is determined based on the movement status. The wearing position indication is updated using the kinematic parameters, including not updating or reducing the update confidence during strenuous exercise, and making accurate updates during non-strenuous exercise.
The accuracy of the headphone wearing position indicator has been improved, reducing the possibility of discrepancies between the indicated wearing position and the actual wearing position, thus enhancing the user experience.
Smart Images

Figure CN121970370A_ABST
Abstract
Description
Methods for detecting the wearing position of headphones, headphones, and electronic devices [Technical Field]
[0001] This application relates to the technical field of consumer electronics, specifically to a method for detecting the wearing position of headphones, a pair of headphones, and an electronic device. [Background Art]
[0002] Headphones typically store a wearing position indicator to show whether the headphones are worn in the left or right ear. The headphones can then adapt the audio signal to the corresponding channel or configure their button functions based on this stored information. Therefore, improving the accuracy of the stored wearing position indicator has become a pressing technical challenge.
[0003] [Summary of the Invention]
[0004] This application provides a method for detecting the wearing position of an earphone. The earphone is equipped with a detection module and stores a wearing position indicator, which indicates whether the earphone is worn in the left or right ear. The detection method includes: acquiring the kinematic parameters of the earphone wearer using the detection module; determining the wearer's motion state based on the kinematic parameters; determining a corresponding update strategy based on the motion state; and updating the wearing position indicator using the kinematic parameters based on the corresponding update strategy. The update strategy is different for different motion states.
[0005] In some embodiments, the greater the intensity of the wearer's movement as represented by the motion state, the lower the update confidence of the kinematic parameters for the wearing position indication is set in the corresponding update strategy.
[0006] In some embodiments, the motion state includes a first motion state and a second motion state, wherein the intensity of motion represented by the first motion state is greater than the intensity of motion represented by the second motion state; determining a corresponding update strategy based on the motion state, and updating the wearing position indication using kinematic parameters based on the corresponding update strategy, including: in the first motion state, not updating the wearing position indication using kinematic parameters; and in the second motion state, updating the wearing position indication using kinematic parameters.
[0007] In some embodiments, the first motion state corresponds to the wearer's running and jumping state, and the second motion state corresponds to the wearer's walking or stationary state.
[0008] In some embodiments, a corresponding update strategy is determined based on the motion state, and the wearing position indication is updated using kinematic parameters based on the corresponding update strategy, including: periodically obtaining a pre-judgment result representing the wearing position of the earphone using kinematic parameters at a predetermined detection cycle, wherein the pre-judgment result is used to represent whether the earphone is worn in the left or right ear; determining a count value of the pre-judgment result that is in a valid state and is different from the wearing position indication in a continuously set predetermined number of detection cycles, wherein when the pre-judgment result is in a valid state, it indicates that the earphone is worn in either the left or right ear; and updating the wearing position indication to the pre-judgment result in response to the count value being greater than or equal to a preset number threshold, wherein the greater the intensity of the motion represented by the motion state, the greater the preset number threshold.
[0009] In some embodiments, the motion state includes a first motion state and a second motion state, wherein the intensity of motion represented by the first motion state is greater than the intensity of motion represented by the second motion state, wherein a preset quantity threshold in the first motion state is greater than a predetermined quantity, and a preset quantity threshold in the second motion state is less than or equal to a predetermined quantity.
[0010] In some embodiments, the motion state further includes a third motion state, wherein the intensity of motion represented by the third motion state is less than the intensity of motion represented by the second motion state, and wherein a preset quantity threshold in the third motion state is less than a preset quantity threshold in the second motion state.
[0011] In some embodiments, the first motion state corresponds to the wearer's running and jumping state, the second motion state corresponds to the wearer's walking state, and the third motion state corresponds to the wearer's stationary state.
[0012] In some embodiments, the kinematic parameters include acceleration values, and the determination of the motion state and the updating of the wearing position indication are both based on the acceleration values; or the kinematic parameters include acceleration values and angular velocity values, and the determination of the motion state is based on at least one of the angular velocity values and acceleration values, and the updating of the wearing position indication is based on the acceleration values and angular velocity values.
[0013] In some embodiments, the detection method further includes selectively enabling or disabling the touch functionality of the headphones in response to motion states.
[0014] In some embodiments, the touch function of the headphones is enabled in response to the motion state corresponding to the wearer's stationary state or walking state; the touch function of the headphones is disabled in response to the motion state corresponding to the wearer's running and jumping state.
[0015] In another aspect, this application provides an earphone, which includes a processor and a memory. The memory stores a computer program, and the processor executes the computer program to implement any of the detection methods described above.
[0016] In another aspect, this application provides an electronic device for communicating with headphones, and includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement any of the detection methods described above.
[0017] In related technologies, the earphone case typically only sets the wearing position indication stored within the earphones. When the earphones are removed from the case, this indication remains unchanged. If the wearer does not wear the earphones according to the preset method, the indicated wearing position will not match the actual wearing position, affecting the user experience. In this application's solution, the kinematic parameters detected by the detection module reflect the earphone's wearing position. After the earphones are removed from the case, the kinematic parameters are used to update the wearing position indication, reducing the possibility of discrepancies between the indicated and actual wearing position and thus improving the accuracy of the wearing position indication.
[0018] On the other hand, the degree of fluctuation in kinematic parameters varies under different motion states. When the headphones are being worn, the more intense the wearer's motion, the greater the fluctuation in kinematic parameters, and the lower the accuracy of the wearing position reflected by the kinematic parameters. Therefore, by setting different update strategies corresponding to different motion states, determining the wearer's motion state based on kinematic parameters, and selecting the corresponding update strategy based on the motion state, it is beneficial to improve the accuracy of wearing position indication. [Attached Figure Description]
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:
[0020] Figure 1 shows an embodiment of the earphones worn on the wearer's ear.
[0021] Figure 2 is a flowchart illustrating an embodiment of the detection method provided in this application;
[0022] Figure 3 is a flowchart illustrating an embodiment of the detection method provided in this application;
[0023] Figure 4 is a flowchart of an embodiment of S300;
[0024] Figure 5 is a flowchart illustrating an embodiment of the detection method provided in this application;
[0025] Figure 6 is a schematic diagram of a module of an embodiment of the earphone of this application;
[0026] Figure 7 is a schematic diagram of a module of an embodiment of the electronic device of this application. [Detailed Description]
[0027] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the application. Similarly, the following embodiments are only some, not all, embodiments of the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0028] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0029] The terms "first," "second," and "third" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. The terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus.
[0030] This application provides a method for detecting the wearing position of an earphone. This method can be performed by the earphone itself or by an electronic device communicating with the earphone. Specifically, the electronic device can be a mobile phone, tablet, or computer; this application does not limit this, and those skilled in the art can choose according to actual needs.
[0031] Figure 1 shows an embodiment of the earphone worn on the wearer's ear. The earphone can be a clip-on earphone 1. As shown in Figure 1, the earphone 1 includes a sound-emitting part 100 for insertion into the concha E12 of the wearer (user), an abutment part 300 for abutting against the back of the wearer's ear, and an ear hook 200 connecting the sound-emitting part 100 and the abutment part 300. In the wearing state, the ear hook 200 can bypass the wearer's auricle E17, the sound-emitting part 100 and the abutment part 300 form a clamping state on both sides of the user's auricle E17, and the sound-emitting part 100 is located within the concha E12.
[0032] The sound-emitting part 100 is a sound playback device used to convert electrical signals into sound signals and play them to the wearer. The abutment part 300 forms a clamping state with the sound-emitting part 100 to clamp the entire earphone 1 onto the user's ear. A detection module and a storage module may be provided within the abutment part 300. The detection module is used to acquire the kinematic parameters of the earphone wearer. The storage module is used to store wearing position indications, wherein the wearing position indications indicate whether the earphone is worn in the left or right ear.
[0033] In some embodiments, the detection module and the storage module may be disposed within the sound-emitting part 100, or one of the detection module and the storage module may be disposed within the sound-emitting part 100 and the other within the abutting part 300. This application does not impose any limitations on this, and those skilled in the art can choose according to actual needs. In some embodiments, the abutting part 300 may contain devices such as a battery or a circuit board. Of course, the abutting part 300 may also not contain a battery, but the battery may be installed in the sound-emitting part 100. This is within the scope easily understood by those skilled in the art and will not be elaborated upon here.
[0034] As shown in Figure 1, the ear hook 200 has a symmetrical surface A1 arranged along its length. Specifically, the difference between the ear hook 200 portions on both sides of the symmetrical surface A1 is minimal or identical. That is, if the ear hook 200 is regularly symmetrical, then the portions on both sides of the symmetrical surface A1 are identical; if the ear hook 200 is not strictly symmetrical, then the difference between the ear hook 200 portions on both sides of the symmetrical surface A1 should be minimal among various division methods. For example, the magnitude of the difference can be distinguished by observing the projection of the ear hook 200 on a plane perpendicular to the symmetrical surface A1. When the headphones are in a relatively ideal wearing state, the symmetrical surface A1 can be substantially parallel to the horizontal plane. It should be noted that the "substantially parallel" described in this application allows for an error range of ±15°. It is easy to understand that during use by the wearer, the headphones may slide under their own gravity, causing the symmetrical surface A1 to deviate from the horizontal plane.
[0035] As shown in Figure 2, which is a flowchart of an embodiment of the detection method provided in this application, the detection method may specifically include the following steps.
[0036] S100: Uses a detection module to obtain the kinematic parameters of the headphone wearer.
[0037] In some embodiments, the detection module includes an accelerometer. Correspondingly, the kinematic parameters include the acceleration values detected by the accelerometer.
[0038] For example, the accelerometer has a built-in spatial coordinate system, including the X-axis, Y-axis, and Z-axis. The X-axis and Y-axis can both be substantially parallel to the plane of symmetry A1, and the Z-axis can be substantially perpendicular to the plane of symmetry A1. It should be noted that the terms "substantially parallel" and "substantially perpendicular" described in this application allow for an error range of ±15°. The accelerometer can detect the acceleration values of the headphones in the X-axis, Y-axis, and Z-axis directions. Correspondingly, kinematic parameters can include acceleration values in the X-axis, Y-axis, and Z-axis directions.
[0039] In some embodiments, the detection module includes an accelerometer and a gyroscope. Correspondingly, the kinematic parameters include the acceleration value detected by the accelerometer and the angular velocity value detected by the gyroscope.
[0040] For example, a gyroscope can share the same spatial coordinate system as an accelerometer to detect the angular velocity values of the headphones rotating around the X-axis, Y-axis, and Z-axis. Correspondingly, kinematic parameters can include acceleration values in the X, Y, and Z axis directions and angular velocity values around the X, Y, and Z axes.
[0041] S200: Determines the wearer's movement status based on kinematic parameters.
[0042] In some embodiments, the motion state includes a first motion state and a second motion state. The intensity of motion represented by the first motion state is greater than that represented by the second motion state. The first motion state corresponds to the wearer's running and jumping state, and the second motion state corresponds to the wearer's walking state or stationary state.
[0043] In some embodiments, the motion state includes a first motion state, a second motion state, and a third motion state. The intensity of motion represented by the first motion state is greater than that represented by the second motion state, and the intensity of motion represented by the second motion state is greater than that represented by the third motion state. The first motion state corresponds to the wearer's running and jumping state, the second motion state corresponds to the wearer's walking state, and the third motion state corresponds to the wearer's stationary state.
[0044] In some embodiments, the detection module includes an accelerometer. Correspondingly, the kinematic parameters include the acceleration values detected by the accelerometer. In this case, S200 may include: inputting the acceleration values in the X-axis, Y-axis, and Z-axis directions into a first motion state determination algorithm, and the motion state algorithm outputting the motion state of the earphone wearer based on each acceleration value, such as running and jumping, walking, or stationary.
[0045] In some embodiments, the basic principle of the first motion state judgment algorithm may be: to judge the motion state based on at least one of the following: the magnitude of the change in the overall parameters, the rate of change of the overall parameters, and the degree of fluctuation of the overall parameters, based on the acceleration values in the X-axis, Y-axis, and Z-axis directions.
[0046] In some embodiments, the motion state can be determined based on the magnitude of changes in the overall parameters. For example, the difference between the maximum and minimum amplitudes of the overall parameters can be used to characterize the magnitude of the changes in the overall parameters. When the difference between the maximum and minimum amplitudes is greater than or equal to a first threshold, the wearer is determined to be in a running or jumping state; when the difference between the maximum and minimum amplitudes is greater than or equal to a second threshold and less than the first threshold, the wearer is determined to be in a walking state; when the difference between the maximum and minimum amplitudes is less than the second threshold, the wearer is determined to be in a stationary state, wherein the first threshold is greater than the second threshold.
[0047] In some embodiments, the motion state can be determined based on the degree of fluctuation of the overall parameters. For example, the degree of fluctuation of the overall parameters can be characterized by the standard deviation of several overall parameters within a preset time period. When the standard deviation is greater than or equal to a third threshold, it is determined that the wearer is in a running or jumping state; when the standard deviation is greater than or equal to a fourth threshold and less than the third threshold, it is determined that the wearer is in a walking state; when the standard deviation is less than the fourth threshold, it is determined that the wearer is in a stationary state, wherein the third threshold is greater than the fourth threshold.
[0048] In some embodiments, the motion state can be determined based on the rate of change of the overall parameters. For example, the rate of change of the overall parameters can be characterized by the number of jumps within a preset time period. When the overall parameters decrease from the maximum amplitude to the minimum amplitude and then increase from the minimum amplitude to the maximum amplitude, it can be considered that the overall parameters have undergone a jump. When the number of jumps within the preset time period is greater than or equal to a fifth threshold, it is determined that the wearer is in a running or jumping state; when the number of jumps is greater than or equal to a sixth threshold but less than the fifth threshold, it is determined that the wearer is in a walking state; when the number of jumps is less than the sixth threshold, it is determined that the wearer is in a stationary state, where the fifth threshold is greater than the sixth threshold.
[0049] In some embodiments, other analysis algorithms can also be used to perform statistical calculations on the overall parameters and to determine the motion state. This is within the scope of what those skilled in the art can easily understand and will not be elaborated here.
[0050] In some embodiments, the detection module includes an accelerometer and a gyroscope. Correspondingly, the kinematic parameters include the acceleration values detected by the accelerometer and the angular velocity values detected by the gyroscope. In this case, S200 may include: inputting the acceleration values in the X, Y, and Z axis directions into a first motion state determination algorithm, the first motion state algorithm outputting the wearer's motion state based on each acceleration value, such as running / jumping, walking, or stationary.
[0051] Alternatively, S200 may include: inputting the angular velocity values of rotation around the X-axis, Y-axis, and Z-axis into a second motion state determination algorithm; the second motion state determination algorithm outputs the wearer's motion state based on each angular velocity value, such as running / jumping, walking, or stationary. The basic principle of the second motion state determination algorithm can be: analyzing at least one of the following factors to determine the motion state: the magnitude of the change in overall parameters, the rate of change of overall parameters, and the degree of fluctuation of overall parameters, based on the angular velocity values of rotation around the X-axis, Y-axis, and Z-axis. The basic principle of the second motion state determination algorithm can be similar to that of the first motion state determination algorithm described above, and is readily understood by those skilled in the art; therefore, it will not be elaborated further here.
[0052] Alternatively, S200 may include: inputting the acceleration values in the X, Y, and Z axis directions, and the angular velocity values of rotation around the X, Y, and Z axes into a third motion state determination algorithm. The third motion state determination algorithm outputs the motion state of the headphone wearer based on each acceleration value and each angular velocity value, such as running and jumping, walking, or stationary state, which is within the scope easily understood by those skilled in the art and will not be elaborated here.
[0053] As analyzed above, the magnitude of the change in overall parameters can be used to reflect the wearer's "intensity of exercise," the rate of change in overall parameters can also be used to reflect the wearer's "intensity of exercise," and the degree of fluctuation in overall parameters can also be used to reflect the wearer's "intensity of exercise." From a macroscopic perspective, "intensity of exercise" may be affected by at least one of the following factors: the magnitude of the change in the amplitude of movement, the rate of change in the amplitude of movement, and the degree of fluctuation in the movement.
[0054] S300: Determine the corresponding update strategy based on the motion state, and update the wearing position indication using kinematic parameters based on the corresponding update strategy. Different motion states correspond to different update strategies.
[0055] Specifically, kinematic parameters can be used to obtain a pre-judgment result representing the wearing position of the headphones, and then the wearing position indication can be updated using the pre-judgment result, whereby the pre-judgment result is used to represent whether the headphones are worn in the left or right ear.
[0056] In some embodiments, the detection module includes an accelerometer. Correspondingly, the kinematic parameters include the acceleration values detected by the accelerometer. In this case, the acceleration values in the X, Y, and Z axes detected by the accelerometer can be used to obtain the pre-judgment result. For example, the acceleration values in the X, Y, and Z axes can be input into a trained neural network model, and the neural network model can generate the pre-judgment result after performing operations such as convolution and pooling.
[0057] When the acceleration values along the X, Y, and Z axes determine that the earphone is worn in the left ear, the pre-judgment result can be set to indicate the left ear. When the acceleration values along the X, Y, and Z axes determine that the earphone is worn in the right ear, the pre-judgment result can be set to indicate the right ear. When the acceleration values along the X, Y, and Z axes cannot determine the earphone's position, the pre-judgment result can be set to indicate an unknown state. When the pre-judgment result is set to indicate either the left or right ear, it is considered valid, i.e., in an effective state. When the pre-judgment result is set to indicate an unknown state, it is considered invalid, i.e., in an invalid state.
[0058] In some embodiments, the detection module includes an accelerometer and a gyroscope. Correspondingly, the kinematic parameters include the acceleration value detected by the accelerometer and the angular velocity value detected by the gyroscope. In this case, the acceleration values in the X, Y, and Z axes detected by the accelerometer can be used to obtain a preliminary judgment result, and when the preliminary judgment result is invalid, the gyroscope is used to assist in determining the wearing position of the headphones.
[0059] For example, when the pre-judgment result is invalid, the angular velocity value detected by the gyroscope when the wearer performs a preset head movement can be used to determine whether the earphone is worn in the left or right ear, and the pre-judgment result can be reset to an valid state. This helps to improve the validity of the pre-judgment result, and thus helps to improve the accuracy of the wearing position indication.
[0060] The preset head movements can include tilting the head to the left shoulder, tilting the head to the right shoulder, turning the head to the left, turning the head to the right, raising the head upward, or lowering the head downward. This application does not limit this, and those skilled in the art can choose according to actual needs. When the pre-judgment result is invalid, a voice reminder can be sent to the wearer to remind them to perform the preset head movement. Of course, other forms of reminders can also be sent to the wearer to prompt them to perform the preset head movement. This application does not limit this, and those skilled in the art can choose according to actual needs.
[0061] In related technologies, the earphone case typically only sets the wearing position indication stored within the earphones. When the earphones are removed from the case, this indication remains unchanged. If the wearer does not wear the earphones according to the preset method, the indicated wearing position will not match the actual wearing position, affecting the user experience. In this application's solution, the kinematic parameters detected by the detection module reflect the earphone's wearing position. After the earphones are removed from the case, the kinematic parameters are used to update the wearing position indication, reducing the possibility of discrepancies between the indicated and actual wearing position and thus improving the accuracy of the wearing position indication.
[0062] On the other hand, the degree of fluctuation in kinematic parameters varies under different motion states. When the headphones are being worn, the more intense the wearer's motion, the greater the fluctuation in kinematic parameters, and the lower the accuracy of the wearing position reflected by the kinematic parameters. Therefore, by setting different update strategies corresponding to different motion states, determining the wearer's motion state based on kinematic parameters, and selecting the corresponding update strategy based on the motion state, it is beneficial to improve the accuracy of wearing position indication.
[0063] Specifically, the degree of fluctuation in kinematic parameters varies under different motion states. The greater the fluctuation in kinematic parameters, the less accurate the pre-judgment results obtained based on them. Therefore, when the headphones are being worn, the more intense the wearer's motion, the higher the possibility that the pre-judgment results will not match the actual wearing position. By setting different update strategies for different motion states, it is beneficial to improve the accuracy of wearing position indication, reduce the back-and-forth switching of headphones when the reliability of the pre-judgment results is low, and improve the user experience.
[0064] In some embodiments, the greater the intensity of the wearer's movement as represented by the motion state, the lower the update confidence of the kinematic parameters for the wearing position indication is set in the corresponding update strategy.
[0065] The update confidence level of kinematic parameters in indicating the wearing position refers to the reliability of the wearing position reflected by the kinematic parameters, that is, the reliability of the pre-judgment result. The more intense the wearer's movement, the greater the fluctuation of the kinematic parameters, and the lower the reliability of the pre-judgment result.
[0066] For example, the motion state can include a first motion state and a second motion state. The intensity of motion represented by the first motion state can be greater than that represented by the second motion state. In this case, the reliability of the prediction result under the first motion state is lower than that under the second motion state.
[0067] For example, the motion state can include a first motion state, a second motion state, and a third motion state. The intensity of motion represented by the first motion state is greater than that represented by the second motion state, and the intensity of motion represented by the second motion state is greater than that represented by the third motion state. In this case, the reliability of the prediction result increases sequentially from the first motion state to the second motion state and the third motion state.
[0068] In some embodiments, S300 can be implemented through the following steps: periodically acquiring pre-judgment results using kinematic parameters; determining the count value of pre-judgment results that are in a valid state and different from the wearing position indication in 10 consecutive detection cycles; and updating the wearing position indication to the pre-judgment result when the count value is greater than or equal to a preset quantity threshold. In this case, the reliability of the pre-judgment result can be directly reflected in the size of the preset quantity threshold; the greater the intensity of the movement represented by the motion state, the lower the reliability of the pre-judgment result, and the larger the preset quantity threshold.
[0069] In some embodiments, S300 can be implemented through the following steps: In the running and jumping state, the confidence level of the pre-judgment result is set to 0, that is, the wearing position indication is not updated using the pre-judgment result. In the walking or stationary state, the confidence level of the pre-judgment result is set to 1, and after the detection module obtains the pre-judgment result, the wearing position indication is directly updated using the pre-judgment result.
[0070] As shown in Figure 3, Figure 3 is a flowchart illustrating an embodiment of the detection method provided in this application. In some embodiments, the first motion state corresponds to the wearer's running and jumping state, and the second motion state corresponds to the wearer's walking or stationary state. S300 may include:
[0071] S301a: In the first motion state, the wearing position indication is not updated using kinematic parameters.
[0072] When the wearer is in a state of vigorous activity, such as running or jumping, the kinematic parameters detected by the detection module cannot accurately reflect the wearing position of the headphones. In other words, the accuracy of the pre-judgment results obtained using kinematic parameters is low. Therefore, when it is determined that the wearer is in the first state of activity, not updating the wearing position indication using kinematic parameters is beneficial to improving the accuracy of the wearing position indication and reducing the power consumption of the device itself.
[0073] In some embodiments, when it is determined that the wearer is in a first motion state, the pre-judgment result representing the wearing position of the headphones may no longer be obtained using kinematic parameters, and thus the wearing position indication may no longer be updated. In some embodiments, when it is determined that the wearer is in a first motion state, the pre-judgment result representing the wearing position of the headphones may continue to be obtained using kinematic parameters, but the wearing position indication may no longer be updated using the pre-judgment result. This application does not impose any restrictions on this, and those skilled in the art can choose according to actual needs.
[0074] S301b: In the second motion state, the wearing position indication is updated using kinematic parameters.
[0075] When the wearer is in a non-strenuous state, such as walking or standing still, the kinematic parameters detected by the detection module can relatively accurately reflect the wearing position of the headphones. In other words, the pre-judgment results obtained using kinematic parameters are highly accurate. Therefore, updating the wearing position indication using kinematic parameters when it is determined that the wearer is in a second state of motion helps to improve the accuracy of the wearing position indication.
[0076] As shown in Figure 4, which is a flowchart of one embodiment of S300, in some embodiments, S300 may include:
[0077] S302a: Periodically obtain pre-judgment results using kinematic parameters at a predetermined detection cycle, wherein the pre-judgment results are used to characterize whether the earphone is worn in the left or right ear.
[0078] Each detection cycle corresponds to a pre-judgment result. The detection cycle can be between 50ms and 10s. For example, the detection cycle can be 50ms, 100ms, 300ms, 500ms, 1s, 3s, 5s, or 10s.
[0079] S302b: In a predetermined number of consecutive detection cycles, determine a count value of a pre-judgment result that is in an effective state and is different from the wearing position indication, wherein when the pre-judgment result is in an effective state, it indicates that the earphone is worn in one of the left and right ears.
[0080] S302c: In response to a count value greater than or equal to a preset quantity threshold, the wearing position indication is updated to the pre-judgment result, wherein the greater the intensity of the movement represented by the movement state, the greater the preset quantity threshold.
[0081] For example, the predetermined quantity can be 10. That is to say, "the predetermined number of consecutive testing cycles" can refer to 10 consecutive testing cycles. Of course, this application does not limit this, and those skilled in the art can choose according to actual needs.
[0082] As mentioned above, the motion state may include a first motion state and a second motion state. The intensity of motion represented by the first motion state may be greater than the intensity of motion represented by the second motion state. The preset quantity threshold in the first motion state is greater than the preset quantity threshold in the second motion state.
[0083] In some embodiments, the preset quantity threshold in the first motion state and the preset quantity threshold in the second motion state are both less than or equal to the aforementioned predetermined quantity.
[0084] For example, the preset quantity threshold for the first movement state can be equal to 10. Assuming the current wearing position indicator represents the wearing position as the left ear, if the pre-judgment result is right ear for all 10 consecutive detection cycles, then the wearing position indicator will be updated from left ear to right ear. If the pre-judgment result is left ear for at least one of the 10 consecutive detection cycles, then the wearing position indicator will not be updated.
[0085] Accordingly, the preset quantity threshold in the update strategy corresponding to the second motion state can be less than 10, for example, it can be 6. For instance, assuming the current wearing position indicator represents the wearing position as the left ear, if the number of cycles with a predicted result of right ear in 10 consecutive detection cycles is greater than or equal to 6, then the wearing position indicator will be updated from left ear to right ear. If the number of cycles with a predicted result of right ear in 10 consecutive detection cycles is less than 6, then the wearing position indicator will not be updated.
[0086] In some embodiments, the preset quantity threshold in the first motion state is greater than the aforementioned predetermined quantity, and the preset quantity threshold in the second motion state is less than or equal to the aforementioned predetermined quantity.
[0087] For example, the preset quantity threshold for the first movement state can be 11. The preset quantity threshold of 11 for the first movement state is greater than the predetermined quantity of 10. That is to say, when it is determined that the wearer is in the first movement state, the wearing position indication will not be updated, which helps to improve the accuracy of the wearing position indication.
[0088] Accordingly, the preset quantity threshold in the update strategy corresponding to the second motion state can be less than or equal to 10, for example, it can be 9. For instance, assuming the current wearing position indicator represents the wearing position as the left ear, if the number of cycles with a predicted result of right ear in 10 consecutive detection cycles is greater than or equal to 9, then the wearing position indicator will be updated from left ear to right ear. If the number of cycles with a predicted result of right ear in 10 consecutive detection cycles is less than 9, then the wearing position indicator will not be updated.
[0089] As mentioned above, in some embodiments, the motion state includes a first motion state, a second motion state, and a third motion state. The intensity of motion represented by the first motion state, the second motion state, and the third motion state decreases sequentially. The first motion state corresponds to the wearer's running and jumping state, the second motion state corresponds to the wearer's walking state, and the third motion state corresponds to the wearer's stationary state. At this time, the preset quantity thresholds in the first motion state, the second motion state, and the third motion state decrease sequentially.
[0090] For example, the predetermined quantity can be 10, the preset quantity threshold in the first motion state can be 11, the preset quantity threshold in the second motion state can be 9, and the preset quantity threshold in the third motion state can be 6. Or, for another example, the predetermined quantity can be 10, the preset quantity threshold in the first motion state can be 10, the preset quantity threshold in the second motion state can be 9, and the preset quantity threshold in the third motion state can be 6. These are all within the scope easily understood by those skilled in the art and will not be elaborated further here.
[0091] In some embodiments, the step of updating the wearing position indication using the kinematic parameters based on the corresponding update strategy in S300 is performed in real time within a preset time period. For example, in response to the headphones being worn, a timer is started, and within the preset time period (for example, the duration of the preset time period can be between 20s and 60s, such as 20s, 30s, 40s, 50s, or 60s), the wearing position indication is updated in real time using the kinematic parameters based on the corresponding update strategy.
[0092] Due to variations in earphone wearing position, wearer posture, or other factors, the detection module may initially misidentify the left or right ear. For example, in a semi-reclined position, the accuracy of the pre-judgment will be relatively low, leading to a discrepancy between the wearing position indication and the actual earphone wearing position. If the wearer adjusts their posture or the earphone wearing position is adjusted, the detection module can obtain a correct pre-judgment during subsequent detection. Updating the wearing position indication corrects the previous error, improving its accuracy and enhancing the user experience.
[0093] As shown in Figure 5, Figure 5 is a flowchart illustrating an embodiment of the detection method provided in this application. In some embodiments, the detection method further includes:
[0094] S400: Touch controls for headphones that selectively enable or disable in response to motion.
[0095] Specifically, the headphones can have physical or virtual buttons for touch input by the wearer. When the wearer is engaged in vigorous activity, such as running or jumping, the likelihood of touch input on the physical or virtual buttons is low, and accidental touches are more likely; for example, the wearer's hair might accidentally press the buttons. When the wearer is not engaged in vigorous activity, such as walking or remaining stationary, touch input on the physical or virtual buttons is possible, and the likelihood of accidental touches is relatively low.
[0096] S400 can be implemented through the following steps:
[0097] S401: Enables the headphone's touch control function in response to the wearer's motion state, corresponding to whether the wearer is stationary or walking.
[0098] As analyzed earlier, when the wearer is walking or stationary, they may touch the physical or virtual buttons on the headphones, and the possibility of accidental touch is relatively small. In this case, the touch function of the headphones can be enabled, making it easier for the wearer to control the headphones according to their actual needs.
[0099] S402: In response to the wearer's running and jumping state, disable the touch function of the headphones.
[0100] As analyzed earlier, when the wearer is running or jumping, the likelihood of touching the physical or virtual buttons on the headphones is low, and accidental touches are more likely. Therefore, when it is determined that the wearer is running or jumping, the touch function of the headphones can be disabled to avoid accidental touches and improve the user experience.
[0101] It should be noted that in some embodiments, S300 and S400 can be executed simultaneously. In some embodiments, S300 can also be executed after S400. This application does not limit this, and those skilled in the art can choose according to actual needs.
[0102] This application also provides an earphone 600. Please refer to FIG6, which is a schematic diagram of a module of an embodiment of the earphone of this application. The earphone 600 includes a memory 610, a processor 620, and a computer program stored in the memory 610 and executable on the processor 620. When the processor 620 executes the computer program, it implements any of the detection methods described above.
[0103] The processor 620 can also be referred to as a CPU (Central Processing Unit). The processor 620 may be an integrated circuit chip with signal processing capabilities. The processor 620 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or the processor 620 can be any conventional processor.
[0104] The memory 610 may include random access memory (RAM), read-only memory (ROM), flash memory, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disk, removable disk, CD-ROM, etc. The memory 610 may store program data, which may include, for example, a single instruction or many instructions, and may be distributed across several different code segments, distributed among different programs, and distributed across multiple memories. The memory 610 may be coupled to the processor 620 so that the processor 620 can read and write information to / from the memory 610. Of course, the memory 610 may be integrated into the processor 620; this application does not limit this, and those skilled in the art can choose according to actual needs.
[0105] Another aspect of this application also provides an electronic device 700. Please refer to FIG7, which is a block diagram of an embodiment of the electronic device of this application. The electronic device 700 includes a memory 710, a processor 720, and a computer program stored in the memory 710 and executable on the processor 720. When the processor 720 executes the computer program, it implements any of the detection methods described above.
[0106] The electronic device 700 may specifically be a mobile phone, tablet or computer that communicates with the headset 800. This application does not limit this, and those skilled in the art can choose according to actual needs.
[0107] The processor 720 can also be referred to as a CPU (Central Processing Unit). The processor 720 may be an integrated circuit chip with signal processing capabilities. The processor 720 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor, or the processor 720 can be any conventional processor.
[0108] The memory 710 may include random access memory (RAM), read-only memory (ROM), flash memory, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disk, removable disk, CD-ROM, etc. The memory 710 may store program data, which may include, for example, a single instruction or many instructions, and may be distributed across several different code segments, distributed among different programs, and distributed across multiple memories. The memory 710 may be coupled to the processor 720 so that the processor 720 can read and write information to / from the memory 710. Of course, the memory 710 may be integrated into the processor 720; this application does not limit this, and those skilled in the art can choose according to actual needs.
[0109] In the several embodiments provided in this application, it should be understood that the disclosed detection method can be implemented in other ways. For example, the headphone / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0110] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0111] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0112] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. Any equivalent device or equivalent process transformation made based on the content of this application specification and drawings, or direct or indirect application in other related technical fields, are similarly included in the patent protection scope of this application.
Claims
A method for detecting the wearing position of headphones, characterized in that, The earphone is equipped with a detection module and stores a wearing position indication, which indicates whether the earphone is worn in the left or right ear. The detection method includes: using the detection module to obtain the kinematic parameters of the earphone wearer; determining the wearer's motion state based on the kinematic parameters; determining a corresponding update strategy based on the motion state; and updating the wearing position indication using the kinematic parameters based on the corresponding update strategy, wherein different motion states correspond to different update strategies. The detection method according to claim 1 is characterized in that, The greater the intensity of the wearer's movement as represented by the motion state, the lower the update confidence of the kinematic parameters for the wearing position indication is set in the corresponding update strategy. The detection method according to claim 2 is characterized in that, The motion state includes a first motion state and a second motion state, wherein the intensity of motion represented by the first motion state is greater than that represented by the second motion state; the step of determining a corresponding update strategy based on the motion state and updating the wearing position indication using the kinematic parameters based on the corresponding update strategy includes: in the first motion state, not updating the wearing position indication using the kinematic parameters; and in the second motion state, updating the wearing position indication using the kinematic parameters. The detection method according to claim 3 is characterized in that, The first motion state corresponds to the wearer's running and jumping state, and the second motion state corresponds to the wearer's walking or stationary state. The detection method according to claim 2 or 3 is characterized in that, The step of determining a corresponding update strategy based on the motion state and updating the wearing position indication using the kinematic parameters based on the corresponding update strategy includes: periodically obtaining a pre-judgment result representing the wearing position of the earphone using the kinematic parameters at a predetermined detection cycle, wherein the pre-judgment result is used to represent whether the earphone is worn in the left or right ear; determining a count value of the pre-judgment result that is in a valid state and is different from the wearing position indication in a continuously set predetermined number of detection cycles, wherein when the pre-judgment result is in a valid state, it indicates that the earphone is worn in either the left or right ear; and updating the wearing position indication to the pre-judgment result in response to the count value being greater than or equal to a preset number threshold, wherein the greater the intensity of the motion represented by the motion state, the greater the preset number threshold. The detection method according to claim 5 is characterized in that, The motion state includes a first motion state and a second motion state. The intensity of motion represented by the first motion state is greater than that represented by the second motion state. In the first motion state, the preset quantity threshold is greater than the predetermined quantity, and in the second motion state, the preset quantity threshold is less than or equal to the predetermined quantity. The detection method according to claim 5 is characterized in that, The motion state also includes a third motion state, wherein the intensity of motion represented by the third motion state is less than that represented by the second motion state, and wherein the preset quantity threshold in the third motion state is less than the preset quantity threshold in the second motion state. The detection method according to claim 7 is characterized in that, The first motion state corresponds to the wearer's running and jumping state, the second motion state corresponds to the wearer's walking state, and the third motion state corresponds to the wearer's stationary state. The detection method according to claim 1 is characterized in that, The kinematic parameters include acceleration values, and the determination of the motion state and the update of the wearing position indication are both based on the acceleration values; or the kinematic parameters include acceleration values and angular velocity values, and the determination of the motion state is based on at least one of the angular velocity values and the acceleration values, and the update of the wearing position indication is based on the acceleration values and the angular velocity values. The detection method according to claim 1 is characterized in that, The detection method further includes selectively enabling or disabling the touch function of the headphones in response to the motion state. The detection method according to claim 10 is characterized in that, In response to the motion state corresponding to the wearer's stationary or walking state, the touch function of the headphones is enabled; in response to the motion state corresponding to the wearer's running or jumping state, the touch function of the headphones is disabled. An earphone, characterized in that, The earphone includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the detection method as described in any one of claims 1 to 11. An electronic device, characterized in that, The electronic device is used to communicate with headphones and includes a processor and a memory, the memory storing a computer program, the processor being used to execute the computer program to implement the detection method as described in any one of claims 1 to 11.