CN109413536B - Wireless earphone box-entering detection method and device and wireless earphone charging box - Google Patents

Wireless earphone box-entering detection method and device and wireless earphone charging box Download PDF

Info

Publication number
CN109413536B
CN109413536B CN201811564219.9A CN201811564219A CN109413536B CN 109413536 B CN109413536 B CN 109413536B CN 201811564219 A CN201811564219 A CN 201811564219A CN 109413536 B CN109413536 B CN 109413536B
Authority
CN
China
Prior art keywords
box
light energy
preset
distance information
energy value
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.)
Active
Application number
CN201811564219.9A
Other languages
Chinese (zh)
Other versions
CN109413536A (en
Inventor
钟其
牛芙蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201811564219.9A priority Critical patent/CN109413536B/en
Publication of CN109413536A publication Critical patent/CN109413536A/en
Application granted granted Critical
Publication of CN109413536B publication Critical patent/CN109413536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The invention discloses a wireless earphone in-box detection method, a wireless earphone in-box detection device and a wireless earphone charging box, wherein the method comprises the steps of acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle; judging whether the distance information meets a preset condition, if so, determining that the earphone is put into a box; wherein the preset condition is set according to when the charging box is empty. This application gathers the distance information of current barrier through setting up the distance sensor on the box casing lateral wall that charges to confirm whether the earphone goes into the box according to distance information and preset condition, because distance sensor can not receive the influence of external magnetic field, so this application not only can practice thrift the consumption, can also provide the degree of accuracy of testing result to a certain extent, is favorable to improving product property ability, promotes user experience.

Description

Wireless earphone box-entering detection method and device and wireless earphone charging box
Technical Field
The embodiment of the invention relates to the technical field of portable listening equipment, in particular to a wireless earphone in-box detection method and device and a wireless earphone charging box.
Background
With the development of wireless communication technology, the trend of intelligence and wireless is deeply embodied in wireless headset products such as bluetooth headset. Currently, a TWS (True Wireless Stereo) headset which is newly developed is a typical product with a good combination of intelligentization and Wireless trend in Wireless headsets, and such Wireless headset products are often required to be equipped with a charging box with a function of accommodating and charging, and the charging box has functions of charging the headset and transmitting pairing commands. The charging box needs to detect the earphone entering the box in time when the earphone enters the box, then the earphone is charged, and a series of information interaction is carried out.
In the prior art, a polling communication mode is usually adopted when the TWS headset is detected, but the power consumption of the charging box detected by adopting the polling communication mode is high, and in order to solve the problem of power consumption, a hall sensor (hall sensor) is adopted to detect the TWS headset, but the influence of a surrounding magnetic field is large in the hall sensor mode, so that the detection result is inaccurate.
In view of the above, how to provide a wireless headset in-box detection method, device and wireless headset charging box for solving the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a wireless earphone in-box detection method and device and a wireless earphone charging box, which can save power consumption in the use process, can also provide the accuracy of a detection result to a certain extent, and are beneficial to improving the product performance and improving the user experience.
In order to solve the above technical problem, an embodiment of the present invention provides a wireless headset in-box detection method, including:
acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle;
judging whether the distance information meets a preset condition, if so, determining that the earphone is put into a box; wherein the preset condition is set according to when the charging box is empty.
Optionally, before obtaining distance information corresponding to the current obstacle collected by the distance sensor arranged on the sidewall of the charging box housing, the method further includes:
and detecting whether a box cover of the charging box is opened or not, if so, executing the step of acquiring distance information which is acquired by a distance sensor arranged on the side wall of the charging box and corresponds to the current obstacle.
Optionally, the distance sensor is a light sensor;
the process of obtaining the distance information which is collected by the distance sensor arranged on the side wall of the charging box shell and corresponds to the current barrier is as follows:
acquiring a light energy value which is collected by a light sensor arranged on the side wall of a charging box shell and reflected by a current barrier;
the process of judging whether the distance information meets the preset condition is as follows:
and judging whether the light energy value is larger than the upper limit value of a preset light energy range, if so, meeting a preset condition.
Optionally, the method further includes:
and modifying the upper threshold and the lower threshold of the register corresponding to the optical sensor according to the light energy value and a preset modification rule, and clearing an interrupt flag bit in the optical sensor.
Optionally, the process of modifying the upper and lower thresholds of the register corresponding to the optical sensor according to the light energy value and the preset modification rule is as follows:
when the light energy value is within a preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of a register corresponding to the light sensor, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register;
when the light energy value is smaller than or equal to the lower limit of the preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of the register, and taking 0 as the lower threshold value of the register;
and when the light energy value is larger than or equal to the upper limit of the preset threshold range, taking the upper limit of the preset threshold range as the upper threshold value of the register, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register.
Optionally, when the distance information does not satisfy the preset condition, it is determined that the earphone is out of the box.
Optionally, the process of acquiring the distance information corresponding to the current obstacle, which is acquired by the distance sensor arranged on the side wall of the charging box casing, is as follows:
acquiring N pieces of distance information corresponding to the current obstacle, which are continuously acquired by a distance sensor arranged on the side wall of a charging box shell, wherein N is not less than 2;
the process of judging whether the distance information meets the preset condition is as follows:
and judging whether the N pieces of distance information all meet the preset condition.
Optionally, after the determining of the entrance and the exit of the earphone, the method further includes:
the control power supply is used for charging the earphone and controlling a prompting device arranged on the charging box to send out first prompting information.
The embodiment of the invention correspondingly provides a wireless earphone in-box detection device, which comprises:
the acquisition module is used for acquiring distance information which is acquired by a distance sensor arranged on the side wall of the charging box shell and corresponds to a current obstacle;
the judgment module is used for judging whether the distance information meets a preset condition or not and determining that the earphone is put into the box when the distance information meets the preset condition; wherein the preset condition is set according to when the charging box is empty.
The embodiment of the invention also provides a wireless earphone charging box, which comprises a charging box shell, a memory, a processor and a distance sensor arranged on the side wall of the charging box shell, wherein:
the memory for storing a computer program;
the processor is configured to implement the steps of the wireless headset in-box detection method when executing the computer program.
The embodiment of the invention provides a wireless earphone in-box detection method, a wireless earphone in-box detection device and a wireless earphone charging box, wherein the method comprises the following steps: acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle; judging whether the distance information meets a preset condition, if so, determining that the earphone is put into a box; wherein the preset condition is set according to when the charging box is empty.
It is thus clear that this application gathers the distance information of current barrier through setting up the distance sensor on the box casing lateral wall that charges to confirm whether the earphone goes into the box according to distance information and preset condition, because distance sensor can not receive the influence of external magnetic field, so this application not only can practice thrift the consumption, can also provide the degree of accuracy of testing result to a certain extent, is favorable to improving product property ability, promotes user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a wireless headset in-box detection method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another wireless headset in-box detection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a wireless headset in-box detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wireless headset charging box according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a wireless earphone in-box detection method and device and a wireless earphone charging box, which not only save power consumption in the use process, but also improve the accuracy of a detection result to a certain extent, and are beneficial to improving the product performance and improving the user experience.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a wireless headset in-box detection method according to an embodiment of the present invention. The method comprises the following steps:
s110: acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle;
it should be noted that, when the charging box is produced, a proximity sensor (proximity sensor) is arranged on a side wall of the charging box housing in advance, and since distance information acquired by the proximity sensor is not affected by an external magnetic field, acquired data is accurate. When detecting wireless earphone in this application and whether going into the box, gather the current barrier of the detected signal that reflection distance sensor in the box of charging and the distance information between the distance sensor through distance sensor, wherein, the current barrier in this embodiment is the earphone when the earphone goes into the box, and the current barrier is the lateral wall of the box of charging when the box of charging is empty.
S120: judging whether the distance information meets a preset condition, if so, entering S130; wherein the preset condition is set according to the condition that the charging box is empty;
s130: and determining that the earphone is placed in the box.
Specifically, in this application, when producing the box that charges, calibrate the blank box in advance, also adopt distance sensor to measure the blank box distance information of earphone when not in the box that charges in addition to confirm the preset condition of judgement earphone when in the box according to this blank box distance information, also when measured distance information satisfies this preset condition, say that the earphone goes into the box. In the user use, corresponding distance information can be gathered to the distance sensor who sets up in the box that charges, carries out the analysis to this distance information according to the preset condition that prestores, judges whether this distance information satisfies preset condition, when this distance information satisfies preset condition, determines the earphone and goes into the box to carry out operations such as charging to the earphone.
For example, when the distance sensor is an ultrasonic sensor, the distance information acquired by the ultrasonic sensor is a distance value between the ultrasonic sensor and an obstacle, and in the case of an empty box, a preset distance range (a, B) is determined through measurement, and the preset condition is that when the acquired distance value is smaller than a lower limit value of the preset distance range, it indicates that an object exists in the current box, and the earphone is determined to be in the box.
The embodiment of the invention provides a wireless earphone in-box detection method, which comprises the following steps: acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle; judging whether the distance information meets a preset condition, if so, determining that the earphone is put into a box; wherein the preset condition is set according to when the charging box is empty. It is thus clear that this application gathers the distance information of current barrier through setting up the distance sensor on the box casing lateral wall that charges to confirm whether the earphone goes into the box according to distance information and preset condition, because distance sensor can not receive the influence of external magnetic field, so this application not only can practice thrift the consumption, can also improve the degree of accuracy of testing result to a certain extent, be favorable to improving product property ability, promote user experience.
On the basis of the above embodiments, the embodiment of the present invention further provides a method for detecting the presence of a wireless headset in a box, which is specifically shown in fig. 2. The embodiment further explains and optimizes the scheme, which specifically comprises the following steps:
s200: detecting whether a box cover of the charging box is opened or not, if so, entering S210;
it should be noted that, in order to further save the power consumption, the state of the lid of the charging box can be detected in this embodiment, and since the wireless headset needs to be placed into the charging box after the lid of the charging box is opened when the wireless headset is placed into the charging box, when the lid of the charging box is opened, it indicates that the user may have a need to charge the wireless headset, and then the distance sensor inside the charging box is controlled to perform data acquisition.
S210: acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle;
specifically, the distance sensor in this embodiment may specifically be an optical sensor, and the corresponding specific process of S210 may be:
acquiring a light energy value which is collected by a light sensor arranged on the side wall of a charging box shell and reflected by a current barrier;
it can be understood that, since the data collected by the light sensor is the light energy value of the reflected light after the outgoing light returns through the obstacle, the distance between the current obstacle and the light sensor is indirectly reflected through the light energy value, and the light sensor has the advantages of high effect speed and high sensitivity, so that the detection accuracy can be further ensured. The optical sensor in the present application may specifically adopt a laser sensor or an infrared sensor, and the present application is not particularly limited. Of course, besides the optical sensor, other distance sensors, such as an ultrasonic sensor, may be used in practical applications, and the specific determination may be made according to practical needs.
S220: judging whether the distance information meets a preset condition, if so, entering S230, and if not, entering S240;
further, when the distance sensor employs an optical sensor, the process of determining whether the distance information satisfies the preset condition in S220 is as follows:
and judging whether the light energy value is larger than the upper limit value of the preset light energy range, if so, meeting the preset condition, and entering S230.
Specifically, when the charging box is produced, the light energy value of the empty box is collected by the light sensor in advance, a preset light energy range is determined according to the light energy value of the empty box, and a preset condition of the earphone in the box is determined and judged according to the preset light energy range.
For example, if the optical energy value of the empty cassette collected during calibration of the empty cassette is X, Y ═ X-20 is set as the lower limit of the preset optical energy range, Z ═ X +20 is set as the upper limit of the preset optical energy range, and the upper and lower limits of the preset optical energy range may be written into the flash memory.
In the process that a user uses the charging box, when the opening of a box cover of the charging box is detected, the optical sensor is controlled to collect data, and an optical energy value collected by the optical sensor is obtained, for example, the optical energy value is m, whether the m is larger than an upper limit value Z of a preset optical energy range is judged, when the m is larger than the Z, the returned optical energy value is larger, the earphone is put into the box, and when the optical energy value m is within the preset optical energy range, the earphone is taken out of the box.
Further, the method may further include:
and modifying the upper threshold and the lower threshold of the register corresponding to the optical sensor according to the light energy value and a preset modification rule, and clearing an interrupt flag bit in the optical sensor.
Specifically, in the process of acquiring data by the optical sensor, interruption is generated according to the upper threshold value and the lower threshold value of the register to output corresponding optical energy values, so that the upper threshold value and the lower threshold value of the register of the optical sensor can be modified according to the optical energy values output when interruption is currently generated and a preset modification rule, and meanwhile, the interruption flag bit generating the interruption is cleared, so that the optical sensor continues to acquire data.
Further, the process of modifying the upper and lower thresholds of the register corresponding to the optical sensor according to the light energy value and the preset modification rule may specifically be:
when the light energy value is within the preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of a register corresponding to the light sensor, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register;
when the light energy value is less than or equal to the lower limit of the preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of the register, and taking 0 as the lower threshold value of the register;
when the light energy value is larger than or equal to the upper limit of the preset threshold range, the upper limit of the preset threshold range is used as the upper threshold value of the register, and the difference between the light energy value and the lower limit of the preset threshold range is used as the lower threshold value of the register.
Specifically, the optical energy value of the optical sensor read when the optical sensor is interrupted is m, when the upper and lower thresholds of the register of the optical sensor are modified according to the optical energy value m, the upper and lower thresholds of the register can be modified according to a predetermined preset threshold range (e.g., (20,235)), and it can be specifically determined whether the optical energy value m at this time is within the preset threshold range, if 20< m <235, m-20 is used as the lower threshold value of the register, m +20 is used as the upper threshold value of the register, and the threshold value of the register is modified; if m is less than or equal to 20, taking 0 as the upper threshold value of the register, taking m +20 as the upper threshold value of the register, and modifying the threshold value of the register; if m is larger than or equal to 235, taking m-20 as the lower threshold value of the register, taking 235 as the upper threshold value of the register, and modifying the threshold value of the register. It should be noted that the preset threshold range is not limited to (20,235), and may be other specific ranges, which may be determined according to the actual situations of the charging box and the optical sensor, and the application is not particularly limited.
S230: determining that the earphone is placed in the box;
specifically, after it goes into the box to determine the earphone, can also control the power and charge for the earphone to control the suggestion device that sets up on the box that charges and send first prompt information, so that the suggestion user is charging for the earphone, wherein, suggestion device can be for the warning light, for example the warning light lights when charging for the earphone.
S240: and determining that the earphone is placed in the box.
Specifically, after determining that the earphone goes out of the box, the power supply can be controlled to be turned off, so that the earphone is stopped being charged, and meanwhile, the prompt device can be controlled to be turned off, for example, the prompt lamp is controlled to be turned off.
It should be further noted that, in order to further improve the detection accuracy, in the above step S210, the process of acquiring the distance information corresponding to the current obstacle, acquired by the distance sensor arranged on the side wall of the charging box housing, may specifically be further:
acquiring N pieces of distance information corresponding to the current obstacle, which are continuously acquired by a distance sensor arranged on the side wall of a charging box shell, wherein N is an integer not less than 2;
then, the corresponding process of determining whether the distance information satisfies the preset condition in S220 may specifically be:
and judging whether the N pieces of distance information all meet preset conditions.
Specifically, N distance information collected by the distance sensor can be continuously acquired, and the earphone is determined to enter the box when the N distance information meets the preset condition, so that the measurement accuracy is improved. For example, when the distance sensor is an optical sensor, the optical energy value corresponding to N continuous interruptions of the optical sensor is obtained, and when the N optical energy values are all larger than the upper limit value of the preset optical energy range, it is determined that the earphone is put into the box. N may be specifically 2, and of course, specific numerical values thereof may be determined according to actual needs, and the present application is not particularly limited.
In addition, whether the earphone is taken out of the box is judged, specifically, the earphone is determined to be taken out of the box when the distance information acquired currently is judged not to meet the preset condition and the distance information acquired last time meets the preset condition, and therefore detection accuracy is improved.
On the basis of the foregoing embodiments, the present invention provides a wireless headset entering-box detecting device, which is specifically shown in fig. 3. The device includes:
the acquisition module 31 is configured to acquire distance information corresponding to a current obstacle, which is acquired by a distance sensor arranged on a side wall of the charging box housing;
the judging module 32 is used for judging whether the distance information meets the preset condition or not, and determining that the earphone is put into the box when the distance information meets the preset condition; wherein the preset condition is set according to when the charging box is empty.
Further, the apparatus further comprises:
the detection module is used for detecting whether the box cover of the charging box is opened or not, and if yes, the acquisition module is triggered.
Further, the distance sensor is a light sensor;
then, the obtaining module 31 is specifically configured to obtain the light energy value reflected by the current obstacle, collected by the light sensor disposed on the sidewall of the charging box housing;
the determining module 32 is specifically configured to determine whether the light energy value is greater than an upper limit value of a preset light energy range, and if so, the preset condition is met.
Further, the method also comprises the following steps:
and the modification module is used for modifying the upper threshold and the lower threshold of the register corresponding to the optical sensor according to the light energy value and a preset modification rule and clearing the interrupt flag bit in the optical sensor.
Further, the modification module includes:
the first modification unit is used for taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of a register corresponding to the light sensor and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register when the light energy value is in the preset threshold range;
the second modification unit is used for taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of the register and taking 0 as the lower threshold value of the register when the light energy value is smaller than or equal to the lower limit of the preset threshold range;
and the third modification unit is used for taking the upper limit of the preset threshold range as the upper threshold value of the register and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register when the light energy value is larger than or equal to the upper limit of the preset threshold range.
It should be noted that the wireless headset in-box detection apparatus provided in this embodiment has the same beneficial effects as the wireless headset in-box detection method provided in the foregoing embodiment, and for the specific description of the wireless headset in-box detection method related in this embodiment of the present invention, please refer to the foregoing method embodiment, which is not described herein again.
Referring to fig. 4, on the basis of the above embodiment, the embodiment of the present invention further provides a wireless headset charging box, which includes a charging box housing 41, a memory 42, a processor 43, and a distance sensor 44 disposed on a sidewall of the charging box housing 41, wherein:
a memory 42 for storing a computer program;
and a processor 43 for implementing the steps of the wireless headset in-box detection method as described above when executing the computer program.
For example, the processor 43 in this embodiment is configured to obtain distance information corresponding to a current obstacle, which is acquired by a distance sensor disposed on a sidewall of the charging box housing; judging whether the distance information meets a preset condition, if so, determining that the earphone is put into a box; wherein the preset condition is set according to when the charging box is empty.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the wireless headset in-box detection method as described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It should also be noted that in this specification, terms such as "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A wireless earphone boxing detection method is characterized by comprising the following steps:
acquiring distance information which is acquired by a distance sensor arranged on the side wall of a charging box shell and corresponds to a current obstacle;
judging whether the distance information meets a preset condition, if so, determining that the earphone is put into a box; wherein the preset condition is set according to the charging box being empty; wherein:
the distance sensor is a light sensor;
the process of obtaining the distance information which is collected by the distance sensor arranged on the side wall of the charging box shell and corresponds to the current barrier is as follows:
acquiring a light energy value which is collected by a light sensor arranged on the side wall of a charging box shell and reflected by a current barrier;
the process of judging whether the distance information meets the preset condition is as follows:
judging whether the light energy value is larger than an upper limit value of a preset light energy range, if so, meeting a preset condition;
further comprising:
modifying the upper threshold and the lower threshold of a register corresponding to the optical sensor according to the light energy value and a preset modification rule, and clearing an interrupt flag bit in the optical sensor; wherein:
the process of modifying the upper threshold and the lower threshold of the register corresponding to the optical sensor according to the light energy value and a preset modification rule is as follows:
when the light energy value is within a preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of a register corresponding to the light sensor, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register;
when the light energy value is smaller than or equal to the lower limit of the preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of the register, and taking 0 as the lower threshold value of the register;
and when the light energy value is larger than or equal to the upper limit of the preset threshold range, taking the upper limit of the preset threshold range as the upper threshold value of the register, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register.
2. The method for detecting the entrance of the wireless earphone into the box according to claim 1, further comprising, before acquiring distance information corresponding to a current obstacle collected by a distance sensor provided on a sidewall of the charging box housing:
and detecting whether a box cover of the charging box is opened or not, if so, executing the step of acquiring distance information which is acquired by a distance sensor arranged on the side wall of the charging box and corresponds to the current obstacle.
3. The wireless headset in-box detection method of claim 1, further comprising:
and when the distance information does not meet the preset condition, determining that the earphone is out of the box.
4. The wireless headset in-box detection method according to any one of claims 1 to 3, wherein the process of acquiring the distance information corresponding to the current obstacle acquired by the distance sensor arranged on the sidewall of the charging box housing is as follows:
acquiring N pieces of distance information corresponding to the current obstacle, which are continuously acquired by a distance sensor arranged on the side wall of a charging box shell, wherein N is not less than 2;
the process of judging whether the distance information meets the preset condition is as follows:
and judging whether the N pieces of distance information all meet the preset condition.
5. The wireless headset in-box detection method of claim 4, further comprising, after the determining of headset in-out, the steps of:
the control power supply is used for charging the earphone and controlling a prompting device arranged on the charging box to send out first prompting information.
6. A wireless headset goes into box detection device which characterized in that includes:
the acquisition module is used for acquiring distance information which is acquired by a distance sensor arranged on the side wall of the charging box shell and corresponds to a current obstacle;
the judgment module is used for judging whether the distance information meets a preset condition or not and determining that the earphone is put into the box when the distance information meets the preset condition; wherein the preset condition is set according to the charging box being empty; wherein:
the distance sensor is a light sensor;
the process of obtaining the distance information which is collected by the distance sensor arranged on the side wall of the charging box shell and corresponds to the current barrier is as follows:
acquiring a light energy value which is collected by a light sensor arranged on the side wall of a charging box shell and reflected by a current barrier;
the process of judging whether the distance information meets the preset condition is as follows:
judging whether the light energy value is larger than an upper limit value of a preset light energy range, if so, meeting a preset condition;
further comprising:
modifying the upper threshold and the lower threshold of a register corresponding to the optical sensor according to the light energy value and a preset modification rule, and clearing an interrupt flag bit in the optical sensor; wherein:
the process of modifying the upper threshold and the lower threshold of the register corresponding to the optical sensor according to the light energy value and a preset modification rule is as follows:
when the light energy value is within a preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of a register corresponding to the light sensor, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register;
when the light energy value is smaller than or equal to the lower limit of the preset threshold range, taking the sum of the light energy value and the lower limit of the preset threshold range as the upper threshold value of the register, and taking 0 as the lower threshold value of the register;
and when the light energy value is larger than or equal to the upper limit of the preset threshold range, taking the upper limit of the preset threshold range as the upper threshold value of the register, and taking the difference between the light energy value and the lower limit of the preset threshold range as the lower threshold value of the register.
7. The utility model provides a wireless earphone charging box which characterized in that, includes charging box casing, memory, treater and sets up the distance sensor on charging box casing lateral wall, wherein:
the memory for storing a computer program;
the processor, when executing the computer program, is configured to implement the steps of the wireless headset in-box detection method according to any of claims 1 to 5.
CN201811564219.9A 2018-12-20 2018-12-20 Wireless earphone box-entering detection method and device and wireless earphone charging box Active CN109413536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811564219.9A CN109413536B (en) 2018-12-20 2018-12-20 Wireless earphone box-entering detection method and device and wireless earphone charging box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811564219.9A CN109413536B (en) 2018-12-20 2018-12-20 Wireless earphone box-entering detection method and device and wireless earphone charging box

Publications (2)

Publication Number Publication Date
CN109413536A CN109413536A (en) 2019-03-01
CN109413536B true CN109413536B (en) 2020-06-30

Family

ID=65460298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811564219.9A Active CN109413536B (en) 2018-12-20 2018-12-20 Wireless earphone box-entering detection method and device and wireless earphone charging box

Country Status (1)

Country Link
CN (1) CN109413536B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401891B (en) * 2019-07-17 2020-11-06 艾普柯微电子(上海)有限公司 Calibration method and system of distance sensor and charging box
CN110429677A (en) * 2019-07-31 2019-11-08 歌尔股份有限公司 Charging box and wireless headset charging system
CN110602581A (en) * 2019-08-27 2019-12-20 华为技术有限公司 Box-in detection method and earphone box
CN112533097B (en) * 2019-09-19 2023-06-23 Oppo广东移动通信有限公司 Earphone box detection method, earphone box and storage medium
CN110611858B (en) * 2019-09-29 2021-08-20 歌尔股份有限公司 Earphone in-out box control method, earphone box and readable storage medium
CN110650400A (en) * 2019-09-30 2020-01-03 歌尔科技有限公司 Wireless earphone and low-power-consumption method, device and system thereof
CN111314813B (en) * 2019-12-31 2022-06-21 歌尔科技有限公司 Wireless earphone, method for detecting entrance and exit of wireless earphone, and storage medium
CN111372157A (en) * 2019-12-31 2020-07-03 歌尔科技有限公司 Wireless earphone, wearing detection method thereof and storage medium
CN111277941B (en) * 2020-02-28 2021-08-31 歌尔股份有限公司 TWS earphone and out-of-box detection device, method and system thereof
CN111770407A (en) * 2020-06-30 2020-10-13 歌尔科技有限公司 Earphone state detection method and device, earphone and readable storage medium
CN114615587A (en) * 2022-03-25 2022-06-10 歌尔股份有限公司 Earphone and earphone box communication method, equipment and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102102472A (en) * 2011-02-25 2011-06-22 浙江工业大学 Magnetic attraction type public bicycle locker device
CN102645654A (en) * 2011-02-16 2012-08-22 和硕联合科技股份有限公司 Distance detecting device and method
CN202649489U (en) * 2012-07-06 2013-01-02 北京京东方光电科技有限公司 Base plate detection apparatus
CN108092356A (en) * 2017-12-19 2018-05-29 歌尔股份有限公司 Charging box, wireless device, wireless headset and charging system
CN108333149A (en) * 2018-02-08 2018-07-27 芜湖美智空调设备有限公司 Strainer mesh cleanliness detection method and strainer mesh cleanliness sensor, airhandling equipment
CN108352850A (en) * 2015-08-29 2018-07-31 布拉吉有限公司 The SMART SKIN and method of power for managing corresponding wireless headset
KR20180093500A (en) * 2017-02-13 2018-08-22 이해곤 Functionality Mobile Phone Case
CN108600539A (en) * 2018-04-23 2018-09-28 Oppo广东移动通信有限公司 Mobile terminal, method for detecting position and Related product
CN108931540A (en) * 2017-05-27 2018-12-04 富士通株式会社 Article detection apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977254A (en) * 2010-10-13 2011-02-16 惠州Tcl移动通信有限公司 Device and method for detecting flip cover or sliding cover of mobile terminal
CN104581485A (en) * 2014-12-31 2015-04-29 周祥宇 Remote sensing control earphone system and command identification and execution method thereof
US10002515B2 (en) * 2016-06-01 2018-06-19 Tile, Inc. User intervention based on tracking device location

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102645654A (en) * 2011-02-16 2012-08-22 和硕联合科技股份有限公司 Distance detecting device and method
CN102102472A (en) * 2011-02-25 2011-06-22 浙江工业大学 Magnetic attraction type public bicycle locker device
CN202649489U (en) * 2012-07-06 2013-01-02 北京京东方光电科技有限公司 Base plate detection apparatus
CN108352850A (en) * 2015-08-29 2018-07-31 布拉吉有限公司 The SMART SKIN and method of power for managing corresponding wireless headset
KR20180093500A (en) * 2017-02-13 2018-08-22 이해곤 Functionality Mobile Phone Case
CN108931540A (en) * 2017-05-27 2018-12-04 富士通株式会社 Article detection apparatus
CN108092356A (en) * 2017-12-19 2018-05-29 歌尔股份有限公司 Charging box, wireless device, wireless headset and charging system
CN108333149A (en) * 2018-02-08 2018-07-27 芜湖美智空调设备有限公司 Strainer mesh cleanliness detection method and strainer mesh cleanliness sensor, airhandling equipment
CN108600539A (en) * 2018-04-23 2018-09-28 Oppo广东移动通信有限公司 Mobile terminal, method for detecting position and Related product

Also Published As

Publication number Publication date
CN109413536A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109413536B (en) Wireless earphone box-entering detection method and device and wireless earphone charging box
EP3453794B1 (en) Foreign matter recognition method and device
JP6540792B2 (en) System, battery damage degree calculation device, battery management method, battery management program, and recording medium
CN110401891B (en) Calibration method and system of distance sensor and charging box
JP4283313B2 (en) Motion detection device and motion detection method
CN111131954A (en) Wireless earphone charging box, earphone in-out box detection method, system and storage medium
CN104832446A (en) Method and device for controlling fan
KR101952798B1 (en) Detection distance calibration method, apparatus, and device
CN111314813B (en) Wireless earphone, method for detecting entrance and exit of wireless earphone, and storage medium
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN111083271B (en) Wearing detection method, system, equipment and computer readable storage medium
US9632179B2 (en) Estimating a baseline of a proximity sensor
CN104182145A (en) Method and device for preventing faulty operation of touch screen and mobile equipment
CN106453970A (en) Voice receiving quality detection method and apparatus, and terminal device
CN110888620A (en) Head-mounted equipment, wearing detection method and device thereof, and medium
CN106131334B (en) Method and device for controlling screen state of mobile terminal
CN108759892A (en) Sensor calibrating method, electronic device and computer readable storage medium
CN111372157A (en) Wireless earphone, wearing detection method thereof and storage medium
CN104333651A (en) Control method and device of terminal device and mobile terminal
CN103837910A (en) Method for determining threshold value of proximity sensor and terminal
JP6186888B2 (en) Mobile device
CN108802835B (en) Wireless charging detection method and device, mobile terminal and wireless charging system
CN112929778B (en) Wireless earphone control method and device, electronic equipment and wireless earphone
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN113596656A (en) Earphone state detection method, device, equipment and storage medium

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