Movatterモバイル変換


[0]ホーム

URL:


CN112068721B - Touch signal response method, device and storage medium - Google Patents

Touch signal response method, device and storage medium
Download PDF

Info

Publication number
CN112068721B
CN112068721BCN201910498631.3ACN201910498631ACN112068721BCN 112068721 BCN112068721 BCN 112068721BCN 201910498631 ACN201910498631 ACN 201910498631ACN 112068721 BCN112068721 BCN 112068721B
Authority
CN
China
Prior art keywords
touch signal
hover
response threshold
touch
response
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
Application number
CN201910498631.3A
Other languages
Chinese (zh)
Other versions
CN112068721A (en
Inventor
郭恒军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201910498631.3ApriorityCriticalpatent/CN112068721B/en
Publication of CN112068721ApublicationCriticalpatent/CN112068721A/en
Application grantedgrantedCritical
Publication of CN112068721BpublicationCriticalpatent/CN112068721B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The disclosure relates to a touch signal response method, a touch signal response device and a storage medium, and belongs to the technical field of touch. The method comprises the following steps: under the condition that Hover inhibition functions are started, detecting touch signals on a display screen; when the capacitance difference value of the touch signal is not larger than a first response threshold value, and a movement event occurs after the first preset time duration is continued in the same screen area, the control function is closed Hover, the control function is responded according to a second response threshold value, the second response threshold value is smaller than the first response threshold value, and because the user finger is generally stopped for a period of time and then performs sliding operation when controlling the display screen, the user finger is not stopped for a period of time and then performs sliding operation when hovering above the terminal.

Description

Translated fromChinese
触控信号响应方法、装置及存储介质Touch signal response method, device and storage medium

技术领域Technical Field

本公开是关于触控技术领域,具体来说是关于一种触控信号响应方法、装置及存储介质。The present disclosure relates to the field of touch technology, and more particularly to a touch signal response method, device and storage medium.

背景技术Background Art

时下,终端通常配置电容式的显示屏幕,当用户手指接近或触摸显示屏幕时,由于人体电场的作用,用户手指与显示屏幕构成耦合电容,导致显示屏幕的电容值发生变化,此时终端检测到显示屏幕上的触控信号,按照触控信号的电容差值和预先设置的响应阈值,确定是否要响应触控信号。Nowadays, terminals are usually equipped with capacitive display screens. When the user's finger approaches or touches the display screen, due to the effect of the human body's electric field, the user's finger and the display screen form a coupling capacitor, causing the capacitance value of the display screen to change. At this time, the terminal detects the touch signal on the display screen and determines whether to respond to the touch signal according to the capacitance difference of the touch signal and the pre-set response threshold.

即当触控信号的电容差值大于响应阈值时,终端响应该触控信号,从而实现用户对显示屏幕的控制。而当触控信号的电容差值不大于响应阈值时,终端忽略该触控信号。That is, when the capacitance difference of the touch signal is greater than the response threshold, the terminal responds to the touch signal, thereby enabling the user to control the display screen. When the capacitance difference of the touch signal is not greater than the response threshold, the terminal ignores the touch signal.

如果终端设置较大的响应阈值,用户戴手套控制显示屏幕时,产生的触控信号的电容差值较小,终端可能不会响应触控信号,操作不便。如果终端设置较小的响应阈值,当用户手指未触摸显示屏幕而是悬停在显示屏幕的上方时,也可能会产生电容差值大于响应阈值的触控信号,导致终端响应该触控信号,造成误操作。因此,亟需提供一种触控信号响应方法,既可以避免误操作,也可以保证用户在戴手套的情况下仍然能够方便地控制显示屏幕。If the terminal sets a larger response threshold, when the user controls the display screen while wearing gloves, the capacitance difference of the touch signal generated is small, and the terminal may not respond to the touch signal, which is inconvenient to operate. If the terminal sets a smaller response threshold, when the user's finger does not touch the display screen but hovers above the display screen, a touch signal with a capacitance difference greater than the response threshold may also be generated, causing the terminal to respond to the touch signal, resulting in erroneous operation. Therefore, it is urgent to provide a touch signal response method that can avoid erroneous operations and ensure that the user can still conveniently control the display screen while wearing gloves.

发明内容Summary of the invention

本公开提供一种触控信号响应方法、装置及存储介质,能够提供一种触控信号响应方法,在避免误操作的同时,还能保证用户在戴手套的情况下仍然能够方便地控制显示屏幕,所述技术方案如下:The present disclosure provides a touch signal response method, device and storage medium, which can provide a touch signal response method, while avoiding misoperation, and can also ensure that the user can still conveniently control the display screen when wearing gloves. The technical solution is as follows:

根据本公开实施例的第一方面,提供了一种触控信号响应方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a touch signal response method is provided, the method comprising:

在开启悬停Hover抑制功能的情况下,检测显示屏幕上的触控信号,所述Hover抑制功能用于指示按照第一响应阈值进行响应;In a case where a hover suppression function is turned on, detecting a touch signal on the display screen, wherein the hover suppression function is used to indicate a response according to a first response threshold;

当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,按照第二响应阈值进行响应,所述第二响应阈值小于所述第一响应阈值。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, and a movement event occurs after lasting for at least a first preset time in the same screen area, the Hover suppression function is turned off and a response is performed according to a second response threshold, which is less than the first response threshold.

在一种可能实现方式中,所述检测显示屏幕上的触控信号,包括:In a possible implementation, the detecting a touch signal on the display screen includes:

按照所述显示屏幕中多个屏幕区域的分布位置,遍历所述显示屏幕中的每个屏幕区域,检测遍历到的屏幕区域上的触控信号。According to the distribution positions of the multiple screen areas in the display screen, each screen area in the display screen is traversed, and a touch signal on the traversed screen area is detected.

在一种可能实现方式中,所述第一预设时长为预设单位时长和预设次数的乘积,所述预设单位时长为在一个检测周期内遍历所述显示屏幕中的所有屏幕区域所需的时长;In a possible implementation, the first preset duration is the product of a preset unit duration and a preset number of times, and the preset unit duration is the duration required to traverse all screen areas in the display screen within one detection cycle;

所述当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,包括:When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least a first preset time, turning off the Hover suppression function includes:

统计每个屏幕区域的连续触控次数,所述屏幕区域的连续触控次数为在所述屏幕区域上连续检测到电容差值不大于所述第一响应阈值的同一触控信号的检测周期的个数;Counting the number of continuous touches in each screen area, where the number of continuous touches in the screen area is the number of detection cycles of continuously detecting the same touch signal in the screen area with a capacitance difference not greater than the first response threshold;

当在任一屏幕区域上检测到触控信号发生所述移动事件,且所述触控信号对应的连续触控次数不小于预设次数时,关闭所述Hover抑制功能。When the movement event is detected by a touch signal on any screen area, and the number of continuous touches corresponding to the touch signal is not less than a preset number, the Hover suppression function is turned off.

在一种可能实现方式中,所述当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,包括:In a possible implementation, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least a first preset time, turning off the Hover suppression function includes:

当确定所述触控信号的电容差值不大于所述第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且所述触控信号作用的屏幕区域数量不小于预设数量时,关闭所述Hover抑制功能。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the number of screen areas affected by the touch signal is not less than a preset number, the Hover suppression function is turned off.

在一种可能实现方式中,所述当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,包括:In a possible implementation, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least a first preset time, turning off the Hover suppression function includes:

当确定所述触控信号的电容差值不大于所述第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且所述触控信号的移动距离不小于预设距离时,关闭所述Hover抑制功能。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the movement distance of the touch signal is not less than a preset distance, the Hover suppression function is turned off.

根据本公开实施例的第二方面,提供了一种触控信号响应装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, a touch signal response device is provided, the device comprising:

检测模块,用于在开启悬停Hover抑制功能的情况下,检测显示屏幕上的触控信号,所述Hover抑制功能用于指示按照第一响应阈值进行响应;A detection module, used to detect a touch signal on the display screen when a hover suppression function is turned on, wherein the hover suppression function is used to indicate a response according to a first response threshold;

关闭模块,用于当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,按照第二响应阈值进行响应,所述第二响应阈值小于所述第一响应阈值。A shutdown module is used to shut down the Hover suppression function and respond according to a second response threshold when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs after lasting for at least a first preset time in the same screen area, and the second response threshold is smaller than the first response threshold.

在一种可能实现方式中,所述检测模块包括:In a possible implementation, the detection module includes:

检测单元,用于按照所述显示屏幕中多个屏幕区域的分布位置,遍历所述显示屏幕中的每个屏幕区域,检测遍历到的屏幕区域上的触控信号。The detection unit is used to traverse each screen area in the display screen according to the distribution positions of the multiple screen areas in the display screen, and detect touch signals on the traversed screen areas.

在一种可能实现方式中,所述第一预设时长为预设单位时长和预设次数的乘积,所述预设单位时长为在一个检测周期内遍历所述显示屏幕中的所有屏幕区域所需的时长;In a possible implementation, the first preset duration is the product of a preset unit duration and a preset number of times, and the preset unit duration is the duration required to traverse all screen areas in the display screen within one detection cycle;

所述关闭模块包括:The closing module comprises:

统计单元,用于统计每个屏幕区域的连续触控次数,所述屏幕区域的连续触控次数为在所述屏幕区域上连续检测到电容差值不大于所述第一响应阈值的同一触控信号的检测周期的个数;a counting unit, configured to count the number of continuous touches in each screen area, where the number of continuous touches in the screen area is the number of detection cycles in which the same touch signal having a capacitance difference not greater than the first response threshold is continuously detected on the screen area;

关闭单元,用于当在任一屏幕区域上检测到触控信号发生所述移动事件,且所述触控信号对应的连续触控次数不小于预设次数时,关闭所述Hover抑制功能。The closing unit is used to close the Hover suppression function when the movement event is detected by the touch signal on any screen area and the number of continuous touches corresponding to the touch signal is not less than a preset number.

在一种可能实现方式中,所述关闭模块包括:In a possible implementation, the closing module includes:

第一关闭单元,用于当确定所述触控信号的电容差值不大于所述第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且所述触控信号作用的屏幕区域数量不小于预设数量时,关闭所述Hover抑制功能。The first shut-down unit is used to shut down the Hover suppression function when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time period, and the number of screen areas affected by the touch signal is not less than a preset number.

在一种可能实现方式中,所述关闭模块包括:In a possible implementation, the closing module includes:

第二关闭单元,用于当确定所述触控信号的电容差值不大于所述第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且所述触控信号的移动距离不小于预设距离时,关闭所述Hover抑制功能。The second shut-down unit is used to shut down the Hover suppression function when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time period, and the movement distance of the touch signal is not less than a preset distance.

根据本公开实施例的第三方面,提供了一种触控信号响应装置,所述装置包括:According to a third aspect of an embodiment of the present disclosure, a touch signal response device is provided, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;a memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured to:

在开启悬停Hover抑制功能的情况下,检测显示屏幕上的触控信号,所述Hover抑制功能用于指示按照第一响应阈值进行响应;In a case where a hover suppression function is turned on, detecting a touch signal on the display screen, wherein the hover suppression function is used to indicate a response according to a first response threshold;

当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,按照第二响应阈值进行响应,所述第二响应阈值小于所述第一响应阈值。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, and a movement event occurs after lasting for at least a first preset time in the same screen area, the Hover suppression function is turned off and a response is performed according to a second response threshold, which is less than the first response threshold.

根据本公开实施例的第四方面,提供了一种触控信号响应装置,当所述存储介质中的指令由触控信号响应装置的处理器执行时,使得触控信号响应装置能够执行一种触控信号响应方法,所述方法包括:According to a fourth aspect of an embodiment of the present disclosure, a touch signal response device is provided. When the instructions in the storage medium are executed by a processor of the touch signal response device, the touch signal response device is enabled to execute a touch signal response method, the method comprising:

在开启悬停Hover抑制功能的情况下,检测显示屏幕上的触控信号,所述Hover抑制功能用于指示按照第一响应阈值进行响应;In a case where a hover suppression function is turned on, detecting a touch signal on the display screen, wherein the hover suppression function is used to indicate a response according to a first response threshold;

当确定所述触控信号的电容差值不大于所述第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭所述Hover抑制功能,按照第二响应阈值进行响应,所述第二响应阈值小于所述第一响应阈值。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, and a movement event occurs after lasting for at least a first preset time in the same screen area, the Hover suppression function is turned off and a response is performed according to a second response threshold, which is less than the first response threshold.

本公开实施例提供的触控信号响应方法、装置及存储介质,Hover抑制功能用于指示按照第一响应阈值进行响应,在开启Hover抑制功能的情况下,检测显示屏幕上的触控信号,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,确定此时用户是在戴手套的情况下操作终端,因此关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。本公开实施例充分考虑到了用户的操作习惯,即用户手指在控制显示屏幕时一般会停顿一段时间后再进行滑动操作,而用户手指悬停在终端上方时并不会先停顿一段时间再进行滑动操作,因此通过检测先停顿一段时间再进行滑动操作而产生的触控信号,区分用户戴手套的情况和用户手指悬停在终端上方的情况,避免了误操作,还能保证用户在戴手套的情况下仍然能够方便地控制显示屏幕。In the touch signal response method, device and storage medium provided by the embodiment of the present disclosure, the Hover suppression function is used to indicate to respond according to the first response threshold value. When the Hover suppression function is turned on, the touch signal on the display screen is detected. When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold value, and a movement event occurs after continuing for at least the first preset time in the same screen area, it is determined that the user is operating the terminal while wearing gloves. Therefore, the Hover suppression function is turned off and the response is performed according to the second response threshold value, and the second response threshold value is less than the first response threshold value. The embodiment of the present disclosure fully considers the user's operating habits, that is, when controlling the display screen, the user's finger generally pauses for a period of time before sliding, and when the user's finger hovers above the terminal, it does not pause for a period of time before sliding. Therefore, by detecting the touch signal generated by pausing for a period of time before sliding, the situation where the user wears gloves and the situation where the user's finger hovers above the terminal are distinguished, thereby avoiding misoperation and ensuring that the user can still conveniently control the display screen while wearing gloves.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

图1是根据一示例性实施例示出的一种触控信号响应方法的流程图;FIG1 is a flow chart of a touch signal response method according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种触控信号响应方法的流程图;FIG2 is a flow chart of a touch signal response method according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种检测到触控信号的屏幕区域示意图;Fig. 3 is a schematic diagram showing a screen area where a touch signal is detected according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种操作流程示意图;FIG4 is a schematic diagram of an operation flow according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种触控信号响应装置的框图;FIG5 is a block diagram of a touch signal response device according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种用于响应触控信号的终端的框图。Fig. 6 is a block diagram showing a terminal for responding to a touch signal according to an exemplary embodiment.

具体实施方式DETAILED DESCRIPTION

下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

图1是根据一示例性实施例示出的一种触控信号响应方法的流程图,应用于终端中,如图1所示,包括以下步骤:FIG. 1 is a flow chart of a touch signal response method according to an exemplary embodiment, which is applied in a terminal. As shown in FIG. 1 , the method includes the following steps:

在步骤101中,开启Hover抑制功能的情况下,检测显示屏幕上的触控信号。In step 101, when the hover suppression function is enabled, a touch signal on the display screen is detected.

其中,Hover(悬停)抑制功能用于指示按照第一响应阈值进行响应。The Hover suppression function is used to instruct to respond according to the first response threshold.

在步骤102中,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。In step 102, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, and a movement event occurs after lasting at least a first preset time in the same screen area, the Hover suppression function is turned off and a response is performed according to the second response threshold, which is less than the first response threshold.

本公开实施例提供的方法,Hover抑制功能用于指示按照第一响应阈值进行响应,在开启Hover抑制功能时,检测显示屏幕上的触控信号,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,确定此时用户是在戴手套的情况下操作终端,因此关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。本公开实施例充分考虑到了用户的操作习惯,即用户手指在控制显示屏幕时一般会停顿一段时间后再进行滑动操作,而用户手指悬停在终端上方时并不会先停顿一段时间再进行滑动操作,因此通过检测先停顿一段时间再进行滑动操作而产生的触控信号,区分用户戴手套的情况和用户手指悬停在终端上方的情况,避免了误操作,还能保证用户在戴手套的情况下仍然能够方便地控制显示屏幕。In the method provided by the embodiment of the present disclosure, the Hover suppression function is used to indicate to respond according to the first response threshold value. When the Hover suppression function is turned on, the touch signal on the display screen is detected. When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold value, and a movement event occurs after continuing for at least the first preset time in the same screen area, it is determined that the user is operating the terminal while wearing gloves. Therefore, the Hover suppression function is turned off and the response is performed according to the second response threshold value, and the second response threshold value is less than the first response threshold value. The embodiment of the present disclosure fully considers the user's operating habits, that is, when controlling the display screen, the user's finger generally pauses for a period of time before sliding, and when the user's finger hovers above the terminal, it does not pause for a period of time before sliding. Therefore, by detecting the touch signal generated by pausing for a period of time before sliding, the situation where the user wears gloves and the situation where the user's finger hovers above the terminal are distinguished, thereby avoiding misoperation and ensuring that the user can still conveniently control the display screen while wearing gloves.

在一种可能实现方式中,检测显示屏幕上的触控信号,包括:In a possible implementation, detecting a touch signal on a display screen includes:

按照显示屏幕中多个屏幕区域的分布位置,遍历显示屏幕中的每个屏幕区域,检测遍历到的屏幕区域上的触控信号。According to the distribution positions of the multiple screen areas in the display screen, each screen area in the display screen is traversed, and the touch signal on the traversed screen area is detected.

在一种可能实现方式中,第一预设时长为预设单位时长和预设次数的乘积,预设单位时长为在一个检测周期内遍历显示屏幕中的所有屏幕区域所需的时长;In a possible implementation, the first preset duration is the product of a preset unit duration and a preset number of times, and the preset unit duration is the duration required to traverse all screen areas in the display screen within one detection cycle;

当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭Hover抑制功能,包括:When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, and a movement event occurs after lasting for at least a first preset time in the same screen area, turning off the Hover suppression function includes:

统计每个屏幕区域的连续触控次数,屏幕区域的连续触控次数为在屏幕区域上连续检测到电容差值不大于第一响应阈值的同一触控信号的检测周期的个数;Counting the number of continuous touches in each screen area, where the number of continuous touches in the screen area is the number of detection cycles of the same touch signal whose capacitance difference is not greater than the first response threshold value is continuously detected on the screen area;

当在任一屏幕区域上检测到触控信号发生移动事件,且触控信号对应的连续触控次数不小于预设次数时,关闭Hover抑制功能。When a movement event of a touch signal is detected on any screen area, and the number of continuous touches corresponding to the touch signal is not less than a preset number, the Hover suppression function is turned off.

在一种可能实现方式中,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭Hover抑制功能,包括:In a possible implementation, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least a first preset time, turning off the Hover suppression function includes:

当确定触控信号的电容差值不大于第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且触控信号作用的屏幕区域数量不小于预设数量时,关闭Hover抑制功能。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the number of screen areas affected by the touch signal is not less than a preset number, the Hover suppression function is turned off.

在一种可能实现方式中,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭Hover抑制功能,包括:In a possible implementation, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least a first preset time, turning off the Hover suppression function includes:

当确定触控信号的电容差值不大于第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且触控信号的移动距离不小于预设距离时,关闭Hover抑制功能。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the movement distance of the touch signal is not less than a preset distance, the Hover suppression function is turned off.

图2是根据一示例性实施例示出的一种触控信号响应方法的流程图,应用于终端中,如图2所示,包括以下步骤:FIG. 2 is a flow chart of a touch signal response method according to an exemplary embodiment, which is applied in a terminal. As shown in FIG. 2 , the method includes the following steps:

在步骤201中,开启Hover抑制功能。In step 201, the hover suppression function is enabled.

其中,终端可以为手机、平板电脑等设备。终端配置有电容式的显示屏幕,该显示屏幕可以采用TDDI(Touch and Display Driver Integration,触控与显示驱动器集成)incell(一种内嵌式触控面板)、Oncell(一种外嵌式触控面板)、Hybrid incell(另一种内嵌式触控面板)、GFF(Glass-Film-Film,一种外挂式触控面板)、GG(Glass-Glass,另一种外挂式触控面板)等。The terminal may be a mobile phone, a tablet computer, or other devices. The terminal is equipped with a capacitive display screen, which may adopt TDDI (Touch and Display Driver Integration), incell (an embedded touch panel), Oncell (an external touch panel), Hybrid incell (another embedded touch panel), GFF (Glass-Film-Film, an external touch panel), GG (Glass-Glass, another external touch panel), etc.

终端预先设置有基准电容值,该基准电容值为显示屏幕在没有用户手指接近或触摸时的电容值。当用户手指接近或触摸显示屏幕时,由于人体电场的作用,用户手指与显示屏幕构成耦合电容,会导致显示屏幕的电容值发生变化,此时终端可以获取显示屏幕的电容值与基准电容值中较大的电容值与较小的电容值之差,得到电容差值,此时终端检测到显示屏幕上的触控信号。其中,用户手指与显示屏幕之间的距离越小,产生的电容差值越大。The terminal is pre-set with a reference capacitance value, which is the capacitance value of the display screen when no user's finger approaches or touches it. When the user's finger approaches or touches the display screen, due to the effect of the human body's electric field, the user's finger and the display screen form a coupling capacitor, which will cause the capacitance value of the display screen to change. At this time, the terminal can obtain the difference between the capacitance value of the display screen and the larger capacitance value and the smaller capacitance value in the reference capacitance value, and obtain the capacitance difference. At this time, the terminal detects a touch signal on the display screen. Among them, the smaller the distance between the user's finger and the display screen, the greater the capacitance difference generated.

其中,终端可以通过检测节点获取该电容差值,或者终端可以采用其他方式获取该电容差值。The terminal may obtain the capacitance difference by detecting the node, or the terminal may obtain the capacitance difference by other means.

在一种可能实现方式中,终端包括检测节点、显示屏幕和控制单元,检测节点配置于显示屏幕上,且检测节点与控制单元连接。检测节点可以获取显示屏幕当前的电容值,并将该电容值发送至控制单元,控制单元在接收到该电容值后,获取电容值与基准电容值中较大的电容值与较小的电容值之差,得到电容差值。In a possible implementation, the terminal includes a detection node, a display screen, and a control unit, wherein the detection node is configured on the display screen and connected to the control unit. The detection node can obtain the current capacitance value of the display screen and send the capacitance value to the control unit, and after receiving the capacitance value, the control unit obtains the difference between the larger capacitance value and the smaller capacitance value of the reference capacitance value to obtain the capacitance difference value.

本公开实施例中,终端提供了Hover抑制功能,该Hover抑制功能用于指示按照第一响应阈值进行响应,根据Hover抑制功能的开启与否,终端可以包括以下运行模式:In the embodiment of the present disclosure, the terminal provides a Hover suppression function, which is used to indicate to respond according to the first response threshold. Depending on whether the Hover suppression function is turned on or not, the terminal may include the following operating modes:

第一种、开启Hover抑制功能:The first method is to enable the Hover suppression function:

当终端检测到触控信号的电容差值大于第一响应阈值时,响应该触控信号,从而实现用户对显示屏幕的控制。而当触控信号的电容差值不大于第一响应阈值时,忽略该触控信号。When the terminal detects that the capacitance difference of the touch signal is greater than the first response threshold, the terminal responds to the touch signal, thereby enabling the user to control the display screen. When the capacitance difference of the touch signal is not greater than the first response threshold, the touch signal is ignored.

其中,该第一响应阈值可根据用户不戴手套的情况下控制显示屏幕时产生的电容差值的最小值确定。The first response threshold may be determined according to a minimum value of a capacitance difference generated when the user controls the display screen without wearing gloves.

第二种、关闭Hover抑制功能:The second method is to turn off the Hover suppression function:

当终端检测到触控信号的电容差值大于第二响应阈值时,响应该触控信号,从而实现用户对显示屏幕的控制。而当触控信号的电容差值不大于第二响应阈值时,忽略该触控信号。When the terminal detects that the capacitance difference of the touch signal is greater than the second response threshold, the terminal responds to the touch signal, thereby enabling the user to control the display screen. When the capacitance difference of the touch signal is not greater than the second response threshold, the touch signal is ignored.

其中,该第二响应阈值可根据用户戴手套的情况下控制显示屏幕时产生的电容差值的最小值确定,且第二响应阈值小于第一响应阈值。The second response threshold can be determined according to the minimum value of the capacitance difference generated when the user controls the display screen while wearing gloves, and the second response threshold is smaller than the first response threshold.

上述两种运行模式的区别在于采用的响应阈值不同,当触控信号的电容差值大于第二响应阈值而小于第一响应阈值时,在关闭Hover抑制功能的情况下,终端会响应该触控信号,而在开启Hover抑制功能的情况下,终端不响应该触控信号。The difference between the above two operating modes lies in the different response thresholds used. When the capacitance difference of the touch signal is greater than the second response threshold but less than the first response threshold, when the Hover suppression function is turned off, the terminal will respond to the touch signal, and when the Hover suppression function is turned on, the terminal will not respond to the touch signal.

关于响应触控信号的方式,终端可以预先获取当前显示屏幕的显示界面,并在检测到触控信号时,获取触控信号的位置,基于当前显示屏幕的显示界面以及触控信号的位置来响应该触控信号。其中触控信号的位置可以以触控信号在坐标系中的坐标表示,该坐标系可以为以显示屏幕的左上角或右上角等位置为原点而建立的坐标系。Regarding the method of responding to the touch signal, the terminal may pre-acquire the display interface of the current display screen, and when the touch signal is detected, acquire the position of the touch signal, and respond to the touch signal based on the display interface of the current display screen and the position of the touch signal. The position of the touch signal may be represented by the coordinates of the touch signal in a coordinate system, and the coordinate system may be a coordinate system established with the upper left corner or upper right corner of the display screen as the origin.

例如:终端当前显示屏幕的显示界面中包括多个应用客户端的应用图标,且每个应用图标位于显示屏幕的不同位置,当用户想启动应用客户端A时,会用手指触摸显示屏幕中该应用客户端A的应用图标所在的位置,产生触控信号。终端检测到触控信号时,获取该触控信号的位置,确定该触控信号的位置为应用客户端A的应用图标所在的位置,则启动应用客户端A,显示应用客户端A的界面。For example, the display interface of the terminal's current display screen includes application icons of multiple application clients, and each application icon is located at a different position on the display screen. When the user wants to start application client A, he touches the position of the application icon of application client A on the display screen with his finger to generate a touch signal. When the terminal detects the touch signal, it obtains the position of the touch signal, determines that the position of the touch signal is the position of the application icon of application client A, and then starts application client A and displays the interface of application client A.

本公开实施例以开启Hover抑制功能的情况为例,终端可以在开机时自动开启Hover抑制功能,或者终端提供Hover抑制功能的开关,用户通过该开关可以控制Hover抑制功能的开启或关闭,则当用户开启该开关时,终端开启Hover抑制功能,或者终端还可以采用其他方式开启Hover抑制功能。The embodiments of the present disclosure take the case of turning on the Hover suppression function as an example. The terminal can automatically turn on the Hover suppression function when it is turned on, or the terminal provides a switch for the Hover suppression function, and the user can control the turning on or off of the Hover suppression function through the switch. When the user turns on the switch, the terminal turns on the Hover suppression function, or the terminal can also use other methods to turn on the Hover suppression function.

在步骤202中,按照显示屏幕中多个屏幕区域的分布位置,遍历显示屏幕中的每个屏幕区域,检测遍历到的屏幕区域上的触控信号。In step 202, each screen area in the display screen is traversed according to the distribution positions of the multiple screen areas in the display screen, and a touch signal on the traversed screen area is detected.

本公开实施例中,终端的显示屏幕包括多个屏幕区域,且这些屏幕区域分别分布在显示屏幕的不同位置。终端遍历显示屏幕中的每个屏幕区域,每次遍历到一个屏幕区域时,获取该屏幕区域的电容差值,根据该电容差值确定该屏幕区域上是否检测到触控信号。In the disclosed embodiment, the display screen of the terminal includes multiple screen areas, and these screen areas are respectively distributed at different positions of the display screen. The terminal traverses each screen area in the display screen, and each time it traverses a screen area, it obtains the capacitance difference of the screen area, and determines whether a touch signal is detected on the screen area according to the capacitance difference.

关于多个屏幕区域的划分方式,在一种可能实现方式中,显示屏幕上配置多个检测节点,可将每个检测节点所在的屏幕区域作为一个屏幕区域。例如:该检测节点包括18行和32列,那么其检测节点的数量为18*32=576个,相应地,终端的显示屏幕包括576个屏幕区域。Regarding the division of multiple screen areas, in one possible implementation, multiple detection nodes are configured on the display screen, and the screen area where each detection node is located can be regarded as a screen area. For example, if the detection node includes 18 rows and 32 columns, the number of detection nodes is 18*32=576, and accordingly, the display screen of the terminal includes 576 screen areas.

关于遍历每个屏幕区域的方式,终端可以按照多个屏幕区域的分布位置,按照从左至右、从上至下的顺序依次获取,或者是按照从上至下、从左至右的顺序依次获取,或者还可以采用其他方式。Regarding the method of traversing each screen area, the terminal may obtain the information in order from left to right and from top to bottom according to the distribution positions of the multiple screen areas, or in order from top to bottom and from left to right, or may also adopt other methods.

在一种可能实现方式中,终端设置预设阈值,在获取到的每个屏幕区域的电容差值后,按照获取到的电容差值与预设阈值,确定该屏幕区域是否检测到触控信号。即终端获取到电容差值后,将获取到的电容差值与预设阈值进行对比,当电容差值大于该预设阈值时,终端确定该电容差值所对应的屏幕区域检测到触控信号,而电容差值不大于该预设阈值时,终端确定该电容差值所对应的屏幕区域未检测到触控信号。其中,该预设阈值可依据多种情况下用户控制显示屏幕时产生的电容差值的最小值确定。In a possible implementation, the terminal sets a preset threshold value, and after obtaining the capacitance difference value of each screen area, determines whether the screen area detects a touch signal according to the obtained capacitance difference value and the preset threshold value. That is, after the terminal obtains the capacitance difference value, it compares the obtained capacitance difference value with the preset threshold value. When the capacitance difference value is greater than the preset threshold value, the terminal determines that the screen area corresponding to the capacitance difference value detects a touch signal, and when the capacitance difference value is not greater than the preset threshold value, the terminal determines that the screen area corresponding to the capacitance difference value does not detect a touch signal. Among them, the preset threshold value can be determined based on the minimum value of the capacitance difference value generated when the user controls the display screen under various circumstances.

例如:如图3所示,当预设阈值为15法拉时,将电容差值大于15法拉的屏幕区域作为检测到触控信号的屏幕区域。For example, as shown in FIG3 , when the preset threshold is 15 Farads, the screen area where the capacitance difference is greater than 15 Farads is used as the screen area where the touch signal is detected.

通过将获取到的电容差值与预先设置的预设阈值进行对比,防止了由于空气中的灰尘或者其他因素导致屏幕区域的电容差值发生变化,而导致终端误判的问题,提高了终端检测触控信号的准确性。By comparing the acquired capacitance difference with a preset threshold, the problem of terminal misjudgment caused by changes in the capacitance difference of the screen area due to dust in the air or other factors is prevented, thereby improving the accuracy of the terminal in detecting touch signals.

需要说明的一点是,该步骤202仅是以终端通过遍历该多个屏幕区域来检测触控信号的方式进行了说明,在另一实施例中,终端也可以采用其他方式检测显示屏幕上的触控信号。It should be noted that step 202 is only described in terms of the terminal detecting the touch signal by traversing the multiple screen areas. In another embodiment, the terminal may also detect the touch signal on the display screen in other ways.

需要说明的另一点是,本公开实施例以该步骤202在该步骤201之后执行为例进行说明,而在另一实施例中,在终端开启Hover抑制功能之后的任意时刻,均可执行该步骤202,该步骤202可以执行一次或多次,只需保证每次在终端开启Hover抑制功能的情况下执行即可。Another point that needs to be explained is that the embodiment of the present disclosure is explained by taking the execution of step 202 after step 201 as an example. In another embodiment, step 202 can be executed at any time after the terminal turns on the Hover suppression function. Step 202 can be executed once or multiple times, as long as it is executed each time when the Hover suppression function is turned on in the terminal.

在步骤203中,统计每个屏幕区域的连续触控次数,屏幕区域的连续触控次数为在该屏幕区域上连续检测到电容差值不大于第一响应阈值的同一触控信号的检测周期的个数,即在连续n个检测周期内同一屏幕区域上都检测到电容差值不大于第一响应阈值的同一触控信号,则该屏幕区域的连续触控次数为n。In step 203, the number of continuous touches of each screen area is counted. The number of continuous touches of a screen area is the number of detection cycles in which the same touch signal with a capacitance difference not greater than the first response threshold is continuously detected on the screen area, that is, if the same touch signal with a capacitance difference not greater than the first response threshold is detected on the same screen area in n consecutive detection cycles, the number of continuous touches of the screen area is n.

本公开实施例中,用户手指控制显示屏幕的过程中,会在显示屏幕上触发触控信号,此时终端可以接收到触控通知,该触控通知包括触控标识、触控区域和触控事件。其中,触控标识与触控信号一一对应,终端在第一次检测到触控信号时,会为该触控信号配置触控标识,在该触控信号在显示屏幕上滑动的过程中,触控信号的触控标识不变。触控区域为触控信号在显示屏幕上的作用区域,该触控区域可以在显示屏幕中的坐标表示,对于同一个触控信号来说,在触控信号在显示屏幕上滑动的过程中,触控区域会相应发生变化。触控事件为触控信号发生的事件,触控事件可以包括点击事件、移动事件等,触控事件可以以事件标识表示,不同的事件标识表示不同类型的触控事件。In the disclosed embodiment, when the user's finger controls the display screen, a touch signal will be triggered on the display screen. At this time, the terminal can receive a touch notification, which includes a touch identifier, a touch area, and a touch event. Among them, the touch identifier corresponds to the touch signal one by one. When the terminal detects the touch signal for the first time, it will configure a touch identifier for the touch signal. During the sliding of the touch signal on the display screen, the touch identifier of the touch signal remains unchanged. The touch area is the effective area of the touch signal on the display screen. The touch area can be represented by the coordinates in the display screen. For the same touch signal, the touch area will change accordingly during the sliding of the touch signal on the display screen. A touch event is an event that occurs when a touch signal occurs. A touch event can include a click event, a move event, etc. A touch event can be represented by an event identifier, and different event identifiers represent different types of touch events.

例如,触控标识可以以触控ID(IDentification,身份)的方式表示,触控事件以Status(状态)表示,那么终端接收到的触控通知如表1所示。For example, the touch identification may be represented by a touch ID (IDentification), and the touch event may be represented by a Status (status). Then the touch notification received by the terminal is as shown in Table 1.

表1Table 1

触控标识Touch logo移动事件Mobile EventsIDIDStatus=2Status=2

关于触控标识以触控ID表示的方式,在一种可能实现方式中,第一个控制显示屏幕的手指的触控标识可以用ID0表示,第二个控制显示屏幕的手指的触控标识可以用ID1表示,以此类推,或者触控标识还可以采用其他方式表示。Regarding the way in which touch identifiers are represented by touch IDs, in one possible implementation, the touch identifier of the first finger that controls the display screen can be represented by ID0, the touch identifier of the second finger that controls the display screen can be represented by ID1, and so on, or the touch identifier can also be represented in other ways.

在一种可能实现方式中,终端可以通过调用显示屏幕的接口,接收显示屏幕上报的触控通知,或者,终端还可以采用其他方式接收触控通知。In a possible implementation, the terminal may receive the touch notification reported by the display screen by calling an interface of the display screen, or the terminal may receive the touch notification in other ways.

本公开实施例中,终端在遍历显示屏幕的每个屏幕区域,获取每个屏幕区域的电容差值后,还会继续重复执行该步骤,重新获取每个屏幕区域的电容差值,实现了每个屏幕区域的轮流检测。则将该显示屏幕中的所有屏幕区域均遍历一次可称为一个检测周期,在每个检测周期内,会获取每个屏幕区域的电容差值,检测每个屏幕区域上的触控信号。In the disclosed embodiment, after the terminal traverses each screen area of the display screen and obtains the capacitance difference of each screen area, it will continue to repeat this step to re-obtain the capacitance difference of each screen area, thereby realizing the detection of each screen area in turn. Traversing all screen areas in the display screen once can be called a detection cycle, and in each detection cycle, the capacitance difference of each screen area is obtained to detect the touch signal on each screen area.

在上述检测过程中,统计每个屏幕区域的连续触控次数。该屏幕区域的连续触控次数为在连续多个检测周期内均检测到电容差值不大于第一响应阈值的同一触控信号的次数,即在该屏幕区域上连续检测到电容差值不大于第一响应阈值的同一触控信号的检测周期的个数。In the above detection process, the number of continuous touches in each screen area is counted. The number of continuous touches in the screen area is the number of times the same touch signal with a capacitance difference not greater than the first response threshold is detected in multiple consecutive detection cycles, that is, the number of detection cycles in which the same touch signal with a capacitance difference not greater than the first response threshold is continuously detected on the screen area.

其中,在统计每个屏幕区域的连续触控次数时,终端在每个检测周期内,检测到该屏幕区域的电容差值不大于第一响应阈值,获取该触控信号的触控标识,当确定该触控标识与上一个检测周期内该屏幕区域上获取到的触控标识相同,即表明该触控信号与上次的触控信号为同一触控信号,则将连续触控次数加一。而在统计过程中,一旦中间有一次检测到触控信号的触控标识发生变化,或者触控信号的电容差值大于第一预设阈值,则将已统计的连续触控次数清零,重新进行统计。Among them, when counting the number of continuous touches in each screen area, the terminal detects that the capacitance difference of the screen area is not greater than the first response threshold in each detection cycle, obtains the touch identifier of the touch signal, and when it is determined that the touch identifier is the same as the touch identifier obtained on the screen area in the previous detection cycle, that is, it indicates that the touch signal is the same as the previous touch signal, then the number of continuous touches is increased by 1. During the statistical process, once the touch identifier of the touch signal is detected to change once, or the capacitance difference of the touch signal is greater than the first preset threshold, the counted number of continuous touches is cleared and counted again.

在步骤204中,当在任一屏幕区域上检测到触控信号发生移动事件,且触控信号对应的连续触控次数不小于预设次数时,关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。In step 204, when a touch signal movement event is detected on any screen area and the number of continuous touches corresponding to the touch signal is not less than a preset number, the Hover suppression function is turned off and a response is performed according to a second response threshold, which is less than the first response threshold.

考虑到用户在控制显示屏幕时,用户手指一般会停顿一段时间后再进行滑动操作。因此,为了确定用户手指停顿了一段时间,终端还设置预设次数,当终端统计的连续触控次数不小于预设次数时,表明用户手指停顿了一段时间。该预设次数可根据通常情况下用户手指停顿的时间确定。Considering that when the user controls the display screen, the user's finger generally pauses for a period of time before sliding. Therefore, in order to determine whether the user's finger has paused for a period of time, the terminal also sets a preset number of times. When the number of continuous touches counted by the terminal is not less than the preset number of times, it indicates that the user's finger has paused for a period of time. The preset number of times can be determined according to the time the user's finger usually pauses.

其中,移动事件指代的是终端连续两次检测到的同一触控信号的触控位置不同,当终端在任一屏幕区域检测到触控信号发生移动事件,且触控信号对应的连续触控次数不小于预设次数时,表明用户在戴着手套的情况下控制显示屏幕。Among them, a movement event refers to the different touch positions of the same touch signal detected by the terminal twice in a row. When the terminal detects a movement event of the touch signal in any screen area, and the number of consecutive touches corresponding to the touch signal is not less than the preset number, it indicates that the user is controlling the display screen while wearing gloves.

在一种可能实现方式中,终端在遍历显示屏幕中的每个屏幕区域,且检测到触控信号时,获取触控信号的触控标识和触控位置,当在下次遍历显示屏幕的每个屏幕区域且再次检测到触控信号时,还会获取再次检测到的触控信号的触控标识和触控位置,其中,触控标识相同的触控信号即为同一个触控信号,若两次触控标识相同,终端基于两次获取的触控位置判断该触控信号是否发生了移动。In one possible implementation, when the terminal traverses each screen area in the display screen and detects a touch signal, it obtains the touch identifier and touch position of the touch signal. When it traverses each screen area of the display screen next time and detects a touch signal again, it also obtains the touch identifier and touch position of the touch signal detected again. Touch signals with the same touch identifier are the same touch signal. If the two touch identifiers are the same, the terminal determines whether the touch signal has moved based on the two acquired touch positions.

例如:当终端周期性地获取每个屏幕区域的电容差值,以检测每个屏幕区域上的触控信号时,在一个检测周期内,终端在检测到触控信号时,获取触控信号的触控标识为ID1,触控位置为(x,y),当在下一个检测周期,终端再次遍历显示屏幕的每个区域且再次检测到触控信号时,获取再次检测到的触控信号的触控标识为ID1,触控位置为(m,n),触控位置发生了变化,则终端确定检测到触控信号发生移动事件。For example: when the terminal periodically obtains the capacitance difference of each screen area to detect the touch signal on each screen area, within a detection cycle, when the terminal detects the touch signal, the touch identifier of the touch signal is obtained as ID1, and the touch position is (x, y). When in the next detection cycle, the terminal traverses each area of the display screen again and detects the touch signal again, the touch identifier of the touch signal detected again is obtained as ID1, and the touch position is (m, n). If the touch position changes, the terminal determines that a movement event of the touch signal is detected.

终端在确定当前是用户在戴着手套的情况下控制显示屏幕时,会关闭Hover抑制功能,并按照第二响应阈值进行响应,由于第二响应阈值小于第一响应阈值,且在用户戴手套的情况下控制显示屏幕时,产生的触控信号的电容差值大于该第二响应阈值,因此终端能够响应触控信号,增加了显示屏幕的灵敏度。When the terminal determines that the user is currently controlling the display screen while wearing gloves, it will turn off the Hover suppression function and respond according to the second response threshold. Since the second response threshold is smaller than the first response threshold and the capacitance difference of the touch signal generated when the user controls the display screen while wearing gloves is greater than the second response threshold, the terminal can respond to the touch signal, thereby increasing the sensitivity of the display screen.

需要说明的是,上述步骤203-204仅是说明了触控信号对应的连续触控次数不小于预设次数时,终端如何确定用户是在戴手套的情况下对终端进行控制。遍历显示屏幕中的所有屏幕区域所需的时长称为预设单位时长,预设单位时长和预设次数的乘积为第一预设时长,通过上述统计方式,可以保证当屏幕区域的连续触控次数达到预设次数时,触控信号作用在该屏幕区域中的持续时长达到第一预设时长。It should be noted that the above steps 203-204 only illustrate how the terminal determines whether the user is controlling the terminal while wearing gloves when the number of continuous touches corresponding to the touch signal is not less than the preset number. The time required to traverse all screen areas in the display screen is called the preset unit time, and the product of the preset unit time and the preset number is the first preset time. Through the above statistical method, it can be ensured that when the number of continuous touches in the screen area reaches the preset number, the duration of the touch signal acting on the screen area reaches the first preset time.

在另一实施例中,还可以采用其他方式确定用户是否是在戴手套的情况下控制显示屏幕,仅需保证终端当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,即可关闭Hover抑制功能。In another embodiment, other methods can be used to determine whether the user is controlling the display screen while wearing gloves. It is only necessary to ensure that when the terminal determines that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least a first preset time, the Hover suppression function can be turned off.

在一种可能实现方式中,当确定触控信号的电容差值不大于第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且触控信号作用的屏幕区域数量不小于预设数量时,关闭Hover抑制功能。In one possible implementation, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the number of screen areas affected by the touch signal is not less than a preset number, the Hover suppression function is turned off.

其中,触控信号作用的屏幕区域数量指代的是相邻的屏幕区域的总数量,该预设数量可根据通常情况下手指触摸显示屏幕时,用户手指与显示屏幕的接触区域包含的屏幕区域的数量确定,该预设数量可以为7、9,或者还可以为其他满足条件的数值。Among them, the number of screen areas affected by the touch signal refers to the total number of adjacent screen areas. The preset number can be determined based on the number of screen areas included in the contact area between the user's finger and the display screen when the finger touches the display screen under normal circumstances. The preset number can be 7, 9, or other values that meet the conditions.

由于终端在遍历显示屏幕中的每个屏幕区域时,可能会检测到灰尘或者其他因素产生的触控信号,并在下一个检测周期检测到触控信号发生移动事件时响应该触控信号,从而造成误操作。而灰尘或者其他因素产生的触控信号作用的屏幕区域通常情况下小于预设数量,因此本公开实施例提供的方法,通过设置预设数量,可以忽略由灰尘或者其他因素产生的触控信号,保证该触控信号是由用户手指对显示屏幕的触摸操作产生,避免了产生误操作。Since the terminal may detect a touch signal generated by dust or other factors when traversing each screen area in the display screen, and respond to the touch signal when a moving event of the touch signal is detected in the next detection cycle, it may cause an erroneous operation. The screen area affected by the touch signal generated by dust or other factors is usually less than the preset number. Therefore, the method provided in the embodiment of the present disclosure can ignore the touch signal generated by dust or other factors by setting the preset number, ensuring that the touch signal is generated by the user's finger touching the display screen, thereby avoiding erroneous operations.

在另一种可能实现方式中,当确定触控信号的电容差值不大于第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且触控信号的移动距离不小于预设距离时,关闭Hover抑制功能。In another possible implementation, when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting at least a first preset time, and the movement distance of the touch signal is not less than a preset distance, the Hover suppression function is turned off.

其中,该预设距离可根据用户控制显示屏幕过程中手指的移动距离确定,本公开实施例中,终端可以获取触控信号的移动距离,并将移动距离与预设距离进行对比,当该移动距离未达到预设距离时,则确定没有发生移动事件,而当该移动距离达到预设距离时,才确定发生移动事件,避免了由于用户手滑造成触控信号移动一段距离,而导致终端响应该触控信号的情况。Among them, the preset distance can be determined according to the moving distance of the finger during the user's control of the display screen. In the embodiment of the present disclosure, the terminal can obtain the moving distance of the touch signal and compare the moving distance with the preset distance. When the moving distance does not reach the preset distance, it is determined that no moving event has occurred. When the moving distance reaches the preset distance, it is determined that a moving event has occurred, thereby avoiding the situation where the touch signal moves a certain distance due to the user's slipping hand, causing the terminal to respond to the touch signal.

其中,触控信号的移动距离不小于预设距离包括以下至少一项:触控信号在横向方向上的移动距离不小于第一预设距离;触控信号在纵向方向上的移动距离不小于第二预设距离。The moving distance of the touch signal being not less than the preset distance includes at least one of the following: the moving distance of the touch signal in the horizontal direction is not less than the first preset distance; the moving distance of the touch signal in the vertical direction is not less than the second preset distance.

需要说明的是,终端配置显示屏幕,还可以运行显示屏幕的固件程序,通过该固件程序执行上述触控信号响应方法,其中,该固件程序可为firmware程序,或者还可以其他的程序。It should be noted that the terminal is configured with a display screen and can also run a firmware program of the display screen, and the above touch signal response method is executed through the firmware program, wherein the firmware program can be a firmware program, or can also be other programs.

本公开实施例提供的方法,Hover抑制功能用于指示按照第一响应阈值进行响应,在开启Hover抑制功能时,检测显示屏幕上的触控信号,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,确定此时用户是在戴手套的情况下操作终端,因此关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。本公开实施例充分考虑到了用户的操作习惯,即用户手指在控制显示屏幕时一般会停顿一段时间后再进行滑动操作,而用户手指悬停在终端上方时并不会先停顿一段时间再进行滑动操作,因此通过检测先停顿一段时间再进行滑动操作而产生的触控信号,区分用户戴手套的情况和用户手指悬停在终端上方的情况,避免了误操作,还能保证用户在戴手套的情况下仍然能够方便地控制显示屏幕。In the method provided by the embodiment of the present disclosure, the Hover suppression function is used to indicate to respond according to the first response threshold value. When the Hover suppression function is turned on, the touch signal on the display screen is detected. When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold value, and a movement event occurs after continuing for at least the first preset time in the same screen area, it is determined that the user is operating the terminal while wearing gloves. Therefore, the Hover suppression function is turned off and the response is performed according to the second response threshold value, and the second response threshold value is less than the first response threshold value. The embodiment of the present disclosure fully considers the user's operating habits, that is, when controlling the display screen, the user's finger generally pauses for a period of time before sliding, and when the user's finger hovers above the terminal, it does not pause for a period of time before sliding. Therefore, by detecting the touch signal generated by pausing for a period of time before sliding, the situation where the user wears gloves and the situation where the user's finger hovers above the terminal are distinguished, thereby avoiding misoperation and ensuring that the user can still conveniently control the display screen while wearing gloves.

图4是根据一示例性实施例示出的一种操作流程示意图,如图4所示,该操作流程包括:FIG. 4 is a schematic diagram of an operation flow according to an exemplary embodiment. As shown in FIG. 4 , the operation flow includes:

终端在开启Hover抑制功能的情况下,首先检测屏幕区域是否有触控信号,如果有触控信号,则检测该触控信号是否在同一屏幕区域中持续至少第一预设时长后发生移动事件,如果满足上述条件,终端关闭Hover抑制功能,如果不满足上述条件,终端继续开启Hover抑制功能。When the Hover suppression function is turned on, the terminal first detects whether there is a touch signal in the screen area. If there is a touch signal, it detects whether a movement event occurs after the touch signal continues in the same screen area for at least a first preset time period. If the above conditions are met, the terminal turns off the Hover suppression function. If the above conditions are not met, the terminal continues to turn on the Hover suppression function.

图5是根据一示例性实施例示出的一种触控信号响应装置的框图,如图5所示,该装置包括:FIG. 5 is a block diagram of a touch signal response device according to an exemplary embodiment. As shown in FIG. 5 , the device includes:

检测模块501,用于在开启悬停Hover抑制功能的情况下,检测显示屏幕上的触控信号,Hover抑制功能用于指示按照第一响应阈值进行响应;A detection module 501, configured to detect a touch signal on the display screen when a hover suppression function is enabled, wherein the hover suppression function is configured to indicate a response according to a first response threshold;

关闭模块502,用于当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。The closing module 502 is used to close the Hover suppression function and respond according to the second response threshold when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold and a movement event occurs in the same screen area after lasting for at least the first preset time period, and the second response threshold is less than the first response threshold.

本公开实施例提供的装置,Hover抑制功能用于指示按照第一响应阈值进行响应,在开启Hover抑制功能时,检测显示屏幕上的触控信号,当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,确定此时用户是在戴手套的情况下操作终端,因此关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。本公开实施例充分考虑到了用户的操作习惯,即用户手指在控制显示屏幕时一般会停顿一段时间后再进行滑动操作,而用户手指悬停在终端上方时并不会先停顿一段时间再进行滑动操作,因此通过检测先停顿一段时间再进行滑动操作而产生的触控信号,区分用户戴手套的情况和用户手指悬停在终端上方的情况,避免了误操作,还能保证用户在戴手套的情况下仍然能够方便地控制显示屏幕。In the device provided by the embodiment of the present disclosure, the Hover suppression function is used to indicate to respond according to the first response threshold value. When the Hover suppression function is turned on, the touch signal on the display screen is detected. When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold value, and a movement event occurs after continuing for at least the first preset time in the same screen area, it is determined that the user is operating the terminal while wearing gloves. Therefore, the Hover suppression function is turned off and the response is performed according to the second response threshold value, and the second response threshold value is less than the first response threshold value. The embodiment of the present disclosure fully considers the user's operating habits, that is, when controlling the display screen, the user's finger generally pauses for a period of time before sliding, and when the user's finger hovers above the terminal, it does not pause for a period of time before sliding. Therefore, by detecting the touch signal generated by pausing for a period of time before sliding, the situation where the user wears gloves and the situation where the user's finger hovers above the terminal are distinguished, thereby avoiding misoperation and ensuring that the user can still conveniently control the display screen while wearing gloves.

在一种可能实现方式中,检测模块501包括:In a possible implementation, the detection module 501 includes:

检测单元,用于按照显示屏幕中多个屏幕区域的分布位置,遍历显示屏幕中的每个屏幕区域,检测遍历到的屏幕区域上的触控信号。The detection unit is used to traverse each screen area in the display screen according to the distribution positions of the multiple screen areas in the display screen, and detect the touch signal on the traversed screen area.

在一种可能实现方式中,第一预设时长为预设单位时长和预设次数的乘积,预设单位时长为在一个检测周期内遍历显示屏幕中的所有屏幕区域所需的时长;In a possible implementation, the first preset duration is the product of a preset unit duration and a preset number of times, and the preset unit duration is the duration required to traverse all screen areas in the display screen within one detection cycle;

关闭模块502包括:The closing module 502 includes:

统计单元,用于统计每个屏幕区域的连续触控次数,屏幕区域的连续触控次数为在屏幕区域上连续检测到电容差值不大于第一响应阈值的同一触控信号的检测周期的个数;A counting unit, used to count the number of continuous touches in each screen area, where the number of continuous touches in the screen area is the number of detection cycles of the same touch signal whose capacitance difference is not greater than a first response threshold value is continuously detected on the screen area;

关闭单元,用于当在任一屏幕区域上检测到触控信号发生移动事件,且触控信号对应的连续触控次数不小于预设次数时,关闭Hover抑制功能。The closing unit is used to close the Hover suppression function when a movement event of a touch signal is detected on any screen area and the number of continuous touches corresponding to the touch signal is not less than a preset number.

在一种可能实现方式中,关闭模块502包括:In one possible implementation, the closing module 502 includes:

第一关闭单元,用于当确定触控信号的电容差值不大于第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且触控信号作用的屏幕区域数量不小于预设数量时,关闭Hover抑制功能。The first shut-down unit is used to shut down the Hover suppression function when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the number of screen areas affected by the touch signal is not less than a preset number.

在一种可能实现方式中,关闭模块502包括:In one possible implementation, the closing module 502 includes:

第二关闭单元,用于当确定触控信号的电容差值不大于第一响应阈值,在同一屏幕区域中持续至少第一预设时长后发生移动事件,且触控信号的移动距离不小于预设距离时,关闭Hover抑制功能。The second shut-down unit is used to shut down the Hover suppression function when it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, a movement event occurs in the same screen area after lasting for at least a first preset time, and the movement distance of the touch signal is not less than a preset distance.

图6是根据一示例性实施例示出的一种用于响应触控信号的终端600的框图。该终端600可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving PictureExperts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(MovingPicture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端600还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG6 is a block diagram of a terminal 600 for responding to a touch signal according to an exemplary embodiment. The terminal 600 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 600 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

处理器601可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器601可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器601也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器601可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器601还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

存储器602可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器602还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器602中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器601所具有以实现本申请中方法实施例提供的触控信号响应方法。The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, which is used by the processor 601 to implement the touch signal response method provided in the method embodiment of the present application.

在一些实施例中,终端600还可选包括有:外围设备接口603和至少一个外围设备。处理器601、存储器602和外围设备接口603之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口603相连。具体地,外围设备包括:射频电路604、触摸显示屏605、摄像头组件606、音频电路607、定位组件608和电源609中的至少一种。In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a touch display screen 605, a camera assembly 606, an audio circuit 607, a positioning assembly 608 and a power supply 609.

外围设备接口603可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器601和存储器602。在一些实施例中,处理器601、存储器602和外围设备接口603被集成在同一芯片或电路板上;在一些其他实施例中,处理器601、存储器602和外围设备接口603中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 603 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

射频电路604用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路604通过电磁信号与通信网络以及其他通信设备进行通信。射频电路604将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路604包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路604可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及13G)、无线局域网和/或WiFi(,无线保真)网络。在一些实施例中,射频电路604还可以包括NFC(NearField Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 13G), a wireless local area network and/or a WiFi (wireless fidelity) network. In some embodiments, the radio frequency circuit 604 may also include circuits related to NFC (NearField Communication), which is not limited in this application.

显示屏605用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏605是触摸显示屏时,显示屏605还具有采集在显示屏605的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器601进行处理。此时,显示屏605还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏605可以为一个,设置终端600的前面板;在另一些实施例中,显示屏605可以为至少两个,分别设置在终端600的不同表面或呈折叠设计;在再一些实施例中,显示屏605可以是柔性显示屏,设置在终端600的弯曲表面上或折叠面上。甚至,显示屏605还可以设置成非矩形的不规则图形,也即异形屏。显示屏605可以采用LCD(LiquidCrystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 605 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to collect touch signals on the surface or above the surface of the display screen 605. The touch signal can be input to the processor 601 as a control signal for processing. At this time, the display screen 605 can also be used to provide virtual buttons and/or virtual keyboards, also known as soft buttons and/or soft keyboards. In some embodiments, the display screen 605 can be one, and the front panel of the terminal 600 is set; in other embodiments, the display screen 605 can be at least two, which are respectively set on different surfaces of the terminal 600 or are folded; in some other embodiments, the display screen 605 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 600. Even, the display screen 605 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 605 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

摄像头组件606用于采集图像或视频。可选地,摄像头组件606包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件606还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 606 is used to capture images or videos. Optionally, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 606 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

音频电路607可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器601进行处理,或者输入至射频电路604以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端600的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器601或射频电路604的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路607还可以包括耳机插孔。The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 601 for processing, or input them into the radio frequency circuit 604 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 600. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 607 may also include a headphone jack.

定位组件A用于定位终端600的当前地理位置,以实现导航或LBS(Location BasedService,基于位置的服务)。定位组件608可以是基于美国的GPS(Global PositioningSystem,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯系统或欧盟的伽利略系统的定位组件。Positioning component A is used to locate the current geographical location of terminal 600 to implement navigation or LBS (Location Based Service). Positioning component 608 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the EU's Galileo system.

电源609用于为终端600中的各个组件进行供电。电源609可以是交流电、直流电、一次性电池或可充电电池。当电源609包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。The power supply 609 is used to power various components in the terminal 600. The power supply 609 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 609 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

在一些实施例中,终端600还包括有一个或多个传感器610。该一个或多个传感器610包括但不限于:加速度传感器611、陀螺仪传感器612、压力传感器613、指纹传感器614、光学传感器615以及接近传感器616。In some embodiments, the terminal 600 further includes one or more sensors 610 , including but not limited to: an acceleration sensor 611 , a gyroscope sensor 612 , a pressure sensor 613 , a fingerprint sensor 614 , an optical sensor 615 , and a proximity sensor 616 .

加速度传感器611可以检测以终端600建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器611可以用于检测重力加速度在三个坐标轴上的分量。处理器601可以根据加速度传感器611采集的重力加速度信号,控制触摸显示屏605以横向视图或纵向视图进行用户界面的显示。加速度传感器611还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 611 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 600. For example, the acceleration sensor 611 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 601 can control the touch display screen 605 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 611. The acceleration sensor 611 can also be used for collecting game or user motion data.

陀螺仪传感器612可以检测终端600的机体方向及转动角度,陀螺仪传感器612可以与加速度传感器611协同采集用户对终端600的3D动作。处理器601根据陀螺仪传感器612采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyro sensor 612 can detect the body direction and rotation angle of the terminal 600, and the gyro sensor 612 can cooperate with the acceleration sensor 611 to collect the user's 3D actions on the terminal 600. The processor 601 can implement the following functions based on the data collected by the gyro sensor 612: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

压力传感器613可以设置在终端600的侧边框和/或触摸显示屏605的下层。当压力传感器613设置在终端600的侧边框时,可以检测用户对终端600的握持信号,由处理器601根据压力传感器613采集的握持信号进行左右手识别或快捷操作。当压力传感器613设置在触摸显示屏605的下层时,由处理器601根据用户对触摸显示屏605的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 613 can be set on the side frame of the terminal 600 and/or the lower layer of the touch display screen 605. When the pressure sensor 613 is set on the side frame of the terminal 600, it can detect the user's holding signal of the terminal 600, and the processor 601 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is set on the lower layer of the touch display screen 605, the processor 601 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

指纹传感器614用于采集用户的指纹,由处理器601根据指纹传感器614采集到的指纹识别用户的身份,或者,由指纹传感器614根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器601授权该用户具有相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器614可以被设置终端600的正面、背面或侧面。当终端600上设置有物理按键或厂商Logo时,指纹传感器614可以与物理按键或厂商标志集成在一起。The fingerprint sensor 614 is used to collect the user's fingerprint, and the processor 601 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 601 authorizes the user to have relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 614 can be set on the front, back, or side of the terminal 600. When a physical button or a manufacturer logo is set on the terminal 600, the fingerprint sensor 614 can be integrated with the physical button or the manufacturer logo.

光学传感器615用于采集环境光强度。在一个实施例中,处理器601可以根据光学传感器615采集的环境光强度,控制触摸显示屏605的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏605的显示亮度;当环境光强度较低时,调低触摸显示屏605的显示亮度。在另一个实施例中,处理器601还可以根据光学传感器615采集的环境光强度,动态调整摄像头组件606的拍摄参数。The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the touch display screen 605 according to the ambient light intensity collected by the optical sensor 615. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 605 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 605 is reduced. In another embodiment, the processor 601 can also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615.

接近传感器616,也称距离传感器,通常设置在终端600的前面板。接近传感器616用于采集用户与终端600的正面之间的距离。在一个实施例中,当接近传感器616检测到用户与终端600的正面之间的距离逐渐变小时,由处理器601控制触摸显示屏605从亮屏状态切换为息屏状态;当接近传感器616检测到用户与终端600的正面之间的距离逐渐变大时,由处理器601控制触摸显示屏605从息屏状态切换为亮屏状态。The proximity sensor 616, also called a distance sensor, is usually arranged on the front panel of the terminal 600. The proximity sensor 616 is used to collect the distance between the user and the front of the terminal 600. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 is gradually decreasing, the processor 601 controls the touch display screen 605 to switch from the screen-on state to the screen-off state; when the proximity sensor 616 detects that the distance between the user and the front of the terminal 600 is gradually increasing, the processor 601 controls the touch display screen 605 to switch from the screen-off state to the screen-on state.

本领域技术人员可以理解,图6中示出的结构并不构成对终端600的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art will appreciate that the structure shown in FIG. 6 does not limit the terminal 600 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

在示例性实施例中,还提供了一种非临时性计算机可读存储介质,当存储介质中的指令由触控信号响应装置的处理器执行时,使得触控信号响应装置能够执行一种触控信号响应方法,方法包括:In an exemplary embodiment, a non-transitory computer-readable storage medium is further provided. When instructions in the storage medium are executed by a processor of a touch signal response device, the touch signal response device is enabled to perform a touch signal response method, the method comprising:

在开启悬停Hover抑制功能的情况下,检测显示屏幕上的触控信号,Hover抑制功能用于指示按照第一响应阈值进行响应;When the hover suppression function is turned on, a touch signal on the display screen is detected, and the hover suppression function is used to indicate a response according to a first response threshold;

当确定触控信号的电容差值不大于第一响应阈值,且在同一屏幕区域中持续至少第一预设时长后发生移动事件时,关闭Hover抑制功能,按照第二响应阈值进行响应,第二响应阈值小于第一响应阈值。When it is determined that the capacitance difference of the touch signal is not greater than the first response threshold, and a movement event occurs in the same screen area after lasting for at least the first preset time, the Hover suppression function is turned off and a response is performed according to the second response threshold, which is less than the first response threshold.

本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

CN201910498631.3A2019-06-102019-06-10 Touch signal response method, device and storage mediumActiveCN112068721B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910498631.3ACN112068721B (en)2019-06-102019-06-10 Touch signal response method, device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910498631.3ACN112068721B (en)2019-06-102019-06-10 Touch signal response method, device and storage medium

Publications (2)

Publication NumberPublication Date
CN112068721A CN112068721A (en)2020-12-11
CN112068721Btrue CN112068721B (en)2024-11-05

Family

ID=73658177

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910498631.3AActiveCN112068721B (en)2019-06-102019-06-10 Touch signal response method, device and storage medium

Country Status (1)

CountryLink
CN (1)CN112068721B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112817476A (en)*2021-03-292021-05-18深圳市创新云网络科技有限公司Touch screen power supply interference identification processing method
CN116610224A (en)*2023-05-252023-08-18南京湃睿半导体有限公司Multi-click trigger processing method for capacitive stylus, readable medium and capacitive stylus

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104049794A (en)*2013-03-132014-09-17三星电子株式会社Method and apparatus for operating touch screen

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103164132A (en)*2011-12-142013-06-19中兴通讯股份有限公司Portable electronic terminal, unlocking method and device thereof
US9678605B2 (en)*2012-06-282017-06-13Synaptics IncorporatedSystems and methods for switching sensing regimes for gloved and ungloved user input
JP2014228939A (en)*2013-05-202014-12-08アルプス電気株式会社Input device
CN104281295B (en)*2013-07-012019-07-23中兴通讯股份有限公司A kind of method, system and electronic equipment for preventing from sliding false triggering on touch screen
CN104281340B (en)*2013-07-122017-12-19天津富纳源创科技有限公司Touch-screen touch identification method
US9690417B2 (en)*2014-05-212017-06-27Apple Inc.Glove touch detection
CN205318354U (en)*2015-12-302016-06-15高准有限公司Capacitanc touch sensing device
CN106201108B (en)*2016-07-292019-02-19北京小米移动软件有限公司 Glove touch mode control method and device and electronic device
CN106843564A (en)*2016-12-262017-06-13普联技术有限公司The control method and device of gloves pattern, touch control device
CN107491214B (en)*2017-08-282020-09-29北京小米移动软件有限公司 Touch screen control method, device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104049794A (en)*2013-03-132014-09-17三星电子株式会社Method and apparatus for operating touch screen

Also Published As

Publication numberPublication date
CN112068721A (en)2020-12-11

Similar Documents

PublicationPublication DateTitle
US11243657B2 (en)Icon display method, and apparatus
US11868604B2 (en)Display processing method and apparatus
CN102929424B (en) Mobile terminal control method, device and mobile terminal
US11625164B2 (en)Display method and terminal device
CN108369447B (en) Method and device for controlling the running state of a wearable electronic device
CN110502162B (en) Folder creation method and terminal device
JP7514948B2 (en) Display method and electronic device
CN112749590B (en) Target detection method, device, computer equipment and computer-readable storage medium
US11482037B2 (en)User interface display method of terminal, and terminal
CN107748648A (en)Prevent the method and terminal device of fingerprint sensor false triggering
CN111881423B (en) Restricting function use authorization methods, devices, and systems
US9338340B2 (en)Launching a camera of a wireless device from a wearable device
CN112068721B (en) Touch signal response method, device and storage medium
CN108733275A (en)A kind of object displaying method and terminal
CN111868674A (en) Portable Information Terminal
CN108111750A (en)A kind of zooming adjustment method and mobile terminal
CN107908983A (en)A kind of method and mobile terminal for controlling mobile terminal screen
WO2020015529A1 (en)Terminal device control method and terminal device
CN113126796B (en)Touch sensitivity control method and device and storage medium
CN111158575B (en)Method, device and equipment for terminal to execute processing and storage medium
CN111986227A (en)Trajectory generation method and apparatus, computer device and storage medium
WO2017113357A1 (en)Floating touch control apparatus and method
CN109828635A (en) Method for adjusting screen position of terminal device and terminal device
CN112181938B (en)Database cleaning method, device and computer readable storage medium
CN110069328B (en)Application closing method and terminal equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp