CN106357922B - State monitoring method, device and the terminal device of terminal device - Google Patents
State monitoring method, device and the terminal device of terminal device Download PDFInfo
- Publication number
- CN106357922B CN106357922B CN201610892606.XA CN201610892606A CN106357922B CN 106357922 B CN106357922 B CN 106357922B CN 201610892606 A CN201610892606 A CN 201610892606A CN 106357922 B CN106357922 B CN 106357922B
- Authority
- CN
- China
- Prior art keywords
- intensity value
- sampling
- infrared intensity
- infrared
- difference
- 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.)
- Expired - Fee Related
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000005070 sampling Methods 0.000 claims abstract description 238
- 238000001514 detection method Methods 0.000 claims description 17
- 230000003287 optical effect Effects 0.000 claims description 15
- 238000005286 illumination Methods 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 14
- 238000003756 stirring Methods 0.000 description 6
- 230000006399 behavior Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000155 isotopic effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 210000003205 muscle Anatomy 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
The invention discloses a kind of state monitoring method of terminal device, device and terminal device.Method includes:The transmitting terminal in proximity sensor is closed in pre-sampling, and the first infrared intensity value is read by the receiving terminal in proximity sensor;Transmitting terminal is opened in formal sampling, and the second infrared intensity value is read from receiving terminal;Calculate the difference of the second infrared intensity value and the first infrared intensity value;Repeated sampling obtains n difference and obtains total difference of the second infrared intensity value and the first infrared intensity value;Determine whether terminal device is in proximity state according to total difference and preset difference value.By this method, can infrared ray and external disturbance infrared ray inside INTELLIGENT IDENTIFICATION, and avoid user from constantly changing splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of state monitoring method of terminal device, device and
Terminal device.
Background technology
In general, during phone is taken, when mobile phone is close to face, carry out putting out screen processing to prevent erroneous trigger.This
Kind mode is mainly to be realized by proximity sensor, wherein, proximity sensor includes two parts, and a transmitting terminal, that is, send out
Penetrate infrared light;One receiving terminal, that is, receive infrared light.When object is close proximity to sensor, infrared light can be reflected.It is close
The receiving terminal inside chip processor of sensor includes analog-digital converter, it can be deduced that object close to when specific infrared luminous intensity
Value.When not having any object to block, the intensity level of receiving terminal is minimum;Continuous close with object, intensity level becomes larger, directly
Untill full scale.
However, external environment condition is extremely complex, such as sunlight includes a large amount of infrared rays.Particularly in strong sunlight
Under, infrared ray is stronger, and at this time, the infrared light intensity value that the receiving terminal of proximity sensor obtains is not accurate enough, wherein being mingled with
Many exterior infrared lights, moreover, receiving time is longer, the amount for the exterior infrared light being mingled with is more.And when user is in strong sunlight
Under ceaselessly up and down when stirring mobile phone, the infrared light intensity value that the receiving terminal of proximity sensor obtains constantly fluctuates, and causes mobile phone
The bright screen of screen is constantly put out, splashette phenomenon occurs.
The content of the invention
The purpose of the present invention is intended to solve one of above-mentioned technical problem at least to a certain extent.
For this reason, first purpose of the present invention is to propose a kind of state monitoring method of terminal device, this method can
Infrared ray and external disturbance infrared ray inside INTELLIGENT IDENTIFICATION, and avoid user from constantly changing terminal device under strong light environment
Splashette phenomenon caused by intensity of illumination.
Second object of the present invention is to propose a kind of state monitoring apparatus of terminal device.
Third object of the present invention is to propose a kind of terminal device.
In order to achieve the above object, according to a first aspect of the present invention embodiment propose a kind of terminal device status monitoring side
Method, comprises the following steps:
In pre-sampling, the transmitting terminal in proximity sensor is closed, and obtain by the receiving terminal in the proximity sensor
Take the first infrared intensity value, wherein, when sampling of first infrared intensity value a length of default sampling durationTimes, n is big
In 1 positive integer;
In formal sampling, the transmitting terminal is opened, and the second infrared intensity value is obtained by the receiving terminal;
Calculate the difference of first infrared intensity value and second infrared intensity value;
The difference of first infrared intensity value described in repeated sampling and second infrared intensity value n times, and obtain described
Total difference of two infrared intensity values and first infrared intensity value, wherein, the sum of sampling duration that sampling is n times is equal to described pre-
If sample duration;
According to total difference and preset difference value, determine whether the terminal device is in proximity state.
The state monitoring method of the terminal device of the embodiment of the present invention, by being closed in pre-sampling in proximity sensor
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity sensor, transmitting terminal is opened in formal sampling, and
The second infrared intensity value is read from receiving terminal, calculates the difference of the second infrared intensity value and the first infrared intensity value, repeated sampling
Obtain n difference and obtain total difference of the second infrared intensity value and the first infrared intensity value, finally according to total difference and in advance
If difference determines whether terminal device is in proximity state.Thereby, it is possible to infrared ray inside INTELLIGENT IDENTIFICATION and external disturbance are infrared
Line, and avoid user from constantly changing splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
In order to achieve the above object, a kind of status monitoring for terminal device that embodiment proposes fills according to the second aspect of the invention
Put, including:
First acquisition module, in pre-sampling, closing the transmitting terminal in proximity sensor, and by described close to biography
Receiving terminal in sensor obtains the first infrared intensity value, wherein, a length of default sampling during the sampling of first infrared intensity value
DurationTimes, n is the positive integer more than 1;
Second acquisition module, second is obtained in formal sampling, opening the transmitting terminal, and by the receiving terminal
Infrared intensity value;
Computing module, for calculating the difference of first infrared intensity value and second infrared intensity value;
3rd acquisition module, for first infrared intensity value according to n sampling and second infrared intensity value
Difference obtain total difference of second infrared intensity value and first infrared intensity value, wherein, during the sampling that sampling is n times
It is the sum of long to be equal to the default sampling duration;
First determining module, for according to total difference and preset difference value, determining whether the terminal device is in
Proximity state.
The state monitoring apparatus of the terminal device of the embodiment of the present invention, by being closed in pre-sampling in proximity sensor
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity sensor, transmitting terminal is opened in formal sampling, and
The second infrared intensity value is read from receiving terminal, calculates the difference of the second infrared intensity value and the first infrared intensity value, repeated sampling
Obtain n difference and obtain total difference of the second infrared intensity value and the first infrared intensity value, finally according to total difference and in advance
If difference determines whether terminal device is in proximity state.Thereby, it is possible to infrared ray inside INTELLIGENT IDENTIFICATION and external disturbance are infrared
Line, and avoid user from constantly changing splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
In order to achieve the above object, the terminal device that embodiment proposes according to the third aspect of the invention we, including:
Housing, processor, memory, proximity sensor, circuit board and power circuit, wherein, the circuit board is placed in
The interior volume that the housing surrounds, the processor and the memory are arranged on the circuit board;The power circuit,
For each circuit or the device power supply for terminal device;The proximity sensor, including transmitting terminal and receiving terminal, wherein, institute
It is Light-emitting diode LED to state transmitting terminal, and for launching infrared light, the receiving terminal is used to receive infrared light;The memory is used
In storage executable program code;The processor is run by reading the executable program code stored in the memory
Program corresponding with the executable program code, for performing following steps:
In pre-sampling, the transmitting terminal in proximity sensor is closed, and obtain by the receiving terminal in the proximity sensor
Take the first infrared intensity value, wherein, when sampling of first infrared intensity value a length of default sampling durationTimes, n is big
In 1 positive integer;
In formal sampling, the transmitting terminal is opened, and the second infrared intensity value is obtained by the receiving terminal;
Calculate the difference of first infrared intensity value and second infrared intensity value;
The difference of first infrared intensity value described in repeated sampling and second infrared intensity value n times, and obtain described
Total difference of two infrared intensity values and first infrared intensity value, wherein, the sum of sampling duration that sampling is n times is equal to described pre-
If sample duration;
According to total difference and preset difference value, determine whether the terminal device is in proximity state.
The terminal device of the embodiment of the present invention, by closing the transmitting terminal in proximity sensor in pre-sampling, and passes through
Receiving terminal in proximity sensor reads the first infrared intensity value, transmitting terminal is opened in formal sampling, and read from receiving terminal
Second infrared intensity value, calculates the difference of the second infrared intensity value and the first infrared intensity value, and repeated sampling obtains n difference simultaneously
Total difference of the second infrared intensity value and the first infrared intensity value is obtained, terminal is finally determined according to total difference and preset difference value
Whether equipment is in proximity state.Thereby, it is possible to infrared ray inside INTELLIGENT IDENTIFICATION and external disturbance infrared ray, and avoid user
Splashette phenomenon caused by constantly changing the intensity of illumination of mobile terminal under strong light environment.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment
Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the state monitoring method of terminal device according to an embodiment of the invention;
Fig. 2 is the structure diagram of proximity sensor according to an embodiment of the invention;
Fig. 3 (a) is the schematic diagram sampled with default sampling duration;
Fig. 3 (b) be withThe schematic diagram that default sampling duration is sampled again;
Fig. 4 is the flow chart of the state monitoring method of terminal device in accordance with another embodiment of the present invention;
Fig. 5 is the flow chart of the state monitoring method of the terminal device of another embodiment according to the present invention;
Fig. 6 is the flow chart of the state monitoring method of the terminal device of further embodiment according to the present invention;
Fig. 7 is the structure diagram of the state monitoring apparatus of terminal device according to an embodiment of the invention;
Fig. 8 is the structure diagram of the state monitoring apparatus of terminal device in accordance with another embodiment of the present invention;
Fig. 9 is the structure diagram of the state monitoring apparatus of the terminal device of another embodiment according to the present invention;
Figure 10 is the structure diagram of terminal device according to an embodiment of the invention.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the state monitoring method, device and terminal device of the terminal device of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the state monitoring method of terminal device according to an embodiment of the invention.
As shown in Figure 1, the state monitoring method of the terminal device of the embodiment of the present invention comprises the following steps:
S11:In pre-sampling, the transmitting terminal in proximity sensor is closed, and pass through the reception in the proximity sensor
End obtains the first infrared intensity value, wherein, when sampling of first infrared intensity value a length of default sampling durationTimes, n
For the positive integer more than 1.
The state monitoring method of the terminal device of the embodiment of the present application is configured in the terminal device of proximity sensor
Exemplified by be specifically described.
Fig. 2 is the structure diagram of proximity sensor according to an embodiment of the invention.
As shown in Fig. 2, proximity sensor includes two parts, a transmitting terminal, i.e. LED (Light Emitting
Diode, light emitting diode) lamp transmitting infrared light;One receiving terminal, that is, receive infrared light.When object is close proximity to sensor, meeting
Reflect infrared light.The receiving terminal inside chip processor of proximity sensor includes analog-digital converter, it can be deduced that object
Specific infrared light intensity value when close.When not having any object to block, the intensity level of receiving terminal is minimum;It is continuous with object
Close, intensity level becomes larger, untill full scale.
It should be noted that receiving terminal inside chip can be configured as needed, for example, can be 8,10 and
12 etc..The range of the corresponding light intensity value of the inside chip of isotopic number is not different yet, such as it is 256,10 right that 8 corresponding
Answer be 1024,12 it is corresponding be 4096 etc..
For example, receiving terminal inside chip is arranged to the device of 10, when normally being blocked without object, intensity level
For 50;When face all close to device when, infrared ray all reflexes to receiving terminal, and intensity level reaches full scale 1024.
In order to meet user demand, it can generally set terminal device from face when 3-5cm, start to put out screen.Similarly,
Threshold value when can also set a terminal device away from face, when meeting condition, starts bright screen.
By taking user's using terminal equipment takes phone as an example.In general, during phone is taken, terminal device is close to face
During portion, carry out putting out screen processing to prevent false triggering;Terminal device away from face it is unobstructed when, carry out bright screen processing.However, in example
Under such as strong sunlight complex situations, especially when user ceaselessly stirs terminal device up and down under strong sunlight, connect
It is mingled with many exterior Infrared Datas in the Infrared Data that the receiving terminal of nearly sensor obtains, that is, from sunlight
Infrared Data, and obtained infrared light intensity value constantly fluctuates, and causes terminal device constantly to put out the bright screen of screen, splashette occurs and show
As.
Therefore, the embodiment of the present invention proposes a kind of state monitoring method of terminal device, can be infrared inside INTELLIGENT IDENTIFICATION
Light and external disturbance infrared light, and avoid user from constantly changing sudden strain of a muscle caused by the intensity of illumination of terminal device under strong light environment
Shield phenomenon.
Pre-sampling is carried out first.Pre-sampling is carried out under conditions of the transmitting terminal in closing proximity sensor, and is adopted
A length of default sampling duration during sampleTimes, n is the positive integer more than 1.By pre-sampling, the receiving terminal in proximity sensor obtains
Take the first infrared intensity value.
It should be appreciated that due to closing the transmitting terminal in proximity sensor during pre-sampling, in proximity sensor
The first infrared intensity value for obtaining of receiving terminal be exterior infrared light intensity level.
In the present embodiment, when carrying out pre-sampling, duration will be sampled and be arranged to default sampling durationTimes, wherein, n is
Positive integer more than 1, can reduce the variable quantity of intensity level.
S12:In formal sampling, transmitting terminal is opened, and the second infrared intensity value is obtained by receiving terminal.
In the present embodiment, after pre-sampling terminates, that is, start formal sampling.Formal sampling is to open the condition of transmitting terminal
Lower progress.After formal sampling, the receiving terminal in proximity sensor obtains the second infrared intensity value.
It should be noted that the sampling duration of the second infrared intensity value is equal with the sampling duration of the first infrared intensity value,
I.e. formal sampling when sampling duration it is equal with sampling duration during pre-sampling.
It should be appreciated that due to opening the transmitting terminal in proximity sensor during formal sampling, proximity sensor
In the second infrared intensity value for obtaining of receiving terminal in, be both mingled with the intensity level of exterior infrared light, and also had internal infrared light
Intensity level.
S13:Calculate the difference of the first infrared intensity value and the second infrared intensity value.
In the present embodiment, the transmitting terminal for being first shut off proximity sensor carries out the reception of pre-sampling, at this time proximity sensor
The first infrared intensity value that end obtains is only the intensity level of exterior infrared light.After pre-sampling, open transmitting terminal and carry out formally
Sample, the intensity level comprising exterior infrared light and internal infrared light in the second infrared intensity value that receiving terminal obtains at this time.Thus,
Both differences are the intensity level of internal infrared light.
S14:The difference of the first infrared intensity value of repeated sampling and the second infrared intensity value n times, and it is infrared strong to obtain second
Total difference of angle value and the first infrared intensity value, wherein, the sum of sampling duration that sampling is n times is equal to default sampling duration.
As described in step S13, the difference of the second infrared intensity value and the first infrared intensity value is the strong of internal infrared light
Angle value.When user ceaselessly stirs up and down under strong sunlight or tilts terminal device, the environment residing for terminal device is strong
Sunlight and without ceaselessly switching between strong sunlight.If sampled with default sampling duration, under strong sunlight, second
The difference comparsion of infrared intensity value and the first infrared intensity value is big;And under without strong sunlight, the second infrared intensity value and first
The difference of infrared intensity value is smaller.Thus, as the environment residing for terminal device constantly switches, the second infrared intensity value and first
The size of the difference of infrared intensity value ceaselessly fluctuates.Thus, terminal device ceaselessly puts out the bright screen of screen, splashette phenomenon occurs.
Therefore, the state monitoring method for the terminal device that the embodiment of the present invention proposes, it is infrared by repeated sampling n times second
The difference of intensity level and the first infrared intensity value, and obtain the second infrared intensity value and the first infrared intensity value by calculating
Total difference, and then the fluctuating range of difference is reduced, avoid terminal device from splashette phenomenon occur.Specifically, can to n difference into
Row integral and calculating, to obtain total difference of the second infrared intensity value and the first infrared intensity value.Before sampling, will adopt in advance first
The sampling duration of sample and the sampling duration of formal sampling are disposed as default sampling durationTimes, sample n times respectively and calculate n
Secondary difference, wherein, n is the positive integer more than 1.And then n times to obtaining difference carries out integral and calculating, obtains the second infrared intensity
Total difference of value and the first infrared intensity value.
Preset it should be noted that to pre-sampling and formal sampling repeat the sum of sampling duration of n sampling and being equal to
Sample duration.
As a kind of example, referring to Fig. 3 (a) and Fig. 3 (b).Fig. 3 (a) is the signal sampled with default sampling duration
Figure;Fig. 3 (b) be withThe schematic diagram that default sampling duration is sampled again.
As shown in Fig. 3 (a), it is assumed that a length of 4 seconds during default sampling.In figure, close to sensing when shadow region 31 is pre-sampling
The first infrared intensity value that the receiving terminal of device obtains.Due to pre-sampling be close proximity sensor transmitting terminal under conditions of into
Capable, therefore, the first infrared intensity value is the intensity level of exterior infrared light.The sum of shadow region 32 and shadow region 33 represent
The second infrared intensity value that receiving terminal obtains during formal sampling.Due to opening the transmitting terminal of proximity sensor during formal sampling,
Therefore, the intensity level of internal infrared light had both been included in the second infrared intensity value that receiving terminal obtains, had also been mingled with exterior infrared
The intensity level of light.In figure, shadow region 32 represents the intensity level of exterior infrared light;Shadow region 33 represents the strong of internal infrared light
Angle value.When user ceaselessly stirs under strong sunlight or tilts mobile phone, the intensity of illumination suffered by terminal device also constantly becomes
Change.Thus, the intensity level for the exterior infrared light being mingled with the first infrared intensity value and the second infrared intensity value may difference it is larger.
The shadow region 31 and shadow region 32 that exterior infrared light intensity value is represented from Fig. 3 (a) can be seen that what is obtained during pre-sampling
The intensity level difference of the exterior infrared light obtained when the intensity level and formal sampling of exterior infrared light is very big, that is to say, that second
Infrared intensity value and the intensity level for being mingled with more exterior infrared light in the difference of the first infrared intensity value.
In the case of shown in such as Fig. 3 (a), sampling duration is longer, and the second infrared intensity value and the first infrared intensity value
Difference in be mingled with the intensity level of more exterior infrared light.If user, which ceaselessly stirs terminal device, makes environment residing for it
Change, the intensity level for the exterior infrared light being mingled with difference also changes correspondingly, and data fluctuations occurs, and then cause terminal device not
The bright screen of screen is put out disconnectedly, splashette phenomenon occurs.
Therefore, the state monitoring method for the terminal device that the embodiment of the present invention proposes, samples duration, to repeating by reducing
The multiple difference that sampling obtains carries out integral and calculating and obtains total difference to solve the problems, such as the splashette of terminal device.
As shown in Fig. 3 (b), it is assumed that the sampling duration of pre-sampling and formal sampling is arranged to default sampling duration
Times, that is, a length of 1 second when sampling.The receiving terminal of proximity sensor obtains in figure, when shadow region 34 is pre-sampling first is infrared
Intensity level, the intensity level for the exterior infrared light that the first infrared intensity value obtains when being pre-sampling;Shadow region 35 and shadow region
The sum of domain 36 represents the second infrared intensity value that receiving terminal obtains during formal sampling, wherein, shadow region 35 represents formal sampling
When the intensity level of exterior infrared light that obtains, shadow region 36 represents the intensity level of internal infrared light.It can be seen from the figure that phase
Compared with the sampling carried out with default sampling duration, the intensity of the exterior infrared light obtained after being sampled with 1 second for sampling duration
Value is a large amount of to be reduced, and then, the second infrared intensity value and the intensity for the exterior infrared light being mingled with the difference of the first infrared intensity value
Value significantly reduces.Thus, even if user ceaselessly stirs terminal device and makes environmental change residing for it, the outside being mingled with difference
The intensity level of infrared light changes correspondingly, but amplitude of variation is little, is not in larger data fluctuations.
The method of sampling shown in Fig. 3 (b) be withSampling of the default sampling duration again as pre-sampling and formal sampling
Duration.On this basis, with same sampling duration repeated sampling 4 times, that is, sample the sum of 4 times sampling duration and be equal to default adopt
Sample duration, and integral and calculating is carried out to 4 differences of gained after 4 samplings, you can obtain the second infrared intensity value and first red
Total difference of outer intensity level.Thus, it is possible to reduce the fluctuating range of intensity level, accurate second infrared intensity value and first are obtained
The difference of infrared intensity value, i.e., the intensity level of internal infrared light.
It should be noted that the second infrared intensity value and the first infrared intensity value can also be obtained by way of summation
Total difference, is not restricted the calculation of total difference in the present invention.
S15:According to total difference and preset difference value, determine whether terminal device is in proximity state.
Wherein, preset difference value includes:First threshold and second threshold, and first threshold is more than second threshold.
It is poor to n times after the difference by obtaining n the second infrared intensity value and the first infrared intensity value in the present embodiment
Value be calculated total difference of the second infrared intensity value and the first infrared intensity value, by the total difference and preset difference value of gained
Compare, you can determine whether terminal device is in proximity state.
Specifically, the difference of n the second infrared intensity value and the first infrared intensity value that are obtained to sampling is calculated
Total difference of gained compares with first threshold and second threshold, if total difference is more than first threshold, it is determined that at terminal device
In proximity state;If total difference is less than second threshold, it is determined that terminal device is in away from state.
The state monitoring method of the terminal device of the embodiment of the present invention, by being closed in pre-sampling in proximity sensor
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity sensor, transmitting terminal is opened in formal sampling, and
The second infrared intensity value is read from receiving terminal, calculates the difference of the second infrared intensity value and the first infrared intensity value, repeated sampling
Obtain n difference and obtain total difference of the second infrared intensity value and the first infrared intensity value, finally according to total difference and in advance
If difference determines whether terminal device is in proximity state.Thereby, it is possible to infrared light inside INTELLIGENT IDENTIFICATION and external disturbance are infrared
Light, and avoid user from constantly changing splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
Fig. 4 is the flow chart of the state monitoring method of terminal device in accordance with another embodiment of the present invention.
As shown in figure 4, being based on above-described embodiment, after the step s 15, further include:
S41:If it is determined that terminal device is in proximity state, then terminal device is carried out putting out screen operation.
S42:If it is determined that terminal device is in away from state, then bright screen operation is carried out to terminal device.
Specifically, the difference of n the second infrared intensity value and the first infrared intensity value that are obtained to sampling is calculated
Total difference of gained compares with first threshold and second threshold, if total difference is more than first threshold, it is determined that at terminal device
In proximity state, terminal device is carried out to put out screen operation;If total difference is less than second threshold, it is determined that terminal device is in remote
From state, bright screen operation is carried out to terminal device.
The state monitoring method of the terminal device of the embodiment of the present invention, it is right when definite terminal device is in proximity state
Terminal device carries out putting out screen operation, and when definite terminal device is in away from state, bright screen operation is carried out to terminal device.Into one
Step avoids terminal device under strong sunlight and splashette phenomenon occurs, improves user experience.
Fig. 5 is the flow chart of the state monitoring method of the terminal device of another embodiment according to the present invention.
As shown in figure 5, be based on above-described embodiment, before step S11, the state monitoring method of the terminal device can be with
Including:
S51:Whether the light intensity value of detection terminal equipment local environment is more than predetermined threshold value.
, can also be by the light intensity value of detection terminal equipment local environment before pre-sampling in the present embodiment, and judge
Whether light intensity value is more than predetermined threshold value, to determine the size of exterior infrared light interference, so as to further determine that proximity sensor
Sampling configuration.
Wherein, the mode of the light intensity value of detection terminal equipment local environment has many kinds, such as straight by photosensitive sensors
Connect detection and obtain light intensity value.
It should be noted that predetermined threshold value can make choice setting according to actual needs, this is not specifically limited.
S52:If light intensity value is more than predetermined threshold value, control proximity sensor enters strong Optical Sampling pattern.
In the present embodiment, when the light intensity value detected is more than predetermined threshold value, represent that exterior infrared light interference is very big, at this time
Control proximity sensor enters strong Optical Sampling pattern, and then infrared light and exterior infrared light inside INTELLIGENT IDENTIFICATION.
For example, predetermined threshold value 6000lux, it is 8000lux directly to be detected by photosensitive sensors and obtain light intensity value,
8000lux is more than 6000lux, it may be determined that terminal device is bigger by the infrared light interference of local environment, Open from This Side strong light
Sampling configuration.
It should be noted that under strong Optical Sampling pattern, before formal sampling is carried out, first have to carry out pre-sampling, that is, hold
Row step S11.
S53:If light intensity value is less than or equal to predetermined threshold value, control proximity sensor enters normal light sampling configuration.
In the present embodiment, when the light intensity value detected is less than or equal to predetermined threshold value, represent that exterior infrared light interference is smaller
Or disturbed without exterior infrared light, control proximity sensor to enter normal light sampling configuration at this time.
For example, predetermined threshold value 6000lux, it is 5000lux directly to be measured by photosensitive sensors and obtain light intensity value,
5000lux is less than 6000lux, it may be determined that and terminal device is smaller by the infrared light interference of local environment, can be ignored,
Normal light sampling configuration that Open from This Side.
Alternatively, referring to Fig. 6, Fig. 6 is the state monitoring method of the terminal device of further embodiment according to the present invention
Flow chart.
As shown in fig. 6, after step S53, can also include:
S61:In sampling, transmitting terminal is opened, and the 3rd infrared intensity value is obtained from receiving terminal.
In the present embodiment, due to normal light according to terminal under environment equipment by local environment infrared light interference it is smaller or
It is not have, can be ignored, therefore, can directly opens transmitting terminal and be sampled, it is infrared strong to obtain the 3rd from receiving terminal
Angle value, i.e., the intensity level of internal infrared light.
S62:According to the 3rd infrared intensity value and preset difference value, determine whether terminal device is in proximity state.
In the present embodiment, according to the 3rd infrared intensity value and preset difference value, and by the 3rd infrared intensity value and preset difference value
Compare, it may be determined that whether terminal device is in proximity state.
Specifically, after the normal light sampling configuration of proximity sensor is opened, transmitting terminal is opened, and the is read from receiving terminal
Three infrared intensity values.And then by the 3rd infrared intensity value compared with preset difference value, connect with determining whether terminal device is in
Nearly state.
It should be noted that mode of the 3rd infrared intensity value compared with preset difference value can be had to a variety of, citing
It is described as follows:
Example one:Preset difference value includes:First threshold and second threshold, and first threshold is more than second threshold.
Specifically, after the normal light sampling configuration of proximity sensor is opened, transmitting terminal is opened, and the is read from receiving terminal
Three infrared intensity values.By the 3rd infrared intensity value compared with first threshold and second threshold, if the 3rd infrared intensity value is more than
First threshold, it is determined that terminal device is in proximity state;If the 3rd infrared intensity value is less than second threshold, it is determined that terminal
Equipment is in away from state.
Example two:Preset difference value includes:Predetermined threshold value.
Specifically, after the normal light sampling configuration of proximity sensor is opened, transmitting terminal is opened, and the is read from receiving terminal
Three infrared intensity values.If the 3rd infrared intensity value is more than predetermined threshold value, it is determined that terminal device is in proximity state;If the
Three infrared intensity values are less than predetermined threshold value, it is determined that terminal device is in away from state.
The state monitoring method of the terminal device of the embodiment of the present invention, passes through the light intensity value of detection terminal equipment local environment
Whether predetermined threshold value is more than, when light intensity value is more than predetermined threshold value, control proximity sensor enters strong Optical Sampling pattern, in light intensity
When value is less than or equal to predetermined threshold value, the normal light sampling configuration of proximity sensor is opened, is adopted under normal light sampling configuration
Transmitting terminal is opened during sample, and the 3rd infrared intensity value is read from receiving terminal, according to the 3rd infrared intensity value and preset difference value, is determined
Whether terminal device is in proximity state.Thereby, it is possible to infrared light inside INTELLIGENT IDENTIFICATION and external disturbance infrared light, and avoid
User constantly changes splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
In order to realize above-described embodiment, the application also proposed a kind of state monitoring apparatus of terminal device, and Fig. 7 is basis
The structure diagram of the state monitoring apparatus of the terminal device of one embodiment of the invention.
As shown in fig. 7, the state monitoring apparatus of the terminal device includes:First acquisition module 710, the second acquisition module
720th, computing module 730, the 3rd acquisition module 740 and the first determining module 750.Wherein,
First acquisition module 710, passes in pre-sampling, closing the transmitting terminal in proximity sensor, and by close
Receiving terminal in sensor obtains the first infrared intensity value, wherein, a length of default sampling duration during the sampling of the first infrared intensity value
'sTimes, n is the positive integer more than 1.
In the present embodiment, under strong Optical Sampling pattern, before carrying out formal sampling, first have to carry out pre-sampling.Pre-sampling is
A length of default sampling duration when carrying out, and sampling under conditions of the transmitting terminal in closing proximity sensorTimes, n is big
In 1 positive integer.By pre-sampling, the receiving terminal in proximity sensor obtains the first infrared intensity value.
Second acquisition module 720, in formal sampling, opening transmitting terminal, and it is infrared by receiving terminal acquisition second
Intensity level, wherein, the sampling duration of the second infrared intensity value is equal with the sampling duration of the first infrared intensity value.
In the present embodiment, after pre-sampling terminates, that is, start formal sampling.Formal sampling is to open the condition of transmitting terminal
Lower progress, and it is equal with sampling duration during pre-sampling to sample duration.After formal sampling, the receiving terminal in proximity sensor obtains
Take the second infrared intensity value.
Computing module 730, for calculating the difference of the first infrared intensity value and the second infrared intensity value.
In the present embodiment, the transmitting terminal for being first shut off proximity sensor carries out the reception of pre-sampling, at this time proximity sensor
The first infrared intensity value that end obtains is only the intensity level of exterior infrared light.After pre-sampling, open transmitting terminal and carry out formally
Sample, the intensity level comprising exterior infrared light and internal infrared light in the second infrared intensity value that receiving terminal obtains at this time.Thus,
Both differences are the intensity level of internal infrared light.
3rd acquisition module 740, for the first infrared intensity value and the difference of the second infrared intensity value according to n sampling
Total difference of the second infrared intensity value and the first infrared intensity value is obtained, wherein, the sum of sampling duration that sampling is n times is equal to default
Sample duration.
In the present embodiment, the sampling duration of the sampling duration of pre-sampling and formal sampling is disposed as default sampling duration
'sTimes, sample n times respectively and calculate n difference, wherein, n is the positive integer more than 1.N times obtained difference is counted
Calculate, and then obtain total difference of the second infrared intensity value and the first infrared intensity value.
Specifically, the 3rd acquisition module 740 is used for:Integral and calculating is carried out to n difference, to obtain the second infrared intensity value
With total difference of the first infrared intensity value.
Preset it should be noted that to pre-sampling and formal sampling repeat the sum of sampling duration of n sampling and being equal to
Sample duration.
First determining module 750, for according to total difference and preset difference value, determining whether terminal device is in close to shape
State.
Wherein, preset difference value includes:First threshold and second threshold, and first threshold is more than second threshold.
Specifically, the first determining module 750 is used for:If total difference is more than first threshold, it is determined that terminal device is in
Proximity state;If total difference is less than second threshold, it is determined that terminal device is in away from state.
It should be noted that the explanation of the foregoing state monitoring method embodiment to terminal device is also applied for the reality
The state monitoring apparatus of the terminal device of example is applied, its realization principle is similar, and details are not described herein again.
The state monitoring apparatus of the terminal device of the embodiment of the present invention, by being closed in pre-sampling in proximity sensor
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity sensor, transmitting terminal is opened in formal sampling, and
The second infrared intensity value is read from receiving terminal, calculates the difference of the second infrared intensity value and the first infrared intensity value, repeated sampling
Obtain n difference and obtain total difference of the second infrared intensity value and the first infrared intensity value, finally according to total difference and in advance
If difference determines whether terminal device is in proximity state.Thereby, it is possible to infrared ray inside INTELLIGENT IDENTIFICATION and external disturbance are infrared
Line, and avoid user from constantly changing splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
Fig. 8 is the structure diagram of the state monitoring apparatus of terminal device in accordance with another embodiment of the present invention.
As shown in figure 8, on the basis of the structure diagram of state monitoring apparatus as shown in Figure 7, the terminal device
State monitoring apparatus further includes:First operation module 760 and the second operation module 770.Wherein,
First operation module 760, for when definite terminal device is in proximity state, carrying out putting out screen behaviour to terminal device
Make.
Second operation module 770, for when definite terminal device is in away from state, bright screen behaviour to be carried out to terminal device
Make.
Specifically, the difference of n the second infrared intensity value and the first infrared intensity value that are obtained to sampling is calculated
Total difference of gained compares with first threshold and second threshold, if total difference is more than first threshold, it is determined that at terminal device
In proximity state, terminal device is carried out to put out screen operation;If total difference is less than second threshold, it is determined that terminal device is in remote
From state, bright screen operation is carried out to terminal device.
It should be noted that the explanation of the foregoing state monitoring method embodiment to terminal device is also applied for the reality
The state monitoring apparatus of the terminal device of example is applied, its realization principle is similar, and details are not described herein again.
The state monitoring apparatus of the terminal device of the embodiment of the present invention, it is right when definite terminal device is in proximity state
Terminal device carries out putting out screen operation, and when definite terminal device is in away from state, bright screen operation is carried out to terminal device.Into one
Step avoids terminal device under strong sunlight and splashette phenomenon occurs, improves user experience.
Alternatively, in some embodiments, referring to Fig. 9, Fig. 9 is the shape of the terminal device of another embodiment according to the present invention
The structure diagram of state monitoring device.
As shown in figure 9, the state monitoring apparatus of the terminal device can also include:Detection module 780, the first control module
790th, the second control module 7100, the 4th acquisition module 7110 and the second determining module 7120.Wherein,
Whether detection module 780, the light intensity value for detection terminal equipment local environment are more than predetermined threshold value.
, can also be by the light intensity value of detection terminal equipment local environment before pre-sampling in the present embodiment, and judge
Whether light intensity value is more than predetermined threshold value, to determine the size of exterior infrared light interference, so as to further determine that proximity sensor
Sampling configuration.
Wherein, the mode of the light intensity value of detection terminal equipment local environment has many kinds, such as straight by photosensitive sensors
Connect detection and obtain light intensity value.
It should be noted that predetermined threshold value can make choice setting according to actual needs, this is not specifically limited.
First control module 790, for when light intensity value is more than predetermined threshold value, control proximity sensor to enter strong Optical Sampling
Pattern.
In the present embodiment, when the light intensity value detected is more than predetermined threshold value, represent that exterior infrared light interference is very big, at this time
Control proximity sensor enters strong Optical Sampling pattern, and then infrared light and exterior infrared light inside INTELLIGENT IDENTIFICATION.
Second control module 7100, for when light intensity value is less than or equal to predetermined threshold value, control proximity sensor to enter general
Thang-kng sampling configuration.
In the present embodiment, when the light intensity value detected is less than or equal to predetermined threshold value, represent that exterior infrared light interference is smaller
Or disturbed without exterior infrared light, control proximity sensor to enter normal light sampling configuration at this time.
4th acquisition module 7110, in sampling, opening transmitting terminal, and obtains the 3rd infrared intensity from receiving terminal
Value.
In the present embodiment, due to normal light according to terminal under environment equipment by local environment infrared light interference it is smaller or
It is not have, can be ignored, therefore, can directly opens transmitting terminal and be sampled, it is infrared strong to obtain the 3rd from receiving terminal
Angle value, i.e., the intensity level of internal infrared light.
Second determining module 7120, for according to the 3rd infrared intensity value and preset difference value, determining whether terminal device is located
In proximity state.
In the present embodiment, the light intensity value that detection module 780 determines to detect is passed less than or equal to after predetermined threshold value, unlatching is close
The normal light sampling configuration of sensor, opens transmitting terminal, and reads the 3rd infrared intensity value from receiving terminal.It is and then infrared by the 3rd
Intensity level is compared with preset difference value, to determine whether terminal device is in proximity state.
It should be noted that mode of the 3rd infrared intensity value compared with preset difference value can be had to a variety of, citing
It is described as follows:
Example one:Preset difference value includes:First threshold and second threshold, and first threshold is more than second threshold.
Specifically, after the normal light sampling configuration of proximity sensor is opened, transmitting terminal is opened, and the is read from receiving terminal
Three infrared intensity values.By the 3rd infrared intensity value compared with first threshold and second threshold, if the 3rd infrared intensity value is more than
First threshold, it is determined that terminal device is in proximity state;If the 3rd infrared intensity value is less than second threshold, it is determined that terminal
Equipment is in away from state.
Example two:Preset difference value includes:Predetermined threshold value.
Specifically, after the normal light sampling configuration of proximity sensor is opened, transmitting terminal is opened, and the is read from receiving terminal
Three infrared intensity values.If the 3rd infrared intensity value is more than predetermined threshold value, it is determined that terminal device is in proximity state;If the
Three infrared intensity values are less than predetermined threshold value, it is determined that terminal device is in away from state.
It should be noted that the explanation of the foregoing state monitoring method embodiment to terminal device is also applied for the reality
The state monitoring apparatus of the terminal device of example is applied, its realization principle is similar, and details are not described herein again.
The state monitoring apparatus of the terminal device of the embodiment of the present invention, pass through the light intensity of detection terminal equipment local environment
Whether value is more than predetermined threshold value, and when light intensity value is more than predetermined threshold value, control proximity sensor enters strong Optical Sampling pattern, in light
When intensity values are less than or equal to predetermined threshold value, the normal light sampling configuration of proximity sensor is opened, is carried out under normal light sampling configuration
Open transmitting terminal during sampling, and the 3rd infrared intensity value is read from receiving terminal, according to the 3rd infrared intensity value and preset difference value, really
Determine whether terminal device is in proximity state.Thereby, it is possible to infrared light inside INTELLIGENT IDENTIFICATION and external disturbance infrared light, and keep away
Exempt from user and constantly change splashette phenomenon caused by the intensity of illumination of mobile terminal under strong light environment.
Figure 10 is the structure diagram of terminal device according to an embodiment of the invention.
As shown in Figure 10, terminal device 100 can include:Housing 1010, processor 1020, memory 1030, close biography
Sensor 1040, circuit board 1050 and power circuit 1060.Wherein,
Circuit board 1050 is placed in the interior volume that housing 1010 surrounds;Processor 1020, proximity sensor 1040 and deposit
Reservoir 1030 is arranged on circuit board 1050;Power circuit 1060 is used to power for each circuit or device of terminal device;Connect
Nearly sensor 1040 includes transmitting terminal and receiving terminal, wherein, transmitting terminal is Light-emitting diode LED, for launching infrared light, is received
End is used to receive infrared light;Memory 1030 is used to store executable program code;Processor 1020 is by reading memory
The executable program code stored in 1030 runs program corresponding with executable program code, for performing following step
Suddenly:
In pre-sampling, the transmitting terminal in proximity sensor is closed, and obtain the by receiving terminal in proximity sensor
One infrared intensity value, wherein, when sampling of the first infrared intensity value a length of default sampling durationTimes, n is just whole more than 1
Number;
In formal sampling, transmitting terminal is opened, and the second infrared intensity value is obtained by receiving terminal;
Calculate the difference of the first infrared intensity value and the second infrared intensity value;
The difference of the first infrared intensity value of repeated sampling and the second infrared intensity value n times, and obtain the second infrared intensity value
With total difference of the first infrared intensity value, wherein, the sum of sampling duration that sampling is n time, which is equal to, default samples duration;
According to total difference and preset difference value, determine whether terminal device is in proximity state.
It should be noted that the explanation of the foregoing state monitoring method embodiment to terminal device is also applied for the reality
The terminal device of example is applied, its realization principle is similar, and details are not described herein again.
The terminal device of the embodiment of the present invention, by closing the transmitting terminal in proximity sensor in pre-sampling, and passes through
Receiving terminal in proximity sensor reads the first infrared intensity value, transmitting terminal is opened in formal sampling, and read from receiving terminal
Second infrared intensity value, calculates the difference of the second infrared intensity value and the first infrared intensity value, and repeated sampling obtains n difference simultaneously
Total difference of the second infrared intensity value and the first infrared intensity value is obtained, terminal is finally determined according to total difference and preset difference value
Whether equipment is in proximity state.Thereby, it is possible to infrared ray inside INTELLIGENT IDENTIFICATION and external disturbance infrared ray, and avoid user
Splashette phenomenon caused by constantly changing the intensity of illumination of mobile terminal under strong light environment.
In the description of the present invention, it is to be understood that term " first ", " second " are only used for description purpose, and cannot
It is interpreted as indicating or implies relative importance or imply the quantity of the technical characteristic indicated by indicating.Thus, define " the
One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the present invention, " multiple "
It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area
Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature
Close and combine.
Although the embodiment of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.
Claims (7)
1. a kind of state monitoring method of terminal device, it is characterised in that comprise the following steps:
By the light intensity value of photosensitive sensors detection terminal equipment local environment, and judge whether the light intensity value is more than default threshold
Value;
If the light intensity value is more than the predetermined threshold value, control proximity sensor enters strong Optical Sampling pattern;
If the light intensity value is less than or equal to the predetermined threshold value, the proximity sensor is controlled to enter common Optical Sampling mould
Formula;
Under the normal light sampling configuration, in sampling, the transmitting terminal in proximity sensor is opened, and from proximity sensor
Receiving terminal obtain the 3rd infrared intensity value;
According to the 3rd infrared intensity value and preset difference value, determine whether terminal device is in proximity state;
Under the strong Optical Sampling pattern, in pre-sampling, the transmitting terminal in proximity sensor is closed, and by described close to biography
Receiving terminal in sensor obtains the first infrared intensity value, wherein, a length of default sampling during the sampling of first infrared intensity value
DurationTimes, n is the positive integer more than 1;
In formal sampling, the transmitting terminal is opened, and the second infrared intensity value is obtained by the receiving terminal;
Calculate the difference of first infrared intensity value and second infrared intensity value;
The difference of first infrared intensity value described in repeated sampling and second infrared intensity value n times, and it is red to obtain described second
Total difference of outer intensity level and first infrared intensity value, wherein, the sum of sampling duration that sampling is n times is equal to described preset and adopts
Sample duration;
According to total difference and preset difference value, determine whether the terminal device is in proximity state;
Wherein, the difference of the first infrared intensity value described in the repeated sampling and second infrared intensity value n times, and obtain institute
Stating total difference of the second infrared intensity value and first infrared intensity value includes:
N pre-sampling and formal sampling are repeated with same sampling duration respectively, and calculate n difference, to n difference into
Row integral and calculating, obtains total difference of the second infrared intensity value and the first infrared intensity value.
2. the method as described in claim 1, it is characterised in that the preset difference value includes:First threshold and second threshold, its
In, the first threshold is more than the second threshold;
According to second infrared intensity value and the total difference and preset difference value of first infrared intensity value, the end is determined
Whether end equipment is in proximity state, including:
If total difference is more than the first threshold, it is determined that the terminal device is in proximity state;
If total difference is less than the second threshold, it is determined that the terminal device is in away from state.
3. the method as described in claim 1, it is characterised in that the definite terminal device whether in proximity state it
Afterwards, further include:
If it is determined that the terminal device is in proximity state, then the terminal device is carried out putting out screen operation;
If it is determined that the terminal device is in away from state, then bright screen operation is carried out to the terminal device.
A kind of 4. state monitoring apparatus of terminal device, it is characterised in that including:
Detection module, for the light intensity value by photosensitive sensors detection terminal equipment local environment, and judges the light intensity value
Whether predetermined threshold value is more than;
First control module, for when the light intensity value is more than predetermined threshold value, control proximity sensor to enter strong gloss original mold
Formula;
Second control module, it is general for when the light intensity value is less than or equal to predetermined threshold value, controlling the proximity sensor to enter
Thang-kng sampling configuration;
4th acquisition module, under normal light sampling configuration, in sampling, opening the transmitting terminal in proximity sensor, and
The 3rd infrared intensity value is obtained from the receiving terminal in proximity sensor;
Second determining module, for according to the 3rd infrared intensity value and preset difference value, determining whether the terminal device is located
In proximity state;
First acquisition module, under the strong Optical Sampling pattern, in pre-sampling, closing the transmitting in proximity sensor
End, and the first infrared intensity value is obtained by the receiving terminal in the proximity sensor, wherein, first infrared intensity value
A length of default sampling duration during samplingTimes, n is the positive integer more than 1;
Second acquisition module, in formal sampling, opening the transmitting terminal, and it is infrared by receiving terminal acquisition second
Intensity level;
Computing module, for calculating the difference of first infrared intensity value and second infrared intensity value;
3rd acquisition module, for first infrared intensity value and the difference of second infrared intensity value according to n sampling
Value obtains total difference of second infrared intensity value and first infrared intensity value, wherein, the sampling duration that sampling is n times it
With equal to the default sampling duration;
First determining module, for according to total difference and preset difference value, determining the terminal device whether in close
State;
Wherein, the 3rd acquisition module is used for, and repeats n pre-sampling and formal sampling respectively with same sampling duration, and
N difference is calculated, integral and calculating is carried out to n difference, obtains total difference of the second infrared intensity value and the first infrared intensity value.
5. device as claimed in claim 4, it is characterised in that the preset difference value includes:First threshold and second threshold, its
In, the first threshold is more than the second threshold;
First determining module includes:
If total difference is more than the first threshold, it is determined that the terminal device is in proximity state;
If total difference is less than the second threshold, it is determined that the terminal device is in away from state.
6. device as claimed in claim 4, it is characterised in that further include:
First operation module, for when the definite terminal device is in proximity state, carrying out putting out screen to the terminal device
Operation;
Second operation module, for when the definite terminal device is in away from state, bright screen to be carried out to the terminal device
Operation.
A kind of 7. terminal device, it is characterised in that including:Housing, processor, memory, proximity sensor, circuit board and power supply
Circuit, wherein, the circuit board is placed in the interior volume that the housing surrounds, the processor, the proximity sensor and
The memory is arranged on the circuit board;The power circuit, for each circuit or the device power supply for terminal device;
The proximity sensor, including transmitting terminal and receiving terminal, wherein, the transmitting terminal is Light-emitting diode LED, infrared for launching
Light, the receiving terminal are used to receive infrared light;The memory is used to store executable program code;The processor passes through reading
The executable program code stored in the memory is taken to run program corresponding with the executable program code, for
Perform following steps:
By the light intensity value of photosensitive sensors detection terminal equipment local environment, and judge whether the light intensity value is more than default threshold
Value;
If the light intensity value is more than the predetermined threshold value, the proximity sensor is controlled to enter strong Optical Sampling pattern;
If the light intensity value is less than or equal to the predetermined threshold value, the proximity sensor is controlled to enter common Optical Sampling mould
Formula;
Under the normal light sampling configuration, in sampling, transmitting terminal is opened, and the 3rd infrared intensity value is obtained from receiving terminal;
According to the 3rd infrared intensity value and preset difference value, determine whether terminal device is in proximity state;
Under the strong Optical Sampling pattern, in pre-sampling, the transmitting terminal in the sensor is closed, and by described close to biography
Receiving terminal in sensor obtains the first infrared intensity value, wherein, a length of default sampling during the sampling of first infrared intensity value
DurationTimes, n is the positive integer more than 1;
In formal sampling, the transmitting terminal is opened, and the second infrared intensity value is obtained by the receiving terminal;
Calculate the difference of first infrared intensity value and second infrared intensity value;
The difference of first infrared intensity value described in repeated sampling and second infrared intensity value n times, and it is red to obtain described second
Total difference of outer intensity level and first infrared intensity value, wherein, the sum of sampling duration that sampling is n times is equal to described preset and adopts
Sample duration;
According to total difference and preset difference value, determine whether the terminal device is in proximity state;
Wherein, the difference of the first infrared intensity value described in the repeated sampling and second infrared intensity value n times, and obtain institute
Stating total difference of the second infrared intensity value and first infrared intensity value includes:
N pre-sampling and formal sampling are repeated with same sampling duration respectively, and calculate n difference, to n difference into
Row integral and calculating, obtains total difference of the second infrared intensity value and the first infrared intensity value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610892606.XA CN106357922B (en) | 2016-10-12 | 2016-10-12 | State monitoring method, device and the terminal device of terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610892606.XA CN106357922B (en) | 2016-10-12 | 2016-10-12 | State monitoring method, device and the terminal device of terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106357922A CN106357922A (en) | 2017-01-25 |
CN106357922B true CN106357922B (en) | 2018-05-01 |
Family
ID=57866686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610892606.XA Expired - Fee Related CN106357922B (en) | 2016-10-12 | 2016-10-12 | State monitoring method, device and the terminal device of terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106357922B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107257414B (en) * | 2017-07-18 | 2019-07-23 | Oppo广东移动通信有限公司 | A kind of screen state control method, device, storage medium and mobile terminal |
CN107257415B (en) * | 2017-07-18 | 2020-09-01 | Oppo广东移动通信有限公司 | Control method and device of proximity sensor, storage medium and mobile terminal |
CN107422876B (en) * | 2017-07-18 | 2019-06-28 | Oppo广东移动通信有限公司 | A kind of control method of proximity sensor, device, storage medium and mobile terminal |
CN107450817B (en) | 2017-07-31 | 2019-12-31 | Oppo广东移动通信有限公司 | Proximity detection method, proximity detection device, storage medium, and electronic apparatus |
CN107504631B (en) * | 2017-08-03 | 2020-08-04 | 广东美的制冷设备有限公司 | Dust accumulation detection method and device for filter screen, air conditioner and readable storage medium |
CN107688413B (en) * | 2017-08-07 | 2021-05-07 | Oppo广东移动通信有限公司 | Proximity sensor, proximity sensor output control method, and terminal device |
CN108874128B (en) * | 2018-06-01 | 2021-07-23 | Oppo广东移动通信有限公司 | Proximity detection method and apparatus, electronic apparatus, storage medium, and device |
CN108983211B (en) * | 2018-07-02 | 2022-08-09 | Oppo广东移动通信有限公司 | Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium |
CN112698420B (en) * | 2019-10-23 | 2023-11-03 | 广州奕至家居科技有限公司 | Object proximity sensing method and device |
Citations (2)
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 |
CN105959492A (en) * | 2016-07-06 | 2016-09-21 | 广东欧珀移动通信有限公司 | Control method and device for infrared proximity sensor and mobile terminal |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7907061B2 (en) * | 2007-11-14 | 2011-03-15 | Intersil Americas Inc. | Proximity sensors and methods for sensing proximity |
EP2701312A4 (en) * | 2011-06-24 | 2014-11-26 | Huawei Device Co Ltd | Method and device through which a terminal determines approach of an object |
CN102411425B (en) * | 2011-07-22 | 2014-07-09 | 华为终端有限公司 | Method and device for controlling function of touch screen |
KR102017688B1 (en) * | 2012-07-18 | 2019-09-04 | 삼성전자주식회사 | Proximity sensor and proximity sensing method using light quantity of reflection light |
EP3227714A4 (en) * | 2014-12-02 | 2018-07-18 | Heptagon Micro Optics Pte. Ltd. | Depth sensor module and depth sensing method |
CN105915717A (en) * | 2016-05-26 | 2016-08-31 | 广东欧珀移动通信有限公司 | Screen on-off control method, screen on-off control device and mobile terminal |
CN105939427B (en) * | 2016-07-06 | 2019-08-02 | Oppo广东移动通信有限公司 | A kind of control method of infrared proximity transducer, device and mobile terminal |
-
2016
- 2016-10-12 CN CN201610892606.XA patent/CN106357922B/en not_active Expired - Fee Related
Patent Citations (2)
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 |
CN105959492A (en) * | 2016-07-06 | 2016-09-21 | 广东欧珀移动通信有限公司 | Control method and device for infrared proximity sensor and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106357922A (en) | 2017-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357922B (en) | State monitoring method, device and the terminal device of terminal device | |
CN106506794A (en) | The state monitoring method of terminal unit, device and terminal unit | |
CN107450817B (en) | Proximity detection method, proximity detection device, storage medium, and electronic apparatus | |
US6664744B2 (en) | Automatic backlight for handheld devices | |
US10069960B2 (en) | Method, electronic device, and accessory for carrying out functions based on reflected electromagnetic radiation | |
CN106464754B (en) | A kind of method, device and equipment for calibrating detecting distance | |
CN106385511A (en) | Sensor module, panel assembly and mobile terminal | |
US8786436B2 (en) | Multiple optical axis photoelectric sensor | |
US8519321B2 (en) | Optical reading system and method of operation | |
US20110279683A1 (en) | Automatic Motion Triggered Camera with Improved Triggering | |
US8615114B2 (en) | Image reading apparatus and image reading method | |
CN105428376A (en) | Single-chip image sensor having visible light and UV-light detection function and detection method thereof | |
CN108844177A (en) | The door-plate control method and air conditioner of air conditioner | |
CN106068052A (en) | A kind of illumination control method and lighting control equipment, mobile device | |
CN113017591B (en) | Wearable device wearing state detection method, wearable device wearing state detection device, wearable device wearing state detection equipment and storage medium | |
CN112672069A (en) | Exposure method and apparatus | |
CN110609977B (en) | Bottom noise adjusting and processing method and device based on proximity sensor and computer equipment | |
CN106546328B (en) | Close to inductive pick-up system of selection and device, terminal | |
CN108362322B (en) | Sensor testing method and device and readable storage medium | |
CN106775137A (en) | Proximity test method, device and mobile terminal | |
US20100200735A1 (en) | Optical reading system | |
Luitel | Design and implementation of a smart home system | |
CN110545338B (en) | Display device and control method thereof | |
CN107809525A (en) | Mobile terminal and its control method, storage device | |
CN109946709B (en) | Image sensor, depth of field measuring method of terminal and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180501 |
|
CF01 | Termination of patent right due to non-payment of annual fee |