CN105959492B - A kind of control method of infrared proximity transducer, device and mobile terminal - Google Patents

A kind of control method of infrared proximity transducer, device and mobile terminal Download PDF

Info

Publication number
CN105959492B
CN105959492B CN201610528517.7A CN201610528517A CN105959492B CN 105959492 B CN105959492 B CN 105959492B CN 201610528517 A CN201610528517 A CN 201610528517A CN 105959492 B CN105959492 B CN 105959492B
Authority
CN
China
Prior art keywords
proximity
values
proximity values
light intensity
infrared
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.)
Active
Application number
CN201610528517.7A
Other languages
Chinese (zh)
Other versions
CN105959492A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610528517.7A priority Critical patent/CN105959492B/en
Publication of CN105959492A publication Critical patent/CN105959492A/en
Application granted granted Critical
Publication of CN105959492B publication Critical patent/CN105959492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the invention discloses a kind of control method of infrared proximity transducer, device and mobile terminals.This method comprises: obtaining current environment light intensity value after infrared proximity transducer starting;The current proximity values of infrared proximity transducer are modified according to current environment light intensity value and default amendment corresponding relationship;Wherein, the corresponding relationship that amendment corresponding relationship includes environmental light intensity angle value and proximity values amendment amplitude is preset;Control infrared proximity transducer is carried out according to revised current proximity values close to the/judgement far from state.The embodiment of the present invention is by using above-mentioned technical proposal, infrared proximity transducer can be carried out according to revised current proximity values close to the/judgement far from state, weaken influence of the environment light to the proximity values of infrared proximity transducer, the erroneous judgement because caused by being rung environment shadow can be reduced.

Description

A kind of control method of infrared proximity transducer, device and mobile terminal
Technical field
The present embodiments relate to technical field of mobile terminals more particularly to a kind of controlling parties of infrared proximity transducer Method, device and mobile terminal.
Background technique
Currently, proximity sensor has become the standard configuration of mobile terminal, mobile terminal can be realized using proximity sensor In various functions, for example, call when prevent because face touch screen cause maloperation, adjust automatically backlight and touch screen to put out Shield gesture identification etc..
The most common proximity sensor configured in mobile terminal includes infrared proximity transducer.Infrared proximity transducer to Outer transmitting infrared ray, then by measurement object reflected infra-red intensity come between judgment object and sensor away from From the infrared luminous intensity received is stronger, then it represents that the distance between itself and object are smaller.Infrared proximity transducer can will measure To infra-red intensity be converted into the measured value with its proportional, which can be known as close to (proximity) Value, the proximity values that infrared proximity transducer obtains are bigger, indicate that the distance between itself and object are smaller.
In order to allow infrared proximity transducer detection object close to or away from can generally preset close to threshold value and remote From threshold value.When proximity values are greater than close to threshold value, can determine that as proximity state;When proximity values are less than far from threshold value, It can determine that as far from state.It is determining close to or away from after state, can control mobile terminal execution corresponding operation, for example, In communication process, extinguish screen under proximity state, lights screen under separate state.
However, the infrared light for including in environment can have some impact on the proximity values of infrared proximity transducer, especially It is under sunny environment, infra-red intensity is very high, and the proximity values for causing infrared proximity transducer to obtain are also very high, and then lead It causes the normal use of user to be influenced, when taking on the telephone in the sun such as user to the erroneous judgement of the proximity state of external object, it is desirable to Other operations are carried out on screen, such as inputs extension number, check address list or check other information, even if screen is far from user Head, screen are also OFF state, influence the normal use of user.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of control method of infrared proximity transducer, device and mobile terminal are provided, To solve when by ambient light interference, the infrared proximity transducer of mobile terminal hair when determining close/separate state The problem of raw erroneous judgement.
In a first aspect, the embodiment of the invention provides a kind of control methods of infrared proximity transducer, comprising:
After infrared proximity transducer starting, current environment light intensity value is obtained;
According to the current environment light intensity value and default amendment corresponding relationship to the current of the infrared proximity transducer Proximity values are modified;Wherein, the default amendment corresponding relationship includes pair of environmental light intensity angle value and proximity values amendment amplitude It should be related to;
The infrared proximity transducer is controlled to be carried out according to revised current proximity values close to the/judgement far from state.
Second aspect, the embodiment of the invention provides a kind of control devices of infrared proximity transducer, comprising:
Environmental light intensity angle value obtains module, for obtaining current environment light intensity value after infrared proximity transducer starting;
Proximity values correction module is used for according to the current environment light intensity value and default amendment corresponding relationship to described red The current proximity values of outer proximity sensor are modified;Wherein, the default amendment corresponding relationship include environmental light intensity angle value with The corresponding relationship of proximity values amendment amplitude;
Determination module, for control the infrared proximity transducer according to revised current proximity values carry out close to/it is remote Judgement from state.
The third aspect, the embodiment of the invention provides a kind of mobile terminal, the mobile terminal is integrated with implementation of the present invention The control device of infrared proximity transducer described in example.
The control program of the infrared proximity transducer provided in the embodiment of the present invention obtains after infrared proximity transducer starting Current environment light intensity value is taken, according to current environment light intensity value and default amendment corresponding relationship to the infrared proximity transducer Current proximity values be modified, wherein default amendment corresponding relationship includes that environmental light intensity angle value and proximity values correct amplitude Corresponding relationship does not have since the infrared ray in environment light will lead to the current proximity values that infrared proximity transducer measurement obtains and compare It is bigger than normal for effective proximity values of ambient light interference, by above-mentioned amendment, influence of the environment light to proximity values can be reduced, is then controlled Infrared proximity transducer processed can reduce close to/the judgement far from state because of environment light according to revised current proximity values Caused erroneous judgement.By using above-mentioned technical proposal, infrared proximity transducer can be connect according to revised current proximity values Closely/judgement far from state weakens influence of the environment light to the proximity values of infrared proximity transducer, can reduce because environment shadow is rung Caused by judge by accident.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the control method for infrared proximity transducer that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the control method of infrared proximity transducer provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of process signal of the control method for preferred infrared proximity transducer that the embodiment of the present invention three provides Figure;
Fig. 4 is a kind of structural block diagram of the control device for infrared proximity transducer that the embodiment of the present invention four provides.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating , only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram of the control method for infrared proximity transducer that the embodiment of the present invention one provides, should Method can be executed by the control device of infrared proximity transducer, and wherein the device can be implemented by software and/or hardware, and generally may be used It integrates in the terminal.As shown in Figure 1, this method comprises:
After step 101, infrared proximity transducer starting, current environment light intensity value is obtained.
Illustratively, the concretely mobile phone, smartwatch, tablet computer, game machine, a of the mobile terminal in the present embodiment Personal digital assistant and digital multimedia player etc. are configured with the various equipment of infrared proximity transducer.
Illustratively, infrared proximity transducer can convert the infra-red intensity measured to and its proportional The measured value can be known as proximity values by measured value.In general, proximity values can be the analog-digital converter in infrared proximity transducer The output valve of (Analog-to-Digital Converter, ADC), abbreviation ADC value or AD value.
In order to allow infrared proximity transducer detection object close to or away from, can generally preset for determine close to/ Decision gate limit value far from state.Decision gate limit value may include that may also comprise close to threshold value close to threshold value and far from thresholding Value.
Illustratively, if it is determined that threshold value only includes close to threshold value, when the current proximity values of infrared proximity transducer are big When close to threshold value, it can determine that as proximity state;When the current proximity values of infrared proximity transducer are less than close to threshold value, It can determine that as far from state.
Illustratively, if it is determined that threshold value includes close to threshold value and far from threshold value, when working as infrared proximity transducer When preceding proximity values are greater than close to threshold value, it can determine that as proximity state;When the current proximity values of infrared proximity transducer are less than far When from threshold value, it can determine that as far from state;When the current proximity values of infrared proximity transducer are in far from threshold value and are approached When between threshold value, keep state when last judgement constant.
In general, influenced by factors such as environment, in the case where the use state of user is basically unchanged, infrared proximity sensing The proximity values of device may also can be fluctuated in a small range, in order to avoid occurring frequently to cut between proximity state and separate state It changes, preferably decision gate limit value had not only included close to threshold value, but also including far from threshold value.
The infrared light for including in environment can have some impact on the proximity values of infrared proximity transducer, especially sunlight Under sufficient environment, infra-red intensity is very high, and the proximity values for causing infrared proximity transducer measurement to obtain compare no environment light It is bigger than normal for effective proximity values of interference, in this way, being connect when the proximity values (effective proximity values) of infrared proximity transducer should be less than When nearly threshold value, may due to environment light influence and cause proximity values to increase, proximity values after increase are greater than close to thresholding When value, it will be mistaken for proximity state, influence the normal use of user.For example, it is assumed that being carried out under the sunlight of user outdoors During call, it is desirable to carry out other operations on the screen, such as input extension number, check address list or consult a map other When information, screen can be far from user's head, if the not interference of sunlight, and proximity values at this time can be less than far from threshold value, thus Screen lights, and user can carry out normal operating, if but infrared proximity transducer influenced by the infrared ray in sunlight and make reality The proximity values that border measurement obtains increase, then proximity values may not be less than far from threshold value, work as then mobile terminal will be considered that Preceding is still proximity state, and screen can be kept to be in OFF state, make user that can not see the content on screen, seriously affect user Normal operating on the screen.
In this step, infrared proximity transducer starting when, can simultaneously startup environment optical sensor, and control environment light biography Sensor obtains current environment light intensity value in real time.
Step 102, according to current environment light intensity value and default amendment corresponding relationship to the current of infrared proximity transducer Proximity values are modified.
Wherein, the default amendment corresponding relationship includes the corresponding relationship of environmental light intensity angle value and proximity values amendment amplitude.
In the present embodiment, in order to avoid the generation of the above problem, the current proximity values of infrared proximity transducer are repaired Just, to obtain relatively accurate proximity values, for subsequent to close/judgement far from state.
It is understood that ambient light intensity is bigger, the influence to proximity values is bigger, so, environment light can be pre-established The corresponding relationship of intensity value and proximity values amendment amplitude obtains default amendment corresponding relationship.Wherein, proximity values amendment amplitude can manage Solution is that the environment light of respective strengths value impacts infrared proximity transducer and makes what infrared proximity transducer measurement obtained to connect Close values compare the increment of the proximity values measured under normal luminous environment.In general, when environmental light intensity angle value is greater than 3000lux It when (lux), is affected to proximity values, can regard as strong light environment, the corresponding environmental light intensity angle value of normal luminous environment can For the value less than 3000lux, for example, it may be 500lux.
According to current environment light intensity value and default amendment corresponding relationship to the current proximity values of infrared proximity transducer into Row amendment, specific correcting mode can be subtracts proximity values amendment width on the basis of the current proximity values of infrared proximity transducer Degree, obtains relatively accurate proximity values.For example, default amendment corresponding relationship can be inquired according to current environment light intensity value, obtain Proximity values corresponding with current environment light intensity value correct amplitude;Calculate infrared proximity transducer current proximity values with inquired The difference of the proximity values amendment amplitude arrived, obtains revised proximity values.
Step 103, control infrared proximity transducer are carried out according to revised current proximity values close to/sentencing far from state It is fixed.
Illustratively, revised current proximity values are closer to the proximity values measured under normal luminous environment, root Can reduce close to/the judgement far from state close to the/erroneous judgement far from state according to the proximity values.
It is determining close to or away from after state, can control mobile terminal execution corresponding operation.For example, in communication process In, extinguish screen under proximity state, lights screen under separate state.
The control method for the infrared proximity transducer that the embodiment of the present invention one provides obtains after infrared proximity transducer starting Current environment light intensity value is taken, according to current environment light intensity value and default amendment corresponding relationship to the infrared proximity transducer Current proximity values be modified, wherein default amendment corresponding relationship includes that environmental light intensity angle value and proximity values correct amplitude Corresponding relationship does not have since the infrared ray in environment light will lead to the current proximity values that infrared proximity transducer measurement obtains and compare It is bigger than normal for effective proximity values of ambient light interference, by above-mentioned amendment, influence of the environment light to proximity values can be reduced, is then controlled Infrared proximity transducer processed can reduce close to/the judgement far from state because of environment light according to revised current proximity values Caused erroneous judgement.By using above-mentioned technical proposal, infrared proximity transducer can be connect according to revised current proximity values Closely/judgement far from state weakens influence of the environment light to the proximity values of infrared proximity transducer, can reduce because environment shadow is rung Caused by judge by accident.
Embodiment two
Fig. 2 is a kind of flow diagram of the control method of infrared proximity transducer provided by Embodiment 2 of the present invention, this Embodiment is optimized based on above-described embodiment, in the present embodiment, by step " according to current environment light intensity value and in advance If corresponding relationship is modified the current proximity values of infrared proximity transducer " optimization are as follows: if judging current environment luminous intensity Value, which is greater than, presets strong optic terminus value, then according to current environment light intensity value and default corresponding relationship to the infrared proximity transducer Current proximity values be modified.
Further, it also " after infrared proximity transducer starting, can will obtain current environment light intensity value " to optimize are as follows: infrared After proximity sensor starting, if judging to obtain at this time for proximity state according to the current proximity values of infrared proximity transducer Current environment light intensity value.
Correspondingly, the method for the present embodiment includes the following steps:
After step 201, infrared proximity transducer starting, if the current proximity values according to infrared proximity transducer judge this When be proximity state, then obtain current environment light intensity value.
After infrared proximity transducer starting, if judging at this time to be separate according to the current proximity values of infrared proximity transducer State illustrates that current proximity values are less than far from threshold value, even when there is influence of the environment light to proximity values at this time, to its into After row amendment, proximity values can become smaller, necessarily and far from state, so only with good grounds infrared proximity sensing in the present embodiment The current proximity values of device are judged just to obtain current environment light intensity value at this time for proximity state, be carried out further so as to subsequent Judgement, i.e., whether need to be modified current proximity values.The advantages of this arrangement are as follows algorithm can be reduced, improve close to/ Judgement speed far from state, keeps mobile terminal sensitiveer to the response of user's operation, while saving the power consumption of mobile terminal.
If step 202 judges current environment light intensity value greater than strong optic terminus value is preset, according to current environment light intensity Angle value and default corresponding relationship are modified the current proximity values of infrared proximity transducer.
Illustratively, presetting strong optic terminus value can refer to varying environment luminous intensity to the influence degree of proximity values to determine, As described above, it when environmental light intensity angle value is greater than (lux) 3000lux, is affected, can regard as strong to proximity values Luminous environment can will preset strong optic terminus value and be set as 3000lux.
It is understood that the influence to proximity values is also weaker when environmental light intensity angle value is smaller, so can need not be to working as Preceding proximity values are modified.The advantages of this arrangement are as follows algorithm can be reduced, improves close to/judgement the speed far from state, make Mobile terminal is sensitiveer to the response of user's operation, while saving the power consumption of mobile terminal.
It preferably,, can be in the parameter value of fixed infrared proximity transducer before its factory for a mobile terminal Under the premise of, such as under the premise of fixed pulse number, fixed working frequency and fixed integration period etc., it measures different strong Correspondence of the proximity values of infrared proximity transducer under the environment light of angle value compared to the increment of the proximity values under normal luminous environment Table.Assuming that measurement result are as follows: under normal luminous environment (environmental light intensity angle value is 500lux), prox value (proximity values) is 200;Ring Border light intensity value is 3000lux, and prox value is 260, and it is 60 that increment, which can be obtained,;Environmental light intensity angle value is 5000lux, prox value It is 300, it is 100 that increment, which can be obtained,;Environmental light intensity angle value is 10000lux, prox 650, and it is 450 that increment, which can be obtained,.
Further, above-mentioned examination can be carried out to the mobile terminal of the same configuration of setting quantity before mobile terminal factory It tests, calculates average measurement data, and then it is corresponding with proximity values amendment amplitude to establish the environmental light intensity angle value under strong light environment Relationship is written in the mobile terminal of same batch.
Step 203, control infrared proximity transducer are carried out according to revised current proximity values close to/sentencing far from state It is fixed.
The control method of infrared proximity transducer provided by Embodiment 2 of the present invention carries out excellent on the basis of example 1 Change, can be further reduced algorithm, improve make close to/judgement the speed far from state mobile terminal to the response of user's operation more Add power consumption that is sensitive, while saving mobile terminal.
Embodiment three
Fig. 3 is a kind of process signal of the control method for preferred infrared proximity transducer that the embodiment of the present invention three provides Figure, as shown in figure 3, this method comprises:
Step 301 obtains infrared proximity transducer corresponding proximity values under varying environment luminous intensity.
Step 302, for each acquired proximity values, the difference of the proximity values Yu benchmark proximity values is calculated, by difference It is denoted as the corresponding proximity values amendment amplitude of the proximity values.
Wherein, the benchmark proximity values are the corresponding proximity values of preset reference environmental light intensity angle value.Illustratively, base is preset Quasi light intensity value also corresponds to the environmental light intensity angle value under normal luminous environment, such as 500lux.
Step 303, the corresponding relationship for establishing environmental light intensity angle value and proximity values amendment amplitude obtain presetting and correct corresponding close System.
Step 304 detects that infrared proximity transducer starts.
Step 305 judges whether it is proximity state according to current proximity values, if so, thening follow the steps 306;Otherwise, it executes Step 311.
Step 306 obtains current environment light intensity value.
Step 307 judges whether current environment light intensity value is greater than and presets strong optic terminus value, if so, thening follow the steps 308;Otherwise, step 310 is executed.
Step 308, according to current environment light intensity value and default amendment corresponding relationship to the current of infrared proximity transducer Proximity values are modified.
Step 309 judges whether it is proximity state according to revised current proximity values, if so, thening follow the steps 310; Otherwise, step 311 is executed.
Step 310 reports proximity state to application layer.
Step 311 is reported to application layer far from state.
The control method for the infrared proximity transducer that the embodiment of the present invention three provides, can be used better simply algorithm to weaken Influence of the environment light to the proximity values of infrared proximity transducer, erroneous judgement caused by can reducing because of environment light promote user experience.
Example IV
Fig. 4 is a kind of structural block diagram of the control device for infrared proximity transducer that the embodiment of the present invention four provides, the dress Setting can be implemented by software and/or hardware, and be typically integrated in mobile terminal, can pass through the controlling party of execution infrared proximity transducer Method controls infrared proximity transducer.As shown in figure 4, the device includes that environmental light intensity angle value obtains module 401, approaches It is worth correction module 402 and determination module 403.
Wherein, environmental light intensity angle value obtains module 401, for obtaining current environment after infrared proximity transducer starting Light intensity value;Proximity values correction module 402 is used for according to the current environment light intensity value and default amendment corresponding relationship to institute The current proximity values for stating infrared proximity transducer are modified, wherein the default amendment corresponding relationship includes ambient light intensity The corresponding relationship of value and proximity values amendment amplitude;Determination module 403, after controlling the infrared proximity transducer according to amendment Current proximity values carry out close to/far from state judgement.
The control device for the infrared proximity transducer that the embodiment of the present invention four provides, makes infrared proximity transducer according to amendment Current proximity values afterwards carry out weakening environment light to the shadow of the proximity values of infrared proximity transducer close to the/judgement far from state It rings, the erroneous judgement because caused by being rung environment shadow can be reduced.
On the basis of the above embodiments, the proximity values correction module is specifically used for: if judging the current environment Light intensity value, which is greater than, presets strong optic terminus value, then according to the current environment light intensity value and default corresponding relationship to described infrared The current proximity values of proximity sensor are modified.
On the basis of the above embodiments, the environmental light intensity angle value obtains module and is specifically used for: infrared proximity transducer After starting, if judging to obtain for proximity state at this time and work as front ring according to the current proximity values of the infrared proximity transducer Border light intensity value.
On the basis of the above embodiments, which may also include proximity values acquisition module, proximity values amendment amplitude calculates Module and corresponding relation building module.Wherein, proximity values obtain module, are used for before infrared proximity transducer starting, Obtain the infrared proximity transducer corresponding proximity values under varying environment luminous intensity;Proximity values correct magnitude computation module, For calculating the difference of the proximity values Yu benchmark proximity values for each acquired proximity values, the difference is denoted as this and is connect The corresponding proximity values of close values correct amplitude, wherein the benchmark proximity values are that preset reference environmental light intensity angle value is corresponding close Value;Corresponding relation building module obtains default repair for establishing the corresponding relationship of environmental light intensity angle value and proximity values amendment amplitude Positive corresponding relationship.
On the basis of the above embodiments, the proximity values correction module is specifically used for: according to the current environment light intensity The default amendment corresponding relationship of angle value inquiry obtains proximity values amendment amplitude corresponding with the current environment light intensity value;It calculates The difference of the current proximity values of the infrared proximity transducer and the proximity values amendment amplitude inquired obtains revised close Value.
Embodiment five
The present embodiment five provides a kind of mobile terminal, which is integrated with infrared described in the embodiment of the present invention The control device of proximity sensor, can be by executing the control method of infrared proximity transducer come the work to infrared proximity transducer It is controlled.
Illustratively, the concretely mobile phone, smartwatch, tablet computer, game machine, a of the mobile terminal in the present embodiment Personal digital assistant and digital multimedia player etc. are configured with the various equipment of infrared proximity transducer, preferably intelligent hand Machine.
User during using mobile terminal in the present embodiment, mobile terminal can control infrared proximity transducer according to Revised current proximity values carry out weakening environment light to the proximity values of infrared proximity transducer close to the/judgement far from state Influence, can reduce because environment shadow ring caused by erroneous judgement.
The executable present invention of the control device and mobile terminal of the infrared proximity transducer provided in above-described embodiment is any The control method of infrared proximity transducer provided by embodiment has and executes the corresponding functional module of this method and beneficial to effect Fruit.The not technical detail of detailed description in the above-described embodiments, reference can be made to infrared proximity provided by any embodiment of the invention The control method of sensor.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (7)

