CN102760091A - Keyboard testing method - Google Patents

Keyboard testing method Download PDF

Info

Publication number
CN102760091A
CN102760091A CN2011101029817A CN201110102981A CN102760091A CN 102760091 A CN102760091 A CN 102760091A CN 2011101029817 A CN2011101029817 A CN 2011101029817A CN 201110102981 A CN201110102981 A CN 201110102981A CN 102760091 A CN102760091 A CN 102760091A
Authority
CN
China
Prior art keywords
keyboard
information
key
specific information
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101029817A
Other languages
Chinese (zh)
Inventor
张倍铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Primax Electronics Ltd
Original Assignee
Primax Electronics Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CN2011101029817A priority Critical patent/CN102760091A/en
Publication of CN102760091A publication Critical patent/CN102760091A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention relates to a keyboard testing method which is used for testing common keys and special keys on a keyboard. The method comprises the following steps: receiving key information input by the keyboard, detecting whether the key information is of special information, if yes, intercepting and switching codes of the special information and judging whether the code is of at least one preset key code, if the key information is of common information, processing the common information and judging whether the code is one of preset key codes, and finally judging whether all keys of the keyboard are tested. The method can be used for achieving the effect of testing the special keys of the keyboard.

Description

The keyboard test method
Technical field
The invention relates to a kind of method of testing, especially about a kind of method of testing of keyboard.
Background technology
Along with Science and Technology Day reaches increasingly, no matter be work or amusement and recreation, computer with and peripherals be the part in everyone daily life, and also receive sizable attention as the input media of the bridge between computer and user.Input media comprises mouse, keyboard and trace ball etc., and is wherein important with the key board unit of many buttons input instruction capable of using and literal to computer.
See also the 1st figure, it is the surface structure synoptic diagram of existing key board unit.The surface of existing key board unit 1 is provided with a plurality of buttons; Those buttons are classified as letter key 10, numerical key 11, function key 12 and the different special key 13 that goes out according to each tame manufacturers design etc.; And those letter keys 10, numerical key 11, function key 12 also are commonly referred to as general button, and the button on the keyboard is to supply the user to press with finger and produce corresponding signal to computer, makes computer carry out touched keypress function; Letter key 10 is in order to symbols such as inputting English letters; Numerical key 11 is in order to input digit, and 12 of function keys are in order to provide various functions, for example F1~F12 etc.
Wherein, most particularly special key 13, and this special key 13 is usually in order to the state of supervisory keyboard own or the state of host computer; Common special key 13 includes the dormancy key, wakes key and powered-down key up; Special key and the maximum difference of above-mentioned other button are that the key set code form that special key inputs in the host computer is different with other general button, for instance; The key set code form of special key is beginning usually with 0x02; And whole key set code length is less than eight bytes usually, and for example the dormancy key is 0x020x02, and the form of the key set code of other button then is 0x01.In other words the special key in the USB keyboard usually its usage page or leaf (Usage Page) be different from the usage page or leaf of general button.
Key board unit must process be tested in manufacture process, but to guarantee the key board unit operate as normal.And the test of key board unit comprises complete test is carried out in the test of the circuit board of key board unit and the key board unit that assembling is accomplished.To assemble the keyboard of completion, existing method of testing can be plugged Test Host with keyboard earlier, then; Beat button in regular turn with mode manually or with the machine automated manner; At this moment, keyboard with the output key sign indicating number to Test Host, after Test Host converts this key set code into pseudo code; Can by the test procedure that is installed on main frame judge automatically this pseudo code whether with default in Test Host in correct key set code identical; If pushed whole buttons in regular turn, and all met above-mentioned condition, judge that then this keyboard is through test.
Yet mostly the system of existing main frame in order to test is windows, and test procedure utilizes Labview software to write; In the windows system; General button all has preset its corresponding virtual key set code, as the key set code form of above-mentioned special key then do not defined in the system (windows) of Test Host, that is to say if when test, push special key; The system of Test Host can't provide the pseudo code of pushing special key, so test procedure can't be tested.
Summary of the invention
The technical matters that the present invention will solve is, the above-mentioned deficiency to prior art exists provides a kind of keyboard test method, can test the special key on the keyboard, comprises the dormancy key, wakes key up, powered-down key and move back the sheet key.
The technical solution adopted for the present invention to solve the technical problems provides a kind of keyboard test method; Export a specific information of a main frame and the general information that at least one general button exports this main frame to in order at least one special key of testing a keyboard; Wherein this specific information is different with the coded format of this general information, and this method comprises the following steps:
(A) receive the key information that this keyboard is exported;
(B) detecting exports whether this key information of this main frame is this specific information to, if, then carry out step (C), if not, this key information is to be this general information, then carries out step (E);
(C) tackle this specific information and change the coding of this specific information;
(D) receive this specific information of transform coding and judge whether it is at least one keyboard-coding of presetting, if, then carry out step (F), if not, then show a test result of this keyboard;
(E) handle this general information and judge whether it is this keyboard-coding of presetting, if, then carry out step (F), if not, then show a test result of this keyboard; And
(F) judge whether to test all buttons of this keyboard, if not, then carry out step (A), if then show a test result of this keyboard.
Preferably, this special key be on this keyboard the dormancy key, wake key, powered-down key up or move back the sheet key.
Preferably, this main frame comprises a screen, all buttons of this this keyboard of screen display graphic.
Preferably; In step (D); When this specific information of judging transform coding be encoded to a preset keyboard-coding time, also comprise making on this screen the step that the icon of special key that should specific information is changed color, judge test result for a user.
Preferably, in step (E), when judge this general information be encoded to this preset keyboard-coding the time, also comprise making on this screen the step that the icon of general button that should general information is changed color, judge test result for a user.
Preferably, whether this key information that the detecting of step (B) exports this main frame to is this specific information, and this specific information of interception of step (C) and the coding of changing this specific information are to be carried out by an information intercepting module (hook) that is installed on this main frame.
Preferably; In step (C); The coding of changing this specific information comprises: call out a specific keys incident (Key event) that is pre-stored in this information intercepting module according to the pressed state of this special key, so that the coded format of this specific information converted into the form of a virtual key sign indicating number.
Preferably, step (D), step (E) are carried out by a keyboard test module that is installed on this main frame and an information intercepting module with step (F).
Preferably, this general information of processing in the step (E) comprises a virtual key sign indicating number that this general information is converted into correspondence.
Keyboard test method of the present invention sees through this information intercepting module is installed in main frame; With the specific information of interception keyboard output and change its coding; Reach the function of the special key on the test keyboard,, then need not revise the keyboard test module when the user has used the keyboard test module; Only need this information intercepting module is installed, just can reach the function of all general buttons and special key on the test keyboard.
Description of drawings
Fig. 1 is the surface structure synoptic diagram of existing key board unit.
Fig. 2 is the process flow diagram of keyboard test method of the present invention in first preferred embodiment.
Fig. 3 is the system block diagrams of keyboard test method of the present invention embodiment of the present invention keyboard test method in first preferred embodiment.
Fig. 4 is the synoptic diagram of keyboard test method first preferred embodiment of the present invention screen when test.
Embodiment
See also Fig. 2,3, it is respectively the process flow diagram of keyboard test method of the present invention in first preferred embodiment and the system block diagrams of embodiment of the present invention method of testing.Before beginning to test keyboard; The user needs earlier a keyboard test module 25 and an information intercepting module 26 to be installed on a main frame 20; The operating system of this main frame 20 is general common windows system; This keyboard test module 25 then is the Labview module, and this main frame 20 comprises that a screen 24 supplies the user to inspect to show test results.
When beginning to test, the user need be connected to this main frame 20 with keyboard to be measured 21, has a plurality of general buttons 22 and at least one special key 23 on this keyboard 21.When beginning to test; The user need beat the button of this keyboard 21 in regular turn; Perhaps can design in addition and make mechanical arm or attacking head beat the button of this keyboard 21 automatically in regular turn, make this keyboard 21 be able to output key information to this main frame 20, at this moment; Just carry out the step 101 of keyboard test method of the present invention, receive a key information of these keyboard 21 outputs.When the user beats button, keyboard 21 just can output key information to this main frame 20, wherein; If beat general button 22; Then this key information is a general information 221, and if beat special key 23, then this key information is a specific information 231; The special key 23 of indication here is for the dormancy key on the keyboard 21, wake key, powered-down key up or move back the sheet key.
Receive a key information of these keyboard 21 outputs when main frame; Just carry out step 102, whether this key information that detecting exports this main frame 20 to is this specific information 231, if not; Then this key information is this general information 221; Get into step 105,, tackle this specific information 231 and change the coding of this specific information 231 if specific information then gets into step 103.What need special instruction is; This information intercepting module 26 is a kind of hook module; That is, be that the main frame 20 of windows is installed these information intercepting modules 26 in system during actual enforcement, this information intercepting module 26 is one than the hook module of building in the windows system information extraction module of bottom more; This part should be those of ordinary skills to be known, so seldom give unnecessary details.
After this information intercepting module 26 was intercepted this specific information 231, for instance, the user pressed the sleep key, and the coding 0x02 0x02 that then exports the specific information of main frame 20 to just can be by these information intercepting module 26 interceptions.After tackling this specific information 231; This information intercepting module 26 is just called out a specific keys incident (Key event) that is pre-stored in this information intercepting module according to the pressed state of this special key 23; So that the coded format of this specific information is converted into the form (VK_code) of a virtual key sign indicating number; That is, the situation that this general button 22 of emulation is pressed.
Below specify it; The form that coded format with this specific information 231 described herein converts a virtual key sign indicating number into is meant, when the design information blocking module, preestablishes and converts specific information into a virtual key sign indicating number; Certainly; This virtual key sign indicating number can not be identical with the pairing virtual key sign indicating number of general information 221 (this general information is meant the general information that the common general button of this keyboard is exported), that is, when design; Need to use the windows system preset virtual key sign indicating number to be arranged and do not have the button that designs on general keyboard; Like the virtual key sign indicating number of buttons such as F13, F14, F15, for instance, convert the coding 0x02 0x02 of this specific information of intercepting into virtual key sign indicating number VK_F14 (this inputs to the virtual key sign indicating number of being changed behind the main frame for button F14); Thus, just can not cause erroneous judgement with changing the virtual key code weight that is produced behind the general information to answer.
Hold the above, the specific information 232 after conversion just can be discerned by keyboard test module 25, then, carry out step 104, receives this specific information 232 of transform coding and judges whether it is at least one keyboard-coding of presetting.The keyboard-coding of indication is preset virtual key sign indicating number in this keyboard test module 25 here, and in the Windows system, each general button all is preset with its corresponding virtual key set code; And this keyboard test module also is preset with those virtual key sign indicating numbers for comparison, and for instance, this keyboard test module 25 just receives this virtual key sign indicating number and judges whether virtual key sign indicating number (VK_F14) is at least one keyboard-coding of presetting; If; Then pass through test, and get into step 106, judge whether to test all buttons of this keyboard this this special key; If not; Then carry out step 107,, show that just this special key is not through test in the test result of this this keyboard of screen display.Judge whether to test in all buttons of this keyboard in step 106; This judgement is according to whether all preset keyboard-codings all have the virtual key sign indicating number that is consistent; If judge that then this keyboard 21 through test, then can show the information of this keyboard through test on this screen; If button is still arranged not through test, then repeats step 101.
Whether this key information that exports this main frame in step 102 detecting to is in the process of this specific information 231, is not during for specific information 231 if judge this key information, and this key information is a general information 221; At this moment, carry out step 105, handle this general information 221 and judge whether it is this keyboard-coding of presetting; The module of building in the Windows system of this main frame 20 is to convert this general information 221 to a corresponding virtual key sign indicating number automatically, after this general information 221 converts this corresponding virtual key sign indicating number automatically to, but this just identification of keyboard test module 25; And judge whether it is this keyboard-coding of presetting; If, then carry out all buttons that step 106 judges whether to test this keyboard, promptly be not this preset keyboard-coding if not; Then carry out step 107, in a test crash information of this this keyboard of screen display.
Below supplementary notes see also Fig. 4, and it is the synoptic diagram of first preferred embodiment screen when testing of keyboard test method of the present invention.When test was carried out, this test module 25 was in the icon of all buttons of these screen 24 these keyboards 21 of demonstration, the icon 251 of general button as shown in the figure and the icon 252 of special key; When carrying out step 104, if judge transform coding this specific information 232 be encoded to a preset keyboard-coding, then the icon to special key that should specific information can change color on this screen 24; As shown in the figure; Graphic 252 of special key changes color, makes the user understand present keyboard test situation by screen 24, and what need special instruction is; When carrying out step 104; Though in fact keyboard test module 25 judges according to non-existent button (for example button F14) corresponding virtual key set code that the dawn still can make the icon 252 of this special key on this screen 24, change color according to GRAPHICAL PROGRAMMING.
Identical ground, when carrying out step 105, the virtual key sign indicating number after judging this general information 221 of conversion is during for preset keyboard-coding, and then the icon 251 to general button that should general information also changes color on this screen 24.
In other preferred embodiment, this keyboard test module 25 more comprises a programmable button sign indicating number script, makes this keyboard test module judge according to this programmable button sign indicating number script whether this virtual key sign indicating number is correct automatically.
Comprehensive the above; Keyboard test method of the present invention sees through this information intercepting module is installed in main frame, with the specific information of interception keyboard output and change its coding, reaches the function of the special key on the test keyboard; When the user has used the keyboard test module; Then need not revise the keyboard test module, only need this information intercepting module is installed, just can reach the function of all general buttons and special key on the test keyboard.
The above is merely preferred embodiment of the present invention, is not in order to limiting claim scope of the present invention, and therefore all other do not break away from the equivalence of being accomplished under the disclosed spirit and change or modify, and all should be contained in the scope of the present invention.

Claims (9)

1. keyboard test method; Export a specific information of a main frame and the general information that at least one general button exports this main frame to in order at least one special key of testing a keyboard; Wherein this specific information is different with the coded format of this general information; It is characterized in that this method comprises the following steps:
(A) receive the key information that this keyboard is exported;
(B) detecting exports whether this key information of this main frame is this specific information to, if, then carry out step (C), if not, this key information is to be this general information, then carries out step (E);
(C) tackle this specific information and change the coding of this specific information;
(D) receive this specific information of transform coding and judge whether it is at least one keyboard-coding of presetting, if, then carry out step (F), if not, then show a test result of this keyboard;
(E) handle this general information and judge whether it is this keyboard-coding of presetting, if, then carry out step (F), if not, then show a test result of this keyboard; And
(F) judge whether to test all buttons of this keyboard, if not, then carry out step (A), if then show a test result of this keyboard.
2. keyboard test method as claimed in claim 1 is characterized in that, this special key be on this keyboard the dormancy key, wake key, powered-down key up or move back the sheet key.
3. keyboard test method as claimed in claim 1 is characterized in that this main frame comprises a screen, all buttons of this this keyboard of screen display graphic.
4. keyboard test method as claimed in claim 3; It is characterized in that; In step (D); When this specific information of judging transform coding be encoded to a preset keyboard-coding time, also comprise making on this screen the step that the icon of special key that should specific information is changed color, judge test result for a user.
5. keyboard test method as claimed in claim 3; It is characterized in that; In step (E); When judge this general information be encoded to this preset keyboard-coding the time, also comprise making on this screen the step that the icon of general button that should general information is changed color, judge test result for a user.
6. keyboard test method as claimed in claim 1; It is characterized in that; Whether this key information that the detecting of step (B) exports this main frame to is this specific information, and this specific information of interception of step (C) and the coding of changing this specific information are to be carried out by an information intercepting module that is installed on this main frame.
7. keyboard test method as claimed in claim 6; It is characterized in that; In step (C); The coding of changing this specific information comprises: call out a specific keys incident that is pre-stored in this information intercepting module according to the pressed state of this special key, so that the coded format of this specific information converted into the form of a virtual key sign indicating number.
8. keyboard test method as claimed in claim 1 is characterized in that, step (D), step (E) are carried out by a keyboard test module that is installed on this main frame and an information intercepting module with step (F).
9. keyboard test method as claimed in claim 1 is characterized in that, this general information of processing in the step (E) comprises a virtual key sign indicating number that this general information is converted into correspondence.
CN2011101029817A 2011-04-25 2011-04-25 Keyboard testing method Pending CN102760091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101029817A CN102760091A (en) 2011-04-25 2011-04-25 Keyboard testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101029817A CN102760091A (en) 2011-04-25 2011-04-25 Keyboard testing method

Publications (1)

Publication Number Publication Date
CN102760091A true CN102760091A (en) 2012-10-31

Family

ID=47054555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101029817A Pending CN102760091A (en) 2011-04-25 2011-04-25 Keyboard testing method

Country Status (1)

Country Link
CN (1) CN102760091A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369781A (en) * 2001-02-12 2002-09-18 英业达股份有限公司 Method for autoamtically testing characters inpt from keyboard
CN1369761A (en) * 2000-11-06 2002-09-18 英业达股份有限公司 Method for automatically testing specification of keyboard
CN101241461A (en) * 2007-02-07 2008-08-13 纬创资通股份有限公司 Keyboard automatic test system and its method
CN101876930A (en) * 2009-04-28 2010-11-03 致伸科技股份有限公司 Keyboard automatic test system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369761A (en) * 2000-11-06 2002-09-18 英业达股份有限公司 Method for automatically testing specification of keyboard
CN1369781A (en) * 2001-02-12 2002-09-18 英业达股份有限公司 Method for autoamtically testing characters inpt from keyboard
CN101241461A (en) * 2007-02-07 2008-08-13 纬创资通股份有限公司 Keyboard automatic test system and its method
CN101876930A (en) * 2009-04-28 2010-11-03 致伸科技股份有限公司 Keyboard automatic test system

Similar Documents

Publication Publication Date Title
CN102609072B (en) The method that response button triggers and the portable set that adopts the method
CN101876930B (en) Keyboard automatic test system
TWI431508B (en) Method for testing keyboard
CN103946916A (en) CRT light pen interface for flat panel displays
CN100367226C (en) Method for realizing parts detection utilizing intelligent equipment firmware
CN104424086B (en) Computer error detection module and method
CN101581973A (en) Portable electronic device and switching method of input modes for same
CN106469110A (en) A kind of message prompt method based on mobile terminal, device and mobile terminal
CN103092358B (en) One realizes the conflict free system and method for full key board to keyboard
CN102760091A (en) Keyboard testing method
CN102999382A (en) Electronic device and switching method thereof
CN101246393B (en) Computer device and keyboard input operation method
CN101770329A (en) System for inputting characters of another language according to virtual keyboard and method thereof
CN105988946A (en) Input interface device of mobile device
CN111077401B (en) Keyboard testing method, device and storage medium
CN201562268U (en) Detecting equipment based on keyboard integrated circuit
CN203365629U (en) Automatic test device for performance of keyboard circuit of mobile phone main board
CN104765685A (en) Graphical analysis method of kernel process
CN102439569A (en) Method and device for checking system state of device
US20120192009A1 (en) Testing method and testing system of keyboard module
CN202710685U (en) Capacitive screen integration testing circuit
CN102539987A (en) Testing method for key circuit boards and system
CN102023909A (en) Mainboard debugging system and externally-connected debugging board thereof
CN102841685A (en) Measurement device with keyboard
CN103455276A (en) Operation method of touch unlocking structure with power saving system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20121031

C20 Patent right or utility model deemed to be abandoned or is abandoned