[go: up one dir, main page]

CN112532226B - Novel touch man-machine interaction processing method - Google Patents

Novel touch man-machine interaction processing method Download PDF

Info

Publication number
CN112532226B
CN112532226B CN202011222205.6A CN202011222205A CN112532226B CN 112532226 B CN112532226 B CN 112532226B CN 202011222205 A CN202011222205 A CN 202011222205A CN 112532226 B CN112532226 B CN 112532226B
Authority
CN
China
Prior art keywords
key
touch
value
finger
timing
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
CN202011222205.6A
Other languages
Chinese (zh)
Other versions
CN112532226A (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.)
Guangdong Real Design Intelligent Technology Co Ltd
Original Assignee
Guangdong Real Design Intelligent 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 Guangdong Real Design Intelligent Technology Co Ltd filed Critical Guangdong Real Design Intelligent Technology Co Ltd
Priority to CN202011222205.6A priority Critical patent/CN112532226B/en
Publication of CN112532226A publication Critical patent/CN112532226A/en
Application granted granted Critical
Publication of CN112532226B publication Critical patent/CN112532226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/9618Touch switches using a plurality of detectors, e.g. keyboard

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a novel touch man-machine interaction processing method, which is divided into two man-machine interaction modes of point-movement touch and sliding control ring touch, wherein the point-movement touch can identify short-time pressing or long-time pressing of one key or a plurality of keys by fingers, the sliding control ring touch is specifically a 360-degree clockwise or anticlockwise sliding control ring touch gesture, the uninterrupted or arbitrary small-angle sliding control touch can identify finger touch actions, the operation gesture is novel and creative, the man-machine interaction interface is fashionable and cool, and the market competitiveness of products can be improved. The invention has the advantages of stable touch performance, low price cost and strong anti-interference performance, solves the problems of less touch channels and unstable performance of domestic touch chips, and can be widely applied to household appliances sensitive to price cost, such as refrigerators, water dispensers, water purifiers, ovens and the like.

Description

一种新型触摸人机交互处理方法A new touch human-computer interaction processing method

技术领域Technical Field

本发明涉及家电应用电子技术领域,特别涉及一种新型触摸人机交互处理方法。The present invention relates to the field of electronic technology for household appliances, and in particular to a novel touch human-computer interaction processing method.

背景技术Background technique

目前家电产品普遍采用触摸按键人机交互方式,触摸方式多样,触摸按键越来越多,传统的机械按键由于长时间使用故障率高,操作费力不便捷,已逐渐被市场淘汰。国产的触摸芯片性能稳定,价格成本低,但触摸通道不会超过16个,超过20个触摸通道的国产芯片性能不稳定,而国外进口品牌价格偏贵,不适用对价格成本敏感的小家电产品;传统滑动触摸一般是不可循环的间断滑动手势,也不能任意短距离滑动识别,用户体验不好,产品没有市场竞争力。At present, household appliances generally adopt touch button human-computer interaction, with various touch modes and more and more touch buttons. Traditional mechanical buttons have been gradually eliminated by the market due to high failure rate after long-term use and laborious and inconvenient operation. Domestic touch chips have stable performance and low price cost, but the number of touch channels will not exceed 16. Domestic chips with more than 20 touch channels have unstable performance, while foreign imported brands are expensive and are not suitable for small household appliances that are sensitive to price costs; traditional sliding touch is generally an intermittent sliding gesture that cannot be cycled, and it cannot be arbitrarily recognized by sliding over a short distance. The user experience is not good and the product has no market competitiveness.

发明内容Summary of the invention

本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明提出一种基于国产触摸芯片的人机交互处理方法,以解决国产触摸芯片触摸通道少和性能不稳定的技术问题。The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a human-computer interaction processing method based on a domestic touch chip to solve the technical problems of the domestic touch chip having few touch channels and unstable performance.

一种新型触摸人机交互处理方法,所述方法包括:A novel touch human-computer interaction processing method, the method comprising:

点动触摸:第一触摸芯片首先识别点动触摸按键值,所述点动触摸按键值包括触摸一个或同时触摸多个按键所对应的不同的按键值,然后主MCU进行按键识别计时,最终依据按键值和按键时长作出对应的事件判定。Point touch: The first touch chip first identifies the point touch key value, which includes different key values corresponding to touching one or multiple keys at the same time. Then the main MCU performs key recognition timing, and finally makes a corresponding event judgment based on the key value and key duration.

滑控环触摸:第二触摸芯片首先识别滑控环触摸按键值,所述滑控环触摸按键值为环形滑动触摸按键组中的单个按键所对应的按键值,然后主MCU进行按键识别计时,最终依据按键值在预设时间内的变化情况作出对应的事件判定。Sliding control ring touch: The second touch chip first identifies the sliding control ring touch button value, which is the button value corresponding to a single button in the annular sliding touch button group. Then the main MCU performs button recognition timing, and finally makes corresponding event judgments based on the changes in the button value within the preset time.

进一步地,第一触摸芯片和第二触摸芯片均为通道数量小于16的国产低成本触摸芯片。Furthermore, the first touch chip and the second touch chip are both domestically produced low-cost touch chips with less than 16 channels.

进一步地,点动触摸包括以下四种按键类型,每个按键可以包含一个或一个以上按键类型:Furthermore, the inching touch includes the following four key types, each of which may include one or more key types:

(1)T0时刻,单指触摸其中一个按键,开始按键识别周期计时,T0+t1时刻,若按键值维持不变,判定为单指短按触发事件Kv1;(1) At time T0, a single finger touches one of the keys, and the key recognition cycle timing starts. At time T0+t1, if the key value remains unchanged, it is determined as a single-finger short press triggering event Kv1;

(2)T0时刻,单指触摸其中一个按键,开始按键识别周期计时,T0+T1时刻,t1<T1<t2,若按键值维持不变,且T0+T2时刻按键值为0,T1<T2<t2,判定为单指短时释放事件Kv2;(2) At time T0, a single finger touches one of the keys, and the key recognition cycle timing starts. At time T0+T1, t1<T1<t2. If the key value remains unchanged and the key value at time T0+T2 is 0, T1<T2<t2, it is determined to be a single-finger short-time release event Kv2;

(3)T0时刻,单指触摸其中一个按键,开始按键识别周期计时,T0+t3时刻,若按键值维持不变,判定为单指长按触发事件Kv3;(3) At time T0, a single finger touches one of the keys, and the key recognition cycle timing starts. At time T0+t3, if the key value remains unchanged, it is determined as a single-finger long press triggering event Kv3;

(4)T0时刻,手指同时触摸其中两个或两个以上按键,开始按键识别周期计时,T0+t3时刻,若按键值维持不变,判定为多指长按触发事件Kv4;(4) At time T0, a finger touches two or more keys at the same time, and the key recognition cycle timing starts. At time T0+t3, if the key value remains unchanged, it is determined as a multi-finger long press triggering event Kv4;

其中,T1和T2为触摸时间,t1、t2和t3均为预设时间,且0<t1<t2<t3;其中,同一个按键不能同时包含Kv1和Kv3。Wherein, T1 and T2 are touch times, t1, t2 and t3 are all preset times, and 0<t1<t2<t3; wherein, the same key cannot contain Kv1 and Kv3 at the same time.

进一步地,所述点动触摸设有若干个点动触摸按键,将按键分为以下四种类型:Furthermore, the touch function is provided with a plurality of touch buttons, which are divided into the following four types:

(1)第一种按键包含两个按键类型:Kv3--单指长按2s触发、Kv2--单指短按1s内释放;(1) The first type of key contains two key types: Kv3 - single-finger long press for 2 seconds to trigger, Kv2 - single-finger short press within 1 second to release;

(2)第二种按键包含一个按键类型:Kv1--单指短按20ms触发;(2) The second type of key includes one key type: Kv1--single finger short press 20ms trigger;

(3)第三种按键包含一个按键类型:Kv2--单指短按1s内释放;(3) The third key type includes one key type: Kv2-single-finger short press within 1 second;

(4)第四种按键包含一个按键类型:Kv4--双指长按2s触发;(4) The fourth key type includes one key type: Kv4 - triggered by pressing two fingers for 2 seconds;

以下为按键类型Kv1-Kv4的识别处理过程:The following is the recognition process of key types Kv1-Kv4:

①按键类型Kv1包含以下步骤:①Key type Kv1 includes the following steps:

步骤110,T0时刻,单指触摸第二种按键中的任一按键,开始按键识别周期计时;Step 110, at time T0, a single finger touches any key of the second type of keys to start the key recognition cycle timing;

步骤120,T0+20ms时刻,若按键值维持不变,主MCU判定为按键类型Kv1;Step 120, at time T0+20ms, if the key value remains unchanged, the main MCU determines it as key type Kv1;

步骤130,后续主MCU等待手指释放按键,清零触摸识别周期计时,若手指一直不释放,按键识别周期计时累加,累加到最大值则保持不变。Step 130, the main MCU subsequently waits for the finger to release the button and clears the touch recognition cycle timer. If the finger is not released, the button recognition cycle timer accumulates and remains unchanged until it reaches the maximum value.

②按键类型Kv2包含以下步骤:②Key type Kv2 includes the following steps:

步骤210,T0时刻,单指触摸第一种按键或第三种按键中的任一按键,开始按键识别周期计时;Step 210, at time T0, a single finger touches any key of the first key or the third key to start the key recognition cycle timing;

步骤220,T0+T1时刻,20ms<T1<1s,若按键值维持不变,主MCU的状态为按键类型Kv2判定使能;Step 220, at time T0+T1, 20ms<T1<1s, if the key value remains unchanged, the state of the main MCU is key type Kv2 determination enabled;

步骤230,T0+T2时刻,T1<T2<1s,单指释放按键,主MCU判定为按键类型Kv2,同时按键识别周期计时和按键Kv2判定使能清零。Step 230, at time T0+T2, T1<T2<1s, the key is released with one finger, and the main MCU determines it as key type Kv2. At the same time, the key recognition cycle timing and key Kv2 determination enable are cleared.

③按键类型Kv3包含以下步骤:③Key type Kv3 includes the following steps:

步骤310,T0时刻,单指开始触摸第一种按键中的任一按键,开始按键识别周期计时;Step 310, at time T0, a single finger starts to touch any key in the first type of keys, and the key recognition cycle timing starts;

步骤320,T0+2s时刻,若按键值维持不变,主MCU判定为按键类型Kv3;Step 320, at time T0+2s, if the key value remains unchanged, the main MCU determines it as key type Kv3;

步骤330,后续主MCU等待手指释放按键,清零触摸识别周期计时,若手指一直不释放,按键识别周期计时累加,累加到最大值则保持不变。Step 330: the main MCU subsequently waits for the finger to release the key and clears the touch recognition cycle timer. If the finger is not released, the key recognition cycle timer accumulates and remains unchanged until it reaches the maximum value.

④按键类型Kv4包含以下步骤:④Key type Kv4 includes the following steps:

步骤410,T0时刻,手指同时触摸第四种按键中的两个或两个以上按键,开始按键识别周期计时;Step 410, at time T0, the finger touches two or more keys of the fourth type of keys at the same time, and the key recognition cycle timing starts;

步骤420,T0+2s时刻,若按键值维持不变,主MCU判定为按键类型Kv4;Step 420, at time T0+2s, if the key value remains unchanged, the main MCU determines that the key type is Kv4;

步骤430,后续主MCU等待手指释放按键,清零触摸识别周期计时,若手指一直不释放,按键识别周期计时累加,累加到最大值则保持不变。Step 430, the main MCU subsequently waits for the finger to release the key and clears the touch recognition cycle timer. If the finger is not released, the key recognition cycle timer accumulates and remains unchanged until it reaches the maximum value.

进一步地,滑控环触摸是由12个以上的触摸按键呈环形均匀分布围成的圆形滑控环触摸轨迹。Furthermore, the sliding control ring touch is a circular sliding control ring touch track formed by more than 12 touch buttons evenly distributed in a ring shape.

进一步地,滑控环触摸包括顺时针滑动手势和逆时针滑动手势。Furthermore, the sliding ring touch includes a clockwise sliding gesture and a counterclockwise sliding gesture.

进一步地,所述滑控环触摸顺时针滑动手势的处理步骤如下:Furthermore, the processing steps of the sliding control ring touch clockwise sliding gesture are as follows:

步骤510,手指开始触摸滑控环上的初始键,默认计时周期清零,并且开始触摸识别周期计时,按键初值为Key"x";Step 510, the finger starts to touch the initial key on the sliding control ring, the default timing cycle is reset to zero, and the touch recognition cycle timing starts, and the initial key value is Key "x";

步骤520,若触摸识别周期计时在预设时间内按键值变为Key"x+1",则判定为顺时针滑动一步手势,同时计时周期清零,按键初值改为Key"x+1";Step 520, if the key value changes to Key "x+1" during the touch recognition cycle timing within the preset time, it is determined to be a one-step clockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key "x+1";

步骤530,若触摸识别周期计时在预设时间内按键值变为Key"x+2",则判定为顺时针滑动一步手势,同时计时周期清零,按键初值改为Key"x+2";Step 530, if the key value changes to Key "x+2" during the touch recognition cycle timing within the preset time, it is determined to be a one-step clockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key "x+2";

后续步骤以此类推,手指连续顺时针方向环形滑动,会连续产生顺时针滑动手势。The subsequent steps are similar. If the finger slides in a circular clockwise direction continuously, a clockwise sliding gesture will be continuously generated.

进一步地,所述滑控环触摸逆时针滑动手势的处理步骤如下:Furthermore, the processing steps of the anti-clockwise sliding gesture of the sliding control ring touch are as follows:

步骤610,手指开始触摸滑控环上的初始键,默认计时周期清零,并且开始触摸识别周期计时;Step 610, the finger starts to touch the initial key on the sliding control ring, the default timing cycle is reset to zero, and the touch recognition cycle timing starts;

步骤620,若触摸识别周期计时在预设时间内按键值变为按键最大值为Key"y",则判定为逆时针滑动一步手势,同时计时周期清零,按键初值改为Key"y";Step 620, if the key value of the touch recognition cycle timing changes to the key maximum value Key "y" within the preset time, it is determined to be a counterclockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key "y";

步骤630,若触摸识别周期计时在预设时间内按键值变为Key"y-1",则判定为逆时针滑动一步手势,同时计时周期清零,按键初值改为Key"y-1";Step 630, if the key value changes to Key "y-1" during the touch recognition cycle timing within the preset time, it is determined to be a counterclockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key "y-1";

后续步骤以此类推,手指连续逆时针方向环形滑动,会连续产生逆时针滑动手势。The subsequent steps are similar. If the finger slides in a counterclockwise circular motion continuously, counterclockwise sliding gestures will be continuously generated.

本发明有益效果:Beneficial effects of the present invention:

该触摸人机交互处理方法分为点动触摸和滑控环触摸两种人机交互方式,点动触摸能识别手指短按或长按一个按键或多个按键,滑控环触摸具体为一种360°顺时针或逆时针滑控环触摸手势,可以不间断或任意小角度滑控触摸识别手指触摸动作,操作手势新颖有创意,人机交互界面时尚酷炫,能提升产品的市场竞争力。总触摸通道数超过20个,触摸性能稳定,价格成本低,抗干扰性强,解决国产触摸芯片触摸通道少和性能不稳定的问题,本发明可以广泛用于对价格成本敏感的家用电器上,比如冰箱、饮水机、净水器、烤箱等。The touch human-computer interaction processing method is divided into two human-computer interaction modes: point touch and slide control ring touch. Point touch can identify a finger short press or long press of a key or multiple keys. The slide control ring touch is specifically a 360° clockwise or counterclockwise slide control ring touch gesture, which can continuously or at any small angle slide control touch to identify finger touch actions. The operation gesture is novel and creative, and the human-computer interaction interface is fashionable and cool, which can enhance the market competitiveness of the product. The total number of touch channels exceeds 20, the touch performance is stable, the price cost is low, and the anti-interference ability is strong. It solves the problem of few touch channels and unstable performance of domestic touch chips. The present invention can be widely used in household appliances that are sensitive to price costs, such as refrigerators, water dispensers, water purifiers, ovens, etc.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

图1为本发明实施例的结构示意图。FIG1 is a schematic structural diagram of an embodiment of the present invention.

具体实施方式Detailed ways

本实施例为一个嵌入式蒸汽烤箱,它包含8个点动按键和12个环形滑动触摸按键,以下分两大部分进行详细阐述。This embodiment is a built-in steam oven, which includes 8 inching buttons and 12 annular sliding touch buttons, which are described in detail in two parts below.

第一部分:8个点动按键的处理Part 1: Processing of 8 inching buttons

本实施例共有8个点动触摸按键(key1--key8),更具体的分为以下4个类型:This embodiment has a total of 8 touch keys (key1-key8), which are more specifically divided into the following 4 types:

1、key1包含2个按键类型:Kv3--单指长按2s触发、Kv2--单指短按1s内释放;1. key1 contains 2 key types: Kv3--single-finger long press for 2s to trigger, Kv2--single-finger short press for 1s to release;

2、key2--key6这5个按键分别包含1个按键类型:Kv1--单指短按20ms触发;2. The five keys key2--key6 each contain one key type: Kv1--single finger short press 20ms trigger;

3、key7包含1个按键类型:Kv2--单指短按1s内释放;3. key7 contains 1 key type: Kv2--single finger short press and release within 1s;

4、key7、key8这2个按键包含1个按键类型:Kv4--双手指长按2s触发;4. The two buttons key7 and key8 contain one button type: Kv4--trigger by pressing and holding two fingers for 2 seconds;

第一触摸芯片能及时准确识别手指触摸按键动作,同时它向主MCU传输按键值信息,主MCU负责处理按键值,变成上述4种有效的按键类型。第一触摸芯片和主MCU都为一个微控制器,能多次读写并运行技术人员输入的程序代码,写入芯片存储空间的程序代码非易失。The first touch chip can accurately identify the finger touch button action in time, and it transmits the key value information to the main MCU. The main MCU is responsible for processing the key value and converting it into the above 4 valid key types. The first touch chip and the main MCU are both microcontrollers that can read, write and run the program code entered by the technician multiple times. The program code written into the chip storage space is non-volatile.

以下为Kv1-Kv4的识别处理具体过程:The following is the specific process of Kv1-Kv4 recognition and processing:

1、按键类型Kv1:单指短按20ms触发,以其中key2按键为例,包含以下几个步骤:1. Key type Kv1: Triggered by a single finger short press for 20ms. Taking key2 as an example, it includes the following steps:

步骤110,T0时刻,单指开始触摸key2键,开始按键识别周期计时;Step 110, at time T0, a single finger starts to touch key2, and the key recognition cycle timing starts;

步骤120,T0+20ms时刻,单指仍然触摸key2按键,主MCU判定为按键类型Kv1;Step 120, at time T0+20ms, a single finger still touches key2, and the main MCU determines it as key type Kv1;

步骤130,后续主MCU等待手指释放key2按键,清零触摸识别周期计时,为下次触摸识别作准备,若手指一直不释放,按键识别周期计时累加,累加到最大值则保持不变。Step 130, the main MCU subsequently waits for the finger to release the key2 button, clears the touch recognition cycle timer, and prepares for the next touch recognition. If the finger is not released, the key recognition cycle timer accumulates and remains unchanged when it reaches the maximum value.

2、按键类型Kv2:单指短按1s内释放,以其中key1按键为例,包含以下几个步骤:2. Key type Kv2: single-finger short press and release within 1s. Taking key1 as an example, it includes the following steps:

步骤210,T0时刻,单指开始触摸key1键,开始按键识别周期计时;Step 210, at time T0, a single finger starts to touch key1, and the key recognition cycle timing starts;

步骤220,T0+T1时刻(20ms<T1<1s),单指仍然触摸key1按键,主MCU的状态为按键类型Kv2判定使能;Step 220, at time T0+T1 (20ms<T1<1s), a single finger still touches key1, and the state of the main MCU is key type Kv2 determination enabled;

步骤230,T0+T2时刻(T1<T2<1s),单指释放key1按键,主MCU判定为按键类型Kv2,同时按键识别周期计时和按键Kv2判定使能清零,为下次按键识别作准备。Step 230, at time T0+T2 (T1<T2<1s), the key1 button is released with a single finger, and the main MCU determines it as key type Kv2. At the same time, the key recognition cycle timing and key Kv2 determination enable are cleared to prepare for the next key recognition.

3、按键类型Kv3:单指长按2s触发,以其中key1按键为例,包含以下几个步骤:3. Key type Kv3: Triggered by long pressing one finger for 2s. Taking key1 as an example, it includes the following steps:

步骤310,T0时刻,单指开始触摸key1键,开始按键识别周期计时;Step 310, at time T0, a single finger starts to touch key1, and the key recognition cycle timing starts;

步骤320,T0+2s时刻,单指仍然触摸key1按键,主MCU判定为按键类型Kv3;Step 320, at time T0+2s, a single finger still touches key1, and the main MCU determines that the key type is Kv3;

步骤330,后续主MCU等待手指释放key1按键,清零触摸识别周期计时,为下次触摸识别作准备,若手指一直不释放,按键识别周期计时累加,累加到最大值则保持不变。Step 330, the main MCU subsequently waits for the finger to release the key1 button, clears the touch recognition cycle timer, and prepares for the next touch recognition. If the finger is not released, the key recognition cycle timer accumulates and remains unchanged when it reaches the maximum value.

4、按键类型Kv4:双手指长按2s触发,以key7和key8这2个按键为例,包含以下几个步骤:4. Key type Kv4: Triggered by pressing and holding two fingers for 2 seconds. Taking key7 and key8 as examples, it includes the following steps:

步骤410,T0时刻,2手指分别触摸key7和key8按键,开始按键识别周期计时;Step 410, at time T0, two fingers touch key7 and key8 respectively, and the key recognition cycle timing starts;

步骤420,T0+2s时刻,2手指仍然触摸key7和key8按键,主MCU判定为按键类型Kv4;Step 420, at time T0+2s, two fingers are still touching key7 and key8, and the main MCU determines that the key type is Kv4;

步骤430,后续主MCU等待手指释放key7和key8按键,清零触摸识别周期计时,为下次触摸识别作准备,若手指一直不释放,按键识别周期计时累加,累加到最大值则保持不变。Step 430, the main MCU subsequently waits for the finger to release key7 and key8, clears the touch recognition cycle timer, and prepares for the next touch recognition. If the finger is not released, the key recognition cycle timer accumulates and remains unchanged when it reaches the maximum value.

作为补充,本实施例key1不能同时包含2个按键识别值类型:单指长按2s触发、单指短按20ms触发;本实施例在手指触摸key1--key8任何按键时,同时触摸12个环形滑动触摸按键,被视为无效触摸按键。In addition, in this embodiment, key1 cannot contain two key identification value types at the same time: triggered by a single-finger long press for 2s and a single-finger short press for 20ms; in this embodiment, when a finger touches any key from key1 to key8, and touches all 12 circular sliding touch keys at the same time, it is regarded as an invalid touch key.

第二部分:12个环形滑动触摸按键的处理Part 2: Processing of 12 circular sliding touch buttons

本实施例共有12个环形滑动触摸按键,手指沿环形轨迹滑动触摸按键,第二触摸芯片能及时准确识别按键值,手指滑过触摸键时对应不同的按键值,同时第二触摸芯片向主MCU传输按键值信息,主MCU负责处理按键值,变成有效的按键识别事件,第二触摸芯片和第一触摸芯片都为同类型触摸芯片。In this embodiment, there are 12 annular sliding touch buttons. When a finger slides along the annular track to touch the button, the second touch chip can timely and accurately identify the button value. When the finger slides over the touch key, it corresponds to a different button value. At the same time, the second touch chip transmits the button value information to the main MCU. The main MCU is responsible for processing the button value and turning it into a valid button recognition event. The second touch chip and the first touch chip are both the same type of touch chips.

本部分12个滑动触摸按键,每隔30°均匀排布成圆形,定义12O’clock为按键Key1,顺时针依次为按键Key2,按键Key3.....一直到按键Key12,主MCU每次按键识别周期设为5ms,最大的有效识别时间为300ms。手指沿环形轨迹滑动触摸按键可以产生2种滑控手势:顺时针滑动一步手势、逆时针滑动一步手势。The 12 sliding touch buttons in this part are evenly arranged in a circle every 30°. 12O’clock is defined as key 1, and clockwise is key 2, key 3, etc. until key 12. The main MCU is set to recognize each key 5ms, and the maximum effective recognition time is 300ms. Sliding the finger along the circular track on the touch button can generate two kinds of sliding gestures: clockwise sliding gesture and counterclockwise sliding gesture.

具体的,顺时针滑动一步手势识别处理,分为以下几个步骤:Specifically, the clockwise sliding gesture recognition process is divided into the following steps:

步骤510,手指开始滑控触摸一个按键的时刻记为T0,默认计时周期清零(假设按键初值为Key1),并且开始按键识别计时;Step 510, the moment when the finger starts to slide and touch a key is recorded as T0, the default timing cycle is reset to zero (assuming the initial value of the key is Key1), and the key recognition timing starts;

步骤520,触摸识别周期计时累计到T1,(5ms≤T1≤300ms),若按键值变为Key2,则判定为顺时针滑动一步手势,同时计时周期清零,按键初值改为Key2;Step 520, when the touch recognition cycle timing accumulates to T1 (5ms≤T1≤300ms), if the key value changes to Key2, it is determined to be a clockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key2;

步骤530,触摸识别周期计时累计到T2,(5ms≤T2≤300ms),若按键值变为Key3,则判定为顺时针滑动一步手势,同时计时周期清零,按键初值改为Key3;Step 530, when the touch recognition cycle timing accumulates to T2 (5ms≤T2≤300ms), if the key value changes to Key3, it is determined to be a clockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key3;

步骤540,触摸识别周期计时累计到T3,(5ms≤T3≤300ms),若按键值变为Key4,则判定为顺时针滑动一步手势,同时计时周期清零,按键初值改为Key4;Step 540, when the touch recognition cycle timing accumulates to T3 (5ms≤T3≤300ms), if the key value changes to Key4, it is determined to be a clockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key4;

后续步骤按照同样方式处理,手指连续顺时针方向环形滑动,会连续产生顺时针滑动手势。值得一提的是,若T1、T2、T3计时大于300ms,不会产生顺时针滑动手势。The subsequent steps are processed in the same way. If the finger slides in a circular clockwise direction continuously, a clockwise sliding gesture will be continuously generated. It is worth mentioning that if the T1, T2, and T3 timings are greater than 300ms, a clockwise sliding gesture will not be generated.

