CN106019260A - Distance sensor anti-fouling method and system on mobile terminal - Google Patents
Distance sensor anti-fouling method and system on mobile terminal Download PDFInfo
- Publication number
- CN106019260A CN106019260A CN201610282742.7A CN201610282742A CN106019260A CN 106019260 A CN106019260 A CN 106019260A CN 201610282742 A CN201610282742 A CN 201610282742A CN 106019260 A CN106019260 A CN 106019260A
- Authority
- CN
- China
- Prior art keywords
- value
- distance
- distance sensor
- actual
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000003373 anti-fouling effect Effects 0.000 title claims abstract description 29
- 230000002265 prevention Effects 0.000 claims abstract description 37
- 238000005070 sampling Methods 0.000 claims description 99
- 238000012545 processing Methods 0.000 claims description 36
- 238000013459 approach Methods 0.000 claims description 9
- 230000002618 waking effect Effects 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 5
- 238000011109 contamination Methods 0.000 claims description 2
- 238000001514 detection method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 208000004356 Hysteria Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 208000012839 conversion disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S7/00—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
- G01S7/48—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
- G01S7/497—Means for monitoring or calibrating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
-
- 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/725—Cordless telephones
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S7/00—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
- G01S7/48—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
- G01S7/497—Means for monitoring or calibrating
- G01S2007/4975—Means for monitoring or calibrating of sensor obstruction by, e.g. dirt- or ice-coating, e.g. by reflection measurement on front-screen
- G01S2007/4977—Means for monitoring or calibrating of sensor obstruction by, e.g. dirt- or ice-coating, e.g. by reflection measurement on front-screen including means to prevent or remove the obstruction
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a distance sensor anti-fouling method on a mobile terminal. The mobile terminal comprises the steps that a distance sample value signal transmitted by a distance sensor on the mobile terminal is received; the actual bottom noise value and the actual distance sample value of the distance sensor is analyzed from the distance sample value signal; the actual bottom noise value is compared with the distance threshold value and the proximity threshold value of the distance sensor; if the actual bottom noise value is greater than the distance threshold value and is less than the proximity threshold value, distance sample value signals of a predetermined number is collected, and corresponding bottom noise values are analyzed therefrom; when the analyzed bottom noise values are stable, the average bottom noise value of the bottom noise values is calculated; the actual distance sample value is compared with the average bottom noise value; if the distance between the actual distance sample value and the average bottom noise value is judged to be lower than a predetermined threshold value, a control system does not turn on a mis-touch prevention operation mode. According to the invention, the mobile terminal is prevented from the mis-touch prevention mode.
Description
Technical Field
The invention relates to the technical field of mobile terminal communication, in particular to a method and a system for preventing a distance sensor from fouling on a mobile terminal.
Background
Nowadays, the intelligent society is stepped, and many electronic product devices can provide intelligent operation functions for people. With the development of network information technology, the mobile terminal brings great convenience to the work and life of people, and thus, the mobile terminal becomes a popular research topic nowadays. However, how to extend the energy endurance of the mobile terminal is always a great research direction of the mobile terminal. Especially for a large-screen intelligent terminal, in the using process of a user, for example, in the conversation process, if the screen is always kept bright, a large amount of energy is wasted, and misoperation of the user on the screen is easily caused.
The technical scheme of the prior art is that a distance sensor is arranged in a mobile terminal, and the distance between a user and the mobile terminal is sensed by emitting and receiving infrared light through the distance sensor, so that whether the user is close to the terminal or far away from the terminal is judged, and the terminal is controlled to enter a screen-off energy-saving mode or a normal use mode. Specifically, infrared light with a specific frequency of the distance sensor is emitted by the distance sensor, the infrared light reflected by an external object (such as a user) is received by using a frequency receiving diode corresponding to the specific frequency, and is converted into a corresponding electric intensity signal, and then the electric intensity signal is converted into a digital signal by an internal analog-to-digital converter (ADC), and based on the infrared light reflection principle, when the object is farther and farther away from the mobile phone, the infrared light reflected by the object is reduced; when an object approaches the mobile phone, the more infrared light is reflected back through the object. Conversely, the intensity of the reflected infrared signal collected by the mobile terminal is compared with a preset approaching or far threshold value, so that whether the object is approaching the mobile terminal or far away from the mobile terminal can be analyzed, when the object approaches the terminal to a certain degree, the fact that the terminal is used for calling can be judged, and then the screen of the terminal is controlled to be turned off so as to save energy; when the object is far away from the terminal to a certain extent, the fact that the terminal is not used for communication is indicated, and the terminal is controlled to operate normally.
Fig. 1 is a schematic diagram illustrating a distance sensor for determining whether an object is approaching or moving away from a mobile terminal by receiving reflected infrared light in the prior art. The terminal transmits infrared light through the distance sensor and receives a sampling value of an infrared light signal between a reflected infrared light collection object and the mobile terminal, a background noise value 101 of the terminal is determined, the background noise value refers to the sampling value of the distance sensor obtained under the condition that the mobile terminal is not shielded, the sampling value can be used as a reference for judging whether the object is far away from or close to the mobile terminal, the sampling value is compared with a preset far threshold value 102 and a preset close threshold value 103, and when the sampling value is not less than the close threshold value, a proximity event is judged to occur; and when the sampling value is not greater than the far threshold value, judging that the far event occurs.
However, in the actual use process, some stains (such as oil stains) are always adhered to the position of the distance sensor on the terminal, at this time, the terminal system may erroneously determine that the object is close to the terminal, and then the terminal is controlled to enter the screen-off energy-saving mode, and the terminal is always in the anti-false-touch state on the screen, so that the terminal cannot enter a normal operation interface, and the operation experience of the user on the terminal is affected. As shown in fig. 2, it is a schematic diagram of a distance sensor for detecting an object approaching or moving away from a mobile terminal by receiving reflected infrared light in the prior art. The original noise floor value 101 is a normal noise floor value without dirt adhering, and when the new noise floor value 201 is larger than the far threshold value 102, the infrared light sampling value collected by the distance sensor is larger than the near threshold value 103 and is a sampling value 202 which is actually far away, so that a near event is falsely reported, and the terminal cannot enter a normal operation interface.
Therefore, it is an urgent problem to be solved in the art to provide a method for anti-fouling a distance sensor on a mobile terminal.
Disclosure of Invention
In view of this, the present invention provides a method and a system for performing distance sensor anti-fouling on a mobile terminal, which solve the problem that in the prior art, when a distance sensor on the mobile terminal adheres to stains, object distance judgment cannot be performed accurately.
In order to solve the above technical problem, the present invention provides a method for performing anti-fouling on a distance sensor on a mobile terminal, including:
receiving a distance sampling value signal sent by a distance sensor on a mobile terminal;
analyzing an actual baseline noise value and an actual distance sampling value of the distance sensor from the distance sampling value signal;
comparing the actual baseline noise value to a distance threshold and a proximity threshold of the range sensor;
when the actual noise floor value is larger than the far threshold value and smaller than the near threshold value, acquiring a preset number of distance sampling value signals, and analyzing corresponding noise floor values;
when the analyzed noise floor value is judged to be stable, calculating an average noise floor value of the noise floor values;
and comparing the actual distance sampling value with the average noise floor value, and when the distance between the actual distance sampling value and the average noise floor value is judged to be lower than a preset threshold value, the control system does not enter a false touch prevention operation mode.
Further, when it is determined that the resolved noise floor value is stable, calculating an average noise floor value of the noise floor values includes:
calculating the variance of the noise floor value, and when the variance is smaller than a stable variance value, calculating the average noise floor value of the noise floor value;
and the stable variance value is preset by a user according to actual needs.
Further, wherein the method further comprises:
and when the variance is larger than the stable variance value, abandoning the distance sensor anti-pollution operation on the mobile terminal.
Further, wherein the method further comprises:
if the actual bottom noise value is smaller than the far threshold value or larger than the approaching threshold value, when the actual distance sampling value is not smaller than the approaching threshold value, controlling to enter a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, controlling not to enter a false touch prevention operation mode.
Further, wherein the method further comprises:
when a sampling value signal is detected on the distance sensor, waking up the distance sensor to collect the distance sampling value signal;
and when no sampling value signal on the distance sensor is detected, controlling the distance sensor to enter a dormant state.
In another aspect, the present invention also provides a system for performing anti-fouling on a mobile terminal by using a distance sensor, including: the device comprises a receiving module, an analysis module, a comparison module, a first processing module, a second processing module and a third processing module; wherein,
the receiving module is used for receiving a distance sampling value signal sent by a distance sensor on the mobile terminal;
the analysis module is used for analyzing an actual baseline noise value and an actual distance sampling value of the distance sensor from the distance sampling value signal;
the comparison module is used for comparing the actual noise floor value with a far threshold value and a near threshold value of the distance sensor;
the first processing module is used for collecting a preset number of distance sampling value signals and analyzing corresponding noise values from the distance sampling value signals when the actual noise value is larger than the far threshold and smaller than the near threshold;
the second processing module is used for calculating the average bottom noise value of the analyzed bottom noise values when the analyzed bottom noise values are judged to be stable;
and the third processing module is used for comparing the actual distance sampling value with the average noise floor value, and when the distance between the actual distance sampling value and the average noise floor value is judged to be lower than a preset threshold value, the control system does not enter a false touch prevention operation mode.
Further, wherein the second processing module is further configured to:
calculating the variance of the noise floor value, and when the variance is smaller than a stable variance value, calculating the average noise floor value of the noise floor value;
and the stable variance value is preset by a user according to actual needs.
Further, wherein the second processing module is further configured to:
when the variance is larger than the stable variance value, and the actual distance sampling value is not smaller than the approach threshold value, entering a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, not entering a false touch prevention operation mode.
Further, wherein the first processing module is further configured to:
if the actual bottom noise value is smaller than the far threshold value or larger than the approaching threshold value, when the actual distance sampling value is not smaller than the approaching threshold value, controlling to enter a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, controlling not to enter a false touch prevention operation mode.
Further, wherein the system further comprises: a wake-up module to:
when a sampling value signal is detected on the distance sensor, waking up the distance sensor to collect the distance sampling value signal;
and when no sampling value signal on the distance sensor is detected, controlling the distance sensor to enter a dormant state.
Compared with the prior art, the method and the system for preventing the pollution of the distance sensor on the mobile terminal have the advantages that:
(1) according to the method and the system for preventing the distance sensor from fouling on the mobile terminal, when the distance sensor of the mobile terminal is adhered with the dirt, the detection result of the distance sensor is judged through the absolute distance comparison between the actual bottom noise value and the actual distance sampling value, the distance change from an object to the mobile terminal can be accurately judged, the occurrence of a far event can be normally judged under the condition that a small amount of dirt is adhered to the distance sensor, the distance sensor is prevented from being mistaken as a close event, and the condition that the mobile terminal cannot normally operate due to the fact that the mobile terminal is mistakenly entered into the mistaken touch prevention mode is avoided.
(2) According to the method and the system for preventing the distance sensor from being polluted on the mobile terminal, accidental influences of other special conditions on the distance sensor are eliminated through judgment of the stability of the noise floor value, the distance sensor is ensured to be subjected to antifouling treatment under the condition that stains are adhered to the distance sensor, and the accuracy of antifouling treatment of the distance sensor on the mobile terminal is improved.
Of course, it is not necessary for any one product in which the invention is practiced to achieve all of the above-described technical effects simultaneously.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram of a distance sensor on a mobile terminal for determining whether an object is approaching or departing from the mobile terminal by receiving reflected infrared light in the prior art;
FIG. 2 is a schematic diagram of a distance sensor attached with stains on a mobile terminal for determining whether an object approaches or leaves the mobile terminal by receiving reflected infrared light in the prior art;
FIG. 3 is a schematic representation of the steps of an alternative embodiment of the method of the present invention for performing distance sensor anti-fouling on a mobile terminal;
fig. 4 is a schematic diagram illustrating steps of a method for performing anti-fouling on a distance sensor on a mobile terminal according to embodiment 2 of the present invention;
fig. 5 is a schematic flow chart of a method for performing anti-fouling on a distance sensor on a mobile terminal according to embodiment 2 of the present invention;
fig. 6 is a schematic view of a distance sensor for adhering stains to a mobile terminal according to embodiment 2 of the present invention, which determines whether an object is approaching or moving away from the mobile terminal by receiving reflected infrared light;
fig. 7 is a schematic structural diagram of a system for performing distance sensor anti-fouling on a mobile terminal according to the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< example 1 >
Fig. 3 is a schematic diagram illustrating steps of an alternative embodiment of the method for performing distance sensor anti-fouling on a mobile terminal according to the present invention. According to the method and the device, the detection result of the distance sensor is judged by comparing the absolute distance between the actual bottom noise value and the actual distance sampling value, and the distance change from the object to the mobile terminal is accurately judged, so that the problem that the mobile terminal cannot normally operate due to the fact that the object is judged to be close to the mobile terminal by mistake because the distance sensor on the mobile terminal is adhered with stains is avoided. The method for preventing the pollution of the distance sensor on the mobile terminal in the embodiment comprises the following steps:
step 301, receiving a distance sampling value signal sent by a distance sensor on the mobile terminal.
The distance sensor transmits infrared light with a specific frequency, receives reflected infrared light reflected by an object from the transmitted infrared light by using the frequency corresponding to the specific frequency, and converts the reflected infrared light into a digital signal, namely a distance sampling value signal, through an internal analog-to-digital converter (ADC). And the operating system of the mobile terminal receives the collected distance sampling value signal to perform subsequent signal data processing to obtain the accurate distance of the object detected by the mobile terminal.
And 302, analyzing an actual baseline noise value and an actual distance sampling value of the distance sensor from the distance sampling value signal.
Due to the fact that stains may adhere to the distance sensor on the mobile terminal, the actual bottom noise value of the distance sensor deviates from the original bottom noise value, and the acquired actual distance sampling value is also an absolute distance value generated relative to the actual bottom noise value. The distance sampling value signals collected from the distance sensor are analyzed into a data format which can be used for processing by the mobile terminal system through the step, so that subsequent calculation and judgment are facilitated.
And step 303, comparing the actual noise margin value with a far threshold value and a near threshold value of the distance sensor.
The distance sensor may be stained on the mobile terminal, which may cause deviation between an actual baseline noise value and an original baseline noise value of the distance sensor, and if the actual baseline noise value happens to fall between a far threshold and a close threshold of the distance sensor, a non-close event may be mistakenly determined as a close event, so that the mobile terminal automatically enters a false touch prevention mode, which may cause the mobile terminal to be unusable. And whether the actual noise value is in the misjudgment area or not is determined by comparing the actual noise value with the far threshold value and the near threshold value, so that the subsequent operation is facilitated.
And 304, when the actual noise figure value is larger than the far threshold value and smaller than the near threshold value, acquiring a preset number of distance sampling value signals, and analyzing a corresponding noise figure value from the distance sampling value signals. In step 304, the predetermined number is preferably 5-10, and when the actual noise floor value is greater than the far threshold and less than the near threshold, 5-10 distance sample value signals are collected again, and corresponding noise floor values are resolved from the distance sample value signals.
Through the comparison of the actual noise values with the distance threshold and the approach threshold, when the distance detection of the object and the mobile terminal is found to be in the misjudgment area, the noise values of several sensors are collected again to eliminate the error influence caused by accidental factors, and the accuracy of the anti-fouling treatment method of the distance sensor is improved.
And 305, when the analyzed noise floor value is judged to be stable, calculating an average noise floor value of the noise floor value.
When a plurality of acquired noise values are in a stable state, the fact that a stable influence factor which hinders the detection of the distance sensor exists is proved, and therefore the condition that the noise values are inaccurate in detection due to accidental detection errors at a certain time is eliminated.
And step 306, comparing the actual distance sampling value with the average noise floor value, and when the distance between the actual distance sampling value and the average noise floor value is judged to be lower than a preset threshold value, the control system does not enter a false touch prevention operation mode.
In this step, the predetermined threshold is set by the user according to actual use experience, and when the distance between the actual distance sampling value and the average noise floor value is lower than the predetermined threshold, it indicates that the distance sensor of the mobile terminal wrongly detects a far event as a near event due to dirt adhesion, and if the distance sensor of the mobile terminal is not blocked, the mobile terminal system enters a false touch prevention operation mode according to the preset setting, so that the operation of the mobile terminal cannot be normally performed.
In this embodiment, when the distance sensor of the mobile terminal is stained, the detection result of the distance sensor is judged through the comparison of the absolute distance between the actual background noise value and the actual distance sampling value, the distance change from the object to the mobile terminal can be accurately judged, and the problem that the mobile terminal cannot normally operate due to detection errors can be avoided.
< example 2 >
As shown in fig. 4, a schematic diagram of the steps of the method for performing distance sensor anti-fouling on a mobile terminal according to embodiment 2 of the present invention is shown. In this embodiment, a specific method for determining the stability of the noise floor value and performing system operation processing according to the actual noise floor value determination result is provided. The method for preventing the pollution of the distance sensor on the mobile terminal in the embodiment comprises the following steps:
step 401, when a sampling value signal is detected on the distance sensor, waking up the distance sensor to collect the distance sampling value signal.
Step 402, receiving a distance sampling value signal sent by a distance sensor on the mobile terminal.
And 403, analyzing an actual baseline noise value and an actual distance sampling value of the distance sensor from the distance sampling value signal.
Step 404, comparing the actual hysteria value with a far threshold and a near threshold of the distance sensor.
Step 405, if the actual noise floor value is smaller than the far threshold value or larger than the approaching threshold value, when the actual distance sampling value is not smaller than the approaching threshold value, controlling to enter a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, controlling not to enter a false touch prevention operation mode.
And step 406, when the actual noise floor value is greater than the far threshold and less than the near threshold, acquiring a predetermined number of distance sample value signals, and analyzing a corresponding noise floor value from the distance sample value signals. In step 406, the predetermined number is preferably 5 to 10, and when the actual noise floor value is greater than the far threshold and less than the near threshold, 5 to 10 distance sample value signals are collected again, and corresponding noise floor values are resolved from the distance sample value signals.
And 407, when the analyzed noise floor value is judged to be stable, calculating an average noise floor value of the noise floor values.
Preferably, calculating the variance of the noise floor value, and when the variance is smaller than the stable variance value, calculating the average noise floor value of the noise floor value;
and the stable variance value is preset by a user according to actual needs.
Step 408, when the variance is greater than the stable variance value and the actual distance sampling value is not less than the approach threshold value, entering a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, not entering a false touch prevention operation mode.
Step 409, comparing the actual distance sampling value with the average noise floor value, and when the distance between the actual distance sampling value and the average noise floor value is judged to be lower than a preset threshold value, controlling the system not to enter a false touch prevention operation mode. The predetermined threshold is set by a user according to actual use experience.
And step 410, controlling the distance sensor to enter a sleep state when no sampling value signal on the distance sensor is detected.
With reference to fig. 5, a schematic flow chart of a method for performing anti-fouling on a distance sensor on a mobile terminal according to this embodiment is shown, which embodies the flow principle of the embodiment and includes the following steps:
and step 501, acquiring an actual background noise value of the mobile terminal distance sensor.
Step 502, comparing the actual background noise value with the distance threshold value and the approach threshold value of the distance sensor.
And 503, when the actual background noise value is larger than the far threshold value of the distance sensor and smaller than the close threshold value, the mobile terminal system enters an anti-pollution mode.
Step 504, a certain number of noise floor values are obtained based on the distance sensor and the stability of the noise floor values is determined.
And 505, comparing the distance sampling value on the distance sensor with a stable bottom noise value, and judging that the distance time occurs when the distance between the distance sampling value and the stable bottom noise value exceeds a specific range, so that the control system does not enter a false touch prevention operation mode.
Fig. 6 is a schematic view of a distance sensor for adhering dirt to a mobile terminal according to embodiment 2 of the present invention, which determines whether an object is approaching or moving away from the mobile terminal by receiving reflected infrared light. The original noise floor value 101 is a normal noise floor value without dirt adhering, when the new noise floor value 201 is larger than the far threshold value 102, the infrared light sampling value collected by the distance sensor is larger than the near threshold value 103 and is supposed to be an actually far sampling value 202, and when the distance 601 between the actually far sampling value 202 and the new noise floor value 201 is lower than a preset threshold value, the control system does not enter a false touch prevention operation mode.
According to the method for preventing the fouling of the distance sensor on the mobile terminal, the distance sensor capable of being awakened is used for detecting the distance change between the object and the mobile terminal, the distance sensor is awakened to perform relevant analysis processing when needed, the distance sensor is in a dormant state when not needed, resources can be saved, and the service life of the distance sensor is prolonged.
< example 3 >
Fig. 7 is a schematic structural diagram of an alternative embodiment of the system for performing distance sensor anti-fouling on a mobile terminal disclosed in this embodiment. The system for preventing the distance sensor from being polluted on the mobile terminal in the embodiment comprises the following steps: a receiving module 701, a parsing module 702, a comparing module 703, a first processing module 704, a second processing module 705 and a third processing module 706, wherein,
the receiving module 701 is coupled to the analyzing module 702, and is configured to receive a distance sampling value signal sent by a distance sensor on a mobile terminal;
the analyzing module 702 is coupled to the receiving module 701 and the analyzing module 702, and configured to analyze an actual baseline noise value and an actual distance sample value of the distance sensor from the distance sample value signal;
the comparison module 703 is coupled to the parsing module 702 and the first processing module 704, and configured to compare the actual noise floor value with a distance threshold and a proximity threshold of the distance sensor;
the first processing module 704 is coupled to the comparing module 703 and the second processing module 705, and configured to, when the actual noise floor value is greater than the far threshold and less than the near threshold, acquire a predetermined number of distance sample value signals and analyze a corresponding noise floor value therefrom; wherein the predetermined number is preferably 5 to 10;
the second processing module 705 is coupled to the first processing module 704 and the third processing module 706, and configured to calculate an average bottom noise value of the bottom noise values when the resolved bottom noise values are determined to be stable;
the third processing module 706 is coupled to the second processing module 705, and configured to compare the actual distance sample value with the average noise floor value, and when it is determined that the distance between the actual distance sample value and the average noise floor value is lower than a predetermined threshold, the control system does not enter a false touch prevention operation mode. The predetermined threshold is set by a user according to actual use experience.
In this embodiment, the second processing module 705 is further configured to:
calculating the variance of the noise floor value, and when the variance is smaller than a stable variance value, calculating the average noise floor value of the noise floor value;
and the stable variance value is preset by a user according to actual needs.
The second processing module 705 is further configured to:
when the variance is larger than the stable variance value, and when the actual distance sampling value is not smaller than the approach threshold value, entering a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, not entering a false touch prevention operation mode.
The first processing module 704 is further configured to:
if the actual bottom noise value is smaller than the far threshold value or larger than the approaching threshold value, when the actual distance sampling value is not smaller than the approaching threshold value, controlling to enter a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, controlling not to enter a false touch prevention operation mode.
Preferably, the system for performing distance sensor contamination prevention on a mobile terminal of the present embodiment further includes: a wake-up module 707, where the wake-up module 707 is coupled to the receiving module 701, and configured to: when a sampling value signal is detected on the distance sensor, waking up the distance sensor to collect the distance sampling value signal;
and when no sampling value signal on the distance sensor is detected, controlling the distance sensor to enter a dormant state.
According to the embodiments, the method and the system for distance sensor anti-fouling on the mobile terminal have the following beneficial effects:
(1) according to the method and the system for preventing the distance sensor from fouling on the mobile terminal, when the distance sensor of the mobile terminal is adhered with the dirt, the detection result of the distance sensor is judged through the absolute distance comparison between the actual bottom noise value and the actual distance sampling value, the distance change from an object to the mobile terminal can be accurately judged, the occurrence of a far event can be normally judged under the condition that a small amount of dirt is adhered to the distance sensor, the distance sensor is prevented from being mistaken as a close event, and the condition that the mobile terminal cannot normally operate due to the fact that the mobile terminal is mistakenly entered into the mistaken touch prevention mode is avoided.
(2) According to the method and the system for preventing the distance sensor from being polluted on the mobile terminal, accidental influences of other special conditions on the distance sensor are eliminated through judgment of the stability of the noise floor value, the distance sensor is ensured to be subjected to antifouling treatment under the condition that stains are adhered to the distance sensor, and the accuracy of antifouling treatment of the distance sensor on the mobile terminal is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing description shows and describes several alternative embodiments of the invention, but as aforementioned, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as excluding other embodiments and is capable of use in various other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as expressed herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method of distance sensor anti-fouling on a mobile terminal, comprising:
receiving a distance sampling value signal sent by a distance sensor on a mobile terminal;
analyzing an actual baseline noise value and an actual distance sampling value of the distance sensor from the distance sampling value signal;
comparing the actual baseline noise value to a distance threshold and a proximity threshold of the range sensor;
when the actual noise floor value is larger than the far threshold value and smaller than the near threshold value, acquiring a preset number of distance sampling value signals, and analyzing corresponding noise floor values;
when the analyzed noise floor value is judged to be stable, calculating an average noise floor value of the noise floor values;
and comparing the actual distance sampling value with the average noise floor value, and when the distance between the actual distance sampling value and the average noise floor value is judged to be lower than a preset threshold value, the control system does not enter a false touch prevention operation mode.
2. The method for performing distance sensor contamination prevention on a mobile terminal according to claim 1, wherein the calculating the average noise floor value of the noise floor values when the analyzed noise floor value is judged to be stable comprises:
calculating the variance of the noise floor value, and when the variance is smaller than a stable variance value, calculating the average noise floor value of the noise floor value;
and the stable variance value is preset by a user according to actual needs.
3. The method for distance sensor anti-fouling on a mobile terminal of claim 2, further comprising:
and when the variance is larger than the stable variance value, abandoning the distance sensor anti-pollution operation on the mobile terminal.
4. The method for distance sensor anti-fouling on a mobile terminal of claim 1, further comprising:
if the actual bottom noise value is smaller than the far threshold value or larger than the approaching threshold value, when the actual distance sampling value is not smaller than the approaching threshold value, controlling to enter a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, controlling not to enter a false touch prevention operation mode.
5. The method for distance sensor anti-fouling on a mobile terminal according to any of claims 1-4, further comprising:
when a sampling value signal is detected on the distance sensor, waking up the distance sensor to collect the distance sampling value signal;
and when no sampling value signal on the distance sensor is detected, controlling the distance sensor to enter a dormant state.
6. A system for distance sensor anti-fouling on a mobile terminal, comprising: the device comprises a receiving module, an analysis module, a comparison module, a first processing module, a second processing module and a third processing module; wherein,
the receiving module is used for receiving a distance sampling value signal sent by a distance sensor on the mobile terminal;
the analysis module is used for analyzing an actual baseline noise value and an actual distance sampling value of the distance sensor from the distance sampling value signal;
the comparison module is used for comparing the actual noise floor value with a far threshold value and a near threshold value of the distance sensor;
the first processing module is used for collecting a preset number of distance sampling value signals and analyzing corresponding noise values from the distance sampling value signals when the actual noise value is larger than the far threshold and smaller than the near threshold;
the second processing module is used for calculating the average bottom noise value of the analyzed bottom noise values when the analyzed bottom noise values are judged to be stable;
and the third processing module is used for comparing the actual distance sampling value with the average noise floor value, and when the distance between the actual distance sampling value and the average noise floor value is judged to be lower than a preset threshold value, the control system does not enter a false touch prevention operation mode.
7. The system for distance sensor anti-fouling on a mobile terminal of claim 6, wherein the second processing module is further configured to:
calculating the variance of the noise floor value, and when the variance is smaller than a stable variance value, calculating the average noise floor value of the noise floor value;
and the stable variance value is preset by a user according to actual needs.
8. The system for distance sensor anti-fouling on a mobile terminal of claim 7, wherein the second processing module is further configured to:
when the variance is larger than the stable variance value, and the actual distance sampling value is not smaller than the approach threshold value, entering a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, not entering a false touch prevention operation mode.
9. The system for distance sensor anti-fouling on a mobile terminal of claim 6, wherein the first processing module is further configured to:
if the actual bottom noise value is smaller than the far threshold value or larger than the approaching threshold value, when the actual distance sampling value is not smaller than the approaching threshold value, controlling to enter a false touch prevention operation mode; and when the actual distance sampling value is not greater than the far threshold value, controlling not to enter a false touch prevention operation mode.
10. The system for distance sensor anti-fouling on a mobile terminal according to any one of claims 6-9, further comprising: a wake-up module to:
when a sampling value signal is detected on the distance sensor, waking up the distance sensor to collect the distance sampling value signal;
and when no sampling value signal on the distance sensor is detected, controlling the distance sensor to enter a dormant state.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610282742.7A CN106019260A (en) | 2016-04-29 | 2016-04-29 | Distance sensor anti-fouling method and system on mobile terminal |
PCT/CN2016/103851 WO2017185701A1 (en) | 2016-04-29 | 2016-10-28 | Distance sensor antifouling method and system on mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610282742.7A CN106019260A (en) | 2016-04-29 | 2016-04-29 | Distance sensor anti-fouling method and system on mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106019260A true CN106019260A (en) | 2016-10-12 |
Family
ID=57082058
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610282742.7A Pending CN106019260A (en) | 2016-04-29 | 2016-04-29 | Distance sensor anti-fouling method and system on mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106019260A (en) |
WO (1) | WO2017185701A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107219515A (en) * | 2017-05-25 | 2017-09-29 | 深圳市金立通信设备有限公司 | The parameter calibrating method and terminal of a kind of range sensor |
WO2017185701A1 (en) * | 2016-04-29 | 2017-11-02 | 乐视控股(北京)有限公司 | Distance sensor antifouling method and system on mobile terminal |
CN108267728A (en) * | 2018-01-23 | 2018-07-10 | 北京小米移动软件有限公司 | Calibration method, device, equipment and the storage medium of range sensor |
CN109001712A (en) * | 2018-07-05 | 2018-12-14 | 合肥联宝信息技术有限公司 | A kind of infrared ray range sensor calibration method and intelligent appliance |
CN109428961A (en) * | 2017-08-29 | 2019-03-05 | 中兴通讯股份有限公司 | A kind of processing method and mobile terminal close to light sensation |
CN112101340A (en) * | 2020-11-16 | 2020-12-18 | 展讯通信(上海)有限公司 | Screen stain recognition method and device |
CN113671512A (en) * | 2020-05-14 | 2021-11-19 | 北京小米移动软件有限公司 | Proximity sensor angle adjusting method and device and storage medium |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111337994A (en) * | 2018-12-19 | 2020-06-26 | 合肥欣奕华智能机器有限公司 | Method and equipment for calibrating reference value |
CN111398970B (en) * | 2018-12-28 | 2022-04-22 | 北京小米移动软件有限公司 | Event detection method, distance sensor and terminal |
CN112462928B (en) * | 2019-09-06 | 2024-03-26 | 北京小米移动软件有限公司 | Operation execution method, device and storage medium |
CN111289956B (en) * | 2020-01-21 | 2022-04-29 | 维沃移动通信有限公司 | Electronic device and bottom noise calibration method |
CN113821116A (en) * | 2020-06-19 | 2021-12-21 | 北京小米移动软件有限公司 | Screen control method and device and storage medium |
CN115119238B (en) * | 2021-03-17 | 2024-10-25 | 中国科学院上海微系统与信息技术研究所 | Information processing method, system, medium and sensor node based on sensor neighbor information |
CN115834762B (en) * | 2022-11-01 | 2024-04-05 | 深圳市穗晶半导体有限公司 | Control method, system and device of distance sensor and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557430A (en) * | 2008-04-10 | 2009-10-14 | Lg电子株式会社 | Mobile terminal and screen control method thereof |
US8030914B2 (en) * | 2008-12-29 | 2011-10-04 | Motorola Mobility, Inc. | Portable electronic device having self-calibrating proximity sensors |
CN102265252A (en) * | 2011-06-24 | 2011-11-30 | 华为终端有限公司 | A method and a device for adjusting a sensing threshold value of an infrared proximity sensor |
CN102411425A (en) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | Method and device for controlling function of touch screen |
CN103561165A (en) * | 2013-10-18 | 2014-02-05 | 广东欧珀移动通信有限公司 | Method and device for preventing sticking film from affecting normal working of proximity transducer |
CN105025159A (en) * | 2015-06-05 | 2015-11-04 | 广东欧珀移动通信有限公司 | A proximity sensor adjusting method and apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106019260A (en) * | 2016-04-29 | 2016-10-12 | 乐视控股(北京)有限公司 | Distance sensor anti-fouling method and system on mobile terminal |
-
2016
- 2016-04-29 CN CN201610282742.7A patent/CN106019260A/en active Pending
- 2016-10-28 WO PCT/CN2016/103851 patent/WO2017185701A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557430A (en) * | 2008-04-10 | 2009-10-14 | Lg电子株式会社 | Mobile terminal and screen control method thereof |
US8030914B2 (en) * | 2008-12-29 | 2011-10-04 | Motorola Mobility, Inc. | Portable electronic device having self-calibrating proximity sensors |
CN102265252A (en) * | 2011-06-24 | 2011-11-30 | 华为终端有限公司 | A method and a device for adjusting a sensing threshold value of an infrared proximity sensor |
CN102411425A (en) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | Method and device for controlling function of touch screen |
CN103561165A (en) * | 2013-10-18 | 2014-02-05 | 广东欧珀移动通信有限公司 | Method and device for preventing sticking film from affecting normal working of proximity transducer |
CN105025159A (en) * | 2015-06-05 | 2015-11-04 | 广东欧珀移动通信有限公司 | A proximity sensor adjusting method and apparatus |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017185701A1 (en) * | 2016-04-29 | 2017-11-02 | 乐视控股(北京)有限公司 | Distance sensor antifouling method and system on mobile terminal |
CN107219515A (en) * | 2017-05-25 | 2017-09-29 | 深圳市金立通信设备有限公司 | The parameter calibrating method and terminal of a kind of range sensor |
CN109428961A (en) * | 2017-08-29 | 2019-03-05 | 中兴通讯股份有限公司 | A kind of processing method and mobile terminal close to light sensation |
CN108267728A (en) * | 2018-01-23 | 2018-07-10 | 北京小米移动软件有限公司 | Calibration method, device, equipment and the storage medium of range sensor |
CN109001712A (en) * | 2018-07-05 | 2018-12-14 | 合肥联宝信息技术有限公司 | A kind of infrared ray range sensor calibration method and intelligent appliance |
CN109001712B (en) * | 2018-07-05 | 2023-03-17 | 合肥联宝信息技术有限公司 | Infrared distance sensor calibration method and intelligent household appliance |
CN113671512A (en) * | 2020-05-14 | 2021-11-19 | 北京小米移动软件有限公司 | Proximity sensor angle adjusting method and device and storage medium |
CN113671512B (en) * | 2020-05-14 | 2024-01-30 | 北京小米移动软件有限公司 | Proximity sensor angle adjustment method, device and storage medium |
CN112101340A (en) * | 2020-11-16 | 2020-12-18 | 展讯通信(上海)有限公司 | Screen stain recognition method and device |
WO2022099823A1 (en) * | 2020-11-16 | 2022-05-19 | 展讯通信(上海)有限公司 | Screen stain identification method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
WO2017185701A1 (en) | 2017-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106019260A (en) | Distance sensor anti-fouling method and system on mobile terminal | |
KR101288740B1 (en) | Touch screen device for detecting noise and control method using the same | |
KR102321235B1 (en) | Water robustness and detection of capacitive buttons | |
US20150363041A1 (en) | Method and system of data input for an electronic device equipped with a touch screen | |
US20100214253A1 (en) | Drift compensation apparatus of capacitive touch panel and drift compensation method thereof | |
CN104182145A (en) | Method and device for preventing faulty operation of touch screen and mobile equipment | |
CN109144224B (en) | Power consumption optimization method and device for touch screen | |
US7405727B2 (en) | Lift detection mechanism for optical mouse sensor | |
CN110824378B (en) | Touch key detection method | |
CN114063802B (en) | Touch detection method, device, storage medium, microprocessor and touch control device | |
CN105791595A (en) | Method of carrying out volume control based on pressure sensor and system thereof | |
CN106791120A (en) | Mobile terminal puts out the control method and device of screen | |
CN102427355A (en) | Touch button state determination method | |
CN114198977B (en) | Method for detecting human body approach of refrigerator and refrigerator adopting method | |
US9766720B2 (en) | Navigation apparatus and related actuating method | |
CN114356140B (en) | Key action recognition method of infrared induction suspension key | |
CN115793890A (en) | Anti-interference adjusting method for touch screen, air conditioning system and storage medium | |
CN107329613B (en) | Touch screen equipment, false touch prevention identification system and false touch prevention identification method thereof | |
CN112612028B (en) | Infrared proximity sensing method and device, air conditioner and storage medium | |
CN212245788U (en) | Non-contact elevator button panel | |
CN109710111A (en) | A kind of false-touch prevention method and electronic equipment | |
CN112684906B (en) | Input control method and electronic equipment | |
JP2002297318A (en) | Touch panel controller and program for controlling touch panel | |
CN112462985A (en) | Capacitive touch key parallel anti-interference method and device | |
KR101531841B1 (en) | Effective method and module for measuring noise level in capacitive touch sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161012 |
|
WD01 | Invention patent application deemed withdrawn after publication |