CN109840032A - The calibration method and device, electronic equipment and storage medium of proximity sensor - Google Patents
The calibration method and device, electronic equipment and storage medium of proximity sensor Download PDFInfo
- Publication number
- CN109840032A CN109840032A CN201910068707.9A CN201910068707A CN109840032A CN 109840032 A CN109840032 A CN 109840032A CN 201910068707 A CN201910068707 A CN 201910068707A CN 109840032 A CN109840032 A CN 109840032A
- Authority
- CN
- China
- Prior art keywords
- proximity sensor
- infrared emission
- emission power
- proximity
- 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.)
- Granted
Links
Landscapes
- Geophysics And Detection Of Objects (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
The embodiment of the present application provides the calibration method and device of a kind of proximity sensor, electronic equipment and storage medium, this method is applied to be provided with proximity sensor electronic equipment below touch display screen, this method comprises: if detecting, electronic equipment is in breath screen state, when then obtaining proximity sensor and being detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power, according to each infrared emission power, and the corresponding proximity values of each infrared emission power, determine whether the calibration condition for meeting proximity sensor, when determination meets the calibration condition, to being calibrated close to threshold value for proximity sensor.The application can effectively determine whether the calibration condition for meeting proximity sensor, and in the case where meeting calibration condition, realize to the accurate calibration of proximity sensor, can effectively solve the problems, such as proximity sensor close to dysfunction.
Description
Technical field
This application involves technical field of electronic equipment, and in particular to a kind of calibration method of proximity sensor and device, electricity
Sub- equipment and storage medium.
Background technique
As the screen accounting of electronic equipment is higher and higher, shield the epoch at hand comprehensively, and with the hair of comprehensive screen technology
It opens up, main reference scheme certainly will be become close to scheme under screen.
It is still had under screen close to scheme and needs to overcome the problems, such as, connect for example, the proximity sensor in electronic equipment exists
The problem of nearly dysfunction.
Summary of the invention
The embodiment of the present application provides the calibration triggering method and device, electronic equipment and storage Jie of a kind of proximity sensor
Matter, can solve proximity sensor in the prior art close to dysfunction the problem of.
In a first aspect, the embodiment of the present application provides a kind of calibration method of proximity sensor, the method is applied to touch
The electronic equipment of the proximity sensor is provided with below display screen, which comprises
If detecting, the electronic equipment is in breath screen state, obtains the proximity sensor according at least two differences
Infrared emission power when being detected, the corresponding proximity values of each infrared emission power;
According to each infrared emission power and the corresponding proximity values of each infrared emission power, it is determined whether meet
The calibration condition of the proximity sensor;
When determination meets the calibration condition of the proximity sensor, to being carried out close to threshold value for the proximity sensor
Calibration.
Second aspect, the embodiment of the present application also provide a kind of calibrating installation of proximity sensor, and described device is applied to touching
The electronic equipment that the proximity sensor is provided with below display screen is touched, described device includes:
Module is obtained, if obtaining the proximity sensor for detecting that the electronic equipment is in breath screen state and pressing
When being detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power;
Determining module is used for according to each infrared emission power and the corresponding proximity values of each infrared emission power,
Determine whether the calibration condition for meeting the proximity sensor;
Calibration module, for when determine meet the calibration condition of the proximity sensor when, to the proximity sensor
It is calibrated close to threshold value.
The third aspect, the embodiment of the present application also provide a kind of electronic equipment, including being set to connecing below touch display screen
Nearly sensor and memory, processor and the computer journey for being stored on the memory and running on the processor
Sequence, when the processor executes the computer program, in the calibration method of realizing proximity sensor as described in relation to the first aspect
Each step.
Fourth aspect also provides a kind of storage medium in the embodiment of the present application, is stored thereon with computer program, the meter
When calculation machine program is executed by processor, each step in the calibration method of proximity sensor as described in relation to the first aspect is realized.
The calibration method of proximity sensor provided by the embodiments of the present application, this method are applied to setting below touch display screen
There is proximity sensor electronic equipment, this method comprises: electronic equipment is in breath screen state if detecting, obtains proximity sensor
When being detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power, according to each red
Outer transmission power and the corresponding proximity values of each infrared emission power, it is determined whether the calibration condition for meeting proximity sensor, when true
When meeting the calibration condition surely, to being calibrated close to threshold value for proximity sensor.By obtaining proximity sensor at least two
Corresponding proximity values when a different infrared emission power and each infrared emission power detection, making it possible to effective determination is
The no calibration condition for meeting proximity sensor, and in the case where meeting calibration condition, realize the accurate school to proximity sensor
Standard, can effectively solve the problem that proximity sensor close to dysfunction the problem of.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those skilled in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is the structural block diagram of a kind of electronic equipment in the embodiment of the present application;
Fig. 2 is the flow diagram of the calibration method of proximity sensor in the embodiment of the present application;
Fig. 3 is the sub-process schematic diagram of the calibration method of proximity sensor in the embodiment of the present application;
Fig. 4 is another sub-process schematic diagram of the calibration method of proximity sensor in the embodiment of the present application;
Fig. 5 is the another sub-process schematic diagram of the calibration method of proximity sensor in the embodiment of the present application;
Fig. 6 is the another sub-process schematic diagram of the calibration method of proximity sensor in the embodiment of the present application;
Fig. 7 is the program module schematic diagram of the calibrating installation of proximity sensor in the embodiment of the present application;
Fig. 8 is the subroutine module schematic diagram of the calibrating installation of proximity sensor in the embodiment of the present application;
Fig. 9 is another subroutine module schematic diagram of the calibrating installation of proximity sensor in the embodiment of the present application;
Figure 10 is the another subroutine module schematic diagram of the calibrating installation of proximity sensor in the embodiment of the present application;
Figure 11 is the another subroutine module schematic diagram of the calibrating installation of proximity sensor in the embodiment of the present application.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the application
Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows the structural block diagram of a kind of electronic equipment.The calibration side of proximity sensor provided by the embodiments of the present application
Method can be applied in electronic equipment 10 as shown in Figure 1, which can be, but not limited to include: that need to maintain by battery
It operates normally and supports network and smart phone, the tablet computer of download function etc..
As shown in Figure 1, electronic equipment 10 includes memory 101, storage control 102, one or more (is only shown in figure
One) processor 103, Peripheral Interface 104, radio-frequency module 105, Touch Screen 106 and proximity sensor 107.These components
It is mutually communicated by one or more communication bus/signal wire 108.
It is appreciated that structure shown in FIG. 1 is only to illustrate, the structure of electronic equipment is not caused to limit.Electronics is set
Standby 10 may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.It is shown in FIG. 1
Each component can be realized using hardware, software, or its combination.
Memory 101 can be used for storing software program and module, such as the school of the proximity sensor in the embodiment of the present application
Corresponding program instruction/the module of quasi- method and apparatus, the software program that processor 103 is stored in memory 101 by operation
And module, thereby executing various function application and data processing, that is, realize the calibration method of above-mentioned proximity sensor with
Device.
Memory 101 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 101 can further comprise
The memory remotely located relative to processor 103, these remote memories can pass through network connection to electronic equipment 10.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Processor 103
And other possible components can carry out the access of memory 101 under the control of storage control 102.
Various input/output devices are couple CPU and memory 101 by Peripheral Interface 104.The operation of processor 103 is deposited
Various softwares, instruction in reservoir 101 are to execute the various functions of electronic equipment 10 and carry out data processing.
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be in one single chips
It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with
Communication network or other equipment are communicated.Radio-frequency module 105 may include various existing for executing the electricity of these functions
Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card,
Memory etc..Radio-frequency module 105 can be with the wireless network progress of various networks such as internet, intranet, preset type
Communication is communicated by the wireless network of preset type with other equipment.The wireless network of above-mentioned preset type can wrap
Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Various communications can be used in the wireless network of above-mentioned preset type
Standard, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile
Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE) is wide
Band Code Division Multiple Access (Wideband Code Division Multiple Access, W-CDMA), Code Division Multiple Access
(Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA),
Bluetooth, adopting wireless fidelity technology (Wireless-Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE
802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over
Internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for
Microwave Access, Wi-Max), other for mail, instant messaging and short message agreement and any other is suitable
Communications protocol.
Touch Screen 106 provides an output and input interface simultaneously between electronic equipment and user.Specifically, touch-control
Screen 106 shows video output to user, and the content of these videos output may include text, figure, video and its any group
It closes.Some outputs are the result is that correspond to some user interface objects.Touch Screen 106 also receives the input of user, such as user
The gesture operations such as click, sliding, so that user interface object responds the input of these users.Detect user's input
Technology can be based on resistance-type, condenser type or any other possible touch control detection technology.106 display unit of Touch Screen
Specific example include but is not limited to liquid crystal display or light emitting polymer displays.
Proximity sensor 107 is set to 106 lower section of Touch Screen of electronic equipment 10, wherein proximity sensor 107 is one
Kind has the device of perception object proximity ability, it there is sensitivity characteristic to identify object close object using displacement sensor
Body approaches, and exports corresponding proximity values, such as infrared proximity transducer.
The calibration method of proximity sensor in the embodiment of the present application is described based on above-mentioned electronic equipment 10.
Referring to Fig. 2, Fig. 2 is the flow diagram of the calibration method of proximity sensor in the embodiment of the present application, this implementation
In example, the calibration method of above-mentioned proximity sensor includes:
If step 201 detects that the electronic equipment is in breath screen state, the proximity sensor is obtained according at least
When two different infrared emission power are detected, the corresponding proximity values of each infrared emission power.
Wherein, above-mentioned proximity sensor can be a variety of different types of proximity sensors, commonly can be infrared connect
Nearly sensor, by taking infrared proximity transducer as an example, infrared proximity transducer can emit infrared ray to touch panel direction, then survey
The amount reflected infra-red intensity of object comes the distance between judgment object and infrared proximity transducer, the infrared ray received
Intensity is stronger, then it represents that the distance between itself and object are smaller.Infrared proximity transducer can turn the infra-red intensity measured
The measured value with its proportional is turned to, which is properly termed as proximity values, and infrared proximity transducer obtains close
Value is bigger, indicates that the distance between itself and object are smaller.
In general, the proximity values that proximity sensor detects can determine that it is proximity state or separate shape between object
State, and the judgement of the state when proximity values are greater than close to threshold value, is then can determine based on being determined close to threshold value
Proximity state between proximity sensor and object, when proximity values are less than close to threshold value, can determine proximity sensor with
It is far from state between object.
Wherein, when proximity sensor is arranged in below the touch screen of mobile terminal, bottom will be generated and made an uproar value, wherein bottom is made an uproar value
When any object is not present for the top of touch display screen, light is detected in mobile terminal internal diffraction and by proximity sensor
Signal value.Above-mentioned is to make an uproar what value was determined the bottom of based on close to threshold value, and making an uproar the bottom of with, it is related to be worth, such as can be close to thresholding
Value and the sum of a numerical value are as close to threshold value.
Currently, shielding the position of lower proximity sensor after pressing electronic equipment screen two sides or electronic equipment are fallen
Setting may change, and the bottom of proximity sensor value of making an uproar is caused to change, and the make an uproar variation of value of bottom connects to detect
Close values inaccuracy, to can cause close to dysfunction, therefore, it is necessary to calibrating close to threshold value to proximity sensor.
It should be noted that if needing to calibrate proximity sensor, then need to be in breath screen state in touch screen, and
It is carried out under conditions of have no occluder above touch screen.Wherein, it needs to be because starting under bright screen state close in breath screen state
When sensor, it may appear that the phenomenon that touch screen flashes, screen flicker will affect the brightness of touch screen, and the variation of brightness, which will affect, to be connect
The collected proximity values of nearly sensor, lead to alignment error.Have no occluder above touch screen is needed, is the variation of the value because bottom is made an uproar
Result in proximity sensor close to dysfunction, therefore, if desired calibrated to close to threshold value, need to measure true
Bottom make an uproar value.
In the present embodiment, in order to when electronic equipment is in breath screen state, it is determined whether can be to proximity sensor
Calibrated close to threshold value, can first make proximity sensor infrared according at least two different infrared emission power emissions
Then signal obtains under each infrared emission power, the corresponding proximity values of proximity sensor.For example, proximity sensor according to
When infrared emission power P 1 emits infrared signal, the corresponding proximity values PS1 of proximity sensor is obtained;In proximity sensor according to red
When outer transmitting power P 2 emits infrared signal, the corresponding proximity values PS2 of proximity sensor is obtained;In proximity sensor according to infrared
When transmission power P3 emits infrared signal, the corresponding proximity values PS3 of acquisition proximity sensor ..., it is to be understood that it is above-mentioned
The proximity values got can be a numerical value, be also possible to multiple numerical value, for example, can be one for proximity values PS1
Numerical value is also possible to multiple numerical value and constitutes PS1.
Wherein it is possible to preset a calibration cycle in the electronic device, i.e., judgement at regular intervals is once close to sensing
Whether device, which needs, is calibrated, if it is determined that need to calibrate proximity sensor, then make proximity sensor according at least two not
Same infrared emission power emission infrared signal, and obtain under each infrared emission power, the corresponding proximity values of proximity sensor.
Step 202, according to each infrared emission power and the corresponding proximity values of each infrared emission power, determine
Whether the calibration condition of the proximity sensor is met.
It is carried out under certain calibration condition since the dynamic calibration of proximity sensor must meet in proximity sensor, otherwise
Calibration can be led to the problem of.Therefore the present embodiment needs after getting the corresponding proximity values of above-mentioned each infrared emission power
According to each infrared emission power and the corresponding proximity values of each infrared emission power, it is determined whether meet the calibration of proximity sensor
Condition.
Step 203, when determine meet the calibration condition of the proximity sensor when, to the proximity sensor close to door
Limit value is calibrated.
In the present embodiment, when determination meets the calibration condition of proximity sensor, that is, indicating at this time can be to close sensing
Device is calibrated close to threshold value;When determination is unsatisfactory for the calibration condition of proximity sensor, that is, indicate to dock at present
Nearly sensor is calibrated close to threshold value.
Wherein, in the calibration condition for being unsatisfactory for proximity sensor, preset time period can be being waited, or in next school
It is each red when reacquisition proximity sensor is detected according at least two different infrared emission power when paracycle arrives
The corresponding proximity values of outer transmission power, the calibration condition for whether meeting proximity sensor are then redefined, if it is satisfied, then right
Proximity sensor is calibrated close to threshold value, if conditions are not met, then needing to wait preset time period again, or waits next school
Paracycle, and so on.
The calibration method of proximity sensor provided by the embodiments of the present application, this method are applied to setting below touch display screen
There is proximity sensor electronic equipment, this method comprises: electronic equipment is in breath screen state if detecting, obtains proximity sensor
When being detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power, according to each red
Outer transmission power and the corresponding proximity values of each infrared emission power, it is determined whether the calibration condition for meeting proximity sensor, when true
When meeting the calibration condition surely, to being calibrated close to threshold value for proximity sensor.By obtaining proximity sensor at least two
Corresponding proximity values when a different infrared emission power and each infrared emission power detection, making it possible to effective determination is
The no calibration condition for meeting proximity sensor, and in the case where meeting calibration condition, realize the accurate school to proximity sensor
Standard, can effectively solve the problem that proximity sensor close to dysfunction the problem of.
Further, based on the above embodiment, in the present embodiment, if detecting electronics described in above-mentioned steps 201
Equipment is in breath screen state, then when obtaining proximity sensor and being detected according at least two different infrared emission power, respectively
The corresponding proximity values of infrared emission power, further includes:
If detecting, electronic equipment is in breath screen state, and detects bright screen instruction, then obtains proximity sensor according to extremely
When few two different infrared emission power are detected, the corresponding proximity values of each infrared emission power, wherein execute above-mentioned school
Duration required for quasi- method is less than or equal to switching duration, when switching a length of touch display screen switched to from breath screen state it is bright
Duration required for screen state.
In the present embodiment, in order to ensure electronic equipment in use, proximity sensor close to normally functioning probability,
It can judge once whether need to calibrate proximity sensor, if it is determined that connect before electronic equipment each time bright screen
Nearly sensor is calibrated, then is calibrated immediately;If it is determined that proximity sensor does not need to be calibrated, then just it is always on
Screen.
Wherein, it is cut less than or equal to touch display screen from breath screen state as executing duration required for above-mentioned calibration method
Required duration when bright screen state is shifted to, therefore, the process calibrated using above-mentioned calibration method to proximity sensor is simultaneously
Will not influence electronic equipment is just always on screen.
Further, it in order to effectively shorten duration required for executing above-mentioned calibration method, in the present embodiment, is obtaining
When proximity sensor is detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power
When, it can be in the following ways:
It controls proximity sensor and carries out infrared emission according at least two different infrared emission power in preset duration,
And the continuous sampling of proximity values is carried out, the corresponding proximity values of each infrared emission power are obtained, above-mentioned preset duration is less than above-mentioned cut
Change duration.
Specifically, the continuous sampling of proximity values is to say the waiting time in above-mentioned proximity sensor sampling interval can be arranged
It is 0, that is, the time interval for acquiring two proximity values is zero.For example, it is assumed that the time of integration of a proximity values sampling process is
Therefore 3ms, even if adding the time of calculation processing, was entirely calibrated then the time of 10 proximity values of sampling also only has 30ms
Journey is also no more than 50ms, and so, this calibration process can't cause significantly to influence on the screen bright screen time.
Wherein, above-mentioned bright screen instruction can be user and be instructed by pressing the bright screen that physical power source key is triggered, can also
To be that the bright screen that the reminder message generated in electronic equipment is triggered instructs, which includes call reminding, application message
Remind etc..
That is the calibration method of proximity sensor provided by the present embodiment can judge one before the bright screen of electronic equipment
It is secondary whether to need to calibrate proximity sensor, if desired, the touch display screen that then can use electronic equipment shields shape from breath
State is switched to the interval time between bright screen state, calibrates to proximity sensor, and it is close later can to effectively improve bright screen
Sensor does not interfere with bright screen process close to normally functioning probability.
It further, based on the above embodiment, is the calibration side of proximity sensor in the embodiment of the present application referring to Fig. 3, Fig. 3
The sub-process schematic diagram of method, in the present embodiment, according to each infrared emission power and each described infrared in above-mentioned steps 202
The corresponding proximity values of transmission power, it is determined whether meet the calibration condition of the proximity sensor, comprising:
Step 301, according to each infrared emission power and the corresponding proximity values of each infrared emission power, determine
It whether there is shelter above the touch display screen.
Wherein, in the case that the dynamic calibration of proximity sensor has to block above proximity sensor without object into
Row, otherwise can lead to the problem of calibration.
In the present embodiment, it whether there is shelter in order to the top of accurate detection proximity sensor, it can basis
Above-mentioned each infrared emission power and the corresponding proximity values of each infrared emission power whether there is above touch display screen to determine
Shelter.
Specifically, calculating the first ratio that each infrared emission power is formed, and utilize using above-mentioned each infrared emission power
The corresponding proximity values of each infrared emission power calculate the second ratio that each proximity values are formed.Then according to above-mentioned first ratio and
Second ratio determines the top of electronic equipment with the presence or absence of shelter.
Wherein, when above-mentioned each infrared emission power be P1 and two kinds of P2 when, it is assumed that corresponding proximity values be respectively PS1 and
PS2, then above-mentioned first ratio is P1:P2, and the second ratio that the corresponding proximity values of each infrared emission power are formed is PS1:PS2.
Similarly, when above-mentioned each infrared emission power is tri- kinds of P1, P2 and P3, above-mentioned first ratio is P1:P2:P3, each infrared emission
The second ratio that the corresponding proximity values of power are formed is PS1:PS2:PS3, and so on.
Specifically, when the difference between above-mentioned first ratio and the second ratio is less than or equal to preset first threshold value, really
Shelter is not present in the top for determining electronic equipment;When the difference between the first ratio and the second ratio is greater than preset first threshold value
When, determine that there are shelters above electronic equipment.
Wherein, when above-mentioned each infrared emission power is two kinds, can directly calculate the first ratio and the second ratio it
Between difference, when above-mentioned each infrared emission power be three kinds or more when, can first calculate the first two infrared emission power
Ratio, then calculate the ratio of the ratio Yu the latter infrared emission power again, and so on, obtain above-mentioned first ratio;
Furthermore it is possible to calculate above-mentioned second ratio using same method.
For example, when above-mentioned each infrared emission power be P1, P2, P3, P4 when, above-mentioned first ratio be ((P1/P2)/P3)/
P4, the second ratio that the corresponding proximity values of each infrared emission power are formed are ((PS1/PS2)/PS3)/PS4.
Wherein, the difference between the first ratio and the second ratio can be the difference between the first ratio and the second ratio
Absolute value.
It is understood that when shelter is not present in the top of electronic equipment, the proximity values meeting of proximity sensor output
Substantially it is consistent, therefore, after the variation of infrared emission power reflection, the proximity values of proximity sensor can also occur accordingly
Variation, and proximity values amplitude of variation relationship proportional to the amplitude of variation of infrared emission power, therefore, when above-mentioned first ratio and
When difference between second ratio is less than or equal to preset first threshold value, then it can determine that the top of electronic equipment is not present and block
Object.
Opposite, there are when shelter above electronic equipment, the proximity values of proximity sensor output can then become
Change, although the proximity values of proximity sensor can also occur to change accordingly after the variation of infrared emission power reflection, due to
Shelter is different to the reflectivity of the infrared light of different capacity, therefore the variation width of proximity values amplitude of variation and infrared emission power
The disproportionate relationship of degree meeting, therefore when the difference between above-mentioned first ratio and the second ratio is greater than preset first threshold value, then may be used
To determine, there are shelters above electronic equipment.
Wherein, above-mentioned preset first threshold value can be obtained by test of many times.
Step 302, when determining that determination meets the proximity sensor there is no when shelter above the touch display screen
Calibration condition.
The calibration method of proximity sensor provided by the present embodiment, according to each infrared emission power and each infrared emission
The corresponding proximity values of power determine above touch display screen with the presence or absence of shelter;It is not present above touch display screen when determining
When shelter, the calibration condition for meeting proximity sensor is determined, so that school can be carried out close to threshold value to proximity sensor
Standard is prevented and is calibrated to crossing for proximity sensor.
It further, based on the above embodiment, is the calibration side of proximity sensor in the embodiment of the present application referring to Fig. 4, Fig. 4
Another sub-process schematic diagram of method, in the present embodiment, according to each infrared emission power and each described in above-mentioned steps 202
The corresponding proximity values of infrared emission power, it is determined whether meet the calibration condition of the proximity sensor, comprising:
Step 401, according to each infrared emission power and the corresponding proximity values of each infrared emission power, determine
It whether there is shelter above the touch display screen.
In the present embodiment, step 401 is consistent with the content that the step 301 in above-described embodiment is stated, and specifically can refer to
Step 301 is stated, details are not described herein.
Step 402, when determining above the touch display screen there is no when shelter, according to each infrared emission power
Corresponding proximity values, determine whether the proximity sensor is in close to dysfunction state.
Step 403, when determining that the proximity sensor is in close to dysfunction state, determine meet it is described close to passing
The calibration condition of sensor.
In the present embodiment, determining above touch display screen there is no after shelter, it can also be further according to each infrared hair
The corresponding proximity values of power are penetrated, determine whether proximity sensor is in close to dysfunction state, if proximity sensor is in
Close to dysfunction state, it is determined that meet the calibration condition of the proximity sensor;If proximity sensor is not at close
Dysfunction state, it is determined that be unsatisfactory for the calibration condition of proximity sensor.
It is understood that when proximity sensor is not at close to dysfunction state, if continued to close to sensing
Device is calibrated, then undoubtedly will increase powder consumption of electronic equipment, and is likely to cause and is accidentally calibrated, therefore in this implementation, only true
When determining above touch display screen that there is no shelters, and determining that proximity sensor is in close to dysfunction state, just determine completely
The calibration condition of sufficient proximity sensor.
Specifically, determining whether proximity sensor is in close to function according to the corresponding proximity values of each infrared emission power
The mode of abnormality can specifically include following steps:
Step a, the first bottom that stored previous calibration obtains is obtained to make an uproar value.
In the present embodiment, in order to ensure the accuracy of calibration, and the complexity of calibration is reduced, it is available stored
The first bottom that previous calibration obtains is made an uproar value, rather than the original bottom for obtaining proximity sensor is made an uproar, value is calibrated.Wherein, bottom is made an uproar
Value is the top of touch display screen there is no when any close object, and the proximity values exported in proximity sensor can also be worked as
Work is noise figure existing for proximity sensor itself.
Step b, it makes an uproar value when the corresponding proximity values of each infrared emission power are respectively less than first bottom;Alternatively, when each
The corresponding proximity values of the infrared emission power are all larger than first bottom and make an uproar value, and the difference made an uproar between value with first bottom
When being all larger than default second threshold, determine that the proximity sensor is in close to dysfunction state.
In the present embodiment, in the case where shelter is not present in the top of electronic equipment, if each infrared emission power is corresponding
Proximity values be respectively less than that value is made an uproar at above-mentioned first bottom or the corresponding proximity values of each infrared emission power are much larger than the first bottom and make an uproar value
When, then it can determine that proximity sensor is in close to dysfunction state.
Step c, when the corresponding proximity values of each infrared emission power are all larger than or are made an uproar value equal to first bottom,
And with first bottom make an uproar the difference between value be respectively less than or be equal to the second threshold when, determine that the proximity sensor is not located
In close to dysfunction state.
In the present embodiment, under normal circumstances, if proximity sensor is not in close to dysfunction state, set in electronics
In the case that shelter is not present in standby top, the corresponding proximity values of each infrared emission power should be equal to above-mentioned first bottom and make an uproar
Value.It is contemplated that the ambient light intensity of ambient enviroment where electronic equipment can have centainly the proximity values of proximity sensor
It influences, therefore the present embodiment can be set an error range, i.e. the corresponding proximity values of infrared emission power and the first bottom are made an uproar value
Between difference be respectively less than or be equal to second threshold when, equally also think that proximity sensor is not in close to dysfunction state.
The calibration method of proximity sensor provided by the present embodiment is determining that there is no block above touch display screen
Object, and when determining that proximity sensor is in close to dysfunction state, just determination meets the calibration condition of proximity sensor, thus
Calibration number can be effectively reduced, ensures that electronic equipment works normally.
It further, based on the above embodiment, is the calibration side of proximity sensor in the embodiment of the present application referring to Fig. 5, Fig. 5
The another sub-process schematic diagram of method, it is corresponding close according to each infrared emission power in above-mentioned steps 402 in the present embodiment
Value, determines whether the proximity sensor is in the mode close to dysfunction state, further includes:
Step 501 calculates maximum proximity values and minimum proximity values in the corresponding proximity values of each infrared emission power
The corresponding average value of proximity values of difference and each infrared emission power.
Step 502 is all larger than preset difference value threshold value, and each infrared emission when the difference of each infrared emission power
The corresponding average value of the proximity values of power is not in bottom and makes an uproar when being worth in effective range, it is determined that at the proximity sensor
In the state close to dysfunction.
Specifically, can sample to obtain when proximity sensor is detected according at least two different infrared emission power
At least two different proximity values calculate each infrared when determining whether proximity sensor is in close to the state of dysfunction
The proximity values point of the difference and each infrared emission power of maximum proximity values and minimum proximity values in the corresponding proximity values of transmission power
Then not corresponding average value judges whether proximity sensor is in the shape close to dysfunction using the difference and average value
State.
Wherein, in order to ensure the accuracy of calibration, and the complexity of calibration is reduced, available electronic equipment is preset
Bottom, which is made an uproar, is worth effective range, to determine whether proximity sensor is in the state close to dysfunction.Wherein, it is aobvious to touch to make an uproar value for bottom
There is no when any close object, the proximity values of proximity sensor output can also be considered as approaching sensing for the top of display screen
Noise figure existing for device itself.
It is understood that under normal circumstances, if proximity sensor is not in close to dysfunction state, in electronics
It is above-mentioned since the extraneous conditioned reflex above touch display screen is identical in the case that shelter is not present in the top of equipment
The size of the corresponding proximity values of each infrared emission power can be consistent substantially, and the average value of multiple proximity values should be at bottom
It makes an uproar and is worth in effective range.Thus it can derive, if the difference of maximum proximity values and minimum proximity values is greater than in multiple proximity values
Preset threshold, and the average value of multiple proximity values is not at bottom and makes an uproar and is worth in effective range, then it represents that proximity sensor is in close
The state of dysfunction.
The calibration method of proximity sensor provided by the present embodiment, it is corresponding close by calculating each infrared emission power
Maximum proximity values and the minimum difference of proximity values and the corresponding average value of proximity values of each infrared emission power, come in value
Judge whether proximity sensor is in close to dysfunction state, shelter, and close biography are not present above touch display screen
When sensor is in close to dysfunction state, just determination meets the calibration condition of proximity sensor, so as to effectively reduce school
Quasi- number prevents from accidentally calibrating, and ensures that electronic equipment works normally.
It further, based on the above embodiment, is the calibration side of proximity sensor in the embodiment of the present application referring to Fig. 6, Fig. 6
The another sub-process schematic diagram of method in the present embodiment, carries out the proximity sensor close to threshold value in above-mentioned steps 203
Calibration, comprising:
Step 601, when determining that the proximity sensor is detected according to real work power, obtained proximity values conduct
Obtained the second bottom is calibrated to make an uproar value.
Step 602, value calibrating close to threshold value to the proximity sensor of being made an uproar according to second bottom.
In the present embodiment, when being calibrated, proximity sensor is detected according to real work power, then obtains inspection
The proximity values measured make an uproar value using the proximity values as the second bottom, then can make an uproar value to proximity sensor according to second bottom
Calibrated close to threshold value.
Specifically, obtaining obtained the first bottom of proximity sensor previous calibration makes an uproar value and first close to threshold value;It determines
Second bottom value of making an uproar makes an uproar that perhaps decreasing value is close to first according to the increment value or decreasing value for the increment value of value relative to the first bottom
Threshold value is calibrated, and second after being calibrated is close to threshold value.
Wherein, determine the second bottom make an uproar value make an uproar relative to the first bottom value increment value after, first can be calculated close to door
Limit value and above-mentioned increment value and, and by it is calculated and as second after calibration close to threshold value;Or determining second
Bottom make an uproar value make an uproar relative to the first bottom value decreasing value after, can calculate first close to threshold value and above-mentioned decreasing value difference, and
By calculated difference as second after calibrating close to threshold value.
The calibration method of proximity sensor provided by the present embodiment, determine proximity sensor according to real work power into
When row detection, obtained proximity values are made an uproar value as the second bottom that calibration obtains, and then making an uproar value according to second bottom can be to approaching
Sensor is calibrated close to threshold value.I.e. the present embodiment can be realized and be passed to close in the case where meeting calibration condition
The accurate calibration of sensor, can effectively solve the problem that proximity sensor close to dysfunction the problem of.
Further, the embodiment of the present application also provides a kind of calibrating installation 200 of proximity sensor, which is applied to touching
The electronic equipment for being provided with the proximity sensor below display screen is touched, is in the embodiment of the present application close to biography referring to Fig. 7, Fig. 7
The program module schematic diagram of the calibrating installation of sensor, in the present embodiment, the calibrating installation 200 of above-mentioned proximity sensor includes:
Module 701 is obtained, if obtaining proximity sensor according at least for detecting that electronic equipment is in breath screen state
When two different infrared emission power are detected, the corresponding proximity values of each infrared emission power.
Determining module 702, for corresponding close according to each infrared emission power and each infrared emission power
Value, it is determined whether meet the calibration condition of the proximity sensor.
Calibration module 703, for when determine meet the calibration condition of the proximity sensor when, to the proximity sensor
Calibrated close to threshold value.
The calibrating installation 200 of proximity sensor provided by the embodiments of the present application, the device are applied to below touch display screen
Be provided with proximity sensor electronic equipment, may be implemented: if detecting, electronic equipment is in breath screen state, obtains close to sensing
When device is detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power, according to each
Infrared emission power and the corresponding proximity values of each infrared emission power, it is determined whether the calibration condition for meeting proximity sensor, when
When determination meets the calibration condition, to being calibrated close to threshold value for proximity sensor.By obtaining proximity sensor at least
Corresponding proximity values, make it possible to effective determination when two different infrared emission power and each infrared emission power detection
Whether meet the calibration condition of proximity sensor, and in the case where meeting calibration condition, realizes to the accurate of proximity sensor
Calibration, can effectively solve the problem that proximity sensor close to dysfunction the problem of.
Further, based on the above embodiment, in the present embodiment, module 701 is obtained, is also used to:
If detecting, the electronic equipment is in breath screen state, and detects bright screen instruction, then obtains described close to sensing
When device is detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power,
In, it executes duration required for the calibration method and is less than or equal to switching duration, when switching, a length of touchs was shown
Screen switches to duration required for bright screen state from breath screen state.
Wherein, it is each described when the proximity sensor being taken to be detected according at least two different infrared emission power
The corresponding proximity values of infrared emission power, comprising:
Control the proximity sensor carried out in preset duration according at least two different infrared emission power it is infrared
Transmitting, and the continuous sampling of proximity values is carried out, the corresponding proximity values of each infrared emission power are obtained, the preset duration is small
In the switching duration.
That is the calibrating installation 200 of proximity sensor provided by the present embodiment can be sentenced before the bright screen of electronic equipment
It is disconnected once whether to need to calibrate proximity sensor, if desired, then to can use the touch display screen of electronic equipment from breath
Screen state is switched to the interval time between bright screen state, calibrates to proximity sensor, after capable of effectively improving bright screen
Proximity sensor does not interfere with bright screen process close to normally functioning probability.
It further, based on the above embodiment, is the calibration cartridge of proximity sensor in the embodiment of the present application referring to Fig. 8, Fig. 8
The subroutine module schematic diagram set, in the present embodiment, above-mentioned determining module 702 is specifically included:
First determining module 801, for according to each infrared emission power and each infrared emission power it is corresponding
Proximity values determine above the touch display screen with the presence or absence of shelter.
Second determining module 802, for when determining that determination meets institute there is no when shelter above the touch display screen
State the calibration condition of proximity sensor.
Wherein, the first determining module 801 is specifically used for:
Using each infrared emission power, the first ratio that each infrared emission power is formed is calculated, and utilizes institute
The corresponding proximity values of each infrared emission power are stated, the second ratio that each proximity values are formed is calculated;According to first ratio
And second ratio, determine the top of the electronic equipment with the presence or absence of shelter.
Specifically, when the difference between first ratio and second ratio is less than or equal to preset first threshold value
When, determine that shelter is not present in the top of the electronic equipment;Difference between first ratio and second ratio
When greater than the preset first threshold value, determine that there are shelters above the electronic equipment.
The calibrating installation 200 of proximity sensor provided by the present embodiment, can be according to each infrared emission power, Ji Gehong
The corresponding proximity values of outer transmission power determine above touch display screen with the presence or absence of shelter;When determining above touch display screen
There is no when shelter, the calibration condition for meeting proximity sensor is determined, thus can be to proximity sensor close to threshold value
It is calibrated, prevents and crossing for proximity sensor is calibrated.
It further, based on the above embodiment, is the calibration cartridge of proximity sensor in the embodiment of the present application referring to Fig. 9, Fig. 9
Another subroutine module schematic diagram set, in the present embodiment, above-mentioned determining module 702 is specifically included:
First determining module 801, for according to each infrared emission power and each infrared emission power it is corresponding
Proximity values determine above the touch display screen with the presence or absence of shelter.
Third determining module 901, for when determining above the touch display screen there is no when shelter, according to each described
The corresponding proximity values of infrared emission power, determine whether the proximity sensor is in close to dysfunction state.
It is 4th determining module 902, full for determining when determining that the proximity sensor is in close to dysfunction state
The calibration condition of the foot proximity sensor.
Wherein, third determining module 901 is specifically used for:
The first bottom that stored previous calibration obtains is obtained to make an uproar value;When each infrared emission power is corresponding close
Value is respectively less than first bottom and makes an uproar value;Alternatively, working as the corresponding proximity values of each infrared emission power is all larger than first bottom
Make an uproar value, and with first bottom make an uproar the difference between value be all larger than default second threshold when, determine that the proximity sensor is in
Close to dysfunction state;When the corresponding proximity values of each infrared emission power are all larger than or are made an uproar equal to first bottom
Value, and be respectively less than with first bottom difference between value of making an uproar or when equal to the second threshold, determine the proximity sensor
It is not in close to dysfunction state.
The calibrating installation 200 of proximity sensor provided by the present embodiment is determining that there is no hide above touch display screen
Block material, and when determining that proximity sensor is in close to dysfunction state, just determination meets the calibration condition of proximity sensor, from
And calibration number can be effectively reduced, ensure that electronic equipment works normally.
Further, based on the above embodiment, referring to Fig.1 0, Figure 10 be the embodiment of the present application in proximity sensor calibration
The another subroutine module schematic diagram of device, in the present embodiment, above-mentioned third determining module 901 further include:
Computing module 1001, for calculating in the corresponding proximity values of each infrared emission power maximum proximity values and minimum
The corresponding average value of proximity values of the difference of proximity values and each infrared emission power.
Abnormal determining module 1002 is all larger than preset difference value threshold value for the difference when each infrared emission power, and
The corresponding average value of proximity values of each infrared emission power is not in bottom and makes an uproar when being worth in effective range, it is determined that institute
Proximity sensor is stated in the state close to dysfunction.
The calibrating installation 200 of proximity sensor provided by the present embodiment, it is corresponding by calculating each infrared emission power
The proximity values of the difference and each infrared emission power of maximum proximity values and minimum proximity values are corresponding average in proximity values
To judge whether proximity sensor is in close to dysfunction state shelter is not present, and connect in value above touch display screen
When nearly sensor is in close to dysfunction state, just determination meets the calibration condition of proximity sensor, so as to effectively subtract
The quasi- number of major prevents from accidentally calibrating, and ensures that electronic equipment works normally.
Further, based on the above embodiment, referring to Fig.1 1, Figure 11 be the embodiment of the present application in proximity sensor calibration
The another subroutine module schematic diagram of device, in the present embodiment, above-mentioned calibration module 703 is specifically included:
Bottom, which is made an uproar, is worth determining module 1101, when for determining that the proximity sensor is detected according to real work power,
Obtained proximity values are made an uproar value as obtained the second bottom of calibration.
Calibrate execution module 1102, for according to second bottom make an uproar value to the proximity sensor close to threshold value into
Row calibration.
Wherein, calibration execution module 1102 is specifically used for:
It obtains the first bottom that the proximity sensor previous calibration obtains and makes an uproar value and first close to threshold value;Determine institute
State the second bottom make an uproar value relative to first bottom make an uproar value increment value perhaps decreasing value according to the increment value or decreasing value pair
Described first is calibrated close to threshold value, and second after being calibrated is close to threshold value.
The calibrating installation 200 of proximity sensor provided by the present embodiment, may be implemented: determine proximity sensor according to reality
When border operating power is detected, obtained proximity values are made an uproar value as the second bottom that calibration obtains, and are then made an uproar according to second bottom
Value can calibrating close to threshold value to proximity sensor.I.e. the present embodiment can in the case where meeting calibration condition,
Realize to the accurate calibration of proximity sensor, can effectively solve the problem that proximity sensor close to dysfunction the problem of.
Further, the application also provides a kind of electronic equipment, including be set to below touch display screen close to sensing
Device and memory, processor and storage are on a memory and the computer program that can run on a processor, the processor are held
Each step in each embodiment of the calibration method offer of above-mentioned proximity sensor is provided when row computer program.
Further, the application also provides a kind of storage medium, is stored thereon with computer program, the computer program quilt
Processor realizes each step in each embodiment that the calibration method of above-mentioned proximity sensor provides when executing.
Each functional module in each embodiment of the present invention can integrate in a processing module, be also possible to each
Module physically exists alone, and can also be integrated in a module with two or more modules.Above-mentioned integrated module both may be used
To use formal implementation of hardware, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The above are to a kind of calibration method of proximity sensor provided by the present invention and device, electronic equipment and readable deposit
The description of storage media, for those skilled in the art, according to the thought of the embodiment of the present application, in specific embodiment and application
There will be changes in range, and to sum up, the contents of this specification are not to be construed as limiting the invention.
Claims (13)
1. a kind of calibration method of proximity sensor, which is characterized in that the method is applied to be provided with below touch display screen
The electronic equipment of the proximity sensor, which comprises
If detecting, the electronic equipment is in breath screen state, and it is different red according at least two to obtain the proximity sensor
When outer transmission power is detected, the corresponding proximity values of each infrared emission power;
According to each infrared emission power and the corresponding proximity values of each infrared emission power, it is determined whether described in satisfaction
The calibration condition of proximity sensor;
When determination meets the calibration condition of the proximity sensor, school is carried out close to threshold value to the proximity sensor
It is quasi-.
2. the method according to claim 1, wherein described according to each infrared emission power and each described
The corresponding proximity values of infrared emission power, it is determined whether meet the calibration condition of the proximity sensor, comprising:
According to each infrared emission power and the corresponding proximity values of each infrared emission power, the touch display is determined
Screen top whether there is shelter;
When determining above the touch display screen there is no when shelter, the calibration condition for meeting the proximity sensor is determined.
3. according to the method described in claim 2, it is characterized in that, described according to each infrared emission power and each described
The corresponding proximity values of infrared emission power determine above the touch display screen with the presence or absence of shelter, comprising:
Using each infrared emission power, the first ratio that each infrared emission power is formed is calculated, and is utilized described each
The corresponding proximity values of infrared emission power calculate the second ratio that each proximity values are formed;
When the difference between first ratio and second ratio is less than or equal to preset first threshold value, the electricity is determined
Shelter is not present in the top of sub- equipment;
When the difference between first ratio and second ratio is greater than the preset first threshold value, the electronics is determined
There are shelters above equipment.
4. according to the method described in claim 2, it is characterized in that, the determination meets the calibration condition of the proximity sensor
Before, further includes:
According to the corresponding proximity values of each infrared emission power, determine whether the proximity sensor is in close to dysfunction
State;
When determining that the proximity sensor is in close to dysfunction state, continue to execute the determination meet it is described close to passing
The step of calibration condition of sensor.
5. according to the method described in claim 4, it is characterized in that, described corresponding close according to each infrared emission power
Value, determines whether the proximity sensor is in close to dysfunction state, comprising:
The first bottom that stored previous calibration obtains is obtained to make an uproar value;
It makes an uproar value when the corresponding proximity values of each infrared emission power are respectively less than first bottom;Alternatively, working as each infrared hair
Penetrate the corresponding proximity values of power and be all larger than first bottom and make an uproar value, and with first bottom make an uproar the difference between value be all larger than it is default
When second threshold, determine that the proximity sensor is in close to dysfunction state;
When the corresponding proximity values of each infrared emission power are all larger than or are made an uproar value equal to first bottom, and with described
The difference between value is made an uproar when being respectively less than or being equal to the second threshold in one bottom, determines that the proximity sensor is not in close to function
Abnormality.
6. according to the method described in claim 4, it is characterized in that, described corresponding close according to each infrared emission power
Value, determines whether the proximity sensor is in close to dysfunction state, comprising:
Calculate in the corresponding proximity values of each infrared emission power the difference of maximum proximity values and minimum proximity values and each described
The corresponding average value of the proximity values of infrared emission power;
When the difference of each infrared emission power is all larger than preset difference value threshold value, and the proximity values of each infrared emission power
Corresponding average value is not in bottom and makes an uproar when being worth in effective range, it is determined that the proximity sensor is in different close to function
Normal state.
7. according to claim 1 to method described in 5 any one, which is characterized in that if described detect the electronic equipment
In breath screen state, then when obtaining the proximity sensor and being detected according at least two different infrared emission power, respectively
The corresponding proximity values of the infrared emission power, comprising:
If detecting, the electronic equipment is in breath screen state, and detects bright screen instruction, then obtains the proximity sensor and press
When being detected according at least two different infrared emission power, the corresponding proximity values of each infrared emission power, wherein hold
Duration required for the row calibration method is less than or equal to switching duration, and when switching, a length of touch display screen was from breath
Screen state switches to duration required for bright screen state.
8. the method according to the description of claim 7 is characterized in that described obtain the proximity sensor according at least two not
With infrared emission power detected when, the corresponding proximity values of each infrared emission power, comprising:
It controls the proximity sensor and carries out infrared emission according at least two different infrared emission power in preset duration,
And the continuous sampling of proximity values is carried out, the corresponding proximity values of each infrared emission power are obtained, the preset duration is less than institute
State switching duration.
9. according to claim 1 to method described in 6 any one, which is characterized in that described to be connect to the proximity sensor
Nearly threshold value is calibrated, comprising:
When determining that the proximity sensor is detected according to real work power, obtained proximity values are made an uproar value as the second bottom;
It is made an uproar value calibrating close to threshold value to the proximity sensor according to second bottom.
10. the method according to the description of claim 7 is characterized in that described make an uproar value to the close biography according to second bottom
Sensor is calibrated close to threshold value, comprising:
It obtains the first bottom that the proximity sensor previous calibration obtains and makes an uproar value and first close to threshold value;
Determine that second bottom value of making an uproar is made an uproar the increment value or decreasing value of value relative to first bottom, according to the increment value or
Person's decreasing value is calibrated to described first close to threshold value, and second after being calibrated is close to threshold value.
11. a kind of calibrating installation of proximity sensor, which is characterized in that described device is applied to be provided with below touch display screen
The electronic equipment of the proximity sensor, described device include:
Module is obtained, if obtaining the proximity sensor according to extremely for detecting that the electronic equipment is in breath screen state
When few two different infrared emission power are detected, the corresponding proximity values of each infrared emission power;
Determining module, for determining according to each infrared emission power and the corresponding proximity values of each infrared emission power
Whether the calibration condition of the proximity sensor is met;
Calibration module, for being approached to the proximity sensor when determination meets the calibration condition of the proximity sensor
Threshold value is calibrated.
12. a kind of electronic equipment, including the proximity sensor being set to below touch display screen and memory, processor with
It is stored in the computer program run on the memory and on the processor, which is characterized in that the processor executes
When the computer program, realize each in the calibration method of the proximity sensor as described in claims 1 to 10 any one
A step.
13. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is held by processor
When row, each step of the calibration method of the proximity sensor as described in claims 1 to 10 any one is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910068707.9A CN109840032B (en) | 2019-01-24 | 2019-01-24 | Method and device for calibrating proximity sensor, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910068707.9A CN109840032B (en) | 2019-01-24 | 2019-01-24 | Method and device for calibrating proximity sensor, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109840032A true CN109840032A (en) | 2019-06-04 |
CN109840032B CN109840032B (en) | 2022-04-12 |
Family
ID=66884112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910068707.9A Active CN109840032B (en) | 2019-01-24 | 2019-01-24 | Method and device for calibrating proximity sensor, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109840032B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275637A (en) * | 2019-06-24 | 2019-09-24 | Oppo广东移动通信有限公司 | Calibration method, device, storage medium and the electronic equipment of proximity sensor |
CN110286420A (en) * | 2019-06-24 | 2019-09-27 | Oppo广东移动通信有限公司 | Calibration method, device, storage medium and the electronic equipment of proximity sensor |
CN111262986A (en) * | 2020-01-16 | 2020-06-09 | Oppo(重庆)智能科技有限公司 | Calibration method and calibration device for proximity sensor and mobile terminal |
CN111366939A (en) * | 2020-02-20 | 2020-07-03 | Oppo(重庆)智能科技有限公司 | Calibration method and device of distance sensor, terminal and storage medium |
CN112260672A (en) * | 2020-10-19 | 2021-01-22 | 深圳市太美亚电子科技有限公司 | Method for adjusting induction distance of infrared device |
CN112925433A (en) * | 2019-12-06 | 2021-06-08 | 北京小米移动软件有限公司 | Control method and device of touch screen and storage medium |
CN112968985A (en) * | 2021-02-01 | 2021-06-15 | 维沃移动通信有限公司 | Infrared sensor compensation method and device and electronic equipment |
CN113075675A (en) * | 2021-03-24 | 2021-07-06 | 联想(北京)有限公司 | Compensation data acquisition method and device and electronic equipment |
WO2021147766A1 (en) * | 2020-01-21 | 2021-07-29 | 维沃移动通信有限公司 | Electronic device and noise floor calibration method |
CN113411448A (en) * | 2021-06-16 | 2021-09-17 | 维沃移动通信有限公司 | Infrared signal processing method and device, electronic equipment and readable storage medium |
CN113447064A (en) * | 2021-06-30 | 2021-09-28 | 东莞市小精灵教育软件有限公司 | Calibration method and electronic equipment |
CN113470338A (en) * | 2021-06-17 | 2021-10-01 | 维沃移动通信有限公司 | Electronic equipment and self-checking method and system of infrared remote control function of electronic equipment |
CN113821116A (en) * | 2020-06-19 | 2021-12-21 | 北京小米移动软件有限公司 | Screen control method and device and storage medium |
CN114296146A (en) * | 2021-12-17 | 2022-04-08 | 广州河东科技有限公司 | Self-calibration-based infrared proximity sensing method, device, equipment and storage medium |
CN117665958A (en) * | 2024-01-31 | 2024-03-08 | 荣耀终端有限公司 | Calibration method of proximity light sensor and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103837910A (en) * | 2014-03-20 | 2014-06-04 | 深圳市金立通信设备有限公司 | Method for determining threshold value of proximity sensor and terminal |
US20140315592A1 (en) * | 2013-04-18 | 2014-10-23 | Apple Inc. | Wireless Device With Dynamically Adjusted Maximum Transmit Powers |
CN105022530A (en) * | 2015-08-04 | 2015-11-04 | 广东欧珀移动通信有限公司 | Calibration method and system for proximity sensor |
CN106357348A (en) * | 2016-08-16 | 2017-01-25 | 北京小米移动软件有限公司 | Method and device for adjusting transmitting power of ultrasonic wave |
CN107504994A (en) * | 2017-08-08 | 2017-12-22 | 广东欧珀移动通信有限公司 | Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity transducer |
-
2019
- 2019-01-24 CN CN201910068707.9A patent/CN109840032B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140315592A1 (en) * | 2013-04-18 | 2014-10-23 | Apple Inc. | Wireless Device With Dynamically Adjusted Maximum Transmit Powers |
CN103837910A (en) * | 2014-03-20 | 2014-06-04 | 深圳市金立通信设备有限公司 | Method for determining threshold value of proximity sensor and terminal |
CN105022530A (en) * | 2015-08-04 | 2015-11-04 | 广东欧珀移动通信有限公司 | Calibration method and system for proximity sensor |
CN106357348A (en) * | 2016-08-16 | 2017-01-25 | 北京小米移动软件有限公司 | Method and device for adjusting transmitting power of ultrasonic wave |
CN107504994A (en) * | 2017-08-08 | 2017-12-22 | 广东欧珀移动通信有限公司 | Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity transducer |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286420A (en) * | 2019-06-24 | 2019-09-27 | Oppo广东移动通信有限公司 | Calibration method, device, storage medium and the electronic equipment of proximity sensor |
CN110286420B (en) * | 2019-06-24 | 2022-03-18 | Oppo广东移动通信有限公司 | Method and device for calibrating proximity sensor, storage medium and electronic equipment |
CN110275637A (en) * | 2019-06-24 | 2019-09-24 | Oppo广东移动通信有限公司 | Calibration method, device, storage medium and the electronic equipment of proximity sensor |
CN112925433A (en) * | 2019-12-06 | 2021-06-08 | 北京小米移动软件有限公司 | Control method and device of touch screen and storage medium |
WO2021143878A1 (en) * | 2020-01-16 | 2021-07-22 | Oppo广东移动通信有限公司 | Method for calibrating proximity sensor, calibration apparatus, and mobile terminal |
CN111262986A (en) * | 2020-01-16 | 2020-06-09 | Oppo(重庆)智能科技有限公司 | Calibration method and calibration device for proximity sensor and mobile terminal |
WO2021147766A1 (en) * | 2020-01-21 | 2021-07-29 | 维沃移动通信有限公司 | Electronic device and noise floor calibration method |
CN111366939A (en) * | 2020-02-20 | 2020-07-03 | Oppo(重庆)智能科技有限公司 | Calibration method and device of distance sensor, terminal and storage medium |
CN113821116A (en) * | 2020-06-19 | 2021-12-21 | 北京小米移动软件有限公司 | Screen control method and device and storage medium |
CN112260672A (en) * | 2020-10-19 | 2021-01-22 | 深圳市太美亚电子科技有限公司 | Method for adjusting induction distance of infrared device |
CN112260672B (en) * | 2020-10-19 | 2024-02-06 | 深圳市太美亚电子科技有限公司 | Method for adjusting induction distance of infrared device |
CN112968985A (en) * | 2021-02-01 | 2021-06-15 | 维沃移动通信有限公司 | Infrared sensor compensation method and device and electronic equipment |
CN113075675A (en) * | 2021-03-24 | 2021-07-06 | 联想(北京)有限公司 | Compensation data acquisition method and device and electronic equipment |
CN113075675B (en) * | 2021-03-24 | 2024-05-24 | 联想(北京)有限公司 | Compensation data acquisition method and device and electronic equipment |
CN113411448A (en) * | 2021-06-16 | 2021-09-17 | 维沃移动通信有限公司 | Infrared signal processing method and device, electronic equipment and readable storage medium |
CN113411448B (en) * | 2021-06-16 | 2022-06-24 | 维沃移动通信有限公司 | Infrared signal processing method and device, electronic equipment and readable storage medium |
CN113470338A (en) * | 2021-06-17 | 2021-10-01 | 维沃移动通信有限公司 | Electronic equipment and self-checking method and system of infrared remote control function of electronic equipment |
CN113447064A (en) * | 2021-06-30 | 2021-09-28 | 东莞市小精灵教育软件有限公司 | Calibration method and electronic equipment |
CN114296146A (en) * | 2021-12-17 | 2022-04-08 | 广州河东科技有限公司 | Self-calibration-based infrared proximity sensing method, device, equipment and storage medium |
CN117665958A (en) * | 2024-01-31 | 2024-03-08 | 荣耀终端有限公司 | Calibration method of proximity light sensor and electronic equipment |
CN117665958B (en) * | 2024-01-31 | 2024-05-24 | 荣耀终端有限公司 | Calibration method of proximity light sensor and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109840032B (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109840032A (en) | The calibration method and device, electronic equipment and storage medium of proximity sensor | |
CN109738004A (en) | The calibration method and device, electronic equipment and storage medium of proximity sensor | |
US11169703B2 (en) | Method for displaying graphical user interface and mobile terminal | |
CN107290802B (en) | Proximity sensor calibration method, proximity sensor calibrating installation and intelligent terminal | |
CN106855782B (en) | A kind of method, apparatus and terminal for preventing from accidentally touching | |
CN108021259B (en) | False touch prevention method and electronic equipment | |
CN105025159B (en) | proximity sensor adjusting method and device | |
CN107450817B (en) | Proximity detection method, proximity detection device, storage medium, and electronic apparatus | |
CN106301604B (en) | A kind of radio frequency path detection method and mobile terminal | |
CN107504994B (en) | Calibration method, device, mobile terminal and the readable storage medium storing program for executing of proximity sensor | |
CN106331320B (en) | Control the method and device of screen state | |
CN106225806B (en) | Calibrate the method, device and mobile terminal of Magnetic Sensor | |
KR20140060757A (en) | Apparatas and method for controlling a input means of payment function in an electronic device | |
CN107204786B (en) | A kind of switching method and mobile terminal of signal receiving path | |
CN105867830B (en) | A kind of processing method and mobile terminal based on fingerprint recognition | |
CN114501119B (en) | Interactive display method, device, electronic equipment, system and storage medium | |
WO2021129147A1 (en) | Proximity sensor anomaly detection method and apparatus and mobile terminal | |
CN106791086B (en) | Control method of mobile terminal and mobile terminal | |
CN109343066A (en) | Control method, device, storage medium and the mobile terminal of proximity sensor | |
CN106851012A (en) | Proximity test method, device and terminal | |
CN107360321B (en) | A kind of detection method and mobile terminal of digital signal processor DSP | |
CN109059987A (en) | A kind of method, device and mobile terminal for calibrating optical sensor | |
CN108801321B (en) | Sensor calibration method, electronic device and computer-readable storage medium | |
CN110246561A (en) | A kind of moving distance calculation method, device and system | |
US20180095569A1 (en) | Touch device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |