CN105939427B - 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
CN105939427B
CN105939427B CN201610528516.2A CN201610528516A CN105939427B CN 105939427 B CN105939427 B CN 105939427B CN 201610528516 A CN201610528516 A CN 201610528516A CN 105939427 B CN105939427 B CN 105939427B
Authority
CN
China
Prior art keywords
threshold value
value
strong
optical mode
close
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
CN201610528516.2A
Other languages
Chinese (zh)
Other versions
CN105939427A (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 CN201610528516.2A priority Critical patent/CN105939427B/en
Publication of CN105939427A publication Critical patent/CN105939427A/en
Application granted granted Critical
Publication of CN105939427B publication Critical patent/CN105939427B/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 in real time in the state that infrared proximity transducer is for determining that close/current decision gate limit value far from state is non-strong optical mode threshold value;If acquired current environment light intensity value, which is greater than, presets strong optic terminus value, current decision gate limit value is adjusted to strong optical mode threshold value, control infrared proximity transducer is carried out based on strong optical mode threshold value close to the/judgement far from state.The embodiment of the present invention is by using above-mentioned technical proposal, when ambient light intensity is larger, proximity state is determined close to threshold value using biggish, influence of the strong light to result is determined can be weakened, prevent the appearance for phenomena such as judging by accident when close/separate state to external object determines, screen is avoided frequently to switch between extinguishing and lighting.

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, is easy to cause infrared sensor device working condition abnormal, proximity values can It can frequently jump, such as jump to a very big value from a smaller value in a short time, then jump back smaller Value, and then lead to the erroneous judgement to the proximity state of external object, influence the normal use of user, screen such as occurs and is frequently putting out The phenomenon that going out and switching between lighting.
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:
In infrared proximity transducer for determining that close/current decision gate limit value far from state is non-strong optical mode door In the state of limit value, current environment light intensity value is obtained in real time;
If acquired current environment light intensity value, which is greater than, presets strong optic terminus value, by the current decision gate limit value tune Whole is strong optical mode threshold value, wherein is greater than the non-strong optical mode door close to threshold value in the strong optical mode threshold value In limit value close to threshold value;
The infrared proximity transducer is controlled to carry out based on the strong optical mode threshold value 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 being used to determine close to/working as far from state in infrared proximity transducer Preceding decision gate limit value is real-time acquisition current environment light intensity value in the state of non-strong optical mode threshold value;
Decision gate limit value adjusts module, presets strong optic terminus value for being greater than in acquired current environment light intensity value When, the current decision gate limit value is adjusted to strong optical mode threshold value, wherein in the strong optical mode threshold value close to door Limit value be greater than in the non-strong optical mode threshold value close to threshold value;
Determination module, for control the infrared proximity transducer be based on the strong optical mode threshold value 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
Infrared proximity transducer is used to sentence by the control program of the infrared proximity transducer provided in the embodiment of the present invention Fixed close/decision gate limit value far from state is divided into two types, i.e., strong optical mode threshold value and non-strong optical mode threshold value, by force In optical mode threshold value close to threshold value be greater than non-strong optical mode threshold value in close to threshold value, in current environment luminous intensity Non- strong optical mode threshold value is adjusted to strong optical mode threshold value, and control infrared proximity greater than when presetting strong optic terminus value by value Sensor is carried out based on strong optical mode threshold value close to the/judgement far from state.By using above-mentioned technical proposal, in environment light When intensity is larger, proximity state is determined close to threshold value using biggish, influence of the strong light to result is determined can be weakened, It prevents from judging by accident when close/separate state to external object determines, screen is avoided frequently to extinguish and lighting it Between switch phenomena such as appearance.
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:
Step 101 is used to determine that close/current decision gate limit value far from state to be non-strong in infrared proximity transducer In the state of optical mode threshold value, current environment light intensity value is obtained in real time.
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, is easy to cause infrared proximity transducer device working condition abnormal, proximity values may It can frequently jump, such as jump to a very big value from a smaller value in a short time, then jump back lesser Value, and then lead to the erroneous judgement to the proximity state of external object, the normal use of user is influenced, screen such as occurs and is frequently extinguishing And the phenomenon that switching between lighting.Assuming that during conversing under the sunlight of user outdoors, it is desirable to carry out on the screen Other operations, such as input extension number, check address list or consult a map other information when, screen can separate user's head, if Infrared proximity transducer is influenced by the infrared ray in sunlight and makes proximity values that frequent jump occur, then screen will frequency It is numerous to extinguish and switching between lighting, seriously affect the normal operating of user on the screen.
In order to avoid the generation of the above problem, in the present embodiment, by infrared proximity transducer be used to determine close to/it is separate The decision gate limit value of state is divided into two types, i.e., strong optical mode threshold value and non-strong optical mode threshold value, wherein strong optical mode In threshold value close to threshold value be greater than in non-strong optical mode threshold value close to threshold value.Use strong optical mode threshold value for When for determining the current decision gate limit value of close/separate state, improved on the basis of non-strong optical mode threshold value close Threshold value makes in the case where there is extraneous infrared ray interference, and the proximity values of infrared proximity transducer are not readily reachable by close to thresholding Value can be reduced close to/the erroneous judgement far from state.
Preferably, working condition of the infrared proximity transducer in the case where there is extraneous infrared ray interference can be adjusted It grinds, for example, the infrared proximity transducer of statistics available setting quantity is not in the case where being blocked and there is extraneous infrared ray interference The highest proximity values that can reach, the highest proximity values will be set above close to threshold value in strong optical mode threshold value, When ensuring that the proximity values of infrared proximity transducer jump under strong light, will not due to proximity values are more than close to threshold value by It is mistaken for proximity state.It is understood that should be less than infrared proximity transducer close to threshold value in strong optical mode threshold value Proximity values range ability maximum boundary value.
In this step, in infrared proximity transducer for determining that close/current decision gate limit value far from state is non- In the state of strong optical mode threshold value, current environment can be obtained in real time by integrated ambient light sensor in the terminal Light intensity value determines whether current decision gate limit value being adjusted to strong optical mode door according to current environment light intensity value so as to subsequent Limit value.
If step 102, acquired current environment light intensity value, which are greater than, presets strong optic terminus value, by current decision threshold Value is adjusted to strong optical mode threshold value.
Illustratively, mobile terminal factory before, can to setting quantity mobile terminal infrared proximity transducer into Row investigation presets strong optic terminus value according to finding determination.For example, the infrared proximity of statistics available different mobile device senses In the state of not blocking, when what value is environmental light intensity value reach, measured obtained proximity values can jump device respectively, general The smallest environmental light intensity value is determined as presetting strong optic terminus value.
It is understood that the infra-red intensity value direct proportionality in environmental light intensity angle value and environment, can be used ring Border light intensity value measures the infra-red intensity in environment.In this step, judging that current environment light intensity value is big When presetting strong optic terminus value, current decision gate limit value is adjusted to strong optical mode threshold value, it is infrared in environment light to reduce Influence of the line to infrared proximity transducer measurement result.
Step 103, control infrared proximity transducer are carried out based on strong optical mode threshold value close to the/judgement far from state.
In this step, control infrared proximity transducer is carried out based on strong optical mode threshold value close to the/judgement far from state, Make in the case where there is extraneous infrared ray interference, the proximity values of infrared proximity transducer are not readily reachable by close to threshold value, can be subtracted Few close/erroneous judgement 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 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, infrared proximity transducer is used to sentence Fixed close/decision gate limit value far from state is divided into two types, i.e., strong optical mode threshold value and non-strong optical mode threshold value, by force In optical mode threshold value close to threshold value be greater than non-strong optical mode threshold value in close to threshold value, in current environment luminous intensity Non- strong optical mode threshold value is adjusted to strong optical mode threshold value, and control infrared proximity greater than when presetting strong optic terminus value by value Sensor is carried out based on strong optical mode threshold value close to the/judgement far from state.By using above-mentioned technical proposal, in environment light When intensity is larger, proximity state is determined close to threshold value using biggish, influence of the strong light to result is determined can be weakened, It prevents from judging by accident when close/separate state to external object determines, screen is avoided frequently to extinguish and lighting it Between switch phenomena such as appearance.
On the basis of the above embodiments, control infrared proximity transducer be based on strong optical mode threshold value carry out close to/ After judgement far from state, it may also include that and obtain current first environment light intensity value, if first environment light intensity value is less than Non- strong optic terminus value is preset, then current decision gate limit value is adjusted to non-strong optical mode threshold value, and controls infrared proximity sensing Device is carried out based on non-strong optical mode threshold value close to the/judgement far from state.Illustratively, when environmental light intensity angle value is lower than certain Numerical value when, the infrared ray in environment influences the proximity values of infrared proximity transducer smaller, can restore at this time to non-strong light to sentence Mould-fixed, to guarantee measurement sensitivity of the infrared proximity transducer in normal environment.
On the basis of the above embodiments, the separate threshold value in strong optical mode threshold value can be greater than non-strong optical mode thresholding Separate threshold value in value.Under strong light determinating mode, if based on this is determined close to threshold value in strong optical mode threshold value When be proximity state, can illustrate that infrared proximity transducer is blocked, after shelter is removed, if in strong optical mode threshold value It is smaller far from threshold value, it would be possible that can not normally determine far from state, so, it can be remote in non-strong optical mode threshold value From the numerical value far from threshold value is improved on the basis of threshold value, the separate threshold value in strong optical mode threshold value is obtained, is guaranteed strong Separate state under light determinating mode can be identified normally.Illustratively, the proximity values range ability of infrared proximity transducer Maximum boundary value be 1023.In non-strong optical mode threshold value is 400 close to threshold value, is 300 far from threshold value;Strong optical mode In formula threshold value is 900 close to threshold value, is 850 far from threshold value.Infrared proximity transducer chip is interfered by strong light Afterwards, the beating scope of proximity values does not all exceed strong optical mode door generally 700 hereinafter, so regardless of proximity values jump In limit value close to threshold value, while can also guarantee that the separate state under strong light determinating mode can be identified normally.
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, further comprises the steps of: the use in infrared proximity transducer In the state of determining that close/current decision gate limit value far from state is non-strong optical mode threshold value, control infrared proximity is passed Sensor is carried out based on the non-strong optical mode threshold value close to the/judgement far from state;According to based on non-strong optical mode threshold value Close to/far from state determination results adjustment preset strong optic terminus value.
Correspondingly, the method for the present embodiment includes the following steps:
Step 201 is used to determine that close/current decision gate limit value far from state to be non-strong in infrared proximity transducer In the state of optical mode threshold value, control infrared proximity transducer is based on non-strong optical mode threshold value and carries out close/separate state Judgement, and in real time obtain current environment light intensity value.
Whether the acquired current environment light intensity value of step 202, judgement, which is greater than, is preset strong optic terminus value, if so, holding Row step 203;Otherwise, step 205 is executed.
Current decision gate limit value is adjusted to strong optical mode threshold value by step 203.
Step 204, control infrared proximity transducer are carried out based on strong optical mode threshold value close to the/judgement far from state.
Step 205 adjusts default Qiang Guang circle according to close/separate state determination results based on non-strong optical mode threshold value Limit value returns to step 202.
Illustratively, different infrared proximity sensor components are different for the perception of environment light infra-red intensity, Some infrared proximity transducer chips proximity values when environmental light intensity angle value is greater than (lux) 5000lux will beat;And have Infrared proximity transducer chip environmental light intensity angle value be greater than 8000lux when, proximity values can be just mutated.That is, passing through One unified default strong optic terminus value is come to judge whether an infrared proximity transducer has currently been subjected to the interference of strong light be to deposit In problem.In addition, using the cumulative time progressively longer with device, certain variation may also can occur for device performance. It is therefore desirable to which strong optic terminus value is preset in dynamic adjustment in the use process of mobile terminal, to guarantee accurately cutting for determinating mode It changes.
Optionally, this step can include: if being detected in preset duration based on non-strong optical mode threshold value close/remote Number from altering event reaches preset times threshold value, then it is default to judge whether the current environment light intensity value obtained at this time is less than Strong optic terminus value, if being less than, the current environment light intensity value strong optic terminus value will be preset being adjusted to obtain at this time.
Wherein, close/separate altering event, which is specifically included from far from state, becomes proximity state, further includes from proximity state Become far from state.When influence of the infrared ray in environment to infrared proximity transducer is bigger, proximity values will be sent out Raw jump, after an integration period (such as 100ms) is completed, proximity values that obtained proximity values and a upper integration period obtain It is widely different, will generally occur once close to/far from altering event.User is close/separate in usual use process Movement can not have so fast, can judge accordingly whether infrared proximity transducer is abnormal, and then judge whether It needs to be adjusted to presetting strong optic terminus value.Illustratively, in preset duration (in such as 2 seconds), what is detected is close/separate The number of altering event reaches preset times threshold value (such as 4 times), and user is normally close to separate movement in the preset duration Can not complete it is so multiple, so can illustrate that infrared proximity transducer is abnormal.Under recordable at this time work as front ring Border light intensity value, such as 6500lux, if the current environment light intensity value be greater than preset strong optic terminus value (such as 5000lux), then in later judgement, strong optic terminus value is still preset using this;If the current environment light intensity value is small In presetting strong optic terminus value (such as 8000lux), then just using current environment light intensity value as new default strong optic terminus Value.
Preferably, if based on non-strong optical mode threshold value detected in preset duration close to/far from altering event Number reaches preset times threshold value, then judges whether the current environment light intensity value obtained at this time is less than and preset strong optic terminus value, If can include: reached based on close/number far from altering event that non-strong optical mode threshold value detects in preset duration Preset times threshold value, and the time interval between every two adjacent close/separate altering event is less than preset interval threshold value, then Judge whether the current environment light intensity value obtained at this time is less than and presets strong optic terminus value.The advantages of this arrangement are as follows can be more Add and accurately judges whether infrared proximity transducer is abnormal.
Illustratively, if according to based on the close/determining default strong far from state determination results of non-strong optical mode threshold value Optic terminus value does not need to adjust, then can directly return to step 202.
The embodiment of the present invention on that basi of the above embodiments, increases the related step that strong optic terminus value is preset in dynamic adjustment Suddenly, the default strong optic terminus value for being suitble to current infrared proximity transducer can be determined more accurately, to be determined more accurately Current decision gate limit value is the decision gate limit value under which kind of mode.
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 Scheme, in the whole flow process in the present embodiment, current environment light intensity value can be obtained in real time, as shown in figure 3, this method includes as follows Step:
Infrared proximity transducer is used to determine that close/current decision gate limit value far from state to be set as by step 301 Non- strong optical mode threshold value, control infrared proximity transducer are carried out based on non-strong optical mode threshold value close to/sentencing far from state It is fixed, and current environment light intensity value is obtained in real time.
Whether the acquired current environment light intensity value of step 302, judgement, which is greater than, is preset strong optic terminus value, if so, holding Row step 303;Otherwise, step 305 is executed.
Current decision gate limit value is adjusted to strong optical mode threshold value by step 303, and control infrared proximity transducer is based on strong Optical mode threshold value is carried out close to/the judgement far from state, and obtains current environment light intensity value in real time.
Whether the acquired current environment light intensity value of step 304, judgement, which is less than, is preset non-strong optic terminus value, if so, Execute step 301;Otherwise, step 304 is executed.
Step 305 judges close/separate altering event detected in preset duration based on non-strong optical mode threshold value Number whether reach preset times threshold value, if so, thening follow the steps 306;Otherwise, step 302 is executed.
Whether the current environment light intensity value that step 306, judgement obtain at this time, which is less than, is preset strong optic terminus value, if so, Execute step 307;Otherwise, step 302 is executed.
Step 307, the current environment light intensity value strong optic terminus value will be preset be adjusted to obtain at this time.
It should be noted that being non-strong optical mode in the current decision gate limit value of infrared proximity transducer in the present embodiment In the state of threshold value, control infrared proximity transducer can be continued based on non-strong optical mode threshold value and carry out close/separate state Judgement, until current decision gate limit value is adjusted to strong optical mode threshold value;, in the current decision gate of infrared proximity transducer Limit value be connect for that in the state of strong optical mode threshold value, can continue control infrared proximity transducer based on strong optical mode threshold value Closely/judgement far from state, until current decision gate limit value is adjusted to non-strong optical mode threshold value.
The control method for the infrared proximity transducer that the embodiment of the present invention three provides can flexibly switch close/separate The determinating mode of state weakens influence of the strong light to result is determined, prevents from sentencing in close/separate state to external object Timing is judged by accident.
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 the work of infrared proximity transducer.As shown in figure 4, the device includes: that environmental light intensity angle value obtains module 401, decision gate limit value adjustment module 402 and determination module 403.
Wherein, environmental light intensity angle value obtains module 401, in the close/separate for determining of infrared proximity transducer The current decision gate limit value of state is real-time acquisition current environment light intensity value in the state of non-strong optical mode threshold value;Determine Threshold value adjusts module 402, for working as by described in when acquired current environment light intensity value is greater than and presets strong optic terminus value Preceding decision gate limit value is adjusted to strong optical mode threshold value, wherein is greater than institute close to threshold value in the strong optical mode threshold value State in non-strong optical mode threshold value close to threshold value;Determination module 403 is based on institute for controlling the infrared proximity transducer Strong optical mode threshold value is stated to carry out close to/the judgement far from state.
The control device of infrared proximity transducer provided in an embodiment of the present invention, when ambient light intensity is larger, using compared with Big determines proximity state close to threshold value, can weaken influence of the strong light to result is determined, prevent to external object Close to/far from state determined when judge by accident, avoid screen frequently between extinguishing and lighting switch phenomena such as out It is existing.
On the basis of the above embodiments, the separate threshold value in the strong optical mode threshold value is greater than the non-Qiang Guangmo Separate threshold value in formula threshold value.
On the basis of the above embodiments, the determination module is also used to: in infrared proximity transducer for determining to connect Closely/far from state current decision gate limit value be non-strong optical mode threshold value in the state of, control the infrared proximity transducer It is carried out based on the non-strong optical mode threshold value close to the/judgement far from state;Described device further include: preset strong optic terminus value Module is adjusted, for presetting strong light according to close/separate state determination results adjustment based on the non-strong optical mode threshold value Boundary value.
On the basis of the above embodiments, the strong optic terminus value adjustment module of presetting specifically includes judging unit and adjustment Unit.Wherein, judging unit, for close/remote when being detected in preset duration based on the non-strong optical mode threshold value When number from altering event reaches preset times threshold value, it is default to judge whether the current environment light intensity value obtained at this time is less than Strong optic terminus value;Adjustment unit, it is pre- for judging that the current environment light intensity value obtained at this time is less than in the judging unit If when strong optic terminus value, by the current environment light intensity value preset strong optic terminus value and be adjusted to obtain at this time.
On the basis of the above embodiments, the judging unit is specifically used for: when based on the non-strong optical mode threshold value Detected in preset duration close to/far from the number of altering event reach preset times threshold value, and every two adjacent connect Closely/when being less than preset interval threshold value far from the time interval between altering event, judge the current environment luminous intensity obtained at this time Whether value, which is less than, is preset strong optic terminus 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.
During using the mobile terminal in the present embodiment, when ambient light intensity is larger, mobile terminal can be adopted user Proximity state is determined close to threshold value with biggish, influence of the strong light to result is determined can be weakened, prevented to the external world Object close to/determined far from state when judge by accident, avoid screen frequently phenomena such as extinguishing and switching between lighting Appearance, user experience can be improved.
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 (10)

1. a kind of control method of infrared proximity transducer characterized by comprising
In infrared proximity transducer for determining that close/current decision gate limit value far from state is non-strong optical mode threshold value In the state of, current environment light intensity value is obtained in real time;
If acquired current environment light intensity value, which is greater than, presets strong optic terminus value, the current decision gate limit value is adjusted to Strong optical mode threshold value, wherein be greater than the non-strong optical mode threshold value close to threshold value in the strong optical mode threshold value In close to threshold value;
The infrared proximity transducer is controlled to carry out based on the strong optical mode threshold value close to the/judgement far from state;
Wherein, it is described preset strong optic terminus value be infrared proximity transducer in the state of not blocking, what proximity values jumped The smallest environmental light intensity value.
2. the method according to claim 1, wherein the separate threshold value in the strong optical mode threshold value is greater than Separate threshold value in the non-strong optical mode threshold value.
3. the method according to claim 1, wherein further include:
In infrared proximity transducer for determining that close/current decision gate limit value far from state is non-strong optical mode threshold value In the state of, it controls the infrared proximity transducer and is carried out based on the non-strong optical mode threshold value close to/sentencing far from state It is fixed;
Strong optic terminus value is preset according to close/separate state determination results adjustment based on the non-strong optical mode threshold value.
4. according to the method described in claim 3, it is characterized in that, according to based on the non-strong optical mode threshold value close to/ Strong optic terminus value is preset far from state determination results adjustment, comprising:
If being reached based on close/number far from altering event that the non-strong optical mode threshold value detects in preset duration Preset times threshold value then judges whether the current environment light intensity value obtained at this time is less than and presets strong optic terminus value, if being less than, It presets strong optic terminus value by described and is adjusted to the current environment light intensity value obtained at this time.
5. according to the method described in claim 4, it is characterized in that, if based on the non-strong optical mode threshold value in preset duration Close/the number far from altering event inside detected reaches preset times threshold value, then judges the current environment light obtained at this time Whether intensity value, which is less than, is preset strong optic terminus value, comprising:
If being reached based on close/number far from altering event that the non-strong optical mode threshold value detects in preset duration Preset times threshold value, and the time interval between every two adjacent close/separate altering event is less than preset interval threshold value, then Judge whether the current environment light intensity value obtained at this time is less than and presets strong optic terminus value.
6. a kind of control device of infrared proximity transducer characterized by comprising
Environmental light intensity angle value obtains module, for being used to determine close to/currently sentencing far from state in infrared proximity transducer Determining threshold value is real-time acquisition current environment light intensity value in the state of non-strong optical mode threshold value;
Decision gate limit value adjusts module, for inciting somebody to action when acquired current environment light intensity value is greater than and presets strong optic terminus value The current decision gate limit value is adjusted to strong optical mode threshold value, wherein in the strong optical mode threshold value close to threshold value Greater than in the non-strong optical mode threshold value close to threshold value;
Determination module carries out close/separate shape based on the strong optical mode threshold value for controlling the infrared proximity transducer The judgement of state;
Wherein, it is described preset strong optic terminus value be infrared proximity transducer in the state of not blocking, what proximity values jumped The smallest environmental light intensity value.
7. device according to claim 6, which is characterized in that the separate threshold value in the strong optical mode threshold value is greater than Separate threshold value in the non-strong optical mode threshold value.
8. device according to claim 6, which is characterized in that
The determination module is also used to: in infrared proximity transducer for determining close to/current the decision threshold far from state Value be non-strong optical mode threshold value in the state of, control the infrared proximity transducer be based on the non-strong optical mode threshold value into The judgement of close/separate state of row;
Described device further include:
Strong optic terminus value adjustment module is preset, for sentencing according to close/separate state based on the non-strong optical mode threshold value Determine result adjustment and presets strong optic terminus value.
9. device according to claim 8, which is characterized in that the strong optic terminus value adjustment module of presetting includes:
Judging unit, for when close/separate change detected in preset duration based on the non-strong optical mode threshold value When the number of event reaches preset times threshold value, judge whether the current environment light intensity value obtained at this time is less than default Qiang Guang circle Limit value;
Adjustment unit, for judging that the current environment light intensity value obtained at this time is less than default Qiang Guang circle in the judging unit When limit value, presets strong optic terminus value by described and be adjusted to the current environment light intensity value obtained at this time.
10. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with as described in claim 6-9 any one The control device of infrared proximity transducer.
CN201610528516.2A 2016-07-06 2016-07-06 A kind of control method of infrared proximity transducer, device and mobile terminal Active CN105939427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610528516.2A CN105939427B (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
CN201610528516.2A CN105939427B (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
CN105939427A CN105939427A (en) 2016-09-14
CN105939427B true CN105939427B (en) 2019-08-02

Family

ID=56872574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610528516.2A Active CN105939427B (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) CN105939427B (en)

Families Citing this family (8)

* 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
CN106502819B (en) * 2016-11-08 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on proximity sensor and mobile terminal
CN106790978B (en) * 2016-11-18 2019-08-06 Oppo广东移动通信有限公司 Control method, device and the mobile terminal of mobile terminal screen state
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
WO2019071426A1 (en) * 2017-10-10 2019-04-18 深圳市云中飞网络科技有限公司 Threshold setting method and related product
CN109343066B (en) * 2018-09-18 2020-07-21 Oppo广东移动通信有限公司 Control method and device of proximity sensor, storage medium and mobile terminal
CN112698420B (en) * 2019-10-23 2023-11-03 广州奕至家居科技有限公司 Object proximity sensing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694909A (en) * 2012-05-07 2012-09-26 深圳桑菲消费通信有限公司 Cell phone intelligent screen locking system and method thereof
CN103941310A (en) * 2014-04-09 2014-07-23 苏州佳世达电通有限公司 Correcting method and system of proximity sensor
CN105704265A (en) * 2014-12-10 2016-06-22 昇佳电子股份有限公司 Method and system for identifying distance between cellphone and shelter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694909A (en) * 2012-05-07 2012-09-26 深圳桑菲消费通信有限公司 Cell phone intelligent screen locking system and method thereof
CN103941310A (en) * 2014-04-09 2014-07-23 苏州佳世达电通有限公司 Correcting method and system of proximity sensor
CN105704265A (en) * 2014-12-10 2016-06-22 昇佳电子股份有限公司 Method and system for identifying distance between cellphone and shelter

Also Published As

Publication number Publication date
CN105939427A (en) 2016-09-14

Similar Documents

Publication Publication Date Title
CN105939427B (en) A kind of control method of infrared proximity transducer, device and mobile terminal
CN105959492B (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
CN110049152B (en) Method and system for identifying distance between mobile phone and shielding object
CN105430162B (en) A kind of method and apparatus for opening flashlight
CN106303023B (en) Screen state adjusting method and device
AU2013202359A1 (en) Method and system for automatically adjusting television volume, television set and television remote controller
CN102917124A (en) Method for dynamically adjusting threshold of distance sensor, and mobile terminal
CN106790978B (en) Control method, device and the mobile terminal of mobile terminal screen state
CN106791120B (en) Control method and device for screen-off of mobile terminal
CN105304064A (en) Method and system for regulating brightness of electronic equipment screen
CN106506825A (en) A kind of control method of touch-screen, device and mobile terminal
CN104202480B (en) The distance-finding method of self-adaptation type calibration and hand-held call type communication apparatus
CN108989570A (en) Mobile terminal and the method, apparatus for determining screen starting brightness value
CN103837910B (en) Method and terminal that a kind of proximity transducer threshold value is determined
CN105895057B (en) A kind of backlight adjusting method, device and terminal device
CN104010079A (en) Method for lighting screen of mobile phone
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
CN106022020B (en) Optical detection touch screen unlocking device and method of mobile terminal
JP3868281B2 (en) Photoelectric pulse wave measuring device
CN106020447A (en) A touch-type electronic apparatus proximity sensor parameter adjusting method and system
CN103945068A (en) Method for setting approach threshold value of mobile terminal and mobile terminal
CN106775520A (en) Mobile terminal and bright screen method
CN106453930A (en) Method for lightening screen of mobile terminal and mobile terminal
CN105022530B (en) The calibration method and system of proximity transducer

Legal Events

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

Address after: 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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant