CN112533126A - Earphone wearing state detection method, earphone and computer readable storage medium - Google Patents
Earphone wearing state detection method, earphone and computer readable storage medium Download PDFInfo
- Publication number
- CN112533126A CN112533126A CN202011499995.2A CN202011499995A CN112533126A CN 112533126 A CN112533126 A CN 112533126A CN 202011499995 A CN202011499995 A CN 202011499995A CN 112533126 A CN112533126 A CN 112533126A
- Authority
- CN
- China
- Prior art keywords
- earphone
- state
- time
- wearing
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Quality & Reliability (AREA)
- Electromagnetism (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a method for detecting the wearing state of an earphone. The earphone wearing state detection method comprises the following steps: acquiring a real-time Bluetooth received signal strength RSSI value; and determining the state of the earphone according to the real-time Bluetooth RSSI value. The invention also discloses an earphone and a computer readable storage medium. The invention can solve the problem that the BOM cost is increased by the existing earphone wearing state detection method.
Description
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a method for detecting wearing state of an earphone, the earphone and a computer readable storage medium.
Background
Earphones are widely used by people as indispensable equipment for various intelligent electronic equipment to transmit audio signals. Under the trend of miniaturization and portability, various wireless earphones and sports earphones are more favored by people. Currently, such earphones are usually recognized by light sensation or distance Sensor whether the earphone is close to or far away from the ear, so as to confirm whether the earphone is worn. This identification scheme of wearing state needs to add light sensation or distance Sensor on the earphone additionally, which increases the cost of BOM (Bill of Material).
Disclosure of Invention
The invention mainly aims to provide an earphone wearing state detection method, an earphone and a computer readable storage medium, and aims to solve the problem that the existing earphone wearing state detection method increases BOM cost.
In order to achieve the above object, the present invention provides a method for detecting a wearing state of an earphone, including:
acquiring a real-time Bluetooth received signal strength RSSI value;
and determining the state of the earphone according to the real-time Bluetooth RSSI value.
Optionally, the step of determining the state of the headset according to the real-time bluetooth RSSI value includes:
judging whether the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period accords with a preset removal starting condition/wearing starting condition;
if so, taking the later time point of the two time points as a starting point to continuously acquire the real-time Bluetooth RSSI value;
and when the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point correspondingly accords with a preset removal end condition/wearing end condition, determining that the state of the earphone is correspondingly a removal state/wearing state.
Optionally, the preset ablation initiation condition includes: the difference between the real-time Bluetooth RSSI values corresponding to two time points in a preset time period belongs to a first preset range;
the preset removing end condition comprises the following steps: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a second preset range.
Optionally, before the step of determining that the state of the earphone corresponds to the removed state, the method further includes:
acquiring a headset state detection result corresponding to a preset acceleration sensor;
when the earphone state detection result is a removal action, executing the following steps: and determining that the state of the earphone corresponds to a removal state.
Optionally, the preset wearing start condition includes: the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period belongs to a third preset range;
the preset wearing end condition includes: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a fourth preset range.
Optionally, before the step of determining that the state of the headset corresponds to the wearing state, the method further includes:
acquiring a headset state detection result corresponding to a preset acceleration sensor;
when the earphone state detection result is a wearing action, executing the following steps: and determining that the state of the earphone corresponds to a wearing state.
Optionally, before the step of obtaining the real-time bluetooth RSSI value, the method further includes:
controlling the earphone to enter a configuration state, and sending action prompt information to a user so as to acquire a first Bluetooth RSSI test value, a second Bluetooth RSSI test value and a third Bluetooth RSSI test value which correspond to the actions of the user for carrying out and wearing the hand-held earphone according to the action prompt information, and the actions of the user for carrying out and wearing the hand-held earphone;
and setting the first preset range, the second preset range, the third preset range and the fourth preset range according to the first Bluetooth RSSI test value, the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and controlling the earphone to exit the configuration state.
Optionally, the step of setting the first preset range, the second preset range, the third preset range and the fourth preset range according to the first bluetooth RSSI test value, the second bluetooth RSSI test value and the third bluetooth RSSI test value includes:
performing difference operation on the first Bluetooth RSSI test value and the second Bluetooth RSSI test value, and setting the second preset range and the third preset range according to a corresponding first difference operation result;
and performing difference operation on the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and setting the first preset range and the fourth preset range according to a corresponding second difference operation result.
In addition, to achieve the above object, the present invention also provides a headset including: a memory, a processor and a headset wearing state detection program stored on the memory and executable on the processor, the headset wearing state detection program when executed by the processor implementing the steps of the headset wearing state detection method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having a headset wearing state detection program stored thereon, the headset wearing state detection program, when executed by a processor, implementing the steps of the headset wearing state detection method as described above.
The invention provides a method for detecting the wearing state of an earphone, the earphone and a computer readable storage medium, wherein the RSSI value of the real-time Bluetooth received signal strength is obtained; and determining the state of the earphone according to the real-time Bluetooth RSSI value. Namely, the state of the earphone is determined by taking the real-time Bluetooth RSSI value as a detection reference signal through an indispensable Bluetooth as a hardware detection module of the wearing state of the earphone in the audio transmission process of the earphone, and the light sensation or the distance Sensor does not need to be additionally added on the earphone, so that the problem that the BOM cost is increased by the existing earphone wearing state detection method is solved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a method for detecting wearing states of earphones according to the present invention;
fig. 3 is a detailed flowchart of step S20 in the second embodiment of the method for detecting wearing status of earphones according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be an earphone which is a Bluetooth earphone. Of course, the terminal in the embodiment of the present invention may also be a control chip of the earphone, and is used to implement detection of the wearing state of the earphone.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, a network interface 1003, and a memory 1004. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface (e.g., USB interface, Type-C interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and headset wearing state detection.
In the terminal shown in fig. 1, the network interface 1003 is mainly used for connecting to a backend server and performing data communication with the backend server; and the processor 1001 may be configured to call the headset wearing state detection program stored in the memory 1004 and perform the following operations:
acquiring a real-time Bluetooth received signal strength RSSI value;
and determining the state of the earphone according to the real-time Bluetooth RSSI value.
Further, the processor 1001 may call the headset wearing state detection program stored in the memory 1004, and also perform the following operations:
judging whether the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period accords with a preset removal starting condition/wearing starting condition;
if so, taking the later time point of the two time points as a starting point to continuously acquire the real-time Bluetooth RSSI value;
and when the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point correspondingly accords with a preset removal end condition/wearing end condition, determining that the state of the earphone is correspondingly a removal state/wearing state.
Further, the preset removal starting condition in the earphone wearing state detection program stored in the memory 1004 includes: the difference between the real-time Bluetooth RSSI values corresponding to two time points in a preset time period belongs to a first preset range;
the preset removing end condition comprises the following steps: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a second preset range.
Further, the processor 1001 may call the headset wearing state detection program stored in the memory 1004, and also perform the following operations:
acquiring a headset state detection result corresponding to a preset acceleration sensor;
when the earphone state detection result is a removal action, executing the following steps: and determining that the state of the earphone corresponds to a removal state.
Further, the preset wearing start condition in the earphone wearing state detection program stored in the memory 1004 includes: the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period belongs to a third preset range;
the preset wearing end condition includes: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a fourth preset range.
Further, the processor 1001 may call the headset wearing state detection program stored in the memory 1004, and also perform the following operations:
acquiring a headset state detection result corresponding to a preset acceleration sensor;
when the earphone state detection result is a wearing action, executing the following steps: and determining that the state of the earphone corresponds to a wearing state.
Further, the processor 1001 may call the headset wearing state detection program stored in the memory 1004, and also perform the following operations:
controlling the earphone to enter a configuration state, and sending action prompt information to a user so as to acquire a first Bluetooth RSSI test value, a second Bluetooth RSSI test value and a third Bluetooth RSSI test value which correspond to the actions of the user for carrying out and wearing the hand-held earphone according to the action prompt information, and the actions of the user for carrying out and wearing the hand-held earphone;
and setting the first preset range, the second preset range, the third preset range and the fourth preset range according to the first Bluetooth RSSI test value, the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and controlling the earphone to exit the configuration state.
Further, the processor 1001 may call the headset wearing state detection program stored in the memory 1004, and also perform the following operations:
performing difference operation on the first Bluetooth RSSI test value and the second Bluetooth RSSI test value, and setting the second preset range and the third preset range according to a corresponding first difference operation result;
and performing difference operation on the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and setting the first preset range and the fourth preset range according to a corresponding second difference operation result.
Based on the hardware structure, the invention provides various embodiments of the earphone wearing state detection method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for detecting a wearing state of an earphone according to a first embodiment of the present invention.
In this embodiment, the method for detecting the wearing state of the headset includes:
step S10, obtaining a real-time Bluetooth received signal strength RSSI value;
the terminal of the embodiment of the invention can be an earphone or a control chip in the earphone, and is used for detecting the wearing state of the earphone.
In this embodiment, the bluetooth chip in the earphone and the rf antenna carried by the bluetooth chip may receive the bluetooth Signal Strength, the Received bluetooth Signal Strength may be from other connected or unconnected terminal devices, and after receiving the bluetooth Signal Strength, the bluetooth chip and the rf antenna may send a real-time bluetooth RSSI (Received Signal Strength Indication) value to the control chip of the earphone, so that the control chip obtains the real-time bluetooth RSSI value.
And step S20, determining the state of the earphone according to the real-time Bluetooth RSSI value.
It should be noted that the performance of the rf antenna is not the same when the headset is worn or held in hand, because the efficiency of the rf antenna is affected by the surrounding space conditions, for example, the antenna efficiency of the headset in the free space condition is higher than that in the hand-held condition. When the earphone is worn or held by hand, the dielectric constant of the earphone shell is changed due to the action state of holding or wearing, the dielectric constant is increased, the stronger the constraint on the field is, the resonance of the radio frequency antenna can be shifted to low-frequency, and the bandwidth is narrowed, so that the strength values of the received real-time Bluetooth signals under different conditions are also different under the influence of the low-frequency. The state of the Bluetooth headset can be detected and identified by identifying the change of the Bluetooth signal intensity.
In the method for detecting the wearing state of the earphone, the RSSI value of the real-time bluetooth received signal strength is obtained; and determining the state of the earphone according to the real-time Bluetooth RSSI value. The earphone wearing state is determined by taking the real-time Bluetooth RSSI value as a detection reference signal through an indispensable Bluetooth as a hardware detection module of the earphone wearing state in the earphone audio transmission process, and the problem that the BOM cost is increased by the existing earphone wearing state detection method is solved without additionally adding light sensation or distance Sensor on the earphone.
Further, a second embodiment of the headphone wearing state detection method of the present invention is proposed based on the above-described embodiments. Referring to fig. 3, in the present embodiment, step S20 includes:
step S21, judging whether the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period accords with a preset removal starting condition/wearing starting condition; if yes, go to step S22;
step S22, taking the later time point of the two time points as a starting point to continuously acquire the real-time Bluetooth RSSI value;
step S23, when the difference between the real-time bluetooth RSSI value corresponding to any time point existing after the start point and the real-time bluetooth RSSI value of the start point corresponds to a preset removal end condition/wearing end condition, determining that the state of the headset corresponds to a removal state/wearing state.
In this embodiment, matching conditions may be set in advance for the removal state and the wearing state of the headphone. The matching conditions of the removal state comprise removal starting conditions and removal ending conditions, and the matching conditions of the wearing state comprise wearing starting conditions and wearing ending conditions.
Specifically, the removal state and the wearing state are decomposed, wherein the removal state includes the headset wearing state → the headset holding and wearing state → the headset holding state, and the wearing state includes the headset holding state → the headset holding and wearing state → the headset wearing state. When the earphone is removed, the original earphone is in a wearing state, the user touches the earphone with the hand (the earphone still keeps the wearing state at the moment), and then takes down the earphone, and the earphone is in a handheld state at the moment, so that the earphone is removed. On the contrary, when the earphone was in handheld state originally, if the user wanted to wear the earphone, can wear the earphone on the ear with the hand (user's hand did not break away from the earphone at this moment), for example when the user used earplug formula earphone, fill in the earplug in the ear, hug closely in the external auditory canal, at the in-process of user's adjustment earplug, the earphone belongs to handheld and wearing state, wears the back when the earphone, and the finger breaks away from the earphone, and the action is worn to this earphone completion.
The earphone can be tested according to different models and structures of the earphone before the earphone leaves a factory to obtain test data, and the test data is used for presetting wearing starting conditions and finishing conditions for the earphone and removing the starting conditions and the finishing conditions. The preset wearing starting condition is decomposed according to the action and is used for identifying the state from the handheld state of the earphone → the handheld and wearing state of the earphone, and the wearing finishing condition is used for identifying the handheld and wearing state of the earphone → the wearing state of the earphone. Similarly, the removal starting condition is used for identifying the wearing state → the holding and wearing state of the earphone, and the removal action ending condition is used for identifying the holding and wearing state → the holding state of the earphone. When the change of the Bluetooth real-time received signal strength simultaneously accords with the preset removal starting condition and the preset removal ending condition, or simultaneously accords with the preset wearing starting condition and the preset wearing ending condition, the wearing state of the earphone can be correspondingly confirmed to be the removal state/the wearing state.
The preset removing starting condition can be that the difference between the real-time Bluetooth RSSI values corresponding to two time points exists in a preset time period and belongs to a first preset range, and the preset removing ending condition can be that any time point exists behind the starting point and corresponds to the real-time Bluetooth RSSI values and the difference between the real-time Bluetooth RSSI values of the starting point and belongs to a second preset range. Namely, the difference between the real-time bluetooth RSSI values corresponding to two time points is in a first preset range in a preset time period, and the difference between the real-time bluetooth RSSI values at a later time point and a later time point is in a second preset range, at this time, the earphone can be considered to be in the removal state.
The preset wearing starting condition is that the difference between the real-time Bluetooth RSSI values corresponding to two time points in a preset time period belongs to a third preset range; the preset wearing end condition includes: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a fourth preset range. Namely, the difference between the real-time bluetooth values corresponding to the two time points is within a third preset range in the preset time period, and the difference between the real-time bluetooth RSSI value of the later time point and the real-time bluetooth RSSI value of the later time point is within a fourth preset range, so that the earphone can be considered to be in a wearing state.
The sizes of the first preset range, the second preset range, the third preset range and the fourth preset range are stored in a memory of the earphone, the control chip/processor of the earphone is used for calling, and the end point values of the intervals can be obtained by carrying out different samples and a plurality of behavior tests according to the difference of models and earphone structures before the earphone device leaves a factory, or obtained by user-defined learning when a user uses the earphone device, and only the identification function of the earphone device is limited.
It should be noted that, because the antenna of the earphone is disposed outside, the quality of the external environment affects the bluetooth received signal strength, and for the earphone, the handheld earphone performs the wearing action, that is, the bluetooth received signal strength when the earphone is in the handheld and wearing state is the worst among the three continuous actions, the real-time bluetooth received signal strength when the user wears the earphone is the best, and the real-time bluetooth received signal strength when the user holds the earphone is the middle, therefore, in the actual use process of the earphone, the user action can be confirmed by reading the difference between the real-time bluetooth RSSI values in the preset time period, and then the wearing state of the earphone is identified. The preset time period may be a range interval, for example, less than one minute, or may be a numerical value, for example, 10 seconds.
During testing, the action of a user can be identified by calculating the difference value of the real-time Bluetooth RSSI values generated in the similar time and matching the difference value with the preset starting condition and the preset ending condition, and the wearing state of the earphone is detected when two continuously identified action changes conform to the process of removing the action/wearing the action. It should be further noted that, if any starting or ending condition is not met, the method continues to return to the acquisition of the bluetooth real-time received signal strength. The scheme provides a state identification scheme of the earphone by presetting the removal starting condition, the wearing starting condition, the removal ending condition and the wearing ending condition and combining the change of the intensity of the real-time Bluetooth receiving signal in the preset time period, so that the material cost is saved, and if the earphone wearing state detection scheme is embedded into the earphone, the state detection service can be continuously provided after the photoelectric/distance sensor is damaged.
Optionally, in other embodiments, when the headset determines that the change of the real-time bluetooth RSSI value corresponds to the wearing state or the removal state, a detection result of the preset acceleration sensor on the wearing state of the headset may be obtained, and when the detection result of the acceleration sensor is consistent with the headset state measured through the change of the bluetooth signal strength, it is determined that there is no misrecognition. Specifically, when the earphone is recognized to have the removal action through the change of the real-time Bluetooth signal intensity and the detection result of the preset acceleration sensor is also the removal action, the state of the earphone is determined to be the removal state; when the earphone is identified to have wearing action through the change of the real-time Bluetooth signal strength and the detection result of the preset acceleration sensor is also the wearing action, the state of the earphone is determined to be the wearing state. This scheme detects the judgement jointly through acceleration sensor combination real-time bluetooth received signal intensity value, prevents that single real-time bluetooth received signal intensity value recognition mechanism from having the condition of misidentification because of the influence of exterior space environment, has improved the accuracy that the state detected.
Further, based on the second embodiment, a third embodiment of the method for detecting a wearing state of a headphone according to the present invention is provided, where in this embodiment, before step S10, the method further includes:
step S30, controlling the earphone to enter a configuration state, and sending action prompt information to a user to obtain a first Bluetooth RSSI test value, a second Bluetooth RSSI test value and a third Bluetooth RSSI test value corresponding to the user executing the action and wearing of the hand-held earphone according to the action prompt information;
and step S40, setting the first preset range, the second preset range, the third preset range and the fourth preset range according to the first Bluetooth RSSI test value, the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and controlling the earphone to exit the configuration state.
The configuration state may be a state entered after the earphone is initialized, and may be entered after the earphone leaves a factory and is first powered on, or after a user triggers a specific key, and parameters of the user when using the earphone may be set by user-definition in the configuration state. The method comprises the steps of setting a first preset range, a second preset range, a third preset range and a fourth preset range, sending action prompt information to a user through audio or a display module on an earphone, prompting the user to respectively execute actions of holding the earphone, wearing and holding the earphone and wearing the earphone, correspondingly controlling the earphone to respectively keep a wearing state, a holding and wearing state and a holding state of the earphone, and further correspondingly measuring real-time Bluetooth received signal strength values in different states, namely a first Bluetooth RSSI test value, a second Bluetooth RSSI test value and a third Bluetooth RSSI test value, and further setting the first preset range, the second preset range, the third preset range and the fourth preset range according to all measured Bluetooth RSSI test values.
Specifically, a difference operation may be performed on the first bluetooth RSSI test value and the second bluetooth RSSI test value, and a first difference operation result is correspondingly obtained, where the result may be used to set a second preset range and a third preset range. Similarly, a difference operation may be performed on the second bluetooth RSSI test value and the third bluetooth RSSI test value, and the correspondingly obtained second difference operation is used to set the first preset range and the fourth preset range. It can be understood that, based on the foregoing description, it can be found that the strength of the bluetooth received signal of the headset in different states is differentiated, the difference under different conditions is obtained for customization, and then the wearing state of the headset can be determined by comparing the difference with the actual state. The first difference operation result is a real-time signal strength difference between the earphone and the earphone in a handheld state and a wearing state, and may be defined as a starting condition reference value for wearing the earphone, and the opposite number may be defined as an ending condition reference value for removing the earphone. The second difference operation result is a real-time signal strength difference between the earphone in the hand-held state and the wearing state, and can be defined as an ending condition reference value for wearing the earphone, and the opposite number can be defined as a starting condition reference value for removing the earphone. The reference value defined above may be a preset range that is set, and may also be set with accuracy, so as to eliminate individual differences, for example, an upper error and a lower error are allowed to be 2, so that the preset range may float up and down by 2 units according to the corresponding reference value.
The scheme provides a user-defined parameter setting scheme, is favorable for self-adaptive users to use, and reduces the false recognition caused by individual differences of the users.
The present invention also provides a computer-readable storage medium having a headset wearing state detection program stored thereon, where the headset wearing state detection program, when executed by a processor, implements the steps of the headset wearing state detection method according to any one of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the method for detecting the wearing state of the earphone, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for detecting the wearing state of an earphone is characterized by comprising the following steps:
acquiring a real-time Bluetooth received signal strength RSSI value;
and determining the state of the earphone according to the real-time Bluetooth RSSI value.
2. The headset wearing state detection method of claim 1, wherein the step of determining the state of the headset from the real-time bluetooth RSSI values comprises:
judging whether the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period accords with a preset removal starting condition/wearing starting condition;
if so, taking the later time point of the two time points as a starting point to continuously acquire the real-time Bluetooth RSSI value;
and when the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point correspondingly accords with a preset removal end condition/wearing end condition, determining that the state of the earphone is correspondingly a removal state/wearing state.
3. The headphone wearing state detection method according to claim 2, wherein the preset removal start condition includes: the difference between the real-time Bluetooth RSSI values corresponding to two time points in a preset time period belongs to a first preset range;
the preset removing end condition comprises the following steps: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a second preset range.
4. The method for detecting a wearing state of an earphone according to claim 3, wherein the step of determining that the state of the earphone corresponds to a removed state further comprises, before the step of determining that the state of the earphone corresponds to a removed state:
acquiring a headset state detection result corresponding to a preset acceleration sensor;
when the earphone state detection result is a removal action, executing the following steps: and determining that the state of the earphone corresponds to a removal state.
5. The headphone wearing state detection method according to claim 3, wherein the preset wearing start condition includes: the difference between the real-time Bluetooth RSSI values corresponding to the two time points in a preset time period belongs to a third preset range;
the preset wearing end condition includes: and the difference between the real-time Bluetooth RSSI value corresponding to any time point after the starting point and the real-time Bluetooth RSSI value of the starting point is within a fourth preset range.
6. The method for detecting a wearing state of an earphone according to claim 5, wherein the step of determining that the state of the earphone corresponds to the wearing state further comprises, before the step of determining that the state of the earphone corresponds to the wearing state:
acquiring a headset state detection result corresponding to a preset acceleration sensor;
when the earphone state detection result is a wearing action, executing the following steps: and determining that the state of the earphone corresponds to a wearing state.
7. The method for detecting a wearing state of a headset according to claim 5, wherein the step of obtaining the real-time bluetooth RSSI value further comprises, before the step of obtaining the real-time bluetooth RSSI value:
controlling the earphone to enter a configuration state, and sending action prompt information to a user so as to acquire a first Bluetooth RSSI test value, a second Bluetooth RSSI test value and a third Bluetooth RSSI test value which correspond to the actions of the user for carrying out and wearing the hand-held earphone according to the action prompt information, and the actions of the user for carrying out and wearing the hand-held earphone;
and setting the first preset range, the second preset range, the third preset range and the fourth preset range according to the first Bluetooth RSSI test value, the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and controlling the earphone to exit the configuration state.
8. The headset wearing state detecting method of claim 7, wherein the step of setting the first, second, third and fourth preset ranges according to the first, second and third bluetooth RSSI test values comprises:
performing difference operation on the first Bluetooth RSSI test value and the second Bluetooth RSSI test value, and setting the second preset range and the third preset range according to a corresponding first difference operation result;
and performing difference operation on the second Bluetooth RSSI test value and the third Bluetooth RSSI test value, and setting the first preset range and the fourth preset range according to a corresponding second difference operation result.
9. An earphone, characterized in that the earphone comprises: memory, a processor and a headset wearing state detection program stored on the memory and executable on the processor, the headset wearing state detection program, when executed by the processor, implementing the steps of the headset wearing state detection method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headphone wearing state detection program that, when executed by a processor, implements the steps of the headphone wearing state detection method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011499995.2A CN112533126B (en) | 2020-12-16 | 2020-12-16 | Earphone wearing state detection method, earphone and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011499995.2A CN112533126B (en) | 2020-12-16 | 2020-12-16 | Earphone wearing state detection method, earphone and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112533126A true CN112533126A (en) | 2021-03-19 |
CN112533126B CN112533126B (en) | 2022-03-25 |
Family
ID=75001179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011499995.2A Active CN112533126B (en) | 2020-12-16 | 2020-12-16 | Earphone wearing state detection method, earphone and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112533126B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114900786A (en) * | 2022-04-15 | 2022-08-12 | 广州易而达科技股份有限公司 | Bluetooth headset connection control method and device, electronic equipment and storage medium |
CN117255283A (en) * | 2023-11-16 | 2023-12-19 | 深圳市雅乐电子有限公司 | Earphone, control method and control device thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110351646A (en) * | 2019-06-19 | 2019-10-18 | 歌尔科技有限公司 | A kind of wearing detection method and headphone for headphone |
CN110677758A (en) * | 2019-09-09 | 2020-01-10 | 广东思派康电子科技有限公司 | Head-wearing earphone |
WO2020055048A1 (en) * | 2018-09-13 | 2020-03-19 | Samsung Electronics Co., Ltd. | Method for determining earphone wearing state, method for controlling electronic apparatus, and electronic apparatus |
CN111770407A (en) * | 2020-06-30 | 2020-10-13 | 歌尔科技有限公司 | Earphone state detection method and device, earphone and readable storage medium |
CN111766548A (en) * | 2020-05-29 | 2020-10-13 | 维沃移动通信有限公司 | Information prompting method and device, electronic equipment and readable storage medium |
CN112013949A (en) * | 2020-08-06 | 2020-12-01 | 歌尔科技有限公司 | Earphone wearing state determining method and device and earphone |
-
2020
- 2020-12-16 CN CN202011499995.2A patent/CN112533126B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020055048A1 (en) * | 2018-09-13 | 2020-03-19 | Samsung Electronics Co., Ltd. | Method for determining earphone wearing state, method for controlling electronic apparatus, and electronic apparatus |
CN110351646A (en) * | 2019-06-19 | 2019-10-18 | 歌尔科技有限公司 | A kind of wearing detection method and headphone for headphone |
CN110677758A (en) * | 2019-09-09 | 2020-01-10 | 广东思派康电子科技有限公司 | Head-wearing earphone |
CN111766548A (en) * | 2020-05-29 | 2020-10-13 | 维沃移动通信有限公司 | Information prompting method and device, electronic equipment and readable storage medium |
CN111770407A (en) * | 2020-06-30 | 2020-10-13 | 歌尔科技有限公司 | Earphone state detection method and device, earphone and readable storage medium |
CN112013949A (en) * | 2020-08-06 | 2020-12-01 | 歌尔科技有限公司 | Earphone wearing state determining method and device and earphone |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114900786A (en) * | 2022-04-15 | 2022-08-12 | 广州易而达科技股份有限公司 | Bluetooth headset connection control method and device, electronic equipment and storage medium |
CN114900786B (en) * | 2022-04-15 | 2024-10-11 | 广州易而达科技股份有限公司 | Bluetooth headset connection control method and device, electronic equipment and storage medium |
CN117255283A (en) * | 2023-11-16 | 2023-12-19 | 深圳市雅乐电子有限公司 | Earphone, control method and control device thereof |
CN117255283B (en) * | 2023-11-16 | 2024-04-05 | 深圳市雅乐电子有限公司 | Earphone and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN112533126B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112533126B (en) | Earphone wearing state detection method, earphone and computer readable storage medium | |
KR101568335B1 (en) | Method and apparatus for providing bluetooth pairing in vehicle | |
CN111770407A (en) | Earphone state detection method and device, earphone and readable storage medium | |
EP1980132B1 (en) | Method and system for surveillance of a wireless connection in a hearing aid fitting system | |
US20130223653A1 (en) | Wireless Microphone System With Frequency Matching Capability, And Method For Frequency Matching In A Wireless Microphone System | |
CN104836888A (en) | Method and device for adjusting sound notification volume of mobile device, and mobile device | |
CN111698601B (en) | Bluetooth headset, and key sensitivity adjustment method, device and readable storage medium thereof | |
CN109561420B (en) | Emergency help-seeking method and related equipment | |
RU2016100440A (en) | DETERMINATION OF REMOTE DEVICES INTERACTING WITH MEDIA DEVICES | |
KR102334330B1 (en) | Wireless communication circuit for supporting antenna switching and apparatus comprising the same | |
KR102197143B1 (en) | System for command operation using speech recognition and method thereof | |
CN112291708A (en) | Data transmission method, device, equipment and computer readable storage medium | |
CN105551207A (en) | Object searching and processing method and apparatus thereof | |
KR20200072196A (en) | Electronic device audio enhancement and method thereof | |
CN109165546B (en) | Face recognition method and device | |
CN112911560A (en) | Electronic business card transmission method and device | |
KR101855326B1 (en) | Apparatus and method of preventing portable electronic device to be lost | |
CN109040457B (en) | Screen brightness adjusting method and mobile terminal | |
CN111780907A (en) | Earphone, earphone state monitoring method and device and readable storage medium | |
CN108680181B (en) | Wireless earphone, step counting method based on earphone detection and related product | |
US20200043302A1 (en) | Information Prompt Method, Electronic Device and Computer Readable Storage Medium | |
CN111090570A (en) | Method and device for measuring response time of terminal screen and terminal equipment | |
CN108123762B (en) | Transmission power testing method, device and system and electronic equipment | |
KR20210034990A (en) | Electronic device for matching antenna impedance and operating method thereof | |
CN108199788B (en) | Transmission power testing method, device and system and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221216 Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong Patentee after: GOERTEK TECHNOLOGY Co.,Ltd. Address before: 261031 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building) Patentee before: GoerTek Optical Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |