WO2024082543A1 - 一种按键触发方法 - Google Patents

一种按键触发方法 Download PDF

Info

Publication number
WO2024082543A1
WO2024082543A1 PCT/CN2023/082938 CN2023082938W WO2024082543A1 WO 2024082543 A1 WO2024082543 A1 WO 2024082543A1 CN 2023082938 W CN2023082938 W CN 2023082938W WO 2024082543 A1 WO2024082543 A1 WO 2024082543A1
Authority
WO
WIPO (PCT)
Prior art keywords
key
variable
value
displacement
displacement variable
Prior art date
Application number
PCT/CN2023/082938
Other languages
English (en)
French (fr)
Inventor
黎柏松
Original Assignee
珠海市智迪科技股份有限公司
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 珠海市智迪科技股份有限公司 filed Critical 珠海市智迪科技股份有限公司
Publication of WO2024082543A1 publication Critical patent/WO2024082543A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • the present invention is applied to the technical field of input device triggering methods, and particularly relates to a key triggering method.
  • the types of keyboards commonly used in daily life are mostly membrane keyboards and mechanical keyboards.
  • the detection of key action is based on the on-off of the conductive parts inside the switch during the process of pressing the key.
  • the main control chip collects the on-off signal to determine the action of the key.
  • the on-off position is determined by the mechanical structure, and users cannot adjust the trigger stroke of the key by themselves.
  • the Hall element is used to detect the distance between it and the magnet on the switch shaft, reflecting the key pressing displacement, determining the key pressing and releasing actions, and setting and adjusting the key trigger position through software.
  • the Chinese patent with publication number CN111625106A discloses a technical solution that can adjust the trigger stroke by implementing a sensor (such as a magnetic sensor, a pressure sensor, etc.) that can detect the displacement distance of a key.
  • a method and device for customizing the trigger position of a keyboard switch are disclosed.
  • the device includes a main control IC and a key signal processing module.
  • the main control IC and the key signal processing module cooperate to set the trigger stroke position of the key to meet the trigger stroke requirements of different users for different keys.
  • the trigger stroke of this solution needs to be pre-set by the main control IC, and each time the key is pressed, it must pass through the pre-set trigger point to generate the key function.
  • the above-mentioned key operation does not refer to the command trigger corresponding to the long-time conduction signal obtained by long pressing, but refers to several single-click operations obtained by repeated clicking. Therefore, in order to avoid missing input commands, the input device needs to be able to sensitively identify such rapid repeated click operations.
  • the existing method of presetting trigger points can only adapt to the user's pressing feel, and cannot adapt to this operation intention.
  • the user's intention of pressing the switch is that no matter where the initial position of the switch is, the user expects to generate a key-on signal by pressing the key down a short distance; or no matter where the key is after being pressed, the user expects the key to generate a key-off signal by lifting the key up a short distance.
  • the user does not actually care whether the key passes through a certain trigger point. The user expresses the expectation of the switch being on by pressing the switch, or expresses the expectation of cutting off the switch by lifting the switch up.
  • the technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a key triggering method that is sensitive in triggering and convenient for key operations under fast and repeated pressing.
  • the present invention includes a main controller and a sensor for detecting a key displacement variable s, the main controller receives an electrical signal fed back by the sensor, and the present invention also includes the following triggering steps:
  • Step S1 When the main controller detects through the sensor that the button is in a natural state, the button is in a disconnected state, and the stroke holding variable p is initialized to 0;
  • Step S2 The main controller confirms the switch state of the button and whether the total change trend of the value of the displacement variable s is increasing or decreasing;
  • Step S3 When the numerical change trend of the displacement variable s is the same as the total change trend and the stroke holding variable p is not locked, the main controller keeps the stroke holding variable p synchronized with the displacement variable s;
  • Step S4 When the numerical variation trend of the displacement variable s changes, the numerical value of the stroke holding variable p is locked to the numerical value of the displacement variable s before the change;
  • Step S5 When the absolute value of the relative movement of the key
  • Step S6 Execute the loop of steps S2 to S5 until the key returns to the natural state, and then return to step S1.
  • a sensor that can detect the displacement variable of a key is used to obtain the displacement when the key is pressed.
  • the change in displacement is used as the trigger mechanism of the key, and the judgment of key triggering is realized by comparing the displacement with the set trigger threshold.
  • the trigger mechanism is not only applicable to the pressing process but also to the lifting process, so that even if the height of each press is not fixed when the user performs repeated key operations, it can still sensitively detect the action that satisfies the relative displacement and meets the trigger threshold and complete the trigger on-off switching, thereby improving the user's operating efficiency.
  • the main controller obtains the displacement variable s of the key by obtaining the electrical signal recognized and fed back by the sensor, and judges the movement direction of the current key according to the change in the size of the displacement variable s.
  • the direction changes that is, the displacement variable s changes from increasing to decreasing or from decreasing to increasing
  • the stroke holding variable p is locked as the displacement variable s of the change point, so as to establish a judgment basis for the new trigger state switching.
  • the next displacement variable s that is, the position of the key, is used to judge whether the distance between the position of the locked stroke holding variable p is greater than the trigger threshold d. If it is greater, the key state switching is executed to realize the on and off of the key, and the keyboard encoding signal is transmitted to the computer for character input.
  • the above scheme can change the judgment criterion during the pressing process, detect the user's intention to change the key trigger state, and improve the detection sensitivity.
  • the above method does not need to change the user's normal key operation logic, and can also meet the user's operation response sensitivity under special circumstances, thereby reducing the user's learning cost and bringing a better user experience.
  • step S5 also includes the following specific steps: when the numerical change trend of the displacement variable s is restored to be the same as the current total change trend, and the displacement variable s is equal to the stroke holding variable p, the stroke holding variable p is unlocked and restored to synchronization with the displacement variable s, and returns to step S3.
  • a preferred solution is that the maximum stroke of the button is L, and the setting value range of the trigger threshold d is 0 ⁇ d ⁇ L.
  • step S1 the user sets the value of the trigger threshold d of the button displacement through the main controller.
  • step S02 is included before step S1: the user sets the reset value RST of the button through the main controller; in steps S2 to S6, when the displacement variable s is less than the reset value RST, the state of the button is forcibly switched to the disconnected state, and the stroke holding variable p is initialized to 0.
  • the trigger threshold d includes a downward relative trigger threshold d1 and a lifting relative trigger threshold d2.
  • steps S1 to S6 when the displacement variable s increases, the trigger threshold d is equal to the downward relative trigger threshold d1, and when the displacement variable s decreases, the trigger threshold d is equal to the lifting relative trigger threshold d2.
  • the senor is a magnetic sensor
  • the button is provided with a magnetic element that cooperates with the sensor.
  • the senor is a photoelectric sensor
  • the button is provided with a shading element that cooperates with the sensor.
  • Figure 1 is a workflow diagram of the present invention
  • FIG2 is an example diagram of state changes during a pressing operation in Embodiment 1 of the present invention.
  • FIG. 3 is a diagram showing an example of state changes during a pressing operation in the second embodiment of the present invention.
  • the present invention includes a main controller and a sensor for detecting a key displacement variable s, wherein the sensor identifies the change in the physical quantity brought about by the key displacement and converts it into a changing electrical signal, and the main controller converts the change in the electrical signal fed back by the sensor into the key displacement variable s, and the main controller is a microcontroller chip used to control a keyboard device;
  • the present invention includes the following specific key triggering steps:
  • Step S01 and step S02. The user communicates with the main controller and sets various parameters through the operation interface on the operation device such as a computer or a mobile terminal; the main controller receives the setting instruction of the operation device, and sets the trigger threshold d and the reset value RST of the key displacement.
  • the maximum stroke of the key is L, and the setting value range of the trigger threshold d is 0 ⁇ d ⁇ L; wherein the maximum stroke L of the key is a physical parameter on the key structure, and its value is determined by the specifications of the key structure; the setting value of the reset value RST needs to be greater than zero, and the reset value RST should usually be less than or equal to the currently set trigger threshold d; since the keyboard keys and other devices will actually produce slight vibrations due to the influence of surrounding objects or user operations in daily use, the reset value RST is set to perform forced reset to avoid the keys from being triggered accidentally during use, thereby improving the user experience; in addition, through the above-mentioned parameter adjustment, the feel of the keyboard key device can be customized, thereby being suitable for users with different hand shapes.
  • Step S1 When the main controller detects through the sensor that the button is in a natural state, the button is in a disconnected state, and the stroke holding variable p is initialized to 0;
  • Step S1-1 When the main controller obtains that the displacement variable s increases and satisfies that the displacement variable s is greater than a preset trigger threshold d, the button switches to the on state, and the main controller synchronizes the value of the displacement variable s to the stroke holding variable p;
  • Step S2 The main controller confirms the switch state of the key and whether the total change trend of the value of the displacement variable s is increasing or decreasing; the total change trend is determined according to the current switch state of the key, when the key is in the off state, the total change trend is decreasing, and when the key is in the on state, the total change trend is increasing;
  • Step S3 When the numerical change trend of the displacement variable s is the same as the total change trend and the stroke holding variable p is not locked, the main controller keeps the stroke holding variable p synchronized with the displacement variable s;
  • Step S4 When the numerical variation trend of the displacement variable s changes, the numerical value of the stroke holding variable p is locked to the numerical value of the displacement variable s before the change;
  • Step S5 When the relative movement absolute value
  • Step S6 Execute a loop of steps S2 to S5 until the key returns to a natural state or the displacement variable s is less than the reset value RST, and then return to step S1.
  • step 1-1 is the specific process from the natural state to the first trigger.
  • the senor is a Hall sensor, and a magnet that cooperates with the sensor is provided on the button.
  • the sensor detects the magnetic flux generated by the magnet and converts it into an electrical signal.
  • the main controller converts the received electrical signal into a displacement variable s of the button according to a preset Hall sensor parameter comparison table.
  • steps S3 to S5 are specifically as follows:
  • Step S3 and step S4. Determine whether the value of the displacement variable s is less than the value of the stroke holding variable p. If so, the main controller assigns the current value of the displacement variable s to the stroke holding variable p; if not, the stroke holding variable p remains unchanged;
  • Step S5. Whether the relative movement value s-p of the button press satisfies s-p>d. If so, the switch state of the button is switched to on, and the total change trend is switched to increase. At the same time, the numerical value of the stroke holding variable p is unlocked and restored to synchronization with the numerical value of the displacement variable s, and the process returns to step S2. If not, the process returns to steps S3 and S4.
  • steps S3 to S5 are specifically as follows:
  • Step S3 and step S4. Determine whether the value of the displacement variable s is greater than the value of the stroke holding variable p. If so, the main controller assigns the current value of the displacement variable s to the stroke holding variable p; if not, the stroke holding variable p remains unchanged;
  • Step S5. Whether the relative movement value p-s of the button satisfies p-s>d. If so, the switch state of the button is switched to off, and the total change trend is switched to decrease. At the same time, the value of the stroke holding variable p is unlocked and restored to synchronization with the value of the displacement variable s, and the process returns to step S2. If not, the process returns to steps S3 and S4.
  • the difference between the displacement variable s of the key and the stroke holding variable p0 is greater than the trigger threshold d, that is, the relative movement value sp>d is satisfied, the key is switched from the disconnected state to the conductive state, and the displacement variable s is restored to be assigned to the stroke holding variable p;
  • is greater than the trigger threshold d, at which time the button switches from the on state to the off state, and resumes assigning the displacement variable s to the stroke holding variable p;
  • the key is pressed down and at time t9 , the key continues to be lifted.
  • p p4 and remains unchanged.
  • between time t8 and time t9.1 is not greater than the trigger threshold d, and the key remains in the disconnected state.
  • the displacement variable s is less than p4 , and the main controller resumes assigning the displacement variable s to the stroke holding variable p.
  • the user when performing key operations, the user does not need to lift the key to its natural state and then press it to trigger it.
  • the key character signal can be input by repeatedly pressing and lifting the key in a short stroke in the pressed state. This can improve the user's sensitive response to the user's operation when the user quickly and repeatedly operates the key, and is compatible with the conventional key operation process, reducing the user's learning cost to zero.
  • the trigger threshold d includes a relative downward trigger threshold d1 and a relative upward trigger threshold d2. In steps S1 to S6, when the displacement variable s increases, the trigger threshold d is equal to the relative downward trigger threshold d1, and when the displacement variable s decreases, the trigger threshold d is equal to the relative upward trigger threshold d2.
  • the trigger threshold d By subdividing the trigger threshold d into the downward relative trigger threshold d1 and the upward relative trigger threshold d2, it is convenient for users to modify the trigger sensitivity of the button according to their own usage habits, allowing users to freely define the trigger feel and improve the user experience.
  • the sensor is a photoelectric sensor, and a shading element cooperating with the sensor is arranged on the button.
  • a light-transmitting hole is provided on the shading element, and the light-transmitting area of the light-transmitting hole gradually increases or decreases along the axial direction of the key.
  • the photoelectric sensor feeds back an electrical signal to the main controller by detecting the amount of light passing through, and the main controller converts the received electrical signal into a displacement variable s of the key according to preset photoelectric sensor parameter information.
  • the sensor is a pressure sensor, and a pressing piece that cooperates with the sensor is provided on the button or the shaft seat.
  • the sensor generates a corresponding electrical signal according to the pressure applied by the pressing piece, and the main controller converts the received electrical signal into a displacement variable s of the button according to preset pressure sensor parameter information.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Push-Button Switches (AREA)

Abstract

一种触发灵敏且便于在快速且反复按压的情况下进行按键操作的按键触发方法,本方法通过预设触发阈值并由主控制器与传感器配合检测按键的位移行程以及位移方向,进而判断按键在当前位移方向上的移动距离是否大于触发阈值,根据判断结果实现按键在导通状态和断开状态之间的切换,达到在需要反复按压且快速操作时能够灵敏的识别用户的动作。本方法应用于输入设备触发方法的技术领域。

Description

一种按键触发方法 技术领域
 本发明应用于输入设备触发方法的技术领域,特别涉及一种按键触发方法。
背景技术
 日常生活中常用的键盘类型大多为薄膜键盘和机械键盘,其中按键动作的检测是基于按键下压的过程中开关内部的导电部件的通断,由主控芯片采集通断信号来判断按键的动作,其通断的位置由机械结构决定,用户无法自行调节按键的触发行程。
 自从磁轴键盘的应用日渐流行,通过霍尔元件检测其与开关轴上磁铁的距离,反映按键的按压位移,实现判定按键下压及放开的动作,并通过软件设定、调节按键触发的位置。
 如公开号为CN111625106A的中国专利,其公开了一种可检测按键位移距离的传感器(如磁传感器、压力传感器等)实现的可以调节触发行程的技术方案,在该方案中公开了可自定义键盘开关触发位置的方法及装置,该装置包括主控IC和按键信号处理模块,通过主控IC和按键信号处理模块配合进行按键的触发行程位置的设定,来满足不同用户的对不同按键的触发行程需求。但该方案的触发行程,须要通过主控IC预先设定好,且每次按压按键都必须要通过该预先设定的触发点,方可产生按键功能。
 但是在部分应用场景中,如对于手速较快的使用者在字符输入时遇到相同字符会快速的进行按键按压。但由于每次输入都要到达指定的触发点才能触发,因此相同字符快速按压时往往会有未抬升足够高度而出现漏输入的情况。
 具体的应用场景有:1、游戏操作时需要通过特定的按键进行轻微移动、技能释放或普通攻击等,为了保证操作精度或进行快速技能释放通常是采用对相同的按键重复进行快速按压实现指令的输入;2、制图软件AutoCAD、图像处理软件 Adobe Photoshop等软件中,为了精细化操作往往会采用键盘操作进行图形位置的移动,此时图形则会按照放大比例下对应的移动像素来位移,由于要保证调整效果一般移动时会预留一定的操作空间并非只有一两个像素距离的调整空间,为了提高效率则需要快速的操作方向按键。
 上述的按键操作并非是指通过长按获得的长时间导通信号对应的指令触发,而是指重复点击获得的若干次单击操作。故而为了避免漏输入指令的情况,就需要输入设备能够灵敏的识别这种快速重复点击的操作。而现有的预设触发点的方式只能是适配用户的按压手感,并无法适配这种操作意图。
 具体而言,用户按压的意图是无论开关所处的初始位置在哪里,都是期望通过把按键下压一小段行程,即可产生按键导通信号;或是无论按键已被下压后所处的位置,把按键往上抬高一小段行程,即期望按键产生断开信号。上述通断的过程,用户其实并不关心按键是否通过某一个触发点。用户是通过把开关压下去的运动表达为开关导通的预期,或把开关往上抬起表达切断开关的预期,尤其是对于需要反复按压的开关通断输入动作,由于速度快,用户无法保证每次按压都能压到某一高度位置,或每次抬起都能到达该高度位置,也就是无法通过所谓的触发点,因此造成的漏触发就会影响用户的操作精度,影响操作体验。
