CN106210227B - Calibration method and device of infrared proximity sensor and mobile terminal - Google Patents
Calibration method and device of infrared proximity sensor and mobile terminal Download PDFInfo
- Publication number
- CN106210227B CN106210227B CN201610530541.4A CN201610530541A CN106210227B CN 106210227 B CN106210227 B CN 106210227B CN 201610530541 A CN201610530541 A CN 201610530541A CN 106210227 B CN106210227 B CN 106210227B
- Authority
- CN
- China
- Prior art keywords
- calibration
- proximity
- proximity values
- values
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V13/00—Manufacturing, calibrating, cleaning, or repairing instruments or devices covered by groups G01V1/00 – G01V11/00
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- General Physics & Mathematics (AREA)
- Geophysics (AREA)
- Electronic Switches (AREA)
- Geophysics And Detection Of Objects (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
The embodiment of the invention discloses a method and a device for calibrating an infrared proximity sensor and a mobile terminal. The method comprises the following steps: when the mobile terminal is in a calibration instrument, if an infrared proximity sensor calibration event is triggered, acquiring a current proximity value of the infrared proximity sensor; if the difference between the current approach value and the reference approach value is smaller than a preset difference value threshold, executing calibration operation to obtain a calibration compensation value; the reference proximity value is a proximity value of the infrared proximity sensor in an unshielded state when the mobile terminal is in an environment with the ambient light intensity smaller than a first preset intensity threshold value before entering the calibration instrument. By adopting the technical scheme, the embodiment of the invention can ensure that the infrared proximity sensor is calibrated in a relatively ideal environment when the calibration is carried out by the calibration instrument, thereby improving the accuracy of the calibration compensation value.
Description
Technical field
The present embodiments relate to technical field of mobile terminals more particularly to a kind of calibration sides of infrared proximity transducer
Method, device and mobile terminal.
Background technique
Currently, proximity sensor has become the standard configuration of mobile terminal, mobile terminal can be realized using proximity sensor
In various functions, for example, call when prevent because face touch screen cause maloperation, adjust automatically backlight and touch screen to put out
Shield gesture identification etc..
The most common proximity sensor configured in mobile terminal includes infrared proximity transducer.Infrared proximity transducer to
Outer transmitting infrared ray, then by measurement object reflected infra-red intensity come between judgment object and sensor away from
From the infrared luminous intensity received is stronger, then it represents that the distance between itself and object are smaller.Infrared proximity transducer can will measure
To infra-red intensity be converted into the measured value with its proportional, which can be known as close to (proximity)
Value, the proximity values that infrared proximity transducer obtains are bigger, indicate that the distance between itself and object are smaller.
Infrared proximity transducer is after installation, due to various differences such as patch and structure, under same measuring condition
The proximity values that different infrared proximity transducers obtain be it is different, in order to reduce above-mentioned difference, enhance the consistent of mobile terminal
Property, it needs to calibrate infrared proximity transducer under non-circumstance of occlusion before factory to obtain offset, is used for mobile terminal
It is loaded when booting.Currently, in order to guarantee the consistent of calibration efficiency and calibration environment, to the school of infrared proximity transducer in producing line
It is quasi- often all to use instrument calibration mode, and calibration instrument will also tend to execute the calibration of various other sensors, pass close
In the calibration process of sensor, interference may be subjected to, such as proximity sensor is calibrated the other component in instrument and accidentally blocks,
So as to cause compensation for calibrating errors value inaccuracy.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of calibration method of infrared proximity transducer, device and mobile terminal are provided,
Obtained compensation for calibrating errors value is accurate when solving to calibrate the infrared proximity transducer of mobile terminal in calibration instrument
Spend low problem.
In a first aspect, the embodiment of the invention provides a kind of calibration methods of infrared proximity transducer, comprising:
When mobile terminal is in calibration instrument, if infrared proximity transducer calibration event is triggered, obtain described red
The current proximity values of outer proximity sensor;
If the difference of the current proximity values and benchmark proximity values is less than preset difference value threshold value, calibration operation is executed, is obtained
Compensation for calibrating errors value;Wherein, the benchmark proximity values are the mobile terminal before entering the calibration instrument and are in environment
When luminous intensity is less than in the environment of the first preset strength threshold value, the infrared proximity transducer is in close under non-occlusion state
Value.
Second aspect, the embodiment of the invention provides a kind of calibrating installations of infrared proximity transducer, comprising:
Proximity values obtain module, are used for when mobile terminal is in calibration instrument, if infrared proximity transducer calibrates thing
Part is triggered, then obtains the current proximity values of the infrared proximity transducer;
Whether comparison module, the difference for the current proximity values and benchmark proximity values are less than preset difference value threshold value;
Wherein, the benchmark proximity values be the mobile terminal before entering the calibration instrument and in ambient light intensity less than the
When in the environment of one preset strength threshold value, the infrared proximity transducer is in the proximity values under non-occlusion state;
Calibration module, for executing when the difference of the current proximity values and benchmark proximity values is less than preset difference value threshold value
Calibration operation obtains compensation for calibrating errors value.
The third aspect, the embodiment of the invention provides a kind of mobile terminal, which is integrated with the embodiment of the present invention
The calibrating installation of the infrared proximity transducer.
The calibration program of the infrared proximity transducer provided in the embodiment of the present invention, by mobile terminal enter calibration instrument it
It is preceding and in ambient light intensity less than in the environment of the first preset strength threshold value when, infrared proximity transducer is in non-occlusion state
Under proximity values be denoted as benchmark proximity values, after mobile terminal enters calibration instrument, infrared proximity transducer calibration event is touched
When hair, if the difference of the current proximity values of the infrared proximity transducer obtained and benchmark proximity values is less than preset difference value threshold value, explanation
Current alignment environment is more satisfactory, calibration operation can be performed, and then obtain accurate compensation for calibrating errors value.By using above-mentioned
Technical solution, when being calibrated by tester, it is ensured that infrared proximity transducer is in quilt in ideal environment
Calibration, and then improve the accuracy of compensation for calibrating errors value.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the calibration method for infrared proximity transducer that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the calibration method of infrared proximity transducer provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram of the calibration method for infrared proximity transducer that the embodiment of the present invention three provides;
Fig. 4 is a kind of process signal of the calibration method for preferred infrared proximity transducer that the embodiment of the present invention four provides
Figure;
Fig. 5 is a kind of structural block diagram of the calibrating installation for infrared proximity transducer that the embodiment of the present invention five provides.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that
It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating
, only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation
The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram of the calibration method for infrared proximity transducer that the embodiment of the present invention one provides, should
Method can be executed by the calibrating installation of infrared proximity transducer, and wherein the device can be implemented by software and/or hardware, and generally may be used
It integrates in the terminal.As shown in Figure 1, this method comprises:
When step 101, mobile terminal are in calibration instrument, if infrared proximity transducer calibration event is triggered, obtain
Take the current proximity values of the infrared proximity transducer.
Illustratively, the concretely mobile phone, smartwatch, tablet computer, game machine, a of the mobile terminal in the present embodiment
Personal digital assistant and digital multimedia player etc. are configured with the various equipment of infrared proximity transducer.
Illustratively, infrared proximity transducer can convert the infra-red intensity measured to and its proportional
The measured value can be known as proximity values by measured value.In general, proximity values can be the analog-digital converter in infrared proximity transducer
The output valve of (Analog-to-Digital Converter, ADC), abbreviation ADC value or AD value.
Infrared proximity transducer is after installation, due to various differences such as patch and structure, under same measuring condition
The proximity values that infrared proximity transducer in different mobile terminal obtains be it is different, need to be calibrated before factory.
The mode of calibration is generally, and under the premise of interfering without any blockage and without strong light, executes calibration command, will own
The proximity values of infrared proximity transducer are pulled down to a setting value (can be described as default calibration proximity values), by the proximity values and preset
The difference of proximity values is calibrated as in compensation for calibrating errors value write-in mobile terminal, non-volatile (Nonvolatile, NV) system is such as written
In, it is loaded after standby communication terminal factory in booting, to guarantee the consistency of each mobile terminal, facilitates subsequent and infrared proximity
The operation of the relevant algorithm of sensor and the setting of parameter.
Method described in the present embodiment is suitable for the applied field calibrated using calibration instrument to infrared proximity transducer
Scape.It is calibrated using calibration instrument, it is ensured that the consistency of the calibration environment of all mobile terminals, while can also save manpower
Cost improves calibration efficiency.Due to can generally integrate multiple sensors in mobile terminal, in addition to infrared proximity transducer, may be used also
Including sensors such as such as acceleration transducer, pedometer, ambient light sensor and Magnetic Sensors, calibration instrument would generally be according to
Certain sequence or rule carries out a series of calibration to each sensor in mobile terminal, so the component in calibration instrument
Can be relatively more, operation also can be more complicated.In the calibration process of proximity sensor, it may be subjected to other interference, such as red
The component that outer proximity sensor is used in testing for other sensors accidentally blocks;For another example it is used in testing for the strong light of ambient light sensor
Irradiation;It being also possible to be that locating rotating platform does not playback correctly, mobile terminal direction is wrong (such as towards the side wall of calibration instrument),
So as to cause compensation for calibrating errors value inaccuracy.
Mobile terminal can carry out various tests and calibration, this reality after entering calibration instrument under the triggering of calibration instrument
Example is applied to be not construed as limiting the operation details of calibration instrument.Illustratively, calibration instrument can be established wired or wireless with mobile terminal
Communication connection, and then to the beginning calibration command of mobile terminal transmission infrared proximity transducer, mobile terminal receives this and starts
Calibration command can be considered that infrared proximity transducer calibration event is triggered;For another example, each school can be shown on the screen of mobile terminal
Quasi- project can be considered infrared proximity when calibration instrument clicks infrared proximity transducer calibration item by components such as manipulators
Pick up calibration event is triggered.
Illustratively, it after infrared proximity transducer calibration event is triggered, can currently be connect by reading ADC value to obtain
Close values.
If the difference of step 102, the current proximity values and benchmark proximity values is less than preset difference value threshold value, calibration behaviour is executed
Make, obtains compensation for calibrating errors value.
Wherein, the benchmark proximity values are the mobile terminal before entering the calibration instrument and are in environmental light intensity
When degree is less than in the environment of the first preset strength threshold value, the infrared proximity transducer is in the proximity values under non-occlusion state.
Illustratively, before mobile terminal enters calibration instrument, benchmark proximity values can first be determined.Benchmark proximity values can manage
Solution, can not whether to meet the standard that alignment requirements are determined to the calibration environment of the infrared proximity transducer in calibration instrument
Must be very strict, because, if blocking or being interfered by strong light, the variation of proximity values can be bigger in calibration instrument, lead to
It crosses to compare and can easily judge situations such as whether being blocked or being interfered by strong light with the difference of benchmark proximity values.
It is understood that ideal calibration environment is without any screening when calibrating to infrared proximity transducer
Gear and the environment interfered without strong light can create such environment for infrared proximity transducer, and obtain and measure in the environment
Proximity values as benchmark proximity values.No strong light interference can refer to ambient light intensity less than the first preset strength threshold value, because of environment
When luminous intensity is higher, the infra-red intensity in environment light also can be very high, the infrared light intensity for causing infrared proximity transducer to receive
Spending summation can be relatively high, so that proximity values are higher than normal value, measurement result inaccuracy.First preset strength threshold value can be by designer
Member determines that specific value is not construed as limiting herein, for example, the first preset strength by modes such as theoretical calculation or emulation experiments
Threshold value can be 3000 luxs (lux).In addition, need not can also specially be created for determining benchmark to improve calibration efficiency
The environment of proximity values, but the link that some in producing line substantially conforms to alignment requirements obtains benchmark proximity values, such as is moving
When dynamic terminal is just switched on, generally there is no blocking, if detect current environment luminous intensity less than the first preset strength threshold value,
Proximity values at this time can be obtained as benchmark proximity values.
Illustratively, for different mobile terminals, the infrared proximity transducer of each mobile terminal can be determined respectively
Benchmark proximity values.In addition, in order to further increase calibration efficiency, for a batch of mobile terminal, if infrared proximity senses
The configuration parameter (such as model and transmission power) of device is all the same, also can determine a unified benchmark proximity values.
Illustratively, the environment in calibration instrument is relatively fewer compared to disturbing factor for external environment, if not missing
It blocks, test light and open by mistake and open and the special circumstances such as rotating platform does not playback, then it is believed that each mobile terminal is in prover
Calibration environment in device is consistent.Preset difference value threshold value is for indicating between acceptable current proximity values and benchmark proximity values
Disparity range, can be determined by designer by modes such as theoretical calculations or emulation experiment, specific value is not made herein
It limits, for example, it may be 20.If the difference of current proximity values and benchmark proximity values is less than preset difference value threshold value, can illustrate not occur
Above-mentioned special circumstances, if being calibrated at this time, calibration result is accurate;If the difference of current proximity values and benchmark proximity values is big
It in preset difference value threshold value, can illustrate that certain above-mentioned special circumstances have occurred, if being calibrated at this time, calibration result is inaccuracy
, it can stop calibrating, and return to error message, operator is prompted to eliminate disturbing factor, such as remove shelter, close test lamp
Light and adjustment rotating platform etc..
The embodiment of the present invention one provide infrared proximity transducer calibration method, by mobile terminal enter calibration instrument it
It is preceding and in ambient light intensity less than in the environment of the first preset strength threshold value when, infrared proximity transducer is in non-occlusion state
Under proximity values be denoted as benchmark proximity values, after mobile terminal enters calibration instrument, infrared proximity transducer calibration event is touched
When hair, if the difference of the current proximity values of the infrared proximity transducer obtained and benchmark proximity values is less than preset difference value threshold value, explanation
Current alignment environment is more satisfactory, calibration operation can be performed, and then obtain accurate compensation for calibrating errors value.By using above-mentioned
Technical solution, when being calibrated by tester, it is ensured that infrared proximity transducer is in quilt in ideal environment
Calibration, and then improve the accuracy of compensation for calibrating errors value.
Embodiment two
Fig. 2 is a kind of flow diagram of the calibration method of infrared proximity transducer provided by Embodiment 2 of the present invention, this
Embodiment is optimized based on above-described embodiment, in the present embodiment, by step " if current proximity values and benchmark proximity values
Difference be less than preset difference value threshold value, then execute calibration operation, obtain compensation for calibrating errors value " optimization are as follows: if current proximity values and benchmark
The difference of proximity values is less than preset difference value threshold value, and current environment luminous intensity then executes calibration behaviour less than the second preset strength threshold value
Make, obtains compensation for calibrating errors value.
Correspondingly, the method for the present embodiment includes the following steps:
When step 201, mobile terminal are in calibration instrument, if infrared proximity transducer calibration event is triggered, obtain
Take the current proximity values of the infrared proximity transducer.
If the difference of step 202, current proximity values and benchmark proximity values is less than preset difference value threshold value, and current environment luminous intensity
Less than the second preset strength threshold value, then calibration operation is executed, obtains compensation for calibrating errors value.
Illustratively, current environment luminous intensity can be obtained by ambient light sensor.Second preset strength threshold value can be with
One preset strength threshold value is identical, can also be different.
The decision condition to ambient light intensity is increased in the present embodiment, can further exclude interference of the strong light to calibration.
Further, calibration operation is executed, obtains compensation for calibrating errors value, it may include: it is preset if the current proximity values are greater than
Proximity values are calibrated, then calculates the difference of the current proximity values and the default calibration proximity values, takes the difference as calibration
Offset.
Illustratively, presetting calibration proximity values can be identical as the proximity values for calibration in existing calibrating mode, example
Such as, 200 be can be.If current proximity values are greater than 200, such as 250, then compensation for calibrating errors value can be used as by 50.Offset will calibrated
After mobile terminal is written, when mobile terminal-opening, will do it load, be modified to the proximity values that infrared proximity transducer obtains,
To make measurement result of all mobile terminals under same use environment be consistent.If in calibration process, infrared proximity
Sensor is accidentally blocked, then current proximity values can be bigger, such as 550, then the compensation for calibrating errors value calculated accordingly is
350, the numerical value is larger, if mobile terminal is written in this compensation for calibrating errors value, then what is measured connects under normal operating condition
Close values, which subtract 350, will become very little, lead to not normally determine proximity state, influence user's use.
If current proximity values are equal to default calibration proximity values, compensation for calibrating errors value is 0.If current proximity values are less than default school
Quasi- proximity values can calculate the difference (negative value) of current proximity values and default calibration proximity values as compensation for calibrating errors value, can also disregard
Compensation for calibrating errors value is calculated, that is, regards compensation for calibrating errors value as 0, to improve calibration efficiency, because in actual use, user body parts are leaned on
When near-infrared proximity sensor, proximity values can be bigger, and influence of the above-mentioned difference to judging result is smaller, so can not also pass through
Compensation for calibrating errors value is modified measured value.
The calibration method of infrared proximity transducer provided by Embodiment 2 of the present invention, close to current proximity values and benchmark
On the basis of the difference of value is determined, the decision condition to ambient light intensity is increased, can further exclude strong light to calibration
Interference, and then improve compensation for calibrating errors value accuracy.
Embodiment three
Fig. 3 is a kind of flow diagram of the calibration method for infrared proximity transducer that the embodiment of the present invention three provides, this
Embodiment is optimized based on above-described embodiment, in the present embodiment, is triggered in infrared proximity transducer calibration event
Before, it increases step: when detecting power-on event, starting infrared proximity transducer and ambient light sensor;It is passed in environment light
In the state that the ambient light intensity that sensor detects is less than the first preset strength threshold value, acquisition infrared proximity transducer, which is in, not to be hidden
The proximity values of preset quantity under gear state determine the minimum proximity values in the proximity values of preset quantity for benchmark proximity values.
Correspondingly, the method for the present embodiment includes the following steps:
Step 301 when detecting power-on event, starts infrared proximity transducer and ambient light sensor.
Illustratively, when mobile terminal is just switched on, generally there is no blocking, so sampling can be booted up, start
Infrared proximity transducer and ambient light sensor, sample proximity values and ambient light intensity.
Step 302, in the state that the ambient light intensity that ambient light sensor detects is less than the first preset strength threshold value,
Obtain infrared proximity transducer and be in the proximity values of the preset quantity under non-occlusion state, by the proximity values of preset quantity most
Small proximity values determine to be benchmark proximity values.
Illustratively, needing to guarantee to acquire the process of proximity values is carried out under non-strong light, so in ambient light sensing
The ambient light intensity that device detects is less than obtaining proximity values in the state of the first preset strength threshold value.Obtain infrared proximity transducer
The proximity values of preset quantity under non-occlusion state, herein do not block the station that can be regarded as mobile terminal-opening or week
Infrared proximity transducer is blocked there is no other objects in surrounding environment.In order to avoid the limbs of operator or walking for other staff
It is dynamic that the contingency of infrared proximity transducer is blocked, the proximity values of preset quantity can be obtained, and minimum proximity values therein are true
It is set to benchmark proximity values.Preset quantity can be freely arranged, it is to be understood that preset quantity is bigger, and obtained benchmark is close
It is worth closer to the corresponding proximity values of ideal calibration state.
When step 303, mobile terminal are in calibration instrument, if infrared proximity transducer calibration event is triggered, obtain
Take the current proximity values of the infrared proximity transducer.
If the difference of step 304, current proximity values and benchmark proximity values is less than preset difference value threshold value, and current environment luminous intensity
Less than the second preset strength threshold value, then calibration operation is executed, obtains compensation for calibrating errors value.
The calibration method for the infrared proximity transducer that the embodiment of the present invention three provides, in infrared proximity transducer calibration event
It is added to the correlation step of determining benchmark proximity values before being triggered, benchmark proximity values are automatically determined in mobile terminal-opening,
Without increasing additional process, test and calibration efficiency of the mobile terminal in producing line ensure that.
Example IV
Fig. 4 is a kind of process signal of the calibration method for preferred infrared proximity transducer that the embodiment of the present invention four provides
Figure, as shown in figure 4, this method comprises the following steps:
Step 401 when detecting the power-on event of mobile terminal, starts infrared proximity transducer and ambient light sensor.
Step 402, judge ambient light intensity that ambient light sensor detects whether less than the first preset strength threshold value, if
It is to then follow the steps 404;Otherwise, step 403 is executed.
Step 403 judges whether the duration at distance booting moment reaches preset duration, if so, thening follow the steps 409;It is no
Then, 402 are returned to step.
Step 404, obtain infrared proximity transducer preset quantity proximity values, by the proximity values of preset quantity most
Small proximity values determine to be benchmark proximity values.
For example, benchmark proximity values can be denoted as ps_min.
When step 405, mobile terminal are in calibration instrument, if infrared proximity transducer calibration event is triggered, obtain
Take the current proximity values of infrared proximity transducer.
Step 406 judges current environment luminous intensity whether less than the second preset strength threshold value, if so, thening follow the steps
407;Otherwise, step 409 is executed.
Step 407 judges whether the difference of current proximity values and benchmark proximity values is less than preset difference value threshold value, if so, holding
Row step 408;Otherwise, step 409 is executed.
For example, preset difference value threshold value is a, current proximity values can be denoted as ps, judge the size relation of ps-ps_min and a,
If ps-ps_min < a, enter calibration process, i.e. execution step 408.
If step 408, current proximity values are greater than default calibration proximity values, calculate current proximity values and default calibration is close
The difference of value takes the difference as compensation for calibrating errors value.
Step 409 returns to error message.
The calibration method of infrared proximity transducer provided in an embodiment of the present invention can efficiently solve prover in producing line
Accidentally calibration proximity sensor guarantees red close to interference problem caused by sensing data device in inappropriate calibration environment
Outer proximity sensor is in ideal environment and is calibrated, and then improves the accuracy of compensation for calibrating errors value.
Embodiment five
Fig. 5 is a kind of structural block diagram of the calibrating installation for infrared proximity transducer that the embodiment of the present invention five provides, the dress
Setting can be implemented by software and/or hardware, and be typically integrated in mobile terminal, can pass through the calibration side of execution infrared proximity transducer
Method calibrates the infrared proximity transducer in mobile terminal.As shown in figure 5, the device includes: that proximity values obtain module
501, comparison module 502 and calibration module 503.
Wherein, proximity values obtain module 501, are used for when mobile terminal is in calibration instrument, if infrared proximity senses
Device calibration event is triggered, then obtains the current proximity values of the infrared proximity transducer;Comparison module 502, for comparing
Whether the difference for stating current proximity values and benchmark proximity values is less than preset difference value threshold value;Wherein, the benchmark proximity values are the shifting
When dynamic terminal is before entering the calibration instrument and in environment of the ambient light intensity less than the first preset strength threshold value, institute
State the proximity values that infrared proximity transducer is under non-occlusion state;Calibration module 503, in the current proximity values and base
When the difference of quasi- proximity values is less than preset difference value threshold value, calibration operation is executed, obtains compensation for calibrating errors value.
The calibrating installation of infrared proximity transducer provided in an embodiment of the present invention, mobile terminal is entered before calibration instrument
And when in ambient light intensity less than in the environment of the first preset strength threshold value, infrared proximity transducer is under non-occlusion state
Proximity values be denoted as benchmark proximity values, after mobile terminal enters calibration instrument, proximity values obtain module 501 detect infrared connect
When nearly pick up calibration event is triggered, the current proximity values of infrared proximity transducer are obtained, it is relatively more current by comparison module 502
Whether the difference of proximity values and benchmark proximity values is less than preset difference value threshold value, if being less than, illustrates that current alignment environment is more satisfactory, can
Calibration operation is executed by calibration module 503, and then obtains accurate compensation for calibrating errors value.By using above-mentioned technical proposal,
When being calibrated by tester, it is ensured that infrared proximity transducer is in ideal environment and is calibrated, in turn
Improve the accuracy of compensation for calibrating errors value.
On the basis of the above embodiments, the comparison module is also used to: whether comparing current environment luminous intensity less than
Two preset strength threshold values;The calibration module is specifically used for: being less than in the difference of the current proximity values and benchmark proximity values default
Difference threshold, and when current environment luminous intensity is less than the second preset strength threshold value, calibration operation is executed, obtains compensation for calibrating errors value.
On the basis of the above embodiments, which may also include sensor starting module and benchmark proximity values determine mould
Block.Wherein, sensor starting module, for detecting power-on event before infrared proximity transducer calibration event is triggered
When, start infrared proximity transducer and ambient light sensor;Benchmark proximity values determining module, in the ambient light sensor
In the state that the ambient light intensity detected is less than the first preset strength threshold value, obtain the infrared proximity transducer be in do not hide
The proximity values of preset quantity under gear state approach on the basis of determining the minimum proximity values in the proximity values of the preset quantity
Value.
On the basis of the above embodiments, the calibration module is specifically used for: close in the current proximity values and benchmark
The difference of value is less than preset difference value threshold value, and when the current proximity values are greater than default calibration proximity values, calculates described current close
The difference of value and the default calibration proximity values, takes the difference as compensation for calibrating errors value.
On the basis of the above embodiments, which may also include that error message return module, for described red in acquisition
After the current proximity values of outer proximity sensor, if the difference of the current proximity values and benchmark proximity values is more than or equal to described pre-
If difference threshold then returns to error message.
Embodiment six
The present embodiment six provides a kind of mobile terminal, which is integrated with infrared described in the embodiment of the present invention
The calibrating installation of proximity sensor can connect infrared in mobile terminal by executing the calibration method of infrared proximity transducer
Nearly sensor is calibrated.
Illustratively, the concretely mobile phone, smartwatch, tablet computer, game machine, a of the mobile terminal in the present embodiment
Personal digital assistant and digital multimedia player etc. are configured with the various equipment of infrared proximity transducer, preferably intelligent hand
Machine.
It, can when operator calibrates the infrared proximity transducer of the mobile terminal in the present embodiment in producing line
Guarantee that infrared proximity transducer is in ideal environment the accuracy for being calibrated, and then improving compensation for calibrating errors value.
The executable present invention of the calibrating installation and mobile terminal of the infrared proximity transducer provided in above-described embodiment is any
The calibration method of infrared proximity transducer provided by embodiment has and executes the corresponding functional module of this method and beneficial to effect
Fruit.The not technical detail of detailed description in the above-described embodiments, reference can be made to infrared proximity provided by any embodiment of the invention
The calibration method of sensor.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. the calibration method of infrared proximity transducer in a kind of mobile terminal characterized by comprising
When mobile terminal is in calibration instrument, if infrared proximity transducer calibration event is triggered, described infrared connect is obtained
The current proximity values of nearly sensor;
If the difference of the current proximity values and benchmark proximity values is less than preset difference value threshold value, calibration operation is executed, obtains calibration
Offset;Wherein, the benchmark proximity values are the mobile terminal before entering the calibration instrument and are in environmental light intensity
When degree is less than in the environment of the first preset strength threshold value, the infrared proximity transducer is in the proximity values under non-occlusion state,
The benchmark proximity values are to sentence to whether the calibration environment of the infrared proximity transducer in calibration instrument meets alignment requirements
Fixed standard.
2. the method according to claim 1, wherein if the difference of the current proximity values and benchmark proximity values is less than
Preset difference value threshold value, then execute calibration operation, obtains compensation for calibrating errors value, comprising:
If the difference of the current proximity values and benchmark proximity values is less than preset difference value threshold value, and current environment luminous intensity is less than second
Preset strength threshold value, then execute calibration operation, obtains compensation for calibrating errors value.
3. the method according to claim 1, wherein before infrared proximity transducer calibration event is triggered,
Further include:
When detecting power-on event, start infrared proximity transducer and ambient light sensor;
In the state that the ambient light intensity that the ambient light sensor detects is less than the first preset strength threshold value, described in acquisition
Infrared proximity transducer is in the proximity values of the preset quantity under non-occlusion state, by the proximity values of the preset quantity most
Small proximity values determine to be benchmark proximity values.
4. being wrapped the method according to claim 1, wherein the execution calibration operation, obtains compensation for calibrating errors value
It includes:
If the current proximity values are greater than default calibration proximity values, calculate the current proximity values and the default calibration is close
The difference of value takes the difference as compensation for calibrating errors value.
5. the method according to claim 1, wherein in the current proximity values for obtaining the infrared proximity transducer
Later, further includes:
If the difference of the current proximity values and benchmark proximity values is greater than or equal to the preset difference value threshold value, wrong letter is returned
Breath.
6. a kind of calibrating installation of infrared proximity transducer characterized by comprising
Proximity values obtain module, are used for when mobile terminal is in calibration instrument, if infrared proximity transducer calibration event quilt
Triggering, then obtain the current proximity values of the infrared proximity transducer;
Whether comparison module, the difference for the current proximity values and benchmark proximity values are less than preset difference value threshold value;Wherein,
The benchmark proximity values are that the mobile terminal is before entering the calibration instrument and pre- less than first in ambient light intensity
If when in the environment of intensity threshold, the infrared proximity transducer is in the proximity values under non-occlusion state, the benchmark is close
Value is whether to meet the standard that alignment requirements are determined to the calibration environment of the infrared proximity transducer in calibration instrument;
Calibration module, for executing calibration when the difference of the current proximity values and benchmark proximity values is less than preset difference value threshold value
Operation, obtains compensation for calibrating errors value.
7. device according to claim 6, which is characterized in that
The comparison module is also used to: whether comparing current environment luminous intensity less than the second preset strength threshold value;
The calibration module is specifically used for: it is less than preset difference value threshold value in the difference of the current proximity values and benchmark proximity values, and
When current environment luminous intensity is less than the second preset strength threshold value, calibration operation is executed, obtains compensation for calibrating errors value.
8. device according to claim 6, which is characterized in that further include:
Sensor starting module, for when detecting power-on event, opening before infrared proximity transducer calibration event is triggered
Dynamic infrared proximity transducer and ambient light sensor;
Benchmark proximity values determining module, the ambient light intensity for detecting in the ambient light sensor are default less than first strong
It spends in the state of threshold value, the proximity values for the preset quantity that the infrared proximity transducer is under non-occlusion state is obtained, by institute
It states the minimum proximity values in the proximity values of preset quantity and determines to be benchmark proximity values.
9. device according to claim 6, which is characterized in that further include:
Error message return module, for after the current proximity values for obtaining the infrared proximity transducer, if described current
The difference of proximity values and benchmark proximity values is greater than or equal to the preset difference value threshold value, then returns to error message.
10. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with as described in claim 6-9 any one
The calibrating installation of infrared proximity transducer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610530541.4A CN106210227B (en) | 2016-07-06 | 2016-07-06 | Calibration method and device of infrared proximity sensor and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610530541.4A CN106210227B (en) | 2016-07-06 | 2016-07-06 | Calibration method and device of infrared proximity sensor and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106210227A CN106210227A (en) | 2016-12-07 |
CN106210227B true CN106210227B (en) | 2019-03-01 |
Family
ID=57472996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610530541.4A Active CN106210227B (en) | 2016-07-06 | 2016-07-06 | Calibration method and device of infrared proximity sensor and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210227B (en) |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791209A (en) * | 2017-03-10 | 2017-05-31 | 上海传英信息技术有限公司 | The self-checking device and method of distance of mobile terminal sensor |
CN107483740B (en) * | 2017-08-25 | 2020-08-07 | 北京小米移动软件有限公司 | Calibration method and device for distance sensor and storage medium |
CN108279408B (en) * | 2018-01-24 | 2020-04-21 | Oppo广东移动通信有限公司 | Proximity sensor calibration method, device, mobile terminal and computer readable medium |
CN108415024B (en) * | 2018-01-24 | 2020-06-23 | Oppo广东移动通信有限公司 | Proximity sensor calibration method and device, mobile terminal and computer readable medium |
CN108362616B (en) * | 2018-02-08 | 2020-12-22 | 芜湖美智空调设备有限公司 | Dust sensor, calibration method thereof and air treatment equipment |
CN108848254A (en) * | 2018-05-25 | 2018-11-20 | 维沃移动通信有限公司 | A kind of calibration method and system of proximity sensor |
CN109001712B (en) * | 2018-07-05 | 2023-03-17 | 合肥联宝信息技术有限公司 | Infrared distance sensor calibration method and intelligent household appliance |
CN110793561B (en) * | 2018-08-03 | 2021-10-08 | Oppo(重庆)智能科技有限公司 | Terminal to be tested and proximity sensor testing method thereof |
CN109167857B (en) * | 2018-09-30 | 2022-06-07 | Oppo广东移动通信有限公司 | Calibration method, electronic device, storage medium, and computer apparatus |
CN109738004B (en) * | 2019-01-24 | 2021-02-26 | Oppo广东移动通信有限公司 | Method and device for calibrating proximity sensor, electronic equipment and storage medium |
CN110609977B (en) * | 2019-08-06 | 2023-08-11 | 深圳市万普拉斯科技有限公司 | Noise floor adjustment processing method, device and computer equipment based on proximity sensor |
CN112698420B (en) * | 2019-10-23 | 2023-11-03 | 广州奕至家居科技有限公司 | Object proximity sensing method and device |
CN111262986B (en) * | 2020-01-16 | 2021-03-26 | Oppo广东移动通信有限公司 | Calibration method and calibration device for proximity sensor and mobile terminal |
CN111654773B (en) * | 2020-05-29 | 2022-04-22 | 歌尔科技有限公司 | Bluetooth headset, calibration method and device for Bluetooth headset, and storage medium |
CN111698596B (en) * | 2020-05-29 | 2022-03-25 | 青岛歌尔智能传感器有限公司 | Earphone in-out box detection method, earphone box and readable storage medium |
CN111736139B (en) * | 2020-06-22 | 2023-05-23 | 歌尔科技有限公司 | Infrared calibration method, distance detection method, device and medium |
CN112612028B (en) * | 2020-12-28 | 2024-01-23 | 珠海格力电器股份有限公司 | Infrared proximity sensing method and device, air conditioner and storage medium |
CN112968985B (en) * | 2021-02-01 | 2023-07-04 | 维沃移动通信有限公司 | Infrared sensor compensation method and device and electronic equipment |
CN113596202B (en) * | 2021-07-06 | 2024-05-14 | 维沃移动通信有限公司 | Control method of photosensitive sensor and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197357A (en) * | 2013-02-26 | 2013-07-10 | 深圳市中兴移动通信有限公司 | Infrared proximity detector self-calibration method and device |
CN103941310A (en) * | 2014-04-09 | 2014-07-23 | 苏州佳世达电通有限公司 | Correcting method and system of proximity sensor |
CN104570144A (en) * | 2013-10-24 | 2015-04-29 | 展讯通信(上海)有限公司 | Self-adaptive induction threshold adjusting system and method for proximity sensor |
CN105049602A (en) * | 2015-06-05 | 2015-11-11 | 广东小天才科技有限公司 | Method and device for calibrating mobile terminal |
-
2016
- 2016-07-06 CN CN201610530541.4A patent/CN106210227B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197357A (en) * | 2013-02-26 | 2013-07-10 | 深圳市中兴移动通信有限公司 | Infrared proximity detector self-calibration method and device |
CN104570144A (en) * | 2013-10-24 | 2015-04-29 | 展讯通信(上海)有限公司 | Self-adaptive induction threshold adjusting system and method for proximity sensor |
CN103941310A (en) * | 2014-04-09 | 2014-07-23 | 苏州佳世达电通有限公司 | Correcting method and system of proximity sensor |
CN105049602A (en) * | 2015-06-05 | 2015-11-11 | 广东小天才科技有限公司 | Method and device for calibrating mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106210227A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106210227B (en) | Calibration method and device of infrared proximity sensor and mobile terminal | |
CN106464754B (en) | A method, device and equipment for calibrating detection distance | |
CN104407399B (en) | For the method at portable terminal alignment proximity transducer | |
CN105959492B (en) | Control method and device of infrared proximity sensor and mobile terminal | |
CN107290802B (en) | Proximity sensor calibration method, proximity sensor calibration device and intelligent terminal | |
CN106225806B (en) | Calibrate the method, device and mobile terminal of Magnetic Sensor | |
CN109155628A (en) | Proximity sensor, close to the calibration method of illuminance transducer, electronic equipment and proximity sensor | |
US10216602B2 (en) | Tool to measure the latency of touchscreen devices | |
CN105630158B (en) | Sensing data processing method, device and terminal device | |
CN105939427B (en) | Control method and device of infrared proximity sensor and mobile terminal | |
CN108923865A (en) | Calibration method, device, mobile terminal and the storage medium of infrared distance sensor | |
CN113080919B (en) | Heart rate detection method, device, equipment and computer readable storage medium | |
CN109341836A (en) | A method and device for calibrating a weighing platform | |
CN113017591A (en) | Wearable device wearing state detection method, wearable device wearing state detection device, wearable device wearing state detection equipment and storage medium | |
CN108594150B (en) | Calibration method, calibration device, calibration terminal and storage medium | |
CN108801321A (en) | Sensor calibrating method, electronic device and computer readable storage medium | |
CN108760042B (en) | Optical sensor calibration method and device, mobile device, medium and electronic device | |
CN109059181A (en) | Photoelectric sensor calibration method, device, air conditioner and readable storage medium storing program for executing | |
CN105342592A (en) | Electronic sphygmomanometer capable of automatically calibrating zero point and full scale | |
CN108354614A (en) | Blood glucose detection method, blood glucose detection correction method, and blood glucose detection device | |
CN105011922A (en) | Portable electronic device and real-time heartbeat measuring method thereof | |
CN110535997A (en) | A kind of calibration method, device, equipment and the storage medium of terminal screen light leakage | |
CN105841807A (en) | Method and system for enhancing light sensor detection stability and intelligent terminal | |
CN106932004B (en) | A kind of detection method and device of sensor | |
CN111831521B (en) | Test method of interrupt response time, processor and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |