CN106095078A - The threshold values method to set up of a kind of sensor and mobile terminal - Google Patents
The threshold values method to set up of a kind of sensor and mobile terminal Download PDFInfo
- Publication number
- CN106095078A CN106095078A CN201610379762.6A CN201610379762A CN106095078A CN 106095078 A CN106095078 A CN 106095078A CN 201610379762 A CN201610379762 A CN 201610379762A CN 106095078 A CN106095078 A CN 106095078A
- Authority
- CN
- China
- Prior art keywords
- threshold values
- sensor
- distance
- light intensity
- deviation 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
Abstract
The invention discloses threshold values method to set up and the mobile terminal of a kind of sensor, the threshold values method to set up of this sensor includes: obtain threshold values initialization requests;Obtain terminal according to described threshold values initialization requests and be presently in the ambient light intensity of environment, and user and the minimum approach distance of described terminal room in Preset Time;Basis threshold values is determined according to described ambient light intensity and described minimum approach distance;Initial Hurdle based on described basis threshold value setting end sensor.The threshold values method to set up of the sensor can arrange the Initial Hurdle of end sensor more accurately, is prevented effectively from user and the problem of terminal room distance erroneous judgement that sensor causes because of greasy dirt or pad pasting.
Description
Technical field
The present invention relates to moving communicating field, particularly relate to threshold values method to set up and the mobile terminal of a kind of sensor.
Background technology
At present, proximity transducer is applied the most in large quantities in each application program of terminal, realizes various answering with auxiliary
By function, such as, when user is when answering or dial phone, range sensor can measure between user's head and mobile phone away from
From, when this distance display user is near mobile phone, extinguish the background light of screen, when this distance display user is away from mobile phone, point
The background light of bright screen curtain, thus automatically control the opening and closing of display screen backgrounds lamp.
Generally, the size of user's head and mobile phone spacing is weighed by high and low thresholds threshold value, also will record
Distance size contrast with high and low thresholds threshold value set in advance, if meet impose a condition, then show that user is near mobile phone.
Owing to range sensor realizes according to infrared emission principle, if therefore having greasy dirt or patch on the position of range sensor
Film, or this range sensor is in high light (namely environment infrared ray is strong), all can affect the detection of distance, therefore, as
It is the most worth fastidious what accurately arranges high and low thresholds threshold value.
Summary of the invention
It is an object of the invention to provide threshold values method to set up and the mobile terminal of a kind of sensor, distance can be prevented effectively from
The high and low thresholds threshold values of sensor arranges inaccurate technical problem.
For solving above-mentioned technical problem, embodiment of the present invention offer techniques below scheme:
A kind of threshold values method to set up of sensor, comprising:
Obtain threshold values initialization requests;
Obtain terminal according to described threshold values initialization requests and be presently in the ambient light intensity of environment, and in Preset Time
User and the minimum approach distance of described terminal room;
Basis threshold values is determined according to described ambient light intensity and described minimum approach distance;
Initial Hurdle based on described basis threshold value setting end sensor.
Further, the described step tool determining basis threshold values according to described ambient light intensity and described minimum approach distance
Body includes:
Judge whether described ambient light intensity and described minimum approach distance meet pre-conditioned;
If meeting pre-conditioned, then by threshold values based on described minimum approach distance.
Further, described judge whether described ambient light intensity and described minimum approach distance meet pre-conditioned step
Suddenly specifically include:
When described ambient light intensity is less than presetting light intensity, and when described minimum approach distance is more than predeterminable range, then sentence
Disconnected described ambient light intensity and described minimum approach distance meet pre-conditioned.
Further, the step of described Initial Hurdle based on described basis threshold value setting end sensor specifically includes:
Obtain and preset upper deviation value, preset lower deviation value and preset maximum close to distance;
Judge whether described basis threshold values and described default upper deviation value sum are less than described default maximum close to distance;
The most then according to described basis threshold values, preset upper deviation value and described default lower deviation value setting terminal sensor
Initial Hurdle;
If it is not, then obtain preset error value, and set close to distance according to described preset error value and described default maximum
The Initial Hurdle of end sensor.
Further, described according to described basis threshold values, default upper deviation value and described default lower deviation value setting terminal
The step of the Initial Hurdle of sensor specifically includes: be set as described by described basis threshold values with described default upper deviation value sum
The maximum of Initial Hurdle, is set as the minimum of described Initial Hurdle by described basis threshold values and described default lower deviation value sum
Value;
Described according to the close Initial Hurdle apart from setting terminal sensor of described preset error value and described default maximum
Step specifically include: described default maximum is set as close to distance the maximum of described Initial Hurdle, presets described
The big minima being set as described Initial Hurdle close to distance and the difference of described preset error value.
For solving above-mentioned technical problem, the embodiment of the present invention also provides for techniques below scheme:
A kind of mobile terminal, comprising:
First acquisition module, is used for obtaining threshold values initialization requests;
Second acquisition module, is presently in the environmental light intensity of environment for obtaining terminal according to described threshold values initialization requests
Degree, and user and the minimum approach distance of described terminal room in Preset Time;
Determine module, for determining basis threshold values according to described ambient light intensity and described minimum approach distance;
Setting module, for Initial Hurdle based on described basis threshold value setting end sensor.
Further, described determine that module specifically includes:
First judges submodule, is used for judging whether described ambient light intensity and described minimum approach distance meet and presets bar
Part;
Determine submodule, if pre-conditioned, then by threshold values based on described minimum approach distance for meeting.
Further, described first judge submodule specifically for:
When described ambient light intensity is less than presetting light intensity, and when described minimum approach distance is more than predeterminable range, then sentence
Disconnected described ambient light intensity and described minimum approach distance meet pre-conditioned.
Further, described setting module specifically includes:
Obtain submodule, be used for obtaining default upper deviation value, presetting lower deviation value and preset maximum close to distance;
Second judges submodule, is used for judging that whether described basis threshold values and described default upper deviation value sum are less than described
Preset maximum close to distance;
Set submodule, for the most then according to described basis threshold values, default upper deviation value and described default lower deviation value
The Initial Hurdle of setting terminal sensor;If it is not, then obtain preset error value, and according to described preset error value and described preset
The maximum Initial Hurdle close to distance setting terminal sensor.
Further, described setting submodule specifically for:
The most described basis threshold values and described default upper deviation value sum are set as the maximum of described Initial Hurdle
Value, is set as the minima of described Initial Hurdle by described basis threshold values and described default lower deviation value sum;
If it is not, then described default maximum to be set as the maximum of described Initial Hurdle close to distance, preset described
The big minima being set as described Initial Hurdle close to distance and the difference of described preset error value.
The threshold values method to set up of sensor of the present invention and mobile terminal, by obtaining threshold values initialization requests, and
Obtain terminal according to this threshold values initialization requests and be presently in the ambient light intensity of environment, and in Preset Time, user is whole with this
Minimum approach distance between end, afterwards, determines basis threshold values according to this ambient light intensity and this minimum approach distance, and based on this
The Initial Hurdle of basis threshold value setting end sensor, can arrange the Initial Hurdle of end sensor more accurately, be prevented effectively from
The problem that the user that sensor causes because of greasy dirt or pad pasting judges by accident with terminal room distance.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings, by the detailed description of the invention of the present invention is described in detail, technical scheme will be made
And other beneficial effect is apparent.
Fig. 1 is the threshold values method to set up of the sensor that the embodiment of the present invention provides.
The structural representation of the mobile terminal that Fig. 2 a provides for the embodiment of the present invention.
The structural representation of another mobile terminal that Fig. 2 b provides for the embodiment of the present invention
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides threshold values method to set up and the mobile terminal of a kind of sensor.To carry out respectively in detail below
Explanation.
First embodiment
The present embodiment will be described from the angle of mobile terminal, and this mobile terminal can include that mobile phone etc. passes with distance
The terminal of sensor.
Refer to Fig. 1, Fig. 1 and specifically describe the threshold values method to set up of the sensor that first embodiment of the invention provides, its
May include that
S101, acquisition threshold values initialization requests.
In the present embodiment, the main span of this sensor is from sensor.When terminal is started shooting or is in the every day specified every time
During the renewal time, this threshold values initialization requests can be automatically generated.
S102, obtain terminal according to this threshold values initialization requests and be presently in the ambient light intensity of environment, and time default
Interior user and the minimum approach distance of this terminal room.
It should be noted that mainly rely on infrared emitting principle to carry out detecting distance due to range sensor, and
Under different intensities of illumination, the infra-red intensity of environment itself is the most different, therefore intensity of illumination is adjusted the distance, the impact of sensor is very big,
When the Initial Hurdle of sensor of adjusting the distance is configured, the impact of intensity of illumination to be taken into full account.
In the present embodiment, this Preset Time can according to the actual requirements depending on, such as can be 1 minute or 30 seconds.Eventually
The distance value every time detected in Preset Time can be compared analysis by end, obtains minimum distance value and connects as this minimum
Closely.
S103, according to this ambient light intensity and this minimum approach distance determine basis threshold values.
Preferably, above-mentioned steps S103 specifically may include that
(1) judge whether this ambient light intensity and this minimum approach distance meet pre-conditioned.
Preferably, above-mentioned steps (1) specifically may include that
When this ambient light intensity is less than presetting light intensity, and when this minimum approach distance is more than predeterminable range, then judging should
Ambient light intensity and this minimum approach distance meet pre-conditioned, and now, terminal can perform following step (2), otherwise, terminal
Any operation can not be performed.
In the present embodiment, this default light intensity is mainly used in defining high light and non-high light, and this predeterminable range is mainly used in distinguishing
Other user and terminal be whether under normal circumstances close to behavior, this default light intensity and predeterminable range all can be according to actual need
Depending on asking.Concrete, if current environment light intensity is less than presetting light intensity, then can be determined that current environment light is non-high light, no
It it is then high light.If this minimum approach distance is more than predeterminable range, then can be determined that active user and terminal are under normal circumstances
Close, it is otherwise close under abnormal condition, if being placed in user's pocket than terminal or end sensor is hidden by object
During gear, this minimum approach distance recorded is usually 0, is now improper close.Only current environment light is non-high light, and uses
Family and terminal be under normal circumstances close to time, just judgement meets pre-conditioned.
(2) by threshold values based on this minimum approach distance.
In the present embodiment, if meeting pre-conditioned, illustrate that the minimum approach distance now read is under non-strong light environment
Detection, and now user is just very close to this terminal, at this moment, the minimum approach distance that range sensor reads has certain
Referential, can be using the minimum approach distance of acquisition as this basis threshold values.Certainly, if being unsatisfactory for pre-conditioned, illustrate now
The minimum approach distance read detect under strong light environment, or/and now also abnormal condition between user and terminal
The most close, at this moment, the minimum approach distance that range sensor reads is the most inaccurate, does not have referential, it is impossible to as
Basis threshold values.
S104, Initial Hurdle based on this basis threshold value setting end sensor.
Preferably, above-mentioned steps S104 specifically may include that
Obtain and preset upper deviation value, preset lower deviation value and preset maximum close to distance;
Judge whether this basis threshold values is preset maximum close to distance less than this with this default upper deviation value sum;
The most then according to this basis threshold values, preset at the beginning of upper deviation value and this default lower deviation value setting terminal sensor
Beginning threshold values;
If it is not, then obtain preset error value, and according to this preset error value and this default maximum close distance setting terminal
The Initial Hurdle of sensor.
In the present embodiment, this default upper deviation value and default lower deviation value refer mainly to after end sensor disturbed by greasy dirt,
Range of error between user and the detecting distance of terminal room and actual range, its can according to the actual requirements depending on, such as, should
Presetting upper deviation value can be 300, and this default lower deviation value can be 150.Generally, this default lower deviation value is for presetting the upper deviation
The half of value.This preset maximum close to distance and preset error value all can according to the actual requirements depending on, this presets maximum close
Distance refer mainly to user and terminal just very close in the case of, allowed farthest distance, such as can be 850mm.
Under normal circumstances, when surrounding environment light is non-high light, and user and terminal be just very close to time, this basis threshold values and
This default upper deviation value sum should be preset maximum close to distance less than this, now, according to this basis threshold values, presets upper deviation value
The Initial Hurdle carrying out setting terminal sensor with this default lower deviation value can compare precisely.When this basis threshold values is preset upper inclined with this
Difference sum not less than this preset maximum close to distance time, illustrate that surrounding environment light is high light and/or user and terminal is anon-normal
Very close to, now, according to this preset error value and this default maximum Initial Hurdle meeting carrying out setting terminal sensor close to distance
The most precisely.
Preferably, above-mentioned " according to this basis threshold values, default upper deviation value and this default lower deviation value setting terminal sensor
Initial Hurdle " step specifically include: this basis threshold values and this default upper deviation value sum are set as this Initial Hurdle
Maximum, is set as the minima of this Initial Hurdle by this basis threshold values and this default lower deviation value sum;
Meanwhile, above-mentioned " according to this preset error value and this default maximum initial valve close to distance setting terminal sensor
Value " step specifically include: this is preset the maximum maximum being set as this Initial Hurdle close to distance, this default maximum is connect
Closely the difference with this preset error value is set as the minima of this Initial Hurdle.
In the present embodiment, when this basis threshold values presets maximum close to distance with this default upper deviation value sum less than this,
Threshold values and this default upper deviation value sum based on the maximum (i.e. higher limit) of this Initial Hurdle, minima (i.e. lower limit) is
Basis threshold values and this default lower deviation value sum.When this basis threshold values presets maximum with this default upper deviation value sum not less than this
During close to distance, the maximum (i.e. higher limit) of this Initial Hurdle is that this presets maximum close to distance, minima (i.e. lower limit)
The maximum difference close to distance with this preset error value is preset for this.
From the foregoing, the threshold values method to set up of the sensor of the present embodiment offer, by obtaining threshold values initialization requests,
And obtain terminal according to this threshold values initialization requests and be presently in the ambient light intensity of environment, and in Preset Time user with should
The minimum approach distance of terminal room, afterwards, determines basis threshold values according to this ambient light intensity and this minimum approach distance, and based on
The Initial Hurdle of this basis threshold value setting end sensor, can arrange the Initial Hurdle of end sensor more accurately, effectively keep away
The problem that the user that no-sensor causes because of greasy dirt or pad pasting judges by accident with terminal room distance, method to set up is simple.
Second embodiment
On the basis of method described in embodiment one, the present embodiment will be further described below from the angle of mobile terminal,
Referring to Fig. 2 a, Fig. 2 a and specifically describe the mobile terminal that second embodiment of the invention provides, it may include that the first acquisition mould
Block the 10, second acquisition module 20, determine module 30 and setting module 40, wherein:
(1) first acquisition module 10
First acquisition module 10, is used for obtaining threshold values initialization requests.
In the present embodiment, the main span of this sensor is from sensor.When terminal is started shooting or is in the every day specified every time
During the renewal time, this threshold values initialization requests can be automatically generated.
(2) second acquisition modules 20
Second acquisition module 20, is presently in the environmental light intensity of environment for obtaining terminal according to this threshold values initialization requests
Degree, and user and the minimum approach distance of this terminal room in Preset Time.
It should be noted that mainly rely on infrared emitting principle to carry out detecting distance due to range sensor, and
Under different intensities of illumination, the infra-red intensity of environment itself is the most different, therefore intensity of illumination is adjusted the distance, the impact of sensor is very big,
When the Initial Hurdle of sensor of adjusting the distance is configured, the impact of intensity of illumination to be taken into full account.
In the present embodiment, this Preset Time can according to the actual requirements depending on, such as can be 1 minute or 30 seconds.Should
The distance value every time detected in Preset Time can be compared analysis by the second acquisition module 20, obtains minimum distance value
As this minimum approach distance.
(3) module 30 is determined
Determine module 30, for determining basis threshold values according to this ambient light intensity and this minimum approach distance.
Preferably, referring to Fig. 2 b, this determines that module 30 specifically can include the first judgement submodule 31 and determine submodule
Block 32, wherein:
First judges submodule 31, is used for judging whether this ambient light intensity and this minimum approach distance meet and presets bar
Part.
Preferably, this first judges that submodule 31 specifically may be used for:
When this ambient light intensity is less than presetting light intensity, and when this minimum approach distance is more than predeterminable range, then judging should
Ambient light intensity and this minimum approach distance meet pre-conditioned.
In the present embodiment, this default light intensity is mainly used in defining high light and non-high light, and this predeterminable range is mainly used in distinguishing
Other user and terminal be whether under normal circumstances close to behavior, this default light intensity and predeterminable range all can be according to actual need
Depending on asking.Concrete, if current environment light intensity is less than presetting light intensity, then this first judges that submodule 31 can be determined that currently
Ambient light is non-high light, is otherwise high light.If this minimum approach distance is more than predeterminable range, then this first judges that submodule 31 can
To judge that active user and terminal are under normal circumstances close, it is otherwise close, if putting than terminal under abnormal condition
Putting in user's pocket or time end sensor is obscured by an object, this minimum approach distance recorded is usually 0, is now anon-normal
Very close to.Only current environment light is non-high light, and user and terminal be under normal circumstances close to time, first judges submodule
31 just judge meet pre-conditioned.
Determine submodule 32, if pre-conditioned, then by threshold values based on this minimum approach distance for meeting.
In the present embodiment, if meeting pre-conditioned, illustrate that the minimum approach distance now read is under non-strong light environment
Detection, and now user is just very close to this terminal, at this moment, the minimum approach distance that range sensor reads has certain
Referential, determines that submodule 32 can be using the minimum approach distance of acquisition as this basis threshold values.Certainly, if being unsatisfactory for presetting bar
Part, illustrates that the minimum approach distance now read detects under strong light environment, or/and now between user and terminal also
Under abnormal condition close, at this moment, range sensor read minimum approach distance the most inaccurate, not there is reference
Property, it is impossible to based on threshold values
(4) setting module 40
Setting module 40, for Initial Hurdle based on this basis threshold value setting end sensor.
Preferably, this setting module 40 specifically may include that
Obtain submodule 41, be used for obtaining default upper deviation value, presetting lower deviation value and preset maximum close to distance.
Second judges submodule 42, is used for judging whether this basis threshold values is preset less than this with this default upper deviation value sum
Maximum close to distance.
Set submodule 43, for the most then setting according to this basis threshold values, default upper deviation value and this default lower deviation value
Determine the Initial Hurdle of end sensor;If it is not, then obtain preset error value, and connect according to this preset error value and this default maximum
The closely Initial Hurdle of setting terminal sensor.
In the present embodiment, this default upper deviation value and default lower deviation value refer mainly to after end sensor disturbed by greasy dirt,
Range of error between user and the detecting distance of terminal room and actual range, its can according to the actual requirements depending on, such as, should
Presetting upper deviation value can be 300, and this default lower deviation value can be 150.Generally, this default lower deviation value is for presetting the upper deviation
The half of value.This preset maximum close to distance and preset error value all can according to the actual requirements depending on, this presets maximum close
Distance refer mainly to user and terminal just very close in the case of, allowed farthest distance, such as can be 850mm.
Under normal circumstances, when surrounding environment light is non-high light, and user and terminal be just very close to time, this basis threshold values and
This default upper deviation value sum should be preset maximum close to distance less than this, now, set submodule 43 according to this basis threshold values,
Default upper deviation value and this default lower deviation value are carried out the Initial Hurdle of setting terminal sensor and can be compared precisely.When this basis threshold values
When presetting maximum close to distance with this default upper deviation value sum not less than this, illustrate that surrounding environment light is high light and/or user
It is improper close with terminal, now, sets submodule 43 and set close to distance according to this preset error value and this default maximum
The Initial Hurdle determining end sensor can compare precisely.
Preferably, this setting submodule 43 specifically may be used for:
The most then this basis threshold values and this default upper deviation value sum are set as the maximum of this Initial Hurdle, should
Basis threshold values and this default lower deviation value sum are set as the minima of this Initial Hurdle;
If it is not, then this is preset the maximum maximum being set as this Initial Hurdle close to distance, this is preset maximum close
The difference of distance and this preset error value is set as the minima of this Initial Hurdle.
In the present embodiment, when this basis threshold values presets maximum close to distance with this default upper deviation value sum less than this,
Threshold values and this default upper deviation value sum based on the maximum (i.e. higher limit) of this Initial Hurdle, minima (i.e. lower limit) is
Basis threshold values and this default lower deviation value sum.When this basis threshold values presets maximum with this default upper deviation value sum not less than this
During close to distance, the maximum (i.e. higher limit) of this Initial Hurdle is that this presets maximum close to distance, minima (i.e. lower limit)
The maximum difference close to distance with this preset error value is preset for this.
When being embodied as, above unit can realize as independent entity, it is also possible to carries out combination in any, makees
Realize for same or several entities, the embodiment of the method being embodied as can be found in above of above unit, at this not
Repeat again.
From the foregoing, the mobile terminal that the present embodiment provides, obtaining threshold values initialization by the first acquisition module 10 please
Ask, and be presently in the ambient light intensity of environment via the second acquisition module 20 according to this threshold values initialization requests acquisition terminal,
And the minimum approach distance of user and this terminal room in Preset Time, afterwards, via determining that module 30 is according to this environmental light intensity
Degree and this minimum approach distance determine basis threshold values, setting module 40 initial valve based on this basis threshold value setting end sensor
Value, can arrange the Initial Hurdle of end sensor more accurately, be prevented effectively from user that sensor causes because of greasy dirt or pad pasting with
The problem of terminal room distance erroneous judgement, method to set up is simple.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage
Medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Threshold values method to set up and the mobile terminal of a kind of sensor provided the embodiment of the present invention above have been carried out in detail
Thin introducing, principle and the embodiment of the present invention are set forth by specific case used herein, saying of above example
Bright method and the core concept thereof being only intended to help to understand the present invention;Simultaneously for those skilled in the art, according to this
Bright thought, the most all will change, and in sum, this specification content should not be managed
Solve as limitation of the present invention.
Claims (10)
1. the threshold values method to set up of a sensor, it is characterised in that including:
Obtain threshold values initialization requests;
Obtain terminal according to described threshold values initialization requests and be presently in the ambient light intensity of environment, and user in Preset Time
Minimum approach distance with described terminal room;
Basis threshold values is determined according to described ambient light intensity and described minimum approach distance;
Initial Hurdle based on described basis threshold value setting end sensor.
The threshold values method to set up of sensor the most according to claim 1, it is characterised in that described according to described environmental light intensity
Degree and described minimum approach distance determine that the step of basis threshold values specifically includes:
Judge whether described ambient light intensity and described minimum approach distance meet pre-conditioned;
If meeting pre-conditioned, then by threshold values based on described minimum approach distance.
The threshold values method to set up of sensor the most according to claim 2, it is characterised in that the described environmental light intensity of described judgement
Whether degree and described minimum approach distance meet pre-conditioned step specifically includes:
When described ambient light intensity is less than presetting light intensity, and when described minimum approach distance is more than predeterminable range, then judge institute
State ambient light intensity and described minimum approach distance meets pre-conditioned.
The threshold values method to set up of sensor the most according to claim 1, it is characterised in that described based on described basis threshold values
The step of the Initial Hurdle of setting terminal sensor specifically includes:
Obtain and preset upper deviation value, preset lower deviation value and preset maximum close to distance;
Judge whether described basis threshold values and described default upper deviation value sum are less than described default maximum close to distance;
The most then according to described basis threshold values, preset at the beginning of upper deviation value and described default lower deviation value setting terminal sensor
Beginning threshold values;
If it is not, then obtain preset error value, and according to described preset error value and described default maximum close distance setting terminal
The Initial Hurdle of sensor.
The threshold values method to set up of sensor the most according to claim 4, it is characterised in that
Described according to described basis threshold values, default upper deviation value and the initial valve of described default lower deviation value setting terminal sensor
The step of value specifically includes: described basis threshold values and described default upper deviation value sum are set as the maximum of described Initial Hurdle
Value, is set as the minima of described Initial Hurdle by described basis threshold values and described default lower deviation value sum;
The described step according to the close Initial Hurdle apart from setting terminal sensor of described preset error value and described default maximum
Suddenly specifically include: described default maximum is set as close to distance the maximum of described Initial Hurdle, described default maximum is connect
Closely it is set as the minima of described Initial Hurdle with the difference of described preset error value.
6. a mobile terminal, it is characterised in that including:
First acquisition module, is used for obtaining threshold values initialization requests;
Second acquisition module, is presently in the ambient light intensity of environment for obtaining terminal according to described threshold values initialization requests,
And the minimum approach distance of user and described terminal room in Preset Time;
Determine module, for determining basis threshold values according to described ambient light intensity and described minimum approach distance;
Setting module, for Initial Hurdle based on described basis threshold value setting end sensor.
Mobile terminal the most according to claim 6, it is characterised in that described determine that module specifically includes:
First judges submodule, is used for judging whether described ambient light intensity and described minimum approach distance meet pre-conditioned;
Determine submodule, if pre-conditioned, then by threshold values based on described minimum approach distance for meeting.
Mobile terminal the most according to claim 7, it is characterised in that described first judge submodule specifically for:
When described ambient light intensity is less than presetting light intensity, and when described minimum approach distance is more than predeterminable range, then judge institute
State ambient light intensity and described minimum approach distance meets pre-conditioned.
Mobile terminal the most according to claim 6, it is characterised in that described setting module specifically includes:
Obtain submodule, be used for obtaining default upper deviation value, presetting lower deviation value and preset maximum close to distance;
Second judges submodule, is used for judging whether described basis threshold values is preset less than described with described default upper deviation value sum
Maximum close to distance;
Set submodule, for the most then setting according to described basis threshold values, default upper deviation value and described default lower deviation value
The Initial Hurdle of end sensor;If it is not, then obtain preset error value, and according to described preset error value and described default maximum
Initial Hurdle close to distance setting terminal sensor.
Mobile terminal the most according to claim 9, it is characterised in that described setting submodule specifically for:
The most described basis threshold values and described default upper deviation value sum are set as the maximum of described Initial Hurdle, will
Described basis threshold values and described default lower deviation value sum are set as the minima of described Initial Hurdle;
If it is not, then described default maximum to be set as the maximum of described Initial Hurdle close to distance, described default maximum is connect
Closely it is set as the minima of described Initial Hurdle with the difference of described preset error value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379762.6A CN106095078B (en) | 2016-05-31 | 2016-05-31 | A kind of the threshold values setting method and mobile terminal of sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379762.6A CN106095078B (en) | 2016-05-31 | 2016-05-31 | A kind of the threshold values setting method and mobile terminal of sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095078A true CN106095078A (en) | 2016-11-09 |
CN106095078B CN106095078B (en) | 2019-09-13 |
Family
ID=57230649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379762.6A Active CN106095078B (en) | 2016-05-31 | 2016-05-31 | A kind of the threshold values setting method and mobile terminal of sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095078B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708332A (en) * | 2016-12-19 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method, device and terminal for setting thresholds of proximity sensors |
CN106896896A (en) * | 2017-02-03 | 2017-06-27 | 广东欧珀移动通信有限公司 | Electricity saving method, device and electronic equipment |
CN112260672A (en) * | 2020-10-19 | 2021-01-22 | 深圳市太美亚电子科技有限公司 | Method for adjusting induction distance of infrared device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130307610A1 (en) * | 2012-05-17 | 2013-11-21 | Ford Global Technologies, Llc | Proximity switch assembly having dynamic tuned threshold |
US20140110583A1 (en) * | 2011-06-24 | 2014-04-24 | Huawei Device Co., Ltd. | Method and apparatus for adjusting sensing threshold of infrared proximity sensor |
CN104407399A (en) * | 2014-12-02 | 2015-03-11 | 三星半导体(中国)研究开发有限公司 | Method for calibrating proximity sensor in portable terminal |
CN104570144A (en) * | 2013-10-24 | 2015-04-29 | 展讯通信(上海)有限公司 | Self-adaptive induction threshold adjusting system and method for proximity sensor |
CN104683598A (en) * | 2015-03-25 | 2015-06-03 | 深圳市欧珀通信软件有限公司 | Proximity sensor threshold adjusting method and device and intelligent device |
-
2016
- 2016-05-31 CN CN201610379762.6A patent/CN106095078B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140110583A1 (en) * | 2011-06-24 | 2014-04-24 | Huawei Device Co., Ltd. | Method and apparatus for adjusting sensing threshold of infrared proximity sensor |
US20130307610A1 (en) * | 2012-05-17 | 2013-11-21 | Ford Global Technologies, Llc | Proximity switch assembly having dynamic tuned threshold |
CN104570144A (en) * | 2013-10-24 | 2015-04-29 | 展讯通信(上海)有限公司 | Self-adaptive induction threshold adjusting system and method for proximity sensor |
CN104407399A (en) * | 2014-12-02 | 2015-03-11 | 三星半导体(中国)研究开发有限公司 | Method for calibrating proximity sensor in portable terminal |
CN104683598A (en) * | 2015-03-25 | 2015-06-03 | 深圳市欧珀通信软件有限公司 | Proximity sensor threshold adjusting method and device and intelligent device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708332A (en) * | 2016-12-19 | 2017-05-24 | 广东欧珀移动通信有限公司 | Method, device and terminal for setting thresholds of proximity sensors |
CN106708332B (en) * | 2016-12-19 | 2019-12-10 | Oppo广东移动通信有限公司 | threshold setting method and device of proximity sensor and terminal |
CN106896896A (en) * | 2017-02-03 | 2017-06-27 | 广东欧珀移动通信有限公司 | Electricity saving method, device and electronic equipment |
CN106896896B (en) * | 2017-02-03 | 2019-10-25 | Oppo广东移动通信有限公司 | Electricity saving method, device and electronic equipment |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106095078B (en) | 2019-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104407399B (en) | For the method at portable terminal alignment proximity transducer | |
KR101824513B1 (en) | Terminal and brightness control method thereof | |
CN103197357A (en) | Infrared proximity detector self-calibration method and device | |
CN106095078A (en) | The threshold values method to set up of a kind of sensor and mobile terminal | |
CN106357925B (en) | Switching method, device and the terminal of screen intensity shaping modes | |
CN106210311B (en) | Screen brightness control method and device | |
CN105654923A (en) | Method for adjusting backlight brightness and user terminal | |
WO2007041351A3 (en) | Actively characterizing a network | |
WO2005109186A3 (en) | Camera tamper detection | |
CN104125344A (en) | Prompting method and prompting system | |
CN104091128A (en) | Terminal | |
CN108445475B (en) | Data processing method and device and related medium product | |
CN106094055A (en) | The calibration steps of a kind of proximity transducer and terminal | |
US20150324926A1 (en) | System and Method of Analyzing Insurance Claims for Electronic Devices | |
CN110049152B (en) | Method and system for identifying distance between mobile phone and shielding object | |
CN103837828A (en) | Travel curve test method and system of camera-shooting mode motor and mobile terminal | |
CN110401773B (en) | Screen state control method and related device | |
CN103837910A (en) | Method for determining threshold value of proximity sensor and terminal | |
US20090061955A1 (en) | Power saving system and method for a mobile phone | |
CN105763803A (en) | Control method and device and electronic device | |
CN105682021B (en) | Information processing method and electronic equipment | |
CN105791680A (en) | Control method, control device and electronic device | |
CN108401507B (en) | MDT (minimization drive test) measuring method and device | |
CN104008360B (en) | A kind of automatic sensing bar code reading method and automatic sensing barcode reader | |
CN106126382A (en) | Identify the method and device of file system error |
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |