[go: up one dir, main page]

CN116009728A - Detection method, detection circuit, touch device and electronic equipment - Google Patents

Detection method, detection circuit, touch device and electronic equipment Download PDF

Info

Publication number
CN116009728A
CN116009728A CN202310093981.8A CN202310093981A CN116009728A CN 116009728 A CN116009728 A CN 116009728A CN 202310093981 A CN202310093981 A CN 202310093981A CN 116009728 A CN116009728 A CN 116009728A
Authority
CN
China
Prior art keywords
detection
touch
detection mode
capacitance change
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310093981.8A
Other languages
Chinese (zh)
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.)
Shanghai Awinic Technology Co Ltd
Original Assignee
Shanghai Awinic Technology 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 Shanghai Awinic Technology Co Ltd filed Critical Shanghai Awinic Technology Co Ltd
Priority to CN202310093981.8A priority Critical patent/CN116009728A/en
Publication of CN116009728A publication Critical patent/CN116009728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Electronic Switches (AREA)

Abstract

本发明实施例提供了一种检测方法、检测电路、触控装置以及电子设备。所述检测方法包括:在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态;在所述电容变动状态符合触控接近条件时,从所述第一检测模式切换到第二检测模式;在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,所述触控按压条件指示的电容变动阈值大于所述触控接近条件指示的电容变动阈值。本发明实施例的方案在不增加触控操作复杂性的情况下实现了触控按键的多模态操作,还提高了检测效率。

Figure 202310093981

Embodiments of the present invention provide a detection method, a detection circuit, a touch device and electronic equipment. The detection method includes: in the first detection mode, detecting the capacitance change state of at least one touch key of the electronic device; when the capacitance change state meets the touch proximity condition, switching from the first detection mode to the second detection mode. Two detection modes: in the second detection mode, based on the touch pressing condition, detecting the capacitance change state of the at least one touch key, the capacitance change threshold indicated by the touch pressing condition is greater than the touch proximity condition Indicates the capacitance change threshold. The solution of the embodiment of the present invention realizes the multi-modal operation of the touch key without increasing the complexity of the touch operation, and also improves the detection efficiency.

Figure 202310093981

Description

检测方法、检测电路、触控装置以及电子设备Detection method, detection circuit, touch device and electronic equipment

技术领域technical field

本发明实施例涉及计算机技术领域,尤其涉及一种检测方法、检测电路、触控装置以及电子设备。The embodiments of the present invention relate to the field of computer technology, and in particular to a detection method, a detection circuit, a touch control device and electronic equipment.

背景技术Background technique

在目前的家电产品中,对于冰箱、空调、油烟机等大型家电而言,或者对于微波炉、电磁炉、台灯等小型家电而言,按键功能基本上都采用电容式触控按键的方式来实现,触控按键相较于机械按键,在防水抗污、持久耐用、用户体验上有无可比拟的优势。In the current home appliances, for large appliances such as refrigerators, air conditioners, range hoods, or for small appliances such as microwave ovens, induction cookers, and table lamps, the button functions are basically realized by capacitive touch buttons. Compared with mechanical buttons, control buttons have incomparable advantages in waterproof, anti-fouling, durability, and user experience.

但是,目前的触控按键的识别模式比较单一,存在改进的空间。However, the recognition mode of the current touch button is relatively single, and there is room for improvement.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种检测方法、检测电路、触控装置以及电子设备,以至少部分解决上述问题。In view of this, the embodiments of the present invention provide a detection method, a detection circuit, a touch device, and an electronic device to at least partly solve the above problems.

根据本发明实施例的第一方面,提供了一种检测方法,包括:在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态;在所述电容变动状态符合触控接近条件时,从所述第一检测模式切换到第二检测模式;在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,所述触控按压条件指示的电容变动阈值大于所述触控接近条件指示的电容变动阈值。According to the first aspect of the embodiments of the present invention, a detection method is provided, including: in the first detection mode, detecting the capacitance change state of at least one touch key of the electronic device; condition, switch from the first detection mode to the second detection mode; in the second detection mode, based on the touch press condition, detect the capacitance change state of the at least one touch key, and the touch press The capacitance variation threshold indicated by the condition is greater than the capacitance variation threshold indicated by the touch proximity condition.

在本发明的另一实现方式中,所述方法还包括:在所述电容状态不符合触控接近条件时,从所述第二检测模式切换到所述第一检测模式。In another implementation manner of the present invention, the method further includes: switching from the second detection mode to the first detection mode when the capacitance state does not meet a touch proximity condition.

在本发明的另一实现方式中,所述至少一个触控按键包括多个触控按键。所述在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,包括:在所述第二检测模式下,基于所述多个触控按键各自的触控按压条件,检测所述多个触控按键的电容变动状态。In another implementation manner of the present invention, the at least one touch key includes a plurality of touch keys. In the second detection mode, detecting the capacitance change state of the at least one touch key based on the touch pressing condition includes: in the second detection mode, based on each of the plurality of touch keys The touch pressing condition of the touch button is used to detect the capacitance change state of the plurality of touch buttons.

在本发明的另一实现方式中,所述方法还包括:周期性地在多个独立检测通道以及所述多个独立检测通道形成的融合检测通道之间执行通道切换,其中,所述多个独立检测通道分别对应于所述多个触控按键,用于基于所述多个触控按键各自的触控按压条件进行检测,所述融合检测通道用于基于触控接近条件进行检测。In another implementation manner of the present invention, the method further includes: periodically performing channel switching between a plurality of independent detection channels and a fusion detection channel formed by the plurality of independent detection channels, wherein the plurality of independent detection channels The independent detection channels respectively correspond to the plurality of touch keys, and are used for detection based on respective touch pressing conditions of the plurality of touch keys, and the fusion detection channel is used for detection based on touch proximity conditions.

在本发明的另一实现方式中,所述周期性地在多个独立检测通道以及所述多个独立检测通道形成的融合检测通道之间执行通道切换,包括:基于预设周期时段,在多个独立检测通道以及所述多个独立检测通道形成的融合检测通道之间执行通道切换,其中,在所述预设周期时段内,所述多个独立检测通道分别对应于多个第一检测时段,所述融合检测通道对应于第二检测时段,所述多个第一检测时段与所述第二检测时段之间不重叠。In another implementation manner of the present invention, the periodically performing channel switching between a plurality of independent detection channels and a fusion detection channel formed by the plurality of independent detection channels includes: Channel switching is performed between independent detection channels and the fusion detection channel formed by the plurality of independent detection channels, wherein, within the preset cycle period, the plurality of independent detection channels correspond to a plurality of first detection periods respectively , the fusion detection channel corresponds to a second detection period, and the plurality of first detection periods do not overlap with the second detection period.

在本发明的另一实现方式中,所述方法还包括:响应从所述第一检测模式到所述第二检测模式的切换,控制所述电子设备从休眠状态进入到唤醒状态,同时启动基于所述触控按压条件的检测。In another implementation manner of the present invention, the method further includes: in response to switching from the first detection mode to the second detection mode, controlling the electronic device to enter the wake-up state from the sleep state, and at the same time start the The detection of the touch pressing condition.

在本发明的另一实现方式中,所述响应从所述第一检测模式到所述第二检测模式的切换,控制所述电子设备从休眠状态进入到唤醒状态,包括:响应从所述第一检测模式到所述第二检测模式的切换,向所述电子设备的主控制器发送第一使能信号,所述第一使能信号指示唤醒与所述至少一个触控按键相关联的功能。In another implementation manner of the present invention, the response to switching from the first detection mode to the second detection mode, and controlling the electronic device to enter the wake-up state from the sleep state includes: responding to switching from the second detection mode Switching from a detection mode to the second detection mode, sending a first enabling signal to the main controller of the electronic device, the first enabling signal indicating to wake up the function associated with the at least one touch button .

在本发明的另一实现方式中,所述方法还包括:响应从所述第二检测模式到所述第一检测模式的切换,控制所述电子设备从所述唤醒状态进入到所述休眠状态,同时启动基于所述触控按压条件的检测。In another implementation manner of the present invention, the method further includes: in response to switching from the second detection mode to the first detection mode, controlling the electronic device to enter the sleep state from the wake-up state , and start detection based on the touch press condition at the same time.

在本发明的另一实现方式中,所述响应从所述第二检测模式到所述第一检测模式的切换,控制所述电子设备从所述唤醒状态进入到所述休眠状态,包括:在从所述第二检测模式切换到所述第一检测模式之后的预设时段内所述电容变动状态不符合触控接近条件的情况下,向所述电子设备的主控制器发送第二使能信号,所述第二使能信号指示使与所述至少一个触控按键相关联的功能休眠。In another implementation manner of the present invention, the responding to switching from the second detection mode to the first detection mode, controlling the electronic device to enter the sleep state from the wake-up state includes: Sending a second enable to the main controller of the electronic device when the capacitance change state does not meet the touch proximity condition within a preset period of time after switching from the second detection mode to the first detection mode signal, the second enable signal indicates to make the function associated with the at least one touch key dormant.

在本发明的另一实现方式中,检测方法还包括:在第三检测模式下,检测所述至少一个触控按键的电容变动状态;在所述至少一个触控按键在所述第三检测模式中的电容变动状态符合所述触控按键条件时,从所述第三检测模式切换到第一检测模式。In another implementation manner of the present invention, the detection method further includes: in the third detection mode, detecting the capacitance change state of the at least one touch key; when the at least one touch key is in the third detection mode Switch from the third detection mode to the first detection mode when the state of the capacitance change in meets the touch key condition.

根据本发明实施例的第二方面,提供了一种检测电路,包括:第一检测模块,在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态,并且在所述电容变动状态符合触控接近条件时,从所述第一检测模式切换到第二检测模式;第二检测模块,在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,所述触控按压条件指示的电容变动阈值大于所述触控接近条件指示的电容变动阈值。According to the second aspect of the embodiments of the present invention, there is provided a detection circuit, including: a first detection module, in the first detection mode, detects the capacitance change state of at least one touch key of the electronic device, and When the changing state meets the touch proximity condition, switch from the first detection mode to the second detection mode; in the second detection mode, the second detection module detects the at least one touch control based on the touch pressing condition Capacitance variation state of the key, wherein the capacitance variation threshold indicated by the touch pressing condition is greater than the capacitance variation threshold indicated by the touch proximity condition.

在本发明的另一实现方式中,第一检测模块还用于:在电容状态不符合触控接近条件时,从第二检测模式切换到第一检测模式。In another implementation manner of the present invention, the first detection module is further configured to switch from the second detection mode to the first detection mode when the capacitance state does not meet the touch proximity condition.

在本发明的另一实现方式中,至少一个触控按键包括多个触控按键。第二检测模块具体用于:在第二检测模式下,基于多个触控按键各自的触控按压条件,检测多个触控按键的电容变动状态。In another implementation manner of the present invention, at least one touch key includes a plurality of touch keys. The second detection module is specifically used for: in the second detection mode, based on the respective touch pressing conditions of the plurality of touch keys, detecting the state of capacitance variation of the plurality of touch keys.

在本发明的另一实现方式中,检测电路还包括通道切换模块,通道切换模块用于:周期性地在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换。多个独立检测通道分别对应于多个触控按键,用于基于多个触控按键各自的触控按压条件进行检测,融合检测通道用于基于触控接近条件进行检测。In another implementation manner of the present invention, the detection circuit further includes a channel switching module, configured to: periodically perform channel switching between multiple independent detection channels and a fusion detection channel formed by the multiple independent detection channels. Multiple independent detection channels correspond to multiple touch keys respectively, and are used for detection based on respective touch pressing conditions of the multiple touch keys, and fusion detection channels are used for detection based on touch proximity conditions.

在本发明的另一实现方式中,通道切换模块具体用于:基于预设周期时段,在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换,其中,在预设周期时段内,多个独立检测通道分别对应于多个第一检测时段,融合检测通道对应于第二检测时段,多个第一检测时段与第二检测时段之间不重叠。In another implementation manner of the present invention, the channel switching module is specifically configured to: perform channel switching between a plurality of independent detection channels and a fusion detection channel formed by a plurality of independent detection channels based on a preset period of time, wherein, in the preset period It is assumed that within the cycle period, the multiple independent detection channels correspond to the multiple first detection periods, the fusion detection channel corresponds to the second detection period, and there is no overlap between the multiple first detection periods and the second detection period.

在本发明的另一实现方式中,检测电路还包括控制模块,控制模块用于:响应从第一检测模式到第二检测模式的切换,控制电子设备从休眠状态进入到唤醒状态,同时启动基于所述触控按压条件的检测。In another implementation of the present invention, the detection circuit further includes a control module, and the control module is used for: responding to switching from the first detection mode to the second detection mode, controlling the electronic device to enter the wake-up state from the sleep state, and at the same time start the The detection of the touch pressing condition.

在本发明的另一实现方式中,控制模块具体用于:响应从第一检测模式到第二检测模式的切换,向电子设备的主控制器发送第一使能信号,第一使能信号指示唤醒与至少一个触控按键相关联的功能。In another implementation of the present invention, the control module is specifically configured to: send a first enable signal to the main controller of the electronic device in response to switching from the first detection mode to the second detection mode, the first enable signal indicates A function associated with at least one touch key is awakened.

在本发明的另一实现方式中,控制模块还用于:响应从第二检测模式到第一检测模式的切换,控制电子设备从唤醒状态进入到休眠状态,同时启动基于所述触控接近条件的检测。In another implementation of the present invention, the control module is further configured to: respond to switching from the second detection mode to the first detection mode, control the electronic device to enter the sleep state from the wake-up state, and at the same time start the electronic device based on the touch proximity condition detection.

在本发明的另一实现方式中,控制模块具体用于:在从所述第二检测模式切换到所述第一检测模式之后的预设时段内所述电容变动状态不符合触控接近条件的情况下,向电子设备的主控制器发送第二使能信号,第二使能信号指示使与至少一个触控按键相关联的功能休眠。In another implementation manner of the present invention, the control module is specifically configured to: within a preset period of time after switching from the second detection mode to the first detection mode, the capacitance change state does not meet the touch proximity condition In this case, a second enable signal is sent to the main controller of the electronic device, and the second enable signal indicates to make the function associated with the at least one touch key dormant.

在本发明的另一实现方式中,检测电路还包括第三检测模块,所述第三检测模块在第三检测模式下,检测所述至少一个触控按键的电容变动状态;在所述至少一个触控按键在所述第三检测模式中的电容变动状态符合所述触控按键条件时,从所述第三检测模式切换到第一检测模式。In another implementation manner of the present invention, the detection circuit further includes a third detection module, and the third detection module detects the capacitance change state of the at least one touch key in the third detection mode; When the capacitive change state of the touch key in the third detection mode meets the condition of the touch key, switch from the third detection mode to the first detection mode.

根据本发明实施例的第三方面,提供了一种触控装置,包括:至少一个触控按键以及根据第二方面所述的检测电路,所述至少一个触控按键与所述检测电路电连接。According to a third aspect of an embodiment of the present invention, there is provided a touch device, comprising: at least one touch key and the detection circuit according to the second aspect, the at least one touch key is electrically connected to the detection circuit .

根据本发明实施例的第四方面,提供了一种电子设备,包括:根据第三方面所述的触控装置以及主控制器。所述主控制器与所述触控装置电连接。According to a fourth aspect of the embodiments of the present invention, there is provided an electronic device, including: the touch device according to the third aspect and a main controller. The main controller is electrically connected with the touch device.

在本发明实施例的方案中,通过触控按压条件指示的电容变动阈值大于触控接近条件指示的电容变动阈值的设置,实现了触控按键的接近操作的检测,在不增加触控操作复杂性的情况下实现了触控按键的多模态操作,此外,在电容变动状态符合触控接近条件时,从第一检测模式切换到第二检测模式,无需同时监测两种操作的状态,提高了检测效率。In the solution of the embodiment of the present invention, by setting the capacitance variation threshold indicated by the touch pressing condition to be greater than the capacitance variation threshold indicated by the touch proximity condition, the detection of the proximity operation of the touch key is realized without increasing the complexity of the touch operation. In addition, when the capacitive change state meets the touch proximity condition, switching from the first detection mode to the second detection mode does not need to monitor the states of the two operations at the same time, improving the detection efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in the embodiments of the present invention, and those skilled in the art can also obtain other drawings based on these drawings.

图1为根据本发明一个实施例的电子设备的示意性架构图。FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

图2为根据本发明的另一实施例的检测方法的步骤流程图。Fig. 2 is a flowchart of steps of a detection method according to another embodiment of the present invention.

图3为图2的检测方法的一个示例的通道扫描过程的示意图。FIG. 3 is a schematic diagram of a channel scanning process of an example of the detection method in FIG. 2 .

图4为图2的检测方法所适用的唤醒控制过程的示意性流程图。FIG. 4 is a schematic flowchart of a wake-up control process applicable to the detection method in FIG. 2 .

图5为根据本发明的另一实施例的检测电路的结构框图。FIG. 5 is a structural block diagram of a detection circuit according to another embodiment of the present invention.

具体实施方式Detailed ways

为了使本领域的人员更好地理解本发明实施例中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、详细地描述,显然,所描述的实施例仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本发明实施例保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and detailedly described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the embodiments of the present invention shall fall within the protection scope of the embodiments of the present invention.

下面结合本发明实施例附图进一步说明本发明实施例具体实现。The specific implementation of the embodiments of the present invention will be further described below in conjunction with the accompanying drawings of the embodiments of the present invention.

图1为根据一个示例的电子设备的示意性架构图。如图所示,电子设备100包括主控制器130和触控装置11,电子设备100还可以包括电源管理模块10以及其他功能模块140。电源10可以接收外部适配器(未示出)或直流电池提供的直流电,将直流电进行降压处理,得到主控制器130和触控装置11正常工作所需的低压直流电。Fig. 1 is a schematic architecture diagram of an electronic device according to an example. As shown in the figure, the electronic device 100 includes a main controller 130 and a touch device 11 , and the electronic device 100 may also include a power management module 10 and other functional modules 140 . The power supply 10 can receive DC power provided by an external adapter (not shown) or a DC battery, and step down the DC power to obtain the low-voltage DC power required by the main controller 130 and the touch control device 11 to work normally.

进一步地,电子设备可以是家用电器、物联网设备等具有控制面板的设备。具体地,触控装置11包括检测电路110和至少一个触控按键120。例如,触控装置11包括电子设备100的控制面板12和检测电路110,至少一个触控按键120设置在控制面板12上。Further, the electronic device may be a device with a control panel, such as a household appliance or an Internet of Things device. Specifically, the touch device 11 includes a detection circuit 110 and at least one touch button 120 . For example, the touch device 11 includes a control panel 12 and a detection circuit 110 of the electronic device 100 , and at least one touch button 120 is disposed on the control panel 12 .

一般而言,触控装置11的功能是采用检测电路110与触控按键120结合来实现,触控装置11一般采用自电容检测方式,检测电路110上可以配置有多个触控检测通道引脚,这些引脚连接到触控按键120上,当诸如人体的手指的导体接触或按压触控按键120的按压区域,会改变对应检测通道上的对地电容值,检测电路110可以通过检测通道的对地电容值变化大小,来判断是否有触控按键120被按下。Generally speaking, the function of the touch device 11 is realized by combining the detection circuit 110 and the touch button 120. The touch device 11 generally adopts a self-capacitance detection method, and the detection circuit 110 can be configured with multiple touch detection channel pins. , these pins are connected to the touch button 120, when a conductor such as a finger of the human body touches or presses the pressing area of the touch button 120, the capacitance value to ground on the corresponding detection channel will be changed, and the detection circuit 110 can pass the detection channel Whether the touch key 120 is pressed is determined by changing the capacitance value to ground.

各个触控按键120与电子设备100的至少部分功能相关联,例如,触控按键120可以是开关按键(墙壁开关、用于电子设备且设置在墙壁上的墙壁控制开关、墙壁控制器、设置电子设备上的开关按键、待机按键或休眠按键等)、功能切换按键(例如,电磁炉的烹调模式、空调的制冷模式或制热模式、电视机的频道切换)、特定功能的调整按键(例如,空调调温按键、电视机的音量按键、电磁炉的功率调整按键)等等。Each touch button 120 is associated with at least part of the functions of the electronic device 100, for example, the touch button 120 can be a switch button (wall switch, wall control switch for electronic equipment and set on the wall, wall controller, setting electronic Switch button, standby button or sleep button on the device, etc.), function switching buttons (for example, the cooking mode of the induction cooker, the cooling mode or heating mode of the air conditioner, the channel switching of the TV), the adjustment button of a specific function (for example, the air conditioner Temperature adjustment button, volume button of TV, power adjustment button of induction cooker) and so on.

在触控按键的识别模式比较单一的情况下,如果增加更多的识别模式,会导致配置更加复杂,相应的成本也较高,为此,本发明实施例提供了一些列方案,能够实现多模态的检测,无需增加更多的配置和成本。In the case where the recognition mode of the touch button is relatively single, if more recognition modes are added, the configuration will be more complicated and the corresponding cost will be higher. Therefore, the embodiment of the present invention provides a series of solutions to realize multiple Modal detection without adding more configuration and cost.

图2为根据本发明的一个实施例的检测方法的步骤流程图。本实施例的检测方法可以应用于图1的检测电路110,包括:Fig. 2 is a flowchart of steps of a detection method according to an embodiment of the present invention. The detection method of this embodiment can be applied to the detection circuit 110 in FIG. 1, including:

S210:在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态。S210: In the first detection mode, detect the capacitance variation state of at least one touch key of the electronic device.

应理解,文中的各个触控按键可以是基于电容变动原理的触控按键,例如,基于自电容检测原理的触控按键。例如,各个触控按键是触控按键120的示例,各个触控按键可以具有相同的型号和配置、也可以是不同的型号和配置。It should be understood that each touch key herein may be a touch key based on the principle of capacitance variation, for example, a touch key based on the principle of self-capacitance detection. For example, each touch key is an example of the touch key 120, and each touch key may have the same model and configuration, or may be different models and configurations.

还应理解,文中的触控按键可以是基于电容变动原理的触控按键,例如,基于自电容检测原理的触控按键。It should also be understood that the touch key herein may be a touch key based on the principle of capacitance variation, for example, a touch key based on the principle of self-capacitance detection.

还应理解,电容变动状态可以是指电容值的变动或扰动,或者,电容变动可以是指反映电容值的变动或扰动的其他表征物理量,例如,表征电压值或表征电流值等。It should also be understood that the state of capacitance variation may refer to the variation or disturbance of the capacitance value, or the capacitance variation may refer to other characteristic physical quantities reflecting the variation or disturbance of the capacitance value, for example, a characteristic voltage value or a characteristic current value.

S220:在电容变动状态符合触控接近条件时,从第一检测模式切换到第二检测模式。S220: Switch from the first detection mode to the second detection mode when the capacitance change state meets the touch proximity condition.

应理解,触控接近条件可以指示与触控按键的接近距离小于预设距离范围,例如,15cm。与触控按键的接近距离也可以表征与电子设备的接近距离。诸如导体的目标物体(例如,人体)接近触控按键时会引起触控按键的电容电极的分布变化,从而引起了电容值的扰动,通过检测电路与触控按键之间的电连接,可以检测到这种扰动。一般地,在接近距离较大时,这种扰动会小于触控按键被按压时所带来的电容变动。另外,随着目标物体接近触控按键,即,随着接近距离越小,电容变动越大,可以通过设定触控按压条件指示的电容变动阈值,在诸如手指或人体的目标物体到达预设距离范围内,相应的电容变动被检测到。基于上述关系,预设距离范围越大,电容变动越小,所需的检测精度越高。一般而言,触控按压条件指示的电容变动阈值可以大于触控接近条件指示的电容变动阈值。It should be understood that the touch proximity condition may indicate that the proximity distance to the touch key is less than a preset distance range, for example, 15 cm. The proximity distance to the touch button can also represent the proximity distance to the electronic device. When a target object such as a conductor (for example, a human body) approaches a touch button, it will cause a change in the distribution of the capacitive electrodes of the touch button, thereby causing a disturbance in the capacitance value. By detecting the electrical connection between the circuit and the touch button, it can be detected to this disturbance. Generally, when the proximity distance is large, this disturbance will be smaller than the capacitance change caused when the touch key is pressed. In addition, as the target object approaches the touch key, that is, as the approaching distance becomes smaller, the capacitance variation becomes larger. By setting the capacitance variation threshold indicated by the touch pressing condition, when the target object such as a finger or a human body reaches a preset Within the range of distance, the corresponding capacitance change is detected. Based on the above relationship, the larger the preset distance range, the smaller the capacitance variation and the higher the required detection accuracy. Generally speaking, the capacitance variation threshold indicated by the touch press condition may be greater than the capacitance variation threshold indicated by the touch proximity condition.

