CN103837910A - Method for determining threshold value of proximity sensor and terminal - Google Patents

Method for determining threshold value of proximity sensor and terminal Download PDF

Info

Publication number
CN103837910A
CN103837910A CN201410104205.4A CN201410104205A CN103837910A CN 103837910 A CN103837910 A CN 103837910A CN 201410104205 A CN201410104205 A CN 201410104205A CN 103837910 A CN103837910 A CN 103837910A
Authority
CN
China
Prior art keywords
signal value
current
scale factor
value
terminal
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
Application number
CN201410104205.4A
Other languages
Chinese (zh)
Other versions
CN103837910B (en
Inventor
叶泽钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410104205.4A priority Critical patent/CN103837910B/en
Publication of CN103837910A publication Critical patent/CN103837910A/en
Application granted granted Critical
Publication of CN103837910B publication Critical patent/CN103837910B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method for determining the threshold value of a proximity sensor. The method comprises the steps of acquiring a current first signal value of the proximity sensor, selecting a corresponding default scale factor according to the acquired current first signal value, and determining the threshold value of the proximity sensor according to the product of the selected default scale factor and the current first signal value. Correspondingly, the embodiment of the invention further discloses a terminal. According to the method for determining the threshold value of the proximity sensor and the terminal, self-calibration of the threshold value of the proximity sensor can be achieved, and user experience is improved.

Description

Method and terminal that a kind of proximity transducer threshold value is definite
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of proximity transducer threshold value definite method and terminal.
Background technology
User is in the time using touch-screen mobile phone to receive calls, and face tends to encounter in touch screen, may click unintentionally on-hook key or Hands-free key, thereby causes unnecessary embarrassment.Because, the distance of the catoptrical infrared reflection intensity judgment object that proximity transducer can receive according to infrared receiving diode, therefore, proximity transducer is designed into touch-screen mobile phone, by the infrared reflection intensity and the threshold value that relatively receive, when automatically controlling user and receiving calls, whether the locking of screen.At present, this threshold value is fixed value, generally before dispatching from the factory, sets.Along with the use of mobile phone, the structure of mobile phone always changes, and for example light shield is aging, TP(touch panel, contact panel) transmittance change or silica gel leather sheath loosening etc., thereby make this fixing threshold value can not accurately control the locking of screen.
Summary of the invention
The embodiment of the present invention provides a kind of proximity transducer threshold value definite method and terminal, can realize the self calibration of the threshold value of proximity transducer, thereby strengthens user's experience.
The embodiment of the present invention provides a kind of proximity transducer threshold value definite method, comprising:
Obtain the current first signal value of proximity transducer;
According to obtained current first signal value, choose the corresponding default scale factor;
Determine the threshold value of described proximity transducer according to the product of the selected default scale factor and current first signal value.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, comprising:
First signal value acquiring unit, for obtaining the current first signal value of proximity transducer;
The default scale factor is chosen unit, for the current first signal value of obtaining according to described first signal value acquiring unit, chooses the corresponding default scale factor;
Threshold value determining unit, for determining the threshold value of described proximity transducer according to the product of the selected default scale factor and current first signal value.
The embodiment of the present invention can be determined by the product of current obtained first signal value and the selected default scale factor threshold value of proximity transducer, has realized the self calibration of the threshold value of proximity transducer, thereby has strengthened user's experience.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the definite method flow schematic diagram of a kind of proximity transducer threshold value that the embodiment of the present invention provides;
Fig. 2 is the definite method flow schematic diagram of a kind of proximity transducer threshold value that another embodiment of the present invention provides;
Fig. 3 is the definite method flow schematic diagram of a kind of proximity transducer threshold value that another embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of terminal of providing of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is the definite method flow schematic diagram of a kind of proximity transducer threshold value that the embodiment of the present invention provides.The definite flow process of proximity transducer threshold value in the present embodiment can comprise as shown in Figure 1:
S110, obtains the current first signal value of proximity transducer.
Concrete, proximity transducer can comprise infrarede emitting diode and infrared receiving diode, in the time that terminal meets the calibration condition of proximity transducer, infrarede emitting diode can be along terminal screen direction, outwards transmitting infrared ray, in the time that there is object in terminal screen front, object meeting reflecting part infrared ray, the infrared ray that the object that terminal can receive infrared receiving diode is reflected back is converted into electric signal, again electric signal is converted into digital signal, thereby obtains the current first signal value of proximity transducer.
As the optional embodiment of one, if terminal detects when having call request or the proximity transducer calibration command that reaches proximity transducer calibration cycle or receive user being detected, can judge the calibration condition that meets proximity transducer, thereby obtain the current first signal value of proximity transducer.
Wherein, the current first signal value of the proximity transducer that terminal is obtained can comprise current maximum signal level or current minimum signal value, described current minimum signal value can (not have object without object at terminal screen front end in proximity transducer investigative range, as terminal unlocking or manually light screen) time obtains, described current maximum signal level can obtain near object (as user receives calls) time at terminal screen.In specific implementation, terminal can pre-stored peak signal interval value and minimum signal interval value, in the time that terminal gets the current first signal value of proximity transducer, the current first signal value getting can be mated with minimum signal interval value with pre-stored peak signal interval value, determine that current first signal value is current maximum signal level or current minimum signal value, thereby determine the corresponding default scale factor.
S120, according to obtained current first signal value, chooses the corresponding default scale factor.
The described default scale factor can comprise default scale factor of n 1 or default scale factor of n 2 corresponding to minimum signal value that maximum signal level is corresponding, wherein, the span of the default scale factor of n 1 that maximum signal level is corresponding is 0<n1<1, and the span of default scale factor of n 2 corresponding to minimum signal value is n2>1.
Concrete, in the time that terminal gets the current first signal value of proximity transducer, terminal can judge that current first signal value is maximum signal level or minimum signal value, if described current first signal value is maximum signal level, terminal is chosen the default scale factor of n 1 that maximum signal level is corresponding; If described current first signal value is minimum signal value, terminal is chosen default scale factor of n 2 corresponding to minimum signal value.
S130, determines the threshold value of described proximity transducer according to the product of the selected default scale factor and current first signal value.
Concrete, described threshold value can comprise near threshold value A and leave threshold value B, if the current first signal value that terminal is obtained is maximum signal level, can be according to current first signal value the definite threshold value B of leaving of product with the corresponding default scale factor; If the current first signal value that terminal is obtained is minimum signal value, can determine near threshold value A with the product of the corresponding default scale factor according to current first signal value.
Optionally, if the current first signal value that terminal is obtained is maximum signal level, also can determine near threshold value A with the product of the corresponding default scale factor according to current first signal value; If the current first signal value that terminal is obtained is minimum signal value, also can determines and leave threshold value B with the product of the corresponding default scale factor according to current first signal value.
Wherein, near threshold value with leave threshold value and can be same value, i.e. A=B; When near threshold value with leave threshold value when not identical, A<B, when the reflection ray intensity that proximity transducer obtains is greater than B, judgement has object to shut out the light, and has object near terminal; When the reflection ray intensity of obtaining when proximity transducer is less than A, judge that light blocks to be eliminated, object leaves terminal.
The embodiment of the present invention can be determined by the product of current obtained first signal value and the selected default scale factor threshold value of proximity transducer, has realized the self calibration of the threshold value of proximity transducer, thereby has strengthened user's experience.
Refer to Fig. 2, Fig. 2 is another definite method flow schematic diagram of a kind of proximity transducer threshold value providing of the embodiment of the present invention.The definite flow process of proximity transducer threshold value in the present embodiment can comprise as shown in Figure 2:
S210, obtains the current first signal value of proximity transducer.
Concrete, proximity transducer can comprise infrarede emitting diode and infrared receiving diode, in the time that terminal meets the calibration condition of proximity transducer, infrarede emitting diode can be along terminal screen direction, outwards transmitting infrared ray, in the time that there is object in terminal screen front, object meeting reflecting part infrared ray, the infrared ray that the object that terminal can receive infrared receiving diode is reflected back is converted into electric signal, again electric signal is converted into digital signal, thereby obtains the current first signal value of proximity transducer.
As the optional embodiment of one, if terminal detects when having call request or the proximity transducer calibration command that reaches proximity transducer calibration cycle or receive user being detected, can judge the calibration condition that meets proximity transducer, thereby obtain the current first signal value of proximity transducer.
Wherein, the current first signal value of the proximity transducer that terminal is obtained can comprise current maximum signal level or current minimum signal value, described current minimum signal value can (not have object without object at terminal screen front end in proximity transducer investigative range, as terminal unlocking or manually light screen) time obtains, described current maximum signal level can obtain near object (as user receives calls) time at terminal screen.In specific implementation, terminal can pre-stored peak signal interval value and minimum signal interval value, in the time that terminal gets the current first signal value of proximity transducer, the current first signal value getting can be mated with minimum signal interval value with pre-stored peak signal interval value, determine that current first signal value is current maximum signal level or current minimum signal value, thereby determine the corresponding default scale factor.
S220, according to obtained current first signal value, chooses the corresponding default scale factor.
The described default scale factor can comprise default scale factor of n 1 or default scale factor of n 2 corresponding to minimum signal value that maximum signal level is corresponding, wherein, the span of the default scale factor of n 1 that maximum signal level is corresponding is 0<n1<1, and the span of default scale factor of n 2 corresponding to minimum signal value is n2>1.
Concrete, in the time that terminal gets the current first signal value of proximity transducer, terminal can judge that current first signal value is maximum signal level or minimum signal value, if described current first signal value is maximum signal level, terminal is chosen the default scale factor of n 1 that maximum signal level is corresponding; If described current first signal value is minimum signal value, terminal is chosen default scale factor of n 2 corresponding to minimum signal value.
S230, according to described current first signal value, chooses the secondary signal value prestoring.
Concrete, terminal can corresponding secondary signal value and secondary signal value corresponding to minimum signal value of pre-stored maximum signal level, the current first signal value of obtaining when terminal is within the scope of peak signal interval value, can illustrate that the current first signal value of obtaining is maximum signal level, can choose the secondary signal value corresponding with maximum signal level; The current first signal value of obtaining when terminal, within the scope of minimum signal interval value, can illustrate that the current first signal value of obtaining is minimum signal value, can choose the secondary signal value corresponding with minimum signal value.
As the optional embodiment of one, terminal can be measured the parameter of dispatching from the factory, the maximum signal level of the proximity transducer obtaining when mensuration is dispatched from the factory to parameter and minimum signal value save as described secondary signal value, for example, the maximum signal level of the proximity transducer that terminal is obtained in the time that mensuration is dispatched from the factory parameter is that b1, minimum signal value are b2, and b1 and b2 are saved as secondary signal value by terminal.In the time that terminal gets the first signal value of proximity transducer, if described first signal value is maximum signal level, terminal is using b1 as described secondary signal value; If described first signal value is minimum signal value, terminal is using b2 as described secondary signal value.
S240, current first signal value and secondary signal value that contrast is obtained.
S250, adjusts the selected default scale factor according to described comparing result.
Concrete, one or more scale factor value that prestore in terminal, for example, the scale factor n1 that can prestore, adjusts the default scale factor according to comparing result; Also can prestore multiple default scale factor of n 1, n1 ', n1 ' ' etc., select the corresponding default scale factor according to comparing result.If when the current first signal value of obtaining is maximum signal level, contrast described current first signal value and corresponding secondary signal value, if described current first signal value is greater than corresponding secondary signal value, structure or the current environmental change of living in of terminal of terminal are described, and the reflection ray intensity of the proximity transducer obtaining entirety increases, the corresponding default scale factor is heightened or selected to terminal, thus corresponding increase threshold value.
If when the current first signal value of obtaining is minimum signal value, contrast described current first signal value and corresponding secondary signal value, if described current first signal value is less than corresponding secondary signal value, structure or the current environmental change of living in of terminal of terminal are described, and the reflection ray intensity entirety of the proximity transducer obtaining reduces, terminal reduces or selects the corresponding default scale factor, thus corresponding reduction threshold value.
Optionally, if when the current first signal value of obtaining is maximum signal level, contrast described current first signal value and corresponding secondary signal value, if described current first signal value is less than corresponding secondary signal value, structure or the current environmental change of living in of terminal of terminal are described, and the reflection ray intensity entirety of the proximity transducer obtaining reduces, terminal reduces or selects the corresponding default scale factor, thus corresponding reduction threshold value.
If when the current first signal value of obtaining is minimum signal value, contrast described current first signal value and corresponding secondary signal value, if described current first signal value is greater than corresponding secondary signal value, structure or the current environmental change of living in of terminal of terminal are described, and the reflection ray intensity of the proximity transducer obtaining entirety increases, terminal increases the default scale factor of correspondence or selection, thus corresponding increase threshold value.
For example, in terminal, prestore multiple scale factor value n1, n1 ', n1 ' ' etc., wherein n1 is the default scale factor, and n1 ' <n1<n1 ' '.In the time that first signal value is maximum signal level, in the time that described current first signal value is greater than corresponding secondary signal value, the default scale factor is chosen as to n1 ' '; In the time that described current first signal value is greater than corresponding secondary signal value, the default scale factor is chosen as to n1 '.In the time that first signal value is minimum signal value, principle is identical, does not repeat them here.Again for example: the default scale factor that terminal prestores is n1, in the time that first signal value is maximum signal level, wherein first signal value represents with a1.In the time that described current first signal value is greater than corresponding secondary signal value, wherein secondary signal value represents with a2.The corresponding default scale factor also can be adjusted into n1*a1/a2, adopt the mode of linear scaling to adjust the default scale factor.In actual use, can select as required other adjustment modes, for example index, increase side-play amount (adjusting the default scale factor after n1+ side-play amount), the mode that is not limited to linear scaling is adjusted.In the time that first signal value is minimum signal value, principle is identical, does not repeat them here.
S260, determines the threshold value of described proximity transducer according to the default scale factor after adjusting and the product of current first signal value.
Concrete, described threshold value can comprise near threshold value A and leave threshold value B, if the current first signal value that terminal is obtained is maximum signal level, can determines and leave threshold value B according to the product of the default scale factor after current first signal value and adjustment; If the current first signal value that terminal is obtained is minimum signal value, can determine near threshold value A according to the product of the default scale factor after current first signal value and adjustment.
Optionally, if the current first signal value that terminal is obtained is maximum signal level, also can determine near threshold value A according to the product of the default scale factor after current first signal value and adjustment; If the current first signal value that terminal is obtained is minimum signal value, also can determines and leave threshold value B according to the product of the default scale factor after current first signal value and adjustment.
The embodiment of the present invention can be according to proximity transducer first signal value the comparing result with corresponding secondary signal value, adjust the selected default scale factor, compare an embodiment, further improved the rationality of determined threshold value.
Refer to Fig. 3, Fig. 3 is another definite method flow schematic diagram of a kind of proximity transducer threshold value providing of the embodiment of the present invention.The definite flow process of proximity transducer threshold value in the present embodiment can comprise as shown in Figure 3:
S310, obtains the current first signal value of proximity transducer.
Concrete, proximity transducer can comprise infrarede emitting diode and infrared receiving diode, in the time that terminal meets the calibration condition of proximity transducer, infrarede emitting diode can be along terminal screen direction, outwards transmitting infrared ray, in the time that there is object in terminal screen front, object meeting reflecting part infrared ray, the infrared ray that the object that terminal can receive infrared receiving diode is reflected back is converted into electric signal, again electric signal is converted into digital signal, thereby obtains the current first signal value of proximity transducer.
As the optional embodiment of one, if terminal detects when having call request or the proximity transducer calibration command that reaches proximity transducer calibration cycle or receive user being detected, can judge the calibration condition that meets proximity transducer, thereby obtain the current first signal value of proximity transducer.
Wherein, the current first signal value of the proximity transducer that terminal is obtained can comprise current maximum signal level or current minimum signal value, described current minimum signal value can (not have object without object at terminal screen front end in proximity transducer investigative range, as terminal unlocking or manually light screen) time obtains, described current maximum signal level can obtain near object (as user receives calls) time at terminal screen.In specific implementation, terminal can pre-stored peak signal interval value and minimum signal interval value, in the time that terminal gets the current first signal value of proximity transducer, the current first signal value getting can be mated with minimum signal interval value with pre-stored peak signal interval value, determine that current first signal value is current maximum signal level or current minimum signal value, thereby determine the corresponding default scale factor.
S320, obtains that prestore and the 3rd signal value described current first signal value difference value minimum.
Concrete, terminal is can pre-stored various scenes (as aging in light shield, TP transmittance change or silica gel leather sheath loosening) mapping table of lower proximity transducer signal value, in the time that terminal gets the first signal value of proximity transducer, can in the mapping table of this pre-stored proximity transducer signal value, obtain the echo signal value with described first signal value difference value minimum, and using described echo signal value as the 3rd signal value, for example, the mapping table of the pre-stored proximity transducer signal value of terminal is as table 1, if the first signal value of the proximity transducer that terminal is obtained is 75, known according to table 1, with the echo signal value of first signal value difference value minimum be 71, terminal is using 71 as the 3rd signal value.
Table 1
Figure BDA0000479540530000081
S330, is defined as the default scale factor by scale factor corresponding obtained the 3rd signal value with described current first signal value difference value minimum.
Concrete, taking table 1 as example, if the 3rd signal value that terminal is obtained is 71, the scale factor of 71 correspondences 8 is defined as to the described default scale factor.
S340, determines the threshold value of described proximity transducer according to the product of described definite default scale factor and current first signal value.
Concrete, described threshold value can comprise near threshold value A and leave threshold value B, if the current first signal value that terminal is obtained is maximum signal level, can determines and leave threshold value B according to the product of current first signal value and the determined default scale factor; If the current first signal value that terminal is obtained is minimum signal value, can determine near threshold value A according to the product of current first signal value and the determined default scale factor.
Optionally, if the current first signal value that terminal is obtained is maximum signal level, also can determine near threshold value A according to the product of current first signal value and the determined default scale factor; If the current first signal value that terminal is obtained is minimum signal value, also can determines and leave threshold value B according to the product of current first signal value and the determined default scale factor.
Embodiment of the present invention terminal can pre-stored various scenes under corresponding scale factor, according to obtained current first signal value and the contrast of the 3rd signal value, determine the corresponding default scale factor, realize the self calibration of the threshold value of proximity transducer, improved the rationality of determined threshold value.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal of providing of the embodiment of the present invention.Terminal in the embodiment of the present invention at least can comprise that first signal value acquiring unit 410, the default scale factor choose unit 420 and threshold value determining unit 430 as shown in Figure 4, wherein:
First signal value acquiring unit 410, for obtaining the current first signal value of proximity transducer.
In specific implementation, proximity transducer can comprise infrarede emitting diode and infrared receiving diode, in the time meeting the calibration condition of proximity transducer, first signal value acquiring unit 410 can trigger infrarede emitting diode along screen orientation, outwards transmitting infrared ray, in the time that there is object in screen front, object meeting reflecting part infrared ray, the infrared ray that the object that first signal value acquiring unit 410 can receive infrared receiving diode is reflected back is converted into electric signal, again electric signal is converted into digital signal, thereby obtains the current first signal value of proximity transducer.
Optionally, described first signal value acquiring unit 410 can be for obtaining the one in current minimum signal value and the current maximum signal level of described proximity transducer.Described current minimum signal value can (not have object without object at screen front end in proximity transducer investigative range, as release or manually light screen) time obtains, described current maximum signal level can obtain near object (as user receives calls) time at screen.In specific implementation, first signal value acquiring unit 410 can pre-stored peak signal interval value and minimum signal interval value, in the time getting the current first signal value of proximity transducer, the current first signal value getting can be mated with minimum signal interval value with pre-stored peak signal interval value, determine that current first signal value is current maximum signal level or current minimum signal value, determine the corresponding default scale factor thereby make the default scale factor choose unit 420 according to current first signal value.
The default scale factor is chosen unit 420, for the current first signal value of obtaining according to described first signal value acquiring unit 410, chooses the corresponding default scale factor.
In specific implementation, the described default scale factor can comprise default scale factor of n 1 or default scale factor of n 2 corresponding to minimum signal value that maximum signal level is corresponding, wherein, the span of the default scale factor of n 1 that maximum signal level is corresponding is 0<n1<1, and the span of default scale factor of n 2 corresponding to minimum signal value is n2>1.If described current first signal value is maximum signal level, the default scale factor is chosen 420 of unit and is chosen the default scale factor of n 1 that maximum signal level is corresponding; If described current first signal value is minimum signal value, the default scale factor is chosen 420 of unit and is chosen default scale factor of n 2 corresponding to minimum signal value.
Threshold value determining unit 430, for determining the threshold value of described proximity transducer according to the product of the selected default scale factor and current first signal value.
In specific implementation, described threshold value can comprise near threshold value A and leave threshold value B, if the current first signal value that first signal value acquiring unit 410 obtains is maximum signal level, threshold value determining unit 430 can be determined and leave threshold value B with the product of the corresponding default scale factor according to current first signal value; If the current first signal value that first signal value acquiring unit 410 obtains is minimum signal value, threshold value determining unit 430 can be determined near threshold value A with the product of the corresponding default scale factor according to current first signal value.
Optionally, if the current first signal value that first signal value acquiring unit 410 obtains is maximum signal level, threshold value determining unit 430 also can be determined near threshold value A with the product of the corresponding default scale factor according to current first signal value; If the current first signal value that first signal value acquiring unit 410 obtains is minimum signal value, threshold value determining unit 430 also can be determined and leave threshold value B with the product of the corresponding default scale factor according to current first signal value.
As the optional embodiment of one, described terminal further can also comprise that secondary signal value chooses unit 440, contrast unit 450 and adjustment unit 460, wherein:
Secondary signal value is chosen unit 440, for the current first signal value of obtaining according to described first signal value acquiring unit 410, chooses the secondary signal value prestoring.
In specific implementation, terminal can corresponding secondary signal value and secondary signal value corresponding to minimum signal value of pre-stored maximum signal level, the current first signal value of obtaining when first signal value acquiring unit 410 is within the scope of peak signal interval value, can illustrate that the current first signal value of obtaining is maximum signal level, secondary signal value is chosen unit 440 and can be chosen the secondary signal value corresponding with maximum signal level; The current first signal value of obtaining when first signal value acquiring unit 410 is within the scope of minimum signal interval value, can illustrate that the current first signal value of obtaining is minimum signal value, secondary signal value is chosen unit 440 and can be chosen the secondary signal value corresponding with minimum signal value.
Contrast unit 450, for contrasting obtained current first signal value and secondary signal value.
Adjustment unit 460, for adjusting the described default scale factor according to the comparing result of described contrast unit 450.
As the optional embodiment of one, one or more scale factor value that can prestore in terminal, for example, the scale factor n1 that can prestore, adjusts the default scale factor according to comparing result; Also can prestore multiple default scale factor of n 1, n1 ', n1 ' ' etc., select the corresponding default scale factor according to comparing result.If when the current first signal value of obtaining is maximum signal level, contrast unit 450 contrasts obtained current first signal value and secondary signal value, be greater than corresponding secondary signal value if the comparing result of described contrast unit 450 is current first signal value, adjustment unit 460 is heightened the corresponding default scale factor.
If when the current first signal value of obtaining is minimum signal value, contrast unit 450 contrasts obtained current first signal value and secondary signal value, be less than corresponding secondary signal value if the comparing result of described contrast unit 450 is current first signal value, adjustment unit 460 reduces the corresponding default scale factor.
If when the current first signal value of obtaining is maximum signal level, contrast unit 450 contrasts obtained current first signal value and secondary signal value, be less than corresponding secondary signal value if the comparing result of described contrast unit 450 is current first signal value, adjustment unit 460 reduces the corresponding default scale factor.
If when the current first signal value of obtaining is minimum signal value, contrast unit 450 contrasts obtained current first signal value and secondary signal value, be greater than corresponding secondary signal value if the comparing result of described contrast unit 450 is current first signal value, adjustment unit 460 is heightened the corresponding default scale factor.
For example, in terminal, prestore multiple scale factor value n1, n1 ', n1 ' ' etc., wherein n1 is the default scale factor, and n1 ' <n1<n1 ' '.In the time that first signal value is maximum signal level, in the time that described current first signal value is greater than corresponding secondary signal value, the default scale factor is adjusted into n1 ' '; In the time that described current first signal value is greater than corresponding secondary signal value, the default scale factor is adjusted into n1 '.In the time that first signal value is minimum signal value, principle is identical, does not repeat them here.
Again for example: the default scale factor that terminal prestores is n1, in the time that first signal value is maximum signal level, wherein first signal value represents with a1.In the time that described current first signal value is greater than corresponding secondary signal value, wherein secondary signal value represents with a2.The corresponding default scale factor also can be adjusted into n1*a1/a2, adopt the mode of linear scaling to adjust the default scale factor.In actual use, can select as required other adjustment modes, for example index, increase side-play amount (adjusting the default scale factor after n1+ side-play amount), the mode that is not limited to linear scaling is adjusted.In the time that first signal value is minimum signal value, principle is identical, does not repeat them here.
Optionally, described terminal further can also comprise the 3rd signal value acquiring unit 470, for obtaining that prestore and the 3rd signal value described current first signal value difference value minimum, described adjustment unit 460 is for being defined as the described default scale factor by scale factor corresponding obtained the 3rd signal value with described current first signal value difference value minimum.
In specific implementation, terminal is can pre-stored various scenes (as aging in light shield, TP transmittance change or silica gel leather sheath loosening) mapping table of lower proximity transducer signal value, in the time that first signal value acquiring unit 410 gets the first signal value of proximity transducer, the 3rd signal value acquiring unit 470 can obtain the echo signal value with described first signal value difference value minimum in the mapping table of this pre-stored proximity transducer signal value, and using described echo signal value as the 3rd signal value, for example, the mapping table of the pre-stored proximity transducer signal value of terminal is as shown in table 1, if the first signal value of the proximity transducer that first signal value acquiring unit 410 obtains is 75, known according to table 1, with the echo signal value of first signal value difference value minimum be 71, the 3rd 470 of signal value acquiring units are using 71 as the 3rd signal value.
The embodiment of the present invention can be determined by the product of current obtained first signal value and the selected default scale factor threshold value of proximity transducer, has realized the self calibration of the threshold value of proximity transducer, thereby has strengthened user's experience; Further, terminal can be according to proximity transducer first signal value the comparing result with corresponding secondary signal value, adjust the selected default scale factor, improved the rationality of determined threshold value;
Optionally, terminal also can pre-stored various scenes under corresponding scale factor, according to obtained current first signal value and the contrast of the 3rd signal value, determine the corresponding default scale factor, realized the self calibration of the threshold value of proximity transducer.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action might not be that the present invention is necessary.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, for example CPU(Central Processing Unit, central processing unit), or by ASIC(Application Specific Integrated Circuit, special IC) realize.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (10)

1. the definite method of proximity transducer threshold value, is characterized in that, comprising:
Obtain the current first signal value of proximity transducer;
According to obtained current first signal value, choose the corresponding default scale factor;
Determine the threshold value of described proximity transducer according to the product of the selected default scale factor and current first signal value.
2. the method for claim 1, is characterized in that, described in obtain proximity transducer current first signal value comprise:
Obtain the one in current minimum signal value and the current maximum signal level of described proximity transducer.
3. method as claimed in claim 2, is characterized in that, also comprises:
According to described current first signal value, choose the secondary signal value prestoring;
Current first signal value and secondary signal value that contrast is obtained;
Adjust the described default scale factor according to described comparing result.
4. method as claimed in claim 3, is characterized in that, if when the current first signal value of obtaining is maximum signal level, describedly adjusts the described default scale factor according to described comparing result and comprises:
If described current first signal value is greater than corresponding secondary signal value, heighten or select the corresponding default scale factor;
If when the current first signal value of obtaining is minimum signal value, describedly adjusts the described default scale factor according to described comparing result and comprise:
If described current first signal value is less than corresponding secondary signal value, reduces or select the corresponding default scale factor.
5. the method for claim 1, is characterized in that, also comprises:
Obtain that prestore and the 3rd signal value described current first signal value difference value minimum;
Scale factor corresponding obtained the 3rd signal value with described current first signal value difference value minimum is defined as to the described default scale factor.
6. a terminal, is characterized in that, comprising:
First signal value acquiring unit, for obtaining the current first signal value of proximity transducer;
The default scale factor is chosen unit, for the current first signal value of obtaining according to described first signal value acquiring unit, chooses the corresponding default scale factor;
Threshold value determining unit, for determining the threshold value of described proximity transducer according to the product of the selected default scale factor and current first signal value.
7. terminal as claimed in claim 6, is characterized in that, described first signal value acquiring unit is used for:
Obtain the one in current minimum signal value and the current maximum signal level of described proximity transducer.
8. terminal as claimed in claim 7, is characterized in that, also comprises:
Secondary signal value is chosen unit, for the current first signal value of obtaining according to described first signal value acquiring unit, chooses the secondary signal value prestoring;
Contrast unit, for contrasting obtained current first signal value and secondary signal value;
Adjustment unit, for adjusting the described default scale factor according to the comparing result of described contrast unit.
9. terminal as claimed in claim 8, is characterized in that,
If when the current first signal value of obtaining is maximum signal level, described adjustment unit is used for:
Be greater than corresponding secondary signal value if the comparing result of described contrast unit is current first signal value, heighten or select the corresponding default scale factor;
If when the current first signal value of obtaining is minimum signal value, described adjustment unit is used for:
Be less than corresponding secondary signal value if the comparing result of described contrast unit is current first signal value, reduce or select the corresponding default scale factor.
10. terminal as claimed in claim 6, is characterized in that, also comprises:
The 3rd signal value acquiring unit, for obtaining that prestore and the 3rd signal value described current first signal value difference value minimum;
Described adjustment unit also for:
Scale factor corresponding obtained the 3rd signal value with described current first signal value difference value minimum is defined as to the described default scale factor.
CN201410104205.4A 2014-03-20 2014-03-20 Method and terminal that a kind of proximity transducer threshold value is determined Expired - Fee Related CN103837910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410104205.4A CN103837910B (en) 2014-03-20 2014-03-20 Method and terminal that a kind of proximity transducer threshold value is determined

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410104205.4A CN103837910B (en) 2014-03-20 2014-03-20 Method and terminal that a kind of proximity transducer threshold value is determined

Publications (2)

Publication Number Publication Date
CN103837910A true CN103837910A (en) 2014-06-04
CN103837910B CN103837910B (en) 2017-09-26

Family

ID=50801608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410104205.4A Expired - Fee Related CN103837910B (en) 2014-03-20 2014-03-20 Method and terminal that a kind of proximity transducer threshold value is determined

Country Status (1)

Country Link
CN (1) CN103837910B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016045095A1 (en) * 2014-09-26 2016-03-31 华为技术有限公司 Method, apparatus and device for correcting detection distance
CN106094055A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 The calibration steps of a kind of proximity transducer and terminal
CN106249872A (en) * 2016-07-12 2016-12-21 广东欧珀移动通信有限公司 The control method of a kind of proximity transducer, device and mobile terminal
CN106484141A (en) * 2016-10-19 2017-03-08 广东欧珀移动通信有限公司 The method to set up of threshold value and mobile terminal
CN106502819A (en) * 2016-11-08 2017-03-15 广东欧珀移动通信有限公司 A kind of based on the control method of proximity transducer, device and mobile terminal
CN109840032A (en) * 2019-01-24 2019-06-04 Oppo广东移动通信有限公司 The calibration method and device, electronic equipment and storage medium of proximity sensor

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090254869A1 (en) * 2008-04-06 2009-10-08 Ludwig Lester F Multi-parameter extraction algorithms for tactile images from user interface tactile sensor arrays
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102271177A (en) * 2011-07-18 2011-12-07 惠州Tcl移动通信有限公司 Method and system for calibrating proximity sensor of mobile phone
CN102404448A (en) * 2011-09-07 2012-04-04 惠州Tcl移动通信有限公司 Mobile terminal screen control method and mobile terminal
CN102411425A (en) * 2011-07-22 2012-04-11 华为终端有限公司 Method and device for controlling function of touch screen
CN102440063A (en) * 2008-12-29 2012-05-02 摩托罗拉移动公司 Portable electronic device having self-calibrating proximity sensors
CN102917124A (en) * 2012-09-27 2013-02-06 东莞宇龙通信科技有限公司 Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN103197357A (en) * 2013-02-26 2013-07-10 深圳市中兴移动通信有限公司 Infrared proximity detector self-calibration method and device
EP2624098A2 (en) * 2012-01-31 2013-08-07 LG Electronics, Inc. Mobile terminal, controlling method thereof and recording medium thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090254869A1 (en) * 2008-04-06 2009-10-08 Ludwig Lester F Multi-parameter extraction algorithms for tactile images from user interface tactile sensor arrays
CN102440063A (en) * 2008-12-29 2012-05-02 摩托罗拉移动公司 Portable electronic device having self-calibrating proximity sensors
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102271177A (en) * 2011-07-18 2011-12-07 惠州Tcl移动通信有限公司 Method and system for calibrating proximity sensor of mobile phone
CN102411425A (en) * 2011-07-22 2012-04-11 华为终端有限公司 Method and device for controlling function of touch screen
CN102404448A (en) * 2011-09-07 2012-04-04 惠州Tcl移动通信有限公司 Mobile terminal screen control method and mobile terminal
EP2624098A2 (en) * 2012-01-31 2013-08-07 LG Electronics, Inc. Mobile terminal, controlling method thereof and recording medium thereof
CN102917124A (en) * 2012-09-27 2013-02-06 东莞宇龙通信科技有限公司 Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN103197357A (en) * 2013-02-26 2013-07-10 深圳市中兴移动通信有限公司 Infrared proximity detector self-calibration method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464754A (en) * 2014-09-26 2017-02-22 华为技术有限公司 Method, apparatus and device for correcting detection distance
CN106464754B (en) * 2014-09-26 2019-08-09 华为技术有限公司 A kind of method, device and equipment for calibrating detecting distance
WO2016045095A1 (en) * 2014-09-26 2016-03-31 华为技术有限公司 Method, apparatus and device for correcting detection distance
CN106094055B (en) * 2016-06-21 2018-07-03 广东欧珀移动通信有限公司 The calibration method and terminal of a kind of proximity sensor
CN106094055A (en) * 2016-06-21 2016-11-09 广东欧珀移动通信有限公司 The calibration steps of a kind of proximity transducer and terminal
CN106249872A (en) * 2016-07-12 2016-12-21 广东欧珀移动通信有限公司 The control method of a kind of proximity transducer, device and mobile terminal
CN106249872B (en) * 2016-07-12 2019-04-05 Oppo广东移动通信有限公司 A kind of control method of proximity sensor, device and mobile terminal
CN106484141A (en) * 2016-10-19 2017-03-08 广东欧珀移动通信有限公司 The method to set up of threshold value and mobile terminal
CN106484141B (en) * 2016-10-19 2019-03-29 Oppo广东移动通信有限公司 The setting method and mobile terminal of threshold value
CN106502819A (en) * 2016-11-08 2017-03-15 广东欧珀移动通信有限公司 A kind of based on the control method of proximity transducer, device and mobile terminal
CN106502819B (en) * 2016-11-08 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on proximity sensor and mobile terminal
CN109840032A (en) * 2019-01-24 2019-06-04 Oppo广东移动通信有限公司 The calibration method and device, electronic equipment and storage medium of proximity sensor
CN109840032B (en) * 2019-01-24 2022-04-12 Oppo广东移动通信有限公司 Method and device for calibrating proximity sensor, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103837910B (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN103837910A (en) Method for determining threshold value of proximity sensor and terminal
CN105959461B (en) Screen induction control method and device and terminal equipment
CN104811544B (en) A kind of screen luminance adjustment method
EP3435199B1 (en) Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen
CN107219515A (en) The parameter calibrating method and terminal of a kind of range sensor
CN107290802B (en) Proximity sensor calibration method, proximity sensor calibrating installation and intelligent terminal
CN107422915B (en) Response control mehtod, device, storage medium and the terminal of touch screen
EP3068185A1 (en) Transmitting power control method and apparatus
CN108269552B (en) Screen brightness adjusting method, mobile terminal and medium product
CN105094616B (en) Touch screen control method and device
CN108764056B (en) Brightness adjusting method and related product
CN103702029A (en) Method and device for prompting focusing during shooting
CN108965594B (en) Terminal equipment adjusting method, system and storage medium
KR20170057416A (en) Method, apparatus and device for correcting detection distance
CN106790978A (en) The control method of mobile terminal screen state, device and mobile terminal
CN110161919B (en) Cooking equipment and cooking method of cooking equipment
US20170131893A1 (en) Terminal control method and device
CN103823626A (en) Method and device for regulating display contents and electronic equipment
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
CN108924908B (en) WiFi scanning method and device and electronic device
CN106097984A (en) The method of proximity transducer, device and mobile terminal is opened in backlight adjusts
CN109738004A (en) The calibration method and device, electronic equipment and storage medium of proximity sensor
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
CN110401773B (en) Screen state control method and related device

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
PP01 Preservation of patent right

Effective date of registration: 20180428

Granted publication date: 20170926

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20210428

Granted publication date: 20170926

PD01 Discharge of preservation of patent
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170926

Termination date: 20200320

CF01 Termination of patent right due to non-payment of annual fee