CN109413536A - A kind of wireless headset enters box detection method, device and wireless headset charging box - Google Patents

A kind of wireless headset enters box detection method, device and wireless headset charging box Download PDF

Info

Publication number
CN109413536A
CN109413536A CN201811564219.9A CN201811564219A CN109413536A CN 109413536 A CN109413536 A CN 109413536A CN 201811564219 A CN201811564219 A CN 201811564219A CN 109413536 A CN109413536 A CN 109413536A
Authority
CN
China
Prior art keywords
range
box
charging box
luminous energy
wireless headset
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
Application number
CN201811564219.9A
Other languages
Chinese (zh)
Other versions
CN109413536B (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

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 kind of wireless headsets to enter box detection method, device and wireless headset charging box, and this method includes the range information corresponding with current barrier for obtaining the range sensor acquisition being set in charging box housing sidewall;Judge whether range information meets preset condition, if so, determining that earphone enters box;Wherein, it is set when preset condition foundation charging box is sylphon.The application acquires the range information of current barrier by the range sensor being set in charging box housing sidewall, and determine whether earphone enters box according to range information and preset condition, since range sensor not will receive the influence of external magnetic field, so the application can not only save power consumption, the accuracy of testing result can also be provided to a certain extent, be conducive to enhance product performance, promote user experience.

Description

A kind of wireless headset enters box detection method, device and wireless headset charging box
Technical field
The present embodiments relate to portable listening equipment technical fields, enter box detection more particularly to a kind of wireless headset Method, apparatus and wireless headset charging box.
Background technique
With the development of wireless communication technique, intelligent and wireless penetration trend has in depth been embodied in such as bluetooth headset Equal wireless headsets products.Currently, most emerging TWS (True Wireless Stereo, true wireless stereo) earphone It is exactly a kind of more typical intelligent and wireless penetration trend good combination product, this kind of wireless headset product in wireless headset It generally requires to be equipped with a charging box with storage and charge function, which has and can charge and emit to earphone The functions such as pairing order.Charging box needs to detect the box that enters of earphone in time when earphone enters box, then charges, goes forward side by side to earphone The a series of information exchange of row.
In the prior art, the mode that poll attempts communication is generallyd use when detecting TWS earphone and entering box, but this uses and is somebody's turn to do The power consumption for the charging box that mode detects is higher, is using hall sensor there are also a kind of mode to solve the problems, such as power consumption (Hall sensor) detection TWS earphone enters box, but is affected by the way of hall sensor by surrounding magnetic field, leads Cause testing result inaccuracy.
In consideration of it, how to provide a kind of wireless headset for solving above-mentioned technical problem enters box detection method, device and wireless Earphone charging box becomes those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the embodiment of the present invention is that providing a kind of wireless headset enters box detection method, device and wireless headset charging Box can not only save power consumption in use, additionally it is possible to provide the accuracy of testing result to a certain extent, be conducive to It enhances product performance, promote user experience.
In order to solve the above technical problems, the embodiment of the invention provides a kind of wireless headsets to enter box detection method, comprising:
Obtain the distance letter corresponding with current barrier for the range sensor acquisition being set in charging box housing sidewall Breath;
Judge whether the range information meets preset condition, if so, determining that earphone enters box;Wherein, described default Condition is set when according to the charging box being sylphon.
Optionally, the corresponding with current barrier of the range sensor acquisition being set in charging box housing sidewall is being obtained Range information before, further includes:
Whether the box cover for detecting the charging box is opened, if so, executing the distance for obtaining and being set on charging box side wall The step of range information corresponding with current barrier of sensor acquisition.
Optionally, the range sensor is optical sensor;
It is described obtain be set in charging box housing sidewall range sensor acquisition it is corresponding with current barrier away from Process from information are as follows:
Obtain the luminous energy value of the optical flame detector acquisition being set in charging box housing sidewall being reflected back by current barrier;
The process for judging the range information and whether meeting preset condition are as follows:
Judge whether the luminous energy value is greater than the upper limit value of default luminous energy range, if so, meeting preset condition.
Optionally, further includes:
According to the high and low thresholds of the luminous energy value and default alteration ruler pair register corresponding with the optical sensor into Row modification, and remove the interrupt flag bit in the optical sensor.
Optionally, described according to the luminous energy value and default alteration ruler pair register corresponding with the optical sensor The process that high and low thresholds are modified are as follows:
When the luminous energy value is in predetermined threshold range, by the lower limit of the luminous energy value and the predetermined threshold range it It, will be under the luminous energy value and the predetermined threshold range with the upper threshold as register corresponding with the optical sensor Lower threshold of the difference of limit as the register;
When the luminous energy value is less than or equal to the lower limit of the predetermined threshold range, by the luminous energy value and the pre- gating Upper threshold of the sum of the lower limit of range as the register is limited, by 0 lower threshold as the register;
When the luminous energy value is more than or equal to the upper limit of the predetermined threshold range, by the upper limit of the predetermined threshold range As the upper threshold of the register, using the luminous energy value and the difference of the lower limit of the predetermined threshold range as the deposit The lower threshold of device.
Optionally, when the range information is unsatisfactory for the preset condition, determine that earphone goes out box.
Optionally, it is described obtain be set in charging box housing sidewall range sensor acquisition with current barrier pair The process for the range information answered are as follows:
Obtain the N number of corresponding with current barrier of the range sensor continuous acquisition being set in charging box housing sidewall Range information, the N are not less than 2;
The process for judging the range information and whether meeting preset condition are as follows:
Judge whether N number of range information is all satisfied the preset condition.
Optionally, after the determining earphone enters and leaves, further includes:
Power supply is controlled as earphone charging, and controls the suggestion device being set on the charging box and issues the first prompt Information.
The embodiment of the present invention provides a kind of wireless headset accordingly and enters box detection device, comprising:
Module is obtained, it is acquiring with current barrier for obtaining the range sensor that is set in charging box housing sidewall Corresponding range information;
Judgment module, for judging whether the range information meets preset condition, and when the range information meets institute Determine that earphone enters box when stating preset condition;Wherein, it is set when the preset condition according to the charging box is sylphon.
The embodiment of the invention also provides a kind of wireless headset charging box, including charging box shell, memory, processor with And it is set to the range sensor in charging box housing sidewall, in which:
The memory, for storing computer program;
The processor realizes that wireless headset as described above enters box detection method when for executing the computer program The step of.
The embodiment of the invention provides a kind of wireless headsets to enter box detection method, device and wireless headset charging box, the party Method includes: the distance letter corresponding with current barrier for obtaining the range sensor acquisition being set in charging box housing sidewall Breath;Judge whether range information meets preset condition, if so, determining that earphone enters box;Wherein, preset condition is according to charging What box was set when being sylphon.
As it can be seen that the application acquires the distance of current barrier by the range sensor being set in charging box housing sidewall Information, and determine whether earphone enters box according to range information and preset condition, since range sensor not will receive external magnetic field Influence, so the application can not only save power consumption, additionally it is possible to a certain extent provide testing result accuracy, favorably In enhancing product performance, promote user experience.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow diagram that a kind of wireless headset provided in an embodiment of the present invention enters box detection method;
Fig. 2 is the flow diagram that another wireless headset provided in an embodiment of the present invention enters box detection method;
Fig. 3 is the structural schematic diagram that a kind of wireless headset provided in an embodiment of the present invention enters box detection device;
Fig. 4 is a kind of structural schematic diagram of wireless headset charging box provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of wireless headsets to enter box detection method, device and wireless headset charging box, makes With not only saving power consumption in the process, moreover it is possible to the accuracy for improving testing result to a certain extent, be conducive to enhance product performance, Promote user experience.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, Fig. 1 is the process signal that a kind of wireless headset provided in an embodiment of the present invention enters box detection method Figure.This method, comprising:
S110: obtain be set in charging box housing sidewall range sensor acquisition it is corresponding with current barrier away from From information;
It should be noted that range sensor is arranged on the side wall of charging box shell in advance in charging box production (proximity sensor), by range sensor collected range information do not influenced by external magnetic field, so adopting The data of collection are more accurate.In the application when whether detection wireless headset enters box, acquired in charging box by range sensor Reflective distance the sensor current barrier and the distance between range sensor information of the detection signal that are emitted, wherein Current barrier when earphone enters box in the present embodiment is earphone, and when charging box is sylphon, current barrier is charging box Side wall.
S120: judging whether range information meets preset condition, if so, into S130;Wherein, preset condition is foundation What charging box was set when being sylphon;
S130: determine that earphone enters box.
Specifically, being calibrated in advance to sylphon in the application when being produced to charging box, namely passed using distance Sensor measures sylphon range information of the earphone not in charging box when, and determines to judge earphone according to the sylphon range information Preset condition when in box, namely when measured range information meets the preset condition, illustrate that earphone enters box.In user In use process, the range sensor being arranged in charging box can collect corresponding range information, according to the preset condition prestored The range information is analyzed, judges whether the range information meets preset condition, when the range information meets default item When part, determine that earphone enters box, to carry out carrying out the operation such as charge to earphone.
For example, the collected range information of ultrasonic sensor is ultrasonic sensing when range sensor is ultrasonic sensor Distance value of the device apart from barrier is determined that pre-determined distance range is, for example, (A, B) by measurement, is preset in sylphon Condition is to illustrate there is object in current box when collected distance value is less than the lower limit value of pre-determined distance range, be determined as ear Machine enters box.
The embodiment of the invention provides a kind of wireless headsets to enter box detection method, is set to charging this method comprises: obtaining The range information corresponding with current barrier of range sensor acquisition in box housing sidewall;Judge whether range information meets Preset condition, if so, determining that earphone enters box;Wherein, it is set when preset condition foundation charging box is sylphon.As it can be seen that The application acquires the range information of current barrier by the range sensor being set in charging box housing sidewall, and according to away from Determine whether earphone enters box from information and preset condition, since range sensor not will receive the influence of external magnetic field, so this Application can not only save power consumption, additionally it is possible to which the accuracy for improving testing result to a certain extent is conducive to improve product Can, it promote user experience.
On the basis of the above embodiments, the embodiment of the invention also provides a kind of wireless headsets to enter box detection method, tool Body is referring to figure 2..The present embodiment has made further instruction and optimization to scheme, specific as follows:
S200: whether the box cover for detecting charging box is opened, if so, into S210;
It should be noted that in order to further save power consumption, it can also be to the state of the box cover of charging box in the present embodiment It is detected, due to needing that wireless headset charging box can be put into after opening the box cover of charging box when wireless headset enters box In, so then illustrate that user may have the demand to charge to wireless headset when the box cover for detecting charging box is opened, this When control range sensor inside charging box again and carry out data acquisition.
S210: obtain be set in charging box housing sidewall range sensor acquisition it is corresponding with current barrier away from From information;
Specifically, the range sensor in the present embodiment is specifically as follows optical sensor, then the corresponding S210's is specific Process can be with are as follows:
Obtain the luminous energy value of the optical flame detector acquisition being set in charging box housing sidewall being reflected back by current barrier;
It is understood that due to the light that the data of optical sensor acquisition are reflected light of the emergent light after barrier returns It can be worth, so reflecting the distance between current barrier and optical sensor indirectly by luminous energy value, and optical sensor has effect Answer speed fast, the advantages of high sensitivity, so can further ensure that detection accuracy.Wherein, the optical sensor in the application It can not done using laser sensor or infrared sensor etc., the application specifically specific unlimited.Certainly, in addition to using optical sensor Except, it in practical applications can also be using other range sensors, such as ultrasonic sensor etc. specifically can be according to reality It needs to be determined.
S220: judging whether range information meets preset condition, if so, into S230, if it is not, then entering S240;
Further, it is pre- to judge whether range information meets when range sensor uses optical sensor, in above-mentioned S220 If the process of condition are as follows:
Judge whether luminous energy value is greater than the upper limit value of default luminous energy range, if so, meeting preset condition, into S230.
Specifically, luminous energy value when optical sensor being used to acquire sylphon in advance when producing to charging box, and according to Luminous energy value when sylphon determines default luminous energy range, and is preset when luminous energy range is determined to judge that earphone is in box according to this Preset condition.
For example, the luminous energy value when calibrating to sylphon when collected sylphon is X, then Y=(X-20) can be made For the lower limit for presetting luminous energy range, the upper limit by Z=(X+20) as default luminous energy range, and will default luminous energy range it is upper and lower Limit value is written in flash memory.
During user uses charging box, the control optical sensor acquisition number when the box cover for detecting charging box is opened According to, and the collected luminous energy value of optical sensor is obtained, such as the luminous energy value is m, then judges whether the m is greater than default luminous energy range Upper limit value Z, when m be greater than Z when, illustrate return luminous energy value it is larger, earphone enters box at this time, when the luminous energy value m is in default luminous energy When in range, illustrate that earphone goes out box at this time.
Further, this method can also include:
High and low thresholds according to luminous energy value and default alteration ruler pair register corresponding with optical sensor are modified, and Remove the interrupt flag bit in optical sensor.
Specifically, during optical sensor acquires data interrupt output can be generated according to the upper-lower door limit value of register Corresponding luminous energy value, so in the application the luminous energy value exported when interruption and default alteration ruler pair can also be generated according to current The high and low thresholds of the register of optical sensor are modified, while this is generated the interrupt identification bit clear interrupted, so as to light Sensor continues to acquire data.
Further, above-mentioned according to the upper and lower of luminous energy value and default alteration ruler pair register corresponding with optical sensor The process that thresholding is modified, is specifically as follows:
When luminous energy value is in predetermined threshold range, the sum of lower limit of luminous energy value and predetermined threshold range is passed as with light The upper threshold of the corresponding register of sensor, using luminous energy value and the difference of the lower limit of predetermined threshold range as the Lower Threshold of register Value;
When luminous energy value is less than or equal to the lower limit of predetermined threshold range, by the sum of luminous energy value and the lower limit of predetermined threshold range As the upper threshold of register, by 0 lower threshold as register;
When luminous energy value is more than or equal to the upper limit of predetermined threshold range, using the upper limit of predetermined threshold range as register Upper threshold, using luminous energy value and the difference of the lower limit of predetermined threshold range as the lower threshold of register.
Specifically, optical sensor generate interruption when read optical sensor luminous energy value be m, according to luminous energy value m to light When the high and low thresholds of the register of sensor are modified, can according to predefine predetermined threshold range (for example, (20, 235) it) modifies to the high and low thresholds of register, specifically may determine that luminous energy value m at this time whether in the predetermined threshold range It is interior, if meeting 20 < m < 235, using m-20 as the lower threshold of register, using m+20 as the upper threshold of register, And it modifies to the threshold value of register;If meeting m≤20, by 0 upper threshold as register, using m+20 as The upper threshold of register, and modify to the threshold value of register;If meeting m >=235, using m-20 as register Lower threshold, modify by 235 upper threshold as register, and to the threshold value of register.Also need to illustrate It is that predetermined threshold range is not limited to (20,235), can also is other specific ranges, it specifically can be according to charging box and light The actual conditions of sensor are determined, and the application does not do particular determination.
S230: determine that earphone enters box;
Specifically, can also control power supply is that earphone charges, and controls to be set to and fill after determining that earphone enters box Suggestion device on electric box issues the first prompt information, is being earphone charging to prompt user, wherein suggestion device can be with For warning light, for example, when for earphone charging warning light lights.
S240: determine that earphone enters box.
Specifically, can control power supply closing after determining that earphone goes out box, to stop the charging to earphone, simultaneously Suggestion device closing can also be controlled, such as control warning light is closed.
It should also be noted that, being obtained in above-mentioned S210 in order to further increase detection accuracy and being set to charging box shell The process of the range information corresponding with current barrier of range sensor acquisition on body sidewall, specifically can be with are as follows:
Obtain the N number of corresponding with current barrier of the range sensor continuous acquisition being set in charging box housing sidewall Range information, N are not less than 2 integer;
Then, judge whether range information meets the process of preset condition in corresponding above-mentioned S220, it specifically can be with are as follows:
Judge whether N number of range information is all satisfied preset condition.
Specifically, N number of range information of range sensor acquisition can be continuously acquired, and when N number of range information is full Just determine that earphone enters box when sufficient preset condition, to improve measuring accuracy.For example, when range sensor is optical sensor When, then it obtains the continuous n times of optical sensor and interrupts corresponding luminous energy value, and when N number of luminous energy value is all larger than default luminous energy range When upper limit value, determine that earphone enters box.Wherein, N is specifically as follows 2, its certain specific value can carry out according to actual needs It determines, the application does not do particular determination.
In addition, being that can be specifically unsatisfactory in the range information for judging currently to obtain pre- judging whether earphone goes out box If condition, and when last range information obtained meets preset condition, is determined as earphone and goes out box, and then improves accuracy in detection.
On the basis of the above embodiments, the embodiment of the present invention provides a kind of wireless headset accordingly and enters box detection dress It sets, specifically referring to figure 3..The device includes:
Module 31 is obtained, it is acquiring with current obstacle for obtaining the range sensor that is set in charging box housing sidewall The corresponding range information of object;
Judgment module 32, for judging whether range information meets preset condition, and when range information meets preset condition When determine that earphone enters box;Wherein, it is set when preset condition foundation charging box is sylphon.
Further, the device further include:
Whether detection module, the box cover for detecting charging box are opened, if so, triggering obtains module.
Further, range sensor is optical sensor;
Then, obtain module 31, specifically for obtain be set in charging box housing sidewall optical flame detector acquisition by current The luminous energy value that barrier is reflected back;
Judgment module 32, specifically for judging whether luminous energy value is greater than the upper limit value of default luminous energy range, if so, meeting Preset condition.
Further, further includes:
Modified module, for the upper-lower door according to luminous energy value and default alteration ruler pair register corresponding with optical sensor Limit is modified, and removes the interrupt flag bit in optical sensor.
Further, modified module includes:
First modification unit, for when luminous energy value is in predetermined threshold range, by luminous energy value and predetermined threshold range Upper threshold of the sum of the lower limit as register corresponding with optical sensor, by the difference of luminous energy value and the lower limit of predetermined threshold range Lower threshold as register;
Second modification unit when for being less than or equal to the lower limit of predetermined threshold range when luminous energy value, by luminous energy value and is preset Upper threshold of the sum of the lower limit of threshold range as register, by 0 lower threshold as register;
Third modifies unit, when for being more than or equal to the upper limit of predetermined threshold range when luminous energy value, by predetermined threshold range Upper threshold of the upper limit as register, using luminous energy value and the difference of the lower limit of predetermined threshold range as the Lower Threshold of register Value.
It should be noted that wireless headset provided in the present embodiment enter box detection device have in above-described embodiment Provided wireless headset enters the identical beneficial effect of box detection method, and for nothing involved in the embodiment of the present invention The specific introduction that line earphone enters box detection method please refers to above method embodiment, and details are not described herein by the application.
Referring to figure 4., on the basis of the above embodiments, the embodiment of the invention also provides a kind of chargings of wireless headset Box, including charging box shell 41, memory 42, processor 43 and the range sensor being set on 41 side wall of charging box shell 44, in which:
Memory 42, for storing computer program;
Processor 43 realizes the step of entering box detection method such as above-mentioned wireless headset when for executing computer program.
For example, the Distance-sensing that the processor 43 in the present embodiment is set in charging box housing sidewall for realizing acquisition The range information corresponding with current barrier of device acquisition;Judge whether range information meets preset condition, if so, determining Earphone enters box;Wherein, it is set when preset condition foundation charging box is sylphon.
On the basis of the above embodiments, the embodiment of the invention also provides a kind of computer readable storage mediums, calculate It is stored with computer program on machine readable storage medium storing program for executing, is realized when computer program is executed by processor as above-mentioned wireless headset enters The step of box detection method.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
It should also be noted that, in the present specification, such as the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of wireless headset enters box detection method characterized by comprising
Obtain the range information corresponding with current barrier for the range sensor acquisition being set in charging box housing sidewall;
Judge whether the range information meets preset condition, if so, determining that earphone enters box;Wherein, the preset condition It is set when according to the charging box being sylphon.
2. wireless headset according to claim 1 enters box detection method, which is characterized in that be set to charging box shell in acquisition Before the range information corresponding with current barrier of range sensor acquisition on body sidewall, further includes:
Whether the box cover for detecting the charging box is opened, if so, executing the Distance-sensing for obtaining and being set on charging box side wall The step of range information corresponding with current barrier of device acquisition.
3. wireless headset according to claim 1 enters box detection method, which is characterized in that the range sensor is light biography Sensor;
The distance letter corresponding with current barrier for obtaining the range sensor acquisition being set in charging box housing sidewall The process of breath are as follows:
Obtain the luminous energy value of the optical flame detector acquisition being set in charging box housing sidewall being reflected back by current barrier;
The process for judging the range information and whether meeting preset condition are as follows:
Judge whether the luminous energy value is greater than the upper limit value of default luminous energy range, if so, meeting preset condition.
4. wireless headset according to claim 3 enters box detection method, which is characterized in that further include:
High and low thresholds according to the luminous energy value and default alteration ruler pair register corresponding with the optical sensor are repaired Change, and removes the interrupt flag bit in the optical sensor.
5. wireless headset according to claim 4 enters box detection method, which is characterized in that it is described according to the luminous energy value and The process that the high and low thresholds of default alteration ruler pair register corresponding with the optical sensor are modified are as follows:
When the luminous energy value is in predetermined threshold range, the sum of lower limit of the luminous energy value and the predetermined threshold range is made For the upper threshold of register corresponding with the optical sensor, by the lower limit of the luminous energy value and the predetermined threshold range it Lower threshold of the difference as the register;
When the luminous energy value is less than or equal to the lower limit of the predetermined threshold range, by the luminous energy value and the pre-determined threshold model Upper threshold of the sum of the lower limit enclosed as the register, by 0 lower threshold as the register;
When the luminous energy value be more than or equal to the predetermined threshold range the upper limit when, using the upper limit of the predetermined threshold range as The upper threshold of the register, using the luminous energy value and the difference of the lower limit of the predetermined threshold range as the register Lower threshold.
6. wireless headset according to claim 1 enters box detection method, which is characterized in that further include:
When the range information is unsatisfactory for the preset condition, determine that earphone goes out box.
7. wireless headset described in -6 any one enters box detection method according to claim 1, which is characterized in that the acquisition is set It is placed in the process of the range information corresponding with current barrier of the range sensor acquisition in charging box housing sidewall are as follows:
Obtain the N number of distance corresponding with current barrier for the range sensor continuous acquisition being set in charging box housing sidewall Information, the N are not less than 2;
The process for judging the range information and whether meeting preset condition are as follows:
Judge whether N number of range information is all satisfied the preset condition.
8. wireless headset according to claim 7 enters box detection method, which is characterized in that entered and left in the determining earphone Afterwards, further includes:
Power supply is controlled as earphone charging, and controls the suggestion device being set on the charging box and issues the first prompt letter Breath.
9. a kind of wireless headset enters box detection device characterized by comprising
Module is obtained, for obtaining the corresponding with current barrier of the range sensor being set in charging box housing sidewall acquisition Range information;
Judgment module, for judging whether the range information meets preset condition, and when the range information meet it is described pre- If determining that earphone enters box when condition;Wherein, it is set when the preset condition according to the charging box is sylphon.
10. a kind of wireless headset charging box, which is characterized in that filled including charging box shell, memory, processor and being set to Range sensor in electric box housing sidewall, in which:
The memory, for storing computer program;
The processor realizes the wireless headset as described in claim 1 to 8 any one when for executing the computer program The step of entering box detection method.
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 true CN109413536A (en) 2019-03-01
CN109413536B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401891A (en) * 2019-07-17 2019-11-01 艾普柯微电子(上海)有限公司 Calibration method, system and the charging box of range sensor
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
CN110611858A (en) * 2019-09-29 2019-12-24 歌尔股份有限公司 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
CN111277941A (en) * 2020-02-28 2020-06-12 歌尔股份有限公司 TWS earphone and out-of-box detection device, method and system thereof
CN111314813A (en) * 2019-12-31 2020-06-19 歌尔科技有限公司 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
CN112533097A (en) * 2019-09-19 2021-03-19 Oppo广东移动通信有限公司 Earphone in-box detection method, earphone box and storage medium
WO2022000998A1 (en) * 2020-06-30 2022-01-06 歌尔股份有限公司 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 (12)

* 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
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
CN104581485A (en) * 2014-12-31 2015-04-29 周祥宇 Remote sensing control earphone system and command identification and execution method thereof
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
US20180225953A1 (en) * 2016-06-01 2018-08-09 Tile, Inc. User Intervention Based on Tracking Device Location
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

Patent Citations (12)

* 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
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
CN104581485A (en) * 2014-12-31 2015-04-29 周祥宇 Remote sensing control earphone system and command identification and execution method thereof
CN108352850A (en) * 2015-08-29 2018-07-31 布拉吉有限公司 The SMART SKIN and method of power for managing corresponding wireless headset
US20180225953A1 (en) * 2016-06-01 2018-08-09 Tile, Inc. User Intervention Based on Tracking Device Location
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

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401891A (en) * 2019-07-17 2019-11-01 艾普柯微电子(上海)有限公司 Calibration method, system and the charging box of range sensor
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
CN112449265A (en) * 2019-08-27 2021-03-05 华为技术有限公司 Box-in detection method and earphone box
CN110602581A (en) * 2019-08-27 2019-12-20 华为技术有限公司 Box-in detection method and earphone box
CN112449265B (en) * 2019-08-27 2023-03-24 华为技术有限公司 Box-in detection method and earphone box
CN112533097A (en) * 2019-09-19 2021-03-19 Oppo广东移动通信有限公司 Earphone in-box detection method, earphone box and storage medium
CN110611858A (en) * 2019-09-29 2019-12-24 歌尔股份有限公司 Earphone in-out box control method, earphone box and readable 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
CN111372157A (en) * 2019-12-31 2020-07-03 歌尔科技有限公司 Wireless earphone, wearing detection method thereof and storage medium
CN111314813A (en) * 2019-12-31 2020-06-19 歌尔科技有限公司 Wireless earphone, method for detecting entrance and exit of wireless earphone, and storage medium
CN111314813B (en) * 2019-12-31 2022-06-21 歌尔科技有限公司 Wireless earphone, method for detecting entrance and exit of wireless earphone, and storage medium
CN111277941A (en) * 2020-02-28 2020-06-12 歌尔股份有限公司 TWS earphone and out-of-box detection device, method and system thereof
WO2022000998A1 (en) * 2020-06-30 2022-01-06 歌尔股份有限公司 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

Also Published As

Publication number Publication date
CN109413536B (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN109413536A (en) A kind of wireless headset enters box detection method, device and wireless headset charging box
US10999667B2 (en) Earbud and method for implementing wearing detection and touch operation
CN110401891B (en) Calibration method and system of distance sensor and charging box
CN110099325A (en) A kind of wireless headset enters box detection method, device, wireless headset and earphone products
CN105228041A (en) A kind of information processing method and audio output device
CN110418236A (en) A kind of wireless headset wears detection device, method and TWS earphone
CN102868821A (en) Screen activating and unlocking method for mobile terminal
CN106851012A (en) Proximity test method, device and terminal
CN106851013A (en) SOT state of termination determination methods, device and terminal
US20190164169A1 (en) Electronic device having waterproof warranty condition judgment system
CN105934868A (en) Electronic power management method and apparatus, and electronic device
CN108759892A (en) Sensor calibrating method, electronic device and computer readable storage medium
CN104751586A (en) Terminal, information processing method and information processing device
CN106233705A (en) A kind of terminal control method and terminal
CN105842680B (en) A kind of data processing method and device
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
CN106667450A (en) Method and device for temperature measurement
CN109088993A (en) Proximity state judgment method, device and electronic equipment based on proximity sensor
CN106095078B (en) A kind of the threshold values setting method and mobile terminal of sensor
CN106487963A (en) Mobile terminal and the control method of sensor assembly
CN202966190U (en) Driver identity recognition device
CN105825099A (en) Inductive unlocking method and system and mobile terminal
CN106462335A (en) Dormancy awakening system, method and device for terminal
CN105677104B (en) A kind of user terminal control method and user terminal
CN210802700U (en) Close range warning module based on pyroelectric sensor

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