S230:在第二检测模式下,基于触控按压条件,检测至少一个触控按键的电容变动状态,触控按压条件指示的电容变动阈值大于触控接近条件指示的电容变动阈值。S230: In the second detection mode, based on the touch press condition, detect the capacitance change state of at least one touch key, the capacitance change threshold indicated by the touch press condition is greater than the capacitance change threshold indicated by the touch proximity condition.

应理解,触控按压条件指示的电容变动阈值大于触控接近条件指示的电容变动阈值,例如,触控接近条件指示与触控按键的接近距离小于预设距离范围,触控按压条件指示的电容变动阈值(即,没有目标物体接近的情况与目标物体处于预设距离范围内的情况相比)为2.5C,触控接近条件指示的电容变动阈值(即,触控按键未被按压的情况与触控按键被按压或被接触的情况相比)为0.5C。It should be understood that the capacitance change threshold indicated by the touch press condition is greater than the capacitance change threshold indicated by the touch proximity condition. The variation threshold (that is, the situation where no target object is approaching is compared with the situation where the target object is within the preset distance range) is 2.5C, and the capacitance variation threshold value indicated by the touch proximity condition (that is, the situation where the touch button is not pressed is compared with The touch button is pressed or touched) is 0.5C.

在本发明实施例的方案中,通过触控按压条件指示的电容变动阈值大于触控接近条件指示的电容变动阈值的设置,实现了触控按键的接近操作的检测,在不增加触控操作复杂性的情况下实现了触控按键的多模态操作,此外,在电容变动状态符合触控接近条件时,从第一检测模式切换到第二检测模式,无需同时监测两种操作的状态,提高了检测效率。In the solution of the embodiment of the present invention, by setting the capacitance variation threshold indicated by the touch pressing condition to be greater than the capacitance variation threshold indicated by the touch proximity condition, the detection of the proximity operation of the touch key is realized without increasing the complexity of the touch operation. In addition, when the capacitive change state meets the touch proximity condition, switching from the first detection mode to the second detection mode does not need to monitor the states of the two operations at the same time, improving the detection efficiency.

在另一些示例中,在电容状态不符合触控接近条件时,从第二检测模式切换到第一检测模式,从而进一步保证了用户触控操作的流畅性。In some other examples, when the capacitance state does not meet the touch proximity condition, the second detection mode is switched to the first detection mode, thereby further ensuring the smoothness of the user's touch operation.

具体地,在手指(目标物体的示例)从远处接近触控按键时,检测电路检测目标触控按键的电容变动状态。应理解,在第一检测模式下,在电容变动状态未符合触控接近条件的情况下,检测电路可以执行监测操作。Specifically, when a finger (an example of a target object) approaches the touch key from a distance, the detection circuit detects the capacitance variation state of the target touch key. It should be understood that, in the first detection mode, the detection circuit may perform a monitoring operation when the state of capacitance variation does not meet the touch proximity condition.

在到达预设距离范围内时,检测电路从第一检测模式切换到第二检测模式。然后,检测电路将符合触控接近条件所对应的使能信号发送到电子设备的主控制器,主控制器相应地执行使能信号所对应的控制操作,例如,控制电子设备的至少部分功能从休眠状态切换到唤醒状态,这些功能与上述触控按键相关联。When reaching within the preset distance range, the detection circuit switches from the first detection mode to the second detection mode. Then, the detection circuit sends the enabling signal corresponding to the touch proximity condition to the main controller of the electronic device, and the main controller correspondingly executes the control operation corresponding to the enabling signal, for example, controlling at least some functions of the electronic device from The sleep state is switched to the wake state, and these functions are associated with the above-mentioned touch keys.

可替代地,休眠状态也可以是低功耗状态、待机状态等非唤醒状态。Alternatively, the sleep state may also be a non-wake-up state such as a low power consumption state or a standby state.

随着手指进一步接近触控按键,在手指按压到触控按键上时,检测电路检测到电容变动状态符合触控按压条件,然后,检测电路将符合触控按压条件所对应的使能信号发送到电子设备的主控制器,主控制器相应地执行使能信号所对应的控制操作。As the finger gets closer to the touch button, when the finger presses the touch button, the detection circuit detects that the capacitance change state meets the touch press condition, and then the detection circuit sends the enable signal corresponding to the touch press condition to the The main controller of the electronic device, the main controller correspondingly executes the control operation corresponding to the enable signal.

应理解,在第二检测模式下,在电容变动状态未符合触控按压条件的情况下,检测电路可以执行监测操作。It should be understood that, in the second detection mode, the detection circuit can perform a monitoring operation when the state of capacitance variation does not meet the touch press condition.

进一步地,在手指完成按压或接触操作之后,检测电路不符合触控接近条件所对应的使能信号发送到电子设备的主控制器,通知主控制器按压操作完成。Further, after the finger completes the pressing or contacting operation, the detection circuit does not meet the touch proximity condition and sends an enabling signal corresponding to the main controller of the electronic device to notify the main controller that the pressing operation is completed.

更进一步地,在手指离开预设距离范围时,检测电路从第二检测模式切换到第一检测模式。检测电路不符合触控接近条件所对应的使能信号发送到电子设备的主控制器,通知主控制器相应地执行使能信号所对应的控制操作。相应地,主控制器相应地执行使能信号所对应的控制操作,例如,控制电子设备的至少部分功能从唤醒状态切换到休眠状态,这些功能与上述触控按键相关联。Furthermore, when the finger leaves the preset distance range, the detection circuit switches from the second detection mode to the first detection mode. The enabling signal corresponding to the detection circuit not meeting the touch proximity condition is sent to the main controller of the electronic device, and the main controller is notified to execute the control operation corresponding to the enabling signal accordingly. Correspondingly, the main controller correspondingly executes the control operation corresponding to the enabling signal, for example, controls at least some functions of the electronic device to switch from the wake-up state to the sleep state, and these functions are associated with the above-mentioned touch keys.

在另一些示例中,响应从第一检测模式到第二检测模式的切换,控制电子设备从休眠状态进入到唤醒状态,同时启动基于所述触控按压条件的检测。可替代地,响应从第二检测模式到第一检测模式的切换,控制电子设备从唤醒状态进入到休眠状态,同时启动基于所述触控接近条件的检测。通过这样的配置,能够通过时分复用的方式进入到相应的检测模式执行对应检测条件的检测过程,使检测电路的配置更加简洁和高效。In some other examples, in response to switching from the first detection mode to the second detection mode, the electronic device is controlled to enter a wake-up state from a sleep state, and at the same time, detection based on the touch press condition is started. Alternatively, in response to switching from the second detection mode to the first detection mode, the electronic device is controlled to enter the sleep state from the wake-up state, and at the same time, the detection based on the touch proximity condition is started. Through such a configuration, it is possible to enter a corresponding detection mode through time-division multiplexing to perform a detection process corresponding to a detection condition, so that the configuration of the detection circuit is more concise and efficient.

再次结合手指从远处接近电子设备按压触控按键之后再远离电子设备的上述例子,不失一般性地,作为响应从第一检测模式到第二检测模式的切换,控制电子设备从休眠状态进入到唤醒状态的示例,可以响应从第一检测模式到第二检测模式的切换,向电子设备的主控制器发送第一使能信号,第一使能信号指示唤醒与至少一个触控按键相关联的功能。Combining again the above example where the finger approaches the electronic device from a distance and then presses the touch button and then moves away from the electronic device, without loss of generality, as a response to switching from the first detection mode to the second detection mode, the electronic device is controlled to enter from the sleep state To an example of a wake-up state, a first enable signal may be sent to the main controller of the electronic device in response to switching from the first detection mode to the second detection mode, the first enable signal indicates that the wake-up is associated with at least one touch key function.

作为响应从第二检测模式到第一检测模式的切换,控制电子设备从唤醒状态进入到休眠状态的示例,可以在从所述第二检测模式切换到所述第一检测模式之后的预设时段内电容变动状态不符合触控接近条件的情况下,向电子设备的主控制器发送第二使能信号,第二使能信号指示使与至少一个触控按键相关联的功能休眠。As an example of controlling the electronic device to enter the sleep state from the wake-up state in response to switching from the second detection mode to the first detection mode, a preset period of time after switching from the second detection mode to the first detection mode may be When the change state of the internal capacitance does not meet the touch proximity condition, a second enable signal is sent to the main controller of the electronic device, and the second enable signal indicates to make the function associated with the at least one touch key dormant.

具体地,可以直接响应从所述第二检测模式切换到所述第一检测模式,向电子设备的主控制器发送第二使能信号。可替代地,在从所述第二检测模式切换到所述第一检测模式之后的预设时段内,检测是否电容变动状态不符合触控接近条件,如果在预设时段内,电容变动状态出现符合触控接近条件,然后,又符合触控接近条件,则重新开始预设时段的计算。例如,可以基于融合检测通道从开始未检测到触控接近条件时,基于第二检测时段之后的任一第一检测时段开始计时,预设时段的长度可以为预设周期时段的整数倍,在整数倍的预设周期时段到达时,仍然未检测到触控接近条件,则基于独立检测通道执行触控按压条件的检测。Specifically, the second enabling signal may be sent to the main controller of the electronic device in direct response to switching from the second detection mode to the first detection mode. Alternatively, within a preset period of time after switching from the second detection mode to the first detection mode, it is detected whether the capacitance change state does not meet the touch proximity condition, and if within the preset time period, the capacitance change state occurs If the touch proximity condition is met, and then the touch proximity condition is met again, the calculation of the preset time period is restarted. For example, when the fusion detection channel does not detect the touch proximity condition from the beginning, timing can be started based on any first detection period after the second detection period, and the length of the preset period can be an integer multiple of the preset cycle period. When the preset period of integer times arrives, but the touch proximity condition is still not detected, the touch press condition is detected based on an independent detection channel.

在另一些示例中,触控按键的数量为多个,每个触控按键可以对应于一检测通道,即,每个触控按键具有各自的独立检测通道。检测电路可以配置成通过周期性地扫描各个独立检测通道来在第二检测模式下执行多个触控按键各自的按压操作。In other examples, there are multiple touch keys, and each touch key may correspond to a detection channel, that is, each touch key has its own independent detection channel. The detection circuit may be configured to perform respective pressing operations of the plurality of touch keys in the second detection mode by periodically scanning each independent detection channel.

不失一般性地,作为在第二检测模式下,基于触控按压条件,检测至少一个触控按键的电容变动状态的示例,可以在第二检测模式下,基于多个触控按键各自的触控按压条件,检测多个触控按键的电容变动状态。Without loss of generality, as an example of detecting the capacitance change state of at least one touch key based on the touch pressing condition in the second detection mode, in the second detection mode, based on the respective touch points of a plurality of touch keys, Control the pressing condition and detect the capacitance change state of multiple touch keys.

此外,检测方法还包括:在第三检测模式下,检测所述至少一个触控按键的电容变动状态;在所述至少一个触控按键在所述第三检测模式中的电容变动状态符合所述触控按键条件时,从所述第三检测模式切换到第一检测模式。例如,第三检测模式可以被配置为电子设备的按键唤醒模式,即,第一检测模式的监听模式,在至少一个按键被按压之后,触控按键的第一检测模式被唤醒,在第一检测模式被唤醒之后,基于第一检测模式执行电容变动检测。In addition, the detection method further includes: in a third detection mode, detecting the capacitance change state of the at least one touch key; when the capacitance change state of the at least one touch key in the third detection mode conforms to the When the key is touched, switch from the third detection mode to the first detection mode. For example, the third detection mode can be configured as a button wake-up mode of the electronic device, that is, the monitoring mode of the first detection mode. After at least one button is pressed, the first detection mode of the touch button is awakened. After the mode is awakened, capacitance variation detection is performed based on the first detection mode.

应理解,通过将触控按压条件切换到触控接近条件,每个独立检测通道还可用于在第一检测模式下检测多个触控按键的电容变动状态。It should be understood that, by switching the touch pressing condition to the touch approaching condition, each independent detection channel can also be used to detect capacitance variation states of multiple touch keys in the first detection mode.

进一步地,还可以在多个独立检测通道之外,配置多个独立检测通道的融合检测通道来统一地在第一检测模式下检测多个触控按键的电容变动状态,从而提高了触控接近状态的识别效率和识别范围。Further, in addition to multiple independent detection channels, a fusion detection channel of multiple independent detection channels can be configured to uniformly detect the capacitance change state of multiple touch keys in the first detection mode, thereby improving touch proximity. State recognition efficiency and recognition range.

不失一般性地,周期性地在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换,其中,多个独立检测通道分别对应于多个触控按键,用于基于多个触控按键各自的触控按压条件进行检测,融合检测通道用于基于触控接近条件进行检测。Without loss of generality, channel switching is performed periodically between a plurality of independent detection channels and a fusion detection channel formed by the plurality of independent detection channels, wherein the plurality of independent detection channels respectively correspond to a plurality of touch keys for Detection is performed based on respective touch pressing conditions of multiple touch buttons, and the fusion detection channel is used to perform detection based on touch proximity conditions.

进一步地,为了周期性地在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换,可以基于预设周期时段,在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换,其中,在预设周期时段内,多个独立检测通道分别对应于多个第一检测时段,融合检测通道对应于第二检测时段,多个第一检测时段与第二检测时段之间不重叠,从而进一步地提高了触控接近状态的识别效率和识别范围,也保证了每个触控按键各自的触控按压状态的识别效率。Further, in order to periodically perform channel switching between multiple independent detection channels and fusion detection channels formed by multiple independent detection channels, based on a preset period of time, multiple independent detection channels and multiple independent detection channels can be formed Channel switching is performed between the fusion detection channels, wherein, within the preset cycle period, the multiple independent detection channels correspond to multiple first detection periods, the fusion detection channel corresponds to the second detection period, and the multiple first detection periods There is no overlap with the second detection period, thereby further improving the recognition efficiency and recognition range of the touch proximity state, and also ensuring the recognition efficiency of each touch button's respective touch pressing state.

总之,可以交替切换各个独立检测通道和融合检测通道,例如,可以交替切换与各个触控按键的单独电连接以及与所有触控按键的电连接实现通道的切换,单独电连接用于执行独立检测通道的检测,所有触控按键的电连接用于执行融合检测通道的检测。In a word, each independent detection channel and fusion detection channel can be alternately switched, for example, the individual electrical connection with each touch key and the electrical connection with all touch keys can be alternately switched to realize channel switching, and the individual electrical connection is used to perform independent detection For channel detection, the electrical connection of all touch buttons is used to perform fusion detection channel detection.

下面结合图3的示例详细描述通道扫描过程。如图3所示,一般地,对于N个触控按键,N个触控按键对应于N个独立检测通道。还可以配置M个融合检测通道,M个融合检测通道可以通过至少部分检测通道融合得到。例如,配置1个融合检测通道,则可以配置N+1个工作时段,分别对应于N个独立检测通道和1个融合检测通道,也就是说,检测电路可以基于N+1个工作时段进行扫描。The channel scanning process will be described in detail below with reference to the example in FIG. 3 . As shown in FIG. 3 , generally, for N touch buttons, the N touch buttons correspond to N independent detection channels. M fusion detection channels may also be configured, and the M fusion detection channels may be obtained by fusing at least part of the detection channels. For example, if one fusion detection channel is configured, N+1 working periods can be configured, corresponding to N independent detection channels and one fusion detection channel respectively, that is to say, the detection circuit can scan based on N+1 working periods .

在本示例中,N=4,即,4个触控按键。在第二检测模式下,对每个触控按键进行触控按压检测。检测电路的每个周期包括由第一工作时段到第五工作时段组成的整个工作时段。其中,分别在第一工作时段到第四工作时段,对4个触控按键,取决于触控按键的物理参数、型号、按键功能等,每个触控按键的触控按压条件可以设置成不同;也可以设置成相同,以便提高检测效率。对于第五工作时段,可以配置成统一的触控接近条件,尤其在触控案件1、2、3和4所处的位置相邻或接近时,融合检测通道的配置能够良好地提高了触控接近状态的识别范围。In this example, N=4, that is, 4 touch buttons. In the second detection mode, touch pressing detection is performed on each touch key. Each cycle of the detection circuit includes the entire working period consisting of the first working period to the fifth working period. Among them, in the first working period to the fourth working period, for the four touch buttons, depending on the physical parameters, models, button functions, etc. of the touch buttons, the touch pressing conditions of each touch button can be set to be different. ; It can also be set to be the same in order to improve the detection efficiency. For the fifth working period, it can be configured as a unified touch proximity condition, especially when the positions of touch cases 1, 2, 3 and 4 are adjacent or close, the configuration of the fusion detection channel can well improve the touch control. The recognition range of the proximity state.

图4为图2的检测方法所适用的唤醒控制过程的示意性流程图。示例性地,图4的唤醒控制过程由检测电路执行,包括如下步骤:FIG. 4 is a schematic flowchart of a wake-up control process applicable to the detection method in FIG. 2 . Exemplarily, the wake-up control process of FIG. 4 is executed by the detection circuit, including the following steps:

在步骤S410中,开始检测过程,继续执行S420。例如,可以由电子设备的主控制器唤醒检测电路启动检测,可以开始采集各个检测时段的电容变动状态,各个检测时段包括触控按压检测时段和触控接近检测时段。。In step S410, start the detection process, and continue to execute S420. For example, the main controller of the electronic device can wake up the detection circuit to start the detection, and can start to collect the capacitance change state in each detection period, and each detection period includes a touch press detection period and a touch proximity detection period. .

在步骤S420中,在检测时段内,基于对应检测通道执行电容变动检测,继续执行步骤S430。例如,触控按压检测时段采用上述独立检测通道执行,触控接近检测时段采用上述融合检测通道执行。另外,取决于触控按键的物理参数、型号、按键功能等,多个触控按键中的每个触控按键的触控按压条件可以设置成不同;也可以设置成相同,以便提高检测效率。In step S420, during the detection period, the capacitance variation detection is performed based on the corresponding detection channel, and the step S430 is continued. For example, the above-mentioned independent detection channel is used for the touch-press detection period, and the above-mentioned fusion detection channel is used for the touch-proximity detection period. In addition, depending on the physical parameters, models, key functions, etc. of the touch keys, the touch pressing conditions of each touch key among the plurality of touch keys may be set to be different, or set to be the same, so as to improve detection efficiency.

在步骤S430中,判断触控接近检测时段是否检测到有人体接近,如果为是,则执行步骤S440;如果为否,则执行步骤S420。例如,如果电容变动状态符合触控接近条件,即,如果电容变动状态指示的电容值变动符合触控接近条件指示的电容变动阈值时,判断有人体接近,否则,判断没有人体接近。In step S430, it is determined whether a human body approach is detected during the touch proximity detection period, if yes, then step S440 is performed; if no, then step S420 is performed. For example, if the capacitance change state meets the touch proximity condition, that is, if the capacitance change indicated by the capacitance change state meets the capacitance change threshold indicated by the touch proximity condition, it is determined that there is a human body approaching; otherwise, it is determined that there is no human body approaching.

在步骤S440中,通知电子设备的主控制器触控接近条件满足,执行步骤S420。例如,检测电路将符合触控接近条件所对应的使能信号发送到电子设备的主控制器,主控制器相应地执行使能信号所对应的控制操作,例如,控制电子设备的至少部分功能从休眠状态切换到唤醒状态,这些功能与上述触控按键相关联In step S440, the main controller of the electronic device is notified that the touch proximity condition is satisfied, and step S420 is executed. For example, the detection circuit sends the enabling signal corresponding to the touch proximity condition to the main controller of the electronic device, and the main controller correspondingly executes the control operation corresponding to the enabling signal, for example, controlling at least some functions of the electronic device from Switch from sleep state to wake state, these functions are associated with the above touch keys

在步骤S450中,主控制器使电子设备从休眠状态切换到唤醒状态,继续执行步骤S460。In step S450, the main controller switches the electronic device from the sleep state to the wake-up state, and continues to execute step S460.

在步骤S460中,结束唤醒控制过程,例如,可以进入到第二检测模式,执行基于触控按压条件的检测;或者,进入到休眠控制过程。详细实现过程可以参照上述图2中具体示例的描述,此处不再赘述。In step S460, the wake-up control process is ended, for example, entering the second detection mode to perform detection based on the touch pressing condition; or entering the sleep control process. For the detailed implementation process, reference may be made to the description of the specific example in FIG. 2 above, which will not be repeated here.

图5为根据本发明的另一实施例的检测电路的结构框图。本实施例的检测电路与图2的检测方法对应,包括:FIG. 5 is a structural block diagram of a detection circuit according to another embodiment of the present invention. The detection circuit of this embodiment corresponds to the detection method in Figure 2, including:

第一检测模块510,在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态,并且在所述电容变动状态符合触控接近条件时,从所述第一检测模式切换到第二检测模式;The first detection module 510, in the first detection mode, detects the capacitance change state of at least one touch key of the electronic device, and switches from the first detection mode to Second detection mode;

第二检测模块520,在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,所述触控按压条件指示的电容变动阈值大于所述触控接近条件指示的电容变动阈值。The second detection module 520, in the second detection mode, detects the capacitance change state of the at least one touch key based on the touch press condition, the capacitance change threshold indicated by the touch press condition is greater than the touch Approaching condition indicates capacitance change threshold.

在本发明实施例的方案中,通过触控按压条件指示的电容变动阈值大于触控接近条件指示的电容变动阈值的设置,实现了触控按键的接近操作的检测,在不增加触控操作复杂性的情况下实现了触控按键的多模态操作,此外,在电容变动状态符合触控接近条件时,从第一检测模式切换到第二检测模式,无需同时监测两种操作的状态,提高了检测效率。In the solution of the embodiment of the present invention, by setting the capacitance variation threshold indicated by the touch pressing condition to be greater than the capacitance variation threshold indicated by the touch proximity condition, the detection of the proximity operation of the touch key is realized without increasing the complexity of the touch operation. In addition, when the capacitive change state meets the touch proximity condition, switching from the first detection mode to the second detection mode does not need to monitor the states of the two operations at the same time, improving the detection efficiency.

在另一些示例中,第一检测模块510还用于:在电容状态不符合触控接近条件时,从第二检测模式切换到第一检测模式。In some other examples, the first detection module 510 is further configured to switch from the second detection mode to the first detection mode when the capacitance state does not meet the touch proximity condition.

在另一些示例中,至少一个触控按键包括多个触控按键。第二检测模块具体用于:在第二检测模式下,基于多个触控按键各自的触控按压条件,检测多个触控按键的电容变动状态。In some other examples, at least one touch key includes a plurality of touch keys. The second detection module is specifically used for: in the second detection mode, based on the respective touch pressing conditions of the plurality of touch keys, detecting the state of capacitance variation of the plurality of touch keys.

在另一些示例中,检测电路还包括通道切换模块,通道切换模块用于:周期性地在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换。多个独立检测通道分别对应于多个触控按键,用于基于多个触控按键各自的触控按压条件进行检测,融合检测通道用于基于触控接近条件进行检测。In some other examples, the detection circuit further includes a channel switching module, configured to: periodically perform channel switching between multiple independent detection channels and a fusion detection channel formed by the multiple independent detection channels. Multiple independent detection channels correspond to multiple touch keys respectively, and are used for detection based on respective touch pressing conditions of the multiple touch keys, and fusion detection channels are used for detection based on touch proximity conditions.

在另一些示例中,通道切换模块具体用于:基于预设周期时段,在多个独立检测通道以及多个独立检测通道形成的融合检测通道之间执行通道切换,其中,在预设周期时段内,多个独立检测通道分别对应于多个第一检测时段,融合检测通道对应于第二检测时段,多个第一检测时段与第二检测时段之间不重叠。In some other examples, the channel switching module is specifically configured to: perform channel switching between a plurality of independent detection channels and a fusion detection channel formed by a plurality of independent detection channels based on a preset period of time, wherein, within the preset period of time , the plurality of independent detection channels correspond to the plurality of first detection periods respectively, the fusion detection channel corresponds to the second detection period, and the plurality of first detection periods do not overlap with the second detection period.

在另一些示例中,检测电路还包括控制模块,控制模块用于:响应从第一检测模式到第二检测模式的切换,控制电子设备从休眠状态进入到唤醒状态,同时启动基于触控按压条件的检测。In some other examples, the detection circuit further includes a control module, and the control module is configured to: respond to switching from the first detection mode to the second detection mode, control the electronic device to enter from the sleep state to the wake-up state, and at the same time start detection.

在另一些示例中,控制模块具体用于:响应从第一检测模式到第二检测模式的切换,向电子设备的主控制器发送第一使能信号,第一使能信号指示唤醒与至少一个触控按键相关联的功能。In some other examples, the control module is specifically configured to: send a first enable signal to the main controller of the electronic device in response to switching from the first detection mode to the second detection mode, the first enable signal indicates that wake-up is related to at least one The function associated with the touch button.

在另一些示例中,控制模块还用于:响应从第二检测模式到第一检测模式的切换,控制电子设备从唤醒状态进入到休眠状态,同时启动基于触控接近条件的检测。In some other examples, the control module is further configured to: respond to switching from the second detection mode to the first detection mode, control the electronic device to enter the sleep state from the wake-up state, and simultaneously start the detection based on the touch proximity condition.

在另一些示例中,控制模块具体用于:在从所述第二检测模式切换到所述第一检测模式之后的预设时段内所述电容变动状态不符合触控接近条件的情况下,向电子设备的主控制器发送第二使能信号,第二使能信号指示使与至少一个触控按键相关联的功能休眠。In some other examples, the control module is specifically configured to: in the case that the capacitance change state does not meet the touch proximity condition within a preset period of time after switching from the second detection mode to the first detection mode, send The main controller of the electronic device sends a second enable signal, and the second enable signal indicates to make the function associated with the at least one touch key dormant.

在另一些示例中,检测电路还包括第三检测模块,所述第三检测模块在第三检测模式下,检测所述至少一个触控按键的电容变动状态;在所述至少一个触控按键在所述第三检测模式中的电容变动状态符合所述触控按键条件时,从所述第三检测模式切换到第一检测模式。In some other examples, the detection circuit further includes a third detection module, and the third detection module detects the capacitance variation state of the at least one touch key in the third detection mode; when the at least one touch key is in the Switching from the third detection mode to the first detection mode when the capacitance variation state in the third detection mode meets the touch key condition.

本实施例的检测电路用于实现前述多个方法实施例中相应的方法,并具有相应的方法实施例的有益效果,在此不再赘述。此外,本实施例的检测电路中的各个模块的功能实现均可参照前述方法实施例中的相应部分的描述,在此亦不再赘述。The detection circuit in this embodiment is used to implement the corresponding methods in the above-mentioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, for the function implementation of each module in the detection circuit of this embodiment, reference may be made to the descriptions of corresponding parts in the foregoing method embodiments, which will not be repeated here.

此外,程序中各步骤的具体实现可以参见上述方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。In addition, for the specific implementation of each step in the program, refer to the corresponding descriptions in the corresponding steps and units in the above method embodiments, and details are not repeated here. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the foregoing method embodiments, and details are not repeated here.

需要指出,根据实施的需要,可将本发明实施例中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本发明实施例的目的。It should be pointed out that, according to implementation requirements, each component/step described in the embodiment of the present invention can be divided into more components/steps, and two or more components/steps or partial operations of components/steps can also be combined into New components/steps to achieve the purpose of the embodiments of the present invention.

上述根据本发明实施例的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的方法。此外,当通用计算机访问用于实现在此示出的方法的代码时,代码的执行将通用计算机转换为用于执行在此示出的方法的专用计算机。The above method according to the embodiment of the present invention can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or implemented by Computer code downloaded from a network that is originally stored on a remote recording medium or a non-transitory machine-readable medium and will be stored on a local recording medium so that the methods described herein can be stored on a computer code using a general-purpose computer, a dedicated processor, or a programmable Such software processing on a recording medium of dedicated hardware such as ASIC or FPGA. It will be appreciated that a computer, processor, microprocessor controller, or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when When accessed and executed by a processor or hardware, implements the methods described herein. Furthermore, when a general purpose computer accesses code for implementing the methods shown herein, execution of the code transforms the general purpose computer into a special purpose computer for performing the methods shown herein.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。Those skilled in the art can appreciate that the units and method steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the embodiments of the present invention.

以上实施方式仅用于说明本发明实施例,而并非对本发明实施例的限制,有关技术领域的普通技术人员,在不脱离本发明实施例的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明实施例的范畴,本发明实施例的专利保护范围应由权利要求限定。The above embodiments are only used to illustrate the embodiments of the present invention, rather than to limit the embodiments of the present invention. Those of ordinary skill in the relevant technical field can also make various Changes and modifications, so all equivalent technical solutions also belong to the category of the embodiments of the present invention, and the patent protection scope of the embodiments of the present invention should be defined by the claims.

Claims (13)

1.一种检测方法,其特征在于,包括:1. A detection method, characterized in that, comprising: 在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态;In the first detection mode, detecting the capacitance change state of at least one touch key of the electronic device; 在所述电容变动状态符合触控接近条件时,从所述第一检测模式切换到第二检测模式;Switching from the first detection mode to the second detection mode when the capacitance change state meets the touch proximity condition; 在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,所述触控按压条件指示的电容变动阈值大于所述触控接近条件指示的电容变动阈值。In the second detection mode, the capacitance change state of the at least one touch key is detected based on the touch press condition, and the capacitance change threshold indicated by the touch press condition is greater than the capacitance change indicated by the touch proximity condition threshold. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 在所述电容状态不符合触控接近条件时,从所述第二检测模式切换到所述第一检测模式。When the capacitance state does not meet the touch proximity condition, switch from the second detection mode to the first detection mode. 3.根据权利要求2所述的方法,其特征在于,所述至少一个触控按键包括多个触控按键;3. The method according to claim 2, wherein the at least one touch key comprises a plurality of touch keys; 所述在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,包括:In the second detection mode, detecting the capacitance change state of the at least one touch key based on the touch pressing condition includes: 在所述第二检测模式下,基于所述多个触控按键各自的触控按压条件,检测所述多个触控按键的电容变动状态。In the second detection mode, based on the respective touch pressing conditions of the plurality of touch keys, the capacitance variation state of the plurality of touch keys is detected. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises: 周期性地在多个独立检测通道以及所述多个独立检测通道形成的融合检测通道之间执行通道切换,其中,所述多个独立检测通道分别对应于所述多个触控按键,用于基于所述多个触控按键各自的触控按压条件进行检测,所述融合检测通道用于基于触控接近条件进行检测。periodically performing channel switching between a plurality of independent detection channels and a fusion detection channel formed by the plurality of independent detection channels, wherein the plurality of independent detection channels respectively correspond to the plurality of touch keys for Detection is performed based on respective touch pressing conditions of the plurality of touch buttons, and the fusion detection channel is used for detecting based on touch proximity conditions. 5.根据权利要求4所述的方法,其特征在于,所述周期性地在多个独立检测通道以及所述多个独立检测通道形成的融合检测通道之间执行通道切换,包括:5. The method according to claim 4, wherein the periodically performing channel switching between a plurality of independent detection channels and a fusion detection channel formed by the plurality of independent detection channels comprises: 基于预设周期时段,在多个独立检测通道以及所述多个独立检测通道形成的融合检测通道之间执行通道切换,其中,在所述预设周期时段内,所述多个独立检测通道分别对应于多个第一检测时段,所述融合检测通道对应于第二检测时段,所述多个第一检测时段与所述第二检测时段之间不重叠。Based on a preset period of time, channel switching is performed between a plurality of independent detection channels and a fusion detection channel formed by the plurality of independent detection channels, wherein, within the preset period of time, the plurality of independent detection channels are respectively Corresponding to a plurality of first detection periods, the fusion detection channel corresponds to a second detection period, and there is no overlap between the plurality of first detection periods and the second detection period. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method according to claim 1, further comprising: 响应从所述第一检测模式到所述第二检测模式的切换,控制所述电子设备从休眠状态进入到唤醒状态,同时启动基于所述触控按压条件的检测。In response to switching from the first detection mode to the second detection mode, the electronic device is controlled to enter a wake-up state from a sleep state, and at the same time, detection based on the touch press condition is started. 7.根据权利要求6所述的方法,其特征在于,所述响应从所述第一检测模式到所述第二检测模式的切换,控制所述电子设备从休眠状态进入到唤醒状态,包括:7. The method according to claim 6, wherein the response to switching from the first detection mode to the second detection mode, and controlling the electronic device to enter a wake-up state from a sleep state, comprises: 响应从所述第一检测模式到所述第二检测模式的切换,向所述电子设备的主控制器发送第一使能信号,所述第一使能信号指示唤醒与所述至少一个触控按键相关联的功能。In response to switching from the first detection mode to the second detection mode, sending a first enable signal to the main controller of the electronic device, the first enable signal indicates wake-up and the at least one touch control The function associated with the key. 8.根据权利要求6所述的方法,其特征在于,所述方法还包括:8. The method according to claim 6, further comprising: 响应从所述第二检测模式到所述第一检测模式的切换,控制所述电子设备从所述唤醒状态进入到所述休眠状态,同时启动基于所述触控接近条件的检测。In response to switching from the second detection mode to the first detection mode, the electronic device is controlled to enter the sleep state from the wake-up state, and at the same time, detection based on the touch proximity condition is started. 9.根据权利要求8所述的方法,其特征在于,所述响应从所述第二检测模式到所述第一检测模式的切换,控制所述电子设备从所述唤醒状态进入到所述休眠状态,包括:9. The method according to claim 8, wherein in response to switching from the second detection mode to the first detection mode, controlling the electronic device to enter the sleep state from the wake-up state status, including: 在从所述第二检测模式切换到所述第一检测模式之后的预设时段内所述电容变动状态不符合触控接近条件的情况下,向所述电子设备的主控制器发送第二使能信号,所述第二使能信号指示使与所述至少一个触控按键相关联的功能休眠。In the case that the capacitance change state does not meet the touch proximity condition within a preset period after switching from the second detection mode to the first detection mode, send a second command to the main controller of the electronic device An enable signal, the second enable signal indicates to make the function associated with the at least one touch key dormant. 10.根据权利要求1所述的方法,其特征在于,所述方法还包括:10. The method of claim 1, further comprising: 在第三检测模式下,检测所述至少一个触控按键的电容变动状态;In a third detection mode, detecting the capacitance change state of the at least one touch key; 在所述至少一个触控按键在所述第三检测模式中的电容变动状态符合所述触控按键条件时,从所述第三检测模式切换到第一检测模式。When the capacitive change state of the at least one touch key in the third detection mode meets the touch key condition, switch from the third detection mode to the first detection mode. 11.一种检测电路,其特征在于,包括:11. A detection circuit, characterized in that, comprising: 第一检测模块,在第一检测模式下,检测电子设备的至少一个触控按键的电容变动状态,并且在所述电容变动状态符合触控接近条件时,从所述第一检测模式切换到第二检测模式;The first detection module, in the first detection mode, detects the capacitance change state of at least one touch key of the electronic device, and switches from the first detection mode to the second detection mode when the capacitance change state meets the touch proximity condition. Two detection modes; 第二检测模块,在所述第二检测模式下,基于触控按压条件,检测所述至少一个触控按键的电容变动状态,所述触控按压条件指示的电容变动阈值大于所述触控接近条件指示的电容变动阈值。The second detection module, in the second detection mode, detects the capacitance change state of the at least one touch key based on the touch press condition, and the capacitance change threshold indicated by the touch press condition is greater than the touch proximity Capacitance change threshold for condition indication. 12.一种触控装置,其特征在于,包括:12. A touch device, characterized in that it comprises: 至少一个触控按键以及根据权利要求11所述的检测电路,所述至少一个触控按键与所述检测电路电连接。At least one touch key and the detection circuit according to claim 11, the at least one touch key is electrically connected to the detection circuit. 13.一种电子设备,其特征在于,包括:13. An electronic device, characterized in that it comprises: 根据权利要求12所述的触控装置;The touch device according to claim 12; 主控制器,所述主控制器与所述触控装置电连接。A main controller, the main controller is electrically connected to the touch device.
CN202310093981.8A 2023-02-03 2023-02-03 Detection method, detection circuit, touch device and electronic equipment Pending CN116009728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310093981.8A CN116009728A (en) 2023-02-03 2023-02-03 Detection method, detection circuit, touch device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310093981.8A CN116009728A (en) 2023-02-03 2023-02-03 Detection method, detection circuit, touch device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116009728A true CN116009728A (en) 2023-04-25

Family

ID=86024904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310093981.8A Pending CN116009728A (en) 2023-02-03 2023-02-03 Detection method, detection circuit, touch device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116009728A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026007038A1 (en) * 2024-07-03 2026-01-08 深圳市汇顶科技股份有限公司 Press detection apparatus, touch-control chip and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455823A (en) * 2010-10-15 2012-05-16 罗技欧洲公司 Dual mode touchpad with a low power mode using a proximity detection mode
CN106020583A (en) * 2009-08-21 2016-10-12 苹果公司 Methods and Apparatus for Capacitive Sensing
CN108931033A (en) * 2018-08-01 2018-12-04 宁波奥克斯电气股份有限公司 A kind of line control machine control method, device and line control machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020583A (en) * 2009-08-21 2016-10-12 苹果公司 Methods and Apparatus for Capacitive Sensing
CN102455823A (en) * 2010-10-15 2012-05-16 罗技欧洲公司 Dual mode touchpad with a low power mode using a proximity detection mode
CN108931033A (en) * 2018-08-01 2018-12-04 宁波奥克斯电气股份有限公司 A kind of line control machine control method, device and line control machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026007038A1 (en) * 2024-07-03 2026-01-08 深圳市汇顶科技股份有限公司 Press detection apparatus, touch-control chip and electronic device

Similar Documents

Publication Publication Date Title
CN105120314B (en) A kind of power-economizing method of touch panel remote controller
CN104110882A (en) Water heater and control method thereof
CN104090821B (en) Full touch system Activiation method and its system
CN103472752A (en) Infrared multiple-gear hand gesture recognition switch and infrared multiple-gear hand gesture recognition method
CN108259044A (en) Touch key scanning method and device, computer readable storage medium
CN103825595B (en) Method and its circuit that intelligent control system of domestic electric appliances wakes up
CN116009728A (en) Detection method, detection circuit, touch device and electronic equipment
CN107087335A (en) The intelligent touch-control switching system and method for controlling switch of automatic detection environment
CN202870789U (en) Remote control
CN106406496A (en) Low power consumption control method for pressure-sensitive key identification device
CN208506962U (en) An energy-saving wireless remote control
CN108376050A (en) Household electrical appliance and its control method and control assembly
CN110708219A (en) Household appliance control method and household appliance
CN205514013U (en) Intelligence electric heat pot
CN103914051B (en) A kind of intelligent controller for electric consumption and control method
CN102487277A (en) Induction device and induction method
CN208190625U (en) The control system of electric appliance and touch key-press
CN111580408A (en) Home appliance system and control method
CN114747951B (en) Cooking control method and device, storage medium, and cooking equipment
CN116088707A (en) Detection method, detection circuit, touch device and electronic equipment
CN215871350U (en) Switch device without entity
CN203894774U (en) Fingerprint identification intelligent switch
CN202206359U (en) Single-live-wire intelligent inductive switch with self-learning function
CN109375554B (en) Metal touch module and electric appliance
CN209895484U (en) Wall-hung type intelligent remote controller

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