CN104702790A - Threshold value calibration method of distance sensor and mobile terminal - Google Patents
Threshold value calibration method of distance sensor and mobile terminal Download PDFInfo
- Publication number
- CN104702790A CN104702790A CN201510114622.1A CN201510114622A CN104702790A CN 104702790 A CN104702790 A CN 104702790A CN 201510114622 A CN201510114622 A CN 201510114622A CN 104702790 A CN104702790 A CN 104702790A
- Authority
- CN
- China
- Prior art keywords
- value
- range sensor
- terminal
- current
- light leak
- 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
- Telephone Function (AREA)
Abstract
The invention relates to the communication field, and discloses a threshold value calibration method of a distance sensor and a mobile terminal. The threshold value calibration method of the distance sensor includes that when the distance sensor of the mobile terminal starts to work, the mobile terminal obtains a light leakage value of the current distance sensor; the mobile terminal updates a low threshold of the current distance sensor into the sum of a first deviation value and the light leakage value of the current distance sensor and updates a high threshold of the current distance sensor into the sum of the second deviation value and the light leakage value of the current distance sensor according to the obtained light leakage value of the current distance sensor, and the first deviation value and a second deviation value which are preset in the mobile terminal. Compared with the prior art, when the distance sensor starts to work, the mobile terminal obtains the light leakage value of the current distance sensor in real time, and updates the high threshold and the low threshold of the current distance sensor according to the light leakage value of the current distance sensor by using the threshold value calibration method of the distance sensor, and then not only is accuracy of the high threshold and the low threshold of the current distance sensor improved, but also performance of a mobile phone is improved, and therefore good experience is brought to a user.
Description
Technical field
The present invention relates to the communications field, particularly a kind of threshold value calibration steps of range sensor and mobile terminal.
Background technology
Range sensor (as shown in Figure 1) is displacement transducer again, in the both sides being generally arranged on earpiece or earpiece groove, comprise infrared emission tube, intensity of illumination inductor and controller (not shown), when user is when answering or dial phone, by mobile phone near head, range sensor can be measured reflecting surface and (be generally face, hair, hand etc., in R&D process with ash card as reflecting surface) and mobile phone between distance, and distance between less time to go out screen (extinguishing the background light of screen), bright screen (lighting the background light of screen) time larger, thus while user-friendly, also power saving more.
In prior art, usual Low threshold and high threshold two threshold values judge whether to need light on and off to shield, when range sensor current read value be less than Low threshold time, illustrate that head is away from mobile phone, mobile phone bright screen; When range sensor current read value be greater than high threshold time, illustrate that head is close to mobile phone, mobile phone goes out screen.
The establishing method of high and low threshold value is normally: several the mobile phones first choosing same project, selected two different height shield a little as light on and off again, respectively obtain mobile phone correspond to selected take the altitude range sensor read value, and calculate the mean value reading value of the range sensor corresponding to sustained height, again using two mean values drawing as high and low threshold value, and be fixed in the corresponding software code of mobile phone.But in actual applications, changeless for high and low threshold value way can be caused range sensor read value for high and low threshold value time, the actual position of reflecting surface has deviation with position when setting this value at that time, thus cause mobile phone to occur cannot the normal bust that shields of light on and off.
Summary of the invention
The object of the present invention is to provide a kind of threshold value calibration steps of range sensor, make terminal can with the light leak value of current distance transducer for benchmark, the high and low threshold value of real time calibration current distance transducer, thus the performance improving mobile phone, bring better experience to user.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of threshold value calibration steps of range sensor, comprise following steps:
When the range sensor of terminal is started working, described terminal obtains the light leak value of current described range sensor;
Described terminal is according to the light leak value of the current described range sensor obtained, and the first deviate be preset in described terminal and the second deviate, the Low threshold of current described range sensor is updated to the light leak value sum of described first deviate and current described range sensor, the high threshold of current described range sensor is updated to the light leak value sum of described second deviate and current described range sensor;
Wherein, the difference reading the light leak value of value and this range sensor of the first deviate is the screen distance reflecting surface of terminal when being the first predeterminable range range sensor; The difference reading the light leak value of value and this range sensor of the second deviate is the screen distance reflecting surface of terminal when being the second predeterminable range range sensor; First predeterminable range is less than the second predeterminable range.
Embodiments of the present invention additionally provide a kind of mobile terminal, and described mobile terminal comprises: acquisition module, read module, threshold value update module;
Described acquisition module is used for when the range sensor of mobile terminal is started working, and obtains the light leak value of current described range sensor;
Described read module is used for when the range sensor of mobile terminal is started working, and reads the first deviate and the second deviate that are preset in described mobile terminal;
Described threshold value update module is used for the light leak value sum Low threshold of current described range sensor being updated to described first deviate and current described range sensor, the high threshold of current described range sensor is updated to the light leak value sum of described second deviate and current described range sensor;
Wherein, the difference reading the light leak value of value and this range sensor of the first deviate is the screen distance reflecting surface of mobile terminal when being the first predeterminable range range sensor; The difference reading the light leak value of value and this range sensor of the second deviate is the screen distance reflecting surface of mobile terminal when being the second predeterminable range range sensor; First predeterminable range is less than the second predeterminable range.
Embodiment of the present invention in terms of existing technologies, when range sensor is started working, the light leak value of Real-time Obtaining current distance transducer, and the high and low threshold value of current distance transducer is upgraded according to the light leak value of current distance transducer, not only increase the accuracy of the high and low threshold value of current distance transducer, also improve the performance of mobile phone, thus bring better experience to user.
Further, described first deviate and the second deviate are set in the following manner:
N number of test terminal is placed in flat condition; Wherein, the surface at the screen place of described N number of test terminal is not all blocked, described N be more than or equal to 1 natural number;
The difference reading the light leak value of value and range sensor of range sensor when the screen distance reflecting surface obtaining each test terminal is respectively the first predeterminable range, and the difference reading the light leak value of value and range sensor of range sensor when the screen distance reflecting surface of each test terminal is the second predeterminable range;
The first threshold of difference as each test terminal reading the light leak value of value and range sensor of range sensor when being the first predeterminable range using the screen distance reflecting surface of described each test terminal, and the Second Threshold of difference as each test terminal reading the light leak value of value and range sensor of range sensor when being the second predeterminable range using the screen distance reflecting surface of described each test terminal;
By the mean value of the first threshold of described N number of test terminal, be set to described first deviate; By the mean value of the Second Threshold of described N number of test terminal, be set to described first deviate.First deviate and the second deviate be conducive to ensureing terminal high, for threshold value between there is a buffering area, thus avoid terminal make because only there is a threshold value (critical point) terminal this Near Threshold frequently bright, go out frequently, be conducive to the performance improving mobile phone, bring better experience to user.
Further, described N is 10.Be conducive to the accuracy of raising first deviate and the second deviate.
Further, obtain in described terminal in the step of the light leak value of current described range sensor, comprise following sub-step:
The maximum displacement value that range sensor can read by described terminal is as the initial value of described range sensor;
The reading value and whether be less than described initial value of the current described range sensor of described terminal judges, and current described range sensor read value be less than described initial value time, what described initial value is updated to current described range sensor reads value;
Described terminal is using the light leak value of the described initial value after renewal as current described range sensor.Be conducive to ensureing that terminal gets the light leak value of current distance transducer.
Further, the current described range sensor of described terminal judges read be worth whether be less than described initial value step in,
Described terminal judges reading value and whether being less than described initial value of current described range sensor every the time of presetting.What periodically judge displacement sensing reads value, the light leak value of the current distance transducer that is conducive to upgrading in time, thus the high and low threshold value of the current distance transducer that upgrades in time.
Further, the described default time is 30ms.Be conducive to the accuracy of the light leak value improving the current range sensor got.
Accompanying drawing explanation
Fig. 1 is the structural representation of the range sensor according to prior art;
Fig. 2 is the flow chart of the threshold value calibration steps of a kind of range sensor according to first embodiment of the invention;
Fig. 3 is the flow chart obtaining the light leak value of current distance transducer according to the terminal of first embodiment of the invention;
Fig. 4 is the flow chart of acquisition first deviate according to first embodiment of the invention and the second deviate;
Fig. 5 is the structural representation of a kind of mobile terminal according to third embodiment of the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in each execution mode of the present invention, proposing many ins and outs to make reader understand the application better.But, even without these ins and outs with based on the many variations of following execution mode and amendment, each claim of the application technical scheme required for protection also can be realized.
First execution mode of the present invention relates to a kind of threshold value calibration steps of range sensor.In actual applications, the present inventor finds, because the spot on touch-screen can the light leak etc. of reflecting part infrared ray and internal structure of mobile phone, the value of reading of range sensor is made up of two parts, i.e. the infrared ray value of reflective surface and light leak value.The mobile phone light leak value of different structure is different, mobile phone in use because of falling physically, to rub and the reason such as spot also can cause the light leak value of mobile phone to change, and the difference of light leak value must cause the change of high and low threshold value, therefore, by changeless for high and low threshold value way in prior art, can cause range sensor read value for high and low threshold value time, the actual position of reflecting surface has deviation with position when setting this value at that time, likely causes mobile phone cannot the normal bust that shields of light on and off.Based on this discovery, present embodiment, when range sensor is started working, by the light leak value of Real-time Obtaining current distance transducer, and the high and low threshold value of current distance transducer is upgraded according to the light leak value of current distance transducer, not only increase the accuracy of the high and low threshold value of current distance transducer, also improve the performance of mobile phone, thus bring better experience to user.
The idiographic flow of present embodiment as shown in Figure 2.
In step 201, whether terminal judges is being dialed or is being received calls.If so, then step 202 is entered, if not, then return this step.
In step 202., the range sensor of terminal is started working, and terminal obtains the light leak value of current distance transducer.
The process of the light leak value how terminal being obtained to current distance transducer is done concrete elaboration below.
As shown in Figure 3, in step 301, the maximum displacement value that range sensor can read by terminal as the initial value of range sensor, and enters step 302.
In step 302, reading value and whether being less than initial value of terminal judges current distance transducer, if so, then enters step 303, if not, then return this step.
In step 303, what the initial value of displacement sensor was updated to current distance transducer by terminal reads value, and using the light leak value of the initial value after upgrading as current distance transducer.
It should be noted that, the range sensor of terminal starts dialing user, or when starting to connect phone, namely start working, now terminal have one from away from head (user just dialing or just started to answer the call time) to the process of close head (carrying out the process conversed), when terminal is away from head, owing to there is no reflecting surface, be not difficult to find, now range sensor read to be worth the light leak value being current distance transducer, simultaneously, from range sensor to read to be worth be infrared ray value and light leak value two parts sum of reflective surface, now range sensor to read value minimum, therefore, in general, in the process of terminal away from head, just can obtain the light leak value of current distance transducer.
In step 202., after getting the light leak value of current distance transducer, then step 203 is entered.
In step 203, terminal is according to the light leak value of the current distance transducer got, and preset the first deviate in the terminal and the second deviate, the Low threshold of current distance transducer is updated to the light leak value sum of the first deviate and current distance transducer, the high threshold of current distance transducer is updated to the light leak value sum of the second deviate and current distance transducer.
Wherein, the difference reading the light leak value of value and this range sensor of the first deviate is the screen distance reflecting surface of terminal when being the first predeterminable range range sensor; The difference reading the light leak value of value and this range sensor of the second deviate is the screen distance reflecting surface of terminal when being the second predeterminable range range sensor; Further, the first predeterminable range is less than the second predeterminable range.
Be specifically addressed to the set-up mode of the first deviate and the second deviate below.
As shown in Figure 4, in step 401, N number of test terminal (as mobile phone) is placed in flat condition; Wherein, the surface at the screen place of N number of test terminal is not all blocked, N be more than or equal to 1 natural number; Present embodiment is specifically addressed equaling 10 for N the set-up mode of the first deviate and the second deviate, and meanwhile, conveniently manage, 10 test terminal number consecutivelies are 0 to 9 by present embodiment.
In step 402, what obtain 10 test terminal current distance transducers reads value, be not difficult to find, because the surface at screen place, current 10 test terminals is not all blocked, namely now all there is not reflecting surface in 10 test terminals, therefore current each test terminal range sensor read to be worth the light leak value being this range sensor.
As described in step 401, for the ease of management, the light leak value MIN_VAL of 10 test terminals will got in this step
xrepresent, wherein, x represents the numbering of each test terminal, and desirable 0 to 9, such as, when x gets 0, MIN_VAL
xrepresent the light leak value being numbered the test terminal of 0; When x gets 5, MIN_VAL
xthen represent the light leak value being numbered the test terminal of 5.
In step 403, when the screen distance reflecting surface obtaining each test terminal is the first predeterminable range, range sensor reads value LOW_VAL
x(this place and the x hereinafter mentioned all identical with the x meaning mentioned in step 402).This enforcement equals 3 centimeters for the first predeterminable range and is described.
For above-mentioned case, when x gets 0, LOW_VAL
xwhen representing that the screen distance reflecting surface being numbered the test terminal of 0 is 3 centimeters this test terminal range sensor read value; When x gets 5, LOW_VAL
xwhen representing that the screen distance reflecting surface being numbered the test terminal of 5 is 3 centimeters this test terminal range sensor read value.
In step 404, when the screen distance reflecting surface obtaining each test terminal is the second predeterminable range, range sensor reads value HIGH_VAL
x.Present embodiment equals 5 centimeters for the second predeterminable range and is described.
Similar, for above-mentioned case, when x gets 0, HIGH_VAL
xwhen representing that the screen distance reflecting surface being numbered the test terminal of 0 is 5 centimeters this test terminal range sensor read value; When x gets 5, HIGH_VAL
xwhen representing that the screen distance reflecting surface being numbered the test terminal of 5 is 5 centimeters this test terminal range sensor read value.
It is worth mentioning that, present embodiment is that range sensor when to obtain the screen distance reflecting surface of each test terminal be the first predeterminable range read value LOW_VAL
x, when to be placed on the screen distance reflecting surface obtaining each test terminal be the second predeterminable range, range sensor reads value HIGH_VAL
xstep before be described for example, but in actual applications, also first can perform step 404, then perform step 403.
In step 405, according to the MIN_VAL of each test terminal range sensor got
x, LOW_VAL
xand HIGH_VAL
x, obtain the LOW_VAL of each test terminal range sensor respectively
xwith MIN_VAL
xdifference LOW_OFFSET
xthe difference reading the light leak value of value and range sensor of range sensor (when namely the screen distance reflecting surface of each test terminal is the first predeterminable range), and the HIGH_VAL of each test terminal
xwith MIN_VAL
xdifference HIGH_OFFSET
xthe difference reading the light leak value of value and range sensor of range sensor (when namely the screen distance reflecting surface of each test terminal is the second predeterminable range).
Conveniently manage, the difference LOW_OFFSET reading the light leak value of value and range sensor of range sensor when being the first predeterminable range by the screen distance reflecting surface of each test terminal in present embodiment
xas the first threshold of each test terminal, and the difference HIGH_OFFSET reading the light leak value of value and range sensor of range sensor when being the second predeterminable range by the screen distance reflecting surface of each test terminal
xas the Second Threshold of each test terminal.
In a step 406, obtain the mean value of 10 test terminal first thresholds, and the mean value of Second Threshold is (namely according to the LOW_OFFSET of each test terminal got
xand HIGH_OFFSET
x, obtain the LOW_OFFSET of 10 test terminals
xmean value, and the HIGH_OFFSET of 10 test terminals
xmean value).
In step 407, the difference reading the light leak value of value and this range sensor of range sensor when being the first predeterminable range using the mean value of first threshold as the screen distance reflecting surface of terminal (terminal mentioned in step 201), when being the second predeterminable range using the mean value of Second Threshold as the screen distance reflecting surface of terminal, the difference reading the light leak value of value and this range sensor of range sensor is (by the LOW_OFFSET of 10 test terminals
xmean value as the first deviate, by the HIGH_OFFSET of 10 test terminals
xmean value as the second deviate).
It is worth mentioning that, the structure of 10 test terminals mentioned in step 401 to step 407 is identical with the structure of the terminal mentioned in step 203 (as mobile phone).
The acquisition of the first deviate and the second deviate carries out in the development of terminal, after getting the first deviate and the second deviate, present embodiment is preset in the terminal, for terminal dynamic calibration for high and low threshold value in the use procedure in later stage.
After the high and low threshold value of current distance transducer is updated successfully, then enter step 204.
In step 204, the reading of terminal judges current distance transducer is worth the high threshold whether being greater than current distance transducer, if, then enter step 205, and in step 205, extinguish the background light (current distance transducer read value when being greater than high threshold, the process how terminal extinguishes the background light of screen is prior art, and present embodiment repeats no more) of screen; If not, then enter step 206.
In step 206, the reading of terminal judges current distance transducer is worth the Low threshold whether being less than current distance transducer, if, then enter step 207, and in step 207, light screen background light (current distance transducer read value when being less than Low threshold, the process how terminal lights the background light of screen is prior art, present embodiment repeats no more), if not, then return step 204.
The step of various method divides above, just in order to be described clearly, can merge into a step or splitting some step, being decomposed into multiple step, when realizing as long as comprise identical logical relation, all in the protection range of this patent; To adding inessential amendment in algorithm or in flow process or introducing inessential design, but the core design not changing its algorithm and flow process is all in the protection range of this patent.
Second embodiment of the invention relates to a kind of threshold value calibration steps of range sensor.3rd execution mode is the further improvement done on the basis of the second execution mode, its improvements are: in second embodiment of the invention, terminal, in the process of light leak value obtaining current distance transducer, can judge reading value and whether being less than initial value of current distance transducer every the time of presetting.
Present embodiment explained for 30ms for the time of presetting.That is, in the present embodiment, reading value and whether being less than initial value of current distance transducer will be judged every 30ms terminal, if the value of reading of current distance transducer is less than initial value, what the initial value of range sensor will be updated to current distance transducer by terminal reads value, and using the light leak value of the initial value after upgrading as current distance transducer.
After obtaining the light leak value of current distance transducer, terminal is on the one hand according to the light leak value of current distance transducer and the first deviate preset in the terminal and the second deviate, upgrade the high and low threshold value of current distance transducer, and according to the high and low threshold decision after renewal the need of the background light lighting or extinguish screen; On the other hand terminal continues to perform and judges reading value and whether being less than initial value of current distance transducer every 30ms, and current distance transducer read value be less than initial value time, what the initial value of range sensor is updated to current distance transducer reads value, simultaneously using the step of the initial value after renewal as the light leak value of current distance transducer, until end of conversation.
Third embodiment of the invention relates to a kind of mobile terminal, as shown in Figure 5, comprises: acquisition module, read module, threshold value update module;
Wherein, acquisition module is used for when the range sensor of mobile terminal is started working, and obtains the light leak value of current distance transducer;
Read module is used for when the range sensor of mobile terminal is started working, and reads the first deviate and the second deviate preset in the terminal;
Threshold value update module is used for the light leak value sum Low threshold of current distance transducer being updated to the first deviate and current distance transducer, the high threshold of current distance transducer is updated to the light leak value sum of the second deviate and current distance transducer;
Wherein, the difference reading the light leak value of value and this range sensor of the first deviate is the screen distance reflecting surface of mobile terminal when being the first predeterminable range range sensor; The difference reading the light leak value of value and this range sensor of the second deviate is the screen distance reflecting surface of mobile terminal when being the second predeterminable range range sensor; First predeterminable range is less than the second predeterminable range.
Specifically, acquisition module also comprises initial value setting submodule, judges that submodule, initial value upgrade submodule, light leak value setting submodule;
Wherein, initial value setting submodule is used for the maximum displacement value that can be read by the range sensor initial value as range sensor;
Judge that submodule is for judging reading value and whether being less than initial value of current distance transducer, and current distance transducer read value be less than described initial value time, that triggers that initial value upgrades that initial value is updated to current distance transducer by submodule reads value;
Light leak value setting submodule is used for the light leak value of the initial value after using renewal as current distance transducer.
Be not difficult to find, present embodiment is the system embodiment corresponding with the first execution mode, and present embodiment can be worked in coordination with the first execution mode and be implemented.The relevant technical details mentioned in first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be applicable in the first execution mode.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of multiple physical location.In addition, in order to outstanding innovative part of the present invention, the unit not too close with solving technical problem relation proposed by the invention is not introduced in present embodiment, but this does not show the unit that there is not other in present embodiment.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above realize specific embodiments of the invention, and in actual applications, various change can be done to it in the form and details, and without departing from the spirit and scope of the present invention.
Claims (10)
1. a threshold value calibration steps for range sensor, is characterized in that, comprise following steps:
When the range sensor of terminal is started working, described terminal obtains the light leak value of current described range sensor;
Described terminal is according to the light leak value of the current described range sensor obtained, and the first deviate be preset in described terminal and the second deviate, the Low threshold of current described range sensor is updated to the light leak value sum of described first deviate and current described range sensor, the high threshold of current described range sensor is updated to the light leak value sum of described second deviate and current described range sensor;
Wherein, the difference reading the light leak value of value and this range sensor of the first deviate is the screen distance reflecting surface of terminal when being the first predeterminable range range sensor; The difference reading the light leak value of value and this range sensor of the second deviate is the screen distance reflecting surface of terminal when being the second predeterminable range range sensor; First predeterminable range is less than the second predeterminable range.
2. the threshold value calibration steps of range sensor according to claim 1, is characterized in that, arranges described first deviate and the second deviate in the following manner:
N number of test terminal is placed in flat condition; Wherein, the surface at the screen place of described N number of test terminal is not all blocked, described N be more than or equal to 1 natural number;
The difference reading the light leak value of value and range sensor of range sensor when the screen distance reflecting surface obtaining each test terminal is respectively the first predeterminable range, and the difference reading the light leak value of value and range sensor of range sensor when the screen distance reflecting surface of each test terminal is the second predeterminable range;
The first threshold of difference as each test terminal reading the light leak value of value and range sensor of range sensor when being the first predeterminable range using the screen distance reflecting surface of described each test terminal, and the Second Threshold of difference as each test terminal reading the light leak value of value and range sensor of range sensor when being the second predeterminable range using the screen distance reflecting surface of described each test terminal;
By the mean value of the first threshold of described N number of test terminal, be set to described first deviate; By the mean value of the Second Threshold of described N number of test terminal, be set to described first deviate.
3. the threshold value calibration steps of range sensor according to claim 2, is characterized in that, described N is 10.
4. the threshold value calibration steps of range sensor according to claim 1, is characterized in that, obtains in the step of the light leak value of current described range sensor, comprise following sub-step in described terminal:
The maximum displacement value that range sensor can read by described terminal is as the initial value of described range sensor;
The reading value and whether be less than described initial value of the current described range sensor of described terminal judges, and current described range sensor read value be less than described initial value time, what described initial value is updated to current described range sensor reads value;
Described terminal is using the light leak value of the described initial value after renewal as current described range sensor.
5. the threshold value calibration steps of range sensor according to claim 4, is characterized in that, the current described range sensor of described terminal judges read be worth whether be less than described initial value step in,
Described terminal judges reading value and whether being less than described initial value of current described range sensor every the time of presetting.
6. the threshold value calibration steps of range sensor according to claim 5, is characterized in that, the described default time is 30ms.
7. the threshold value calibration steps of range sensor according to claim 1, is characterized in that, before the step that the range sensor of terminal is started working, further comprising the steps of:
Whether described terminal judges is being dialed or is being received calls, if described terminal is being dialed or received calls, then the range sensor triggering described terminal is started working.
8. the threshold value calibration steps of range sensor according to claim 1, it is characterized in that, after the step of the light leak value sum high threshold of current described range sensor being updated to described second deviate and current described range sensor, further comprising the steps of:
The reading of terminal judges current distance transducer is worth the high threshold whether being greater than current distance transducer;
If current distance transducer read to be worth the high threshold being greater than current distance transducer, then extinguish the background light of screen;
If current distance transducer read to be worth the high threshold being less than current distance transducer, then judge current distance transducer read be worth the Low threshold whether being less than current distance transducer, and current distance transducer read to be worth the Low threshold being less than current distance transducer time, light the background light of screen.
9. a mobile terminal, is characterized in that, described mobile terminal comprises: acquisition module, read module, threshold value update module;
Described acquisition module is used for when the range sensor of mobile terminal is started working, and obtains the light leak value of current described range sensor;
Described read module is used for when the range sensor of mobile terminal is started working, and reads the first deviate and the second deviate that are preset in described mobile terminal;
Described threshold value update module is used for the light leak value sum Low threshold of current described range sensor being updated to described first deviate and current described range sensor, the high threshold of current described range sensor is updated to the light leak value sum of described second deviate and current described range sensor;
Wherein, the difference reading the light leak value of value and this range sensor of the first deviate is the screen distance reflecting surface of mobile terminal when being the first predeterminable range range sensor; The difference reading the light leak value of value and this range sensor of the second deviate is the screen distance reflecting surface of mobile terminal when being the second predeterminable range range sensor; First predeterminable range is less than the second predeterminable range.
10. mobile terminal according to claim 9, is characterized in that, described acquisition module also comprises initial value setting submodule, judges that submodule, initial value upgrade submodule, light leak value setting submodule;
Described initial value setting submodule is used for the maximum displacement value that can be read by the range sensor initial value as described range sensor;
Describedly judge that submodule is for judging reading value and whether being less than described initial value of current described range sensor, and current described range sensor read value be less than described initial value time, that triggers that described initial value upgrades that described initial value is updated to current described range sensor by submodule reads value;
Described light leak value setting submodule is used for the light leak value of the initial value after using renewal as current described range sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510114622.1A CN104702790B (en) | 2015-03-16 | 2015-03-16 | Threshold value calibration method of distance sensor and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510114622.1A CN104702790B (en) | 2015-03-16 | 2015-03-16 | Threshold value calibration method of distance sensor and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104702790A true CN104702790A (en) | 2015-06-10 |
CN104702790B CN104702790B (en) | 2017-05-10 |
Family
ID=53349540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510114622.1A Expired - Fee Related CN104702790B (en) | 2015-03-16 | 2015-03-16 | Threshold value calibration method of distance sensor and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104702790B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105628079A (en) * | 2015-12-30 | 2016-06-01 | 上海闻泰电子科技有限公司 | Dynamic calibration method of distance sensor |
CN105744076A (en) * | 2016-03-31 | 2016-07-06 | 广东欧珀移动通信有限公司 | Method and device for calibrating sensor of terminal |
CN105959461A (en) * | 2016-04-14 | 2016-09-21 | 广东欧珀移动通信有限公司 | Screen sensing control method, screen sensing control device and terminal equipment |
CN106201019A (en) * | 2016-06-28 | 2016-12-07 | 广东欧珀移动通信有限公司 | The threshold value control method of a kind of proximity transducer and mobile terminal |
CN106254611A (en) * | 2016-07-07 | 2016-12-21 | 乐视控股(北京)有限公司 | The method of testing of terminal unit and test system |
CN106412191A (en) * | 2016-08-24 | 2017-02-15 | 努比亚技术有限公司 | Automated testing method and device thereof |
CN106791053A (en) * | 2016-12-07 | 2017-05-31 | 北京小米移动软件有限公司 | The sensing threshold calibration method and device of range sensor |
CN107219515A (en) * | 2017-05-25 | 2017-09-29 | 深圳市金立通信设备有限公司 | The parameter calibrating method and terminal of a kind of range sensor |
CN111243553A (en) * | 2018-11-29 | 2020-06-05 | 北京小米移动软件有限公司 | Control method and device of terminal screen and storage medium |
CN113253287A (en) * | 2020-02-13 | 2021-08-13 | 迪芬尼声学科技股份有限公司 | Object movement detection apparatus and method, and non-transitory computer-readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100164479A1 (en) * | 2008-12-29 | 2010-07-01 | Motorola, Inc. | Portable Electronic Device Having Self-Calibrating Proximity Sensors |
CN102411425A (en) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | Method and device for controlling function of touch screen |
-
2015
- 2015-03-16 CN CN201510114622.1A patent/CN104702790B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100164479A1 (en) * | 2008-12-29 | 2010-07-01 | Motorola, Inc. | Portable Electronic Device Having Self-Calibrating Proximity Sensors |
CN102411425A (en) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | Method and device for controlling function of touch screen |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105628079A (en) * | 2015-12-30 | 2016-06-01 | 上海闻泰电子科技有限公司 | Dynamic calibration method of distance sensor |
CN105628079B (en) * | 2015-12-30 | 2021-07-30 | 上海闻泰电子科技有限公司 | Dynamic calibration method for distance sensor |
CN105744076B (en) * | 2016-03-31 | 2019-03-26 | Oppo广东移动通信有限公司 | A kind of calibration method and device of end sensor |
CN105744076A (en) * | 2016-03-31 | 2016-07-06 | 广东欧珀移动通信有限公司 | Method and device for calibrating sensor of terminal |
CN105959461A (en) * | 2016-04-14 | 2016-09-21 | 广东欧珀移动通信有限公司 | Screen sensing control method, screen sensing control device and terminal equipment |
CN105959461B (en) * | 2016-04-14 | 2020-01-17 | Oppo广东移动通信有限公司 | Screen induction control method and device and terminal equipment |
CN106201019A (en) * | 2016-06-28 | 2016-12-07 | 广东欧珀移动通信有限公司 | The threshold value control method of a kind of proximity transducer and mobile terminal |
CN106201019B (en) * | 2016-06-28 | 2019-04-09 | Oppo广东移动通信有限公司 | A kind of the threshold value adjusting method and mobile terminal of proximity sensor |
CN106254611A (en) * | 2016-07-07 | 2016-12-21 | 乐视控股(北京)有限公司 | The method of testing of terminal unit and test system |
CN106412191A (en) * | 2016-08-24 | 2017-02-15 | 努比亚技术有限公司 | Automated testing method and device thereof |
CN106791053A (en) * | 2016-12-07 | 2017-05-31 | 北京小米移动软件有限公司 | The sensing threshold calibration method and device of range sensor |
CN107219515A (en) * | 2017-05-25 | 2017-09-29 | 深圳市金立通信设备有限公司 | The parameter calibrating method and terminal of a kind of range sensor |
CN111243553A (en) * | 2018-11-29 | 2020-06-05 | 北京小米移动软件有限公司 | Control method and device of terminal screen and storage medium |
CN111243553B (en) * | 2018-11-29 | 2021-06-08 | 北京小米移动软件有限公司 | Control method and device of terminal screen and storage medium |
CN113253287A (en) * | 2020-02-13 | 2021-08-13 | 迪芬尼声学科技股份有限公司 | Object movement detection apparatus and method, and non-transitory computer-readable storage medium |
CN113253287B (en) * | 2020-02-13 | 2024-05-24 | 迪芬尼声学科技股份有限公司 | Object movement detection device and method, and non-transitory computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104702790B (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104702790A (en) | Threshold value calibration method of distance sensor and mobile terminal | |
CN103763433B (en) | The progress control method of terminal applies and system | |
CN104683970A (en) | Profile switching method and device for mobile terminal | |
CN102546942A (en) | Method for automatically switching scene modes of mobile phone | |
CN1672392A (en) | User-selectable status indication for cellular communications devices | |
CN103152738A (en) | Method and device of intelligent intercept | |
CN103095884A (en) | Processing method and processing system for numbers of contact persons | |
CN104202480B (en) | The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus | |
CN106791207A (en) | The method for controlling dialing and mobile terminal of a kind of mobile terminal | |
CN101826967B (en) | Data card and dial-up networking method | |
CN102348006A (en) | Mobile phone and dialing method thereof | |
CN103905593B (en) | Telephone call system and method based on social networks software | |
CN105282293A (en) | Dialing method, dialing device and dialing terminal | |
CN105988928B (en) | The test method and mobile terminal of terminal applies | |
KR20020088471A (en) | Subscriber Identity Module Card and Operating method in a mobile phone using SIM card | |
KR20000011706A (en) | Radiotelephone comprising a keyboard | |
CN101710915B (en) | Method, system and mobile terminal capable of distinguishing contact telephone number network types | |
CN102710842B (en) | Method and device for processing incoming calls of Android platform mobile terminal | |
CN103685776A (en) | Method and device for processing call | |
CN101400175B (en) | Method for starting driver program by mobile communication device | |
CN105898058A (en) | Call reminding method and terminal | |
CN105100347A (en) | Intelligent dialing method, device and terminal | |
CN203504703U (en) | Cordless telephone system | |
KR100390365B1 (en) | Auto-District Identification Setting Method | |
CN107423618A (en) | Application program satellite fix request control method, storage device and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20170825 Address after: 330013, 399, Lake Avenue, Airport Economic Zone, Nanchang, Jiangxi Patentee after: Nanchang and Germany Communications Technology Co., Ltd. Address before: 201506 Shanghai city Jinshan District Industry Road No. 218 Building 2 layer 3 Patentee before: Shanghai Yude Communication Technology Co., Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170510 Termination date: 20180316 |
|
CF01 | Termination of patent right due to non-payment of annual fee |