1. a kind of control method of infrared proximity transducer characterized by comprising
After infrared proximity transducer starting, if judging at this time to be close according to the current proximity values of the infrared proximity transducer State then obtains current environment light intensity value;
If judging that the current environment light intensity value is greater than presets strong optic terminus value, according to the current environment light intensity value It is modified with current proximity values of the default corresponding relationship to the infrared proximity transducer, wherein the default amendment corresponds to Relationship includes the corresponding relationship of environmental light intensity angle value and proximity values amendment amplitude;
The infrared proximity transducer is controlled to be carried out according to revised current proximity values close to the/judgement far from state.
2. the method according to claim 1, wherein before infrared proximity transducer starting, further includes:
Obtain the infrared proximity transducer corresponding proximity values under varying environment luminous intensity;
For each acquired proximity values, the difference of the proximity values Yu benchmark proximity values is calculated, the difference is denoted as this and is connect The corresponding proximity values of close values correct amplitude, wherein the benchmark proximity values are that preset reference environmental light intensity angle value is corresponding close Value;
The corresponding relationship for establishing environmental light intensity angle value and proximity values amendment amplitude obtains default amendment corresponding relationship.
3. the method according to claim 1, wherein described repair according to the current environment light intensity value with default Positive corresponding relationship is modified the current proximity values of the infrared proximity transducer, comprising:
Default amendment corresponding relationship is inquired according to the current environment light intensity value, is obtained and the current environment light intensity value pair The proximity values amendment amplitude answered;
The difference of the current proximity values for calculating the infrared proximity transducer and the proximity values inquired amendment amplitude, is corrected Proximity values afterwards.
4. a kind of control device of infrared proximity transducer characterized by comprising
Environmental light intensity angle value obtains module, is used for after infrared proximity transducer starting, if according to the infrared proximity transducer Current proximity values judge to obtain current environment light intensity value then at this time for proximity state;
Proximity values correction module, if presetting strong optic terminus value, basis for judging that the current environment light intensity value is greater than The current environment light intensity value and default corresponding relationship are modified the current proximity values of the infrared proximity transducer, In, the default amendment corresponding relationship includes the corresponding relationship of environmental light intensity angle value and proximity values amendment amplitude;
Determination module carries out close/separate shape according to revised current proximity values for controlling the infrared proximity transducer The judgement of state.
5. device according to claim 4, which is characterized in that further include:
Proximity values obtain module, for obtaining the infrared proximity transducer and existing before infrared proximity transducer starting Corresponding proximity values under varying environment luminous intensity;
Proximity values correct magnitude computation module, for calculating the proximity values and benchmark being close for each acquired proximity values The difference is denoted as the corresponding proximity values of the proximity values and corrects amplitude, wherein the benchmark proximity values are default by the difference of value The corresponding proximity values of reference atmosphere light intensity value;
Corresponding relation building module is preset for establishing the corresponding relationship of environmental light intensity angle value and proximity values amendment amplitude Correct corresponding relationship.
6. device according to claim 4, which is characterized in that described to be repaired according to the current environment light intensity value with default Positive corresponding relationship is modified the current proximity values of the infrared proximity transducer, comprising:
Default amendment corresponding relationship is inquired according to the current environment light intensity value, is obtained and the current environment light intensity value pair The proximity values amendment amplitude answered;
The difference of the current proximity values for calculating the infrared proximity transducer and the proximity values inquired amendment amplitude, is corrected Proximity values afterwards.
7. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with red as described in claim 4-6 any one The control device of outer proximity sensor.
CN201610528517.7A 2016-07-06 2016-07-06 A kind of control method of infrared proximity transducer, device and mobile terminal Active CN105959492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610528517.7A CN105959492B (en) 2016-07-06 2016-07-06 A kind of control method of infrared proximity transducer, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610528517.7A CN105959492B (en) 2016-07-06 2016-07-06 A kind of control method of infrared proximity transducer, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN105959492A CN105959492A (en) 2016-09-21
CN105959492B true CN105959492B (en) 2019-05-28

Family

ID=56899647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610528517.7A Active CN105959492B (en) 2016-07-06 2016-07-06 A kind of control method of infrared proximity transducer, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN105959492B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022129037A1 (en) * 2020-12-15 2022-06-23 Ams International Ag Proximity sensor

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357922B (en) * 2016-10-12 2018-05-01 广东欧珀移动通信有限公司 State monitoring method, device and the terminal device of terminal device
CN106500751B (en) * 2016-10-20 2019-01-15 Oppo广东移动通信有限公司 The calibration method and mobile terminal of proximity sensor
CN106502819B (en) * 2016-11-08 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on proximity sensor and mobile terminal
CN106598444B (en) * 2016-12-06 2020-01-14 Oppo广东移动通信有限公司 Control method of mobile terminal and mobile terminal
CN106686222A (en) * 2016-12-19 2017-05-17 广东欧珀移动通信有限公司 Ambient light sensor control method, ambient light sensor control device and terminal
CN106791120B (en) * 2016-12-27 2020-05-12 Oppo广东移动通信有限公司 Control method and device for screen-off of mobile terminal
CN107404575B (en) * 2017-07-18 2020-04-17 Oppo广东移动通信有限公司 Method and device for optimizing screen control, storage medium and mobile terminal
CN108874128B (en) * 2018-06-01 2021-07-23 Oppo广东移动通信有限公司 Proximity detection method and apparatus, electronic apparatus, storage medium, and device
CN113119128A (en) * 2021-04-25 2021-07-16 广州科语机器人有限公司 Robot, operation control method thereof, electronic device, and storage medium
CN115529382B (en) * 2022-02-28 2023-06-16 荣耀终端有限公司 Approach light parameter calculation method and related electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102883061A (en) * 2012-09-26 2013-01-16 广东欧珀移动通信有限公司 Method and system for controlling working state of touch screen of mobile terminal
CN103941310A (en) * 2014-04-09 2014-07-23 苏州佳世达电通有限公司 Correcting method and system of proximity sensor
CN104407399A (en) * 2014-12-02 2015-03-11 三星半导体(中国)研究开发有限公司 Method for calibrating proximity sensor in portable terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN102883061A (en) * 2012-09-26 2013-01-16 广东欧珀移动通信有限公司 Method and system for controlling working state of touch screen of mobile terminal
CN103941310A (en) * 2014-04-09 2014-07-23 苏州佳世达电通有限公司 Correcting method and system of proximity sensor
CN104407399A (en) * 2014-12-02 2015-03-11 三星半导体(中国)研究开发有限公司 Method for calibrating proximity sensor in portable terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022129037A1 (en) * 2020-12-15 2022-06-23 Ams International Ag Proximity sensor

Also Published As

Publication number Publication date
CN105959492A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105959492B (en) A kind of control method of infrared proximity transducer, device and mobile terminal
CN105939427B (en) A kind of control method of infrared proximity transducer, device and mobile terminal
CN102665008B (en) Detecting algorithm for infrared proximity sensor of touch screen mobile phone
CN106210227B (en) A kind of calibration method of infrared proximity transducer, device and mobile terminal
EP2713586B1 (en) Method and device for adjusting detecting threshold of infrared proximity sensor
CN108269552B (en) Screen brightness adjusting method, mobile terminal and medium product
CN107290802B (en) Proximity sensor calibration method, proximity sensor calibrating installation and intelligent terminal
CN103353621B (en) A kind of method that mobile terminal proximity transducer is calibrated and this mobile terminal
CN102917124A (en) Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN106464754A (en) Method, apparatus and device for correcting detection distance
CN108923865A (en) Calibration method, device, mobile terminal and the storage medium of infrared distance sensor
CN108303690A (en) A kind of distance measuring method and range-measurement system for eliminating laser radar blind area
CN109031332A (en) Flight time distance measuring sensor and its control method
CN104202480B (en) The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus
CN103837910B (en) Method and terminal that a kind of proximity transducer threshold value is determined
CN110049152B (en) Method and system for identifying distance between mobile phone and shielding object
CN103945068A (en) Method for setting approach threshold value of mobile terminal and mobile terminal
CN106506825A (en) A kind of control method of touch-screen, device and mobile terminal
CN103324355B (en) Optical touch device and method for judging touch coordinate
CN105788568B (en) A kind of screen luminance adjustment method and device
CN107257414B (en) A kind of screen state control method, device, storage medium and mobile terminal
CN105845090B (en) A kind of backlight adjusting method and device
CN105022530B (en) The calibration method and system of proximity transducer
CN101281487B (en) Method for monitoring and processing optical mouse abnormal state
CN109085403B (en) Waveform channel adjusting method and digital oscilloscope

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant