CN112995410B - Proximity detection method and related equipment - Google Patents
Proximity detection method and related equipment Download PDFInfo
- Publication number
- CN112995410B CN112995410B CN202110182333.0A CN202110182333A CN112995410B CN 112995410 B CN112995410 B CN 112995410B CN 202110182333 A CN202110182333 A CN 202110182333A CN 112995410 B CN112995410 B CN 112995410B
- Authority
- CN
- China
- Prior art keywords
- target object
- distance
- electronic device
- screen
- display screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/22—Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本申请涉及电子技术领域,尤其涉及一种接近检测方法及相关设备。The present application relates to the field of electronic technology, and in particular, to a proximity detection method and related equipment.
背景技术Background technique
随着电子设备(如智能手机等)技术的迅速发展,以及越来越普及,现已成为用户日常生活中不可缺少的电子产品。通常电子设备会配置有一些传感器,比如接近传感器,环境光传感器、陀螺仪等等。接近传感器主要用于检测是否有目标物体接近触控显示屏。With the rapid development and popularization of electronic devices (such as smart phones, etc.) technology, they have become indispensable electronic products in the daily life of users. Usually electronic devices are equipped with some sensors, such as proximity sensors, ambient light sensors, gyroscopes, and so on. Proximity sensors are mainly used to detect whether a target object is approaching the touch screen.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种接近检测方法及相关设备,用于提升检测精度。Embodiments of the present application provide a proximity detection method and related equipment, which are used to improve detection accuracy.
第一方面,本申请实施例提供一种电子设备,包括接近传感器、触控显示屏和控制电路,所述接近传感器置于所述触控显示屏下方,其中:In a first aspect, an embodiment of the present application provides an electronic device, including a proximity sensor, a touch display screen, and a control circuit, wherein the proximity sensor is placed below the touch display screen, wherein:
所述控制电路,用于在第一时刻,通过所述接近传感器确定目标物体与所述触控显示屏的第一距离;The control circuit is used to determine the first distance between the target object and the touch display screen through the proximity sensor at a first moment;
所述控制电路,还用于在第二时刻,通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻;The control circuit is further configured to determine a second distance between the target object and the touch display screen by using a proximity sensor at a second moment, the first moment being earlier than the second moment;
所述控制电路,还用于在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。The control circuit is further configured to determine that the target object approaches the touch display screen when the difference between the first distance and the second distance is greater than or equal to a first threshold.
第二方面,本申请实施例提供一种接近检测方法,应用于包括接近传感器和触控显示屏的电子设备,所述接近传感器置于所述触控显示屏下方,所述方法包括:In a second aspect, an embodiment of the present application provides a proximity detection method, which is applied to an electronic device including a proximity sensor and a touch display screen, where the proximity sensor is placed under the touch display screen, and the method includes:
在第一时刻,通过接近传感器确定目标物体与所述触控显示屏的第一距离;At the first moment, the first distance between the target object and the touch display screen is determined by the proximity sensor;
在第二时刻,通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻;at a second moment, determining a second distance between the target object and the touch display screen by a proximity sensor, and the first moment is earlier than the second moment;
在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。When the difference between the first distance and the second distance is greater than or equal to a first threshold, it is determined that the target object moves close to the touch display screen.
第三方面,本申请实施例提供一种接近检测装置,应用于包括接近传感器和触控显示屏的电子设备,所述接近传感器置于所述触控显示屏下方,所述接近检测装置包括:In a third aspect, an embodiment of the present application provides a proximity detection device, which is applied to an electronic device including a proximity sensor and a touch display screen, the proximity sensor is placed under the touch display screen, and the proximity detection device includes:
第一确定单元,用于在第一时刻,通过接近传感器确定目标物体与所述触控显示屏的第一距离;在第二时刻,通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻;a first determining unit, configured to determine the first distance between the target object and the touch display screen through a proximity sensor at a first moment; at a second moment, determine the target object and the touch display screen through a proximity sensor the second distance, the first moment is earlier than the second moment;
第二确定单元,用于在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。A second determining unit, configured to determine that the target object approaches the touch display screen when the difference between the first distance and the second distance is greater than or equal to a first threshold.
第四方面,本申请实施例提供一种电子设备,包括接近传感器、触控显示屏、处理器、存储器、通信接口、以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面所述的方法中的步骤的指令。In a fourth aspect, an embodiment of the present application provides an electronic device, including a proximity sensor, a touch display screen, a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the above in the memory and configured to be executed by the above-mentioned processor, and the above-mentioned program includes instructions for executing the steps in the method described in the second aspect of the embodiments of the present application.
第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第二方面所述的方法中所描述的部分或全部步骤。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the computer program as described in the first embodiment of the present application. Part or all of the steps described in the method described in the second aspect.
第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面所述的方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in the present application. For example, some or all of the steps described in the method described in the second aspect. The computer program product may be a software installation package.
可以看出,在本申请实施例中,在目标物体已经与触控显示屏处于接近状态的情况下,电子设备通过接近传感器检测目标物体与触控显示屏的距离,在目标物体与触控显示屏的距离变小超过设定值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。可见,通过距离的变化量判断目标物体是否发生接近动作,可排除细微变化的情况,提升检测精度。It can be seen that in the embodiment of the present application, when the target object is already in a state of proximity to the touch display screen, the electronic device detects the distance between the target object and the touch display screen through the proximity sensor, and the electronic device detects the distance between the target object and the touch display screen through the proximity sensor, and the When the distance of the screen becomes smaller than the set value, it is determined that the target object moves close to the touch display screen. It can be seen that by judging whether the target object is approaching by the change in distance, subtle changes can be excluded and the detection accuracy can be improved.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请实施提供的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by the implementation of the present application;
图2A是本申请实施提供的一种接近检测方法的流程示意图;2A is a schematic flowchart of a proximity detection method provided by the implementation of the present application;
图2B是本申请实施例提供的一种重力传感器的结构示意图;FIG. 2B is a schematic structural diagram of a gravity sensor provided by an embodiment of the present application;
图2C是本申请实施例提供的一种电子设备处于AOD模式的显示示意图;2C is a schematic display diagram of an electronic device in an AOD mode provided by an embodiment of the present application;
图3是本申请实施提供的另一种接近检测方法的流程示意图;3 is a schematic flowchart of another proximity detection method provided by the implementation of the present application;
图4是本申请实施提供的另一种电子设备的结构示意图;4 is a schematic structural diagram of another electronic device provided by the implementation of the present application;
图5是本申请实施提供的一种接近检测装置的结构示意图。FIG. 5 is a schematic structural diagram of a proximity detection device provided by the implementation of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
以下分别进行详细说明。Each of them will be described in detail below.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备(例如智能手表、智能手环、计步器等)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。Electronic devices may include various handheld devices with wireless communication capabilities, in-vehicle devices, wearable devices (eg, smart watches, smart bracelets, pedometers, etc.), computing devices or other processing devices connected to wireless modems, and various In the form of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as electronic devices.
请参阅图1,图1是本申请实施例提供了一种电子设备的结构示意图,电子设备为全面屏电子设备,电子设备包括控制电路和输入-输出电路,输入输出电路与控制电路连接,输入-输出电路包括接近传感器和触控显示屏,接近传感器置于所述触控显示屏下方,其中:Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device is a full-screen electronic device. The electronic device includes a control circuit and an input-output circuit. The input and output circuits are connected to the control circuit. -The output circuit includes a proximity sensor and a touch screen, the proximity sensor is placed below the touch screen, wherein:
控制电路,用于在第一时刻,通过所述接近传感器确定目标物体与所述触控显示屏的第一距离;a control circuit, configured to determine a first distance between a target object and the touch display screen through the proximity sensor at a first moment;
控制电路,还用于在第二时刻,通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻;a control circuit, further configured to determine a second distance between the target object and the touch display screen through a proximity sensor at a second moment, where the first moment is earlier than the second moment;
控制电路,还用于在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。The control circuit is further configured to determine that the target object approaches the touch display screen when the difference between the first distance and the second distance is greater than or equal to a first threshold.
其中,控制电路可以包括存储和处理电路。该存储和处理电路可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制电子设备的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。Among them, the control circuit may include storage and processing circuits. The storage and processing circuitry may be memory, such as hard disk drive memory, non-volatile memory (such as flash memory or other electronically programmable read-only memory used to form solid state drives, etc.), volatile memory (such as static or dynamic random access) memory, etc.), etc., which are not limited in the embodiments of the present application. The processing circuitry in the storage and processing circuitry may be used to control the operation of the electronic device. The processing circuit may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
存储和处理电路可用于运行电子设备中的软件,例如接近检测应用程序,亮屏应用程序,熄屏应用程序,音频播放应用程序、互联网协议语音(Voice over InternetProtocol,VOIP)电话呼叫应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于接近传感器的接近检测,亮屏操作,熄屏操作,音频播放,电话呼叫,以及电子设备中的其它功能等,本申请实施例不作限制。Storage and processing circuits may be used to run software in electronic devices, such as proximity detection applications, screen-on applications, screen-off applications, audio playback applications, Voice over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc. These software can be used to perform some control operations, for example, proximity detection based on proximity sensors, screen-on operation, screen-off operation, audio playback, phone calls, and other functions in electronic devices, which are not limited in this embodiment of the present application.
其中,输入-输出电路可用于使电子设备实现数据的输入和输出,即允许电子设备从外部设备接收数据和也允许电子设备将数据从电子设备输出至外部设备。Among them, the input-output circuit can be used to enable the electronic device to input and output data, that is, to allow the electronic device to receive data from an external device and to allow the electronic device to output data from the electronic device to the external device.
其中,接近传感器可以是红外接近传感器。输入-输出电路可以进一步还包括其他传感器,比如环境光传感器,触控传感器(例如,基于光触控传感器和/或电容式触控传感器,其中,触控传感器可以是触控触控显示屏的一部分,也可以作为一个触控传感器结构独立使用),加速度传感器,重力传感器和其它传感器等。Wherein, the proximity sensor may be an infrared proximity sensor. The input-output circuit may further include other sensors, such as an ambient light sensor, a touch sensor (eg, based on a light touch sensor and/or a capacitive touch sensor, wherein the touch sensor may be a touch-sensitive display screen) It can also be used independently as a touch sensor structure), acceleration sensor, gravity sensor and other sensors.
触控显示屏可以包括液晶显示屏,有机发光二极管显示屏,电子墨水显示屏,等离子显示屏,使用其它显示技术的显示屏中一种或者几种的组合。触控显示屏可以包括触控传感器阵列。触控传感器可以是由透明的触控传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触控传感器,或者可以是使用其它触控技术形成的触控传感器,例如音波触控,压敏触控,电阻触控,光学触控等,本申请实施例不作限制。The touch display screen may include one or a combination of a liquid crystal display screen, an organic light emitting diode display screen, an electronic ink display screen, a plasma display screen, and a display screen using other display technologies. The touch display may include an array of touch sensors. The touch sensor may be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (eg, indium tin oxide (ITO) electrodes), or may be a touch sensor formed using other touch technologies, such as sonic touch, Pressure-sensitive touch, resistive touch, optical touch, etc., are not limited in the embodiments of the present application.
输入-输出电路还可以进一步包括音频组件。音频组件可以用于为电子设备提供音频输入和输出功能。电子设备中的音频组件可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。The input-output circuit may further include audio components. Audio components may be used to provide audio input and output functionality to electronic devices. Audio components in electronic devices may include speakers, microphones, buzzers, tone generators, and other components used to generate and detect sound.
输入-输出电路还可以进一步包括通信电路可以用于为电子设备提供与外部设备通信的能力。通信电路可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。The input-output circuitry may further include communication circuitry that may be used to provide the electronic device with the ability to communicate with external devices. Communication circuits may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuit among the communication circuits may include radio frequency transceiver circuits, power amplifier circuits, low noise amplifiers, switches, filters, and antennas. For example, wireless communication circuitry in a communication circuit may include circuitry for supporting Near Field Communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals. For example, the communication circuitry may include a near field communication antenna and a near field communication transceiver. Communication circuits may also include cellular telephone transceivers and antennas, wireless local area network transceiver circuits and antennas, and the like.
输入-输出电路还可以进一步包括其它输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触控板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The input-output circuit may further include other input-output units. Input-output units may include buttons, joysticks, click wheels, scroll wheels, trackpads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
其中,电子设备还可以进一步包括电池(未图示),电池用于给电子设备提供电能。Wherein, the electronic device may further include a battery (not shown), and the battery is used to provide electrical energy to the electronic device.
可以看出,在本申请实施例中,在目标物体已经与触控显示屏处于接近状态的情况下,电子设备通过接近传感器检测目标物体与触控显示屏的距离,在目标物体与触控显示屏的距离变小超过设定值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。可见,通过距离的变化量判断目标物体是否发生接近动作,可排除细微变化的情况,提升检测精度。It can be seen that in the embodiment of the present application, when the target object is already in a state of proximity to the touch display screen, the electronic device detects the distance between the target object and the touch display screen through the proximity sensor, and the electronic device detects the distance between the target object and the touch display screen through the proximity sensor, and the When the distance of the screen becomes smaller than the set value, it is determined that the target object moves close to the touch display screen. It can be seen that by judging whether the target object is approaching by the change in distance, subtle changes can be excluded and the detection accuracy can be improved.
在本申请的一实现方式中,所述控制电路,还用于在所述第一距离与所述第二距离的差值小于或等于第二阈值的情况下,确定所述目标物体发生远离所述触控显示屏的动作。In an implementation manner of the present application, the control circuit is further configured to determine that the target object is far away from the target object when the difference between the first distance and the second distance is less than or equal to a second threshold. Describe the actions of the touch screen.
在本申请的一实现方式中,所述控制电路,还用于根据确定的所述目标物体的动作控制所述电子设备。In an implementation manner of the present application, the control circuit is further configured to control the electronic device according to the determined motion of the target object.
在本申请的一实现方式中,所述电子设备处于熄屏状态,在根据确定的所述目标物体的动作控制所述电子设备方面,所述控制电路具体用于:在所述目标物体发生接近所述触控显示屏的动作之后,进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and in terms of controlling the electronic device according to the determined action of the target object, the control circuit is specifically configured to: when the target object approaches After the action of the touch display screen, a screen brightening operation is performed;
在所述亮屏操作完成后,所述控制电路,还用于启动TP接近检测模式。After the screen brightening operation is completed, the control circuit is further configured to start the TP proximity detection mode.
在本申请的一实现方式中,所述电子设备处于熄屏状态,在根据确定的所述目标物体的动作控制所述电子设备方面,所述控制电路具体用于:在所述目标物体发生远离所述触控显示屏的动作,以及所述电子设备当前处于通话状态的情况下,进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and in terms of controlling the electronic device according to the determined action of the target object, the control circuit is specifically configured to: when the target object moves away The action of the touch display screen, and the screen brightening operation when the electronic device is currently in a call state;
在所述亮屏操作完成后,所述控制电路,还用于启动TP接近检测模式。After the screen brightening operation is completed, the control circuit is further configured to start the TP proximity detection mode.
在本申请的一实现方式中,在确定目标物体与所述触控显示屏的第一距离方面,所述接近传感器具体用于:获取第一数值,以及根据数值与距离的映射关系确定所述第一数值对应的目标物体与所述触控显示屏的第一距离。In an implementation manner of the present application, in terms of determining the first distance between the target object and the touch-sensitive display screen, the proximity sensor is specifically used for: acquiring a first value, and determining the first value according to the mapping relationship between the value and the distance. The first distance between the target object corresponding to the first value and the touch display screen.
在本申请的一实现方式中,在确定目标物体与所述触控显示屏的第二距离方面,所述接近传感器具体用于:获取第二数值,以及根据数值与距离的映射关系确定所述第二数值对应的目标物体与所述触控显示屏的第二距离。In an implementation manner of the present application, in terms of determining the second distance between the target object and the touch display screen, the proximity sensor is specifically used for: acquiring a second value, and determining the distance according to the mapping relationship between the value and the distance. The second distance corresponding to the second value between the target object and the touch display screen.
需要说明的是,本实施例的具体实现过程可参见下述方法所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of this embodiment, reference may be made to the specific implementation process described in the following method, which is not described herein again.
请参阅图2A,图2A是本申请实施例提供的一种接近检测方法的流程示意图,应用于上述电子设备,该方法包括:Please refer to FIG. 2A. FIG. 2A is a schematic flowchart of a proximity detection method provided by an embodiment of the present application, which is applied to the above-mentioned electronic device, and the method includes:
步骤201:在第一时刻,电子设备通过接近传感器确定目标物体与所述触控显示屏的第一距离。Step 201: At a first moment, the electronic device determines a first distance between a target object and the touch display screen through a proximity sensor.
步骤202:在第二时刻,电子设备通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻。Step 202: At a second moment, the electronic device determines a second distance between the target object and the touch display screen through a proximity sensor, and the first moment is earlier than the second moment.
步骤203:在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,电子设备确定所述目标物体发生接近所述触控显示屏的动作。Step 203 : In the case where the difference between the first distance and the second distance is greater than or equal to a first threshold, the electronic device determines that the target object moves close to the touch display screen.
其中,目标物体可以是用户手、耳朵、面部等等。The target object may be the user's hand, ear, face, and so on.
其中,第一阈值为正数,例如为1.5cm、2cm、2.5cm或是其他值。The first threshold is a positive number, such as 1.5cm, 2cm, 2.5cm or other values.
其中,接近传感器的数量可以是一个,也可以是多个,在此不作限定。The number of proximity sensors may be one or more, which is not limited here.
其中,接近传感器可设置在触控显示屏下方的任意位置,比如触控显示屏的左上角,触控显示屏的中间,触控显示屏的右上角等等。Among them, the proximity sensor can be arranged at any position below the touch display screen, such as the upper left corner of the touch display screen, the middle of the touch display screen, the upper right corner of the touch display screen, and so on.
举例来说,假设第一时刻目标物体与电子设备的距离为4cm,第一阈值=2cm,第二时刻目标物体与电子设备的距离为2cm,那么第一距离与第二距离的差值等于2cm(等于第一阈值),此时确定目标物体发生接近触控显示屏的动作。For example, suppose the distance between the target object and the electronic device is 4cm at the first moment, the first threshold=2cm, and the distance between the target object and the electronic device at the second moment is 2cm, then the difference between the first distance and the second distance is equal to 2cm (equal to the first threshold), at this time, it is determined that the target object moves close to the touch display screen.
目前,检测物体是否发生接近触控显示屏的动作通常的做法是:检测接近传感器接收的数值是否超过一个预设阈值(比如150或者200),若是,则确定目标物体发生接近动作,若否,则确定目标物体发生远离动作,这样会导致目标物体出现细微晃动的时候,也检测到目标物体发生接近动作或确定目标物体发生远离动作,检测精度不够精确。At present, the usual way to detect whether an object is approaching the touch screen is to detect whether the value received by the proximity sensor exceeds a preset threshold (such as 150 or 200). Then, it is determined that the target object is moving away, which will cause the target object to shake slightly, and the target object is also detected to be approaching or it is determined that the target object is moving away, and the detection accuracy is not accurate enough.
而在本申请实施例中,在目标物体已经与触控显示屏处于接近状态(比如用户手拿电子设备在打电话等)的情况下,电子设备通过距离的变化量判断目标物体是否发生接近动作,可排除细微变化的情况,提升检测精度。However, in the embodiment of the present application, when the target object is already close to the touch screen (for example, the user is holding the electronic device while making a phone call, etc.), the electronic device determines whether the target object is approaching by the change in distance , which can eliminate subtle changes and improve detection accuracy.
在本申请的一实现方式中,所述方法还包括:In an implementation of the present application, the method further includes:
在所述第一距离与所述第二距离的差值小于或等于第二阈值的情况下,电子设备确定所述目标物体发生远离所述触控显示屏的动作。When the difference between the first distance and the second distance is less than or equal to a second threshold, the electronic device determines that the target object moves away from the touch display screen.
其中,第二阈值为负数,例如为-1.5cm、-2cm、-2.5cm或是其他值。Wherein, the second threshold is a negative number, such as -1.5cm, -2cm, -2.5cm or other values.
举例来说,假设第一时刻目标物体与电子设备的距离为2cm,第二阈值=2cm,第二时刻目标物体与电子设备的距离为4cm,那么第一距离与第二距离的差值等于-2cm(等于第二阈值),此时确定目标物体发生远离触控显示屏的动作。For example, assuming that the distance between the target object and the electronic device at the first moment is 2cm, the second threshold=2cm, and the distance between the target object and the electronic device at the second moment is 4cm, then the difference between the first distance and the second distance is equal to − 2cm (equal to the second threshold), at this time, it is determined that the target object moves away from the touch screen.
在本申请的一实现方式中,在步骤201之前,电子设备先启动传感器接近检测模式。In an implementation manner of the present application, before
进一步地,在第一条件下,电子设备启动传感器接近检测模式,第一条件以下至少一种条件:电子设备处于熄屏状态、电子设备的触控显示屏朝上、电子设备处于长显示(Allways on display,AOD)模式。Further, under the first condition, the electronic device starts the sensor proximity detection mode, and the first condition is at least one of the following conditions: the electronic device is in a screen-off state, the touch screen of the electronic device is facing upwards, and the electronic device is in a long display (Allways). on display, AOD) mode.
具体地,由于接近传感器设置在触控显示屏下方,如果在电子设备处于亮屏状态下使用接近传感器进行接近检测会导致闪屏现象,因此在本申请中,限定在电子设备处于熄屏状态下才使用接近传感器进行接近检测,可避免闪屏现象,提升显示效果。Specifically, since the proximity sensor is arranged under the touch display screen, if the electronic device is in the bright screen state, using the proximity sensor to perform proximity detection will lead to a flickering phenomenon. Therefore, in this application, it is limited to the electronic device in the screen-off state. Only use the proximity sensor for proximity detection, which can avoid the phenomenon of screen splash and improve the display effect.
具体地,电子设备包括重力传感器,该重力传感器包括重力块和设置在重力块周侧的多个压电晶体,这多个压电晶体分布设于重力块不同侧,具体如图2B所示。在图2B中,重力传感器包括1个重力块和6个压电晶体,这6个压电晶体分别对应电子设备的6个面,如压电晶体2对应电子设备的触控显示屏,压电晶体3对应电子设备的后壳,压电晶体1对应电子设备的左侧面,压电晶体6对应电子设备的右侧面、压电晶体5对应电子设备的上侧面、压电晶体4对应电子设备的下侧面。Specifically, the electronic device includes a gravity sensor, the gravity sensor includes a gravity block and a plurality of piezoelectric crystals disposed on the circumference of the gravity block, and the plurality of piezoelectric crystals are distributed on different sides of the gravity block, as shown in FIG. 2B . In Figure 2B, the gravity sensor includes a gravity block and 6 piezoelectric crystals. These 6 piezoelectric crystals correspond to the 6 surfaces of the electronic device respectively. For example, the piezoelectric crystal 2 corresponds to the touch screen of the electronic device, and the piezoelectric crystal The crystal 3 corresponds to the rear shell of the electronic device, the piezoelectric crystal 1 corresponds to the left side of the electronic device, the piezoelectric crystal 6 corresponds to the right side of the electronic device, the piezoelectric crystal 5 corresponds to the upper side of the electronic device, and the piezoelectric crystal 4 corresponds to the electronic device. the underside of the device.
当压电晶体2被重力块挤压时,压电晶体2输出的电信号不为0,此时电子设备检测到电子设备的触控显示屏朝下。当压电晶体3被重力块挤压时,压电晶体3输出的电信号不为0,此时电子设备检测到电子设备的触控显示屏朝上。When the piezoelectric crystal 2 is squeezed by the gravity block, the electrical signal output by the piezoelectric crystal 2 is not 0, and the electronic device detects that the touch display screen of the electronic device is facing downward. When the piezoelectric crystal 3 is squeezed by the gravity block, the electrical signal output by the piezoelectric crystal 3 is not 0, and the electronic device detects that the touch display screen of the electronic device is facing upward.
具体地,由于接近传感器设置在触控显示屏下方,当触控显示屏朝下(比如将电子设备的触控显示屏朝下放置在桌上)时,如果通过接近传感器进行接近检测,检测到的结果是一直处于接近状态,但是这样的检测并没有什么意义,可能还会导致电子设备误操作,以及资源消耗的问题,因此在本申请中,限定在电子设备的触控显示屏朝上的情况下才使用接近传感器进行接近检测,可避免上述问题,提升电子设备的性能。Specifically, since the proximity sensor is arranged under the touch display screen, when the touch screen display is facing downward (for example, the touch display screen of an electronic device is placed on a table with the touch display screen facing down), if the proximity detection is performed by the proximity sensor, it is detected that the The result is that it is always in the close state, but such detection is meaningless, and may also lead to misoperation of the electronic device and the problem of resource consumption. Therefore, in this application, it is limited to the touch screen of the electronic device facing upwards. Only use the proximity sensor for proximity detection under certain circumstances, which can avoid the above problems and improve the performance of electronic devices.
具体地,AOD模式是电子设备在锁屏状态下触控显示屏的特定显示区域保持常亮的一种显示模式。在AOD模式下,可以在特定显示区域中显示时间、通知等信息。请参阅图2C,图2C是本申请实施例提供的一种电子设备处于AOD模式的显示示意图。如图2C所示,触控显示屏包括特定显示区域,特定显示区域占据整个触控显示屏的面积非常的小,特定显示区域用于显示时间、通知消息等信息,由于仅是特定区域被点亮,AOD模式的功耗可以做得非常的低,对于习惯查看手机的用户,无需频繁点亮电子设备的触控显示屏和解锁电子设备,非常的便捷。Specifically, the AOD mode is a display mode in which a specific display area of the touch-sensitive display screen of the electronic device remains constantly on when the screen is locked. In AOD mode, information such as time and notifications can be displayed in a specific display area. Please refer to FIG. 2C . FIG. 2C is a schematic display diagram of an electronic device in an AOD mode provided by an embodiment of the present application. As shown in FIG. 2C , the touch screen includes a specific display area. The specific display area occupies a very small area of the entire touch screen. The specific display area is used to display information such as time and notification messages. Since only the specific area is clicked Bright, the power consumption of AOD mode can be made very low. For users who are accustomed to viewing mobile phones, they do not need to frequently light up the touch screen of electronic devices and unlock electronic devices, which is very convenient.
在电子设备处于AOD模式下,接近传感器设置在除了上述特定显示区域的触控显示屏的下方。When the electronic device is in the AOD mode, the proximity sensor is arranged below the touch display screen except for the above-mentioned specific display area.
在本申请的一实现方式中,所述方法还包括:电子设备根据确定的所述目标物体的动作控制所述电子设备。In an implementation manner of the present application, the method further includes: the electronic device controls the electronic device according to the determined action of the target object.
在本申请的一实现方式中,电子设备处于熄屏状态,电子设备根据确定的所述目标物体的动作控制所述电子设备,包括:在所述目标物体发生接近所述触控显示屏的动作之后,电子设备进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and the electronic device controls the electronic device according to the determined action of the target object, including: an action of approaching the touch display screen when the target object occurs After that, the electronic device performs a screen brightening operation;
在所述亮屏操作完成后,所述方法还包括:电子设备启动TP接近检测模式。After the screen brightening operation is completed, the method further includes: starting the TP proximity detection mode by the electronic device.
在本申请的一实现方式中,电子设备处于熄屏状态,电子设备根据确定的所述目标物体的动作控制所述电子设备,包括:在所述目标物体发生远离所述触控显示屏的动作,以及所述电子设备当前处于通话状态的情况下,电子设备进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and the electronic device controls the electronic device according to the determined motion of the target object, including: when the target object moves away from the touch display screen , and when the electronic device is currently in a call state, the electronic device performs a screen-on operation;
在所述亮屏操作完成后,所述方法还包括:电子设备启动TP接近检测模式。After the screen brightening operation is completed, the method further includes: starting the TP proximity detection mode by the electronic device.
其中,其中,触控显示屏包括触控屏和显示屏,触控屏和显示屏单独供电控制。TP接近检测模式是通过触控显示屏的触控屏来检测目标物体是接近触控显示屏还是远离触控显示屏的模式。Among them, the touch display screen includes a touch screen and a display screen, and the touch screen and the display screen are independently powered and controlled. The TP proximity detection mode is a mode that detects whether the target object is approaching or far away from the touch screen through the touch screen of the touch screen.
具体地,由于接近传感器设置在触控显示屏下方,如果在电子设备处于亮屏状态下使用接近传感器进行接近检测会导致闪屏现象,因此在本申请中,在电子设备处于亮屏状态下使用TP接近检测,可避免闪屏现象,提升显示效果。Specifically, since the proximity sensor is arranged below the touch-sensitive display screen, if the electronic device is in the bright screen state using the proximity sensor for proximity detection, it will lead to a flickering screen phenomenon. Therefore, in this application, the electronic device is used in the bright screen state. TP proximity detection can avoid the phenomenon of splash screen and improve the display effect.
具体地,目前用户手拿电子设备打电话,由于电子设备贴近耳朵,接近传感器检测到的是接近状态,在该种情况下,进行熄屏。如果在通话过程中,如果由于环境因素(比如用户坐在车上,车颠簸)导致电子设备与耳朵距离有细微波动,使得接近传感器检测到的是远离状态,在该种情况下,进行亮屏,这样的话就会导致在某些场景下,触控显示屏的状态一会亮屏一会熄屏。Specifically, currently, a user holds an electronic device in hand to make a call. Since the electronic device is close to the ear, the proximity sensor detects a proximity state. In this case, the screen is turned off. If during the call, if the distance between the electronic device and the ear fluctuates slightly due to environmental factors (such as the user sitting in the car, the car is bumpy), the proximity sensor detects that the distance is far away, in this case, the screen will be brightened. , in this case, in some scenarios, the status of the touch screen will be on and off for a while.
而在本申请中,通过两个时刻的距离差值确定目标物体是否接近触控显示屏,这样可避免电子设备与目标物体距离出现细微变化而导致触控显示屏一会亮屏一会熄屏的状态,提升了检测精度。In the present application, whether the target object is close to the touch screen is determined by the distance difference between the two moments, so as to avoid slight changes in the distance between the electronic device and the target object, which may cause the touch screen to turn on and off for a while. state, which improves the detection accuracy.
进一步地,电子设备启动TP接近检测模式之后,所述方法还包括:Further, after the electronic device starts the TP proximity detection mode, the method further includes:
电子设备进行TP接近检测;在检测到目标物体远离触控显示屏的情况下,电子设备进行熄屏操作。The electronic device performs TP proximity detection; when it is detected that the target object is far away from the touch screen, the electronic device performs a screen-off operation.
其中,TP接近检测原理是:电子设备获取用于接近检测的触控屏的预设区域;电子设备调整所述预设区域的驱动电压以提高所述预设区域的有效检测距离;电子设备检测所述预设区域的容值数据;根据所述容值数据确定目标物体与所述触控显示屏的距离;如果前后确定的距离的差值小于或等于第二阈值时,确定目标物体远离触控显示屏,如果前后确定的距离的差值大于或等于第一阈值时,确定目标物体靠近触控显示屏。The principle of TP proximity detection is: the electronic device obtains a preset area of the touch screen for proximity detection; the electronic device adjusts the driving voltage of the preset area to increase the effective detection distance of the preset area; the electronic device detects The capacity value data of the preset area; the distance between the target object and the touch screen is determined according to the capacity value data; if the difference between the distances determined before and after is less than or equal to the second threshold, it is determined that the target object is far away from the touch screen. If the difference between the distances determined before and after is greater than or equal to the first threshold, it is determined that the target object is close to the touch screen.
其中,由于触控屏在常规状态下用于检测用户触控操作,故而一般驱动电压较低,为了实现接近检测,需要提高功率以实现更远距离的检测。Among them, since the touch screen is used to detect the user's touch operation in a normal state, the driving voltage is generally low. In order to realize the proximity detection, it is necessary to increase the power to realize the detection at a longer distance.
其中,预设区域可以是一个也可以是多个,在此不作限定。预设区域可以是整个触控屏,或不是整个触控屏,比如触控屏的上半屏等等。Wherein, the preset area may be one or multiple, which is not limited herein. The preset area may be the entire touch screen, or not the entire touch screen, such as the upper half screen of the touch screen and the like.
在本申请中的一实现方式中,所述预设区域是根据预存的多个用户通话记录确定的,每个用户通话记录包括用户通话过程中与所述触控屏的接触区域,其中,多个通话记录中的多个接触区域的重叠区域为用户高频触控区域,此区域可以设置为预设区域。In an implementation manner of the present application, the preset area is determined according to multiple pre-stored user call records, and each user call record includes a contact area with the touch screen during the user's call, wherein the multiple user call records The overlapping area of the multiple contact areas in each call record is the user's high-frequency touch area, and this area can be set as a preset area.
或者,所述预设区域为所述触摸屏的上半屏;其中,一般来说,用户手持电子设备进行通话时,电子设备的上半屏会接触用户的面部或者耳朵。Alternatively, the preset area is the upper half screen of the touch screen; wherein, generally, when the user holds the electronic device to make a call, the upper half screen of the electronic device will contact the user's face or ears.
或者,所述预设区域为根据摄像头采集的影像内容确定的区域。其中,电子设备具体可以通过摄像头采集当前影像内容,并根据当前影像内容、摄像头与触摸屏的位置关系、以及当前影像内容与用户面部或者耳朵之间的位置关系,确定出会被用户预设部位接触的预设区域。Alternatively, the preset area is an area determined according to the image content collected by the camera. Specifically, the electronic device can collect the current image content through the camera, and determine that the preset part of the user will be contacted according to the current image content, the positional relationship between the camera and the touch screen, and the positional relationship between the current image content and the user's face or ears. preset area.
可见,本申请实施例中,电子设备能够通过多种方式设置预设区域,提高预设区域设置的灵活性和检测准确度。It can be seen that, in the embodiment of the present application, the electronic device can set the preset area in various ways, so as to improve the flexibility of setting the preset area and the detection accuracy.
具体实现中,电子设备可以提高驱动信号的电压值,如有2V提高到3.3V等,此处具体调整策略可以基于触控屏控制芯片的能力信息进行预设。可见,本本申请实施例中,电子设备能够通过升压来提高触控屏检测功率,从而增大触控屏的有效检测距离,进而实现接近检测,提高接近检测的准确度和成功率。In the specific implementation, the electronic device can increase the voltage value of the driving signal, such as 2V to 3.3V, etc. The specific adjustment strategy here can be preset based on the capability information of the touch screen control chip. It can be seen that in the embodiment of the present application, the electronic device can increase the detection power of the touch screen by boosting the voltage, thereby increasing the effective detection distance of the touch screen, thereby realizing proximity detection, and improving the accuracy and success rate of proximity detection.
其中,所述触控屏接近检测原理与传统电容式触控屏检测原理类似,具体是利用人体的电流感应进行工作。由于人体电场,用户皮肤和触控屏表面的每个检测单元形成以耦合电容,在预设距离范围内,该耦合电容的容值数据随着用户皮肤与触控屏表面之间的距离的变化而变化,故而电子设备可以通过检测每个检测单元的容值数据来进行距离检测,从而实现接近检测。Wherein, the proximity detection principle of the touch screen is similar to the detection principle of the traditional capacitive touch screen, and specifically, the current sensing of the human body is used to work. Due to the electric field of the human body, each detection unit between the skin of the user and the surface of the touch screen is formed with a coupling capacitance. Within a preset distance range, the capacitance data of the coupling capacitance varies with the distance between the skin of the user and the surface of the touch screen. Therefore, the electronic device can perform distance detection by detecting the capacitance data of each detection unit, thereby realizing proximity detection.
可见,在本申请实施例中,在接近传感器设于触控显示屏下方的情况下,在熄屏状态下使用传感器接近检测,在亮屏状态下使用TP接近检测,即保证显示效果,有保证了接近检测,进一步提升了电子设备的性能。It can be seen that in the embodiment of the present application, when the proximity sensor is arranged below the touch display screen, the sensor proximity detection is used in the off-screen state, and the TP proximity detection is used in the bright-screen state, that is, the display effect is guaranteed. Proximity detection has been implemented to further improve the performance of electronic devices.
进一步地,电子设备当前处于通话状态,电子设备因检测到目标物体发生远离所述触控显示屏的动作而进行亮屏操作,以及在亮屏操作完成后,电子设备启动TP接近检测模式之后,所述方法还包括:Further, the electronic device is currently in a call state, the electronic device performs a screen brightening operation after detecting that the target object moves away from the touch display screen, and after the screen brightening operation is completed, after the electronic device starts the TP proximity detection mode, The method also includes:
在设定时长后,若未检测到目标物体接近触控显示屏,电子设备输出的通话音频没有通话内容,且电子设备采集到的通话音频没有通话内容,则电子设备挂断当前的通话。After the set duration, if the target object is not detected close to the touch screen, the call audio output by the electronic device has no call content, and the call audio collected by the electronic device has no call content, the electronic device hangs up the current call.
其中,通话音频没有通话内容指的是电子设备解析通话音频没有得到任何文字信息。比如,当前通话的用户没有说话,电子设备采集到的音频是环境声音,或者对方通话的用户没有说话,对方电子设备采集到的音频是环境声音。The fact that the call audio has no call content means that the electronic device does not obtain any text information by parsing the call audio. For example, the user who is currently on the call does not speak, and the audio collected by the electronic device is ambient sound, or the user on the other side of the call does not speak, and the audio collected by the other party's electronic device is ambient sound.
可见,在本申请实施例中,在电子设备还处于通话状态下,如果检测到目标物体远离触控显示屏,且在一段时长后,还是目标物体远离触控显示屏,然后通话双方均没有再说话,此时可能是双方已经通话结束,但是双方均忘了挂断电话,该种情况下,电子设备自行挂断当前通话,进一步提升了电子设备的性能。It can be seen that, in the embodiment of the present application, when the electronic device is still in a call state, if it is detected that the target object is far away from the touch display screen, and after a period of time, the target object is still far away from the touch screen display screen, then both parties in the call have no further communication. Talking, at this time, both parties may have ended the call, but both parties forgot to hang up the phone. In this case, the electronic device hangs up the current call by itself, which further improves the performance of the electronic device.
在本申请的一实现方式中,电子设备当前处于音频输出状态,电子设备根据确定的所述目标物体的动作控制所述电子设备,包括:在所述目标物体发生接近所述触控显示屏的动作之后,电子设备调低音频的输出音量;在所述目标物体发生远离所述触控显示屏的动作之后,电子设备调高音频的输出音量。In an implementation manner of the present application, the electronic device is currently in an audio output state, and the electronic device controls the electronic device according to the determined action of the target object, including: when the target object approaches the touch display screen After the action, the electronic device turns down the audio output volume; after the target object moves away from the touch display screen, the electronic device turns up the audio output volume.
具体实现中,调低或调高音频的输出音量可根据第一距离与第二距离的差值进行调节,差值越小调节的幅度越小,差值越大调节的幅度越大。In specific implementation, lowering or raising the audio output volume can be adjusted according to the difference between the first distance and the second distance. The smaller the difference, the smaller the adjustment range, and the larger the difference, the larger the adjustment range.
在本申请的一实现方式中,电子设备通过接近传感器确定目标物体与所述触控显示屏的第一距离,包括:电子设备通过接近传感器获取第一数值,以及根据数值与距离的映射关系确定所述第一数值对应的目标物体与所述触控显示屏的第一距离。In an implementation manner of the present application, the electronic device determines the first distance between the target object and the touch display screen through the proximity sensor, including: the electronic device obtains the first numerical value through the proximity sensor, and determines according to the mapping relationship between the numerical value and the distance The first distance between the target object corresponding to the first value and the touch display screen.
在本申请的一实现方式中,电子设备通过接近传感器确定目标物体与所述触控显示屏的第二距离,包括:电子设备通过接近传感器获取第二数值,以及根据数值与距离的映射关系确定所述第二数值对应的目标物体与所述触控显示屏的第二距离。In an implementation manner of the present application, the electronic device determines the second distance between the target object and the touch display screen through the proximity sensor, including: the electronic device obtains the second numerical value through the proximity sensor, and determines according to the mapping relationship between the numerical value and the distance The second distance between the target object corresponding to the second value and the touch display screen.
其中,上述第一数值和上述第二数值可以是一个能量值,比如光强度,也可以是一个基于能量值转换的数值,比如,假设能量值为光强度,1光强度=10,如果接近传感器接收到的光强度为10lux,该数值=100。The first value and the second value may be an energy value, such as light intensity, or a value converted based on the energy value. For example, if the energy value is light intensity, 1 light intensity=10, if the proximity sensor The received light intensity is 10 lux, this value = 100.
其中,在数值与距离的映射关系中,数值越大对应的距离越小,数值越小对应的距离越大。数值与距离的映射关系如表1所示。在表1中的数值和对应的距离是通过实验得到的。实验的具体做法有:采用标准遮挡物放置在距离屏幕4cm的位置用机器1测量电子设备接收到的平均值(比如,100),再用机器2测量电子设备接收到的平均值(比如,120),再用机器3测量电子设备接收到的平均值(比如,130)等等,最后再基于这几个机器测量到的平均值求平均值,进而得到表1中距离为4cm对应的数值。在距离屏幕1cm、2cm、3cm、5cm、6cm等的实验方法与距离屏幕4cm的实验方法相同,在此不再叙述。Among them, in the mapping relationship between the value and the distance, the larger the value is, the smaller the distance is, and the smaller the value is, the larger the distance is. The mapping relationship between values and distances is shown in Table 1. The values and corresponding distances in Table 1 are obtained through experiments. The specific methods of the experiment are as follows: using a standard occluder placed at a distance of 4cm from the screen, using machine 1 to measure the average value received by the electronic device (for example, 100), and then using machine 2 to measure the average value received by the electronic device (for example, 120 ), and then use the machine 3 to measure the average value (for example, 130) received by the electronic device, etc., and finally calculate the average value based on the average values measured by these several machines, and then obtain the value corresponding to the distance of 4cm in Table 1. The experimental methods at a distance of 1 cm, 2 cm, 3 cm, 5 cm, 6 cm, etc. from the screen are the same as the experimental methods at a distance of 4 cm from the screen, and will not be described here.
表1Table 1
可见,在本申请实施例中,事先将一个实验得到的一个标准映射关系导入电子设备中,后续电子设备可通过这个映射关系确定距离,操作简单,又实现了通过接近传感器检测距离。It can be seen that, in the embodiment of the present application, a standard mapping relationship obtained by an experiment is imported into the electronic device in advance, and the subsequent electronic device can determine the distance through this mapping relationship. The operation is simple, and the proximity sensor can detect the distance.
与上述图2A所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种接近检测方法的流程示意图,应用于上述电子设备,本接近检测方法包括:Consistent with the embodiment shown in FIG. 2A, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a proximity detection method provided by an embodiment of the present application, which is applied to the above-mentioned electronic equipment. The proximity detection method includes:
步骤301:在第一时刻,电子设备通过接近传感器获取第一数值。Step 301: At the first moment, the electronic device acquires the first value through the proximity sensor.
步骤302:电子设备根据数值与距离的映射关系确定所述第一数值对应的目标物体与所述触控显示屏的第一距离。Step 302: The electronic device determines a first distance between the target object corresponding to the first numerical value and the touch display screen according to the mapping relationship between the numerical value and the distance.
步骤303:在第二时刻,电子设备通过接近传感器获取第二数值。Step 303: At the second moment, the electronic device acquires the second value through the proximity sensor.
步骤304:电子设备根据数值与距离的映射关系确定所述第二数值对应的目标物体与所述触控显示屏的第二距离。Step 304 : The electronic device determines a second distance between the target object corresponding to the second numerical value and the touch display screen according to the mapping relationship between the numerical value and the distance.
步骤305:在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,电子设备确定所述目标物体发生接近所述触控显示屏的动作。执行完步骤305之后执行步骤307。Step 305: When the difference between the first distance and the second distance is greater than or equal to a first threshold, the electronic device determines that the target object moves close to the touch display screen. After
步骤306:在所述第一距离与所述第二距离的差值小于或等于第二阈值的情况下,电子设备确定所述目标物体发生远离所述触控显示屏的动作。若所述电子设备当前处于通话状态,则在执行完步骤306之后执行步骤307。Step 306: In the case that the difference between the first distance and the second distance is less than or equal to a second threshold, the electronic device determines that the target object moves away from the touch display screen. If the electronic device is currently in a call state,
步骤307:电子设备进行亮屏操作。Step 307: The electronic device performs a screen brightening operation.
步骤308:电子设备启动TP接近检测模式。Step 308: The electronic device starts the TP proximity detection mode.
需要说明的是,本实施例的具体实现过程可参见上述方法实施例所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of this embodiment, reference may be made to the specific implementation process described in the foregoing method embodiment, which is not described herein again.
与上述图2A和图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种电子设备的结构示意图,如图所示,该电子设备包括接近传感器和触控显示屏,该电子设备还包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:Consistent with the embodiments shown in FIG. 2A and FIG. 3 above, please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a proximity sensor and a touch sensor. The electronic device also includes a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the processor, and the programs include Instructions to perform the following steps:
在第一时刻,通过接近传感器确定目标物体与所述触控显示屏的第一距离;At the first moment, the first distance between the target object and the touch display screen is determined by the proximity sensor;
在第二时刻,通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻;at a second moment, determining a second distance between the target object and the touch display screen by a proximity sensor, and the first moment is earlier than the second moment;
在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。When the difference between the first distance and the second distance is greater than or equal to a first threshold, it is determined that the target object moves close to the touch display screen.
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:In an implementation of the present application, the above-mentioned program includes an instruction that is also used to perform the following steps:
在所述第一距离与所述第二距离的差值小于或等于第二阈值的情况下,确定所述目标物体发生远离所述触控显示屏的动作。When the difference between the first distance and the second distance is less than or equal to a second threshold, it is determined that the target object moves away from the touch display screen.
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:根据确定的所述目标物体的动作控制所述电子设备。In an implementation manner of the present application, the above-mentioned program includes an instruction further used for executing the following steps: controlling the electronic device according to the determined motion of the target object.
在本申请的一实现方式中,所述电子设备处于熄屏状态,在根据确定的所述目标物体的动作控制所述电子设备方面,上述程序包括具体用于执行以下步骤的指令:在所述目标物体发生接近所述触控显示屏的动作之后,进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and in terms of controlling the electronic device according to the determined motion of the target object, the above-mentioned program includes instructions specifically for executing the following steps: After the target object moves close to the touch screen, perform a screen-on operation;
在所述亮屏操作完成后,上述程序包括还用于执行以下步骤的指令:启动触控屏TP接近检测模式。After the screen brightening operation is completed, the above program includes an instruction for further performing the following steps: starting the touch screen TP proximity detection mode.
在本申请的一实现方式中,所述电子设备处于熄屏状态,在根据确定的所述目标物体的动作控制所述电子设备方面,上述程序包括具体用于执行以下步骤的指令:在所述目标物体发生远离所述触控显示屏的动作,以及所述电子设备当前处于通话状态的情况下,进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and in terms of controlling the electronic device according to the determined motion of the target object, the above-mentioned program includes instructions specifically for executing the following steps: When the target object moves away from the touch screen, and the electronic device is currently in a call state, perform a screen-on operation;
在所述亮屏操作完成后,上述程序包括还用于执行以下步骤的指令:启动TP接近检测模式。After the screen brightening operation is completed, the above-mentioned program includes an instruction for performing the following steps: starting the TP proximity detection mode.
在本申请的一实现方式中,在通过接近传感器确定目标物体与所述触控显示屏的第一距离方面,上述程序包括具体用于执行以下步骤的指令:In an implementation manner of the present application, in terms of determining the first distance between the target object and the touch-sensitive display screen through the proximity sensor, the above-mentioned program includes instructions specifically for executing the following steps:
通过接近传感器获取第一数值,以及根据数值与距离的映射关系确定所述第一数值对应的目标物体与所述触控显示屏的第一距离。A first numerical value is acquired through a proximity sensor, and a first distance between the target object corresponding to the first numerical value and the touch display screen is determined according to the mapping relationship between the numerical value and the distance.
在本申请的一实现方式中,在通过接近传感器确定目标物体与所述触控显示屏的第二距离方面,上述程序包括具体用于执行以下步骤的指令:In an implementation manner of the present application, in terms of determining the second distance between the target object and the touch-sensitive display screen by the proximity sensor, the above-mentioned program includes instructions specifically for executing the following steps:
通过接近传感器获取第二数值,以及根据数值与距离的映射关系确定所述第二数值对应的目标物体与所述触控显示屏的第二距离。The second value is acquired by the proximity sensor, and the second distance between the target object corresponding to the second value and the touch display screen is determined according to the mapping relationship between the value and the distance.
需要说明的是,本实施例的具体实现过程可参见上述方法实施例所述的具体实现过程,在此不再叙述。It should be noted that, for the specific implementation process of this embodiment, reference may be made to the specific implementation process described in the foregoing method embodiment, which is not described herein again.
上述实施例主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing embodiments mainly introduce the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据所述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiments of the present application, the electronic device may be divided into functional units according to the method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.
下面为本申请装置实施例,本申请装置实施例用于执行本申请方法实施例所实现的方法。请参阅图5,图5是本申请实施例提供的一种接近检测装置,应用于包括接近传感器和触控显示屏的电子设备,所述接近传感器置于所述触控显示屏下方,所述接近检测装置包括:The following are apparatus embodiments of the present application, and the apparatus embodiments of the present application are used to execute the methods implemented by the method embodiments of the present application. Please refer to FIG. 5. FIG. 5 is a proximity detection device provided by an embodiment of the present application, which is applied to an electronic device including a proximity sensor and a touch display screen. The proximity sensor is placed under the touch display screen, and the Proximity detection devices include:
第一确定单元501,用于在第一时刻,通过接近传感器确定目标物体与所述触控显示屏的第一距离;在第二时刻,通过接近传感器确定所述目标物体与所述触控显示屏的第二距离,所述第一时刻早于所述第二时刻;The first determining
第二确定单元502,用于在所述第一距离与所述第二距离的差值大于或等于第一阈值的情况下,确定所述目标物体发生接近所述触控显示屏的动作。The second determining
在本申请的一实现方式中,第二确定单元502,还用于在所述第一距离与所述第二距离的差值小于或等于第二阈值的情况下,确定所述目标物体发生远离所述触控显示屏的动作。In an implementation of the present application, the second determining
在本申请的一实现方式中,所述接近检测装置还包括:In an implementation manner of the present application, the proximity detection device further includes:
控制单元503,用于根据确定的所述目标物体的动作控制所述电子设备。The
在本申请的一实现方式中,所述电子设备处于熄屏状态,在根据确定的所述目标物体的动作控制所述电子设备方面,控制单元503具体用于:在所述目标物体发生接近所述触控显示屏的动作之后,进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and in terms of controlling the electronic device according to the determined action of the target object, the
所述接近检测装置还包括:启动单元504,用于在所述亮屏操作完成后,启动触控屏TP接近检测模式。The proximity detection device further includes: an
在本申请的一实现方式中,所述电子设备处于熄屏状态,在根据确定的所述目标物体的动作控制所述电子设备方面,控制单元503具体用于:在所述目标物体发生远离所述触控显示屏的动作,以及所述电子设备当前处于通话状态的情况下,进行亮屏操作;In an implementation manner of the present application, the electronic device is in a screen-off state, and in terms of controlling the electronic device according to the determined action of the target object, the
启动单元504,还用于在所述亮屏操作完成后,启动TP接近检测模式。The
在本申请的一实现方式中,在通过接近传感器确定目标物体与所述触控显示屏的第一距离方面,第一确定单元501具体用于:通过接近传感器获取第一数值,以及根据数值与距离的映射关系确定所述第一数值对应的目标物体与所述触控显示屏的第一距离。In an implementation manner of the present application, in terms of determining the first distance between the target object and the touch display screen through the proximity sensor, the first determining
在本申请的一实现方式中,在通过接近传感器确定目标物体与所述触控显示屏的第二距离方面,第一确定单元501具体用于:通过接近传感器获取第二数值,以及根据数值与距离的映射关系确定所述第二数值对应的目标物体与所述触控显示屏的第二距离。In an implementation manner of the present application, in terms of determining the second distance between the target object and the touch display screen through the proximity sensor, the first determining
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method. The computer program product may be a software installation package, and the computer includes an electronic device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110182333.0A CN112995410B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110182333.0A CN112995410B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
| CN201810623895.2A CN108965583B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810623895.2A Division CN108965583B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112995410A CN112995410A (en) | 2021-06-18 |
| CN112995410B true CN112995410B (en) | 2022-06-17 |
Family
ID=64489287
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110182333.0A Active CN112995410B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
| CN201810623895.2A Active CN108965583B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810623895.2A Active CN108965583B (en) | 2018-06-15 | 2018-06-15 | Proximity detection method and related equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN112995410B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110007784B (en) * | 2019-02-28 | 2020-07-24 | 华为技术有限公司 | Active stylus calibration method, active stylus and electronic equipment |
| CN110830644B (en) * | 2019-09-16 | 2021-04-20 | 深圳市万普拉斯科技有限公司 | Display screen control method, device, electronic device and storage medium |
| CN110753155A (en) * | 2019-09-24 | 2020-02-04 | 维沃移动通信有限公司 | Proximity detection method and terminal equipment |
| CN111624617B (en) * | 2020-05-28 | 2024-10-18 | 联想(北京)有限公司 | Data processing method and electronic equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102833389A (en) * | 2011-06-15 | 2012-12-19 | 比亚迪股份有限公司 | Mobile terminal and energy conservation method therefor |
| CN106200989A (en) * | 2016-09-08 | 2016-12-07 | 广东小天才科技有限公司 | Method and device for lightening screen of mobile terminal |
| CN106293293A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | The detection method of a kind of object distance state and mobile terminal |
| CN106650383A (en) * | 2016-12-30 | 2017-05-10 | 深圳天珑无线科技有限公司 | Terminal control method and terminal control device |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9411048B2 (en) * | 2012-08-30 | 2016-08-09 | Apple Inc. | Electronic device with adaptive proximity sensor threshold |
| EP2711824B1 (en) * | 2012-09-21 | 2019-07-31 | BlackBerry Limited | A device with touch screen false-actuation prevention |
| CN103902112A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Control method and electronic equipment |
| CN103281439A (en) * | 2013-05-08 | 2013-09-04 | 上海鼎讯电子有限公司 | Method for utilizing TP (touch panel) device for simulating proximity sensor in mobile phone |
| CN104007878B (en) * | 2014-05-16 | 2017-01-25 | 广东欧珀移动通信有限公司 | Method and device for preventing error operation on touch screen terminal |
| CN104035578B (en) * | 2014-05-26 | 2017-02-22 | 小米科技有限责任公司 | Method and device for controlling capacitance touch screen terminal |
| US9794748B2 (en) * | 2014-08-19 | 2017-10-17 | Semtech Corporation | Capacitive proximity sensor and mobile device |
| CN107340996A (en) * | 2016-04-29 | 2017-11-10 | 北京小米移动软件有限公司 | Screen lights method and device |
| CN106101453A (en) * | 2016-08-19 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | A kind of method controlling screen and terminal |
| CN106506794A (en) * | 2016-09-05 | 2017-03-15 | 广东欧珀移动通信有限公司 | Condition monitoring method and device of terminal equipment and terminal equipment |
| CN107102864A (en) * | 2017-05-16 | 2017-08-29 | 广东欧珀移动通信有限公司 | One kind puts out screen control method, device, storage medium and terminal |
-
2018
- 2018-06-15 CN CN202110182333.0A patent/CN112995410B/en active Active
- 2018-06-15 CN CN201810623895.2A patent/CN108965583B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102833389A (en) * | 2011-06-15 | 2012-12-19 | 比亚迪股份有限公司 | Mobile terminal and energy conservation method therefor |
| CN106293293A (en) * | 2016-07-29 | 2017-01-04 | 维沃移动通信有限公司 | The detection method of a kind of object distance state and mobile terminal |
| CN106200989A (en) * | 2016-09-08 | 2016-12-07 | 广东小天才科技有限公司 | Method and device for lightening screen of mobile terminal |
| CN106650383A (en) * | 2016-12-30 | 2017-05-10 | 深圳天珑无线科技有限公司 | Terminal control method and terminal control device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112995410A (en) | 2021-06-18 |
| CN108965583A (en) | 2018-12-07 |
| CN108965583B (en) | 2021-03-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11043980B2 (en) | Method for controlling earphone switching, earphone, and earphone system | |
| CN110139262B (en) | Bluetooth communication control method and related product | |
| US11102697B2 (en) | Method for controlling earphone switching and earphone | |
| CN112527230B (en) | Parameter adjusting method and electronic equipment | |
| WO2022042112A1 (en) | Searching and positioning method and apparatus, electronic device, and storage medium | |
| CN112995410B (en) | Proximity detection method and related equipment | |
| CN109743129B (en) | Electromagnetic interference control method and related product | |
| CN108900231B (en) | Dynamic antenna adjustment method and related products | |
| US11701580B2 (en) | Display control method and related products | |
| EP3879755A1 (en) | Adjustment method for preventing electromagnetic interference and related product | |
| CN108769401B (en) | Signal detection method and related products | |
| CN108833683B (en) | Dynamic antenna adjustment implementation method and related product | |
| US11399088B2 (en) | Method for establishing communication connection and related products | |
| CN108769387A (en) | Application control method and related equipment | |
| CN108777741A (en) | antenna switching control method and related product | |
| CN108769377A (en) | Antenna control method and related products | |
| CN110475020A (en) | Apparatus control method and Related product | |
| CN107317918A (en) | Parameter setting method and related product | |
| CN108668018B (en) | Mobile terminal, volume control method and related products | |
| CN108810261B (en) | Antenna switching method in call and related product | |
| CN110221696A (en) | Eyeball tracking method and Related product | |
| CN106648205B (en) | Sleep control method, device and terminal | |
| CN110827785A (en) | Brightness adjusting method and related product | |
| CN106940608B (en) | A control method of a display screen, a display screen and an electronic device | |
| CN110569099A (en) | Message Display Method and Related Products |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |