CN104702790B - Threshold value calibration method of distance sensor and mobile terminal - Google Patents

Threshold value calibration method of distance sensor and mobile terminal Download PDF

Info

Publication number
CN104702790B
CN104702790B CN201510114622.1A CN201510114622A CN104702790B CN 104702790 B CN104702790 B CN 104702790B CN 201510114622 A CN201510114622 A CN 201510114622A CN 104702790 B CN104702790 B CN 104702790B
Authority
CN
China
Prior art keywords
range sensor
value
sensor
terminal
readings
Prior art date
Application number
CN201510114622.1A
Other languages
Chinese (zh)
Other versions
CN104702790A (en
Inventor
李强
Original Assignee
上海与德通讯技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海与德通讯技术有限公司 filed Critical 上海与德通讯技术有限公司
Priority to CN201510114622.1A priority Critical patent/CN104702790B/en
Publication of CN104702790A publication Critical patent/CN104702790A/en
Application granted granted Critical
Publication of CN104702790B publication Critical patent/CN104702790B/en

Links

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

A kind of threshold calibration method of range sensor and mobile terminal

Technical field

The present invention relates to the communications field, the threshold calibration method and mobile terminal of more particularly to a kind of range sensor.

Background technology

Range sensor (as shown in Figure 1) is called displacement transducer, and the both sides or mobile phone for being typically mounted at earpiece are listened In cylinder groove, including infrared emission tube, intensity of illumination inductor and controller (not shown), when user is answering or pulling out When making a phone call, by mobile phone near head, range sensor can measure reflecting surface, and (usually face, hair, hand etc., are researching and developing During with gray card as reflecting surface) the distance between with mobile phone, and screen (the extinguishing screen that goes out during therebetween in small distance Background light), bright screen (lighting the background light of screen) when larger, so as to while user-friendly, also more power saving.

In prior art, generally judge whether to need light on and off screen with two threshold values of Low threshold and high threshold, when distance is passed The current readings of sensor be less than Low threshold when, illustrate head from mobile phone farther out, mobile phone bright screen;When the current readings of range sensor During more than high threshold, head is illustrated close to mobile phone, mobile phone goes out screen.

The establishing method of high and low threshold value is typically:Several mobile phones of same project are first chosen, then selectes two different height Degree obtains readings of the mobile phone corresponding to institute's range sensor of selected height, and calculating as light on and off screen point, respectively corresponding to same The mean value of the readings of the range sensor of one height, then it is using draw two mean values as high and low threshold value and fixed To in the corresponding software code of mobile phone.But in actual applications, the changeless way of high and low threshold value can be caused into Distance-sensing When the readings of device is high and low threshold value, the actual position of reflecting surface has deviation with position when setting the value at that time, so as to cause hand Machine occur cannot normal light on and off screen bust.

The content of the invention

It is an object of the invention to provide a kind of threshold calibration method of range sensor so that terminal can with currently away from On the basis of the light leak value of sensor, the high and low threshold value of real time calibration current distance sensor, so as to improve the performance of mobile phone, Preferably experience is brought to user.

To solve above-mentioned technical problem, embodiments of the present invention provide a kind of threshold calibration side of range sensor Method, comprises the steps of:

When the range sensor of terminal is started working, the terminal obtains the light leak value of presently described range sensor;

The terminal is according to the light leak value of the presently described range sensor for obtaining, and the be preset in the terminal One deviation and the second deviation, first deviation is updated to current institute by the Low threshold of presently described range sensor The light leak value sum of range sensor is stated, the high threshold of presently described range sensor is updated to second deviation and is worked as The light leak value sum of the front range sensor;

Wherein, the readings of range sensor when the first deviation is the first predeterminable range for the screen distance reflecting surface of terminal With the difference of the light leak value of the range sensor;When second deviation is the second predeterminable range for the screen distance reflecting surface of terminal The difference of the readings of range sensor and the light leak value of the 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 the mobile terminal includes:Acquisition module, reading mould Block, threshold value update module;

The acquisition module is used for when the range sensor of mobile terminal is started working, and obtains presently described Distance-sensing The light leak value of device;

The read module is used for when the range sensor of mobile terminal is started working, and reading is preset in described mobile whole The first deviation and the second deviation in end;

The threshold value update module is used to for the Low threshold of presently described range sensor to be updated to first deviation With the light leak value sum of presently described range sensor, the high threshold of presently described range sensor is updated to into described second inclined The light leak value sum of difference and presently described range sensor;

Wherein, range sensor when the first deviation is the first predeterminable range for the screen distance reflecting surface of mobile terminal The difference of the light leak value of readings and the range sensor;Second deviation is second pre- for the screen distance reflecting surface of mobile terminal If apart from when range sensor readings and the range sensor light leak value difference;First predeterminable range is default less than second Distance.

Embodiment of the present invention in terms of existing technologies, when range sensor is started working, is obtained in real time current The light leak value of range sensor, and the high and low threshold value of current distance sensor is updated according to the light leak value of current distance sensor, The accuracy of the high and low threshold value of current distance sensor is not only increased, the performance of mobile phone is also improved, so as to bring to user Preferably experience.

Further, first deviation and the second deviation are set in the following manner:

N number of test terminal is placed in into flat condition;Wherein, N number of test terminal screen be located surface not by Block, the N is the natural number more than or equal to 1;

The readings of range sensor when the screen distance reflecting surface for obtaining each test terminal respectively is the first predeterminable range With the difference of the light leak value of range sensor, and the screen distance reflecting surface of each test terminal be the second predeterminable range when distance The difference of the readings of sensor and the light leak value of range sensor;

When by the screen distance reflecting surface of each test terminal being the first predeterminable range the readings of range sensor with The difference of the light leak value of range sensor as each test terminal first threshold, and by the screen of each test terminal When apart from reflecting surface being the second predeterminable range the readings of range sensor with the difference of the light leak value of range sensor as each The Second Threshold of test terminal;

By the mean value of the first threshold of N number of test terminal, first deviation is set to;By N number of survey The mean value of the Second Threshold of examination terminal, is set to first deviation.First deviation is conducive to protecting with the second deviation Card terminal is in height, for there is a buffering area between threshold value, so as to avoid terminal from making because only existing a threshold value (critical point) Terminal the Near Threshold it is frequently bright, go out frequency, is conducive to improving the performance of mobile phone, and to user preferably experience is brought.

Further, the N is 10.Be conducive to improving the accuracy of the first deviation and the second deviation.

Further, in the step of terminal obtains the light leak value of presently described range sensor, including following son Step:

Initial value of the maximum displacement value that the terminal can read range sensor as the range sensor;

Whether the readings of the presently described range sensor of the terminal judges is less than the initial value, and it is presently described away from When being less than the initial value from the readings of sensor, the initial value is updated to into the readings of presently described range sensor;

The terminal using renewal after the initial value as presently described range sensor light leak value.Advantageously ensure that Terminal gets the light leak value of current distance sensor.

Further, whether the readings in the presently described range sensor of the terminal judges is less than the step of the initial value In rapid,

Whether the terminal judges the readings of presently described range sensor less than the initial value every the default time. Periodically judge the readings of displacement sensing, the light leak value of the current distance sensor that is conducive to upgrading in time, so as to upgrade in time The high and low threshold value of current distance sensor.

Further, the default time is 30ms.Be conducive to improving the light leak of the range sensor for currently getting The accuracy of value.

Description of the drawings

Fig. 1 is the structural representation of the range sensor according to prior art;

Fig. 2 is a kind of flow chart of the threshold calibration method of the range sensor according to first embodiment of the invention;

Fig. 3 is the flow chart of the light leak value that current distance sensor is obtained according to the terminal of first embodiment of the invention;

Fig. 4 is the flow chart of the deviation of acquisition first according to first embodiment of the invention and the second deviation;

Fig. 5 is a kind of structural representation of the mobile terminal according to third embodiment of the invention.

Specific embodiment

To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with each reality of the accompanying drawing to the present invention The mode of applying is explained in detail.However, it will be understood by those skilled in the art that in each embodiment of the invention, In order that reader more fully understands the application and proposes many ins and outs.But, even if without these ins and outs and base Many variations and modification in following embodiment, it is also possible to realize each claim of the application technical side required for protection Case.

The first embodiment of the present invention is related to a kind of threshold calibration method of range sensor.In actual applications, originally The inventor of invention has found, because the spot on touch-screen understands light leak of reflecting part infrared ray and internal structure of mobile phone etc., makes The readings for obtaining range sensor is made up of two parts, i.e. the infrared ray value and light leak value of reflective surface.The mobile phone of different structure Light leak value is different, mobile phone in use because of falling physically, rub and the reason such as spot will also result in the light leak of mobile phone Value changes, and the difference of light leak value necessarily causes the change of high and low threshold value, therefore, high and low threshold value is consolidated in prior art Fixed constant way, when the readings that can cause range sensor is high and low threshold value, the actual position of reflecting surface should with setting at that time There is deviation position during value, it is possible to cause mobile phone cannot normal light on and off screen bust.Based on this discovery, this enforcement Mode, when range sensor is started working, by the light leak value for obtaining current distance sensor in real time, and according to current distance The light leak value of sensor updates the high and low threshold value of current distance sensor, not only increases the high and low threshold of current distance sensor The accuracy of value, also improves the performance of mobile phone, so as to bring preferably experience to user.

The idiographic flow of present embodiment is as shown in Figure 2.

In step 201, whether terminal judges are being dialed or are being received calls.If so, step 202 is then entered, if it is 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 sensor.

Below the process that the light leak value of current distance sensor how is obtained to terminal is done into specific elaboration.

As shown in figure 3, in step 301, the terminal maximum displacement value to be read range sensor is used as distance The initial value of sensor, and into step 302.

In step 302, whether the readings of terminal judges current distance sensor is less than initial value, if so, then enters step Rapid 303, if it is not, then returning this step.

In step 303, the initial value of displacement sensor is updated to terminal the readings of current distance sensor, and will be updated Light leak value of the initial value afterwards as current distance sensor.

It should be noted that the range sensor of terminal starts dialing in user, or when beginning to turn on phone, that is, start work Make, now terminal has one from (carrying out to close head away from head (user just starts to dial or when just starting to answer the call) The process of call) process, when terminal is away from head, due to the presence without reflecting surface, it is seen that, now Distance-sensing The readings of device is the light leak value of current distance sensor, meanwhile, it is the infrared of reflective surface by the readings of range sensor Line value and light leak value two parts sum understand that now the readings of range sensor is minimum, therefore, in general, terminal away from During head, it is possible to obtain the light leak value of current distance sensor.

In step 202., after getting the light leak value of current distance sensor, then into step 203.

In step 203, terminal is according to the light leak value of the current distance sensor for getting, and it is default in the terminal First deviation and the second deviation, are updated to the Low threshold of current distance sensor the first deviation and sense with current distance The light leak value sum of device, by the high threshold of current distance sensor the light leak of the second deviation and current distance sensor is updated to Value sum.

Wherein, the readings of range sensor when the first deviation is the first predeterminable range for the screen distance reflecting surface of terminal With the difference of the light leak value of the range sensor;When second deviation is the second predeterminable range for the screen distance reflecting surface of terminal The difference of the readings of range sensor and the light leak value of the range sensor;Also, the first predeterminable range it is default less than second away from From.

The set-up mode of the first deviation and the second deviation will be specifically addressed below.

As shown in figure 4, in step 401, N number of test terminal (such as mobile phone) is placed in into flat condition;Wherein, N number of test The surface that the screen of terminal is located is not blocked, and N is the natural number more than or equal to 1;Present embodiment will be equal to 10 with N Example is specifically addressed to the set-up mode of the first deviation and the second deviation, at the same time, manages for convenience, this embodiment party 10 test terminal number consecutivelies are 0 to 9 by formula.

In step 402, the readings of 10 test terminal current distance sensors is obtained, it is seen that, due to current 10 The surface that individual test terminal screen is located is not blocked, i.e., now 10 test terminals do not have a reflecting surface, therefore currently The readings of the range sensor of each test terminal is the light leak value of the range sensor.

As described in step 401, for the ease of management, the light leak value of get 10 test terminals is used in this step MIN_VALxRepresent, wherein, x represents the numbering of each test terminal, can use 0 to 9, for example, when x takes 0, MIN_VALxRepresent Numbering is the light leak value of 0 test terminal;When x takes 5, MIN_VALxThen represent the light leak value of the test terminal that numbering is 5.

In step 403, Distance-sensing when the screen distance reflecting surface for obtaining each test terminal is the first predeterminable range Readings LOW_VAL of devicex(this place and the x for hereinafter mentioning are identical with the x meanings mentioned in step 402).This enforcement is with One predeterminable range is illustrated as a example by being equal to 3 centimeters.

For above-mentioned case, when x takes 0, LOW_VALxRepresent that the screen distance reflecting surface for numbering the test terminal for being 0 is The readings of the range sensor of test terminal when 3 centimeters;When x takes 5, LOW_VALxRepresent the test terminal that numbering is 5 The readings of the range sensor of test terminal when screen distance reflecting surface is 3 centimeters.

In step 404, Distance-sensing when the screen distance reflecting surface for obtaining each test terminal is the second predeterminable range Readings HIGH_VAL of devicex.Present embodiment is illustrated so that the second predeterminable range is equal to 5 centimeters as an example.

Similar, for above-mentioned case, when x takes 0, HIGH_VALxRepresent the screen distance of the test terminal that numbering is 0 The readings of the range sensor of test terminal when reflecting surface is 5 centimeters;When x takes 5, HIGH_VALxRepresent the survey that numbering is 5 The readings of the range sensor of the test terminal when screen distance reflecting surface of examination terminal is 5 centimeters.

It is noted that present embodiment is to preset the screen distance reflecting surface for obtaining each test terminal for first Apart from when range sensor readings LOW_VALx, be placed on obtain each test terminal screen distance reflecting surface be second preset Apart from when range sensor readings HIGH_VALxThe step of before as a example by illustrate, but in actual applications, it is also possible to First carry out step 404, then execution step 403.

In step 405, according to the MIN_VAL of each the test terminal range sensor for gettingx、LOW_VALxAnd HIGH_VALx, the LOW_VAL of each test terminal range sensor is obtained respectivelyxWith MIN_VALxDifference LOW_OFFSETx (the i.e. readings of range sensor and range sensor when the screen distance reflecting surface of each test terminal is the first predeterminable range The difference of light leak value), and the HIGH_VAL of each test terminalxWith MIN_VALxDifference HIGH_OFFSETx(i.e. each test The difference of the light leak value of the readings of range sensor and range sensor when the screen distance reflecting surface of terminal is the second predeterminable range Value).

Manage for convenience, in present embodiment by the screen distance reflecting surface of each test terminal be the first predeterminable range When range sensor readings and range sensor light leak value difference LOW_OFFSETxAs the first of each test terminal Threshold value, and the readings of range sensor is passed with distance when being the second predeterminable range by the screen distance reflecting surface of each test terminal Difference HIGH_OFFSET of the light leak value of sensorxAs the Second Threshold of each test terminal.

In a step 406, the mean value of 10 test terminal first thresholds, and mean value (the i.e. root of Second Threshold are obtained According to the LOW_OFFSET of each test terminal for gettingxAnd HIGH_OFFSETx, obtain the LOW_ of 10 test terminals OFFSETxMean value, and the HIGH_OFFSET of 10 test terminalsxMean value).

In step 407, using the mean value of first threshold as terminal (terminal being previously mentioned in step 201) screen away from The difference of the readings of range sensor and the light leak value of range sensor when from reflecting surface being the first predeterminable range, by the second threshold The readings of range sensor is passed with the distance when mean value of value is the second predeterminable range as the screen distance reflecting surface of terminal The light leak value of sensor difference (will 10 test terminals LOW_OFFSETxMean value as the first deviation, by 10 The HIGH_OFFSET of test terminalxMean value as the second deviation).

It is noted that the structure of 10 test terminals mentioned into step 407 of step 401 and institute in step 203 The structure of the terminal (such as mobile phone) mentioned is identical.

The acquisition of the first deviation and the second deviation is carried out in the development of terminal, gets the first deviation After the second deviation, present embodiment is preset in the terminal, and for terminal high and low threshold is used for during the use in later stage The dynamic calibration of value.

After the high and low threshold value of current distance sensor is updated successfully, then into step 204.

In step 204, whether the readings of terminal judges current distance sensor is more than the high threshold of current distance sensor Value, if so, then enters step 205, and in step 205, (readings of current distance sensor is more than the background light of extinguishing screen During high threshold, it is prior art that how terminal extinguishes the process of the background light of screen, and present embodiment is repeated no more);If it is not, Then enter step 206.

In step 206, whether the readings of terminal judges current distance sensor is less than the low threshold of current distance sensor Value, if so, then enters step 207, and in step 207, (readings of current distance sensor is less than to light the background light of screen During Low threshold, it is prior art that how terminal lights the process of the background light of screen, and present embodiment is repeated no more), if it is not, Then return to step 204.

Above the step of various methods divide, be intended merely to description it is clear, can merge into when realizing a step or Some steps are split, multiple steps are decomposed into, as long as comprising identical logical relation, all in the protection domain of this patent It is interior;To either adding inessential modification in algorithm in flow process or introducing inessential design, but its algorithm is not changed With the core design of flow process all in the protection domain of the patent.

Second embodiment of the invention is related to a kind of threshold calibration method of range sensor.3rd embodiment is The further improvement done on the basis of two embodiments, it is theed improvement is that:In second embodiment of the invention, terminal exists During obtaining the light leak value of current distance sensor, can judge that the readings of current distance sensor is every the default time It is no less than initial value.

Present embodiment is explained so that the default time is as 30ms as an example.That is, in the present embodiment, Whether the readings of current distance sensor will be judged less than initial value, every 30ms terminals if the readings of current distance sensor Less than initial value, the initial value of range sensor will be updated to terminal the readings of current distance sensor, and after updating Initial value as current distance sensor light leak value.

On the one hand after obtaining the light leak value of current distance sensor, terminal is according to the light leak value of current distance sensor and pre- If the first deviation in the terminal and the second deviation, update current distance sensor high and low threshold value, and according to renewal after High and low threshold decision whether need to light or extinguish the background light of screen;Another aspect terminal is continued executing with to be sentenced every 30ms Whether the readings of disconnected current distance sensor is less than initial value, and when the readings of current distance sensor is less than initial value, will The initial value of range sensor is updated to the readings of current distance sensor, while using the initial value after renewal as current distance The step of light leak value of sensor, till end of conversation.

Third embodiment of the invention is related to a kind of mobile terminal, as shown in figure 5, including: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 current distance sensor Light leak value;

Read module is used for when the range sensor of mobile terminal is started working, read it is default in the terminal the One deviation and the second deviation;

Threshold value update module is used to for the Low threshold of current distance sensor to be updated to the first deviation with current distance biography The light leak value sum of sensor, by the high threshold of current distance sensor the leakage of the second deviation and current distance sensor is updated to Light value sum;

Wherein, range sensor when the first deviation is the first predeterminable range for the screen distance reflecting surface of mobile terminal The difference of the light leak value of readings and the range sensor;Second deviation is second pre- for the screen distance reflecting surface of mobile terminal If apart from when range sensor readings and the range sensor light leak value difference;First predeterminable range is default less than second Distance.

Specifically, acquisition module also include initial value setting submodule, judging submodule, initial value update submodule, Light leak value sets submodule;

Wherein, initial value setting submodule is used for the maximum displacement value that can read range sensor as Distance-sensing The initial value of device;

Whether judging submodule is used to judge the readings of current distance sensor less than initial value, and in current distance sensing When the readings of device is less than the initial value, triggers initial value and update the reading that initial value is updated to submodule current distance sensor Value;

Light leak value setting submodule be used for using the initial value after renewal as current distance sensor light leak value.

It is seen that, present embodiment is the system embodiment corresponding with first embodiment, and present embodiment can be with First embodiment is worked in coordination enforcement.The relevant technical details mentioned in first embodiment still have in the present embodiment Effect, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in In first embodiment.

It is noted that each module involved in present embodiment is logic module, in actual applications, one Individual logical block can be a part for a physical location, or a physical location, can be with multiple physics lists The combination of unit is realized.Additionally, the innovative part in order to project the present invention, will not be with solution institute of the present invention in present embodiment The unit that the technical problem relation of proposition is less close is introduced, but this is not intended that in present embodiment there are no other lists Unit.

It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention, And in actual applications, can in the form and details to it, various changes can be made, without departing from the spirit and scope of the present invention.

Claims (7)

1. a kind of threshold calibration method of range sensor, it is characterised in that comprise the steps of:
When the range sensor of terminal is started working, the terminal obtains the light leak value of presently described range sensor;
The terminal is according to the light leak value of the presently described range sensor for obtaining, and first be preset in the terminal be inclined Difference and the second deviation, by the Low threshold of presently described range sensor be updated to first deviation with it is presently described away from From the light leak value sum of sensor, the high threshold of presently described range sensor is updated to into second deviation with current institute State the light leak value sum of range sensor;
Wherein, when the first deviation is the first predeterminable range for the screen distance reflecting surface of terminal the readings of range sensor with should The difference of the light leak value of range sensor;Distance when second deviation is the second predeterminable range for the screen distance reflecting surface of terminal The difference of the readings of sensor and the light leak value of the range sensor;First predeterminable range is less than the second predeterminable range;
First deviation and the second deviation are set in the following manner:
N number of test terminal is placed in into flat condition;Wherein, the surface that the screen of N number of test terminal is located is not blocked, The N is the natural number more than or equal to 1;
When the screen distance reflecting surface for obtaining each test terminal respectively is the first predeterminable range the readings of range sensor with away from From the difference of the light leak value of sensor, and the screen distance reflecting surface of each test terminal Distance-sensing when being the second predeterminable range The difference of the readings of device and the light leak value of range sensor;
The readings and distance of range sensor when by the screen distance reflecting surface of each test terminal being the first predeterminable range The difference of the light leak value of sensor as each test terminal first threshold, and by the screen distance of each test terminal The readings of range sensor is tested with the difference of the light leak value of range sensor as each when reflecting surface is the second predeterminable range The Second Threshold of terminal;
By the mean value of the first threshold of N number of test terminal, first deviation is set to;By N number of test eventually The mean value of the Second Threshold at end, is set to first deviation;
In the step of terminal obtains the light leak value of presently described range sensor, including following sub-step:
Initial value of the maximum displacement value that the terminal can read range sensor as the range sensor;
Whether the readings of the presently described range sensor of the terminal judges is less than the initial value, and passes in presently described distance When the readings of sensor is less than the initial value, the initial value is updated to into the readings of presently described range sensor;
The terminal using renewal after the initial value as presently described range sensor light leak value.
2. the threshold calibration method of range sensor according to claim 1, it is characterised in that the N is 10.
3. the threshold calibration method of range sensor according to claim 1, it is characterised in that work as in the terminal judges In the step of whether readings of the front range sensor is less than the initial value,
Whether the terminal judges the readings of presently described range sensor less than the initial value every the default time.
4. the threshold calibration method of range sensor according to claim 3, it is characterised in that the default time is 30ms。
5. the threshold calibration method of range sensor according to claim 1, it is characterised in that in the Distance-sensing of terminal It is further comprising the steps of before the step of device is started working:
Whether the terminal judges are being dialed or are being received calls, if the terminal is being dialed or received calls, trigger the end The range sensor at end is started working.
6. the threshold calibration method of range sensor according to claim 1, it is characterised in that by presently described distance After the step of high threshold of sensor is updated to the light leak value sum of second deviation and presently described range sensor, It is further comprising the steps of:
Whether the readings of terminal judges current distance sensor is more than the high threshold of current distance sensor;
If the readings of current distance sensor extinguishes the background light of screen more than the high threshold of current distance sensor;
If the readings of current distance sensor judges the reading of current distance sensor less than the high threshold of current distance sensor Whether value is less than the Low threshold of current distance sensor, and the readings in current distance sensor is less than current distance sensor During Low threshold, the background light of screen is lighted.
7. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Acquisition module, read module, threshold value update mould Block;
The acquisition module is used for when the range sensor of mobile terminal is started working, and obtains presently described range sensor Light leak value;
The read module is used for when the range sensor of mobile terminal is started working, and reading is preset in the mobile terminal The first deviation and the second deviation;
The threshold value update module is used to that the Low threshold of presently described range sensor to be updated to first deviation and be worked as The light leak value sum of the front range sensor, by the high threshold of presently described range sensor second deviation is updated to With the light leak value sum of presently described range sensor;
Wherein, the readings of range sensor when the first deviation is the first predeterminable range for the screen distance reflecting surface of mobile terminal With the difference of the light leak value of the range sensor;Second deviation for the screen distance reflecting surface of mobile terminal be second it is default away from From when range sensor readings and the range sensor light leak value difference;First predeterminable range it is default less than second away from From;
First deviation and the second deviation are set in the following manner:
N number of test terminal is placed in into flat condition;Wherein, the surface that the screen of N number of test terminal is located is not blocked, The N is the natural number more than or equal to 1;
When the screen distance reflecting surface for obtaining each test terminal respectively is the first predeterminable range the readings of range sensor with away from From the difference of the light leak value of sensor, and the screen distance reflecting surface of each test terminal Distance-sensing when being the second predeterminable range The difference of the readings of device and the light leak value of range sensor;
The readings and distance of range sensor when by the screen distance reflecting surface of each test terminal being the first predeterminable range The difference of the light leak value of sensor as each test terminal first threshold, and by the screen distance of each test terminal The readings of range sensor is tested with the difference of the light leak value of range sensor as each when reflecting surface is the second predeterminable range The Second Threshold of terminal;
By the mean value of the first threshold of N number of test terminal, first deviation is set to;By N number of test eventually The mean value of the Second Threshold at end, is set to first deviation;
The acquisition module also includes that initial value setting submodule, judging submodule, initial value update submodule, the setting of light leak value Submodule;
The initial value setting submodule is used for the maximum displacement value that can read range sensor as the Distance-sensing The initial value of device;
Whether the judging submodule is used to judge the readings of presently described range sensor less than the initial value, and current When the readings of the range sensor is less than the initial value, triggers the initial value renewal submodule and update the initial value For the readings of presently described range sensor;
Light leak value setting submodule be used for using the initial value after renewal as presently described range sensor light leak value.
CN201510114622.1A 2015-03-16 2015-03-16 Threshold value calibration method of distance sensor and mobile terminal CN104702790B (en)

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 CN104702790A (en) 2015-06-10
CN104702790B true CN104702790B (en) 2017-05-10

Family

ID=53349540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510114622.1A 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744076B (en) * 2016-03-31 2019-03-26 Oppo广东移动通信有限公司 A kind of calibration method and device of end sensor
CN105959461A (en) * 2016-04-14 2016-09-21 广东欧珀移动通信有限公司 Screen sensing control method, screen sensing control device and terminal equipment
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
CN107219515A (en) * 2017-05-25 2017-09-29 深圳市金立通信设备有限公司 The parameter calibrating method and terminal of a kind of range sensor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411425A (en) * 2011-07-22 2012-04-11 华为终端有限公司 Method and device for controlling function of touch screen

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8030914B2 (en) * 2008-12-29 2011-10-04 Motorola Mobility, Inc. Portable electronic device having self-calibrating proximity sensors

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411425A (en) * 2011-07-22 2012-04-11 华为终端有限公司 Method and device for controlling function of touch screen

Also Published As

Publication number Publication date
CN104702790A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
EP0939531B1 (en) Method for forming an icon
US20040158829A1 (en) Downloading application software to a mobile terminal
TWI400982B (en) Commnication apparatus and method for integrating cell measurement procedures
CN1652626A (en) Cellular phone
RU2011106288A (en) Method and device for preventing telephone fraud
CN100342378C (en) Method and apparatus for managing presence information of a terminal device in a network
CN103037062A (en) Method and terminal and server used for intercepting crank calls
WO2012065381A1 (en) Method and apparatus for preventing malicious softwares from transmitting data
US20090312068A1 (en) System and method for setting and selecting a communication mode of a communication device
JP4633040B2 (en) Communication terminal device and program
EP1670222A3 (en) Wireless headset, portable communication system, management server and method for placing a call from a headset
KR20080113281A (en) Directory server apparatus, server control program, and server-client system
CN101001464A (en) Mobile communication terminal and its calling method
US9924015B2 (en) Method of displaying call information in mobile communication terminal and mobile communication terminal adapted to display call information
CN105722090A (en) Control method and device for automatically identifying pseudo base station
US20020004386A1 (en) Apparatus comprising a storage device for storing performance data and method of updating this storage device
KR101366795B1 (en) Communication device, connection method, and storage medium
BRPI0512176A (en) method of controlling data usage by a wireless communication device, service data point, and computer based system for controlling the use of a plurality of wireless communication devices
WO2018205829A1 (en) Radio frequency interference processing method and apparatus, storage medium, and electronic device
CN102984338B (en) Multi-card communication equipment and communication processing method thereof
CN103854298B (en) A kind of method that picture and Quick Response Code merge and terminal
CN1791256A (en) Mobile phone communication automatic testing method and mobile phone automatic calling unit
KR101086793B1 (en) Portable device and information management method
US7881701B2 (en) Method and system for verifying telephone numbers
CN103402190A (en) Method and device for selecting network as well as terminal

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into 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