Key detection device and method thereof

By designing a keyboard key testing tool to capture and analyze key-value data, the problems of low key detection efficiency and easy missed false detection in the existing technology of smart terminal equipment are solved, and fast and accurate key detection is achieved, ensuring 100% detection coverage.

CN119492983APending Publication Date: 2025-02-21PANDA ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411458966.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The prior art is less efficient when detecting the physical functions of smart terminal devices and the effectiveness of numeric keyboard keys, and is prone to missed detection and missed detection. It also requires opening the corresponding functional interface or application software, which is relatively cost-effective.

Method used

Design a keyboard key testing tool to determine the validity of keyboard keys by capturing the key values ​​generated when pressing keys and performing data matching analysis on the key values. This tool includes function keypads, digital keypads, processors and displays. The processor uses the processor to obtain key values ​​and light up the corresponding function icons to determine whether to scan and traverse the key value table to determine that all keys are valid.

Benefits of technology

It realizes fast and accurate detection of keyboard keys of smart terminal devices, improves detection efficiency and accuracy, ensures 100% detection coverage, and avoids missed and missed detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119492983A_ABST
    Figure CN119492983A_ABST
Patent Text Reader

Abstract

The invention discloses a key detection device and method. The method comprises the following steps: pressing keys in a function key area or a number key area; key values of the function key area or the number key area are obtained through the processor; on the basis of the obtained key value of the function key area or the number key area, lightening a corresponding function icon on the display screen; using the display screen to prompt the remaining untested keys; and judging whether to scan and traverse the key value table or not by utilizing the processor, and if so, judging that all the key icons are lightened or all the key icons pass the detection. A keyboard key testing tool is designed, aiming at a WINDOWS window interface, a display interface corresponding to physical keyboard keys is manufactured, key values generated during key pressing are captured, key value data matching analysis is carried out on the key values, and the effectiveness of the keyboard keys is judged. When all keyboard keys are enumerated one by one, the keys are detected at one time, so that the detection efficiency and accuracy are improved. Keyboard keys can be detected by 100%, and the omission ratio is 0.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a key detection device and a method thereof, belonging to the technical field of key detection. Background Art

[0002] A smart terminal device with physical functions and numeric keyboard keys needs to undergo consistency testing during mass production, i.e., key validity testing. Conventional keyboard key testing methods are to open the corresponding application interface (such as WORD, Notepad, etc.) in the WINDOW window interface, press the corresponding function and numeric keyboard keys, that is, display the corresponding function on the interface or view the corresponding key content, indicating that the corresponding physical function and numeric keyboard keys are valid. For example, to detect the validity of the numeric key "1": open Notepad or this counter on the display interface, enter "1", and the corresponding interface displays the number "1", which verifies that the device keyboard key "1" is valid; to detect the validity of the function key "Delete": open Notepad on the application interface, enter the number "X", move the cursor to the front of the character "X", and press the "Delete" key. At this time, the character "X" is deleted, which verifies that the device keyboard key "Delete" is valid; and so on, enumerate all the numeric keys one by one: 0~9, dot; and all the function keys: up, down, left, right, zoom in +, zoom out -, menu, backspace, delete, and confirm.

[0003] It can be seen that different function keyboard keys and numeric keyboard keys require opening the corresponding function interface or application software to verify the validity of the key. In the mass production process of intelligent control terminal devices with physical functions and numeric keyboard keys, the time cost difference of the validity detection of physical keyboard keys is closely related to the time cost difference of the actual function interface or application software corresponding to the keyboard key. Conventional testing methods are inefficient and prone to missed detection and false detection. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide a key detection device and method thereof. The content of the present invention application is to design a keyboard key test tool according to the corresponding physical keyboard key value table. Use the programming tool VS2010 to write a program and make a display interface corresponding to the keyboard. By capturing the key value generated when pressing the key and performing key value data matching analysis on the key value, the validity of the keyboard key is determined. By enumerating all the keyboard keys one by one, it is tested whether all the keyboard keys are valid.

[0005] Preferably, the present invention provides a manual key detection device, including a function key area, a number key area, a processor and a display screen, wherein the function key area and the number key area are connected to the processor, and the processor is connected to the display screen.

[0006] Preferably, a key in the function key area or the number key area is pressed; Using the processor to obtain the key value of the function key area or the numeric key area; Based on the key value of the function key area or the digital key area obtained, lighting up the corresponding function icon on the display screen; Use the display screen to indicate the remaining untested buttons; The processor is used to determine whether to scan and traverse the key value table. If so, it is determined that all key icons are lit or all key icons are detected and passed.

[0007] Preferably, the processor is used to determine whether to scan and traverse the key-value table. If the processor determines that the key-value table is not scanned and traversed, this step is repeated.

[0008] Prioritize, start the key detection procedure; Determine whether a key in the function key area or the numeric key area is pressed, and if so, enter the interrupt processing step.

[0009] Preferably, it is determined whether a key in the function key area or the number key area is pressed, and if not, it is cyclically detected whether a key in the function key area or the number key area is pressed.

[0010] Preferably, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the program.

[0011] Preferably, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0012] The beneficial effects achieved by the present invention are: The present invention designs a keyboard key test tool, and makes a display interface corresponding to a physical keyboard key for the WINDOWS window interface. The validity of the keyboard key is determined by capturing the key value generated when the key is pressed and performing key value data matching analysis on the key value. When all keyboard keys are enumerated one by one, the key detection is completed at one time, which improves the detection efficiency and accuracy. The keyboard keys can achieve 100% detection, and the missed detection rate is 0. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0014] Figure 1 This is a schematic diagram of the hardware architecture in the embodiment of the present application; Figure 2 It is a flowchart of the test software in the embodiment of the present application; Figure 3 This is a schematic diagram of the interface before testing in the embodiment of the present application; Figure 4 This is a schematic diagram of the test interface in the embodiment of the present application; Figure 5 It is a schematic diagram of the test completion interface in the embodiment of the present application.

[0015] Figure 6 is a digital key entity diagram in an embodiment of the present application; Figure 7 It is a functional key entity diagram in an embodiment of the present application; DETAILED DESCRIPTION Example

[0016] See also Figure 1 The present application discloses a manual key detection device, including a function key area, a number key area, a processor and a display screen, wherein the function key area and the number key area are connected to the processor, and the processor is connected to the display screen.

[0017] In the embodiment of the present application, a key in the function key area or the number key area is pressed; Using the processor to obtain the key value of the function key area or the numeric key area; Based on the key value of the function key area or the digital key area obtained, lighting up the corresponding function icon on the display screen; Use the display screen to indicate the remaining untested buttons; The processor is used to determine whether to scan and traverse the key value table. If so, it is determined that all key icons are lit or all key icons are detected and passed.

[0018] In the embodiment of the present application, a processor is used to determine whether to scan and traverse the key-value table. If the processor determines that the key-value table is not scanned and traversed, this step is repeated.

[0019] In the embodiment of the present application, the start button is pressed; Determine whether a key in the function key area or the numeric key area is pressed, and if so, enter the interrupt processing step.

[0020] In the embodiment of the present application, it is determined whether a key in the function key area or the number key area is pressed, and if not, it is cyclically detected whether a key in the function key area or the number key area is pressed.

[0021] In an embodiment of the present application, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the program.

[0022] In an embodiment of the present application, the present invention 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 methods are implemented. Example

[0023] Combine the following Figures 1 to 7 The present invention application is further described.

[0024] 1. Smart terminal devices mainly consist of three hardware components, namely processor, display screen and digital / function key area, such as Figure 1 The signal is generated by the digital / function key area of ​​the human-machine interface and transmitted to the central processor, and the signal is sent to the display screen for display after being processed. Figure 6 The number keys include 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, . , OK, Figure 7 The function keys include 3G, 3D, Menu, Backspace, Delete, OK, Zoom In +, Zoom Out -.

[0025] According to the function key area and the number key area on the panel of the intelligent terminal device, the corresponding function key values ​​and number key values ​​are used to establish a corresponding keyboard key value table. Figure 3 As shown, the interface of all keyboard keys to be tested is displayed on the display screen of the intelligent terminal device, which includes three areas, namely, the function key area, the number key area and the test log area.

[0026] 2. Based on Figure 1 Based on the hardware architecture, a test software tool is developed. The test software consists of two parts: the main program - key cycle detection program and the interrupt response program. The test software process is as follows Figure 2 As shown in the figure, after the program is started, it first enters the main program - key cycle detection program, and enters the interrupt response program through continuous cycle monitoring and scanning. After all interrupt response programs are completed, the interrupt response program is exited and returned to the main program - key cycle detection program to end the detection.

[0027] The following will explain in detail the software testing program operation process.

[0028] 3. When the smart terminal device is turned on normally, start the keyboard key test program and initialize the test environment. Start to detect whether there are any keyboard keys pressed in a loop. Compare the keys on the physical keyboard of the smart terminal, type the function keys and number keys respectively, and enter an interrupt when a key signal is detected. The interrupt starts, reads the key value signal and starts to look up the table. like Figure 4As shown, the interface on the display screen lights up the corresponding function button icons and number button icons respectively, and continues to search for the remaining untested button values ​​against the key value table, and displays feedback in the test log area.

[0029] like Figure 5 As shown, when all the keyboard keys are tested, that is, after the test program traverses all the key value tables, the icons corresponding to the function key area and the number key area of ​​the display interface are all lit up, and the log area displays a prompt that the test is completed. Exit the interrupt program.

[0030] 4. The keyboard key test is completed.

[0031] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0032] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention invented herein. This application is intended to cover any variations, uses or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art that are not invented by the present invention. The specification and examples are intended to be exemplary only, and the true scope and spirit of the invention are indicated by the claims.

[0033] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above are only specific implementation methods of the present application and are not used to limit the protection scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the protection scope of the present application.

Claims

1. A manual key detection device, characterized in that: It includes a function key area, a number key area, a processor and a display screen. The function key area and the number key area are connected to the processor, and the processor is connected to the display screen.

2. A manual key detection method based on claim 1, characterized in that: The interrupt handling steps include: Press a key in the function key area or the numeric key area; Using the processor to obtain the key value of the function key area or the numeric key area; Based on the key value of the function key area or the digital key area obtained, lighting up the corresponding function icon on the display screen; Use the display screen to indicate the remaining untested buttons; The processor is used to determine whether to scan and traverse the key value table. If so, it is determined that all key icons are lit or all key icons are detected and passed.

3. A manual key detection method according to claim 2, characterized in that: The processor is used to determine whether to scan and traverse the key-value table. If the processor determines that the key-value table is not scanned and traversed, this step is repeated.

4. A manual key detection method according to claim 2, characterized in that: Press the start button; Determine whether a key in the function key area or the numeric key area is pressed, and if so, enter the interrupt processing step.

5. A manual key detection method according to claim 4, characterized in that: Determine whether a key in the function key area or the number key area is pressed. If not, cyclically detect whether a key in the function key area or the number key area is pressed.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 2 to 5 are implemented.

7. 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 method according to any one of claims 2 to 5 are implemented.