WO2017185701A1 - 在移动终端上进行距离传感器防污的方法及系统 - Google Patents
在移动终端上进行距离传感器防污的方法及系统 Download PDFInfo
- Publication number
- WO2017185701A1 WO2017185701A1 PCT/CN2016/103851 CN2016103851W WO2017185701A1 WO 2017185701 A1 WO2017185701 A1 WO 2017185701A1 CN 2016103851 W CN2016103851 W CN 2016103851W WO 2017185701 A1 WO2017185701 A1 WO 2017185701A1
- Authority
- WO
- WIPO (PCT)
- 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.)
- Ceased
Links
Images
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 OR CALCULATING; 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
Definitions
- the present disclosure relates to the technical field of mobile terminal communication, for example, to a method and system for performing distance sensor antifouling on a mobile terminal.
- a related art solution is to provide a distance sensor in a mobile terminal, and transmit and receive infrared light through the distance sensor to sense a distance between the user and the mobile terminal, thereby determining whether the user is close to the terminal or away from the terminal, and controlling The terminal enters the power-off mode or the normal use mode.
- the distance sensor emits infrared light of a specific frequency of the distance sensor, and receives the infrared light reflected by an external object (such as a user) by using a frequency receiving diode corresponding to the specific frequency. After being converted into a corresponding electric intensity signal, the light is converted into a digital signal by an internal analog-to-digital converter (ADC).
- ADC analog-to-digital converter
- the object Based on the reflection principle of infrared light, when the object is farther away from the mobile phone, the object is reflected back. Infrared light will be less; and as the object approaches the phone, the more infrared light will be reflected back through the object. Conversely, when the intensity of the reflected infrared signal collected by the mobile terminal through the mobile terminal is compared with a preset proximity or away from the threshold, it can be analyzed whether the object is close to the mobile terminal or away from the mobile terminal, and when the object approaches the terminal, To a certain extent, it can be judged that the terminal is used to make a call, and then the terminal screen is controlled to stop the screen to save energy; when the object is far away from the terminal to a certain extent, it means that the terminal is not used for talking, and then the terminal is controlled to perform normal operations.
- FIG. 1 it is a schematic diagram of the distance sensor in the related art that the object is approached or moved away from the mobile terminal by receiving the reflected infrared light.
- the terminal transmits the infrared light from the distance sensor and receives the reflected infrared light to collect the sampled value of the infrared light signal between the object and the mobile terminal, and determines the bottom noise value 101.
- the bottom noise value refers to the situation that there is no occlusion on the mobile terminal.
- the sampled value of the obtained distance sensor may be used as a reference for judging the object to be close to and close to the mobile terminal, and comparing the sampled value with a preset distance threshold 102 and a proximity threshold 103, when the sample value is not less than the proximity
- the threshold is determined to be a proximity event; when the sampled value is not greater than the threshold, it is determined that the remote event occurs.
- a distance sensor for adhering a stain in the related art is a schematic diagram for judging whether an object approaches or moves away from a mobile terminal by receiving reflected infrared light.
- the original noise floor value 101 is a normal bottom noise value of the unadhered stain.
- the new noise floor value 201 is greater than the distance threshold value 102, the infrared light sample value collected by the distance sensor may be greater than the approach threshold value 103, but should be actual. Far away from the sample value 202, As a result, the proximity event is falsely reported, resulting in the terminal not being able to enter the normal operation interface.
- the present disclosure provides a method and system for performing anti-fouling of a distance sensor on a mobile terminal, which can accurately determine an object distance when the sensor adheres to a stain on the mobile terminal.
- the present disclosure provides a method for performing anti-fouling of a distance sensor on a mobile terminal, including:
- the control system Comparing 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 the anti-missing Operating mode.
- calculating an average bottom noise value of the bottom noise value including:
- the stability variance value is preset by the user according to actual needs.
- the method further comprises:
- the distance sensor antifouling operation performed on the mobile terminal is abandoned.
- the method further comprises:
- the control enters an anti-missing operation mode; when the actual distance sample value is not greater than the distance Threshold, the control does not enter the anti-missing operation mode.
- the method further comprises:
- the distance sensor When the no-sample value signal is detected on the distance sensor, the distance sensor is controlled to enter a sleep state.
- the present disclosure further provides a system for performing anti-fouling of a distance sensor on a mobile terminal, comprising: a receiving module, a parsing module, a comparing module, a first processing module, a second processing module, and a third processing module;
- the receiving module is configured to receive a distance sample value signal sent by the distance sensor on the mobile terminal;
- the parsing module is configured to parse the actual bottom noise value and the actual distance sample value of the distance sensor from the distance sample value signal;
- the comparison module is configured to compare the actual noise floor value with a distance threshold of the distance sensor and a proximity threshold;
- the first processing module is configured to: when the actual bottom noise value is greater than the distance threshold and less than the proximity threshold, collect a predetermined number of distance sample value signals, and parse a corresponding bottom noise value therefrom;
- the second processing module is configured to calculate an average noise floor value of the bottom noise value when it is determined that the resolved bottom noise value is stable;
- the third processing module is configured to compare the actual distance sample value with the average noise floor value, and determine that a distance between the actual distance sample value and the average noise floor value is lower than a predetermined threshold When the control system does not enter the anti-missing operation mode.
- the second processing module is configured to:
- the stability variance value is preset by the user according to actual needs.
- the second processing module is configured to:
- the error prevention operation mode is entered; when the actual distance sampling value is not greater than the distance threshold, the anti-misoperation operation mode is not entered.
- the first processing module is configured to:
- the control enters an anti-missing operation mode; when the actual distance sample value is not greater than the distance Threshold, the control does not enter the anti-missing operation mode.
- the system further includes: a wake-up module, where the wake-up module is configured to:
- the distance sensor When the no-sample value signal is detected on the distance sensor, the distance sensor is controlled to enter a sleep state.
- a non-transitory storage medium storing computer executable instructions, The computer executable instructions are arranged to perform the method of performing distance sensor antifouling on the mobile terminal as described above.
- a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions When executed by a computer, the computer is caused to perform the above-described method of performing anti-fouling of the distance sensor on the mobile terminal.
- an electronic device comprising at least one processor and a memory communicatively coupled to the at least one processor, the memory for storing instructions executable by the at least one processor And executing, by the at least one processor, the at least one processor to perform the method for performing anti-fouling of the distance sensor on the mobile terminal.
- the method and system for performing anti-fouling of a distance sensor on a mobile terminal when the distance sensor of the mobile terminal adheres to a stain, the distance sensor is compared with the absolute distance between the actual bottom noise value and the actual distance sample value.
- the detection result can accurately determine the change of the distance from the object to the mobile terminal, and can correctly determine the occurrence of the distant event when the distance sensor adheres with a small amount of stains, thereby preventing the misidentification as a proximity event and avoiding the mobile terminal from entering the defense. Incorrect operation caused by accidental touch mode.
- the method and system for performing anti-fouling of a distance sensor on a mobile terminal eliminates the accidental influence of other special conditions on the distance sensor by judging the stability of the noise floor value, and ensures that the stain is adhered to the distance sensor.
- the anti-fouling treatment is carried out under the following, and the accuracy of the anti-fouling treatment of the distance sensor on the mobile terminal is improved.
- FIG. 1 is a schematic diagram of a distance sensor on a mobile terminal of the related art, by receiving infrared light reflected back, to determine whether an object approaches or moves away from the mobile terminal;
- FIG. 2 is a schematic diagram of a distance sensor that adheres to a stain on a mobile terminal of the related art, by receiving infrared light reflected back, and determining whether the object approaches or moves away from the mobile terminal;
- FIG. 3 is a schematic diagram showing the steps of an alternative embodiment of a method for performing anti-fouling of a distance sensor on a mobile terminal according to the present disclosure
- FIG. 4 is a schematic diagram of steps of a method for performing anti-fouling of a distance sensor on a mobile terminal according to Embodiment 2 of the present disclosure
- FIG. 5 is a schematic flowchart of a method for performing anti-fouling of a distance sensor on a mobile terminal according to Embodiment 2 of the present disclosure
- FIG. 6 is a schematic diagram of a distance sensor that adheres a stain on a mobile terminal according to Embodiment 2 of the present disclosure, by receiving reflected infrared light to determine whether an object approaches or moves away from the mobile terminal;
- FIG. 7 is a schematic structural diagram of a system for performing anti-fouling of a distance sensor on a mobile terminal according to the present disclosure
- FIG. 8 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
- FIG. 3 it is a schematic diagram of steps of an alternative embodiment of a method for performing anti-fouling of a distance sensor on a mobile terminal according to the present disclosure.
- the present disclosure uses the absolute distance between the actual bottom noise value and the actual distance sample value to determine the detection result of the distance sensor, accurately determines the distance change of the object to the mobile terminal, thereby avoiding the error caused by the adhesion of the distance sensor on the mobile terminal. It is determined that the mobile terminal caused by the object approaching the mobile terminal cannot operate normally.
- the method for performing the distance sensor antifouling on the mobile terminal in the embodiment includes the following steps:
- Step 301 Receive a distance sample value signal sent by the distance sensor on the mobile terminal.
- the distance sensor transmits infrared light of a specific frequency, and receives the reflected infrared light reflected by the emitted infrared light through the object at a frequency corresponding to the specific frequency, and converts it into a digital signal through an internal analog-to-digital converter (ADC). That is, the distance sampled signal.
- ADC analog-to-digital converter
- the operating system of the mobile terminal receives the collected distance sample value signal for subsequent signal data processing to obtain an accurate distance that the mobile terminal detects the object.
- Step 302 Parse the actual bottom noise value and the actual distance sample value of the distance sensor from the distance sample value signal.
- the actual bottom noise value of the distance sensor may deviate from the original bottom noise value, and the actual distance sample value obtained is also generated relative to the actual bottom noise value. Absolute distance value.
- the distance sampled value signal collected from the distance sensor is parsed into a data format that the mobile terminal system can use for processing, which facilitates subsequent calculation and judgment. Broken.
- Step 303 Compare the actual noise floor value with a distance threshold of the distance sensor and a proximity threshold.
- the distance sensor may be stained on the mobile terminal, which may cause the actual bottom noise value of the distance sensor to deviate from the original bottom noise value, and if the actual noise floor value falls just between the distance sensor and the threshold value. It may happen that the non-proximity event is misidentified as a proximity event, causing the mobile terminal to automatically enter the anti-missing mode, resulting in the mobile terminal being unusable.
- the actual noise floor value By comparing the actual noise floor value with the distance threshold and the approach threshold, it is first determined whether it is in the misjudgment area, which is beneficial to the subsequent operation.
- Step 304 When the actual bottom noise value is greater than the distance threshold and less than the proximity threshold, collect a predetermined number of distance sample value signals, and parse the corresponding bottom noise value therefrom.
- the predetermined number is preferably 5-10.
- 5-10 distance sample values are collected, and corresponding values are parsed therefrom. The noise floor value.
- Step 305 When it is determined that the parsed bottom noise value is stable, calculate an average noise floor value of the bottom noise value.
- Step 306 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. Anti-missing operation mode.
- the predetermined threshold is set by the user according to the actual use experience, when the actual distance is The distance between the sampled value and the average noise floor value is lower than a predetermined threshold, which indicates that the distance sensor of the mobile terminal detects the proximity event as a proximity event due to adhesion of the stain, and if not, the mobile terminal system will According to the preset setting, the anti-missing operation mode is entered, and the operation of the mobile terminal cannot be performed normally.
- the detection result of the distance sensor is determined by comparing the absolute distance between the actual bottom noise value and the actual distance sample value, and the distance change of the object to the mobile terminal can be accurately determined.
- the problem that the mobile terminal cannot operate normally due to detection error can be avoided.
- FIG. 4 is a schematic diagram showing the steps of a method for performing anti-fouling of a distance sensor on a mobile terminal according to Embodiment 2 of the present disclosure.
- a specific method of determining the bottom noise value stability and performing system operation processing based on the actual bottom noise value judgment result is set.
- the method for performing the distance sensor antifouling on the mobile terminal in this embodiment includes the following steps:
- Step 401 When detecting that there is a sampled value signal on the distance sensor, wake up the distance sensor to collect a distance sampled value signal.
- Step 402 Receive a distance sample value signal sent by the distance sensor on the mobile terminal.
- Step 403 Parse the actual bottom noise value and the actual distance sample value of the distance sensor from the distance sample value signal.
- Step 404 Compare the actual noise floor value with a distance threshold of the distance sensor and a proximity threshold.
- Step 405 If the actual bottom noise value is less than the distance threshold or greater than the proximity threshold, when the actual distance sample value is not less than the proximity threshold, the control enters an anti-misoperation mode; When the sampled value is not greater than the distance threshold, the control does not enter the anti-missing operation mode.
- Step 406 When the actual bottom noise value is greater than the distance threshold and less than the proximity threshold, collect a predetermined number of distance sample value signals, and parse the corresponding bottom noise value therefrom.
- the predetermined number is preferably 5-10.
- 5-10 distance sample values are collected, and corresponding values are parsed therefrom. The noise floor value.
- Step 407 When it is determined that the parsed bottom noise value is stable, calculate an average noise floor value of the bottom noise value.
- calculating a variance of the bottom noise value and when the variance is less than a stable variance value, calculating an average noise floor value of the bottom noise value;
- the stability variance value is preset by the user according to actual needs.
- Step 408 When the variance is greater than the stable variance value, when the actual distance sampling value is not less than the proximity threshold, the error prevention operation mode is entered; when the actual distance sampling value is not greater than the remote threshold, the defense is not entered. Incorrect operation mode.
- Step 409 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. Anti-missing operation mode.
- the predetermined threshold is set by the user according to the actual use experience.
- Step 410 When detecting that there is no sampling value signal on the distance sensor, control the distance sensor to enter a sleep state.
- FIG. 5 a schematic flowchart of a method for performing anti-fouling of a distance sensor on a mobile terminal according to the embodiment is shown, which embodies the principle of the solution of the embodiment, and includes the following steps:
- Step 501 Acquire an actual bottom noise value of the distance sensor of the mobile terminal.
- Step 502 Compare the actual bottom noise value with a distance threshold of the distance sensor and a threshold value.
- Step 503 When the actual bottom noise value is greater than a distance threshold of the distance sensor and less than a proximity threshold, the mobile terminal system enters an anti-stain mode.
- Step 504 Acquire a certain amount of noise floor value based on the distance sensor and determine its stability.
- Step 505 Comparing the distance sampling value on the distance sensor with a stable bottom noise value. When the distance between the two exceeds a certain range, it is determined that the remote time occurs, and the control system does not enter the anti-missing operation mode.
- FIG. 6 is a schematic diagram of a distance sensor that adheres a stain on a mobile terminal according to Embodiment 2 of the present disclosure, by receiving reflected infrared light to determine whether an object approaches or moves away from the mobile terminal.
- the original noise floor value 101 is a normal bottom noise value of the unadhered stain.
- the new noise floor value 201 is greater than the distance threshold value 102, the infrared light sample value collected by the distance sensor may be greater than the approach threshold value 103, but should be actual.
- the remote sample value 202 when the distance 601 between the actually distant sample value 202 and the new noise floor value 201 is lower than a predetermined threshold, the control system does not enter the anti-missing operation mode.
- the method for performing the anti-fouling of the distance sensor on the mobile terminal uses the wake-up distance sensor to detect the change of the distance between the object and the mobile terminal, and wakes up the correlation analysis process when needed, and is in a dormant state when not needed. Forms can also save resources and extend the life of the distance sensor.
- FIG. 7 is a schematic structural diagram of an alternative embodiment of a system for performing anti-fouling of a distance sensor on a mobile terminal disclosed in the embodiment.
- the system for performing the anti-fouling of the distance sensor on the mobile terminal in the embodiment includes: 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.
- the receiving module 701 is coupled to the parsing module 702 and configured to receive the distance of the mobile terminal. The distance sampled signal sent from the sensor.
- the parsing module 702 is coupled to the receiving module 701 and the parsing module 702, and is configured to parse the actual bottom noise value and the actual distance sampling value of the distance sensor from the distance sample value signal.
- the comparison module 703 is coupled to the analysis module 702 and the first processing module 704, and is 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 comparison module 703 and the second processing module 705, and is configured to collect a predetermined quantity when the actual bottom noise value is greater than the distance threshold and less than the proximity threshold.
- the distance samples the sampled signal and resolves the corresponding noise floor value therefrom; wherein the predetermined number is preferably 5-10.
- the second processing module 705 is coupled to the first processing module 704 and the third processing module 706, and is configured to calculate an average bottom value of the bottom noise value when it is determined that the parsed bottom noise value is stable. Noise value.
- the third processing module 706 is coupled to the second processing module 705, and configured to compare the actual distance sampling value with the average noise floor value, and when determining the actual distance sampling value and the location When the distance between the average noise floor values is below a predetermined threshold, the control system does not enter the anti-missing operation mode.
- the predetermined threshold is set by the user according to the actual use experience.
- the second processing module 705 is configured to:
- the stability variance value is preset by the user according to actual needs.
- the second processing module 705 is configured to:
- the error prevention operation mode is entered; when the actual distance sampling value is not greater than the remote threshold, the defense is not entered. Incorrect operation mode.
- the first processing module 704 is configured to:
- the control enters an anti-missing operation mode; when the actual distance sample value is not greater than the distance Threshold, the control does not enter the anti-missing operation mode.
- the system for performing the anti-fouling of the distance sensor on the mobile terminal of the embodiment further includes: a wake-up module 707, the wake-up module 707 is coupled to the receiving module 701, and configured to: detect the distance When there is a sampled value signal on the sensor, the distance sensor is awakened to collect the distance sampled value signal;
- the distance sensor When the no-sample value signal is detected on the distance sensor, the distance sensor is controlled to enter a sleep state.
- the present disclosure also provides a non-transitory storage medium storing computer executable instructions arranged to perform the method of performing distance sensor antifouling on a mobile terminal of the above-described embodiments.
- the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the method of performing the distance sensor antifouling on the mobile terminal of the above embodiment.
- FIG. 8 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
- the electronic device may include a processor 801 and a memory 803, and may further include a communication interface 802 and a bus 804.
- the processor 801, the communication interface 802, and the memory 803 can complete communication with each other through the bus 804.
- Communication interface 802 can be used for information transmission.
- the processor 801 can call the logic instructions in the memory 803 to perform the method of performing the distance sensor antifouling on the mobile terminal of the above embodiment.
- the logic instructions in the memory 803 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
- the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in various embodiments of the present disclosure.
- the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- a medium that can store program code, or a transitory storage medium including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- the method and system for performing distance sensor antifouling on a mobile terminal when the distance sensor of the mobile terminal adheres to a stain, the absolute distance between the actual bottom noise value and the actual distance sampled value is compared and judged.
- the detection result of the distance sensor can accurately determine the distance change of the object to the mobile terminal, and can correctly determine the occurrence of the distant event when the distance sensor adheres with a small amount of stains, thereby preventing the misidentification as a proximity event and avoiding the mobile terminal. Incorrect operation caused by accidental entry into the anti-missing mode.
- the method and system for performing anti-fouling of a distance sensor on a mobile terminal when the distance sensor of the mobile terminal adheres to a stain, the distance sensor is compared with the absolute distance between the actual bottom noise value and the actual distance sample value.
- the detection result can accurately determine the change of the distance from the object to the mobile terminal, and can correctly determine the occurrence of the distant event when the distance sensor adheres with a small amount of stains, thereby preventing the misidentification as a proximity event and avoiding the mobile terminal from entering the defense. Incorrect operation caused by accidental touch mode.
- the method and system for performing anti-fouling of a distance sensor on a mobile terminal eliminates the accidental influence of other special conditions on the distance sensor by judging the stability of the noise floor value, and ensures that the stain is adhered to the distance sensor.
- the anti-fouling treatment is carried out under the following, and the accuracy of the anti-fouling treatment of the distance sensor on the mobile terminal is improved.
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
提供了一种在移动终端上进行距离传感器防污的方法和系统,方法包括:接收移动终端上距离传感器发送的距离采样值信号(301);从距离采样值信号中解析出距离传感器的实际底噪值及实际距离采样值(302);将实际底噪值与距离传感器的远离阈值及接近阈值进行比较(303);当实际底噪值大于远离阈值且小于接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值(304);当判断到所解析出的底噪值稳定时,计算底噪值的平均底噪值(305);将实际距离采样值与平均底噪值进行比较,当判断到实际距离采样值与平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式(306)。避免了移动终端误进入防误触模式。
Description
本申请要求在2016年4月29日提交中国专利局、申请号为201610282742.7、发明名称为“在移动终端上进行距离传感器防污的方法及系统”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本公开涉及移动终端通讯的技术领域,例如涉及一种在移动终端上进行距离传感器防污的方法及系统。
如今已经步入智能社会,许多电子产品设备都能够为人们提供智能化的操作功能。随着网络信息技术的发展,移动终端为人们的工作、生活带来了极大的便利,由此,移动终端也就成为热门研究课题。但是,如何延长移动终端的续航时间始终是移动终端的一大研究方向。特别是对于大屏幕的智能终端,在用户使用过程中,例如在通话过程中,如果始终保持亮屏,不仅会浪费大量的能量,还容易造成用户在屏幕上的误操作。
相关技术的解决方案是在移动终端内设置距离传感器,通过该距离传感器发射并接收红外光来感知用户与移动终端之间的距离,从而判断出用户是接近该终端,还是远离该终端,并控制终端进入灭屏节能模式还是正常使用模式。具体地,通过距离传感器发出该距离传感器特定频率的红外光,并使用与该特定频率相对应频率接收二极管接收经过外界物体(比如用户)反射回来的红外
光,并转换成相应的电强度信号后,经过内部的模拟数字转换器(ADC)转换为数字信号,基于红外光的反射原理,当物体距离手机越来越远时,经过该物体反射回来的红外光就会变少;而当物体接近手机时,经过该物体反射回来的红外光就会越多。反过来,在移动终端通过移动终端收集到的反射红外信号强度与预先设置的接近或远离门限值进行比较,即可分析出物体是靠近该移动终端还是远离该移动终端,当物体靠近终端达到一定程度即可判断出是利用终端在进行通话,进而控制终端屏幕灭屏以节省能量;当物体远离终端达到一定程度时,说明不是在使用终端进行通话,进而控制终端进行正常操作。
如图1所示,为相关技术中距离传感器通过接收反射回来的红外光进行物体接近或远离移动终端判断的示意图。终端通过距离传感器发射红外光及接收反射回来的红外光采集物体与移动终端之间的红外光信号的采样值,确定其底噪值101,底噪值是指在移动终端上没有任何遮挡的情况下获取的距离传感器的采样值,可以作为判断物体与该移动终端远近及接近的基准,并将所述采样值与预先设定的远离阈值102及接近阈值103进行比较,当采样值不小于接近阈值,判断为接近事件发生;当采样值不大于远离阈值,判断为远离事件发生。
然而,在实际使用过程中,总会出现一些污渍(如油污等)粘附在终端上距离传感器位置的情况,此时,终端系统可能会错误地判断为是物体接近终端的操作,进而控制终端进入灭屏节能的模式,而在终端就会控制屏幕上一直处于防误触状态,使得终端无法进入到正常的操作界面,影响了用户对终端的操作体验。如图2所示,为相关技术中粘附污渍的距离传感器通过接收反射回来的红外光进行物体接近或远离移动终端判断的示意图。其中,原始底噪值101为未粘附污渍的正常底噪值,当新底噪值201大于远离阈值102时,通过距离传感器采集到的红外光采样值会大于接近阈值103,而应该是实际远离的采样值202,
由此误报接近事件,导致终端无法进入正常的操作界面。
因此,提供一种对移动终端上距离传感器防污的处理方法是本领域亟待解决的问题。
发明内容
有鉴于此,本公开提供了一种在移动终端上进行距离传感器防污的方法及系统,能够在移动终端上距离传感器粘附污渍时准确判断物体距离。
本公开提出一种在移动终端上进行距离传感器防污的方法,包括:
接收移动终端上距离传感器发送的距离采样值信号;
从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值;
将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较;
当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值;
当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值;以及
将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。
可选地,其中,所述当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值,包括:
计算所述底噪值的方差,当所述方差小于稳定方差值时,计算所述底噪值的平均底噪值;
其中,所述稳定方差值为用户根据实际需要预先设定的。
可选地,其中,该方法进一步包括:
当所述方差大于稳定方差值时,则放弃在移动终端上进行的距离传感器防污操作。
可选地,其中,该方法进一步包括:
若所述实际底噪值小于所述远离阈值或大于所述接近阈值,当实际距离采样值不小于所述接近阈值,则控制进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则控制不进入防误触操作模式。
可选地,其中,该方法进一步包括:
检测到所述距离传感器上有采样值信号时,唤醒所述距离传感器采集距离采样值信号;
检测到所述距离传感器上无采样值信号时,控制所述距离传感器进入休眠状态。
另一方面,本公开还提供一种在移动终端上进行距离传感器防污的系统,包括:接收模块、解析模块、比较模块、第一处理模块、第二处理模块及第三处理模块;其中,
所述接收模块,设置为接收移动终端上距离传感器发送的距离采样值信号;
所述解析模块,设置为从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值;
所述比较模块,设置为将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较;
所述第一处理模块,设置为当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值;
所述第二处理模块,设置为当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值;
所述第三处理模块,设置为将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。
可选地,其中,所述第二处理模块,设置为:
计算所述底噪值的方差,当所述方差小于稳定方差值时,计算所述底噪值的平均底噪值;
其中,所述稳定方差值为用户根据实际需要预先设定的。
可选地,其中,第二处理模块,设置为:
所述方差大于稳定方差值时,当实际距离采样值不小于所述接近阈值,则进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则不进入防误触操作模式。
可选地,其中,所述第一处理模块,设置为:
若所述实际底噪值小于所述远离阈值或大于所述接近阈值,当实际距离采样值不小于所述接近阈值,则控制进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则控制不进入防误触操作模式。
可选地,其中,该系统还包括:唤醒模块,所述唤醒模块设置为:
检测到所述距离传感器上有采样值信号时,唤醒所述距离传感器采集距离采样值信号;
检测到所述距离传感器上无采样值信号时,控制所述距离传感器进入休眠状态。
又一方面,提供了一种非暂态存储介质,存储有计算机可执行指令,所述
计算机可执行指令设置为执行上述的在移动终端上进行距离传感器防污的方法。
根据本公开的又一方面,提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的在移动终端上进行距离传感器防污的方法。
根据本公开的又一方面,提供了一种电子设备,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行上述的在移动终端上进行距离传感器防污的方法。
本公开所述的在移动终端上进行距离传感器防污的方法及系统,在移动终端的距离传感器粘附污渍时,通过实际底噪值及实际距离采样值之间的绝对距离比较判断距离传感器的检测结果,能够准确判断物体到移动终端的距离变化,可以在距离传感器粘附有少量污渍的情况下还能正常判定远离事件的发生,防止将其误判为接近事件,避免移动终端误进入防误触模式而导致的不能正常操作情形。
本公开所述的在移动终端上进行距离传感器防污的方法及系统,通过底噪值稳定性的判断,排除其它特殊条件对距离传感器的偶然影响,确保是在距离传感器粘附有污渍的情况下才进行防污处理,提升了在移动终端上进行距离传感器防污处理的准确性。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。图1为相关技术移动终端上距离传感器通过接收反射回来的红外光进行物体接近或远离移动终端判断的示意图;
图2为相关技术移动终端上粘附污渍的距离传感器通过接收反射回来的红外光进行物体接近或远离移动终端判断的示意图;
图3为本公开的在移动终端上进行距离传感器防污的方法的一个可选实施例的步骤示意图;
图4为本公开实施例2所述的在移动终端上进行距离传感器防污的方法步骤示意图;
图5为本公开实施例2所述的在移动终端上进行距离传感器防污的方法流程示意图;
图6为本公开实施例2的在移动终端上粘附污渍的距离传感器通过接收反射回来的红外光进行物体接近或远离移动终端判断的示意图;
图7为本公开的在移动终端上进行距离传感器防污的系统结构示意图;
图8为本公开实施例提供的电子设备的结构框图。
以下结合说明书附图对本公开的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本公开,并不用于限定本公开,并且在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
<实施例1>
如图3所示,为本公开的在移动终端上进行距离传感器防污的方法的一个可选实施例的步骤示意图。本公开利用实际底噪值及实际距离采样值之间的绝对距离比较判断距离传感器的检测结果,准确地判断物体到移动终端的距离变化,进而达到避免因移动终端上距离传感器粘附污渍导致误判为物体接近移动终端造成的移动终端不能正常操作事件。本实施例中所述在移动终端上进行距离传感器防污的方法包括以下步骤:
步骤301、接收移动终端上距离传感器发送的距离采样值信号。
距离传感器通过发射特定频率的红外光,并利用与该特定频率相对应的频率接收所发射的红外光经过物体反射回来的反射红外光,经过内部的模拟数字转换器(ADC)转换为数字信号,即距离采样值信号。移动终端的操作系统接收所采集到的距离采样值信号以进行后续的信号数据处理获得移动终端检测到物体的准确距离。
步骤302、从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值。
由于在移动终端上距离传感器可能粘附有污渍,会导致距离传感器实际的底噪值与原始的底噪值有偏差,而采集得到的实际距离采样值也是相对于实际的底噪值而产生的绝对距离值。通过本步骤将从距离传感器采集到的距离采样值信号解析为移动终端系统能够用来进行处理的数据格式,方便后续计算及判
断。
步骤303、将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较。
在移动终端上距离传感器可能粘附有污渍,会导致距离传感器实际的底噪值与原始的底噪值有偏差,而如果实际底噪值恰好落在距离传感器的远离阈值及接近阈值之间时,就可能会发生将非接近事件误判为接近事件,致使移动终端自动进入防误触模式,导致移动终端无法使用。通过实际底噪值与远离阈值及接近阈值的比较,先确定是否处于误判区域,有利于后续操作。
步骤304、当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值。步骤304中,预定数量优选为5-10个,当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集5-10个的距离采样值信号,并从中解析出相应的底噪值。
通过实际底噪值与远离阈值及接近阈值的比较,发现物体与移动终端的距离检测处于误判区域时,再采集几个底噪值,以排除因为偶然因素造成的误差影响,提高本距离传感器防污处理方法的准确性。
步骤305、当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值。
当采集到的多个底噪值处于稳定状态时,说明确实是存在妨碍距离传感器检测的稳定影响因素,以此排除某次偶然检测误差造成底噪值检测不准的情况。
步骤306、将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。
在本步骤中,所述预定阈值由用户根据实际使用体验进行设定,当实际距
离采样值与所述平均底噪值之间的距离低于预定阈值,说明了移动终端的距离传感器由于粘附污渍而误将远离事件检测为接近事件,如果不进行阻止,移动终端系统就会按照预先设定进入防误触操作模式,进而导致移动终端的操作不能正常进行。
在本实施例中,在移动终端的距离传感器粘附污渍时,通过实际底噪值及实际距离采样值之间的绝对距离比较判断距离传感器的检测结果,能够准确判断物体到移动终端的距离变化,能够避免因检测误差造成的移动终端不能正常操作的问题。
<实施例2>
如图4所示,本公开实施例2所述的在移动终端上进行距离传感器防污的方法步骤示意图。在本实施例中,设置了底噪值稳定性判断及根据实际底噪值判断结果进行系统操作处理的具体方法。本实施例中在移动终端上进行距离传感器防污的方法包括以下步骤:
步骤401、检测到所述距离传感器上有采样值信号时,唤醒所述距离传感器采集距离采样值信号。
步骤402、接收移动终端上距离传感器发送的距离采样值信号。
步骤403、从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值。
步骤404、将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较。
步骤405、若所述实际底噪值小于所述远离阈值或大于所述接近阈值,当实际距离采样值不小于所述接近阈值时,则控制进入防误触操作模式;当实际距
离采样值不大于所述远离阈值时,则控制不进入防误触操作模式。
步骤406、当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值。步骤406中,预定数量优选为5-10个,当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集5-10个的距离采样值信号,并从中解析出相应的底噪值。
步骤407、当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值。
优选地,计算所述底噪值的方差,当所述方差小于稳定方差值时,计算所述底噪值的平均底噪值;
其中,所述稳定方差值为用户根据实际需要预先设定的。
步骤408、当所述方差大于稳定方差值时,当实际距离采样值不小于所述接近阈值,则进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则不进入防误触操作模式。
步骤409、将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。所述预定阈值由用户根据实际使用体验进行设定。
步骤410、检测到所述距离传感器上无采样值信号时,控制所述距离传感器进入休眠状态。
结合图5所示,为本实施例所述的在移动终端上进行距离传感器防污的方法流程示意图,体现出了本实施例方案的流程原理,包括如下步骤:
步骤501、获取移动终端距离传感器的实际底噪值。
步骤502、比较所述实际底噪值与所述距离传感器的远离阈值及接近阈值大小。
步骤503、当所述实际底噪值大于所述距离传感器的远离阈值且小于接近阈值时,移动终端系统进入防污渍模式。
步骤504、再基于所述距离传感器获取一定数量的底噪值并确定其稳定性。
步骤505、将所述距离传感器上的距离采样值与稳定的底噪值比较,两者之间的距离超过特定范围时,判断远离时间发生,控制系统不进入防误触操作模式。
图6为本公开实施例2的在移动终端上粘附污渍的距离传感器通过接收反射回来的红外光进行物体接近或远离移动终端判断的示意图。其中,原始底噪值101为未粘附污渍的正常底噪值,当新底噪值201大于远离阈值102时,通过距离传感器采集到的红外光采样值会大于接近阈值103,而应该是实际远离的采样值202,当所述实际远离的采样值202与所述新底噪值201之间的距离601低于预定阈值时,控制系统不进入防误触操作模式。
本实施例的在移动终端上进行距离传感器防污的方法,使用可唤醒的距离传感器来检测物体与移动终端的距离变化,通过在需要时才唤醒进行相关解析处理,不需要时处于休眠状态的形式,还可以节约资源,延长距离传感器的使用寿命。
<实施例3>
如图7所示,为本实施例中公开的在移动终端上进行距离传感器防污的系统的一个可选实施例的结构示意图。本实施例中所述的在移动终端上进行距离传感器防污的系统包括:接收模块701、解析模块702、比较模块703、第一处理模块704、第二处理模块705及第三处理模块706。
所述接收模块701,与所述解析模块702相耦接,设置为接收移动终端上距
离传感器发送的距离采样值信号。
所述解析模块702,与所述接收模块701及解析模块702相耦接,设置为从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值。
所述比较模块703,与所述解析模块702及第一处理模块704相耦接,设置为将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较。
所述第一处理模块704,与所述比较模块703及第二处理模块705相耦接,设置为当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值;其中,预定数量优选为5-10个。
所述第二处理模块705,与所述第一处理模块704及第三处理模块706相耦接,设置为当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值。
所述第三处理模块706,与所述第二处理模块705相耦接,设置为将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。所述预定阈值由用户根据实际使用体验进行设定。
在本实施例中,所述第二处理模块705设置为:
计算所述底噪值的方差,当所述方差小于稳定方差值时,计算所述底噪值的平均底噪值;
其中,所述稳定方差值为用户根据实际需要预先设定的。
第二处理模块705设置为:
当所述方差大于稳定方差值时,当实际距离采样值不小于所述接近阈值,则进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则不进入防
误触操作模式。
所述第一处理模块704设置为:
若所述实际底噪值小于所述远离阈值或大于所述接近阈值,当实际距离采样值不小于所述接近阈值,则控制进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则控制不进入防误触操作模式。
可选地,本实施例的在移动终端上进行距离传感器防污的系统还包括:唤醒模块707,所述唤醒模块707,与所述接收模块701相耦接,设置为:检测到所述距离传感器上有采样值信号时,唤醒所述距离传感器采集距离采样值信号;
检测到所述距离传感器上无采样值信号时,控制所述距离传感器进入休眠状态。
本公开还提供了一种非暂态存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述实施例的在移动终端上进行距离传感器防污的方法。
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述实施例的在移动终端上进行距离传感器防污的方法。
本公开还提供了一种电子设备。图8是本公开实施例提供的电子设备的结构框图。该电子设备可以包括:处理器(processor)801和存储器(memory)803,还可以包括通信接口(Communications Interface)802和总线804。其中,处理器801、通信接口802、存储器803可以通过总线804完成相互间的通信。通信接口802可以用于信息传输。处理器801可以调用存储器803中的逻辑指令,以执行上述实施例的在移动终端上进行距离传感器防污的方法。
此外,上述的存储器803中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,也可以是暂态存储介质。
本公开的在移动终端上进行距离传感器防污的方法及系统的有益效果是:
(1)本公开所述的在移动终端上进行距离传感器防污的方法及系统,在移动终端的距离传感器粘附污渍时,通过实际底噪值及实际距离采样值之间的绝对距离比较判断距离传感器的检测结果,能够准确判断物体到移动终端的距离变化,可以在距离传感器粘附有少量污渍的情况下还能正常判定远离事件的发生,防止将其误判为接近事件,避免移动终端误进入防误触模式而导致的不能正常操作情形。
(2)本公开所述的在移动终端上进行距离传感器防污的方法及系统,通过底噪值稳定性的判断,排除其它特殊条件对距离传感器的偶然影响,确保是在距离传感器粘附有污渍的情况下才进行防污处理,提升了在移动终端上进行距离传感器防污处理的准确性。
以上仅为本公开的部分实施例,并非因此限制本公开的专利范围,凡是利用本公开说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本公开的专利保护范围内。
本公开所述的在移动终端上进行距离传感器防污的方法及系统,在移动终端的距离传感器粘附污渍时,通过实际底噪值及实际距离采样值之间的绝对距离比较判断距离传感器的检测结果,能够准确判断物体到移动终端的距离变化,可以在距离传感器粘附有少量污渍的情况下还能正常判定远离事件的发生,防止将其误判为接近事件,避免移动终端误进入防误触模式而导致的不能正常操作情形。
本公开所述的在移动终端上进行距离传感器防污的方法及系统,通过底噪值稳定性的判断,排除其它特殊条件对距离传感器的偶然影响,确保是在距离传感器粘附有污渍的情况下才进行防污处理,提升了在移动终端上进行距离传感器防污处理的准确性。
Claims (13)
- 一种在移动终端上进行距离传感器防污的方法,包括:接收移动终端上距离传感器发送的距离采样值信号;从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值;将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较;当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值;当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值;以及将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。
- 根据权利要求1所述的在移动终端上进行距离传感器防污的方法,其中,所述当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值,包括:计算所述底噪值的方差,当所述方差小于稳定方差值时,计算所述底噪值的平均底噪值;其中,所述稳定方差值为用户根据实际需要预先设定的。
- 根据权利要求2所述的在移动终端上进行距离传感器防污的方法,还包括:当所述方差大于稳定方差值时,则放弃在移动终端上进行的距离传感器防污操作。
- 根据权利要求1所述的在移动终端上进行距离传感器防污的方法,还包括:若所述实际底噪值小于所述远离阈值或大于所述接近阈值,当实际距离采样值不小于所述接近阈值,则控制进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则控制不进入防误触操作模式。
- 根据权利要求1-4中任一项所述的在移动终端上进行距离传感器防污的方法,还包括:检测到所述距离传感器上有采样值信号时,唤醒所述距离传感器采集距离采样值信号;检测到所述距离传感器上无采样值信号时,控制所述距离传感器进入休眠状态。
- 一种在移动终端上进行距离传感器防污的系统,包括:接收模块、解析模块、比较模块、第一处理模块、第二处理模块及第三处理模块;其中,所述接收模块,设置为接收移动终端上距离传感器发送的距离采样值信号;所述解析模块,设置为从所述距离采样值信号中解析出所述距离传感器的实际底噪值及实际距离采样值;所述比较模块,设置为将所述实际底噪值与所述距离传感器的远离阈值及接近阈值进行比较;所述第一处理模块,设置为当所述实际底噪值大于所述远离阈值且小于所述接近阈值时,再采集预定数量的距离采样值信号,并从中解析出相应的底噪值;所述第二处理模块,设置为当判断到所解析出的底噪值稳定时,计算所述底噪值的平均底噪值;所述第三处理模块,设置为将所述实际距离采样值与所述平均底噪值进行比较,当判断到所述实际距离采样值与所述平均底噪值之间的距离低于预定阈值时,控制系统不进入防误触操作模式。
- 根据权利要求6所述的在移动终端上进行距离传感器防污的系统,其中,所述第二处理模块,设置为:计算所述底噪值的方差,当所述方差小于稳定方差值时,计算所述底噪值的平均底噪值;其中,所述稳定方差值为用户根据实际需要预先设定的。
- 根据权利要求7所述的在移动终端上进行距离传感器防污的系统,其中,第二处理模块,设置为:所述方差大于稳定方差值时,当实际距离采样值不小于所述接近阈值,则进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则不进入防误触操作模式。
- 根据权利要求6所述的在移动终端上进行距离传感器防污的系统,其中,所述第一处理模块,设置为:若所述实际底噪值小于所述远离阈值或大于所述接近阈值,当实际距离采样值不小于所述接近阈值,则控制进入防误触操作模式;当实际距离采样值不大于所述远离阈值,则控制不进入防误触操作模式。
- 根据权利要求6-9中任一项所述的在移动终端上进行距离传感器防污的系统,还包括:唤醒模块,所述唤醒模块设置为:检测到所述距离传感器上有采样值信号时,唤醒所述距离传感器采集距离采样值信号;检测到所述距离传感器上无采样值信号时,控制所述距离传感器进入休眠状态。
- 一种非暂态存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-5任一项所述的在移动终端上进行距离传感器防污的方法。
- 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-5任一项所述的在移动终端上进行距离传感器防污的方法。
- 一种电子设备,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行权利要求1-5任一项所述的在移动终端上进行距离传感器防污的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610282742.7 | 2016-04-29 | ||
| CN201610282742.7A CN106019260A (zh) | 2016-04-29 | 2016-04-29 | 在移动终端上进行距离传感器防污的方法及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017185701A1 true WO2017185701A1 (zh) | 2017-11-02 |
Family
ID=57082058
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/103851 Ceased WO2017185701A1 (zh) | 2016-04-29 | 2016-10-28 | 在移动终端上进行距离传感器防污的方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106019260A (zh) |
| WO (1) | WO2017185701A1 (zh) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111337994A (zh) * | 2018-12-19 | 2020-06-26 | 合肥欣奕华智能机器有限公司 | 一种基准值校准的方法和设备 |
| CN111398970A (zh) * | 2018-12-28 | 2020-07-10 | 北京小米移动软件有限公司 | 事件检测方法、距离传感器及终端 |
| CN112462928A (zh) * | 2019-09-06 | 2021-03-09 | 北京小米移动软件有限公司 | 操作执行方法、装置及存储介质 |
| WO2021147766A1 (zh) * | 2020-01-21 | 2021-07-29 | 维沃移动通信有限公司 | 电子设备和底噪校准方法 |
| CN113821116A (zh) * | 2020-06-19 | 2021-12-21 | 北京小米移动软件有限公司 | 屏幕控制方法及装置、存储介质 |
| CN115119238A (zh) * | 2021-03-17 | 2022-09-27 | 中国科学院上海微系统与信息技术研究所 | 基于传感器邻居信息的信息处理方法、系统、介质及传感器节点 |
| CN115834762A (zh) * | 2022-11-01 | 2023-03-21 | 深圳市穗晶半导体有限公司 | 一种距离传感器的控制方法、系统、装置及存储介质 |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106019260A (zh) * | 2016-04-29 | 2016-10-12 | 乐视控股(北京)有限公司 | 在移动终端上进行距离传感器防污的方法及系统 |
| CN107219515A (zh) * | 2017-05-25 | 2017-09-29 | 深圳市金立通信设备有限公司 | 一种距离传感器的参数校准方法及终端 |
| CN109428961A (zh) * | 2017-08-29 | 2019-03-05 | 中兴通讯股份有限公司 | 一种接近光感的处理方法及移动终端 |
| CN108267728A (zh) * | 2018-01-23 | 2018-07-10 | 北京小米移动软件有限公司 | 距离传感器的校准方法、装置、设备及存储介质 |
| CN109001712B (zh) * | 2018-07-05 | 2023-03-17 | 合肥联宝信息技术有限公司 | 一种红外线距离传感器校准方法及智能家电 |
| CN113671512B (zh) * | 2020-05-14 | 2024-01-30 | 北京小米移动软件有限公司 | 接近传感器角度调整方法、装置及存储介质 |
| CN112101340B (zh) * | 2020-11-16 | 2021-02-05 | 展讯通信(上海)有限公司 | 一种屏幕污渍识别方法及装置 |
| CN116465342B (zh) * | 2023-04-20 | 2026-03-13 | 展讯通信(上海)有限公司 | 位置关系判断方法、装置及设备 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8030914B2 (en) * | 2008-12-29 | 2011-10-04 | Motorola Mobility, Inc. | Portable electronic device having self-calibrating proximity sensors |
| CN102265252A (zh) * | 2011-06-24 | 2011-11-30 | 华为终端有限公司 | 一种调整红外接近传感器的感知阈值的方法和装置 |
| CN102411425A (zh) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | 控制触摸屏功能的方法和装置 |
| CN106019260A (zh) * | 2016-04-29 | 2016-10-12 | 乐视控股(北京)有限公司 | 在移动终端上进行距离传感器防污的方法及系统 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101495164B1 (ko) * | 2008-04-10 | 2015-02-24 | 엘지전자 주식회사 | 이동단말기 및 그 화면 처리 방법 |
| CN103561165B (zh) * | 2013-10-18 | 2015-06-17 | 广东欧珀移动通信有限公司 | 防止贴膜影响接近传感器正常工作的方法与装置 |
| CN105025159B (zh) * | 2015-06-05 | 2018-04-17 | 广东欧珀移动通信有限公司 | 接近传感器调节方法及装置 |
-
2016
- 2016-04-29 CN CN201610282742.7A patent/CN106019260A/zh active Pending
- 2016-10-28 WO PCT/CN2016/103851 patent/WO2017185701A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8030914B2 (en) * | 2008-12-29 | 2011-10-04 | Motorola Mobility, Inc. | Portable electronic device having self-calibrating proximity sensors |
| CN102265252A (zh) * | 2011-06-24 | 2011-11-30 | 华为终端有限公司 | 一种调整红外接近传感器的感知阈值的方法和装置 |
| CN102411425A (zh) * | 2011-07-22 | 2012-04-11 | 华为终端有限公司 | 控制触摸屏功能的方法和装置 |
| CN106019260A (zh) * | 2016-04-29 | 2016-10-12 | 乐视控股(北京)有限公司 | 在移动终端上进行距离传感器防污的方法及系统 |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111337994A (zh) * | 2018-12-19 | 2020-06-26 | 合肥欣奕华智能机器有限公司 | 一种基准值校准的方法和设备 |
| CN111398970A (zh) * | 2018-12-28 | 2020-07-10 | 北京小米移动软件有限公司 | 事件检测方法、距离传感器及终端 |
| CN111398970B (zh) * | 2018-12-28 | 2022-04-22 | 北京小米移动软件有限公司 | 事件检测方法、距离传感器及终端 |
| CN112462928A (zh) * | 2019-09-06 | 2021-03-09 | 北京小米移动软件有限公司 | 操作执行方法、装置及存储介质 |
| CN112462928B (zh) * | 2019-09-06 | 2024-03-26 | 北京小米移动软件有限公司 | 操作执行方法、装置及存储介质 |
| WO2021147766A1 (zh) * | 2020-01-21 | 2021-07-29 | 维沃移动通信有限公司 | 电子设备和底噪校准方法 |
| CN113821116A (zh) * | 2020-06-19 | 2021-12-21 | 北京小米移动软件有限公司 | 屏幕控制方法及装置、存储介质 |
| CN115119238A (zh) * | 2021-03-17 | 2022-09-27 | 中国科学院上海微系统与信息技术研究所 | 基于传感器邻居信息的信息处理方法、系统、介质及传感器节点 |
| CN115834762A (zh) * | 2022-11-01 | 2023-03-21 | 深圳市穗晶半导体有限公司 | 一种距离传感器的控制方法、系统、装置及存储介质 |
| CN115834762B (zh) * | 2022-11-01 | 2024-04-05 | 深圳市穗晶半导体有限公司 | 一种距离传感器的控制方法、系统、装置及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106019260A (zh) | 2016-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017185701A1 (zh) | 在移动终端上进行距离传感器防污的方法及系统 | |
| CN105025159B (zh) | 接近传感器调节方法及装置 | |
| US9970966B2 (en) | Method, device and computer storage medium for detecting power consumption of an application | |
| CN106200989B (zh) | 一种移动终端亮屏的方法及装置 | |
| US9329676B2 (en) | Control method and electronic device | |
| CN105630227B (zh) | 一种触摸屏灵敏度的调整方法及系统 | |
| CN103561165B (zh) | 防止贴膜影响接近传感器正常工作的方法与装置 | |
| CN105445812B (zh) | 一种人体传感器检测方法及装置 | |
| CN102883061A (zh) | 一种移动终端控制触摸屏工作状态的方法及系统 | |
| CN115550615B (zh) | 智能设备的录像方法及装置、电子设备和存储介质 | |
| CN104423859A (zh) | 触摸屏解锁方法、触摸屏解锁系统及电子设备 | |
| CN103024197A (zh) | 可防止通话时误操作的触摸屏手机及其使用方法 | |
| CN104007878A (zh) | 防止触摸屏终端误操作的方法和装置 | |
| CN105959492A (zh) | 一种红外接近传感器的控制方法、装置及移动终端 | |
| TW201523443A (zh) | 電子裝置作業系統自動喚醒方法及系統 | |
| CN106662970A (zh) | 一种设置指纹识别器中断阈值的方法、装置和终端设备 | |
| WO2023231968A1 (zh) | 智能锁的控制方法、智能锁控制系统和智能锁 | |
| CN103257708A (zh) | 一种唤醒移动终端屏幕的方法及移动终端 | |
| CN111669681B (zh) | 智能音响的控制方法、设备及存储介质 | |
| CN114987368B (zh) | 车辆静态电流的控制方法、装置、电子设备和存储介质 | |
| WO2017185702A1 (zh) | 基于压力传感器进行音量控制的方法及系统 | |
| CN112148105B (zh) | 一种门禁系统唤醒方法及装置 | |
| US20190087381A1 (en) | Method and apparatus for controlling serial peripheral interface of fingerprint sensor, and mobile terminal | |
| WO2015103840A1 (zh) | 自动休眠方法、移动终端及计算机存储介质 | |
| CN109739339B (zh) | 控制方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16900209 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16900209 Country of ref document: EP Kind code of ref document: A1 |