Keypad foolproof control method, device, computer equipment and storage medium

By monitoring and counting the output signals of machine equipment keys, determining abnormalities and implementing anti-fooling measures, the problem in the existing technology that key errors cannot be automatically adjusted is solved, and the stability and execution accuracy of the equipment are improved.

CN113054979BActive Publication Date: 2024-09-13ARICHARGE TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110220501.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-26
Publication Date
2024-09-13
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

The buttons of existing machinery and equipment cannot automatically adjust when an error occurs, resulting in equipment operation errors that cannot be proactively located and corrected.

Method used

By obtaining the output signal of the button, the signal duration is counted. If it exceeds the preset value, it is determined to be an abnormal state, and corresponding foolproof measures are implemented to automatically adjust the button state, including defining button groups, obtaining associations, determining application scenarios, and selecting Implement the anti-fooling measures with the highest success rate.

Benefits of technology

It realizes the automatic correction of buttons, improves the execution stability of the equipment and the accuracy of the output signal, and ensures that the equipment can protect itself when abnormalities occur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113054979B
    Figure CN113054979B
Patent Text Reader

Abstract

The present application relates to the field of control development, and in particular to a control method, device, computer equipment and storage medium for key fool-proofing, wherein the method comprises: obtaining the output signal of a key; counting the duration of the output signal being the same output value within a continuous time range; if the duration is greater than a preset time value, determining that the key is in an abnormal state; obtaining fool-proofing measures for the key, and implementing the fool-proofing measures for the key. The present application continuously monitors the output signal of a key, and implements fool-proofing measures for keys in abnormal states, automatically adjusting the erroneous key, and ensuring the correctness of the key output signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control development, and in particular to a key-lock prevention control method, device, computer equipment and storage medium. Background Art

[0002] Most of the current machines and equipment are equipped with different buttons, and different buttons control different functions. When the machine and equipment are running, operating errors will inevitably occur. When an error occurs in the machine and equipment, it may be that there is an error in the buttons on the machine and equipment. At present, it is impossible to actively locate the error in the buttons on the machine and equipment, and it is even more impossible to actively adjust and correct it. For example, if the machine and equipment continuously outputs a certain character, it may be because there is an abnormality in a button on the input end of the machine and equipment, and the machine and equipment cannot automatically adjust at this time. That is, if the buttons of the machine and equipment are wrong or abnormal, they cannot be automatically adjusted. Summary of the invention

[0003] The main purpose of the present application is to provide a key error prevention control method, device, computer equipment and storage medium, aiming to solve the current problem that key errors cannot be automatically adjusted.

[0004] In order to achieve the above-mentioned invention object, the present application proposes a key fool-proof control method, comprising:

[0005] Get the output signal of the key;

[0006] Counting the duration of the output signal being the same output value within a continuous time range;

[0007] If the duration is longer than a preset time value, it is determined that the button is in an abnormal state;

[0008] Obtain foolproof measures for the key, and implement the foolproof measures for the key.

[0009] Furthermore, the step of obtaining the output signal of the key includes:

[0010] Define several buttons as button groups;

[0011] The output signal of the key group is obtained.

[0012] Furthermore, the plurality of buttons are defined as a button group, including:

[0013] Get the association relationship of the button;

[0014] A number of associated buttons are defined as a button group.

[0015] Furthermore, the obtaining of the association relationship of the buttons includes:

[0016] Get the current application scenario;

[0017] The association relationship of the buttons is determined according to the current application scenario.

[0018] Furthermore, after obtaining the foolproofing measure of the key and implementing the foolproofing measure for the key, the method further includes:

[0019] Obtaining an output signal of the key after the fool-proofing measure is implemented;

[0020] If the output signal is a preset output value, it is determined that the fool-proofing measure is successfully implemented;

[0021] If the output signal is not the preset output value, it is determined that the foolproofing measure has failed to be implemented, and a message indicating that the foolproofing measure has failed to be implemented is sent to a designated notification channel.

[0022] Furthermore, the step of obtaining the foolproofing measure of the key and implementing the foolproofing measure for the key includes:

[0023] Obtain several fool-proofing measures for the key;

[0024] Obtaining the success rate of the plurality of foolproofing measures in handling the abnormal state;

[0025] The foolproofing measure with the highest success rate is selected as the target foolproofing measure, and the target foolproofing measure is implemented for the key.

[0026] Furthermore, after selecting the foolproofing measure with the highest success rate as the target foolproofing measure and implementing the target foolproofing measure on the key, the method further includes:

[0027] Determine whether the target fool-proofing measures are successfully implemented;

[0028] If not, determine the danger level of the abnormal state;

[0029] If the danger level meets the warning level, the circuits related to the buttons are controlled to stop working.

[0030] The present application also provides a key fool-proof control device, comprising:

[0031] A signal monitoring module is used to obtain the output signal of the key;

[0032] A duration statistics module, used to count the duration of the output signal being the same output value within a continuous time range;

[0033] An abnormality judgment module, used for determining that the button is in an abnormal state if the duration is longer than a preset time value;

[0034] The foolproof control module is used to obtain the foolproof measures of the key and implement the foolproof measures for the key.

[0035] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above-mentioned key anti-foolproofing control methods when executing the computer program.

[0036] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned key anti-foolproofing control methods are implemented.

[0037] The present application example provides a key fool-proofing control method for automatically correcting abnormal signals appearing on keys, by acquiring the output signal of the keys and continuously monitoring the output signal of the keys. The monitoring of the output signal of each key can facilitate statistics on the output value of the output signal of each key, and the duration of the output signal being the same output value within a continuous time range is counted. If the duration of the output signal of the key being the same output value within a continuous time range is greater than a preset time value, it can be determined that the key is in an abnormal state. When it is determined that the key is in an abnormal state, different keys have different response measures for the occurrence of the abnormality. Obtaining the fool-proofing measures for the keys and implementing the fool-proofing measures for the keys can automatically adjust the keys in the abnormal state, improve the accuracy of the output signals of the keys, and ensure the correct execution of devices with different keys. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a flow chart of an embodiment of a key foolproof control method of the present application;

[0039] Figure 2 This is a flow chart of another embodiment of the key fool-proof control method of the present application;

[0040] Figure 3 This is a schematic structural diagram of an embodiment of a key fool-proof control device of the present application;

[0041] Figure 4 This is a schematic block diagram of the structure of an embodiment of a computer device of the present application.

[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] Reference Figure 1 An embodiment of the present application provides a key anti-foolproofing control method, including steps S10-S40. The detailed description of each step of the key anti-foolproofing control method is as follows.

[0045] S10, obtaining the output signal of the key.

[0046] This embodiment is applied to a device with buttons. When the buttons in the product are in different states, different working signals can be output. This embodiment obtains the output signal of the button. In one implementation, when the device has multiple different buttons, each button is an independent button. At this time, the output signal of each button is obtained to monitor and control the output signal of each button.

[0047] S20, counting the duration of the output signal having the same output value within a continuous time range.

[0048] In this embodiment, the output signal of each key is monitored. The monitoring of the output signal of each key can facilitate statistics on the output value of the output signal of each key, and statistics on the output value of the key in which time period or at which time point, so that the output signal of the key can be accurately monitored. In one embodiment, it is unified whether the output signal of the key in a continuous time range is the same output value, and the duration of the output signal being the same output value is counted.

[0049] S30: If the duration is longer than a preset time value, it is determined that the button is in an abnormal state.

[0050] After counting the output values ​​of the output signal of the key, if the duration of the output signal of the key being the same output value within a continuous time range is greater than the preset time value, it can be determined that the key is in an abnormal state. The key being in an abnormal state includes a short circuit in the key circuit, causing the output signal of the key to always be the same output value. The key being in an abnormal state includes the key being continuously pressed, causing the output signal of the key to always be the same output value.

[0051] S40, obtaining a foolproofing measure for the key, and implementing the foolproofing measure for the key.

[0052] When it is determined that the key is in an abnormal state, different keys have different response measures for the abnormality. The measures for handling the key abnormality are defined as fool-proof measures, and then the fool-proof measures of the key in the abnormal state are obtained, and the fool-proof measures are implemented for the key with the abnormality. In one embodiment, if the key is in an abnormal state, the fool-proof measures for obtaining the key are to restore the output signal of the key to the original signal. At this time, the fool-proof measures are implemented for the key to restore the output signal of the key; in another embodiment, if the key is in an abnormal state, the fool-proof measures for obtaining the key are to disconnect the output circuit of the key. At this time, the fool-proof measures are implemented for the key, and the output circuit of the key is set to be open, so as to monitor the output signal of the key in real time, and implement fool-proof measures for the key with the abnormality, thereby improving the execution stability of the device equipped with the key.

[0053] The present embodiment provides a key fool-proofing control method for automatically correcting abnormal signals appearing on keys, by acquiring the output signals of keys and continuously monitoring the output signals of keys. The monitoring of the output signals of respective keys can facilitate statistics on the output values ​​of the output signals of respective keys, and statistics are counted on the duration for which the output signals have the same output value within a continuous time range. If the duration for which the output signal of the key has the same output value within a continuous time range is greater than a preset time value, it can be determined that the key is in an abnormal state. When it is determined that the key is in an abnormal state, different keys have different response measures for the occurrence of the abnormality. The fool-proofing measures for the keys are acquired and implemented on the keys, so that the keys in the abnormal state can be automatically adjusted, the accuracy of the output signals of the keys can be improved, and the correct execution of devices with different keys can be ensured.

[0054] In one embodiment, the step of obtaining the output signal of a key includes:

[0055] Define several buttons as button groups;

[0056] The output signal of the key group is obtained.

[0057] In this embodiment, the device includes a plurality of different buttons, and different buttons have independent output signals. Furthermore, different buttons are associated with each other. When obtaining the output signals of the buttons, a plurality of buttons with an associated relationship are defined as a button group. The output signals of the plurality of buttons included in a button group have a mutual influence relationship. Then, the output signal of the button group is obtained, and the plurality of different buttons included in the device are grouped. Then, the output signal of the button group is monitored, and then the duration of the output signal of the button group being the same output value within a continuous time range is counted. If the duration is greater than a preset time value, it can be determined that the button group is in an abnormal state. When the number of buttons on the device is large, the solution of this embodiment can reduce the resources required for monitoring the output signals of the buttons. Only the output signals of the button group composed of a plurality of buttons need to be monitored, so that the button group with abnormal output signals can be quickly found, and then the components included in the button group are checked, thereby improving the efficiency of button monitoring.

[0058] Furthermore, the plurality of buttons are defined as a button group, including:

[0059] Get the association relationship of the button;

[0060] A number of associated buttons are defined as a button group.

[0061] In this embodiment, different buttons have certain association relationships. When defining several buttons as a button group, the association relationship of the buttons is obtained, and then the several buttons with the association relationship are defined as a button group. For example, the device includes five buttons, namely, buttons A, B, C, D, and E. The output signal of button A affects the output signals of buttons B and E, and the output signal of button C affects the output signal of button D. At this time, buttons A and button B are defined as button group 1, button A and button E are defined as button group 2, and button C and button D are defined as button group 3. In this way, the output signals of different button groups can be monitored simultaneously, thereby improving the efficiency of simultaneous monitoring of multiple buttons.

[0062] In one embodiment, obtaining the association relationship of the buttons includes:

[0063] Get the current application scenario;

[0064] The association relationship of the buttons is determined according to the current application scenario.

[0065] In this embodiment, different buttons need to be divided into button groups in specific application scenarios, including: in a test scenario, the button groups are divided according to the arrangement and combination of several buttons included in the device, so that the influence of the output signals between the buttons can be accurately tested; in a production scenario, the several buttons included in the device are divided into button groups according to the various functional modules of the device, so that the output signals of the various functional modules of the device can be quickly monitored. Specifically, when the button is defined as a button group, the current application scenario is obtained. The current application scenario can be determined by the initial output signal of the button. Each button will be initially set before power is turned on. The output signal of the button under the initial setting is the initial output signal. The current application scenario is determined according to the initial output signals of different buttons. In one embodiment, the current application scenario is determined according to the initial output signal of the designated button, for example, the initial output signal of the designated button A is s1, and the initial output signal of the designated button B is s2. According to the initial output signals of the designated button A and the designated button B, the current application scenario is determined to be a test scenario; the initial output signal of the designated button A is s2, and the initial output signal of the designated button B is s1. According to the initial output signals of the designated button A and the designated button B, the current application scenario is determined to be a production scenario. Then, the association relationship of the buttons is determined according to the current application scenario. In different application scenarios, the association relationship of the buttons is different. Then, several buttons with the association relationship are defined as a button group, thereby generating button groups in different application scenarios, which is convenient for monitoring and fool-proof control of the button groups in different application scenarios, thereby improving the applicability of the application scenarios.

[0066] In one embodiment, after obtaining the foolproofing measure of the key and implementing the foolproofing measure for the key, the method further includes:

[0067] Obtaining an output signal of the key after the fool-proofing measure is implemented;

[0068] If the output signal is a preset output value, it is determined that the fool-proofing measure is successfully implemented;

[0069] If the output signal is not the preset output value, it is determined that the foolproofing measure has failed to be implemented, and a message indicating that the foolproofing measure has failed to be implemented is sent to a designated notification channel.

[0070] In this embodiment, after obtaining the foolproofing measures of the key and implementing the foolproofing measures for the key, it is necessary to continue to monitor whether the output signal of the key can be successfully corrected. Specifically, after the foolproofing measures are implemented on the key, the output signal of the key after the foolproofing measures are implemented is obtained, and then it is determined whether the output signal of the key after the foolproofing measures are implemented is the same as the preset output value of the key. If the output signal is the preset output value, it is determined that the foolproofing measures are successfully implemented, and the key is successfully reset to ensure that the output signal of the key can be corrected; if the output signal is not the preset output value, it is determined that the foolproofing measures have failed to be implemented, and the output signal of the key cannot be automatically corrected by the foolproofing measures. At this time, a message of the failure of the foolproofing measures is sent to the designated notification channel to notify the maintenance personnel of the failure of the foolproofing measures for the keys as soon as possible, thereby improving the maintenance efficiency of the equipment. In this embodiment, when each foolproofing measure is successfully or failed, the foolproofing measures are associated with the abnormal state of the key as the basic data for big data statistics, so as to more quickly determine the foolproofing measures for keys that can solve different abnormal states through big data statistics.

[0071] In one embodiment, Figure 2 As shown, the step of obtaining the foolproofing measure of the key and implementing the foolproofing measure for the key includes:

[0072] S41: Acquire several fool-proof measures for the key;

[0073] S42: Obtaining the success rate of the plurality of foolproof measures in handling the abnormal state;

[0074] S43: Selecting the foolproofing measure with the highest success rate as the target foolproofing measure, and implementing the target foolproofing measure on the key.

[0075] In this embodiment, several foolproofing measures for solving different abnormal states are prepared for the abnormal state occurring in the same case. When it is determined that the button is in an abnormal state, several foolproofing measures for the abnormal state of the button are obtained. For example, the button is in an abnormal state under application scenario 1, and the matching foolproofing measures include X1, X2, and X3. The button is in an abnormal state under application scenario 2, and the matching foolproofing measures include H1, H2, and H3. Then, the success rate of the several foolproofing measures in handling the abnormal state is obtained. Specifically, several foolproofing measures for the button are obtained from a preset foolproofing measures database. The foolproofing measures database collects different foolproofing measures prepared for the same button of the same device. , and each foolproof measure has a corresponding success rate, which indicates the success rate of the foolproof measure in handling the abnormal state of the key, and then the foolproof measure with the highest success rate is selected as the target foolproof measure, and the target foolproof measure is implemented for the key. In one embodiment, the foolproof measure and the success rate of abnormal state can be obtained from the foolproof measure database of big data statistics, and then the target foolproof measure for the current abnormal state of the key is matched from the several foolproof measures, that is, the foolproof measure with a high success rate for handling the current abnormal state of the key is preferentially matched as the target foolproof measure, and then the target foolproof measure is implemented for the key to ensure the success rate of the implementation of the foolproof measure. Furthermore, when the target foolproof measure with the highest success rate cannot be successfully implemented, other foolproof measures are selected from the matched several foolproof measures in order from high to low success rates as the target foolproof measures, and then the target foolproof measure is implemented for the key.

[0076] In one embodiment, after selecting the foolproofing measure with the highest success rate as the target foolproofing measure and implementing the target foolproofing measure on the key, the method further includes:

[0077] Determine whether the target fool-proofing measures are successfully implemented;

[0078] If not, determine the danger level of the abnormal state;

[0079] If the danger level meets the warning level, the circuits related to the buttons are controlled to stop working.

[0080] In this embodiment, for the target foolproofing measure with the highest success rate for the abnormal state of the button, after implementing the target foolproofing measure, it is determined whether the target foolproofing measure is successfully implemented. In one embodiment, it is determined whether the target foolproofing measure is successfully implemented. If not, other foolproofing measures are selected from the matched foolproofing measures in order from high to low success rates as the target foolproofing measures, and then the target foolproofing measures are implemented until all the matched foolproofing measures cannot be successfully implemented, and then it is determined that the target foolproofing measure cannot be successfully implemented. If the target foolproofing measure cannot be successfully implemented, it means that the abnormal state of the button cannot be automatically corrected. At this time, the danger level of the abnormal state is determined. When the danger level meets the warning level, the control circuit related to the button stops working. In one embodiment, different buttons control different functions. The danger level of the abnormal state of the button is determined according to the security level of different functions. If the security level of the function controlled by the button is higher, the danger level of the abnormal state when the button is abnormal is higher; if the security level of the function controlled by the button is lower, the danger level of the abnormal state when the button is abnormal is higher. Ensure that the device associated with the button can protect itself to avoid the danger caused by the continuous erroneous operation of the button.

[0081] Reference Figure 3 The present application also provides a key foolproof control device, comprising:

[0082] A signal monitoring module 10, used to obtain the output signal of the key;

[0083] A duration statistics module 20, used to count the duration of the output signal having the same output value within a continuous time range;

[0084] An abnormality judgment module 30, used to determine that the button is in an abnormal state if the duration is longer than a preset time value;

[0085] The foolproof control module 40 is used to obtain the foolproof measures of the key and implement the foolproof measures for the key.

[0086] As described above, it can be understood that the various components of the key fool-proofing control device proposed in the present application can realize the functions of any one of the key fool-proofing control methods described above.

[0087] In one embodiment, the signal monitoring module 10 further includes executing:

[0088] Define several buttons as button groups;

[0089] The output signal of the key group is obtained.

[0090] In one embodiment, the signal monitoring module 10 further includes executing:

[0091] Get the association relationship of the button;

[0092] A number of associated buttons are defined as a button group.

[0093] In one embodiment, the signal monitoring module 10 further includes executing:

[0094] Get the current application scenario;

[0095] The association relationship of the buttons is determined according to the current application scenario.

[0096] In one embodiment, the button foolproof control device further includes a feedback module;

[0097] The feedback module is used to obtain the output signal of the key after the fool-proofing measure is implemented;

[0098] If the output signal is a preset output value, it is determined that the fool-proofing measure is successfully implemented;

[0099] If the output signal is not the preset output value, it is determined that the foolproofing measure has failed to be implemented, and a message indicating that the foolproofing measure has failed to be implemented is sent to a designated notification channel.

[0100] In one embodiment, the foolproof control module 40 further includes executing:

[0101] Obtain several fool-proofing measures for the key;

[0102] Obtaining the success rate of the plurality of foolproofing measures in handling the abnormal state;

[0103] The foolproofing measure with the highest success rate is selected as the target foolproofing measure, and the target foolproofing measure is implemented for the key.

[0104] In one embodiment, the foolproof control module 40 further includes executing:

[0105] Determine whether the target fool-proofing measures are successfully implemented;

[0106] If not, determine the danger level of the abnormal state;

[0107] If the danger level meets the warning level, the circuits related to the buttons are controlled to stop working.

[0108] Reference Figure 4 In the embodiment of the present application, a computer device is also provided. The computer device may be a mobile terminal, and its internal structure may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display device and an input device connected through a system bus. Among them, the network interface of the computer device is used to communicate with an external terminal through a network connection. The display device of the computer device is used to display offline applications. The input device of the computer device is used to receive user input in offline applications. The processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium. The non-volatile storage medium stores an operating system, a computer program and a database. The database of the computer device is used to store raw data. When the computer program is executed by the processor, a key anti-fool control method is implemented.

[0109] The processor executes the key fool-proofing control method, including: obtaining the output signal of the key; counting the duration of the output signal being the same output value within a continuous time range; if the duration is greater than a preset time value, determining that the key is in an abnormal state; obtaining the fool-proofing measures of the key, and implementing the fool-proofing measures for the key. The computer device provides a key fool-proofing control method for automatically correcting abnormal signals that appear on the key, by obtaining the output signal of the key, continuously monitoring the output signal of the key, and monitoring the output signal of each key can facilitate statistics on the output value of the output signal of each key, counting the duration of the output signal being the same output value within a continuous time range, if the duration of the output signal of the key being the same output value within a continuous time range is greater than a preset time value, it can be determined that the key is in an abnormal state, when it is determined that the key is in an abnormal state, different keys have different countermeasures for the occurrence of abnormalities, obtaining the fool-proofing measures of the key, and implementing the fool-proofing measures for the key, which can automatically adjust the key in the abnormal state, improve the accuracy of the output signal of the key, and ensure the correct execution of the device with different keys.

[0110] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by the processor, a control method for key fool-proofing is implemented, comprising the steps of: obtaining an output signal of a key; counting the duration during which the output signal has the same output value within a continuous time range; determining that the key is in an abnormal state if the duration is greater than a preset time value; obtaining fool-proofing measures for the key, and implementing the fool-proofing measures for the key. The computer-readable storage medium provides a key fool-proofing control method for automatically correcting abnormal signals appearing on keys, by acquiring the output signals of keys and continuously monitoring the output signals of keys. The monitoring of the output signals of each key can facilitate statistics on the output values ​​of the output signals of each key, and the duration of the output signal being the same output value within a continuous time range is counted. If the duration of the output signal of the key being the same output value within a continuous time range is greater than a preset time value, it can be determined that the key is in an abnormal state. When it is determined that the key is in an abnormal state, different keys have different response measures for the occurrence of the abnormality. The fool-proofing measures for the keys are acquired and implemented on the keys, so that the keys in the abnormal state can be automatically adjusted, the accuracy of the output signals of the keys can be improved, and the correct execution of devices with different keys can be ensured.

[0111] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0112] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.

[0113] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A key foolproof control method, characterized in that: include: Get the output signal of the key; Counting the duration of the output signal being the same output value within a continuous time range; If the duration is longer than a preset time value, it is determined that the button is in an abnormal state; Obtaining a foolproofing measure for the key, and implementing the foolproofing measure for the key; The step of obtaining the foolproofing measure of the key and implementing the foolproofing measure on the key includes: Obtain several fool-proofing measures for the key; Obtaining the success rate of the plurality of foolproofing measures in handling the abnormal state; Selecting the foolproofing measure with the highest success rate as the target foolproofing measure, and implementing the target foolproofing measure on the key; After obtaining the foolproofing measure of the key and implementing the foolproofing measure for the key, the method further includes: Obtaining an output signal of the key after the fool-proofing measure is implemented; If the output signal is a preset output value, it is determined that the fool-proofing measure is successfully implemented; If the output signal is not the preset output value, it is determined that the foolproofing measure has failed to be implemented, and a message of the foolproofing measure failing to be implemented is sent to a designated notification channel; The step of obtaining the foolproofing measure of the key and implementing the foolproofing measure on the key includes: If the key is in an abnormal state, the foolproofing measure for obtaining the key is to restore the output signal of the key to the original signal, and the foolproofing measure is implemented for the key to restore the output signal of the key; Or, if the key is in an abnormal state, obtaining a foolproof measure for the key is to disconnect the output circuit of the key, and implementing the foolproof measure for the key to set the output circuit of the key to be disconnected; The step of obtaining the output signal of the key comprises: Define several buttons as button groups; Obtaining an output signal of the key group; The plurality of keys are defined as a key group, including: Get the association relationship of the button; A plurality of buttons with associated relationships are defined as a button group; The obtaining of the association relationship of the keys includes: Get the current application scenario; Determine the association relationship of the buttons according to the current application scenario The obtaining of the current application scenario includes: The current application scenario is determined by the initial output signal of the button. Each button will be initially set before power is turned on. The output signal of the button under the initial setting is the initial output signal. The current application scenario is determined based on the initial output signal of different buttons.

2. The key foolproof control method according to claim 1, characterized in that: After selecting the foolproofing measure with the highest success rate as the target foolproofing measure and implementing the target foolproofing measure on the key, the method further includes: Determine whether the target fool-proofing measures are successfully implemented; If not, determine the danger level of the abnormal state; If the danger level meets the warning level, the circuits related to the buttons are controlled to stop working.

3. A key foolproof control device, used to implement the method according to any one of claims 1-2, characterized in that: include: A signal monitoring module is used to obtain the output signal of the key; A duration statistics module, used to count the duration of the output signal being the same output value within a continuous time range; An abnormality judgment module, used for determining that the button is in an abnormal state if the duration is longer than a preset time value; The foolproof control module is used to obtain the foolproof measures of the key and implement the foolproof measures for the key.

4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the key anti-foolproofing control method described in any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the key anti-foolproofing control method described in any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Method and device for selecting configuration measures

    CN104636833A

  • Key control method and device for mobile terminal

    CN104765466A

  • Key detection method and device

    CN109061452A

  • Abnormal key processing method and cooking utensil

    CN110471806A

  • Key processing method, device and apparatus and storage medium

    CN111381686A