发明内容
 本发明所要解决的技术问题是克服现有技术的不足,提供了一种触发灵敏且便于在快速且反复按压的情况下进行按键操作的按键触发方法。
 本发明所采用的技术方案是:本发明包括主控制器和用于检测按键位移变量s的传感器,所述主控制器接收所述传感器反馈的电信号,本发明还包括以下触发步骤:
步骤S1所述主控制器通过所述传感器检测到所述按键保持自然状态时,所述按键为断开状态,初始化行程保持变量p为0;
步骤S2.所述主控制器确认所述按键的开关状态以及所述位移变量s的数值总变化趋势为增大还是减小;
步骤S3.当所述位移变量s的数值变化趋势与所述总变化趋势相同且行程保持变量p未锁定时,所述主控制器保持所述行程保持变量p与所述位移变量s同步;
步骤S4.当所述位移变量s的数值变化趋势发生改变时,所述行程保持变量p的数值锁定为变化前所述位移变量s的数值;
步骤S5.所述按键的相对移动绝对值|s-p|满足|s-p|>d时,按键的开关状态以及所述总变化趋势切换与当前相反,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步;
步骤S6.执行步骤S2至S5的循环,直至按键恢复至自然状态,返回步骤S1。
 由上述方案可见,利用可检测按键位移变量的传感器实现获取按键被按压时的位移量。通过将位移量的变化作为按键的触发机制,并由位移量与设定的触发阈值作对比实现按键触发的判断。同时该触发机制不仅适用于按压过程同样适用于抬升过程,达到即使用户在进行重复按键操作时每次按压的起伏高度不固定的情况下,仍能够灵敏的检测满足相对位移满足触发阈值的动作并完成触发通断切换,提高用户的操作效率。所述主控制器通过获取所述传感器识别并反馈的电信号,实现获得按键的位移变量s,并根据位移变量s的大小变化判断当前按键的运动方向,当方向改变即位移变量s自增大变为减小或自减小变为增大时,将行程保持变量p锁定为变化点的位移变量s,实现建立新触发状态切换的判断基准。进一步通过接下来的位移变量s即按键的位置来判断与已经锁定的行程保持变量p的位置之间的距离是否大于触发阈值d,大于时则执行按键状态切换,实现按键的导通和断开,完成键盘编码信号传递至计算机中进行字符输入。通过上述方案实现在按压过程中改变判断基准,并能够检测用户的改变按键触发状态的意图,提高检测灵敏度。另外,通过上述方式进行操作无需改变用户正常按键操作的使用逻辑,并能够同时满足特殊情况下用户操作的响应灵敏性,进而降低用户的学习成本,为用户带来更好的使用体验。
 一个优选方案是,步骤S5还包括如下具体步骤:当所述位移变量s的数值变化趋势恢复与当前总变化趋势相同,且所述位移变量s等于所述行程保持变量p时,所述行程保持变量p解锁并恢复与所述位移变量s同步,并返回步骤S3。
 一个优选方案是,所述按键的最大行程为L,所述触发阈值d的设定值范围为0<d≤L。
 一个优选方案是,在步骤S1之前还包括步骤S01:步骤用户通过所述主控制器设定按键位移的触发阈值d的值。
 一个优选方案是,步骤S1之前还包括步骤S02:用户通过所述主控制器设定所述按键的复位值RST;在步骤S2至步骤S6中,当所述位移变量s小于所述复位值RST时,所述按键的状态强制切换为断开状态,所述行程保持变量p初始化为0。
 一个优选方案是,所述触发阈值d包括下压相对触发阈值d1和抬升相对触发阈值d2,在步骤S1至步骤S6中当所述位移变量s增大时所述触发阈值d等于所述下压相对触发阈值d1,所述位移变量s减小时所述触发阈值d等于所述抬升相对触发阈值d2。
 一个优选方案是,所述传感器为磁传感器,所述按键上设置有与所述传感器配合的磁性元件。
 一个优选方案是,所述传感器为光电传感器,所述按键上设置有与所述传感器配合的遮光元件。
附图说明
 图1是本发明的工作流程图;
图2是本发明实施例一中按压操作时的状态变化示例图;
图3是本发明实施例二中按压操作时的状态变化示例图。
实施方式
如图1所示,本发明包括主控制器和用于检测按键位移变量s的传感器,所述传感器通过识别所述按键位移所带来的物理量的变化并转换为一变化的电信号,所述主控制器通过接收所述传感器反馈电信号的变化转换为按键的位移变量s,所述主控制器为用于控制键盘设备所使用的微控制芯片;
本发明包括以下具体的按键触发步骤:
1)设定环节:
步骤S01和步骤S02.用户通过计算机或移动终端等操作设备上的操作界面对所述主控制器进行通信并进行各项参数的设定;所述主控制器接收操作设备的设置指令,进行按键位移的触发阈值d和复位值RST的数值设定,所述按键的最大行程为L,所述触发阈值d的设定值范围为0<d≤L;其中按键的最大行程L为按键结构上的物理参数,其数值由按键结构的规格而定;所述复位值RST的设定值需大于零,且所述复位值RST通常应小于或等于当前设置的所述触发阈值d;由于日常使用中键盘按键等设备实际上会受周围物体或用户操作的影响产生轻微振动,通过设置所述复位值RST进行强制复位避免按键在使用过程中误触发,提高用户的使用体验;另外,通过上述的参数调节,实现对键盘按键设备手感的自定义调整,进而适用于不同手型的用户。
 2)执行环节:
步骤S1.所述主控制器通过所述传感器检测到所述按键保持自然状态时,所述按键为断开状态,初始化行程保持变量p为0;
步骤S1-1.所述主控制器获取到所述位移变量s增大,且满足所述位移变量s大于预设的触发阈值d时,所述按键切换至导通状态,所述主控制器将所述位移变量s的数值同步为行程保持变量p;
步骤S2.所述主控制器确认所述按键的开关状态以及所述位移变量s的数值总变化趋势为增大还是减小;所述总变化趋势根据按键当前的开关状态判定,当所述按键处于断开状态时所述总变化趋势为减小,当所述按键处于导通状态时所述总变化趋势为增大;
步骤S3.当所述位移变量s的数值变化趋势与所述总变化趋势相同且行程保持变量p未锁定时,所述主控制器保持所述行程保持变量p与所述位移变量s同步;
步骤S4.当所述位移变量s的数值变化趋势发生改变时,所述行程保持变量p的数值锁定为变化前所述位移变量s的数值;
步骤S5.所述按键的相对移动绝对值|s-p|满足|s-p|>d时,按键的开关状态以及所述总变化趋势切换与当前相反,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步,并返回步骤S3;当所述位移变量s的数值变化趋势恢复与当前总变化趋势相同,且所述位移变量s等于所述行程保持变量p时,所述行程保持变量p解锁并恢复与所述位移变量s同步,并返回步骤S3;所述相对移动绝对值|s-p|包括导通状态下的抬升相对移动值p-s以及断开状态下的按压相对移动值s-p;
步骤S6.执行步骤S2至S5的循环,直至按键恢复至自然状态或所述位移变量s小于所述复位值RST时,返回步骤S1。
 在所述执行环节中,当所述按键处于自然状态或所述位移变量s小于所述复位值RST时,所述行程保持变量p初始化为0。
 其中,所述步骤1-1为从自然状态至初次触发时具体流程。
 在本实施例中,所述传感器为霍尔传感器,所述按键上设置有与所述传感器配合的磁铁,所述传感器通过检测所述磁铁产生的磁通量并转换为电信号,所述主控制器根据预设的霍尔传感器参数对照表将接收的电信号转换为按键的位移变量s。
 具体的,当步骤S2中所述按键的开关状态为断开时,步骤S3至步骤S5具体为:
步骤S3和步骤S4.判断所述位移变量s的值是否小于所述行程保持变量p的值,满足时,所述主控制器将所述位移变量s当前值赋值于所述行程保持变量p;不满足时,所述行程保持变量p不变;
步骤S5.所述按键的按压相对移动值s-p是否满足s-p>d,满足时,按键的开关状态切换至导通,所述总变化趋势切换增大,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步,并返回步骤S2;不满足时,则返回步骤S3和步骤S4。
 具体的,当步骤S2中所述按键的开关状态为导通时,步骤S3至步骤S5具体为:
步骤S3和步骤S4.判断所述位移变量s的值是否大于所述行程保持变量p的值,满足时,所述主控制器将所述位移变量s当前值赋值于所述行程保持变量p;不满足时,所述行程保持变量p不变;
步骤S5.所述按键的抬升相对移动值p-s是否满足p-s>d,满足时,按键的开关状态切换至断开,所述总变化趋势切换减小,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步,并返回步骤S2;不满足时,则返回步骤S3和步骤S4。
 如图2所示,设按键的最大行程L为4mm,本发明的工作示例如下:
在t 0时刻,所述按键为断开状态,此时行程保持变量p初始化为p=p 0=0mm并保持不变,随后按键从自然状态被按压向下,位移变量s数值增大;
在t 1时刻,按键的位移变量s与所述行程保持变量p 0的差值大于触发阈值d,即满足按压相对移动值s-p>d,按键从断开状态切换为导通状态,并恢复将所述位移变量s赋值给所述行程保持变量p;
在t 2时刻,所述位移变量s的数值从增大变为减小,即按键从按压向下转变为抬升,所述主控制器停止将位移变量s赋值给所述行程保持变量p,此时p=p 1并保持不变;在t 3时刻所述相对移动绝对值|s-p 1|大于触发阈值d,此时按键从导通状态切换为断开状态,并恢复将所述位移变量s赋值给所述行程保持变量p;
在t 4时刻按键再次被按压向下,此时p=p 2并保持不变;在t 5时刻相对移动绝对值|s-p 2|大于触发阈值d,此时按键从断开状态切换为导通状态,并恢复将所述位移变量s赋值给所述行程保持变量p;
在t 6时刻按键抬升,此时p=p 3并保持不变;在t 7时刻相对移动绝对值|s-p 3|大于触发阈值d,此时按键从导通状态切换为断开状态,并恢复将所述位移变量s赋值给所述行程保持变量p;
在t 8时刻按键被按压向下并于t 9时刻按键继续抬升,t 8时刻p=p 4并保持不变,t 8时刻至t 9.1时刻之间的相对移动绝对值|s-p 4|未大于触发阈值d,按键保持为断开状态;在t 9.1时刻之后位移变量s小于p 4,所述主控制器恢复将所述位移变量s赋值给所述行程保持变量p;
在t 10时刻按键再次被按压,此时p=p 5并保持不变,在t 11时刻相对移动绝对值|s-p 5|大于触发阈值d,按键从断开状态切换为导通状态,并恢复将所述位移变量s赋值给所述行程保持变量p;
在t 12时刻按键被松开直至t 15时刻恢复自然状态,其中t 12时刻p=p 6并保持不变;在t 13时刻相对移动绝对值|s-p 6|大于触发阈值d,按键从导通状态切换为断开状态,并恢复将所述位移变量s赋值给所述行程保持变量p;在t 14时刻位移变量s小于复位值RST按键进入强制断开状态,并初始化行程保持变量p为0mm,所述主控制器停止将所述位移变量s赋值给行程保持变量p。
 如上述内容可知,用户在进行按键操作时无需将按键抬升至自然状态再进行按压来达到触发,能够在按压状态下通过短行程的反复按压抬升操作便能够执行按键字符信号的输入,能够提高用户在快速重复操作按键时,灵敏的响应用户的操作,同时兼容于常规的按键操作流程,将用户的学习成本降低为零。
如图3所示,在本实施例中,本实施例与实施例一的不同之处在于:
所述触发阈值d包括下压相对触发阈值d1和抬升相对触发阈值d2,在步骤S1至步骤S6中当所述位移变量s增大时所述触发阈值d等于所述下压相对触发阈值d1,所述位移变量s减小时所述触发阈值d等于所述抬升相对触发阈值d2。
 通过将所述触发阈值d细分为下压相对触发阈值d1和抬升相对触发阈值d2,进而便于用户根据自己的使用习惯修改按键的触发灵敏度,使用户能够自由定义触发手感,提高使用体验。
本实施例与实施例一的不同之处在于:
所述传感器为光电传感器,所述按键上设置有与所述传感器配合的遮光元件。
 在本实施例中,所述遮光元件上设置有透光孔,所述透光孔的通光面积沿所述按键的轴线方向逐渐增大或逐渐减小,所述光电传感器通过检测通光量反馈电信号至所述主控制器,所述主控制器根据预设的光电传感器参数信息将接收的电信号转换为按键的位移变量s。
本实施例与实施例一的不同之处在于:
所述传感器为压力传感器,所述按键或轴座上设置有与所述传感器配合的按压件,所述传感器根据所述按压件施加的压力生成对应的电信号,由所述主控制器根据预设的压力传感器参数信息将接收的电信号转换为按键的位移变量s。
 虽然本发明的实施例是以实际方案来描述的,但是并不构成对本发明含义的限制,对于本领域的技术人员,根据本说明书对其实施方案的修改及与其他方案的组合都是显而易见的。

Claims (10)

  1.  一种按键触发方法,它包括主控制器和用于检测按键位移变量s的传感器,所述主控制器接收所述传感器反馈的电信号,其特征在于,它还包括以下触发步骤:
    步骤S1.所述主控制器通过所述传感器检测到所述按键保持自然状态时,所述按键为断开状态,初始化行程保持变量p为0;
    步骤S2.所述主控制器确认所述按键的开关状态以及所述位移变量s的数值总变化趋势为增大还是减小;
    步骤S3.当所述位移变量s的数值变化趋势与所述总变化趋势相同且行程保持变量p未锁定时,所述主控制器保持所述行程保持变量p与所述位移变量s同步;
    步骤S4.当所述位移变量s的数值变化趋势发生改变时,所述行程保持变量p的数值锁定为变化前所述位移变量s的数值;
    步骤S5.所述按键的相对移动绝对值|s-p|满足|s-p|>d时,按键的开关状态以及所述总变化趋势切换与当前相反,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步,并返回步骤S2;
    步骤S6.执行步骤S2至S5的循环,直至按键恢复至自然状态,返回步骤S1。
  2.  根据权利要求1所述的一种按键触发方法,其特征在于,步骤S5还包括如下具体步骤:当所述位移变量s的数值变化趋势恢复与当前总变化趋势相同,且所述位移变量s等于所述行程保持变量p时,所述行程保持变量p解锁并恢复与所述位移变量s同步,并返回步骤S3。
  3.  根据权利要求1所述的一种按键触发方法,其特征在于,步骤S2中所述按键的开关状态为断开时,步骤S3至步骤S5具体为:
    步骤S3和步骤S4.判断所述位移变量s的值是否小于所述行程保持变量p的值,满足时,所述主控制器将所述位移变量s当前值赋值于所述行程保持变量p;不满足时,所述行程保持变量p不变;
    步骤S5.所述按键的按压相对移动值s-p是否满足s-p>d,满足时,按键的开关状态切换至导通,所述总变化趋势切换增大,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步,并返回步骤S2;不满足时,则返回上一步。
  4.  根据权利要求1所述的一种按键触发方法,其特征在于,步骤S2中所述按键的开关状态为导通时,步骤S3至步骤S5具体为:
    步骤S3和步骤S4.判断所述位移变量s的值是否大于所述行程保持变量p的值,满足时,所述主控制器将所述位移变量s当前值赋值于所述行程保持变量p;不满足时,所述行程保持变量p不变;
    步骤S5.所述按键的抬升相对移动值p-s是否满足p-s>d,满足时,按键的开关状态切换至断开,所述总变化趋势切换减小,同时所述行程保持变量p的数值解锁并恢复与位移变量s的数值同步,并返回步骤S2;不满足时,则返回上一步。
  5.  根据权利要求1所述的一种按键触发方法,其特征在于,所述按键的最大行程为L,所述触发阈值d的设定值范围为0<d≤L。
  6.  根据权利要求1所述的一种按键触发方法,其特征在于,在步骤S1之前还包括步骤S01:步骤用户通过所述主控制器设定按键位移的触发阈值d的值。
  7.  根据权利要求1所述的一种按键触发方法,其特征在于,步骤S1之前还包括步骤S02:用户通过所述主控制器设定所述按键的复位值RST;在步骤S2至步骤S5中,当所述位移变量s小于所述复位值RST时,所述按键的状态强制切换为断开状态,所述行程保持变量p初始化为0。
  8.  根据权利要求1所述的一种按键触发方法,其特征在于:所述触发阈值d包括下压相对触发阈值d1和抬升相对触发阈值d2,在步骤S1至步骤S6中当所述位移变量s增大时所述触发阈值d等于所述下压相对触发阈值d1,所述位移变量s减小时所述触发阈值d等于所述抬升相对触发阈值d2。
  9.  根据权利要求1所述的一种按键触发方法,其特征在于:所述传感器为磁传感器,所述按键上设置有与所述传感器配合的磁性元件。
  10.  根据权利要求1所述的一种按键触发方法,其特征在于:所述传感器为光电传感器,所述按键上设置有与所述传感器配合的遮光元件。
PCT/CN2023/082938 2022-10-19 2023-03-22 一种按键触发方法 WO2024082543A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211276738.1 2022-10-19
CN202211276738.1A CN115657864A (zh) 2022-10-19 2022-10-19 一种按键触发方法

Publications (1)

Publication Number Publication Date
WO2024082543A1 true WO2024082543A1 (zh) 2024-04-25

Family

ID=84989425

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/082938 WO2024082543A1 (zh) 2022-10-19 2023-03-22 一种按键触发方法

Country Status (3)

Country Link
US (1) US20240231508A9 (zh)
CN (1) CN115657864A (zh)
WO (1) WO2024082543A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657864A (zh) * 2022-10-19 2023-01-31 珠海市智迪科技股份有限公司 一种按键触发方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120092263A1 (en) * 2009-10-15 2012-04-19 Pacinian Corporation Haptic keyboard featuring a satisfying tactile keypress experience
CN104423629A (zh) * 2013-09-11 2015-03-18 联想(北京)有限公司 一种电子设备及数据处理方法
CN106656146A (zh) * 2017-02-09 2017-05-10 东莞市旭田电子有限公司 一种光轴键盘按键及其触发行程设置方法和光轴键盘
CN109660241A (zh) * 2018-11-06 2019-04-19 深圳和而泰智能控制股份有限公司 一种调整触摸按键灵敏度的方法以及装置
CN109819087A (zh) * 2019-03-06 2019-05-28 南昌黑鲨科技有限公司 一种具有智能终端及壳体的终端组件
CN111625106A (zh) * 2019-02-27 2020-09-04 惠州佳达隆电子科技有限公司 一种可自定义键盘开关触发位置的方法及装置
CN115657864A (zh) * 2022-10-19 2023-01-31 珠海市智迪科技股份有限公司 一种按键触发方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446646B (zh) * 2015-12-11 2019-01-11 小米科技有限责任公司 基于虚拟键盘的内容输入方法、装置及触控设备
US11469060B1 (en) * 2021-04-30 2022-10-11 Logitech Europe S.A. Light guide for a keyboard

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120092263A1 (en) * 2009-10-15 2012-04-19 Pacinian Corporation Haptic keyboard featuring a satisfying tactile keypress experience
CN104423629A (zh) * 2013-09-11 2015-03-18 联想(北京)有限公司 一种电子设备及数据处理方法
CN106656146A (zh) * 2017-02-09 2017-05-10 东莞市旭田电子有限公司 一种光轴键盘按键及其触发行程设置方法和光轴键盘
CN109660241A (zh) * 2018-11-06 2019-04-19 深圳和而泰智能控制股份有限公司 一种调整触摸按键灵敏度的方法以及装置
CN111625106A (zh) * 2019-02-27 2020-09-04 惠州佳达隆电子科技有限公司 一种可自定义键盘开关触发位置的方法及装置
CN109819087A (zh) * 2019-03-06 2019-05-28 南昌黑鲨科技有限公司 一种具有智能终端及壳体的终端组件
CN115657864A (zh) * 2022-10-19 2023-01-31 珠海市智迪科技股份有限公司 一种按键触发方法

Also Published As

Publication number Publication date
US20240134466A1 (en) 2024-04-25
US20240231508A9 (en) 2024-07-11
CN115657864A (zh) 2023-01-31

Similar Documents

Publication Publication Date Title
US10353580B2 (en) Information processing apparatus, program, and operation control method
US6758615B2 (en) Pressure sensitive functionality for keyboard keys
WO2024082543A1 (zh) 一种按键触发方法
CN114461079B (zh) 输入装置及操作输入装置的方法
US5850212A (en) System for changing modes and cursor appearance by a single button
US20070247431A1 (en) Keypad and sensor combination to provide detection region that overlays keys
US20070296707A1 (en) Keypad touch user interface method and mobile terminal using the same
JP2004234662A (ja) スタイラスを有するディジタイザーを用いてコンピュータ・アプリケーションで機能をトリガーする方法及びディジタイザー・システム
KR20070091530A (ko) 터치 센시티브 키패드를 갖는 이동 핸드셋 및 사용자인터페이스방법
CN105022561A (zh) 触摸屏控制装置、方法和移动终端
CN102789355A (zh) 具触控屏幕的电脑系统及其视窗大小调整方法
CN114461080B (zh) 输入装置及操作输入装置的方法
WO2011140752A1 (zh) 电子装置及获取用户操作的方法
TWI401585B (zh) 具指標器之電子裝置及指標器操作方法
EP3432126A1 (en) Key reference updating method and module, and terminal device
US20010030641A1 (en) Input control system with the ability of setting arbitrary switch functions of the switch input section
CN103456150A (zh) 遥控系统及其遥控方法
US10474409B2 (en) Response control method and electronic device
JPH09204274A (ja) 座標入力装置
CN111221430B (zh) 单指手写与双指触控融合的方法、存储介质
TWI530825B (zh) 具有巨集錄製功能之輸入裝置、具有巨集錄製功能之輸入系統及巨集錄製方法
CN213780803U (zh) 一种设有触摸显示屏的智能穿戴设备
CN107305442B (zh) 输入设备及其控制方法
CN111913638A (zh) 一种键盘鼠标结合应用方法及装置
JPH10228348A (ja) コンピュータ用マウス

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23878545

Country of ref document: EP

Kind code of ref document: A1