作为补充,步骤520,触摸识别周期计时累计到T1(5ms≤T1≤300ms),若按键值变为Key12,则判定为逆时针滑动一步手势,同时计时周期清零,按键初值改为Key12;后续每个步骤,主MCU按照同样逻辑处理,根据手指滑动方向的变化,可以相应判定是顺时针或者是逆时针滑动手势。As a supplement, in step 520, the touch recognition cycle timing accumulates to T1 (5ms≤T1≤300ms). If the key value becomes Key12, it is determined to be a counterclockwise sliding gesture. At the same time, the timing cycle is reset and the initial key value is changed to Key12. In each subsequent step, the main MCU processes according to the same logic, and can determine whether it is a clockwise or counterclockwise sliding gesture according to the change in the finger sliding direction.

具体的,逆时针滑动一步手势识别处理,分为以下几个步骤:Specifically, the counterclockwise sliding gesture recognition process is divided into the following steps:

步骤610,手指开始滑控触摸一个按键的时刻记为T0,默认计时周期清零(假设按键初值为Key1),并且开始按键识别计时;Step 610, the moment when the finger starts to slide and touch a key is recorded as T0, the default timing cycle is reset to zero (assuming the initial value of the key is Key1), and the key recognition timing starts;

步骤620,触摸识别周期计时累计到T1(5ms≤T1≤300ms),若按键值变为Key12,则判定为逆时针滑动一步手势,同时计时周期清零,按键初值改为Key12;Step 620, when the touch recognition cycle timing reaches T1 (5ms≤T1≤300ms), if the key value changes to Key12, it is determined to be a counterclockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key12;

步骤630,触摸识别周期计时累计到T2(5ms≤T2≤300ms),若按键值变为Key11,则判定为逆时针滑动一步手势,同时计时周期清零,按键初值改为Key11;Step 630, when the touch recognition cycle timing reaches T2 (5ms≤T2≤300ms), if the key value changes to Key11, it is determined to be a counterclockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key11;

步骤640,触摸识别周期计时累计到T3(5ms≤T3≤300ms),若按键值变为Key10,则判定为逆时针滑动一步手势,同时计时周期清零,按键初值改为Key10;Step 640, when the touch recognition cycle timing reaches T3 (5ms≤T3≤300ms), if the key value changes to Key10, it is determined to be a counterclockwise sliding gesture, and the timing cycle is reset to zero, and the initial key value is changed to Key10;

后续步骤按照同样方式处理,手指连续逆时针方向环形滑动,会连续产生逆时针滑动手势。值得一提的是,若T1、T2、T3计时大于300ms,不会产生逆时针滑动手势。The subsequent steps are processed in the same way. If the finger slides in a counterclockwise circular motion continuously, a counterclockwise sliding gesture will be continuously generated. It is worth mentioning that if the T1, T2, and T3 timings are greater than 300ms, a counterclockwise sliding gesture will not be generated.

作为补充,步骤620,触摸识别周期计时到达T1(5ms≤T1≤300ms),若按键值变为Key2,则判定为顺时针滑动一步手势,同时计时周期清零,按键初值改为Key2;后续每个步骤,主MCU按照同样逻辑处理,根据手指滑动方向的变化,可以相应判定是顺时针或者是逆时针滑动手势。In addition, in step 620, when the touch recognition cycle timing reaches T1 (5ms≤T1≤300ms), if the key value becomes Key2, it is determined to be a clockwise sliding gesture, and the timing cycle is reset, and the initial key value is changed to Key2; in each subsequent step, the main MCU processes according to the same logic, and can determine whether it is a clockwise or counterclockwise sliding gesture according to the change in the finger sliding direction.

本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明权利要求的保护范围之内。The above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims (6)

1. The novel touch man-machine interaction processing method is characterized by comprising the following steps of:
Inching touch: the first touch chip firstly recognizes a inching touch key value, wherein the inching touch key value comprises different key values corresponding to one or a plurality of keys which are touched at the same time, then the main MCU performs key recognition timing, and finally, corresponding event judgment is performed according to the key value and the key duration;
touch of the sliding control ring: the second touch chip firstly identifies a sliding control ring touch key value, wherein the sliding control ring touch key value is a key value corresponding to a single key in the annular sliding touch key group, then the main MCU performs key identification timing, and finally corresponding event judgment is made according to the change condition of the key value in a preset time;
The inching touch is provided with a plurality of inching touch keys, and the keys are divided into the following four types:
(1) The first type of key comprises two key types: kv3- -single finger long press 2s trigger, kv2- -single finger short press 1s release;
(2) The second key comprises a key type: kv1- -single finger short press 20 ms;
(3) The third type of key comprises a key type: kv2- -single finger short press release within 1 s;
(4) The fourth key comprises a key type: kv4- -long press 2s trigger;
the following is a key type Kv1-Kv4 identification process:
the key type Kv1 comprises the following steps:
step 110, at the moment of T0, any key in the second keys is touched by a single finger, and key identification period timing is started;
step 120, at time T0+20ms, if the key value is kept unchanged, the main MCU judges that the key type is Kv1;
Step 130, the subsequent main MCU waits for the finger to release the key, clears the touch recognition period timing, and if the finger is not released all the time, the key recognition period timing is accumulated, and the accumulated value is kept unchanged;
the key type Kv2 comprises the following steps:
Step 210, at the time of T0, touching any one of the first key or the third key with a single finger, and starting key identification cycle timing;
step 220, at time T0+T1, 20ms < T1<1s, if the key value is kept unchanged, the state of the main MCU is key type Kv2 judgment enabling;
Step 230, at time T0+T2, T1< T2<1s, the key is released by a single finger, the main MCU judges the key type Kv2, and the key identification period timing and the key Kv2 judging enable zero clearing are carried out at the same time;
the key type Kv3 comprises the following steps:
step 310, at the time of T0, a single finger starts to touch any key in the first keys, and starts to count the key identification period;
step 320, at time T0+2s, if the key value remains unchanged, the main MCU determines that the key type is Kv3;
step 330, the subsequent main MCU waits for the finger to release the key, clears the touch recognition period timing, and if the finger is not released all the time, the key recognition period timing is accumulated, and the accumulated value is kept unchanged;
④ The key type Kv4 comprises the following steps:
Step 410, at time T0, the finger touches two or more keys in the fourth key simultaneously, and starts key identification cycle timing;
step 420, at time T0+2s, if the key value remains unchanged, the main MCU determines that the key type is Kv4;
Step 430, the subsequent main MCU waits for the finger to release the key, clears the touch recognition period timing, and if the finger is not released all the time, the key recognition period timing is accumulated, and if the accumulated value reaches the maximum value, the accumulated value is kept unchanged.
2. The novel touch man-machine interaction processing method of claim 1, wherein the first touch chip and the second touch chip are domestic touch chips with the number of channels smaller than 16.
3. The novel touch man-machine interaction processing method according to claim 1, wherein the click touch comprises the following four key types, and each key can comprise one or more key types:
(1) At the moment T0, one key is touched by one finger, the key identification period timing is started, and at the moment T0 and T1, if the key value is kept unchanged, a single-finger short-press triggering event Kv1 is judged;
(2) At the moment T0, one key is touched by a single finger, key identification period timing is started, at the moment T0+T1, T1 is smaller than T2, if the key value is kept unchanged and the key value at the moment T0+T2 is 0, T1 is smaller than T2 and is smaller than T2, a single-finger short-time release event Kv2 is judged;
(3) At the moment T0, one key is touched by a single finger, the key identification period timing is started, and at the moment T0 and T3, if the key value is kept unchanged, a single-finger long-press trigger event Kv3 is judged;
(4) At the time T0, the finger touches two or more keys at the same time, the key identification period timing is started, and if the key value is kept unchanged at the time T0+t3, the multi-finger long-press trigger event Kv4 is judged;
wherein T1 and T2 are touch times, T1, T2 and T3 are preset times, and T1 is more than 0 and T2 is more than 0 and less than T3;
wherein the same key cannot contain both Kv1 and Kv3.
4. The novel touch man-machine interaction processing method of claim 1, wherein the sliding control ring touch is a circular sliding control ring touch track formed by more than 12 touch keys in a circular uniform distribution.
5. The novel touch man-machine interaction processing method is characterized by comprising the following steps of:
Inching touch: the first touch chip firstly recognizes a inching touch key value, wherein the inching touch key value comprises different key values corresponding to one or a plurality of keys which are touched at the same time, then the main MCU performs key recognition timing, and finally, corresponding event judgment is performed according to the key value and the key duration;
Touch of the sliding control ring: the second touch chip firstly identifies a sliding control ring touch key value, wherein the sliding control ring touch key value is a key value corresponding to a single key in the annular sliding touch key group, then the main MCU performs key identification timing, and finally corresponding event judgment is made according to the change condition of the key value in a preset time; the slip ring touch includes a clockwise slip gesture and a counterclockwise slip gesture; the processing steps of the clockwise sliding gesture of the sliding control ring touch are as follows:
Step 510, the finger starts to touch the initial Key on the sliding control ring, the default timing period is cleared, and the touch recognition period starts to time, and the initial value of the Key is Key 'x';
step 520, if the Key value becomes Key "x+1" in the preset time during the touch recognition period, determining that the gesture slides clockwise by one step, and clearing the timing period, wherein the Key initial value is changed to Key "x+1";
Step 530, if the Key value becomes Key "x+2" in the preset time during the touch recognition period, determining that the gesture is a clockwise sliding gesture, and clearing the timing period, wherein the Key initial value is changed into Key "x+2";
Subsequent steps and the like, fingers continuously slide in a clockwise ring shape, and clockwise sliding gestures are continuously generated.
6. The novel touch man-machine interaction processing method is characterized by comprising the following steps of:
Inching touch: the first touch chip firstly recognizes a inching touch key value, wherein the inching touch key value comprises different key values corresponding to one or a plurality of keys which are touched at the same time, then the main MCU performs key recognition timing, and finally, corresponding event judgment is performed according to the key value and the key duration;
touch of the sliding control ring: the second touch chip firstly identifies a sliding control ring touch key value, wherein the sliding control ring touch key value is a key value corresponding to a single key in the annular sliding touch key group, then the main MCU performs key identification timing, and finally corresponding event judgment is made according to the change condition of the key value in a preset time; the slip ring touch includes a clockwise slip gesture and a counterclockwise slip gesture; the processing steps of the anticlockwise sliding gesture of the sliding control ring touch are as follows:
step 610, the finger starts touching the initial key on the slide control ring, the default timing period is cleared, and the touch recognition period is started to time;
step 620, if the Key value becomes Key maximum value Key "y" in the preset time during the touch recognition period, determining that the gesture slides counterclockwise by one step, and clearing the timing period, wherein the Key initial value is changed to Key "y";
step 630, if the Key value becomes Key "y-1" in the preset time during the touch recognition period, determining that the gesture slides anticlockwise by one step, and clearing the timing period, wherein the Key initial value is changed into Key "y-1";
Subsequent steps and the like, the fingers continuously slide in a circular way in a counterclockwise direction, and a counterclockwise sliding gesture is continuously generated.
CN202011222205.6A 2020-11-05 2020-11-05 Novel touch man-machine interaction processing method Active CN112532226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011222205.6A CN112532226B (en) 2020-11-05 2020-11-05 Novel touch man-machine interaction processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011222205.6A CN112532226B (en) 2020-11-05 2020-11-05 Novel touch man-machine interaction processing method

Publications (2)

Publication Number Publication Date
CN112532226A CN112532226A (en) 2021-03-19
CN112532226B true CN112532226B (en) 2024-05-10

Family

ID=74980639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011222205.6A Active CN112532226B (en) 2020-11-05 2020-11-05 Novel touch man-machine interaction processing method

Country Status (1)

Country Link
CN (1) CN112532226B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905026A (en) * 2014-04-14 2014-07-02 上海电器科学研究院 Method for double-key gesture recognition based on capacitance single-point touch keys
CN106415472A (en) * 2015-04-14 2017-02-15 华为技术有限公司 A gesture control method, device, terminal device and storage medium
CN106775177A (en) * 2017-02-15 2017-05-31 江苏沁恒股份有限公司 A kind of induced key detection method and detection means
CN108696271A (en) * 2018-05-28 2018-10-23 珠海慧联科技有限公司 A kind of slip gesture recognition methods and system based on capacitance touch button
CN110878951A (en) * 2019-07-26 2020-03-13 杭州九阳小家电有限公司 Control method for slide bar key of cooking appliance
CN110945464A (en) * 2019-10-29 2020-03-31 深圳市汇顶科技股份有限公司 Sliding signal identification method, MCU, touch control equipment and storage medium
CN111399740A (en) * 2020-03-11 2020-07-10 上海科世达-华阳汽车电器有限公司 Touch gesture recognition method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7265746B2 (en) * 2003-06-04 2007-09-04 Illinois Tool Works Inc. Acoustic wave touch detection circuit and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905026A (en) * 2014-04-14 2014-07-02 上海电器科学研究院 Method for double-key gesture recognition based on capacitance single-point touch keys
CN106415472A (en) * 2015-04-14 2017-02-15 华为技术有限公司 A gesture control method, device, terminal device and storage medium
CN106775177A (en) * 2017-02-15 2017-05-31 江苏沁恒股份有限公司 A kind of induced key detection method and detection means
CN108696271A (en) * 2018-05-28 2018-10-23 珠海慧联科技有限公司 A kind of slip gesture recognition methods and system based on capacitance touch button
CN110878951A (en) * 2019-07-26 2020-03-13 杭州九阳小家电有限公司 Control method for slide bar key of cooking appliance
CN110945464A (en) * 2019-10-29 2020-03-31 深圳市汇顶科技股份有限公司 Sliding signal identification method, MCU, touch control equipment and storage medium
CN111399740A (en) * 2020-03-11 2020-07-10 上海科世达-华阳汽车电器有限公司 Touch gesture recognition method and system

Also Published As

Publication number Publication date
CN112532226A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN102495768B (en) Instruction processing method and terminal equipment
JP5849095B2 (en) Method for detecting and locating key press events on a touch and vibration sensitive flat surface
US8643621B2 (en) Touch-sensitive user interface
US20110018828A1 (en) Touch device, control method and control unit for multi-touch environment
US20140092049A1 (en) Touch-Control Method, Device, And Electronic Device
WO2014008717A1 (en) Method for setting shortcut function in touch device
US20080150715A1 (en) Operation control methods and systems
CN103324440A (en) Text content selecting method utilizing multi-point touch control
CN106201006B (en) Management screen keyboard
TWI380205B (en) A method for automatically adjusting capacitance baseline of touch button
CN107294522A (en) Response method, device, storage medium and electronic equipment based on touch key-press
WO2015131675A1 (en) Compensation method for broken slide paths, electronic device and computer storage medium
CN103809901B (en) False touch prevention touch control method and electronic device using same
CN105407211A (en) Base-on-touch-button system and base-on-touch-button method for gesture identification
CN103218138A (en) Touch terminal and switching method of application programs thereof
CN103853481A (en) Method and system for simulating touch screen mobile terminal keys
TW201349017A (en) Method of rhythm touch unlock and related electronic device
CN102622095A (en) Method for preventing touch keyboard from being accidentally touched and touch electronic device
WO2023273039A1 (en) Accidental-touch prevention method, and wearable device and storage medium
CN112532226B (en) Novel touch man-machine interaction processing method
CN104035695B (en) A kind of method and electronic equipment of information processing
WO2019148956A1 (en) Touch control identification method, device, and system
CN102214028B (en) Gesture recognition method and device for touch panel
CN107477970B (en) Refrigerator door opening control method and refrigerator adopting same
US20150091803A1 (en) Multi-touch input method for touch input device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250327

Address after: 231200 intersection of Fenghe road and Hengshan Road, Feixi Economic Development Zone, Hefei City, Anhui Province

Patentee after: GUANGDONG REAL-DESIGN INTELLIGENT TECHNOLOGY CO.,LTD.

Country or region after: China

Address before: 528300 Ruixiang Road, Fengxiang Industrial Park, Shunde District, Foshan City, Guangdong Province

Patentee before: GUANGDONG REAL-DESIGN INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right