CN106357922A - State monitoring method and device for terminal equipment and terminal equipment - Google Patents
State monitoring method and device for terminal equipment and terminal equipment Download PDFInfo
- Publication number
- CN106357922A CN106357922A CN201610892606.XA CN201610892606A CN106357922A CN 106357922 A CN106357922 A CN 106357922A CN 201610892606 A CN201610892606 A CN 201610892606A CN 106357922 A CN106357922 A CN 106357922A
- Authority
- CN
- China
- Prior art keywords
- intensity value
- sampling
- infrared intensity
- infrared
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000005070 sampling Methods 0.000 claims abstract description 196
- 238000001514 detection method Methods 0.000 claims description 17
- 230000005611 electricity Effects 0.000 claims 2
- 238000010977 unit operation Methods 0.000 claims 2
- 238000005286 illumination Methods 0.000 abstract description 12
- 238000003756 stirring Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000000155 isotopic effect Effects 0.000 description 1
- 238000005259 measurement Methods 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 state monitoring method and device for terminal equipment and the terminal equipment. The method comprises the following steps: during pre-sampling, switching off a transmitting end in a proximity transducer, and reading a first infrared intensity value through a receiving end in the proximity transducer; during formal sampling, starting the transmitting end, and reading a second infrared intensity value from the receiving end; calculating a difference value between the second infrared intensity value and the first infrared intensity value; repeatedly sampling to obtain n difference values, and acquiring a total difference value between the second infrared intensity value and the first infrared intensity value; determining whether the terminal equipment is in a proximity state or not according to the total difference value and a preset difference value. Through the method, internal infrared rays and external interference infrared rays can be identified intelligently, and the phenomenon of splash screen caused by continuous change of the illumination intensity of the mobile terminal by a user in a strong light environment is avoided.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly, to a kind of state monitoring method of terminal unit, device and
Terminal unit.
Background technology
Generally, during taking phone, mobile phone near face when, carry out putting out screen and process to prevent erroneous trigger.This
The mode of kind is mainly realized by proximity transducer, and wherein, proximity transducer includes two parts, 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 made to reflect.Close
The receiving terminal inside chip processor of sensor include analog-digital converter it can be deduced that object near when specifically infrared light intensity
Value.When not having any object to block, the intensity level of receiving terminal is minimum;Constantly close with object, intensity level becomes larger, directly
To full scale.
However, external environment condition is extremely complex, such as sunlight comprises a large amount of infrared ray.Particularly in strong sunlight
Under, infrared ray is stronger, and now, the infrared light intensity value that the receiving terminal of proximity transducer obtains is not accurate enough, is wherein mingled with
Much outside infrared lights, and, the reception time is longer, and the amount of the outside infrared light being mingled with is more.And work as user in strong sunlight
Under when ceaselessly stirring mobile phone up and down, the infrared light intensity value that the receiving terminal of proximity transducer obtains constantly fluctuates, and causes mobile phone
Constantly put out screen bright screen, splashette phenomenon occurs.
Content of the invention
The purpose of the present invention is intended at least solve to a certain extent one of above-mentioned technical problem.
For this reason, the first of the present invention purpose is to propose a kind of state monitoring method of terminal unit, the method can
The internal infrared ray of INTELLIGENT IDENTIFICATION and external disturbance infrared ray, and avoid user constantly to change terminal unit under strong light environment
The splashette phenomenon that intensity of illumination causes.
Second object of the present invention is to propose a kind of state monitoring apparatus of terminal unit.
Third object of the present invention is to propose a kind of terminal unit.
For reaching above-mentioned purpose, the status monitoring side of a kind of terminal unit that embodiment proposes according to a first aspect of the present invention
Method, comprises the following steps:
In pre-sampling, close the transmitting terminal in proximity transducer, and obtained by the receiving terminal in described proximity transducer
Take the first infrared intensity value, wherein, a length of default sampling duration during the sampling of described first infrared intensity valueTimes, n is big
In 1 positive integer;
In officially drawn sample, open described transmitting terminal, and the second infrared intensity value is obtained by described receiving terminal;
Calculate described first infrared intensity value and the difference of described second infrared intensity value;
The difference of the first infrared intensity value described in repeated sampling and described second infrared intensity value n time, and obtain described
Two infrared intensity values and total difference of described first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to described pre-
If sampling duration;
According to described total difference and preset difference value, determine whether described terminal unit is in proximity state.
The state monitoring method of the terminal unit of the embodiment of the present invention, by closing in proximity transducer in pre-sampling
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity transducer, open transmitting terminal in officially drawn sample, and
Read the second infrared intensity value from receiving terminal, calculate 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 unit is in proximity state.Infrared with external disturbance thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared ray
Line, and avoid user constantly to change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
For reaching above-mentioned purpose, the status monitoring dress of a kind of terminal unit that embodiment proposes according to the second aspect of the invention
Put, comprising:
First acquisition module, in pre-sampling, closing the transmitting terminal in proximity transducer, 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 described first infrared intensity value
DurationTimes, n is the positive integer more than 1;
Second acquisition module, in officially drawn sample, opening described transmitting terminal, and obtains second by described receiving terminal
Infrared intensity value;
Computing module, for calculating the difference of described first infrared intensity value and described second infrared intensity value;
3rd acquisition module, for described first infrared intensity value according to n sampling and described second infrared intensity value
Difference obtain total difference of described second infrared intensity value and described first infrared intensity value, wherein, during the sampling that sampling is n time
Long sum is equal to described default sampling duration;
First determining module, for according to described total difference and preset difference value, determining whether described terminal unit is in
Proximity state.
The state monitoring apparatus of the terminal unit of the embodiment of the present invention, by closing in proximity transducer in pre-sampling
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity transducer, open transmitting terminal in officially drawn sample, and
Read the second infrared intensity value from receiving terminal, calculate 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 unit is in proximity state.Infrared with external disturbance thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared ray
Line, and avoid user constantly to change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
For reaching above-mentioned purpose, the terminal unit that embodiment proposes according to the third aspect of the invention we, comprising:
Housing, processor, memorizer, proximity transducer, circuit board and power circuit, wherein, described circuit board is placed in
The interior volume that described housing surrounds, described processor and described memorizer are arranged on described circuit board;Described power circuit,
For being each circuit of terminal unit or device is powered;Described proximity transducer, including transmitting terminal and receiving terminal, wherein, institute
Stating transmitting terminal is light emitting diode led, and for launching infrared light, described receiving terminal is used for receiving infrared light;Described memorizer is used
In storage executable program code;Described processor is run by reading the executable program code of storage in described memorizer
Program corresponding with described executable program code, for execution following steps:
In pre-sampling, close the transmitting terminal in proximity transducer, and obtained by the receiving terminal in described proximity transducer
Take the first infrared intensity value, wherein, a length of default sampling duration during the sampling of described first infrared intensity valueTimes, n is big
In 1 positive integer;
In officially drawn sample, open described transmitting terminal, and the second infrared intensity value is obtained by described receiving terminal;
Calculate described first infrared intensity value and the difference of described second infrared intensity value;
The difference of the first infrared intensity value described in repeated sampling and described second infrared intensity value n time, and obtain described
Two infrared intensity values and total difference of described first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to described pre-
If sampling duration;
According to described total difference and preset difference value, determine whether described terminal unit is in proximity state.
The terminal unit of the embodiment of the present invention, by closing the transmitting terminal in proximity transducer in pre-sampling, and passes through
Receiving terminal in proximity transducer reads the first infrared intensity value, opens transmitting terminal in officially drawn sample, and reads 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
Obtain total difference of the second infrared intensity value and the first infrared intensity value, determine terminal finally according to total difference and preset difference value
Whether equipment is in proximity state.Thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared ray and external disturbance infrared ray, and avoid user
Constantly change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
The aspect that the present invention adds and advantage will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description
The above-mentioned and/or additional aspect of the present invention and advantage will become from reference to the description to embodiment for the accompanying drawings below
Substantially and easy to understand, wherein:
Fig. 1 is the flow chart of the state monitoring method of terminal unit according to an embodiment of the invention;
Fig. 2 is the structural representation of proximity transducer 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 unit in accordance with another embodiment of the present invention;
Fig. 5 is the flow chart of the state monitoring method of the terminal unit according to another embodiment of the present invention;
Fig. 6 is the flow chart of the state monitoring method of the terminal unit according to further embodiment of the present invention;
Fig. 7 is the structural representation of the state monitoring apparatus of terminal unit according to an embodiment of the invention;
Fig. 8 is the structural representation of the state monitoring apparatus of terminal unit in accordance with another embodiment of the present invention;
Fig. 9 is the structural representation of the state monitoring apparatus of the terminal unit according to another embodiment of the present invention;
Figure 10 is the structural representation of terminal unit according to an embodiment of the invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finish
The element that same or similar label represents same or similar element or has same or like function.Below with reference to attached
The embodiment of figure description is exemplary it is intended to be used for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings state monitoring method, device and the terminal unit of the terminal unit of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the state monitoring method of terminal unit according to an embodiment of the invention.
As shown in figure 1, the state monitoring method of the terminal unit of the embodiment of the present invention comprises the following steps:
S11: in pre-sampling, close the transmitting terminal in proximity transducer, and by the reception in described proximity transducer
End obtains the first infrared intensity value, wherein, a length of default sampling duration during the sampling of described first infrared intensity valueTimes, n
It is the positive integer more than 1.
The state monitoring method of the terminal unit of the embodiment of the present application is configured in the terminal unit of proximity transducer
As a example be specifically described.
Fig. 2 is the structural representation of proximity transducer according to an embodiment of the invention.
As shown in Fig. 2 proximity transducer 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
Infrared light is made to reflect.The receiving terminal inside chip processor of proximity transducer includes analog-digital converter it can be deduced that object
Specifically infrared light intensity value when close.When not having any object to block, the intensity level of receiving terminal is minimum;Continuous with object
Close, intensity level becomes larger, till 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 8 corresponding be 256,10 right
Answer be 1024,12 corresponding be 4096 etc..
For example, receiving terminal inside chip is set to the device of 10, when normally no object blocks, intensity level
For 50;When device is all pressed close to by face, infrared ray all reflexes to receiving terminal, and intensity level reaches full scale 1024.
In order to meet user's request, terminal unit typically can be set from face when 3-5cm, start to put out screen.In the same manner,
One terminal unit also can be set away from threshold value during face, when meeting condition, start bright screen.
So that user's using terminal equipment takes phone as a example.Generally, during taking phone, terminal unit is near face
During portion, carry out putting out screen process to prevent false triggering;Terminal unit away from face unobstructed when, carry out bright screen process.However, in example
Under the complex situations such as strong sunlight, especially when user ceaselessly stirs terminal unit under strong sunlight up and down, connect
It is mingled with much outside Infrared Data in the Infrared Data that the receiving terminal of nearly sensor obtains, that is, from sunlight
Infrared Data, and the infrared light intensity value obtaining constantly fluctuates, and causes terminal unit constantly to put out screen bright screen, splashette existing
As.
Therefore, the embodiment of the present invention proposes a kind of state monitoring method of terminal unit, can INTELLIGENT IDENTIFICATION internal infrared
Light and external disturbance infrared light, and avoid user constantly to change the sudden strain of a muscle that the intensity of illumination of terminal unit causes under strong light environment
Screen phenomenon.
Carry out pre-sampling first.Pre-sampling is to carry out under conditions of the transmitting terminal in closing proximity transducer, and adopts
A length of default sampling duration during sampleTimes, n is the positive integer more than 1.By pre-sampling, the receiving terminal in proximity transducer obtains
Take the first infrared intensity value.
It should be appreciated that closing the transmitting terminal in proximity transducer during due to pre-sampling, therefore, in proximity transducer
The first infrared intensity value of obtaining of receiving terminal be the intensity level of outside infrared light.
In the present embodiment, when carrying out pre-sampling, sampling duration is set to default sampling durationTimes, wherein, n is
Positive integer more than 1, can reduce the variable quantity of intensity level.
S12: in officially drawn sample, open transmitting terminal, and the second infrared intensity value is obtained by receiving terminal.
In the present embodiment, after pre-sampling terminates, that is, start officially drawn sample.Officially drawn sample is in the condition opening transmitting terminal
Under carry out.After officially drawn sample, the receiving terminal in proximity transducer 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. sampling duration during officially drawn sample is equal with sampling duration during pre-sampling.
It should be appreciated that opening the transmitting terminal in proximity transducer, therefore, proximity transducer during due to officially drawn sample
In the second infrared intensity value of obtaining of receiving terminal in, be both mingled with the intensity level of outside infrared light, 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 being first shut off proximity transducer carries out pre-sampling, now the reception of proximity transducer
The first infrared intensity value that end obtains is only the intensity level of outside infrared light.After pre-sampling terminates, open transmitting terminal and carry out formally
Sampling, comprises outside infrared light and the intensity level of internal infrared light in the second infrared intensity value that now receiving terminal obtains.Thus,
Both differences are the intensity level of internal infrared light.
The difference of s14: repeated sampling first infrared intensity value and the second infrared intensity value n time, and it is infrared strong to obtain second
Angle value and total difference of the first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to default sampling duration.
As described in step s13, the second infrared intensity value is the strong of internal infrared light with the difference of the first infrared intensity value
Angle value.When user ceaselessly stirs up and down or tilts terminal unit under strong sunlight, the environment residing for terminal unit is strong
Ceaselessly switch between sunlight and no strong sunlight.If sampled with default sampling duration, under strong sunlight, second
Infrared intensity value is big with the difference comparsion of the first infrared intensity value;And under no strong sunlight, the second infrared intensity value and first
The difference of infrared intensity value is less.Thus, constantly switch with the environment residing for terminal unit, the second infrared intensity value and first
The size of the difference of infrared intensity value ceaselessly fluctuates.Thus, terminal unit ceaselessly puts out screen bright screen, splashette phenomenon.
Therefore, the state monitoring method of the terminal unit that the embodiment of the present invention proposes, infrared by repeated sampling n time second
Intensity level and the difference of the first infrared intensity value, and obtain the second infrared intensity value and the first infrared intensity value by calculating
Total difference, and then reduce the fluctuating margin of difference, it is to avoid splashette phenomenon in terminal unit.Specifically, n difference can be entered
Row integral and calculating, to obtain total difference of the second infrared intensity value and the first infrared intensity value.Before sampling, adopted in advance first
The sampling duration of the sampling duration of sample and officially drawn sample is disposed as default sampling durationTimes, sample n time respectively and calculate n
Secondary difference, wherein, n is the positive integer more than 1.And then the n difference obtaining is integrated calculating, obtain the second infrared intensity
Value and total difference of the first infrared intensity value.
It should be noted that carrying out to pre-sampling and officially drawn sample repeating the sampling duration sum of n sampling equal to default
Sampling 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 when presetting sampling.In figure, shadow region 31 is close to sensing during pre-sampling
The first infrared intensity value that the receiving terminal of device obtains.Because pre-sampling is to enter under conditions of the transmitting terminal closing proximity transducer
Row, therefore, the first infrared intensity value is the intensity level of outside infrared light.Shadow region 32 and shadow region 33 sum represent
The second infrared intensity value that during officially drawn sample, receiving terminal obtains.The transmitting terminal of proximity transducer is opened during due to officially drawn sample,
Therefore, both included the intensity level of internal infrared light in the second infrared intensity value that receiving terminal obtains, be also mingled with outside infrared
The intensity level of light.In figure, shadow region 32 represents the intensity level of outside infrared light;Shadow region 33 represents the strong of internal infrared light
Angle value.When user ceaselessly stirs or tilts mobile phone under strong sunlight, the intensity of illumination suffered by terminal unit also constantly becomes
Change.Thus, the intensity level of the outside infrared light being mingled with the first infrared intensity value and the second infrared intensity value may difference larger.
Represent the shadow region 31 of outside infrared light intensity value and shadow region 32 as can be seen that obtaining during pre-sampling from Fig. 3 (a)
The intensity level difference of the outside infrared light obtaining when the intensity level of outside infrared light and officially drawn sample very big that is to say, that second
It is mingled with the intensity level of more outside infrared light in the difference of infrared intensity value and 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 outside infrared light.If user ceaselessly stirs terminal unit and makes its residing environment
Change, the intensity level of the outside infrared light being mingled with difference also changes therewith, data fluctuations, and then causes terminal unit not
Put out screen bright screen disconnectedly, splashette phenomenon occurs.
Therefore, the state monitoring method of the terminal unit that the embodiment of the present invention proposes, by reducing sampling duration, to repetition
The multiple difference that sampling obtains is integrated being calculated total difference to solve the problems, such as the splashette of terminal unit.
It is assumed that the sampling duration of pre-sampling and officially drawn sample is set to default sampling duration as shown in Fig. 3 (b)
Times, that is, a length of 1 second when sampling.In figure, shadow region 34 be proximity transducer during pre-sampling receiving terminal obtain first infrared
Intensity level, the first infrared intensity value is the intensity level of the outside infrared light obtaining during pre-sampling;Shadow region 35 and shadow region
Domain 36 sum represents the second infrared intensity value that during officially drawn sample, receiving terminal obtains, and wherein, shadow region 35 represents officially drawn sample
When the intensity level of outside infrared light that obtains, shadow region 36 represents the intensity level of internal infrared light.It can be seen that phase
Compared with the sampling being carried out with default sampling duration, the intensity of the outside infrared light obtaining after being sampled with 1 second for sampling duration
Value is a large amount of to be reduced, and then, the intensity of the outside infrared light being mingled with the difference of the second infrared intensity value and the first infrared intensity value
Value significantly reduces.Thus, even if user ceaselessly stirs terminal unit and makes its residing environmental change, the outside being mingled with difference
The intensity level of infrared light changes therewith, but amplitude of variation is less, is not in larger data fluctuations.
The method of sampling shown in Fig. 3 (b) be withTimes default sampling duration as pre-sampling and officially drawn sample sampling when
Long.On this basis, with same sampling duration repeated sampling 4 times, that is, the sampling duration sum of sampling 4 times is equal to default sampling
Duration, and 4 differences of gained after 4 samplings are integrated calculating, you can obtain the second infrared intensity value and first infrared
Total difference of intensity level.Thus, it is possible to reduce the fluctuating margin of intensity level, obtain accurate second infrared intensity value and first red
The difference of outer intensity level, 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 to the calculation of total difference in the present invention.
S15: according to total difference and preset difference value, determine whether terminal unit is in proximity state.
Wherein, preset difference value includes: first threshold and Second Threshold, and first threshold is more than Second Threshold.
In the present embodiment, after obtaining the difference of n the second infrared intensity value and the first infrared intensity value, poor to n time
Value carries out being calculated total difference of the second infrared intensity value and the first infrared intensity value, by total difference of gained and preset difference value
Relatively, you can determine whether terminal unit is in proximity state.
Specifically, the difference of n the second infrared intensity value that sampling is obtained and the first infrared intensity value 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 unit
In proximity state;If total difference is less than Second Threshold it is determined that terminal unit is in away from state.
The state monitoring method of the terminal unit of the embodiment of the present invention, by closing in proximity transducer in pre-sampling
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity transducer, open transmitting terminal in officially drawn sample, and
Read the second infrared intensity value from receiving terminal, calculate 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 unit is in proximity state.Infrared with external disturbance thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared light
Light, and avoid user constantly to change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
Fig. 4 is the flow chart of the state monitoring method of terminal unit in accordance with another embodiment of the present invention.
As shown in figure 4, being based on above-described embodiment, after step s15, also include:
S41: if it is determined that terminal unit is in proximity state, then terminal unit is carried out putting out screen operation.
S42: if it is determined that terminal unit is in away from state, then bright screen operation is carried out to terminal unit.
Specifically, the difference of n the second infrared intensity value that sampling is obtained and the first infrared intensity value 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 unit
In proximity state, terminal unit is carried out put out screen operation;If total difference is less than Second Threshold it is determined that terminal unit is in far
From state, bright screen operation is carried out to terminal unit.
The state monitoring method of the terminal unit of the embodiment of the present invention, when determining that terminal unit is in proximity state, right
Terminal unit carries out putting out screen operation, when determining that terminal unit is in away from state, carries out bright screen operation to terminal unit.Enter one
Step avoids terminal unit under strong sunlight and splashette phenomenon, improves Consumer's Experience.
Fig. 5 is the flow chart of the state monitoring method of the terminal unit according to another embodiment of the present invention.
As shown in figure 5, being based on above-described embodiment, before step s11, the state monitoring method of this terminal unit is acceptable
Including:
Whether s51: the light intensity value of detection terminal equipment local environment is more than predetermined threshold value.
The light intensity value of detection terminal equipment local environment in the present embodiment, before pre-sampling, can also be passed through, and judge
Whether light intensity value is more than predetermined threshold value, to determine the size of outside infrared light interference, thus further determining that proximity transducer
Sampling configuration.
Wherein, the mode of the light intensity value of detection terminal equipment local environment has many kinds, for example, pass through photosensitive sensors straight
Connect detection and obtain light intensity value.
It should be noted that predetermined threshold value can carry out selecting setting according to actual needs, this is not specifically limited.
S52: if light intensity value is more than predetermined threshold value, control proximity transducer to enter high light sampling configuration.
In the present embodiment, when the light intensity value detecting is more than predetermined threshold value, represent that outside infrared light interference is very big, now
Proximity transducer is controlled to enter high light sampling configuration, and then the internal infrared light of INTELLIGENT IDENTIFICATION and outside infrared light.
For example, predetermined threshold value is 6000lux, and obtaining light intensity value by photosensitive sensors direct detection is 8000lux,
8000lux is more than 6000lux it may be determined that terminal unit is subject to the infrared light interference ratio of local environment larger, Open from This Side high light
Sampling configuration.
It should be noted that under high light sampling configuration, before carrying out officially drawn sample, first having 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 transducer to enter normal light sampling configuration.
In the present embodiment, when the light intensity value detecting is less than or equal to predetermined threshold value, represent that outside infrared light interference is less
Or no outside infrared light interference, now control proximity transducer to enter normal light sampling configuration.
For example, predetermined threshold value is 6000lux, and obtaining light intensity value by photosensitive sensors direct measurement is 5000lux,
5000lux is less than 6000lux it may be determined that terminal unit is subject to the infrared light interference of local environment smaller, is negligible,
Normal light sampling configuration that Open from This Side.
Alternatively, referring to Fig. 6, Fig. 6 is the state monitoring method of the terminal unit according to further embodiment of the present invention
Flow chart.
As shown in fig. 6, after step s53, can also include:
S61: in sampling, open transmitting terminal, and obtain the 3rd infrared intensity value from receiving terminal.
In the present embodiment, due to normal light according to terminal under environment equipment be subject to local environment infrared light interference smaller or
It is not have, is negligible, therefore, it can directly to open transmitting terminal and sampled, 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 unit 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
Comparison is it may be determined that whether terminal unit is in proximity state.
Specifically, after the normal light sampling configuration opening proximity transducer, open transmitting terminal, and read the from receiving terminal
Three infrared intensity values.And then, the 3rd infrared intensity value is compared with preset difference value, is connect with determining whether terminal unit is in
Nearly state.
It should be noted that the mode being compared the 3rd infrared intensity value and preset difference value can have multiple, 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 opening proximity transducer, open transmitting terminal, and read the from receiving terminal
Three infrared intensity values.3rd infrared intensity value is compared with first threshold and Second Threshold, if the 3rd infrared intensity value is more than
First threshold is it is determined that terminal unit 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 opening proximity transducer, open transmitting terminal, and read the from receiving terminal
Three infrared intensity values.If the 3rd infrared intensity value is more than predetermined threshold value it is determined that terminal unit is in proximity state;If the
Three infrared intensity values are less than predetermined threshold value it is determined that terminal unit is in away from state.
The state monitoring method of the terminal unit of the embodiment of the present invention, by the light intensity value of detection terminal equipment local environment
Whether it is more than predetermined threshold value, when light intensity value is more than predetermined threshold value, control proximity transducer to enter high light sampling configuration, in light intensity
When value is less than or equal to predetermined threshold value, open the normal light sampling configuration of proximity transducer, adopted under normal light sampling configuration
Open transmitting terminal during sample, and read the 3rd infrared intensity value from receiving terminal, according to the 3rd infrared intensity value and preset difference value, determine
Whether terminal unit is in proximity state.Thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared light and external disturbance infrared light, and avoid
User constantly changes the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
In order to realize above-described embodiment, the application also proposed a kind of state monitoring apparatus of terminal unit, and Fig. 7 is basis
The structural representation of the state monitoring apparatus of the terminal unit of one embodiment of the invention.
As shown in fig. 7, the state monitoring apparatus of this terminal unit include: the 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, in pre-sampling, closing the transmitting terminal in proximity transducer, and by close to biography
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 high light sampling configuration, before carrying out officially drawn sample, first have to carry out pre-sampling.Pre-sampling is
A length of default sampling duration when carrying out under conditions of the transmitting terminal in closing proximity transducer, and samplingTimes, n is big
In 1 positive integer.By pre-sampling, the receiving terminal in proximity transducer obtains the first infrared intensity value.
Second acquisition module 720, in officially drawn sample, opening transmitting terminal, and it is infrared to obtain second by receiving terminal
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 officially drawn sample.Officially drawn sample is in the condition opening transmitting terminal
Under carry out, and duration of sampling is with sampling duration during pre-sampling equal.After officially drawn sample, the receiving terminal in proximity transducer 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 being first shut off proximity transducer carries out pre-sampling, now the reception of proximity transducer
The first infrared intensity value that end obtains is only the intensity level of outside infrared light.After pre-sampling terminates, open transmitting terminal and carry out formally
Sampling, comprises outside infrared light and the intensity level of internal infrared light in the second infrared intensity value that now receiving terminal obtains.Thus,
Both differences are the intensity level of internal infrared light.
3rd acquisition module 740, for the difference of the first infrared intensity value according to n sampling and the second infrared intensity value
Obtain total difference of the second infrared intensity value and the first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to be preset
Sampling duration.
In the present embodiment, the sampling duration of the sampling duration of pre-sampling and officially drawn sample is disposed as default sampling duration
'sTimes, sample n time respectively and calculate n difference, wherein, n is the positive integer more than 1.The n difference obtaining 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: n difference is integrated calculating, to obtain the second infrared intensity value
Total difference with the first infrared intensity value.
It should be noted that carrying out to pre-sampling and officially drawn sample repeating the sampling duration sum of n sampling equal to default
Sampling duration.
First determining module 750, for according to total difference and preset difference value, determining whether terminal unit 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 unit is in
Proximity state;If total difference is less than Second Threshold it is determined that terminal unit is in away from state.
It should be noted that the explanation of the aforementioned state monitoring method embodiment to terminal unit is also applied for this reality
Apply the state monitoring apparatus of the terminal unit of example, it is realized principle and is similar to, and here is omitted.
The state monitoring apparatus of the terminal unit of the embodiment of the present invention, by closing in proximity transducer in pre-sampling
Transmitting terminal, and the first infrared intensity value is read by the receiving terminal in proximity transducer, open transmitting terminal in officially drawn sample, and
Read the second infrared intensity value from receiving terminal, calculate 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 unit is in proximity state.Infrared with external disturbance thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared ray
Line, and avoid user constantly to change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
Fig. 8 is the structural representation of the state monitoring apparatus of terminal unit in accordance with another embodiment of the present invention.
As shown in figure 8, on the basis of the structural representation of state monitoring apparatus as shown in Figure 7, this terminal unit
State monitoring apparatus also include: the first operation module 760 and the second operation module 770.Wherein,
First operation module 760, for when determining that terminal unit is in proximity state, carrying out to terminal unit putting out screen behaviour
Make.
Second operation module 770, for when determining that terminal unit is in away from state, carrying out bright screen behaviour to terminal unit
Make.
Specifically, the difference of n the second infrared intensity value that sampling is obtained and the first infrared intensity value 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 unit
In proximity state, terminal unit is carried out put out screen operation;If total difference is less than Second Threshold it is determined that terminal unit is in far
From state, bright screen operation is carried out to terminal unit.
It should be noted that the explanation of the aforementioned state monitoring method embodiment to terminal unit is also applied for this reality
Apply the state monitoring apparatus of the terminal unit of example, it is realized principle and is similar to, and here is omitted.
The state monitoring apparatus of the terminal unit of the embodiment of the present invention, when determining that terminal unit is in proximity state, right
Terminal unit carries out putting out screen operation, when determining that terminal unit is in away from state, carries out bright screen operation to terminal unit.Enter one
Step avoids terminal unit under strong sunlight and splashette phenomenon, improves Consumer's Experience.
Alternatively, in some embodiments, referring to Fig. 9, Fig. 9 is the shape of the terminal unit according to another embodiment of the present invention
The structural representation of state monitoring device.
As shown in figure 9, the state monitoring apparatus of this terminal unit 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,
Detection module 780, whether the light intensity value for detection terminal equipment local environment is more than predetermined threshold value.
The light intensity value of detection terminal equipment local environment in the present embodiment, before pre-sampling, can also be passed through, and judge
Whether light intensity value is more than predetermined threshold value, to determine the size of outside infrared light interference, thus further determining that proximity transducer
Sampling configuration.
Wherein, the mode of the light intensity value of detection terminal equipment local environment has many kinds, for example, pass through photosensitive sensors straight
Connect detection and obtain light intensity value.
It should be noted that predetermined threshold value can carry out selecting 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, controlling proximity transducer to enter high light sampling
Pattern.
In the present embodiment, when the light intensity value detecting is more than predetermined threshold value, represent that outside infrared light interference is very big, now
Proximity transducer is controlled to enter high light sampling configuration, and then the internal infrared light of INTELLIGENT IDENTIFICATION and outside infrared light.
Second control module 7100, for when light intensity value is less than or equal to predetermined threshold value, controlling proximity transducer to enter general
Thang-kng sampling configuration.
In the present embodiment, when the light intensity value detecting is less than or equal to predetermined threshold value, represent that outside infrared light interference is less
Or no outside infrared light interference, now control proximity transducer to enter normal light sampling configuration.
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 be subject to local environment infrared light interference smaller or
It is not have, is negligible, therefore, it can directly to open transmitting terminal and sampled, 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 unit is located
In proximity state.
In the present embodiment, after detection module 780 determines that the light intensity value detecting is less than or equal to predetermined threshold value, open close to biography
The normal light sampling configuration of sensor, opens transmitting terminal, and reads the 3rd infrared intensity value from receiving terminal.And then, infrared by the 3rd
Intensity level is compared with preset difference value, to determine whether terminal unit is in proximity state.
It should be noted that the mode being compared the 3rd infrared intensity value and preset difference value can have multiple, 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 opening proximity transducer, open transmitting terminal, and read the from receiving terminal
Three infrared intensity values.3rd infrared intensity value is compared with first threshold and Second Threshold, if the 3rd infrared intensity value is more than
First threshold is it is determined that terminal unit 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 opening proximity transducer, open transmitting terminal, and read the from receiving terminal
Three infrared intensity values.If the 3rd infrared intensity value is more than predetermined threshold value it is determined that terminal unit is in proximity state;If the
Three infrared intensity values are less than predetermined threshold value it is determined that terminal unit is in away from state.
It should be noted that the explanation of the aforementioned state monitoring method embodiment to terminal unit is also applied for this reality
Apply the state monitoring apparatus of the terminal unit of example, it is realized principle and is similar to, and here is omitted.
The state monitoring apparatus of the terminal unit of the embodiment of the present invention, by the light intensity of detection terminal equipment local environment
Whether value is more than predetermined threshold value, when light intensity value is more than predetermined threshold value, controls proximity transducer to enter high light sampling configuration, in light
When intensity values are less than or equal to predetermined threshold value, open the normal light sampling configuration of proximity transducer, carry out under normal light sampling configuration
Open transmitting terminal during sampling, and read the 3rd infrared intensity value from receiving terminal, according to the 3rd infrared intensity value and preset difference value, really
Determine whether terminal unit is in proximity state.Thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared light and external disturbance infrared light, and keep away
Exempt from user and constantly change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
Figure 10 is the structural representation of terminal unit according to an embodiment of the invention.
As shown in Figure 10, terminal unit 100 may include that housing 1010, processor 1020, memorizer 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 transducer 1040 and deposit
Reservoir 1030 is arranged on circuit board 1050;It is each circuit of terminal unit that power circuit 1060 is used for or device is powered;Connect
Nearly sensor 1040 includes transmitting terminal and receiving terminal, and wherein, transmitting terminal is light emitting diode led, for launching infrared light, receives
Hold for receiving infrared light;Memorizer 1030 is used for storing executable program code;Processor 1020 passes through to read memorizer
In 1030, the executable program code of storage, to run program corresponding with executable program code, walks for execution is following
Rapid:
In pre-sampling, close the transmitting terminal in proximity transducer, and obtain the by the receiving terminal in proximity transducer
One infrared intensity value, wherein, a length of default sampling duration during the sampling of the first infrared intensity valueTimes, n is just whole more than 1
Number;
In officially drawn sample, open transmitting terminal, and the second infrared intensity value is obtained by receiving terminal;
Calculate the first infrared intensity value and the difference of the second infrared intensity value;
The difference of repeated sampling first infrared intensity value and the second infrared intensity value n time, and obtain the second infrared intensity value
With total difference of the first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to default sampling duration;
According to total difference and preset difference value, determine whether terminal unit is in proximity state.
It should be noted that the explanation of the aforementioned state monitoring method embodiment to terminal unit is also applied for this reality
Apply the terminal unit of example, it is realized principle and is similar to, and here is omitted.
The terminal unit of the embodiment of the present invention, by closing the transmitting terminal in proximity transducer in pre-sampling, and passes through
Receiving terminal in proximity transducer reads the first infrared intensity value, opens transmitting terminal in officially drawn sample, and reads 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
Obtain total difference of the second infrared intensity value and the first infrared intensity value, determine terminal finally according to total difference and preset difference value
Whether equipment is in proximity state.Thereby, it is possible to INTELLIGENT IDENTIFICATION inside infrared ray and external disturbance infrared ray, and avoid user
Constantly change the splashette phenomenon that the intensity of illumination of mobile terminal causes under strong light environment.
In describing the invention it is to be understood that term " first ", " second " are only used for describing purpose, and can not
It is interpreted as indicating or imply relative importance or the implicit quantity indicating indicated technical characteristic.Thus, define " the
One ", the feature of " second " can be expressed or implicitly include at least one this feature.In describing the invention, " multiple "
It is meant that at least two, such as two, three etc., unless otherwise expressly limited specifically.
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy describing with reference to this embodiment or example
Point is contained at least one embodiment or the example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be in office
Combine in an appropriate manner in one or more embodiments or example.Additionally, in the case of not conflicting, the skill of this area
The feature of the different embodiments described in this specification or example and different embodiment or example can be tied by art personnel
Close and combine.
Although embodiments of the invention have been shown and described above it is to be understood that above-described embodiment is example
Property it is impossible to be interpreted as limitation of the present invention, 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 (13)
1. a kind of state monitoring method of terminal unit is it is characterised in that comprise the following steps:
In pre-sampling, close the transmitting terminal in proximity transducer, and obtain the by the receiving terminal in described proximity transducer
One infrared intensity value, wherein, a length of default sampling duration during the sampling of described first infrared intensity valueTimes, n is more than 1
Positive integer;
In officially drawn sample, open described transmitting terminal, and the second infrared intensity value is obtained by described receiving terminal;
Calculate described first infrared intensity value and the difference of described second infrared intensity value;
The difference of the first infrared intensity value described in repeated sampling and described second infrared intensity value n time, and it is red to obtain described second
Outer intensity level and total difference of described first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to described presetting and adopts
Sample duration;
According to described total difference and preset difference value, determine whether described terminal unit is in proximity state.
2. the method for claim 1 is it is characterised in that described preset difference value includes: first threshold and Second Threshold, its
In, described first threshold is more than described Second Threshold;
Total difference according to described second infrared intensity value and described first infrared intensity value and preset difference value, determine described end
Whether end equipment is in proximity state, comprising:
If described total difference is more than described first threshold it is determined that described terminal unit is in proximity state;
If described total difference is less than described Second Threshold it is determined that described terminal unit is in away from state.
3. the method for claim 1 it is characterised in that determine described terminal unit whether be in proximity state it
Afterwards, also include:
If it is determined that described terminal unit is in proximity state, then described terminal unit is carried out putting out screen operation;
If it is determined that described terminal unit is in away from state, then bright screen operation is carried out to described terminal unit.
4. described method as arbitrary in claim 1-3 is it is characterised in that also include:
Whether the light intensity value of detection terminal equipment local environment is more than predetermined threshold value;
If described light intensity value is more than predetermined threshold value, described proximity transducer is controlled to enter high light sampling configuration;
If described light intensity value is less than or equal to predetermined threshold value, described proximity transducer is controlled to enter normal light sampling configuration.
5. method as claimed in claim 4 is it is characterised in that controlling described proximity transducer to enter normal light sampling configuration
Afterwards, also include:
In sampling, open described transmitting terminal, and obtain the 3rd infrared intensity value from described receiving terminal;
According to described 3rd infrared intensity value and preset difference value, determine whether described terminal unit is in proximity state.
6. the method for claim 1 is it is characterised in that obtain described second infrared intensity value and described first infrared strong
Total difference of angle value, comprising:
Described n difference is integrated calculate, to obtain described second infrared intensity value and described first infrared intensity value
Total difference.
7. a kind of state monitoring apparatus of terminal unit are it is characterised in that include:
First acquisition module, in pre-sampling, closing the transmitting terminal in proximity transducer, and passes through described proximity transducer
In receiving terminal obtain the first infrared intensity value, wherein, a length of default sampling duration during the sampling of described first infrared intensity value
'sTimes, n is the positive integer more than 1;
Second acquisition module, in officially drawn sample, opening described transmitting terminal, and it is infrared to obtain second by described receiving terminal
Intensity level;
Computing module, for calculating the difference of described first infrared intensity value and described second infrared intensity value;
3rd acquisition module, for the difference of described first infrared intensity value according to n sampling and described second infrared intensity value
Value obtains total difference of described second infrared intensity value and described first infrared intensity value, wherein, the sampling duration that sampling is n time it
With equal to described default sampling duration;
First determining module, for according to described total difference and preset difference value, determining whether described terminal unit is in close
State.
8. device as claimed in claim 7 is it is characterised in that described preset difference value includes: first threshold and Second Threshold, its
In, described first threshold is more than described Second Threshold;
Described first determining module includes:
If described total difference is more than described first threshold it is determined that described terminal unit is in proximity state;
If described total difference is less than described Second Threshold it is determined that described terminal unit is in away from state.
9. device as claimed in claim 7 is it is characterised in that also include:
First operation module, for when determining that described terminal unit is in proximity state, carrying out putting out screen to described terminal unit
Operation;
Second operation module, for when determining that described terminal unit is in away from state, carrying out bright screen to described terminal unit
Operation.
10. described device as arbitrary in claim 7-9 is it is characterised in that also include:
Detection module, whether the light intensity value for detection terminal equipment local environment is more than predetermined threshold value;
First control module, adopts for when described light intensity value is more than predetermined threshold value, controlling described proximity transducer to enter high light
Original mold formula;
Second control module, for when described light intensity value is less than or equal to predetermined threshold value, controlling described proximity transducer to enter general
Thang-kng sampling configuration.
11. devices as claimed in claim 10 are it is characterised in that also include:
4th acquisition module, in sampling, opening described transmitting terminal, and obtains the 3rd infrared intensity from described receiving terminal
Value;
Second determining module, for according to described 3rd infrared intensity value and preset difference value, determining whether described terminal unit is located
In proximity state.
12. devices as claimed in claim 7, it is characterised in that described 3rd acquisition module, are used for:
Described n difference is integrated calculate, to obtain described second infrared intensity value and described first infrared intensity value
Total difference.
A kind of 13. terminal units are it is characterised in that include: housing, processor, memorizer, proximity transducer, circuit board and electricity
Source circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, described processor, described proximity transducer
It is arranged on described circuit board with described memorizer;Described power circuit, for being each circuit or the device confession of terminal unit
Electricity;Described proximity transducer, including transmitting terminal and receiving terminal, wherein, described transmitting terminal is light emitting diode led, for launching
Infrared light, described receiving terminal is used for receiving infrared light;Described memorizer is used for storing executable program code;Described processor leads to
Cross and read the executable program code storing in described memorizer to run program corresponding with described executable program code, with
For executing following steps:
In pre-sampling, close the transmitting terminal in described sensor, and obtain the by the receiving terminal in described proximity transducer
One infrared intensity value, wherein, a length of default sampling duration during the sampling of described first infrared intensity valueTimes, n is more than 1
Positive integer;
In officially drawn sample, open described transmitting terminal, and the second infrared intensity value is obtained by described receiving terminal;
Calculate described first infrared intensity value and the difference of described second infrared intensity value;
The difference of the first infrared intensity value described in repeated sampling and described second infrared intensity value n time, and it is red to obtain described second
Outer intensity level and total difference of described first infrared intensity value, wherein, the sampling duration sum that sampling is n time is equal to described presetting and adopts
Sample duration;
According to described total difference and preset difference value, determine whether described terminal unit is in proximity state.
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 true CN106357922A (en) | 2017-01-25 |
CN106357922B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107257415A (en) * | 2017-07-18 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of control method of proximity transducer, device, storage medium and mobile terminal |
CN107257414A (en) * | 2017-07-18 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of screen state control method, device, storage medium and mobile terminal |
CN107422876A (en) * | 2017-07-18 | 2017-12-01 | 广东欧珀移动通信有限公司 | A kind of control method of proximity transducer, device, storage medium and mobile terminal |
CN107450817A (en) * | 2017-07-31 | 2017-12-08 | 广东欧珀移动通信有限公司 | Proximity test method, apparatus, storage medium and electronic equipment |
CN107504631A (en) * | 2017-08-03 | 2017-12-22 | 广东美的制冷设备有限公司 | Laying dust detection method, device, air conditioner and the readable storage medium storing program for executing of screen pack |
CN107688413A (en) * | 2017-08-07 | 2018-02-13 | 广东欧珀移动通信有限公司 | Proximity transducer, proximity transducer output control method and terminal device |
CN108874128A (en) * | 2018-06-01 | 2018-11-23 | Oppo广东移动通信有限公司 | Proximity test method and device, electronic device, storage medium and equipment |
CN108983211A (en) * | 2018-07-02 | 2018-12-11 | Oppo广东移动通信有限公司 | Proximity sensor and its control method, electronic device and computer readable storage medium |
CN112698420A (en) * | 2019-10-23 | 2021-04-23 | 广州奕至家居科技有限公司 | Object approach sensing method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101855512A (en) * | 2007-11-14 | 2010-10-06 | 英特赛尔美国股份有限公司 | Proximity sensors and methods for sensing proximity |
CN102265252A (en) * | 2011-06-24 | 2011-11-30 | 华为终端有限公司 | A method and a device for adjusting a sensing threshold value of an infrared proximity sensor |
CN102301684A (en) * | 2011-06-24 | 2011-12-28 | 华为终端有限公司 | Method and device through which a terminal determines approach of an object |
CN102411425A (en) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | Method and device for controlling function of touch screen |
EP2687813A1 (en) * | 2012-07-18 | 2014-01-22 | Samsung Electronics Co., Ltd | Proximity sensor and proximity sensing method using light quantity of reflection light |
WO2016089305A1 (en) * | 2014-12-02 | 2016-06-09 | 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 |
CN105939427A (en) * | 2016-07-06 | 2016-09-14 | 广东欧珀移动通信有限公司 | Control method of infrared proximity sensor, device and mobile terminal |
CN105959492A (en) * | 2016-07-06 | 2016-09-21 | 广东欧珀移动通信有限公司 | Control method and device for infrared proximity sensor and mobile terminal |
-
2016
- 2016-10-12 CN CN201610892606.XA patent/CN106357922B/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101855512A (en) * | 2007-11-14 | 2010-10-06 | 英特赛尔美国股份有限公司 | Proximity sensors and methods for sensing proximity |
CN102265252A (en) * | 2011-06-24 | 2011-11-30 | 华为终端有限公司 | A method and a device for adjusting a sensing threshold value of an infrared proximity sensor |
CN102301684A (en) * | 2011-06-24 | 2011-12-28 | 华为终端有限公司 | Method and device through which a terminal determines approach of an object |
CN102411425A (en) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | Method and device for controlling function of touch screen |
EP2687813A1 (en) * | 2012-07-18 | 2014-01-22 | Samsung Electronics Co., Ltd | Proximity sensor and proximity sensing method using light quantity of reflection light |
WO2016089305A1 (en) * | 2014-12-02 | 2016-06-09 | 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 |
CN105939427A (en) * | 2016-07-06 | 2016-09-14 | 广东欧珀移动通信有限公司 | Control method of infrared proximity sensor, device and mobile terminal |
CN105959492A (en) * | 2016-07-06 | 2016-09-21 | 广东欧珀移动通信有限公司 | Control method and device for infrared proximity sensor and mobile terminal |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019015417A1 (en) * | 2017-07-18 | 2019-01-24 | Oppo广东移动通信有限公司 | Proximity sensor control method and device, storage medium and mobile terminal |
CN107257414A (en) * | 2017-07-18 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of screen state control method, device, storage medium and mobile terminal |
CN107422876A (en) * | 2017-07-18 | 2017-12-01 | 广东欧珀移动通信有限公司 | A kind of control method of proximity transducer, device, storage medium and mobile terminal |
CN107257414B (en) * | 2017-07-18 | 2019-07-23 | Oppo广东移动通信有限公司 | A kind of screen state control method, device, 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 |
CN107257415A (en) * | 2017-07-18 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of control method of proximity transducer, device, storage medium and mobile terminal |
US11443701B2 (en) | 2017-07-18 | 2022-09-13 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Screen state control method, device, and mobile terminal |
US11159672B2 (en) | 2017-07-18 | 2021-10-26 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for controlling proximity sensor, device, and mobile terminal |
CN107450817A (en) * | 2017-07-31 | 2017-12-08 | 广东欧珀移动通信有限公司 | Proximity test method, apparatus, storage medium and electronic equipment |
WO2019024644A1 (en) * | 2017-07-31 | 2019-02-07 | Oppo广东移动通信有限公司 | Proximity detection method and apparatus, storage medium, and electronic device |
US11094267B2 (en) | 2017-07-31 | 2021-08-17 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Proximity detection method, storage medium, and electronic device |
CN107450817B (en) * | 2017-07-31 | 2019-12-31 | Oppo广东移动通信有限公司 | Proximity detection method, proximity detection device, storage medium, and electronic apparatus |
CN107504631A (en) * | 2017-08-03 | 2017-12-22 | 广东美的制冷设备有限公司 | Laying dust detection method, device, air conditioner and the readable storage medium storing program for executing of screen pack |
CN107504631B (en) * | 2017-08-03 | 2020-08-04 | 广东美的制冷设备有限公司 | Dust accumulation detection method and device for filter screen, air conditioner and readable storage medium |
CN107688413A (en) * | 2017-08-07 | 2018-02-13 | 广东欧珀移动通信有限公司 | Proximity transducer, proximity transducer output control method and terminal device |
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 |
CN108874128A (en) * | 2018-06-01 | 2018-11-23 | Oppo广东移动通信有限公司 | Proximity test method and device, electronic device, storage medium and equipment |
CN108983211A (en) * | 2018-07-02 | 2018-12-11 | Oppo广东移动通信有限公司 | Proximity sensor and its control method, electronic device and computer readable storage medium |
CN112698420A (en) * | 2019-10-23 | 2021-04-23 | 广州奕至家居科技有限公司 | Object approach sensing method and device |
CN112698420B (en) * | 2019-10-23 | 2023-11-03 | 广州奕至家居科技有限公司 | Object proximity sensing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106357922B (en) | 2018-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106357922A (en) | State monitoring method and device for terminal equipment and terminal equipment | |
EP3627810B1 (en) | Proximity detection method and apparatus, storage medium, and electronic device | |
CN106210227B (en) | A kind of calibration method of infrared proximity transducer, device and mobile terminal | |
CN106506794A (en) | The state monitoring method of terminal unit, device and terminal unit | |
US20160178607A1 (en) | Acquiring Reliable Data | |
CN106464754B (en) | A kind of method, device and equipment for calibrating detecting distance | |
WO2003083818A1 (en) | Device and method of operation for automatic control of backlight | |
WO2017138029A1 (en) | Apparatus and method for remote control of lighting equipments | |
CN104182145A (en) | Method and device for preventing faulty operation of touch screen and mobile equipment | |
CN108918427A (en) | Method, apparatus, storage medium and the electronic equipment of substance detection | |
JP3868281B2 (en) | Photoelectric pulse wave measuring device | |
CN113017591A (en) | Wearable device wearing state detection method, wearable device wearing state detection device, wearable device wearing state detection equipment and storage medium | |
CN110609977B (en) | Bottom noise adjusting and processing method and device based on proximity sensor and computer equipment | |
CN109059987A (en) | A kind of method, device and mobile terminal for calibrating optical sensor | |
CN108362322B (en) | Sensor testing method and device and readable storage medium | |
CN112716117A (en) | Intelligent bracelet and control method thereof | |
CN105841807B (en) | A kind of method, system and intelligent terminal for improving optical sensor detection stability | |
CN208547562U (en) | A kind of optical detection apparatus | |
CN115514106A (en) | Display method, system, device and storage medium of wireless charging device | |
CN106531122A (en) | Method and apparatus for adjusting the brightness of screen | |
CN203745379U (en) | Handheld test paper reflectometer | |
CN109300438B (en) | Method and equipment for adjusting screen brightness | |
US9664557B2 (en) | Method and semiconductor component for identifying ambient light fluctuations | |
CN112526494A (en) | Method and device for acquiring ranging data, storage medium and electronic device | |
CN106095062A (en) | A kind of electronic equipment and the method switching its duty |
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 |