Movatterモバイル変換


[0]ホーム

URL:


CN107329862A - Detection method, device and the terminal of keyboard - Google Patents

Detection method, device and the terminal of keyboard
Download PDF

Info

Publication number
CN107329862A
CN107329862ACN201710465826.9ACN201710465826ACN107329862ACN 107329862 ACN107329862 ACN 107329862ACN 201710465826 ACN201710465826 ACN 201710465826ACN 107329862 ACN107329862 ACN 107329862A
Authority
CN
China
Prior art keywords
keyboard
key
presses
threshold
user
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
CN201710465826.9A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201710465826.9ApriorityCriticalpatent/CN107329862A/en
Publication of CN107329862ApublicationCriticalpatent/CN107329862A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种键盘的检测方法、装置及终端,其中,该方法包括:获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。

The present disclosure relates to a keyboard detection method, device, and terminal, wherein the method includes: obtaining the number of presses of each key on the keyboard connected to the terminal; judging whether there is a key whose number of presses exceeds the number threshold; If the number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

Description

Translated fromChinese
键盘的检测方法、装置及终端Keyboard detection method, device and terminal

技术领域technical field

本公开涉及终端技术领域,尤其涉及键盘的检测方法、装置及终端。The present disclosure relates to the technical field of terminals, and in particular to a keyboard detection method, device and terminal.

背景技术Background technique

随着终端技术的发展,终端,尤其是个人电脑已经普遍的应用到人们的生活和工作中。相关技术中,终端一般会设置有键盘,将键盘与终端连接。用户可以通过敲击键盘上的按键,向终端中输入信息。With the development of terminal technologies, terminals, especially personal computers, have been widely used in people's life and work. In related technologies, a terminal is generally provided with a keyboard, and the keyboard is connected to the terminal. Users can input information into the terminal by pressing keys on the keyboard.

然而现在,用户会频繁的使用键盘。进而随着键盘的使用,键盘上的按键被使用的次数非常多,进而会出现按键由于使用过于频繁而导致按键失效的问题。例如,用于长时间的玩游戏、或重复点击固定的几个按键,会导致键盘中某些按键失效损坏。目前,只能在用户使用键盘时,发现键盘上的按键出现了问题,发现按键不能使用的时候,用户去更换键盘上的按键,进而给用户的使用带来不便,用户体验较差。Now, however, users will frequently use the keyboard. Then along with the use of the keyboard, the keys on the keyboard are used very many times, and then there will be a problem that the keys become invalid due to being used too frequently. For example, playing games for a long time, or clicking several fixed keys repeatedly, will cause some keys in the keyboard to become invalid and damaged. At present, only when the user uses the keyboard, he finds that there is a problem with the keys on the keyboard, and when he finds that the keys cannot be used, the user replaces the keys on the keyboard, which brings inconvenience to the user and poor user experience.

发明内容Contents of the invention

为克服相关技术中存在的只有在用户发现按键不能使用的时候,用户才会去更换键盘上的按键,用户体验较差的问题,本公开提供一种键盘的检测方法、装置及终端。In order to overcome the problem in the related art that the user will replace the keys on the keyboard only when the user finds that the keys are unusable, and the user experience is poor, the present disclosure provides a keyboard detection method, device and terminal.

根据本公开实施例的第一方面,提供一种键盘的检测方法,包括:According to a first aspect of an embodiment of the present disclosure, a method for detecting a keyboard is provided, including:

获取与终端连接的键盘上的各按键的按压次数;Obtain the number of presses of each key on the keyboard connected to the terminal;

判断是否具有按压次数超出次数阈值的按键;Determine whether there is a button whose number of presses exceeds the number of times threshold;

若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。If it is determined that there are keys whose number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold.

进一步地,在所述判断是否具有按压次数超出次数阈值的按键之前,还包括:Further, before the judging whether there is a button whose number of presses exceeds the number of times threshold, it also includes:

获取当前键盘的使用寿命信息,其中,所述使用寿命信息为键盘的使用年限;Obtain the service life information of the current keyboard, wherein the service life information is the service life of the keyboard;

根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与所述使用寿命信息对应的次数阈值。According to the preset corresponding relationship between the service life information and the threshold number of key presses, the number of times threshold corresponding to the service life information is determined.

进一步地,在所述获取与终端连接的键盘上的各按键的按压次数之后,还包括:Further, after the acquisition of the number of presses of each key on the keyboard connected to the terminal, it also includes:

接收用户发送的查看指令,所述查看指令指示所述终端确定所述键盘上的各按键的被按压情况;receiving a viewing instruction sent by the user, the viewing instruction instructing the terminal to determine the pressed status of each key on the keyboard;

根据所述各按键的按压次数,生成热力图,其中,所述热力图中具有不同按压次数与不同亮度的对应关系;Generate a heat map according to the number of presses of each button, wherein the heat map has a corresponding relationship between different number of presses and different brightness;

显示所述热力图,以使所述用户查看所述热力图。displaying the heat map to enable the user to view the heat map.

进一步地,在所述获取与终端连接的键盘上的各按键的按压次数之后,还包括:Further, after the acquisition of the number of presses of each key on the keyboard connected to the terminal, it also includes:

确定按压次数超出次数阈值的按键的按键个数;Determining the number of keys for which the number of presses exceeds the number of times threshold;

判断所述按键个数是否大于预设个数阈值;judging whether the number of keys is greater than a preset number threshold;

若确定大于,则生成并显示第二提示信息,以提示用户更换所述键盘。If it is determined that the value is greater than, then generate and display second prompt information to prompt the user to replace the keyboard.

进一步地,所述方法,还包括:Further, the method also includes:

针对所述键盘上的每一个按键,在通过所述键盘上的传感器检测到按键被按下时,获取所述键盘的编码电路上的与该按键对应的编码信息;For each key on the keyboard, when the sensor on the keyboard detects that the key is pressed, acquire the coding information corresponding to the key on the coding circuit of the keyboard;

针对所述键盘上的每一个按键,判断所述该按键对应的编码信息,是否与该按键的预设按键信息一致;For each key on the keyboard, determine whether the coded information corresponding to the key is consistent with the preset key information of the key;

针对所述键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示所述用户更换该按键。For each key on the keyboard, if it is determined that they are inconsistent, third prompt information is generated to prompt the user to replace the key.

本公开的实施例提供的技术方案可以包括以下有益效果:通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by acquiring the number of presses of each key on the keyboard connected to the terminal; judging whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold key, generate and display first prompt information to prompt the user to replace the key whose pressing times exceed the number of times threshold. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

根据本公开实施例的第二方面,提供一种键盘的检测装置,包括:According to a second aspect of an embodiment of the present disclosure, a keyboard detection device is provided, including:

第一获取模块,被配置为获取与终端连接的键盘上的各按键的按压次数;The first obtaining module is configured to obtain the number of presses of each key on the keyboard connected to the terminal;

第一判断模块,被配置为判断是否具有按压次数超出次数阈值的按键;The first judging module is configured to judge whether there is a button whose number of times of pressing exceeds a threshold value;

第一提示模块,被配置为若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。The first prompting module is configured to generate and display first prompting information if it is determined that there is a key whose number of presses exceeds the threshold, so as to prompt the user to replace the key whose number of presses exceeds the threshold.

进一步地,所述装置,还包括:Further, the device also includes:

确定模块,被配置为在所述第一判断模块判断是否具有按压次数超出次数阈值的按键之前,获取当前键盘的使用寿命信息,其中,所述使用寿命信息为键盘的使用年限;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与所述使用寿命信息对应的次数阈值。The determining module is configured to acquire the service life information of the current keyboard before the first judging module judges whether there is a key whose number of times of pressing exceeds the threshold value, wherein the service life information is the service life of the keyboard; according to the preset The corresponding relationship between the service life information and the threshold number of key presses is to determine the number of times threshold corresponding to the service life information.

进一步地,所述装置,还包括:Further, the device also includes:

接收模块,被配置为在所述第一获取模块获取与终端连接的键盘上的各按键的按压次数之后,接收用户发送的查看指令,所述查看指令指示所述终端确定所述键盘上的各按键的被按压情况;The receiving module is configured to receive a viewing instruction sent by the user after the first obtaining module obtains the number of presses of each button on the keyboard connected to the terminal, and the viewing instruction instructs the terminal to determine the number of times each button on the keyboard is pressed. The button is pressed;

显示模块,被配置为根据所述各按键的按压次数,生成热力图,其中,所述热力图中具有不同按压次数与不同亮度的对应关系;显示所述热力图,以使所述用户查看所述热力图。The display module is configured to generate a heat map according to the number of presses of each button, wherein the heat map has a corresponding relationship between different press times and different brightnesses; display the heat map so that the user can view all Described heat map.

进一步地,所述装置,还包括:Further, the device also includes:

第二提示模块,被配置为在所述第一获取模块获取与终端连接的键盘上的各按键的按压次数之后,确定按压次数超出次数阈值的按键的按键个数;判断所述按键个数是否大于预设个数阈值;若确定大于,则生成并显示第二提示信息,以提示用户更换所述键盘。The second prompting module is configured to, after the first acquisition module obtains the number of presses of each key on the keyboard connected to the terminal, determine the number of keys whose number of presses exceeds the threshold value of the number of times; determine whether the number of keys is greater than the preset number threshold; if determined to be greater than, then generate and display second prompt information to prompt the user to replace the keyboard.

进一步地,所述装置,还包括:Further, the device also includes:

第二获取模块,被配置为针对所述键盘上的每一个按键,在通过所述键盘上的传感器检测到按键被按下时,获取所述键盘的编码电路上的与该按键对应的编码信息;The second acquiring module is configured to, for each key on the keyboard, when the sensor on the keyboard detects that the key is pressed, acquire the encoding information corresponding to the key on the encoding circuit of the keyboard ;

第二判断模块,被配置为针对所述键盘上的每一个按键,判断所述该按键对应的编码信息,是否与该按键的预设按键信息一致;The second judging module is configured to, for each button on the keyboard, judge whether the coded information corresponding to the button is consistent with the preset button information of the button;

第三提示模块,被配置为针对所述键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示所述用户更换该按键。The third prompting module is configured to, for each key on the keyboard, if it is determined that they are inconsistent, generate third prompting information to prompt the user to replace the key.

本公开的实施例提供的技术方案可以包括以下有益效果:通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by acquiring the number of presses of each key on the keyboard connected to the terminal; judging whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold key, generate and display first prompt information to prompt the user to replace the key whose pressing times exceed the number of times threshold. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

根据本公开实施例的第三方面,提供一种终端,包括:According to a third aspect of the embodiments of the present disclosure, a terminal is provided, including:

处理器,以及用于存储处理器可执行指令的存储器;a processor, and memory for storing instructions executable by the processor;

其中,所述处理器被配置为:获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。Wherein, the processor is configured to: obtain the number of presses of each key on the keyboard connected to the terminal; determine whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold, generate and display The first prompt message is used to prompt the user to replace the key whose pressing times exceed the threshold value.

本公开的实施例提供的技术方案可以包括以下有益效果:通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by acquiring the number of presses of each key on the keyboard connected to the terminal; judging whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold key, generate and display first prompt information to prompt the user to replace the key whose pressing times exceed the number of times threshold. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行一种键盘的检测方法,所述方法包括:According to the fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the terminal, the terminal can execute a method for detecting a keyboard. The methods described include:

获取与终端连接的键盘上的各按键的按压次数;Obtain the number of presses of each key on the keyboard connected to the terminal;

判断是否具有按压次数超出次数阈值的按键;Determine whether there is a button whose number of presses exceeds the number of times threshold;

若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。If it is determined that there are keys whose number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold.

本公开的实施例提供的技术方案可以包括以下有益效果:通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by acquiring the number of presses of each key on the keyboard connected to the terminal; judging whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold key, generate and display first prompt information to prompt the user to replace the key whose pressing times exceed the number of times threshold. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

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

图1是根据一示例性实施例示出的一种键盘的检测方法实施例一的流程图;Fig. 1 is a flow chart of Embodiment 1 of a method for detecting a keyboard according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种键盘的检测方法实施例二的流程图;Fig. 2 is a flow chart of Embodiment 2 of a method for detecting a keyboard according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种键盘的检测方法实施例三的流程图;Fig. 3 is a flow chart of Embodiment 3 of a method for detecting a keyboard according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种键盘的检测装置实施例四的框图;Fig. 4 is a block diagram of Embodiment 4 of a keyboard detection device shown according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种键盘的检测装置实施例五的框图;Fig. 5 is a block diagram of Embodiment 5 of a keyboard detection device shown according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种键盘的检测装置实施例六的框图;Fig. 6 is a block diagram of Embodiment 6 of a keyboard detection device shown according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种终端的实体的框图;Fig. 7 is a block diagram showing entities of a terminal according to an exemplary embodiment;

图8是根据一示例性实施例示出的一种终端设备800的框图。Fig. 8 is a block diagram showing a terminal device 800 according to an exemplary embodiment.

具体实施方式detailed description

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

图1是根据一示例性实施例示出的一种键盘的检测方法实施例一的流程图,如图1所示,键盘的检测方法用于终端中,该终端包括移动终端、个人终端等等,例如触屏手机、平板电脑、个人电脑等,该方法包括以下步骤。Fig. 1 is a flow chart of Embodiment 1 of a method for detecting a keyboard according to an exemplary embodiment. As shown in Fig. 1 , the method for detecting a keyboard is used in a terminal, and the terminal includes a mobile terminal, a personal terminal, etc. Such as touch-screen mobile phones, tablet computers, personal computers, etc., the method includes the following steps.

在步骤S11中,获取与终端连接的键盘上的各按键的按压次数。In step S11, the number of times each key is pressed on the keyboard connected to the terminal is acquired.

在本步骤中,在用户使用与终端连接的键盘的时候,用户可以通过敲击键盘上的按键,向终端中输入信息。在用户敲击键盘上的按键的时候,终端统计键盘的各按键的按压次数。In this step, when the user uses the keyboard connected to the terminal, the user can input information into the terminal by tapping the keys on the keyboard. When the user taps a key on the keyboard, the terminal counts the number of times each key is pressed on the keyboard.

举例来说,终端可以统计出按键A自键盘被使用之后的按压次数为400次,终端可以统计出按键Enter自键盘被使用之后的按压次数为600次。For example, the terminal may count the number of presses of the key A since the keyboard is used as 400 times, and the terminal may count the number of presses of the key Enter since the keyboard is used as 600 times.

在步骤S12中,判断是否具有按压次数超出次数阈值的按键。In step S12, it is judged whether there is a key whose number of times of pressing exceeds a threshold value.

在本步骤中,终端针对每一个按键,确定按键的按压次数是否超出了预设的次数阈值。进而终端去判断是否具有按压次数超出次数阈值的按键。In this step, for each button, the terminal determines whether the number of times the button is pressed exceeds a preset number of times threshold. Furthermore, the terminal judges whether there is a button whose number of presses exceeds the number of times threshold.

在步骤S13中,若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。In step S13 , if it is determined that there are keys whose pressing times exceed the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose pressing times exceed the threshold.

在本步骤中,终端在确定具有按压次数超出次数阈值的按键的时候,终端可以生成一个第一提示信息,其中,第一提示信息可以是语音信息、文字信息、图形信息等等,该第一提示信息表征了去提示用户更换按压次数超出次数阈值的按键。然后终端可以显示出该第一提示信息;在第一提示信息为语音信息的时候,终端可以播放语音,去提示用户;在第一提示信息为文字信息的时候,终端可以显示出文字内容,去提示用户;在第一提示信息为图形信息的时候,终端可以显示出图形,去提示用户。In this step, when the terminal determines that the key has been pressed more than the number of times threshold, the terminal can generate a first prompt message, wherein the first prompt message can be voice information, text information, graphic information, etc., the first The prompt information represents to prompt the user to replace the key whose pressing times exceed the threshold value. Then the terminal can display the first prompt information; when the first prompt information is voice information, the terminal can play the voice to remind the user; when the first prompt information is text information, the terminal can display the text content to go Prompting the user; when the first prompt information is graphic information, the terminal may display the graphic to prompt the user.

举例来说,终端可以统计出按键A自键盘被使用之后的按压次数为400次,终端可以统计出按键B自键盘被使用之后的按压次数为550次,终端可以统计出按键Shift自键盘被使用之后的按压次数为700次,终端可以统计出按键Enter自键盘被使用之后的按压次数为600次;终端提供了一个次数阈值为580,终端可以确定按键Shift的按压次数、按键Enter的按压次数都大于该次数阈值;从而,终端可以确定出按压次数超出次数阈值的按键为按键Shift、按键Enter;然后,终端就可以生成一个第一提示信息,第一提示信息为“您需要更换按键Shift、按键Enter”;然后终端显示该第一提示信息,终端可以以语音播放的方式去播放该第一提示信息,终端也可以以文字显示的方式去显示该第一提示信息。For example, the terminal can count the number of presses of key A since the keyboard is used as 400 times, the terminal can count the number of presses of key B since the keyboard is used as 550 times, and the terminal can count the number of presses of key Shift since the keyboard is used The subsequent number of presses is 700, and the terminal can calculate that the number of presses of the key Enter since the keyboard is used is 600 times; the terminal provides a threshold of 580 times, and the terminal can determine the number of presses of the key Shift and the number of presses of the key Enter. greater than the number of times threshold; thus, the terminal can determine that the key pressed more than the number of times threshold is the key Shift and the key Enter; then, the terminal can generate a first prompt message, the first prompt message is "You need to replace the key Shift, key Enter"; then the terminal displays the first prompt information, the terminal can play the first prompt information in the form of voice playback, and the terminal can also display the first prompt information in the form of text display.

本实施例通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。In this embodiment, by acquiring the number of presses of each button on the keyboard connected to the terminal; judging whether there is a button whose number of presses exceeds the threshold; Prompts the user to replace a key that has been pressed more than a threshold number of times. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

图2是根据一示例性实施例示出的一种键盘的检测方法实施例二的流程图,如图2所示,键盘的检测方法用于终端中,该方法包括以下步骤。Fig. 2 is a flow chart of Embodiment 2 of a method for detecting a keyboard according to an exemplary embodiment. As shown in Fig. 2 , the method for detecting a keyboard is used in a terminal, and the method includes the following steps.

在步骤S21中,获取与终端连接的键盘上的各按键的按压次数。In step S21, the number of press times of each key on the keyboard connected to the terminal is acquired.

在本步骤中,本步骤参见图1的步骤S11。In this step, refer to step S11 in FIG. 1 for this step.

在步骤S22中,接收用户发送的查看指令,所述查看指令指示所述终端确定所述键盘上的各按键的被按压情况;根据所述各按键的按压次数,生成热力图,其中,所述热力图中具有不同按压次数与不同亮度的对应关系;显示所述热力图,以使所述用户查看所述热力图。In step S22, a viewing instruction sent by the user is received, and the viewing instruction instructs the terminal to determine the pressing status of each button on the keyboard; according to the number of times each button is pressed, a heat map is generated, wherein the The heat map has the corresponding relationship between different press times and different brightness; the heat map is displayed to enable the user to view the heat map.

在本步骤中,在用户需要查看键盘上的各按键的被按压情况的时候,用户可以向终端中输入一个查看指令。例如,用户可以采用鼠标点击终端提供的软件上的按钮,进而用户向终端中输入查看指令;或者,用户可以向终端中输入语音“查看按键的被按压情况”,进而用户向终端输入了查看指令。In this step, when the user needs to check the pressed status of each key on the keyboard, the user can input a check command into the terminal. For example, the user can use the mouse to click a button on the software provided by the terminal, and then the user enters a viewing instruction into the terminal; or, the user can input a voice "check the pressed status of the button" into the terminal, and then the user enters the viewing instruction into the terminal .

终端接收到用户发送的查看指令之后,终端可以根据步骤S21中的各按键的按压次数,生成一个热力图。其中,在热力图中具有每一个按键的显示信息,显示信息为与按键的按压次数所对应的亮度,进而在热力图中具有不同的按压次数与不同的亮度的对应关系;或者,显示信息为与按键的按压次数所对应的颜色,进而在热力图中具有不同的按压次数与不同的颜色的对应关系。After the terminal receives the viewing instruction sent by the user, the terminal can generate a heat map according to the number of presses of each button in step S21. Wherein, there is display information of each key in the heat map, and the display information is the brightness corresponding to the number of presses of the key, and then there is a corresponding relationship between different press times and different brightnesses in the heat map; or, the display information is The color corresponding to the number of presses of the button has a corresponding relationship between different presses and different colors in the heat map.

然后,终端可以在终端屏幕上显示该热力图。进而,用户可以看到该热力图,从而用户获知每一个按键被按压的情况。Then, the terminal can display the heat map on the terminal screen. Furthermore, the user can see the heat map, so that the user knows the situation of each button being pressed.

举例来说,终端可以统计出按键A自键盘被使用之后的按压次数为400次,终端可以统计出按键B自键盘被使用之后的按压次数为550次,终端可以统计出按键Shift自键盘被使用之后的按压次数为700次,终端可以统计出按键Enter自键盘被使用之后的按压次数为600次。终端可以生成一个热力图,在该热力图中,按键A的亮度为第一级,按键B的亮度为第二级,按键Enter的亮度为第三级,按键Shift的亮度为第四级,第一级、第二级、第三级、第四级的亮度依次升高。或者,终端可以生成一个热力图,在该热力图中,按键A的颜色为蓝色,按键B的颜色为黄色,按键Enter的颜色为橙色,按键Shift的颜色为红色,蓝色、黄色、橙色、红色的级别依次升高。For example, the terminal can count the number of presses of key A since the keyboard is used as 400 times, the terminal can count the number of presses of key B since the keyboard is used as 550 times, and the terminal can count the number of presses of key Shift since the keyboard is used The subsequent number of presses is 700 times, and the terminal can calculate that the number of presses of the key Enter since the keyboard is used is 600 times. The terminal can generate a heat map. In this heat map, the brightness of button A is the first level, the brightness of button B is the second level, the brightness of the Enter key is the third level, and the brightness of the Shift key is the fourth level. The brightness of the first level, second level, third level, and fourth level increases in turn. Alternatively, the terminal can generate a heat map. In the heat map, the color of button A is blue, the color of button B is yellow, the color of button Enter is orange, the color of button Shift is red, blue, yellow, orange , red levels increase in turn.

在步骤S23中,获取当前键盘的使用寿命信息,其中,所述使用寿命信息为键盘的使用年限;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与所述使用寿命信息对应的次数阈值。In step S23, the service life information of the current keyboard is obtained, wherein the service life information is the service life of the keyboard; according to the correspondence between the preset service life information and the threshold value of the number of times of key presses, determine the relationship between the service life information The corresponding number of thresholds.

在本步骤中,在终端获取到键盘上的各按键的按压次数之后,终端可以去获取当前键盘的使用寿命信息,例如,使用寿命信息为键盘的使用年限。由于终端中已经预计有不同的使用寿命信息与不同的次数阈值之间对应关系了,从而终端可以根据该对应关系,确定出与当前的使用寿命信息所对应的次数阈值。In this step, after the terminal acquires the number of press times of each key on the keyboard, the terminal can acquire the current service life information of the keyboard, for example, the service life information is the service life of the keyboard. Since the corresponding relationship between different service life information and different times thresholds has been estimated in the terminal, the terminal can determine the times threshold corresponding to the current service life information according to the corresponding relationship.

举例来说,不同的使用寿命信息与不同的次数阈值之间对应关系中包括了以下内容:使用寿命信息为2年的使用年限时,次数阈值为600次;使用寿命信息为3年的使用年限时,次数阈值为800次;使用寿命信息为5年的使用年限时,次数阈值为1500次。终端可以确定当前键盘的使用寿命信息为的使用年限为3年,进而可以确定当前键盘的次数阈值为800次。For example, the corresponding relationship between different service life information and different times thresholds includes the following content: when the service life information is 2 years of use, the number of times threshold is 600 times; the service life information is 3 years of use For limited time, the number threshold is 800 times; when the service life information is 5 years, the number threshold is 1500 times. The terminal may determine that the service life information of the current keyboard is 3 years, and further determine that the current keyboard times threshold is 800 times.

在步骤S24中,判断是否具有按压次数超出次数阈值的按键。若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。In step S24, it is judged whether there is a key whose number of times of pressing exceeds a threshold value. If it is determined that there are keys whose number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold.

在本步骤中,本步骤参见图1的步骤S12和步骤S13。In this step, refer to step S12 and step S13 in FIG. 1 for this step.

在步骤S25中,确定按压次数超出次数阈值的按键的按键个数;判断所述按键个数是否大于预设个数阈值;若确定大于,则生成并显示第二提示信息,以提示用户更换所述键盘。In step S25, determine the number of keys whose pressing times exceed the threshold value of the number of times; judge whether the number of keys is greater than the preset number threshold; if determined to be greater than, then generate and display a second prompt message to prompt the user to replace the key keyboard.

在本步骤中,终端针对每一个按键,确定按键的按压次数是否超出了预设的次数阈值。进而终端去判断是否具有按压次数超出次数阈值的按键。然后,终端可以确定出按压次数超出次数阈值的按键的按键个数。In this step, for each button, the terminal determines whether the number of times the button is pressed exceeds a preset number of times threshold. Furthermore, the terminal judges whether there is a button whose number of presses exceeds the number of times threshold. Then, the terminal can determine the number of keys that are pressed more than the number of times threshold.

然后,终端需要去判断该按键个数是否大于预设个数阈值。终端在确定该按键个数大于预设个数阈值的时候,终端可以确定当前的键盘的按键大部分已经损坏了,然后终端可以生成一个第二提示信息,该第二提示信息表征了去提示用户更换当前的键盘。其中,第二提示信息可以是语音信息、文字信息、图形信息等等。终端显示出该第二信息。Then, the terminal needs to judge whether the number of the keys is greater than the preset number threshold. When the terminal determines that the number of keys is greater than the preset number threshold, the terminal can determine that most of the keys of the current keyboard have been damaged, and then the terminal can generate a second prompt message, which represents to prompt the user Replace your current keyboard. Wherein, the second prompt information may be voice information, text information, graphic information and so on. The terminal displays the second information.

举例来说,终端可以确定按压次数超出次数阈值的按键的按键个数为80个。当前的键盘一共有104个按键,终端可以设定个数阈值为75。进而终端可以确定按键个数80大于个数阈值75。然后,终端生成一个第二提示信息,第二提示信息为“您需要更换键盘”;然后终端显示该第二提示信息,终端可以以语音播放的方式去播放该第二提示信息,终端也可以以文字显示的方式去显示该第二提示信息。For example, the terminal may determine that the number of keys pressed more than the number of times threshold is 80. The current keyboard has a total of 104 keys, and the terminal can set the number threshold to 75. Furthermore, the terminal may determine that the number 80 of keys is greater than the number threshold 75 . Then, the terminal generates a second prompt message, and the second prompt message is "You need to replace the keyboard"; then the terminal displays the second prompt message, and the terminal can play the second prompt message in the form of voice playback, or the terminal can use The second prompt information is displayed in a text display manner.

本步骤可以在步骤S21或步骤S22之后执行,此时,可以不执行步骤S23和步骤S24。或者,本步骤也可以在步骤S24之后执行。This step may be performed after step S21 or step S22, and at this time, step S23 and step S24 may not be performed. Alternatively, this step can also be performed after step S24.

本实施例通过获取与终端连接的键盘上的各按键的按压次数;接收用户发送的查看指令,查看指令指示终端确定键盘上的各按键的被按压情况;根据各按键的按压次数,生成热力图,其中,热力图中具有不同按压次数与不同亮度的对应关系;显示热力图,以使用户查看热力图;获取当前键盘的使用寿命信息,其中,使用寿命信息为键盘的使用年限;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与使用寿命信息对应的次数阈值;判断是否具有按压次数超出次数阈值的按键。若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键;确定按压次数超出次数阈值的按键的按键个数;判断按键个数是否大于预设个数阈值;若确定大于,则生成并显示第二提示信息,以提示用户更换键盘。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;同时可以根据各按键的按压次数,生成热力图,使得用户可以直观的看到各按键被按压的情况;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。并且,可以通过统计各按键的按压次数,在确定按压次数超出次数阈值的按键的按键个数,大于预设个数阈值的时候,生成第二提示信息,去提示用户更换键盘。In this embodiment, by obtaining the number of presses of each key on the keyboard connected to the terminal; receiving the viewing instruction sent by the user, the viewing instruction instructs the terminal to determine the pressing status of each key on the keyboard; according to the number of pressings of each key, a heat map is generated , where the heat map has the corresponding relationship between different press times and different brightness; display the heat map so that the user can view the heat map; obtain the service life information of the current keyboard, where the service life information is the service life of the keyboard; according to the preset The corresponding relationship between the service life information and the number of times threshold of the key is determined, and the number of times threshold corresponding to the service life information is determined; it is judged whether there is a button whose number of times of pressing exceeds the number of times threshold. If it is determined that there are buttons whose number of times of pressing exceeds the number of times threshold, then generate and display the first prompt information to prompt the user to replace the button whose number of times of pressing exceeds the number of times threshold; determine the number of keys of the button whose number of times of pressing exceeds the number of times threshold; determine whether the number of keys is greater than the preset number threshold; if determined to be greater than, then generate and display a second prompt message to prompt the user to replace the keyboard. By counting the number of presses of each button, when it is determined that the number of presses exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; at the same time, a heat map can be generated according to the number of presses of each button, so that the user can Intuitively see the status of each key being pressed; thus by judging the life of each key on the keyboard by the number of keystrokes, let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare in time Replacement materials; so as to achieve the purpose of stable performance of the keyboard by replacing individual keys, improve the utilization efficiency of the keyboard, and improve the user experience of using the keyboard. In addition, by counting the number of presses of each key, when it is determined that the number of keys for which the number of presses exceeds the threshold is greater than the preset number threshold, a second prompt message is generated to prompt the user to replace the keyboard.

图3是根据一示例性实施例示出的一种键盘的检测方法实施例三的流程图,如图3所示,键盘的检测方法用于终端中,该方法包括以下步骤。Fig. 3 is a flowchart of Embodiment 3 of a method for detecting a keyboard according to an exemplary embodiment. As shown in Fig. 3 , the method for detecting a keyboard is used in a terminal, and the method includes the following steps.

在步骤S31中,针对所述键盘上的每一个按键,在通过所述键盘上的传感器检测到按键被按下时,获取所述键盘的编码电路上的与该按键对应的编码信息。In step S31, for each key on the keyboard, when the sensor on the keyboard detects that the key is pressed, the coding information corresponding to the key on the coding circuit of the keyboard is acquired.

在本步骤中,在用户按下键盘上的按键的时候,终端可以通过键盘上的传感器检测到按键被按下,然后,终端可以去获取键盘的编码电路上的与当前按键所对应的编码信息。In this step, when the user presses a key on the keyboard, the terminal can detect that the key is pressed through the sensor on the keyboard, and then the terminal can obtain the encoding information corresponding to the current key on the encoding circuit of the keyboard .

在步骤S32中,针对所述键盘上的每一个按键,判断所述该按键对应的编码信息,是否与该按键的预设按键信息一致。In step S32, for each key on the keyboard, it is judged whether the coding information corresponding to the key is consistent with the preset key information of the key.

在本步骤中,终端可以判断当前按键对应的编码信息,是否与该按键的预设按键信息一致,进而判断当前按键的功能是否正常。In this step, the terminal can determine whether the coded information corresponding to the current key is consistent with the preset key information of the key, and then determine whether the function of the current key is normal.

在步骤S33中,针对所述键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示所述用户更换该按键。In step S33, for each key on the keyboard, if it is determined that they are inconsistent, third prompt information is generated to prompt the user to replace the key.

在本步骤中,终端在确定当前按键对应的编码信息,与该按键的预设按键信息不一致的时候,终端可以确定当前按键的功能不正常。然后终端可以生成一个第三提示信息,该第三提示信息表征了去提示用户更换当前功能不正常的按键。其中,第三提示信息可以是语音信息、文字信息、图形信息等等。In this step, when the terminal determines that the encoding information corresponding to the current key is inconsistent with the preset key information of the key, the terminal may determine that the function of the current key is not normal. Then the terminal may generate a third prompt message, the third prompt message represents to prompt the user to replace the currently malfunctioning key. Wherein, the third prompt information may be voice information, text information, graphic information and so on.

然后终端可以显示出该第三提示信息;在第三提示信息为语音信息的时候,终端可以播放语音,去提示用户;在第三提示信息为文字信息的时候,终端可以显示出文字内容,去提示用户;在第三提示信息为图形信息的时候,终端可以显示出图形,去提示用户。Then the terminal can display the third prompt information; when the third prompt information is voice information, the terminal can play the voice to remind the user; when the third prompt information is text information, the terminal can display the text content to go Prompting the user; when the third prompt information is graphic information, the terminal may display the graphic to prompt the user.

本实施例通过针对键盘上的每一个按键,在通过键盘上的传感器检测到按键被按下时,获取键盘的编码电路上的与该按键对应的编码信息;针对键盘上的每一个按键,判断该按键对应的编码信息,是否与该按键的预设按键信息一致;针对键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示用户更换该按键。通过检测每一个按键的编码信息,去判断每一个按键的功能是否正常;从而通过检测按键的功能,让用户了解键盘中已经损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。In this embodiment, for each button on the keyboard, when the sensor on the keyboard detects that the button is pressed, the coding information corresponding to the button on the coding circuit of the keyboard is obtained; for each button on the keyboard, it is judged Whether the coding information corresponding to the key is consistent with the preset key information of the key; for each key on the keyboard, if it is determined to be inconsistent, a third prompt message is generated to prompt the user to replace the key. By detecting the coding information of each key, it is judged whether the function of each key is normal; thus, by detecting the function of the key, the user can know the damaged key in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time ; thereby achieving the purpose of stabilizing the performance of the keyboard by replacing individual keys, improving the utilization efficiency of the keyboard, and enhancing the user experience of using the keyboard.

图4是根据一示例性实施例示出的一种键盘的检测装置实施例四的框图。参照图4,该装置包括:Fig. 4 is a block diagram of Embodiment 4 of an apparatus for detecting a keyboard according to an exemplary embodiment. Referring to Figure 4, the device includes:

第一获取模块41,被配置为获取与终端连接的键盘上的各按键的按压次数;The first acquisition module 41 is configured to acquire the number of presses of each key on the keyboard connected to the terminal;

第一判断模块42,被配置为判断是否具有按压次数超出次数阈值的按键;The first judging module 42 is configured to judge whether there is a button whose number of times of pressing exceeds a threshold value;

第一提示模块43,被配置为若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。The first prompt module 43 is configured to generate and display first prompt information to prompt the user to replace the key whose press times exceed the threshold if it is determined that there are keys whose press times exceed the threshold.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例一中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiments, the specific manner in which each module executes operations has been described in detail in Embodiment 1 of the method, and will not be described in detail here.

本实施例通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。In this embodiment, by acquiring the number of presses of each button on the keyboard connected to the terminal; judging whether there is a button whose number of presses exceeds the threshold; Prompts the user to replace a key that has been pressed more than a threshold number of times. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

图5是根据一示例性实施例示出的一种键盘的检测装置实施例五的框图。在实施例四的基础上,参照图5,该装置,还包括:Fig. 5 is a block diagram of Embodiment 5 of a keyboard detection device according to an exemplary embodiment. On the basis of Embodiment 4, with reference to Figure 5, the device also includes:

确定模块51,被配置为在所述第一判断模块42判断是否具有按压次数超出次数阈值的按键之前,获取当前键盘的使用寿命信息,其中,所述使用寿命信息为键盘的使用年限;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与所述使用寿命信息对应的次数阈值。The determining module 51 is configured to obtain the service life information of the current keyboard before the first judging module 42 judges whether there is a key whose number of times of pressing exceeds the threshold value, wherein the service life information is the service life of the keyboard; Set the corresponding relationship between the service life information and the threshold number of key presses, and determine the number of times threshold corresponding to the service life information.

接收模块52,被配置为在所述第一获取模块41获取与终端连接的键盘上的各按键的按压次数之后,接收用户发送的查看指令,所述查看指令指示所述终端确定所述键盘上的各按键的被按压情况;The receiving module 52 is configured to receive a viewing instruction sent by the user after the first obtaining module 41 obtains the number of presses of each key on the keyboard connected to the terminal, and the viewing instruction instructs the terminal to determine the number of presses on the keyboard connected to the terminal. The pressed status of each button of the

显示模块53,被配置为根据所述各按键的按压次数,生成热力图,其中,所述热力图中具有不同按压次数与不同亮度的对应关系;显示所述热力图,以使所述用户查看所述热力图。The display module 53 is configured to generate a heat map according to the number of presses of each button, wherein the heat map has a corresponding relationship between different press times and different brightness; display the heat map so that the user can view The heatmap.

其中,所述第一提示信息包括以下信息中的至少一种:语音信息、文字信息、图形信息。Wherein, the first prompt information includes at least one of the following information: voice information, text information, and graphic information.

第二提示模块54,被配置为在所述第一获取模块41获取与终端连接的键盘上的各按键的按压次数之后,确定按压次数超出次数阈值的按键的按键个数;判断所述按键个数是否大于预设个数阈值;若确定大于,则生成并显示第二提示信息,以提示用户更换所述键盘。The second prompting module 54 is configured to, after the first acquisition module 41 acquires the number of presses of each key on the keyboard connected to the terminal, determine the number of keys for which the number of presses exceeds the threshold; determine the number of keys Whether the number is greater than the preset number threshold; if it is determined to be greater than, then generate and display a second prompt message to prompt the user to replace the keyboard.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例二中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiment, the specific manner in which each module executes operations has been described in detail in Embodiment 2 of the method, and will not be described in detail here.

本实施例通过获取与终端连接的键盘上的各按键的按压次数;接收用户发送的查看指令,查看指令指示终端确定键盘上的各按键的被按压情况;根据各按键的按压次数,生成热力图,其中,热力图中具有不同按压次数与不同亮度的对应关系;显示热力图,以使用户查看热力图;获取当前键盘的使用寿命信息,其中,使用寿命信息为键盘的使用年限;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与使用寿命信息对应的次数阈值;判断是否具有按压次数超出次数阈值的按键。若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键;确定按压次数超出次数阈值的按键的按键个数;判断按键个数是否大于预设个数阈值;若确定大于,则生成并显示第二提示信息,以提示用户更换键盘。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;同时可以根据各按键的按压次数,生成热力图,使得用户可以直观的看到各按键被按压的情况;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。并且,可以通过统计各按键的按压次数,在确定按压次数超出次数阈值的按键的按键个数,大于预设个数阈值的时候,生成第二提示信息,去提示用户更换键盘。In this embodiment, by obtaining the number of presses of each key on the keyboard connected to the terminal; receiving the viewing instruction sent by the user, the viewing instruction instructs the terminal to determine the pressing status of each key on the keyboard; according to the number of pressings of each key, a heat map is generated , where the heat map has the corresponding relationship between different press times and different brightness; display the heat map so that the user can view the heat map; obtain the service life information of the current keyboard, where the service life information is the service life of the keyboard; according to the preset The corresponding relationship between the service life information and the number of times threshold of the key is determined, and the number of times threshold corresponding to the service life information is determined; it is judged whether there is a button whose number of times of pressing exceeds the number of times threshold. If it is determined that there are buttons whose number of times of pressing exceeds the number of times threshold, then generate and display the first prompt information to prompt the user to replace the button whose number of times of pressing exceeds the number of times threshold; determine the number of keys of the button whose number of times of pressing exceeds the number of times threshold; determine whether the number of keys is greater than the preset number threshold; if determined to be greater than, then generate and display a second prompt message to prompt the user to replace the keyboard. By counting the number of presses of each button, when it is determined that the number of presses exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; at the same time, a heat map can be generated according to the number of presses of each button, so that the user can Intuitively see the status of each key being pressed; thus by judging the life of each key on the keyboard by the number of keystrokes, let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare in time Replacement materials; so as to achieve the purpose of stable performance of the keyboard by replacing individual keys, improve the utilization efficiency of the keyboard, and improve the user experience of using the keyboard. In addition, by counting the number of presses of each key, when it is determined that the number of keys for which the number of presses exceeds the threshold is greater than the preset number threshold, a second prompt message is generated to prompt the user to replace the keyboard.

图6是根据一示例性实施例示出的一种键盘的检测装置实施例六的框图。参照图6,该装置,包括:Fig. 6 is a block diagram of Embodiment 6 of an apparatus for detecting a keyboard according to an exemplary embodiment. Referring to Figure 6, the device includes:

第二获取模块61,被配置为针对所述键盘上的每一个按键,在通过所述键盘上的传感器检测到按键被按下时,获取所述键盘的编码电路上的与该按键对应的编码信息;The second acquiring module 61 is configured to, for each key on the keyboard, when the sensor on the keyboard detects that the key is pressed, acquire the code corresponding to the key on the coding circuit of the keyboard information;

第二判断模块62,被配置为针对所述键盘上的每一个按键,判断所述该按键对应的编码信息,是否与该按键的预设按键信息一致;The second judging module 62 is configured to, for each button on the keyboard, judge whether the coded information corresponding to the button is consistent with the preset button information of the button;

第三提示模块63,被配置为针对所述键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示所述用户更换该按键。The third prompting module 63 is configured to, for each key on the keyboard, if it is determined that they are inconsistent, generate third prompting information to prompt the user to replace the key.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例三中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiment, the specific manner in which each module executes operations has been described in detail in the third embodiment of the method, and will not be described in detail here.

本实施例通过针对键盘上的每一个按键,在通过键盘上的传感器检测到按键被按下时,获取键盘的编码电路上的与该按键对应的编码信息;针对键盘上的每一个按键,判断该按键对应的编码信息,是否与该按键的预设按键信息一致;针对键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示用户更换该按键。通过检测每一个按键的编码信息,去判断每一个按键的功能是否正常;从而通过检测按键的功能,让用户了解键盘中已经损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。In this embodiment, for each button on the keyboard, when the sensor on the keyboard detects that the button is pressed, the coding information corresponding to the button on the coding circuit of the keyboard is obtained; for each button on the keyboard, it is judged Whether the coding information corresponding to the key is consistent with the preset key information of the key; for each key on the keyboard, if it is determined to be inconsistent, a third prompt message is generated to prompt the user to replace the key. By detecting the coding information of each key, it is judged whether the function of each key is normal; thus, by detecting the function of the key, the user can know the damaged key in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time ; thereby achieving the purpose of stabilizing the performance of the keyboard by replacing individual keys, improving the utilization efficiency of the keyboard, and enhancing the user experience of using the keyboard.

图7是根据一示例性实施例示出的一种终端的实体的框图。参照图7,该终端可以具体实现为:处理器71,以及被配置为存储处理器可执行指令的存储器72;Fig. 7 is a block diagram showing entities of a terminal according to an exemplary embodiment. Referring to FIG. 7, the terminal may be specifically implemented as: a processor 71, and a memory 72 configured to store instructions executable by the processor;

其中,所述处理器71被配置为:获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。Wherein, the processor 71 is configured to: obtain the number of presses of each key on the keyboard connected to the terminal; determine whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold, generate and Displaying a first prompt message to prompt the user to replace a key whose number of presses exceeds a threshold value.

在上述实施例中,应理解,该处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。SIM卡也称为用户身份识别卡、智能卡,数字移动电话机必须装上此卡方能使用。即在电脑芯片上存储了数字移动电话客户的信息,加密的密钥以及用户的电话簿等内容。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the foregoing embodiments, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and may also be other general-purpose processors, digital signal processors (English: DigitalSignal Processor, referred to as: DSP) , Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., and the aforementioned memory can be a read-only memory (English: read-only memory, abbreviated: ROM), random access memory (English: : random access memory, referred to as: RAM), flash memory, hard disk or solid state disk. SIM card is also known as subscriber identification card, smart card, digital mobile phone must be equipped with this card before it can be used. That is, the information of the digital mobile phone customer, the encrypted key and the user's phone book are stored on the computer chip. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

关于上述实施例中的终端,其中各个模块执行操作的具体方式已经在有关该方法和装置的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the terminal in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments of the method and apparatus, and will not be described in detail here.

本实施例通过获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。通过去统计各按键的按压次数,在确定按键的按压次数超出次数阈值的时候,去提示用户去更换按压次数超出次数阈值的按键;从而通过对按键的敲击次数的判断键盘的各按键的寿命,让用户了解键盘中比较容易损坏的按键,并提示用户更换按键,提醒用户及时的准备更换的材料;从而通过对个别按键的更换达到键盘稳定性能的目的,提高键盘的利用效率,提升用户使用键盘的体验。In this embodiment, by acquiring the number of presses of each button on the keyboard connected to the terminal; judging whether there is a button whose number of presses exceeds the threshold; Prompts the user to replace a key that has been pressed more than a threshold number of times. By counting the number of presses of each button, when it is determined that the number of presses of the button exceeds the threshold, the user is prompted to replace the button whose number of presses exceeds the threshold; thus, the life of each button of the keyboard is judged by the number of times the button is struck , let the user know the keys that are more easily damaged in the keyboard, and prompt the user to replace the key, reminding the user to prepare the replacement material in time; thereby achieving the purpose of stabilizing the performance of the keyboard through the replacement of individual keys, improving the utilization efficiency of the keyboard, and improving the use of the user keyboard experience.

图8是根据一示例性实施例示出的一种终端设备800的框图。例如,终端设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 8 is a block diagram showing a terminal device 800 according to an exemplary embodiment. For example, the terminal device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图8,终端设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to FIG. 8 , terminal device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.

处理组件802通常控制终端设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the terminal device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

存储器804被配置为存储各种类型的数据以支持在终端设备800的操作。这些数据的示例包括用于在终端设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the terminal device 800 . Examples of such data include instructions for any application or method operating on the terminal device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件806为终端设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为终端设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the terminal device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for end device 800 .

多媒体组件808包括在所述终端设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当终端设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the terminal device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the terminal device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当终端设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive an external audio signal when the terminal device 800 is in an operation mode, such as a calling mode, a recording mode and a voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为终端设备800提供各个方面的状态评估。例如,传感器组件814可以检测到终端设备800的打开/关闭状态,组件的相对定位,例如所述组件为终端设备800的显示器和小键盘,传感器组件814还可以检测终端设备800或终端设备800一个组件的位置改变,用户与终端设备800接触的存在或不存在,终端设备800方位或加速/减速和终端设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing status assessment of various aspects of the terminal device 800 . For example, the sensor component 814 can detect the opening/closing state of the terminal device 800, the relative positioning of components, for example, the components are the display and the keypad of the terminal device 800, and the sensor component 814 can also detect the terminal device 800 or a terminal device 800 Changes in positions of components, presence or absence of user contact with the terminal device 800 , orientation or acceleration/deceleration of the terminal device 800 and temperature changes of the terminal device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件816被配置为便于终端设备800和其他设备之间有线或无线方式的通信。终端设备800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communications between the terminal device 800 and other devices. The terminal device 800 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,终端设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, terminal device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由终端设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by the processor 820 of the terminal device 800 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由终端设备800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which can be executed by the processor 820 of the terminal device 800 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种键盘的检测方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute a keyboard detection method, the method comprising:

获取与终端连接的键盘上的各按键的按压次数;Obtain the number of presses of each key on the keyboard connected to the terminal;

判断是否具有按压次数超出次数阈值的按键;Determine whether there is a button whose number of presses exceeds the number of times threshold;

若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。If it is determined that there are keys whose number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold.

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

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

Claims (12)

Translated fromChinese
1.一种键盘的检测方法,其特征在于,包括:1. A detection method of a keyboard, characterized in that, comprising:获取与终端连接的键盘上的各按键的按压次数;Obtain the number of presses of each key on the keyboard connected to the terminal;判断是否具有按压次数超出次数阈值的按键;Determine whether there is a button whose number of presses exceeds the number of times threshold;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。If it is determined that there are keys whose number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold.2.根据权利要求1所述的方法,其特征在于,在所述判断是否具有按压次数超出次数阈值的按键之前,还包括:2. The method according to claim 1, further comprising:获取当前键盘的使用寿命信息,其中,所述使用寿命信息为键盘的使用年限;Obtain the service life information of the current keyboard, wherein the service life information is the service life of the keyboard;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与所述使用寿命信息对应的次数阈值。According to the preset corresponding relationship between the service life information and the threshold number of key presses, the number of times threshold corresponding to the service life information is determined.3.根据权利要求1所述的方法,其特征在于,在所述获取与终端连接的键盘上的各按键的按压次数之后,还包括:3. The method according to claim 1, further comprising:接收用户发送的查看指令,所述查看指令指示所述终端确定所述键盘上的各按键的被按压情况;receiving a viewing instruction sent by the user, the viewing instruction instructing the terminal to determine the pressed status of each key on the keyboard;根据所述各按键的按压次数,生成热力图,其中,所述热力图中具有不同按压次数与不同亮度的对应关系;Generate a heat map according to the number of presses of each button, wherein the heat map has a corresponding relationship between different number of presses and different brightness;显示所述热力图,以使所述用户查看所述热力图。displaying the heat map to enable the user to view the heat map.4.根据权利要求1-3任一项所述的方法,其特征在于,在所述获取与终端连接的键盘上的各按键的按压次数之后,还包括:4. The method according to any one of claims 1-3, characterized in that, after obtaining the number of presses of each button on the keyboard connected to the terminal, further comprising:确定按压次数超出次数阈值的按键的按键个数;Determining the number of keys for which the number of presses exceeds the number of times threshold;判断所述按键个数是否大于预设个数阈值;judging whether the number of keys is greater than a preset number threshold;若确定大于,则生成并显示第二提示信息,以提示用户更换所述键盘。If it is determined that the value is greater than, then generate and display second prompt information to prompt the user to replace the keyboard.5.根据权利要求1-3任一项所述的方法,其特征在于,所述方法,还包括:5. The method according to any one of claims 1-3, wherein the method further comprises:针对所述键盘上的每一个按键,在通过所述键盘上的传感器检测到按键被按下时,获取所述键盘的编码电路上的与该按键对应的编码信息;For each key on the keyboard, when the sensor on the keyboard detects that the key is pressed, acquire the coding information corresponding to the key on the coding circuit of the keyboard;针对所述键盘上的每一个按键,判断所述该按键对应的编码信息,是否与该按键的预设按键信息一致;For each key on the keyboard, determine whether the coded information corresponding to the key is consistent with the preset key information of the key;针对所述键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示所述用户更换该按键。For each key on the keyboard, if it is determined that they are inconsistent, third prompt information is generated to prompt the user to replace the key.6.一种键盘的检测装置,其特征在于,包括:6. A detection device for a keyboard, characterized in that it comprises:第一获取模块,被配置为获取与终端连接的键盘上的各按键的按压次数;The first obtaining module is configured to obtain the number of presses of each key on the keyboard connected to the terminal;第一判断模块,被配置为判断是否具有按压次数超出次数阈值的按键;The first judging module is configured to judge whether there is a button whose number of times of pressing exceeds a threshold value;第一提示模块,被配置为若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。The first prompting module is configured to generate and display first prompting information if it is determined that there is a key whose number of presses exceeds the threshold, so as to prompt the user to replace the key whose number of presses exceeds the threshold.7.根据权利要求6所述的装置,其特征在于,所述装置,还包括:7. The device according to claim 6, wherein the device further comprises:确定模块,被配置为在所述第一判断模块判断是否具有按压次数超出次数阈值的按键之前,获取当前键盘的使用寿命信息,其中,所述使用寿命信息为键盘的使用年限;根据预设的使用寿命信息与按键的次数阈值之间对应关系,确定与所述使用寿命信息对应的次数阈值。The determining module is configured to acquire the service life information of the current keyboard before the first judging module judges whether there is a key whose number of times of pressing exceeds the threshold value, wherein the service life information is the service life of the keyboard; according to the preset The corresponding relationship between the service life information and the threshold number of key presses is to determine the number of times threshold corresponding to the service life information.8.根据权利要求6所述的装置,其特征在于,所述装置,还包括:8. The device according to claim 6, further comprising:接收模块,被配置为在所述第一获取模块获取与终端连接的键盘上的各按键的按压次数之后,接收用户发送的查看指令,所述查看指令指示所述终端确定所述键盘上的各按键的被按压情况;The receiving module is configured to receive a viewing instruction sent by the user after the first obtaining module obtains the number of presses of each button on the keyboard connected to the terminal, and the viewing instruction instructs the terminal to determine the number of times each button on the keyboard is pressed. The button is pressed;显示模块,被配置为根据所述各按键的按压次数,生成热力图,其中,所述热力图中具有不同按压次数与不同亮度的对应关系;显示所述热力图,以使所述用户查看所述热力图。The display module is configured to generate a heat map according to the number of presses of each button, wherein the heat map has a corresponding relationship between different press times and different brightnesses; display the heat map so that the user can view all Described heat map.9.根据权利要求6-8任一项所述的装置,其特征在于,所述装置,还包括:9. The device according to any one of claims 6-8, wherein the device further comprises:第二提示模块,被配置为在所述第一获取模块获取与终端连接的键盘上的各按键的按压次数之后,确定按压次数超出次数阈值的按键的按键个数;判断所述按键个数是否大于预设个数阈值;若确定大于,则生成并显示第二提示信息,以提示用户更换所述键盘。The second prompting module is configured to, after the first acquisition module obtains the number of presses of each key on the keyboard connected to the terminal, determine the number of keys whose number of presses exceeds the threshold value of the number of times; determine whether the number of keys is greater than the preset number threshold; if determined to be greater than, then generate and display second prompt information to prompt the user to replace the keyboard.10.根据权利要求6-8任一项所述的装置,其特征在于,所述装置,还包括:10. The device according to any one of claims 6-8, wherein the device further comprises:第二获取模块,被配置为针对所述键盘上的每一个按键,在通过所述键盘上的传感器检测到按键被按下时,获取所述键盘的编码电路上的与该按键对应的编码信息;The second acquiring module is configured to, for each key on the keyboard, when the sensor on the keyboard detects that the key is pressed, acquire the encoding information corresponding to the key on the encoding circuit of the keyboard ;第二判断模块,被配置为针对所述键盘上的每一个按键,判断所述该按键对应的编码信息,是否与该按键的预设按键信息一致;The second judging module is configured to, for each button on the keyboard, judge whether the coded information corresponding to the button is consistent with the preset button information of the button;第三提示模块,被配置为针对所述键盘上的每一个按键,若确定不一致,则生成第三提示信息,以提示所述用户更换该按键。The third prompting module is configured to, for each key on the keyboard, if it is determined that they are inconsistent, generate third prompting information to prompt the user to replace the key.11.一种终端,其特征在于,包括:11. A terminal, characterized in that, comprising:处理器,以及用于存储处理器可执行指令的存储器;a processor, and memory for storing instructions executable by the processor;其中,所述处理器被配置为:获取与终端连接的键盘上的各按键的按压次数;判断是否具有按压次数超出次数阈值的按键;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。Wherein, the processor is configured to: obtain the number of presses of each key on the keyboard connected to the terminal; determine whether there is a key whose number of presses exceeds the threshold; if it is determined that there is a key whose number of presses exceeds the threshold, generate and display The first prompt message is used to prompt the user to replace the key whose pressing times exceed the threshold value.12.一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行一种键盘的检测方法,所述方法包括:12. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute a keyboard detection method, the method comprising:获取与终端连接的键盘上的各按键的按压次数;Obtain the number of presses of each key on the keyboard connected to the terminal;判断是否具有按压次数超出次数阈值的按键;Determine whether there is a button whose number of presses exceeds the number of times threshold;若确定具有按压次数超出次数阈值的按键,则生成并显示第一提示信息,以提示用户更换按压次数超出次数阈值的按键。If it is determined that there are keys whose number of presses exceeds the threshold, first prompt information is generated and displayed to prompt the user to replace the key whose number of presses exceeds the threshold.
CN201710465826.9A2017-06-192017-06-19Detection method, device and the terminal of keyboardPendingCN107329862A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710465826.9ACN107329862A (en)2017-06-192017-06-19Detection method, device and the terminal of keyboard

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710465826.9ACN107329862A (en)2017-06-192017-06-19Detection method, device and the terminal of keyboard

Publications (1)

Publication NumberPublication Date
CN107329862Atrue CN107329862A (en)2017-11-07

Family

ID=60195462

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710465826.9APendingCN107329862A (en)2017-06-192017-06-19Detection method, device and the terminal of keyboard

Country Status (1)

CountryLink
CN (1)CN107329862A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110122045A (en)*2018-02-092019-08-16苏州宝时得电动工具有限公司Blade exchange reminding method, device, storage medium and the system of grass trimmer
CN110580211A (en)*2019-08-232019-12-17鹏城实验室 Monitoring method, device, keyboard and storage medium
CN111131418A (en)*2019-12-132020-05-08深圳拓邦股份有限公司Vulnerable part monitoring and managing method, device and system
CN111767618A (en)*2020-07-032020-10-13北京汉德默兹克科技有限公司Method and device for customizing gram number of keys of keyboard
CN112033717A (en)*2020-08-282020-12-04苏州富强科技有限公司Keyboard detection system
CN112084081A (en)*2020-08-282020-12-15苏州富强科技有限公司Keyboard detection method and device based on industrial control
CN115471958A (en)*2021-06-102022-12-13深圳市怡化时代科技有限公司Long key processing method, device, equipment and medium
US20230185277A1 (en)*2021-12-132023-06-15Dell Products L.P.Information handling system keyboard disposition automated using performance metrics
US12189437B2 (en)2021-12-132025-01-07Dell Products L.P.Modular speakers for portable information handling system audio
US12189370B2 (en)2021-12-132025-01-07Dell Products L.P.Information handling system display backplane vapor chamber
US12223473B2 (en)2021-12-132025-02-11Dell Products L.P.Information handling system main board disposition automated using performance metrics
US12222769B2 (en)2021-12-132025-02-11Dell Products L.P.Modular information handling system component connections
US12282407B2 (en)2021-12-132025-04-22Dell Products L.P.Information handling system hinge disposition automated using performance metrics
US12306618B2 (en)2021-12-132025-05-20Dell Products L.P.Information handling system disposition automated using system metrics
US12354509B2 (en)2021-12-132025-07-08Dell Products L.P.Information handling system display disposition automated using performance metrics

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5501518A (en)*1994-01-311996-03-26Dell Usa, L.P.Hand-held keyboard tester
CN101571824A (en)*2008-04-292009-11-04旭达电脑(昆山)有限公司Device and method for detecting notebook keyboard
CN201780573U (en)*2010-07-302011-03-30深圳安博电子有限公司Test device of keyboard modules
CN102193849A (en)*2010-03-032011-09-21神讯电脑(昆山)有限公司Keyboard testing system
CN106406554A (en)*2016-08-312017-02-15上海卓易科技股份有限公司Reminding method and reminding device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5501518A (en)*1994-01-311996-03-26Dell Usa, L.P.Hand-held keyboard tester
CN101571824A (en)*2008-04-292009-11-04旭达电脑(昆山)有限公司Device and method for detecting notebook keyboard
CN102193849A (en)*2010-03-032011-09-21神讯电脑(昆山)有限公司Keyboard testing system
CN201780573U (en)*2010-07-302011-03-30深圳安博电子有限公司Test device of keyboard modules
CN106406554A (en)*2016-08-312017-02-15上海卓易科技股份有限公司Reminding method and reminding device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GEESON: "你使用键盘的效率达到最快了吗", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/26550168》*

Cited By (20)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110122045A (en)*2018-02-092019-08-16苏州宝时得电动工具有限公司Blade exchange reminding method, device, storage medium and the system of grass trimmer
CN110122045B (en)*2018-02-092021-06-11苏州宝时得电动工具有限公司Blade replacement prompting method, device, storage medium and system of mower
CN110580211A (en)*2019-08-232019-12-17鹏城实验室 Monitoring method, device, keyboard and storage medium
CN111131418A (en)*2019-12-132020-05-08深圳拓邦股份有限公司Vulnerable part monitoring and managing method, device and system
CN111767618A (en)*2020-07-032020-10-13北京汉德默兹克科技有限公司Method and device for customizing gram number of keys of keyboard
CN111767618B (en)*2020-07-032024-10-11北京汉德默兹克科技有限公司Method and device for customizing key gram number of keyboard
CN112033717A (en)*2020-08-282020-12-04苏州富强科技有限公司Keyboard detection system
CN112084081A (en)*2020-08-282020-12-15苏州富强科技有限公司Keyboard detection method and device based on industrial control
CN112033717B (en)*2020-08-282022-08-16苏州富强科技有限公司Keyboard detection system
CN115471958B (en)*2021-06-102023-11-10深圳市怡化时代科技有限公司Processing method, device, equipment and medium for long key
CN115471958A (en)*2021-06-102022-12-13深圳市怡化时代科技有限公司Long key processing method, device, equipment and medium
US20230185277A1 (en)*2021-12-132023-06-15Dell Products L.P.Information handling system keyboard disposition automated using performance metrics
US12189437B2 (en)2021-12-132025-01-07Dell Products L.P.Modular speakers for portable information handling system audio
US12189370B2 (en)2021-12-132025-01-07Dell Products L.P.Information handling system display backplane vapor chamber
US12223473B2 (en)2021-12-132025-02-11Dell Products L.P.Information handling system main board disposition automated using performance metrics
US12222769B2 (en)2021-12-132025-02-11Dell Products L.P.Modular information handling system component connections
US12235625B2 (en)*2021-12-132025-02-25Dell Products L.P.Information handling system keyboard disposition automated using performance metrics
US12282407B2 (en)2021-12-132025-04-22Dell Products L.P.Information handling system hinge disposition automated using performance metrics
US12306618B2 (en)2021-12-132025-05-20Dell Products L.P.Information handling system disposition automated using system metrics
US12354509B2 (en)2021-12-132025-07-08Dell Products L.P.Information handling system display disposition automated using performance metrics

Similar Documents

PublicationPublication DateTitle
CN107329862A (en)Detection method, device and the terminal of keyboard
CN108509232A (en)Screen recording method, device and computer readable storage medium
CN106454336A (en)Method and device for detecting whether camera of terminal is covered or not, and terminal
US11243660B2 (en)Method and device for displaying application, and storage medium
CN107193553A (en)Key control method and device
CN106372204A (en)Push message processing method and device
CN107102772A (en)Touch control method and device
CN106790043A (en)The method and device of message is sent in live application
CN106201310A (en)The display packing of notification message, device and terminal
CN106325670A (en)Message prompting method and device
CN107301242A (en)Method, device and the storage medium of page jump
CN108121631A (en)Screen abnormality based reminding method and device
CN106126082A (en)Control the method for terminal, device and terminal
CN106528385A (en)System fluency monitoring method and apparatus, and terminal
CN106412481A (en)Prompt method and device, and terminals based on VoLTE video call
CN107368280A (en)Method for controlling volume, device and the interactive voice equipment of interactive voice
US9641737B2 (en)Method and device for time-delay photographing
CN107656616A (en)Input interface displaying method, device, electronic equipment
CN107390929A (en)Control method, device and the storage medium of touch-control system
CN106708243A (en)Terminal equipment control method and device
CN107071859B (en) Network connection processing method, device and terminal
CN105955097A (en)Timing management method, timing management device and mobile terminal
CN105867918B (en)Application notification prompting method and device
CN107203315A (en)Processing method, device and the terminal of click event
CN107707862A (en)Treating method and apparatus, first terminal, the second terminal of Video Remote assistance

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20171107

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp