Key testing device and key testing method

By designing a key testing device including processing module, action module and electrical signal detection module, the problem of low testing efficiency in the existing technology is solved, and efficient key testing is realized that can generate test results without implanting key values. It is suitable for multiple type of buttons.

CN118962287APending Publication Date: 2024-11-15GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411024367.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing key testing methods are inefficient, and key values ​​need to be implanted and collected to test key stability, which reduces the testing efficiency.

Method used

A key testing device is designed, including a processing module, an action module and an electrical signal detection module. Through the action module, the key is touched and the electrical signal is detected to generate test results without implanting key values. It is suitable for key values ​​and no key values. Press the keys to improve testing efficiency and versatility.

Benefits of technology

It improves the efficiency and versatility of key testing, can quickly generate test results, is suitable for multiple models of keys, reduces the testing steps and calculation amount, and enhances the comprehensiveness and accuracy of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118962287A_ABST
    Figure CN118962287A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a key testing device and a key testing method, and belongs to the field of testing. The key testing device comprises a processing module, an action module and an electric signal detection module, the processing module is used for acquiring test data and controlling the action module to act based on the test data; the action module is used for triggering the key of the equipment to be tested, so that the key is pressed; the electric signal detection module is used for detecting an electric signal of the to-be-detected equipment when the key is pressed; the processing module is used for generating a first test result according to the electric signal. The embodiment of the invention has the technical effects of reducing the test steps, improving the test efficiency and improving the universality of the key test device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing, and in particular to a key testing device and a key testing method. Background Art

[0002] Buttons are commonly used components in the electronic design industry, and are usually divided into mechanical buttons, membrane buttons, and capacitive buttons. Among them, mechanical buttons are widely used, such as keyboards, remote controls, and home appliances. Since mechanical buttons are prone to problems such as stuck, poor triggering, and repeated triggering, it is necessary to test the buttons, and improve the button quality based on the test results to improve the user experience of the buttons.

[0003] Currently, when testing a button, the key value of the button is first implanted, and then the button is pressed to collect the key value, and the collected key value is used to test whether the button can be stably triggered. However, the key value implantation process is time-consuming, which reduces the test efficiency. Summary of the invention

[0004] The embodiments of the present application provide a key testing device and a key testing method to at least solve the technical problem of low testing efficiency.

[0005] According to a first aspect of an embodiment of the present application, a key testing device is provided, the key testing device being used to test a device to be tested, the device to be tested comprising a key;

[0006] The key testing device comprises a processing module, an action module and an electrical signal detection module;

[0007] The processing module is used to obtain test data and control the action of the action module based on the test data;

[0008] The action module is used to touch the button of the device under test so that the button is pressed;

[0009] The electrical signal detection module is used to detect the electrical signal of the device under test when the button is pressed;

[0010] The processing module is used to generate a first test result according to the electrical signal.

[0011] By adopting this embodiment, firstly, when testing a key, there is no need to implant a key value, and a first test result can be generated according to an electrical signal. Since generating an electrical signal when a key is pressed is a basic requirement for the use of the key, the electrical signal can be directly obtained compared to implanting a key value, which reduces the test steps and thus improves the test efficiency. Secondly, since there is no need to generate a test result according to a key value, the key test device in this application can test a device to be tested that generates an electrical signal, that is, it can test both keys with key values ​​and keys without key values, thereby improving the versatility of the key test device.

[0012] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the electrical signal detection module includes at least one probe, which can move to contact the electrical signal detection point of the device under test to detect the electrical signal of the device under test when the button is pressed.

[0013] By adopting this implementation method, the probe can be moved, so that the key test device of the present application can be applicable to various models of devices under test to cope with keys in different positions and different intervals, thereby improving the versatility of the key test device.

[0014] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the key testing device also includes a base plate, which is used for the probe to be plugged in, to support the probe and to transmit the electrical signal detected by the probe to the processing module.

[0015] By adopting this implementation method, the base plate can not only support the probes, but also transmit the electrical signals collected by the probes. On the one hand, it helps to improve the stability of the probes during the test, so that the electrical signals collected by the probes are more closely matched with the electrical signals triggered by the buttons, thereby improving the test accuracy. On the other hand, it helps to reduce the number of connecting wires. Even if there are multiple probes, as long as the base plate is electrically connected to the processing module, the electrical signals collected by all the probes can be transmitted to the processing module. There is no need to electrically connect each probe to the processing module, thereby reducing the number of connecting wires.

[0016] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the electrical signal includes a level signal.

[0017] By adopting this implementation, the level signal can more clearly reflect the situation when the key is pressed, and it is also helpful to reduce the calculation amount of the processing module.

[0018] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the processing module is used to perform at least one of the following steps to generate the first test result, wherein the first test result includes at least one of a key failure result, a key jitter result, a key repeated trigger result, a key signal quality result, and a key life result:

[0019] generating the key failure result according to the number of times the action module touches the key and the presence or absence of the electrical signal each time the action module touches the key,

[0020] or, generating the key failure result according to the presence or absence of the electrical signal each time the action module touches the key,

[0021] Wherein, the key failure result includes at least one of a key failure rate and a key failure number;

[0022] Generate the key jitter result according to the number of the electrical signals and / or the duration of the electrical signals each time the action module touches the key, wherein the key jitter result includes at least one of the key jitter duration and the number of key jitters;

[0023] Generate the key repetition trigger result according to the number of times the electrical signal appears multiple times each time the action module touches the key;

[0024] Generating the key signal quality result according to the waveform of the electrical signal;

[0025] If the key is pressed for a set number of times without generating the electrical signal, the key life result is generated according to the total number of times the key is pressed.

[0026] With this implementation, the first test result may include test results from multiple aspects, which helps to improve the comprehensiveness and reliability of the test.

[0027] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the device under test also includes a circuit board connected to the button, and the circuit board is used to generate the electrical signal when the button is pressed; the button testing device also includes a deformation detection module, which is arranged on the circuit board to detect the deformation value of the circuit board when the button is pressed, and the processing module is used to generate a second test result according to the deformation value, and the second test result is used to characterize the deformation of the circuit board when the button is pressed.

[0028] And / or, the button testing device also includes a pressure detection module, which is arranged at the position where the action module contacts the button to detect the pressure value, and the processing module is used to control the walking distance of the action module according to the pressure value and a preset pressure threshold and / or generate a third test result according to the pressure value, and the third test result is used to characterize the pressure condition of the button when the button is pressed.

[0029] By adopting this implementation method, a deformation detection module is set up so that when a key is tested, the deformation value of the circuit board is detected by the deformation detection module, so that it is easy to know the impact of the key on the circuit board when it is pressed, so that the second test result can reflect the quality relationship between the circuit board and the key, thereby improving the comprehensiveness of the test; the pressure detection module can detect the pressure value of the key. On the one hand, the pressure value can be used to adjust the action amplitude of the action module to ensure that the test process meets the requirements of the test data. On the other hand, the third test result generated according to the pressure value can be combined with the second test result, thereby reflecting the relationship between the pressure value and the deformation value, so as to test the pressure conditions that the key can withstand, the pressure conditions that the circuit board can withstand, etc., thereby improving the comprehensiveness of the test.

[0030] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the deformation detection module includes a strain gauge.

[0031] The present implementation method uses strain gauges, which helps save costs and reduce calculation difficulty.

[0032] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the processing module includes a processing chip, an operation panel, a display module and an analog-to-digital conversion module;

[0033] The pressure detection module and the deformation detection module are both electrically connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is used to convert the analog signals transmitted by the pressure detection module and the deformation detection module into digital signals and upload them to the processing chip;

[0034] The operation panel is electrically connected to the processing chip, and a plurality of buttons with different functions are arranged on the operation panel. When the buttons are triggered, corresponding trigger signals are generated, so that the processing chip obtains corresponding parameters in the test data according to the trigger signals;

[0035] The display module is electrically connected to the processing chip, and the display module is used to display information transmitted by the processing chip, wherein the display module is used to display at least one of the test data, the data under test, the first test result, the second test result, and the third test result;

[0036] The processing chip is also electrically connected to the action module and the electrical signal detection module, and is used to control the action of the action module according to the test data and receive the shaft position information fed back by the action module regarding its shaft position, and the processing chip is used to adjust the pressing depth of the key according to the shaft position information; wherein the action module includes an output shaft, and the shaft position information is used to characterize the position of the output shaft;

[0037] The processing chip is used to generate the first test result according to the electrical signal uploaded by the electrical signal detection module.

[0038] By adopting this implementation, the user can set the test data by setting the operation panel, and the user can view the test data, the data in the test and the first test result by setting the display module, thereby improving the user's test experience and test convenience. In addition, the action module can detect the axis position information by itself, and there is no need to add additional sensors for the user to monitor the walking distance of the action module, which reduces costs and reduces space occupation.

[0039] In combination with the first aspect, in an optional implementation of the embodiment of the present application, at least two action modules are provided, and each of the action modules can be independently controlled by the processing module and act independently.

[0040] With this implementation, since multiple action modules can act independently and be independently controlled by the processing module, it is convenient for users to set different test data for different keys, complete different tests on multiple keys, and improve test efficiency.

[0041] In combination with the first aspect, in an optional implementation of the embodiment of the present application, the test data includes at least one of a test duration, a number of presses, a press frequency, a press strength, a press depth, and a deformation threshold.

[0042] By adopting this implementation method, test data can be set from multiple aspects, which helps to improve test flexibility.

[0043] According to a second aspect of an embodiment of the present application, a key testing method is provided for testing a key of a device to be tested; the method comprises:

[0044] Acquiring test data, wherein the test data is used to characterize test requirements;

[0045] Controlling the pressing operation of the button according to the test data;

[0046] An electrical signal of the device under test is collected when the button is pressed, and a first test result is generated according to the electrical signal.

[0047] With this embodiment, when testing a key, there is no need to implant a key value, and a first test result can be generated based on an electrical signal. Since generating an electrical signal when a key is pressed is a basic requirement for the use of the key, the electrical signal can be directly obtained compared to implanting a key value, which reduces the test steps and improves the test efficiency. Secondly, since there is no need to generate a test result based on a key value, the key test device in the present application can test a device to be tested that generates an electrical signal, that is, it can test both keys with key values ​​and keys without key values, thereby improving the versatility of the key test device.

[0048] In conjunction with the second aspect, in an optional implementation of the embodiment of the present application, after controlling the pressing operation of the key according to the test data, the method further includes:

[0049] Collecting a deformation value of the device under test and / or a pressure value exerted on the button when the button is pressed;

[0050] A second test result is generated according to the deformation value and / or a third test result is generated according to the pressure value.

[0051] The implementation method improves the comprehensiveness of the test.

[0052] In conjunction with the second aspect, in an optional implementation manner of the embodiment of the present application, the method further includes:

[0053] When the first test result, the second test result or the third test result indicates an abnormality, an alarm is issued.

[0054] This implementation method is used to improve the timeliness of users discovering abnormalities.

[0055] In conjunction with the second aspect, in an optional implementation of the embodiment of the present application, controlling the pressing operation of the key according to the test data includes:

[0056] The action of an action module corresponding to the key among a plurality of action modules is controlled according to the test data to press the key.

[0057] With this implementation, different test data correspond to different action modules, thereby pressing different buttons, so that the user can set multiple groups of test data and test multiple buttons at the same time, thereby improving test efficiency.

[0058] The technical effect obtained by the above-mentioned second aspect is similar to the technical effect obtained by the corresponding technical means in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1is a structural block diagram of a key testing device provided in an embodiment of the present application;

[0060] Figure 2 is a structural schematic diagram of a key testing device provided in an embodiment of the present application;

[0061] Figure 3 It is a structural block diagram of a key test device provided by an embodiment of the present application in an application scenario;

[0062] Figure 4 is a flow chart of a key testing method provided in an embodiment of the present application;

[0063] Figure 5 It is a flowchart of generating a second test result and / or a third test result in a key test method provided in an embodiment of the present application;

[0064] Figure 6 It is a schematic diagram of an interface displayed by a display module of a key testing device provided in an embodiment of the present application.

[0065] Figure 7 It is a schematic diagram of an operating panel of a key testing device provided in an embodiment of the present application.

[0066] Figure 8 This is a flowchart of the use of a key testing device provided in an embodiment of the present application in an application scenario.

[0067] Marking instructions: 10, device under test; 20, probe; 30, deformation detection module; 40, base plate; 50, fixing buckle; 60, power interface; 70, signal cable. DETAILED DESCRIPTION

[0068] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0069] It should be understood that the "plurality" mentioned in this article refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and so on are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and so on do not limit the quantity and execution order, and the words "first", "second" and so on do not limit certain different

[0070] In addition, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.

[0071] Buttons are a commonly used component in the electronic design industry. There are many types of buttons, the most commonly used are mechanical buttons, membrane buttons and capacitive buttons. Among them, mechanical buttons are the most widely used and are used in many electronic products, such as keyboards, remote controls, and home appliances. Because buttons are prone to failure, such as poor quality of mechanical buttons causing stuck, poor triggering or repeated triggering, or after long-term use, the buttons lose elasticity, become loose or shake. These will affect the user experience and can only be returned to the factory for repair, resulting in a decline in the quality of electronic products or problems with reputation, affecting the economic benefits of the product. Therefore, a reliable button test device is very important.

[0072] Based on this, the present application provides a key testing device, which can detect problems such as key quality, key life and key circuit design. It has the characteristics of multi-axis control and each axis can independently execute different test programs. At the same time, it can monitor parameters such as pressing force, key depth, deformation value and level signal.

[0073] Reference Figure 1 As shown in the structural block diagram of the key test device, a key test device provided in an embodiment of the present application is used to test a device under test 10, and the device under test 10 includes keys.

[0074] The key test device includes a processing module, an action module and an electrical signal detection module;

[0075] The processing module is used to obtain test data and control the action module based on the test data;

[0076] The action module is used to trigger a button of the device under test 10 so that the button is pressed;

[0077] The electrical signal detection module is used to detect the electrical signal of the device under test 10 when the key is pressed;

[0078] The processing module is used to generate a first test result according to the electrical signal.

[0079] The processing module has functions such as communication and calculation, such as a chip, a processor, etc. The specific structure and type of the processing module are not limited in this embodiment, and the purpose is to control the action module and generate the first test result.

[0080] Among them, the action module has a driving function, for example, it can be a motor, a cylinder, etc., and this embodiment does not limit the specific structure of the action module. It is intended to be able to drive the button so that the button is pressed. It should be noted that the action module can also include a transmission structure, which relies on the transmission structure to drive the button to be pressed. For example, in an application scenario, the action module includes a stepper motor and a transmission structure. The output shaft of the stepper motor is connected to the input end of the transmission structure. The stepper motor drives the input end of the transmission structure to rotate. After the transmission of the transmission structure, the output end of the transmission structure makes a linear motion, so that after contacting the button, the button is driven to be pressed. Among them, the transmission structure is such as a gear rack and other structures, and this embodiment does not specifically limit this.

[0081] It should be noted that the key being pressed refers to the process in which the key moves from the initial position to the final position and then resets from the final position to the initial position. The initial position refers to the position where the key is in a relaxed state, that is, the position where the upper surface of the key is at the highest height. Correspondingly, the final position refers to the position where the key is in a pressed state, that is, the position where the upper surface of the key is at the lowest height. When the key is in the final position, the key can cause the device under test 10 to generate an electrical signal.

[0082] The electric signal detection module refers to a structure capable of collecting electric signals, which may be a circuit structure. For example, after the electric signal detection module contacts the device under test 10, the circuit structure of the electric signal detection module is turned on, so that the electric signal enters the circuit structure, thereby obtaining the electric signal generated by the device under test 10. The electric signal detection module may also be a device capable of detecting electric signals, such as a probe 20, which is not specifically limited in this embodiment.

[0083] The first test result refers to the test result that can be generated using an electrical signal. It should be noted that only when the key is successfully pressed can the device under test 10 generate an electrical signal. Therefore, the minimum pressing depth and minimum pressing force of the key can be tested according to the presence or absence of the electrical signal, the size of the electrical signal, etc., so as to obtain the first test result. That is, the first test result refers to the test result related to the electrical signal. It should be emphasized that, in an ideal state, when the key is successfully pressed, the device under test should generate an electrical signal of fixed amplitude, fixed number and fixed length, but in the actual test process, affected by the quality of the device under test, when the key is pressed, the device under test may generate an electrical signal, or no electrical signal may be generated. In other words, the electrical signal detected by the electrical signal detection module may be a null value or an electrical signal that has not changed, indicating that the key is pressed but the device under test does not generate an electrical signal.

[0084] In an application scenario, after setting the test data, you can determine parameters such as which button to test, the number of tests, the test duration, the interval between consecutive button presses, the pressing depth, the pressing force, etc. based on the test data. The post-processing module controls the action module to move, and the action module moves downward. After contacting the button, it drives the button to move downward, so that the button moves from the highest position to the lowest position, and the device to be tested 10 generates an electrical signal. The post-processing module controls the action module to move upward, and the button automatically rebounds to the highest position, and the action module moves to the initial position and stops. A test is completed. The test is repeated until the actual number of tests or the actual test duration reaches the number of tests or the test duration in the test data, and then the test is completed to generate the first test result.

[0085] With this embodiment, firstly, when testing a key, there is no need to implant a key value, and a first test result can be generated based on an electrical signal. Since generating an electrical signal when a key is pressed is a basic requirement for the use of the key, the electrical signal can be directly obtained compared to implanting a key value, which reduces the test steps and improves the test efficiency. Secondly, since there is no need to generate a test result based on a key value, the key test device in the present application can test a device to be tested 10 that generates an electrical signal, that is, it can test both keys with key values ​​and keys without key values, thereby improving the versatility of the key test device.

[0086] In a possible embodiment of the present application, Figure 2 As shown, the electrical signal detection module includes at least one probe 20, and the at least one probe 20 can move to contact the electrical signal detection point of the device under test 10 to detect the electrical signal of the device under test 10 when the key is pressed.

[0087] Among them, the electric signal detection point of the device under test 10 refers to the point where the corresponding electric signal generated by the device under test 10 can be detected when the button is pressed. The point can be determined according to the structure of the specific device under test 10. For example, for some devices under test 10 with an electric signal output interface, the electric signal output interface can be determined as the electric signal detection point, so that after the button is pressed, the device under test 10 transmits the electric signal generated by the button to the electric signal output interface. Since the probe 20 is in contact with the electric signal output interface, the probe 20 obtains the electric signal and transmits the electric signal to the processing module. For some devices under test 10 that do not have an electric signal output interface or the electric signal output interface is not easy to set the probe 20, a certain point of the line used by the device under test 10 to transmit electric signals can be used as an electric signal detection point. That is, as long as the point that can obtain the corresponding electric signal when the button is pressed can be determined as an electric signal detection point. This embodiment does not make specific restrictions on this.

[0088] With this embodiment, the probe 20 can be moved before testing, so that the key test device of the present application can be applicable to various types of devices under test 10 to cope with keys at different positions and different intervals, thereby improving the versatility of the key test device.

[0089] Optionally, in an implementation of this embodiment, as Figure 2 As shown, the key test device further includes a base plate 40, and the base plate 40 is used for inserting the probe 20, supporting the probe 20 and transmitting the electrical signal detected by the probe 20 to the processing module.

[0090] Among them, the base plate 40 refers to a device that can fix the probe 20 and transmit electrical signals. For example, in an application scenario, a plurality of slots are provided on the base plate 40, and a circuit board for transmitting electrical signals is provided at the bottom of the slot. The base plate 40 is electrically connected to the processing module through a signal cable 70, so that when the device to be tested 10 needs to be tested, the corresponding slot is found according to the position of the electrical signal detection point of the device to be tested 10, and then the probe 20 is inserted into the slot, so that the probe 20 is not easy to tip over and shake. The probe 20 is located in the slot, and the upper end of the probe 20 contacts the electrical signal detection point, and the lower end of the probe 20 contacts the circuit board at the bottom of the slot to realize the transmission of the electrical signal. In addition, a plurality of clamps that can clamp the pins can be provided on the base plate 40 for the probe 20 to be plugged in. This embodiment does not limit the specific structure of the base plate 40.

[0091] By adopting this embodiment, the base plate 40 can not only support the probe 20, but also transmit the electrical signal collected by the probe 20. On the one hand, it helps to improve the stability of the probe 20 during the test, so that the electrical signal collected by the probe 20 is more closely matched with the electrical signal triggered by the button, thereby improving the test accuracy. On the other hand, it helps to reduce the number of connecting wires. Even if there are multiple probes 20, as long as the base plate 40 is electrically connected to the processing module, the electrical signals collected by all the probes 20 can be transmitted to the processing module. There is no need to electrically connect each probe 20 to the processing module, thereby reducing the number of connecting wires.

[0092] Optionally, in an implementation manner of this embodiment, the electrical signal includes a level signal.

[0093] The level signal includes a high level and a low level, and the level signal has a maximum amplitude, a minimum amplitude, and a waveform formed by the high and low levels. According to these characteristics of the level signal, the first test result can be generated.

[0094] By adopting this embodiment, the level signal can more clearly reflect the situation when the key is pressed, and it is also helpful to reduce the calculation amount of the processing module.

[0095] Optionally, in an implementation of this embodiment, the processing module is used to perform at least one of the following steps to generate a first test result, wherein the first test result includes at least one of a key failure result, a key jitter result, a key repeated trigger result, a key signal quality result, and a key life result:

[0096] Step A: Generate a key failure result based on the number of times the action module touches the key and the presence or absence of an electrical signal each time the action module touches the key.

[0097] Or, a key failure result is generated according to the presence or absence of an electrical signal each time the action module touches the key.

[0098] The key failure result includes at least one of a key failure rate and a key failure number.

[0099] Specifically, each time the action module touches a key, the number of presses is recorded. Each time an electrical signal is generated, the number of valid key presses is recorded. The number of invalid key presses can be obtained by subtracting the total number of valid key presses from the total number of presses.

[0100] By comparing the number of key failures with the total number of presses, the key failure rate can be obtained.

[0101] The key failure rate refers to the probability that a key is pressed but not effective, and the key failure count refers to the total number of times a key is pressed but not effective.

[0102] Step B: Generate a key jitter result according to the number of electrical signals and / or the duration of the electrical signals each time the action module touches the key.

[0103] The key jitter result includes at least one of the key jitter duration and the key jitter times.

[0104] Specifically, when a key is pressed, it will vibrate due to the influence of the mechanical structure, and the vibrating key will cause the device under test 10 to generate multiple electrical signals. Based on this, the number of key jitters can be determined according to the number of electrical signals generated each time the key is pressed.

[0105] The duration of key jitter can be determined based on the length of time the electrical signal is unstable.

[0106] That is, the key jitter result may include not only the key jitter duration and the key jitter times, but also the key jitter occurrence.

[0107] Step C: Generate a key repetition trigger result according to the number of times the electrical signal appears multiple times each time the action module touches the key.

[0108] When a key is pressed once but generates two, three or more electrical signals, it can be determined that the key is repeatedly triggered, and then a key repeatedly triggered result is generated. There are differences between the multiple electrical signals generated when the key is jittered and the multiple electrical signals generated when the key is repeatedly triggered, such as differences in amplitude or waveform. Based on this difference, it can be distinguished whether the key is jittered or repeatedly triggered, which is not specifically limited in this embodiment.

[0109] Step D: Generate a key signal quality result according to the waveform of the electrical signal.

[0110] Specifically, after pressing the key multiple times, if the waveform of the electrical signal is consistent or does not change much or matches the preset waveform, a key signal quality result with high signal quality can be determined, otherwise a key signal quality result with low signal quality is generated.

[0111] Step E: If no electrical signal is generated when the key is pressed for a set number of times, a key life result is generated based on the total number of times the key is pressed.

[0112] Specifically, after pressing the key for many times, the life of the key may be 0, and no electrical signal is generated at this time. When the key is pressed for a set number of times continuously, and still no electrical signal is generated, the key life result can be generated according to the total number of times the key is pressed. Preferably, the total number of times the key is pressed is used as the key life result, so that the number of presses that the key can withstand can be known through the key life result.

[0113] With this implementation, the first test result may include test results from multiple aspects, which helps to improve the comprehensiveness and reliability of the test.

[0114] Optionally, in an implementation of this embodiment, as Figure 2 As shown, the device under test 10 further includes a circuit board for connecting to the key, and the circuit board is used to generate an electrical signal when the key is pressed;

[0115] The key testing device further includes a deformation detection module 30, which is arranged on the circuit board and detects the deformation value of the circuit board when the key is pressed;

[0116] The processing module is used to generate a second test result according to the deformation value.

[0117] The second test result is used to characterize the deformation of the circuit board when the key is pressed, wherein the deformation condition includes deformation degree, deformation size, etc. Specifically, the deformation degree may be high, medium, or low.

[0118] It should be noted that the deformation detection module 30 is used to be arranged on the circuit board, not on the button. After the deformation detection module 30 is arranged on the circuit board, when the circuit board is deformed, the deformation detection module 30 can detect the deformation value.

[0119] The second test result generated according to the deformation value is easy to characterize the deformation resistance of the circuit board, the relationship between the deformation degree of the circuit board and the pressing force and pressing depth of the key, etc. For example, when the deformation value in the second test result is large, but the pressing force and pressing depth are small, the second test result can characterize that the deformation resistance of the circuit board is weak.

[0120] By adopting this embodiment, a deformation detection module 30 is set up, so that when the key is tested, the deformation value of the circuit board is detected by the deformation detection module 30, so that it is easy to know the impact of the key on the circuit board when it is pressed, so that the second test result can reflect the quality relationship between the circuit board and the key, thereby improving the comprehensiveness of the test.

[0121] Optionally, in an implementation of this embodiment, the deformation detection module 30 includes a strain gauge.

[0122] The present embodiment uses strain gauges, which helps save costs and reduce calculation difficulty.

[0123] Optionally, in an implementation of this embodiment, the key test device includes a pressure detection module, which is arranged at a position where the action module contacts the key to detect a pressure value;

[0124] The processing module is used to control the walking distance of the action module according to the pressure value and a preset pressure threshold and / or generate a third test result according to the pressure value.

[0125] The third test result is used to characterize the pressure condition of the key when the key is pressed, wherein the pressure condition includes pressure degree, pressure size, etc. Specifically, the pressure degree may be high, medium, or low.

[0126] The third test result is similar to the first test result and the second test result, except that the third test result is related to the pressure value. In an application scenario, the first test result is combined with the third test result to determine the relationship between the pressure value and the key being successfully pressed. Specifically, when the pressure value represented by the third test result is within a certain range, if the key failure rate represented by the first test result is the lowest, the optimal pressure value of the key can be determined.

[0127] By adopting this embodiment, the pressure detection module can detect the pressure value exerted on the button. On the one hand, the pressure value can be used to adjust the action amplitude of the action module to ensure that the test process meets the requirements of the test data. On the other hand, the third test result generated according to the pressure value can be combined with the second test result to reflect the relationship between the pressure value and the deformation value, so as to test the pressure conditions that the button can withstand, the pressure conditions that the circuit board can withstand, etc., thereby improving the comprehensiveness of the test.

[0128] Optionally, in an implementation of this embodiment, as Figure 3 As shown, the processing module includes a processing chip, an operation panel, a display module and an analog-to-digital conversion module;

[0129] The pressure detection module and the deformation detection module 30 are both electrically connected to the analog-to-digital conversion module, which is used to convert the analog signals transmitted by the pressure detection module and the deformation detection module 30 into digital signals and upload them to the processing chip;

[0130] The operation panel is electrically connected to the processing chip. A plurality of buttons with different functions are arranged on the operation panel. When the buttons are triggered, corresponding trigger signals are generated so that the processing chip obtains corresponding parameters in the test data according to the trigger signals.

[0131] The display module is electrically connected to the processing chip, and the display module is used to display information transmitted by the processing chip, wherein the display module is used to display at least one of the test data, the data under test, the first test result, the second test result, and the third test result;

[0132] The processing chip is also electrically connected to the action module and the electrical signal detection module, and is used to control the action module according to the test data and receive the shaft position information fed back by the action module regarding its shaft position, and the processing chip is used to adjust the pressing depth of the key according to the shaft position information; wherein the action module includes an output shaft, and the shaft position information is used to characterize the position of the output shaft;

[0133] The processing chip is used to generate a first test result according to the electrical signal uploaded by the electrical signal detection module.

[0134] Specifically, the axis position information is related to the pressing depth, because the axis position information and the pressing depth are both the stroke of the axis movement. The axis itself will have a position information. When the contact point of the axis touches the button, the contact point will generate pressure. The stroke after feeling the pressure is the pressing depth, but it has nothing to do with the pressing force. The two data, pressing depth and pressing force, are used to simulate the situation where the button is subjected to different pressing force and pressing depth. Different pressing force or pressing depth will have a certain impact on the button itself and the controller. For example, if the pressing force is too large, it is more likely to cause damage to the button, or the button may not rebound. In normal use, only one of these two data can be set. For example, if the pressing force is set, the pressing depth cannot be set, because the axis will stop when the pressure reaches the set value.

[0135] With this embodiment, by setting the operation panel, it is convenient for the user to set the test data, and by setting the display module, it is convenient for the user to view the test data, the data in the test and the first test result, thereby improving the user's test experience and test convenience. In addition, the action module can detect the axis position information by itself, and there is no need to add additional sensors for the user to monitor the walking distance of the action module, which reduces costs and reduces space occupation.

[0136] Optionally, in an implementation of this embodiment, at least two action modules are provided, and each action module can be independently controlled by the processing module and act independently.

[0137] Among them, being independently controlled by the processing module and acting independently means that multiple action modules can be controlled independently, that is, the control process can be different. For example, there are two action modules, namely action modules A and B. The processing module can first control the action module A to act, and then control the action module B to act, and the action frequency and action duration of action modules A and B can be different.

[0138] With this implementation, since multiple action modules can act independently and be independently controlled by the processing module, it is convenient for users to set different test data for different keys, complete different tests on multiple keys, and improve test efficiency.

[0139] Optionally, in an implementation of this embodiment, the parameters in the test data include at least one of a test duration, a number of presses, a press frequency, a press strength, a press depth, and a deformation threshold.

[0140] By adopting this implementation method, test data can be set from multiple aspects, which helps to improve test flexibility.

[0141] The present application also provides a key testing method for testing the keys of a device under test. Figure 4 As shown, the method includes:

[0142] S100: Obtain test data.

[0143] Among them, test data is used to characterize test requirements.

[0144] S102: Control the pressing operation of the key according to the test data.

[0145] S104 , collecting an electrical signal of the device under test 10 when the button is pressed and generating a first test result according to the electrical signal.

[0146] With this embodiment, when testing a key, there is no need to implant a key value, and a first test result can be generated based on an electrical signal. Since generating an electrical signal when a key is pressed is a basic requirement for using the key, the electrical signal can be directly obtained compared to implanting a key value, which reduces the test steps and improves the test efficiency. Secondly, since there is no need to generate a test result based on a key value, the key test device in the present application can test a device to be tested 10 that generates an electrical signal, that is, it can test both keys with key values ​​and keys without key values, thereby improving the versatility of the key test device.

[0147] Optionally, in an implementation of this embodiment, as Figure 5 As shown, after controlling the pressing operation of the key according to the test data, the method further includes:

[0148] S200, collecting the deformation value of the device under test 10 and / or the pressure value of the key when the key is pressed;

[0149] S202: Generate a second test result according to the deformation value and / or generate a third test result according to the pressure value.

[0150] By adopting this embodiment, the comprehensiveness of the test is improved.

[0151] Optionally, in an implementation of this embodiment, the method further includes:

[0152] When the first test result, the second test result or the third test result indicates an abnormality, an alarm is issued.

[0153] Specifically, it is possible to determine whether there is an abnormality in the first test result, the second test result or the third test result by means of preset thresholds and / or alarm conditions, so that an alarm is issued when an abnormality exists.

[0154] There are many ways to warn, such as setting an alarm light or buzzer on the control panel, or using the color of the light to warn, which is not specifically limited in this embodiment.

[0155] This embodiment can improve the timeliness of users discovering abnormalities.

[0156] Optionally, in an implementation of this embodiment, controlling the pressing operation of a key according to the test data includes:

[0157] The action of the action modules corresponding to the keys in the plurality of action modules is controlled according to the test data to press the keys.

[0158] With this implementation, different test data correspond to different action modules, thereby pressing different buttons, so that the user can set multiple groups of test data and test multiple buttons at the same time, thereby improving test efficiency.

[0159] In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The steps shown in the relevant flow chart can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flow chart, in some cases, the steps shown or described can be executed in an order different from that here. In other words, the order of steps described in the foregoing embodiments is only an example, and it is also within the scope of protection of the embodiments of the present application to reasonably adjust the order of steps based on the content of the embodiments of the present application.

[0160] In a specific implementation of the embodiment of the present application, the key test device is as follows: Figure 3As shown, it includes a processing chip, specifically FPGA. The key test device involved in this application includes data interaction of AD digital-to-analog conversion module, key signal acquisition and interface communication of the operation panel, power control and probe 20 signal acquisition, display screen drive and other functions. Therefore, the required logic control unit and IO pin resources are relatively rich. Here, 10CL080YF780C8G can be selected as the processing chip of this device. FPGA collects level signals by key matrix scanning. FPGA and the operation panel are the same hardware control board, so they are connected through the wires on the hardware control board. The display panel (display module) uses a serial port screen, which is a color LCD module that uses serial communication to control the display. The main interfaces used for hardware connection are UART, RS-232, and RS-485. In this key test device, information is exchanged with the processing chip through the interface and external wiring. In the motor (action module) control, the motor is mainly composed of 5 linear stepper motors and motor drivers. The linear stepper motor usually needs to cooperate with a special linear stepper motor driver to achieve precise position control, and the position information is fed back through the collected displacement value. The linear motor performs telescopic movement to push the motor output shaft to perform pressing movement. The FPGA needs to send a pulse control signal to the driver through the cable for control. After the device under test 10 is fixed, the electrical signal detection point of the device under test 10 can be contacted through the probe 20 at the bottom, and then the probe 20 lead is directly connected to the port of the FPGA to monitor the level signal.

[0161] This device has two sensors: deformation sensor (deformation detection module 30) and pressure sensor (pressure detection module). The deformation sensor generally uses strain gauges. The working principle is based on the strain effect, that is, when the conductor or semiconductor material produces mechanical deformation under the action of external force, its resistance value changes accordingly. It is converted into a voltage signal through a resistance voltage linear conversion circuit, which can be converted into a digital signal by an AD conversion module, and can be converted into a deformation value according to the linear correspondence. The pressure sensor is installed at the contact position between the motor output shaft and the button. The pressure feedback is performed through the level change collected by the pressure sensor, and the data is finally transmitted to the FPGA through AD digital-to-analog conversion. The AD digital-to-analog conversion module can use the ADS8688 chip as a sampling chip. It is an 8-channel chip based on a 16-bit successive approximation analog-to-digital converter with a throughput of up to 500kSPS. In this device, only two ADS8688 chips are needed for data acquisition and conversion. Finally, the SPI data protocol is used to connect to the FPGA through a cable for data transmission.

[0162] The interface of the display panel is as follows Figure 6As shown, the interface is relatively simple and neat, and is divided into three types of information: settings, status, and running results. The setting information includes running time, number of presses, pressing frequency, pressing force, pressing depth, deformation value setting, test power switch, and motor power switch. The status information includes the current running time, the current number of presses, the program running status, the current pressure intensity, the current axis position, and alarm information. The running result information includes the number of failed presses, the key failure rate, the key jitter time, the number of key repeated triggers, and the test point deformation value.

[0163] The main buttons on the operation panel are as follows: Figure 7 As shown, the upper left corner is respectively power on, power off, program start and stop, the lower left corner is the axis number selection, through the toggle switch to select different axes to set parameters, the upper end of the panel is the indicator light and alarm signal of each axis number, when the axis number program is running, the indicator light is green, when the axis number is not executing the program, the axis number is yellow, when the axis number program ends, the indicator light is red, when an alarm occurs, the alarm indicator light is red, and the rest of the time it is off. Then the middle part of the operation panel is some function keys and digital input, the specific description is shown in the following table.

[0164] Key Name Function Power on Turn on the device power Shutdown Power off the device start up Start the program stop Stop the program Axis number selection Select the axis number by rotating Run time Set up the run time Number of runs Set the number of runs Operating frequency Set the operating frequency Deformation value Set the deformation value that cannot be exceeded when pressing the circuit board Pressing pressure Set the pressing force Compression depth Setting the compression depth Reset All Reset all axis data and return the axis to the default position Current axis reset Reset the parameters of the currently selected axis and return to the default position Test power on Turn on the test controller power switch Test Power Off Turn off the test controller power switch Motor power start Turn on the motor power switch Motor power off Turn off the motor power switch ↑ Select an option above ↓ Select an option below ← Select the option on the left → Select the option on the right Screen capture Save the current screen interface Data Retention Save the data of the current axis Numbers 0 to 9 Represents input of numbers 0 to 9 C Clear all numbers in the current input field X Clear the last entered number

[0165] How to use the key test device Figure 8 As shown, first, the device to be tested 10 needs to be fastened with a fixed buckle 50. If there is a test requirement, the deformation detection module 30 and the probe 20 on the upper base plate 40 can be connected, and the deformation detection module 30 is attached to the surface of the circuit board of the device to be tested 10 or the probe 20 is contacted with the electrical signal detection point of the circuit board of the device to be tested 10 to measure the deformation value or level signal. The power interface 60 is electrically connected to the power supply part of the device through a cable, and the FPGA controls the connection and disconnection of its power supply. The data of the deformation detection module 30 is connected to the AD conversion module through the signal cable 70. The system can make statistics on these data for reference by testers. The next step is to start the system, and then set the test data by selecting the axis number, align the axis with the position of the button, and choose to turn on or off the power of the test equipment. These power supplies are mainly used for the probe 20 to detect signals, or can also be used as functional tests of buttons. Before the test, the motor power supply needs to be started, and then the program start button can be pressed to push the axis to press the button of the device to be tested 10. After the test is completed, the program will stop, and the indicator light of the axis will be replaced with red. If an abnormality occurs during the test, such as a motor system failure, exceeding the set deformation value, or no response to the pressing signal for a long time, the system will sound an alarm and suspend the program. The operator needs to troubleshoot the fault through the printed alarm information. After rectification, press the program start button to continue the program.

[0166] In the setting of test parameters, a variety of test parameters can be provided to the tester, such as test time, pressing frequency, number of pressings, pressing strength, pressing depth, deformation value, etc. If the running time and pressing frequency are set, the number of pressings will be displayed through calculation. If the number of pressings and frequency are set, the system will calculate the required running time and timing through these two parameters. The device can also monitor the level signal and the deformation value of the circuit board when pressed, and these values ​​will be displayed in real time on the display. If the axis is pressed but the level signal generated when the button is pressed is not detected, the system will count it as a failure. The count will be compared with the total number of times the button is pressed to get the failure rate. In addition, the level signal acquisition function uses a higher frequency signal acquisition. When the button is pressed, there is mechanical jitter, which will also cause the signal to have a short period of level jitter when it is pressed. The system can obtain the level change of the button jitter through this higher frequency signal scan, calculate the time from the button to the signal level stabilization, and get its button jitter time. This can provide a reference for the subsequent circuit optimization and program design, bringing more stable and faster button operation. Level signal acquisition can also be used to check whether the signal has problems such as repeated triggering.

[0167] In terms of parameter settings, there are two options: press depth and press strength. Press depth uses sensors to monitor the position and movement of the axis, and press strength uses pressure sensors to detect the force and strength of the axis and button presses, and converts these data into digital signals through digital-to-analog conversion and transmits them to the system. After we fix the test board, we can determine the pressed position by setting the press depth, or when we test, we can set the press depth to detect the deformation of the PCB, the pressing force, and the impact on the life of the button. The pressing strength is the force with which the axis presses the button. Through these settings, we can study the deformation, displacement, level signal, and button life caused by pressing. However, we should be cautious when setting these two parameters to avoid damage to the button or PCB due to excessive parameters.

[0168] This device also has an alarm system. When there is a problem with the motor drive device, a button does not respond after being pressed for a long time, or the set deformation value is exceeded, the alarm indicator light will light up and an error message will be printed on the display interface. The tester must make corrections based on the error message before continuing the test.

[0169] The sequence of serial numbers or introduction of the embodiments of the present application is for description only and does not represent the superiority or inferiority of the embodiments.

[0170] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0171] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0172] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0173] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)). It is worth noting that the computer-readable storage medium mentioned in the embodiment of the present application may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0174] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0175] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A key testing device, characterized in that: The button testing device is used to test a device under test, and the device under test includes a button; The key testing device comprises a processing module, an action module and an electrical signal detection module; The processing module is used to obtain test data and control the action of the action module based on the test data; The action module is used to touch the button of the device under test so that the button is pressed; The electrical signal detection module is used to detect the electrical signal of the device under test when the button is pressed; The processing module is used to generate a first test result according to the electrical signal.

2. The key testing device according to claim 1, characterized in that: The electrical signal detection module includes at least one probe, and the probe is movable to contact the electrical signal detection point of the device under test to detect the electrical signal of the device under test when the key is pressed.

3. The key testing device according to claim 2, characterized in that: The key testing device further includes a base plate, which is used for inserting the probe, supporting the probe, and transmitting the electrical signal detected by the probe to the processing module.

4. The key testing device according to any one of claims 1 to 3, characterized in that: The processing module is used to perform at least one of the following steps to generate the first test result, wherein the first test result includes at least one of a key failure result, a key jitter result, a key repeated trigger result, a key signal quality result, and a key life result: generating the key failure result according to the number of times the action module touches the key and the presence or absence of the electrical signal each time the action module touches the key, or, generating the key failure result according to the presence or absence of the electrical signal each time the action module touches the key, Wherein, the key failure result includes at least one of a key failure rate and a key failure number; Generate the key jitter result according to the number of the electrical signals and / or the duration of the electrical signals each time the action module touches the key, wherein the key jitter result includes at least one of the key jitter duration and the number of key jitters; Generate the key repetition trigger result according to the number of times the electrical signal appears multiple times each time the action module touches the key; Generating the key signal quality result according to the waveform of the electrical signal; If the key is pressed for a set number of times without generating the electrical signal, the key life result is generated according to the total number of times the key is pressed.

5. The key testing device according to claim 1, characterized in that: The device under test further includes a circuit board connected to the button, and the circuit board is used to generate the electrical signal when the button is pressed; the button testing device further includes a deformation detection module, which is arranged on the circuit board to detect the deformation value of the circuit board when the button is pressed, and the processing module is used to generate a second test result according to the deformation value, and the second test result is used to characterize the deformation of the circuit board when the button is pressed. And / or, the button testing device also includes a pressure detection module, which is arranged at the position where the action module contacts the button to detect the pressure value, and the processing module is used to control the walking distance of the action module according to the pressure value and a preset pressure threshold and / or generate a third test result according to the pressure value, and the third test result is used to characterize the pressure condition of the button when the button is pressed.

6. The key testing device according to claim 5, characterized in that: The deformation detection module includes a strain gauge.

7. The key testing device according to claim 5, characterized in that: The processing module includes a processing chip, an operation panel, a display module and an analog-to-digital conversion module; The pressure detection module and the deformation detection module are both electrically connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is used to convert the analog signals transmitted by the pressure detection module and the deformation detection module into digital signals and upload them to the processing chip; The operation panel is electrically connected to the processing chip, and a plurality of buttons with different functions are arranged on the operation panel. When the buttons are triggered, corresponding trigger signals are generated, so that the processing chip obtains corresponding parameters in the test data according to the trigger signals; The display module is electrically connected to the processing chip, and the display module is used to display information transmitted by the processing chip, wherein the display module is used to display at least one of the test data, the data under test, the first test result, the second test result, and the third test result; The processing chip is also electrically connected to the action module and the electrical signal detection module, and is used to control the action of the action module according to the test data and receive the shaft position information fed back by the action module regarding its shaft position, and the processing chip is used to adjust the pressing depth of the key according to the shaft position information; wherein the action module includes an output shaft, and the shaft position information is used to characterize the position of the output shaft; The processing chip is used to generate the first test result according to the electrical signal uploaded by the electrical signal detection module.

8. The key testing device according to claim 1, characterized in that: At least two action modules are provided, and each of the action modules can be independently controlled by the processing module and act independently.

9. The key testing device according to claim 1, characterized in that: The test data includes at least one of a test duration, a number of presses, a press frequency, a press strength, a press depth, and a deformation threshold.

10. A key testing method, characterized in that: Used to test the buttons of the device to be tested; the method comprises: Acquiring test data, wherein the test data is used to characterize test requirements; Controlling the pressing operation of the button according to the test data; An electrical signal of the device under test is collected when the button is pressed, and a first test result is generated according to the electrical signal.

11. The key testing method according to claim 10, characterized in that: After controlling the pressing operation of the key according to the test data, the method further includes: Collecting a deformation value of the device under test and / or a pressure value exerted on the button when the button is pressed; A second test result is generated according to the deformation value and / or a third test result is generated according to the pressure value.

12. The key testing method according to claim 10, characterized in that: The step of controlling the pressing operation of the button according to the test data comprises: The action of an action module corresponding to the key among a plurality of action modules is controlled according to the test data to press the key.