CN1327193A - Method for detecting keyboard array short circuit - Google Patents
Method for detecting keyboard array short circuit Download PDFInfo
- Publication number
- CN1327193A CN1327193A CN 00118013 CN00118013A CN1327193A CN 1327193 A CN1327193 A CN 1327193A CN 00118013 CN00118013 CN 00118013 CN 00118013 A CN00118013 A CN 00118013A CN 1327193 A CN1327193 A CN 1327193A
- Authority
- CN
- China
- Prior art keywords
- keyboard
- data line
- key
- scan code
- line
- 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
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The method of detecting short circuit it keyboard array needs depressing only 25 keys rather than all keys. After a certain key is depressed, the keyboard controller produces a corresponding scan code, the scan code is fed into the system unit to initiate the interruption IRQ1 and self-defined interruption program is used to replace traditional INT9H program. The system unit comparse the scan code with that in keyboard scan data base to determine which key has been depressed. It case of some keyboard key is shorted, the keyboard key together with the shorted line or row number will be displayed.
Description
The present invention relates to a kind of computer keyboard testing method, more detailed, relate to a kind of method of fast detecting keyboard array short circuit.
In information age now, when the user wants to do when linking up with computing machine, computer keyboard is an important outside data input media.The user utilizes keyboard to get final product input data, data, program and is stored in the memory storage of computing machine, so whether whether the operate as normal of keyboard will have influence on the signal of input computing machine normal, so the regular detection keyboard of user is a necessary job.
Generally speaking, the keyboard matrix that is constituted with line data line and column data line in the actual keyboard operation comes corresponding keyboard, and each key in the keyboard matrix number is represented a corresponding keyboard.When short circuit appearred in keyboard, situation about being short-circuited in keyboard matrix had three kinds, at once data line and the short circuit of line data line, column data line and column data line short circuit and line data line and column data line short circuit.Short-circuit conditions for line data line and column data line, when computing machine begins to start, can find by the automatic routine in the computer BIOS, thus the user to be processed be the short circuit problem of column data line and column data line, and the short circuit problem of line data line and line data line.
The keyboard testing method that some tests are known, no matter being QAFace software and the Amidiag software that contains the diagnosis computer hardware that the key on the keyboard is detected, all is to call the scan code that DOS (disc operating system (DOS)) and BIOS (Basic Input or Output System (BIOS)) interrupt routine obtain each key.And when utilizing the computer hardware testing software, Qafactry6.0 for example, 7.0, AMI Diag, Compaq Diag, when carrying out the computer keyboard array short-circuit detecting, the tester must rely on the demonstration on the eyes Direct observation screen.When pressing a certain key, whether a certain corresponding button that must examine on the screen keyboard dish synoptic diagram is pressed, and has or not other button also to be shown as the state of being pressed simultaneously.If promptly when when pressing a certain key, on screen keyboard synoptic diagram, have or not key more than two or two for flashing state, if having, then expression has short-circuit conditions to take place.When adopting so method of testing, if when all buttons on the computer keyboard are 102 keys, the user must press key 102 times, and wants the situation of flashing of careful observation computing machine screen keyboard synoptic diagram when whenever pressing primary key.So in known technology, when carrying out keyboard detection, on the computing machine screen, can't inform user's button short-circuit conditions with the Word message display mode, so the user test must be careful in the whole process watch screen attentively and by lower keyboard on all buttons, just can learn the short-circuit conditions of keyboard, and can not only press some keys but not obtain the short-circuit test result under the situation of all keys.
In order to solve the problem that above-mentioned known method produces, we have adopted a kind of quick keyboard testing method of novelty at this, only pressing 25 keys rather than pressing under the situation of whole keyboards, need not judge under the situation of flashing of screen keyboard synoptic diagram that the user can utilize and shownly on screen go out Word message and learn the short-circuit test result of keyboard with eyes.So the user can overcome existing problem in the known technology effectively, and can analyze the short circuit problem of keyboard apace need not to press under whole buttons and the omnidistance state of observing screen.
Fundamental purpose of the present invention is to provide a kind of method of fast detecting keyboard array short circuit, can be applicable to comprise in the computer system of keyboard, and allow the user can be under the state that need not by most whole keyboards, only press 25 keys and can detect the short-circuit conditions of keyboard array fast.
Another object of the present invention is to provide a kind of method of fast detecting keyboard array short circuit, can be applicable to comprise in the computer system of keyboard, on screen, demonstrate Word message, in order to allow the user find out short-circuit conditions between data line.
A further object of the present invention is to provide a kind of method of fast detecting keyboard array short circuit, can be applicable to comprise in the computer system of keyboard, the keyboard scancode that will be come by keyboard controller directly deposits in the buffer zone of host apparatus, and the handled data of host apparatus are keyboard scancode, but not the ASCII character after transcoding is handled.
Another purpose of the present invention is to provide a kind of method of fast detecting keyboard array short circuit, can be applicable to comprise in the computer system of keyboard, after the user presses next key, keyboard controller will be read a signal and change and produce keyboard scancode corresponding to this button, and will cause hardware interrupts IRQ1, and replace traditional INT9H interrupt routine with self-defining interrupt service routine.
According to above-described purpose, the invention provides a kind of method of fast detecting keyboard array short circuit of novelty, can be applicable to comprise keyboard, keyboard controller, contain buffer zone, in the computer system of the main frame of central processor unit and memory storage and display.
When using this method, at first set up keyboard matrix corresponding to keyboard, this keyboard matrix is made of the line data line and the column data line of determinant matrix keyboard, and sets up the keyboard scancode database corresponding to each position in the keyboard matrix in the memory storage of main frame.After the user presses next keyboard, just having a certain line data line contacts with a certain column data line, and keyboard controller will be read owing to this presses the signal that action produces and changes the scan code that produces relative keyboard, send into this scan code in the main frame and will cause host hardware and interrupt IRQ1, and replace traditional INT9H interrupt routine with self-defining interrupt service routine, directly scan code is sent in the buffer zone of main frame then.
Utilize the comparison program in the memory storage of object computer main frame, main frame will carry out a comparison action so that scan code in the buffer zone and the keyboard scancode database in the memory storage are compared, finding out scan code pairing according to comparison result is a certain position in the keyboard matrix, and can learn in the keyboard it is that button is pressed.When the user carries out the keyboard short-circuit test, the user is according to the indication button of pressing 25 appointments one by one successively, after having a keys of keyboard user to press, when keyboard has the situation of short circuit to take place, the Word message of screen will demonstrate the keyboard that is short-circuited, and demonstrate the column data line that is short-circuited capable number, also or demonstrate the row number of the line data line that is short-circuited.Because the user need not to press whole keyboards, and under the situation of only pressing 25 buttons, can learn the short-circuit condition of keyboard, so but fast detecting keyboard array.
When utilizing known method to carry out keyboard detection, the user is must be omnidistance careful watches screen attentively, and just can learn the short-circuit conditions of keyboard by all keys on the most keyboard, whether whether normal each key information can not appear on screen, and the user must carry out keyboard detection with complicated program, can not only can learn the short-circuit test result by some keys.
In order to solve the problem that above-mentioned known method produces, we have adopted a kind of fast key disk array detection method of novelty at this.When using this method, can only press 25 keys rather than press under the situation of whole keyboards, on screen, demonstrate the short-circuit test result of keyboard, can overcome the problem that known technology exists effectively in the mode of Word message, but and the short-circuit conditions of fast detecting keyboard array.
For making above and other objects of the present invention, feature, advantage can become apparent, and will lift a most preferred embodiment, and cooperates appended diagram, describes embodiments of the invention in detail, and appended graphic content Description is as follows:
Fig. 1 is a system block diagrams, wherein the ultimate system hardware structure of the computer system of display application fast detecting keyboard array short circuit of the present invention method.
Fig. 2 is a keyboard and the corresponding synoptic diagram of keyboard matrix, uses the suit the needs correspondence position of the pairing keyboard matrix of each button on the computer keyboard of method of fast detecting keyboard array of the present invention in order to explanation;
Fig. 3 is a keyboard and the corresponding synoptic diagram of scan code and keyboard matrix, when using fast detecting keyboard array short circuit method of the present invention in order to explanation, when pressing keyboard when testing, the pairing scan code in each position on the keyboard matrix that is constituted with the row, column data line;
Fig. 4 is the operational flowchart of an embodiment of the system of expression the 1st figure, and wherein display application fast detecting keyboard array short circuit of the present invention method is to judge the process program of keyboard short circuit; With
Fig. 5 is a synoptic diagram, when using fast detecting keyboard array short circuit method of the present invention in order to explanation, after the user presses keyboard, will be on the screen of display demonstrates short-circuit conditions between data line in the Word message mode.
See also Fig. 1, wherein the ultimate system hardware structure of the computer system of display application fast detecting keyboard array short circuit of the present invention method.Shown in the 1st figure, this computer system comprises a main frame 3 and the display 4 that a computer keyboard 1, a keyboard controller 2, contain buffer zone, central processing unit and memory storage.This computer system can be the personal computer system of any pattern, for example is desktop, notes type or palmtop computer system.
In this computer system, computer keyboard 1 is coupled to keyboard controller 2, and keyboard controller 2 is coupled to main frame 3 again, and display 4 also directly is coupled with main frame 3.
At first in the memory storage of main frame 3, set up standard scan code data and keyboard matrix corresponding to computer keyboard 1, after a certain key in the computer keyboard 1 is pressed, because the line data line contacts with column data line, keyboard controller 2 will read this keyboard signal change and produce corresponding to this button by the dish scan code, and will cause the hardware interrupts IRQ1 of main frame 3, and replace traditional INT9H interrupt routine with self-defining interrupt service routine, directly keyboard scancode is sent in the buffer zone of main frame 3 then, utilize the comparison program of carrying out in the memory storage, main frame 3 will carry out a comparison action so that scan code in the buffer zone and the keyboard scancode database in the memory storage are compared, finding out scan code pairing according to comparison result is a certain position in the keyboard matrix, and can learn in keyboard 1 button it is which button is pressed.The user is according to the indication button of pressing 25 appointments one by one successively, after the button that a keyboard 1 is arranged is pressed by the user, when the button of keyboard 1 has the situation of short circuit to take place, Word message on the screen of display 4 will demonstrate the button of the keyboard 1 that is short-circuited, and demonstrate the row number of the column data line that is short-circuited, also or demonstrate the line number number of the line data line that is short-circuited.When the user according to prompting of the present invention after pressing 25 buttons, learn the linear position data that is short-circuited in can be in the screen of the display 4 shown Word message that goes out, and draw the button that is short-circuited in the keyboard 1.
Fig. 2 is the button of a keyboard 1 and the corresponding synoptic diagram of keyboard matrix, correspondence position in order to the pairing keyboard matrix of each button on the computer keyboard 1 of the quick keyboard testing method of explanation application the present invention, and number represent this key number pairing physical button, and the relation in correspondence with each other of keyboard matrix and line data line and column data line with key.In keyboard 1 operation of reality, the matrix structure of the keyboard matrix that is constituted with line data line and column data line comes the button of correspondent entity computer keyboard 1, and locational each key in the keyboard matrix number is represented the button of a corresponding computer keyboard 1.As shown in Figure 2, represent to be positioned at the opposite position of each key on the computer keyboard 1 and key number with the form of a keyboard matrix, each is arranged in button on the computer keyboard 1 all corresponding to a certain locational key of keyboard matrix number.For example be positioned at keyboard matrix ksin2-kout10 position key numbers 27 key corresponding to entity computer keyboard 1 [[, {] key, and the key that is positioned at keyboard matrix ksin12-kout11 position number be 58 key corresponding to entity computer keyboard 1 [Ctr1] key, and the key that is positioned at keyboard matrix ksin5-kout5 position number is that 35 key is corresponding to entity computer keyboard 1 [G] key.Because the key position number that keyboard matrix can hold is greater than the number of keys of entity computer keyboard 1, thereby there is no key number on some position in keyboard matrix, promptly there is no corresponding physical button, for example on the position of keyboard matrix ksin1-kout13, there is no any key number, so on this keyboard matrix position (ksin1-kout13), there is no any with corresponding entity key, press or lift a certain button of computer keyboard 1 as the user after, the key of button number and correspond to a certain position in the keyboard matrix that is constituted with column data line and line data line according to this, and keyboard controller 2 will be read a signal from this keyboard matrix position and change and produce corresponding scan code.
Fig. 3 is the button of a keyboard 1 and the corresponding synoptic diagram of scan code and keyboard matrix, when using quick keyboard testing method of the present invention in order to explanation, when by the button of lower keyboard 1 when testing, the value of each the pairing scan code in position on the keyboard matrix that is constituted with the row, column data line.Show when the button of pressing entity computer keyboard 1 is pressed among the figure, to produce a signal in the keyboard matrix that is constituted by the raw column data line and change, and keyboard controller 2 will be read the scan code that changes and produce correspondence from a signal of this keyboard matrix position.For example, as shown in FIG., after button [G] is pressed, the key of button [G] numbers 35 and correspond to ksin5-kout5 position in the keyboard matrix that is constituted with column data line and line data line according to this, and keyboard controller 2 will be read a signal from this keyboard matrix position and change and produce corresponding scan code 22.In the corresponding diagram of this journey column data line and keyboard matrix, the row, column data line of locating at the key of finding out each the position representative that is arranged in keyboard matrix that can understand number and place.For example, the pairing key of line data line ksin2-column data line kout9 number is 13, and the content of ksin2-kout1 representative is a key number is 32, and the button on the key number 32 pairing computer keyboards 1 is [S] key, can be via the key in the matrix keyboard form number and can obtain key in the corresponding computer keyboard 1.So after keyboard controller 2 obtains changing from the signal corresponding to the keyboard matrix of the button of computer keyboard 1, will produce corresponding scan code according to the key of pressing.And if a certain button is the form (line data line and the short circuit of line data line, or column data line and column data line short circuit) of short circuit, even then this button is not pressed by the user, and keyboard controller 2 will produce the scan code of corresponding this key.
Fig. 4 is the operational flowchart of an embodiment of the system of presentation graphs 1, and wherein display application fast detecting keyboard array of the present invention method is to judge the process program of keyboard short circuit.
As shown in FIG., at first when step 11, set up standard scan code data storehouse and one by one corresponding to the keyboard matrix of the button of keyboard 1 at main frame 3.Keyboard matrix is that line data line and the column data line by the matrix keyboard of ranks form constituted, and sets up the keyboard scancode database corresponding to each position in the keyboard matrix in the memory storage of main frame 3.After each key of computer keyboard 1 is pressed, with the sequence scanning sign indicating number that produces with respect to this button, and each key all has unique sequence scanning sign indicating number (representing with hexadecimal system), setting up these standard scan code data storehouses is that the scan code data of being pressed when being used for test computer keyboard 1 that key obtained are compared, to show the state of a certain key in the test process.
In step 12, the user changes the INT9H interrupt service routine with the interrupt service routine that designs, and can obtain the scan code of button behind the button of pressing computer keyboard 1.
Step 13 is item in order to judge whether the user presses certain key; If the user does not press any key, then enter step 20; If the user presses any key, then enter step 14.
In the step 14, because the user presses a certain key of computer keyboard 1, keyboard controller 2 will be read a signal and change and produce scan code corresponding to this button.Keyboard scanner 2 is directly sent into the scan code (with the sexadecimal bit representation) of gained in the buffer zone of main frame 3, to carry out the scan code comparison.
In step 15, the scan code data in the buffer zone are analyzed and handled to main frame 3, main frame 3 compares according to data that step 14 obtained and the standard scan code data storehouse that main frame 3 is set up in step 11, has only not only one of one or the scan code that only obtains by next key to judge the scan code that only obtains by next key.If after judging, the scan code of gained only has one then will enter step 16; Otherwise, if after judging, the scan code of gained not only one then will enter step 17.
In the step 16, because the scan code that is obtained only has one, main frame 3 will draw corresponding to a certain key on the physical keyboard of this scan code and not be short-circuited with other keys, then enter step 20.
In step 17, the scan code that is obtained is not only one as can be known, represents that then line data line and line data line are short-circuited, also or column data line and column data line be short-circuited.So main frame 3 will be according to more than one scan code of gained, judge that ammonium key corresponding to these scan codes is also to be positioned on the same column data line or to be positioned at on the data line line.If after judging, these scan codes are corresponding to the button that is positioned on the same column data line, then enter step 18; If after judging, after this scan code is corresponding to being positioned at the button on the data line line, then entering step 19.
In the step 18, on the screen of display 4, will demonstrate Word message,, and enter step 20 in order to other line data lines of the line data line short circuit at the key place that shows and press.
In the step 19, on the screen of display 4, will demonstrate Word message,, and enter step 20 in order to other column data lines of the column data line short circuit at the key place that shows and press.
In step 20, main frame 3 will judge whether whole buttons of computer keyboard 1 were all pressed.If whole buttons of computer keyboard 1 were all pressed, then proceed to next step 21; If whole buttons of computer keyboard 1 were not pressed entirely, then get back to step 13.
In the step 21, the user obtains the test result of computer keyboard 1 according to the Word message that shows on display 4 screens, and can easily obtain the short-circuit conditions of line data line and line data line, column data line and column data line, and will enter step 22.
In the step 22, the user has obtained the short-circuit conditions of computer keyboard 1, and will reduce interrupt service routine among the INT 9H, and the process of this fast detecting keyboard array that is through with.
Fig. 5 is a synoptic diagram, when using fast detecting keyboard array short circuit method of the present invention in order to explanation, after the user presses keyboard, will be on the screen of display 4 demonstrates short-circuit conditions between data line in the Word message mode.As shown in the figure, when testing keyboard 1, with the prompting user key of pressing 25 appointments one by one successively with fast detecting keyboard array short circuit method of the present invention.When pressing the key [Z] of key numbers 46, if 2 signal changes of receiving from key [Z] of keyboard controller, then main frame 3 only obtains the scan code of key [Z], and learns that key [Z] is not short-circuited with other buttons.And if keyboard controller 2 is not only received the signal change from key [Z], also receive signal change from the key [Q] of key numbers 17, then main frame 3 not only obtains the scan code of key [Z], also will receive the scan code of key [Q], and main frame 3 can learn that line data line ksin0 and line data line ksin1 are short-circuited according to built-in scan code database, and is short-circuited with Word message display line data line ksin0 and line data line ksin1 on the screen of display 4.If main frame 3 not only obtains the scan code of key [Z], and receive the scan code of the key [X] of key numbers 47, main frame 3 can learn that column data line ksout0 and column data line ksout1 are short-circuited according to built-in scan code database, and is short-circuited with Word message display column data line ksout0 and column data line ksout1 on the screen of display 4.The shown Word message that goes out as shown in Figure 6.
Now method how to use fast detecting keyboard array of the present invention is described and finds out short-circuit conditions between data line with computer keyboard 1 pairing keyboard matrix.
The situation that occurs short circuit between the line data line is discussed earlier, if short circuit appears in line data line ksin8 and line data line ksin9, as user when to press key number be 44 key, owing to the short circuit between the line data line makes the key of key numbers 57 also be in the state that is pressed.Because the key of the key of key numbers 44 and key numbers 57 is on the column data line ksout11 simultaneously, so when the key of key numbers 44 is pressed, line data line ksin8 will contact with column data line ksout11, but because short circuit appears in line data line ksin8 and line data line ksin9, so line data line ksin9 also contacts with column data line ksout11,, this measure is pressed and being equivalent to the key of key numbers 57.If short circuit appears in line data line ksin0 and line data line ksin1, as user when to press key number be 29 key, owing to the short circuit between the line data line makes the key of key numbers 76 also be in the state that is pressed.Because the key of the key of key numbers 29 and key numbers 76 is on the column data line ksout9 simultaneously, so when the key of key numbers 29 is pressed, line data line ksin0 will contact with column data line ksout9, because short circuit appears in line data line ksin0 and line data line ksin1, so line data line ksin1 also contacts with column data line ksout9,, this measure is pressed and being equivalent to the key of key numbers 76.In like manner, if short circuit appears in line data line ksin8 and line data line ksin10, as user when to press key number be 44 key, owing to the relation of the short circuit between data line makes the key of key numbers 60 also be in the state that is pressed.
So the user is if press the key of key numbers 44 earlier, and the scan code that can only read the key of key numbers 44 is not followed the scan code of the key of other keys number, and the row, column data line that then can judge the key present position of key numbers 44 is not short-circuited with other row, column data line.If ought only press the key of key numbers 44, in the time of but can obtaining the scan code of key of the key of key numbers 44 and key numbers 57, illustrated that then short circuit appears in line data line ksin8 and line data line ksin9, if ought only press the key of key numbers 44, in the time of really can obtaining the scan code of key of the key of key numbers 44 and key numbers 60, illustrated that then short circuit appears in line data line ksin8 and line data line ksin10.And for line data line ksin0 these line data lines to line data line ksin7, and line data line ksin8 is to these line data lines of line data line ksin15, all can find out the relation of the short circuit between the line data line each other in the same way, no longer discusses at this.
Short-circuit conditions for column data line, column data line ksout0 is to the short circuit test method between substantially the same these line data lines in line data line ksin0 to line data line ksin7 of the short-circuit test principle between column data line ksout10, difference only is the difference of row and column, so no longer discuss at this.
And with regard to column data line ksout10 and column data line ksout11, when pressing any key that is positioned on the column data line ksout11, because column data line ksout10 and the not shared identical line data line of column data line ksout11 be not so can have influence on the state of any key on the column data line ksout10.So whether column data line ksout10 and column data line ksout11 short circuit can't have influence on the normal use of keyboard.In like manner, the user needn't judge that column data line ksout11 and column data line ksout0 are to the column data line short circuit problem between ksout10.
Owing to do not have shared column data line between line data line ksin8 to ksin15 and line data line ksin0 to ksin7, so whether line data line ksin8 to ksin15 and line data line ksin0 to ksin7 short circuit therebetween can't have influence on the normal use of keyboard 1, so needn't judge therebetween line data line short circuit problem at this.
According to above analysis as can be known, when between detection line data line ksin8 to ksin15, whether line data line short-circuit conditions is arranged, only need press key seven keys such as [Fn] of the key [right Ctrl] of key [left Ctrl], key numbers 64 of the key [right Alt], key numbers 58 of the key [left Alt], key numbers 62 of the key [right shift], key numbers 60 of the key [left shift], key numbers 57 of key numbers 44 and key numbers 59 successively, whether successively the scan code that obtains these seven keys separately with whether has line data line short-circuit conditions to take place and can judge between line data line ksin8 to ksin15.
If detect line data line ksin0 to ksin7 between whether line data line short-circuit conditions is arranged, only need key eight keys such as ['] of the key [F7] of key [PgDn], key numbers 118 of the key [End], key numbers 86 of the key [8], key numbers 81 of the key [I], key number 38 these keys [K], key numbers 9 of the key [<] that press key numbers 53, key numbers 24 successively and key numbers 41, whether successively the scan code that obtains these eight keys separately with whether has line data line short-circuit conditions to take place and can judge between line data line ksin0 to ksin7.
If detect column data line ksout0 to ksout10 between whether the column data line short-circuit conditions is arranged, only need successively the key that press key numbers 27 [key of the key [4] of the key [7] of the key [K] of the key [L] of the key [=] of [], key numbers 13, key numbers 39, key numbers 38, key numbers 8, key numbers 5, key numbers 40 [; ], key 11 keys such as [A] of the key [S] of the key [D] of the key [F6] of key numbers 117, key numbers 33, key numbers 32 and key numbers 31, whether successively the scan code that obtains these 11 keys separately with whether has the column data line short-circuit conditions to take place and can judge between column data line ksout0 to ksout10.
Remove the key [K] of a key numbers 38 of repetition, the user only needs can to learn between line data line ksin8 to ksin15 by 25 keys, between line data line ksin0 to ksin7, the short circuit result between column data line ksout0 to ksout10, and obtain the short-circuit conditions of whole computer keyboard 1.
So when the prompting of user according to the method for fast detecting keyboard array of the present invention, behind 25 keys having pressed appointment successively, promptly finished detection, and the shown Word message that goes out on the screen of user according to display, can obtain the short-circuit condition of keyboard this computer keyboard.
Comprehensive above embodiment and method, we can obtain the method for fast detecting keyboard array of the present invention, be to utilize between some line data lines and line data line, and the short-circuit conditions between some column data line and column data line does not influence the normal use of keyboard, and when between two line data lines and line data line also or when being short-circuited situation between two column data lines and column data line, when pressing the arbitrary key that is positioned on the data line line, another key that obtains being positioned on another line data line is in situation about being pressed simultaneously, so do not need all to press for all keys on the data line line during test, and only need choose a key arbitrarily and press, can obtain two line data lines and line data line between short-circuit conditions, same reason can be applicable to the short-circuit test between two column data lines and data line.So under the situation of the decreased number of the key that test the time is pressed, can be after only pressing 25 keys, and can record the short-circuit condition of whole keyboards, so saved the test duration.And main frame is with after directly next keyboard scancode is done the contrast processing via keyboard controller, on the screen of display, inform the short-circuit test result of its key of being pressed of user, allow the user can finish keyboard detection easily, fast in the mode of Word message.The advantage of this fast detecting keyboard array method has:
1. the user need not to press the button on all keyboards, and can learn the short-circuit test result of whole computer keyboard under the situation of only pressing 25 keys.
2. the user is by behind next key, when this button and other keys are short-circuited, on the screen of display, show in the Word message mode, and after allowing the user read Word message, can learn the short-circuit condition between this key and other keys, alleviate the work load of user when testing the keyboard short circuit.
The above is a most preferred embodiment of the present invention only, is not in order to limit scope of the present invention; All other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all should be included in the following claim.
Claims (8)
1. one kind is detected the keyboard array method, be used for comprising the computer system that a keyboard, a keyboard controller, contain the main frame and a display of buffer zone, central processing unit and memory storage, in order to detect keyboard array short circuit, this detection keyboard array method comprises following program:
(1) set up the pairing standard scan code data of each button storehouse in the keyboard in the main frame, and the keyboard matrix of each button in the corresponding keyboard, each keyboard all has unique scan code; And this keyboard matrix distributes according to line data line and column data line and sets up, and then number represents the button of its pairing physical keyboard in the keyboard matrix with key;
(2) utilize the interrupt service routine design to obtain the scan code of computer keyboard;
(3) after the button of keyboard is pressed, keyboard controller will be read signal and change and produce scan code corresponding to this key that is pressed, and the scan code of gained is directly sent in the buffer zone of main frame, handle to carry out the scan code comparison;
(4) data in main frame analysis and the processing buffer zone, main frame compares, judges according to the standard scan code data storehouse of being set up in scan code data that obtained and the main frame;
(5) display text information on the screen of display produces the key of short circuit in order to show the key pressed therewith, and demonstrates the title of other data lines that the data line at the key place of pressing therewith is short-circuited;
(6) press the required button of test after, according to the Word message of the demonstration on the screen of display, can obtain the short-circuit conditions between the data line of whole keyboards; With
(7) obtain the short-circuit conditions of computer keyboard according to the Word message on the screen of display after, will reduce interrupt service routine, and finish this keyboard array test process.
2. program (2) described in the detection keyboard array method as claimed in claim 1 utilize the program of interrupt service routine with the scan code that obtains keyboard, interrupt service routine wherein is different from INT 9H interrupt service routine.
3. one kind is detected the keyboard array method, be used for comprising the computer system that a keyboard, a keyboard controller, contain the main frame and a display of buffer zone, central processing unit and memory storage, in order to detect keyboard array short circuit, this detection keyboard array method comprises following program:
(1) set up the pairing standard scan code data of each button storehouse in the keyboard in the main frame, and the keyboard matrix of each button in the corresponding keyboard, each keyboard all has unique scan code; And this keyboard matrix distributes according to line data line and column data line and sets up, and then number represents the button of its pairing physical keyboard in the keyboard matrix with key;
(2) utilize the interrupt service routine design to obtain the scan code of computer keyboard;
(3) after the button of keyboard is pressed, keyboard controller will be read signal and change and produce scan code corresponding to this key that is pressed, and the scan code of gained is directly sent in the buffer zone of main frame, handle to carry out the scan code comparison;
(4) data in main frame analysis and the processing buffer zone, main frame compares according to the standard scan code data storehouse of being set up in scan code data that obtained and the main frame, in order to judging that the key press therewith produces the button of short circuit, and the line data line that the data line of judging the key place that this is pressed produces short circuit also or column data line;
(5) display text information on the screen of display produces the key of short circuit in order to show the key pressed therewith, and demonstrates line data line that the data line at this key place of pressing is short-circuited also or the title of column data line;
(6) press the required button of test after, according to the Word message of the demonstration of the screen of display, can obtain the short-circuit conditions of short-circuit conditions, column data line and the column data line of the line data line of whole keyboards and line data line; With
(7) obtain the short-circuit conditions of short-circuit conditions, column data line and column data line of the line data line of computer keyboard and line data line according to the Word message on the screen of display after, to reduce interrupt service routine, and this fast key disk array test process that is through with.
4. program (2) described in the detection keyboard array method as claimed in claim 3 utilize the program of interrupt service routine with the scan code that obtains keyboard, interrupt service routine wherein is different from INT 9H interrupt service routine.
5. one kind is detected the keyboard array method, be used for comprising the computer system that a keyboard, a keyboard controller, contain the main frame and a display of buffer zone, central processing unit and memory storage, in order to detect keyboard array short circuit, this detection keyboard array method comprises following program:
(1) set up the pairing standard scan database of each button in the keyboard in the main frame, and the keyboard matrix of each button in the corresponding keyboard, each keyboard all has unique scan code; And this keyboard matrix distributes according to line data line and column data line and sets up; Then number represent the button of its pairing physical keyboard in the keyboard matrix with key;
(2) utilize the interrupt service routine design to obtain the scan code of computer keyboard;
(3) after the button of keyboard is pressed, keyboard controller will be read signal and change and produce scan code corresponding to this key that is pressed, and the scan code of gained is directly sent in the buffer zone of main frame, handle to carry out the scan code comparison;
(4) data in main frame analysis and the processing buffer zone, main frame compares according to the standard scan code data storehouse of being set up in scan code data that obtained and the main frame, whether has only one to judge the scan code that only obtains by next key;
If after judging, the scan code of gained only has one, then will enter step 5;
If after judging, not only one of the scan code of gained then will enter step 6;
(5) scan code that is obtained only has one, and main frame will draw corresponding to a certain key on the computer keyboard of this scan code and not be short-circuited with other keys, then enter step 9;
(6) scan code that is obtained is not only one, expression line data line and line data line are short-circuited, also or column data line and column data line be short-circuited, so main frame will be according to not only one the scan code of gained, be also to be positioned on the same column data line or to be positioned at on the data line line and judge button corresponding to these more than one scan codes;
If after judging, are the buttons that are positioned on the same column data line corresponding to the button of these more than one scan codes, then enter step 7;
If after judging, are the buttons that are positioned at on the data line line corresponding to the button of these more than one scan codes, then enter step 8;
(7) display text information on the screen of display produces the keyboard of short circuit in order to show the key pressed therewith, and demonstrates the title of other line data lines that the line data line at the key place of pressing therewith is short-circuited, and will enter step 9;
(8) display text information on the screen of display produces the keyboard of short circuit in order to show the key pressed therewith, and demonstrates the title of other column data lines that the column data line at the key place of pressing therewith is short-circuited, and will enter step 9;
(9) main frame judges whether the required button of test of computer keyboard was pressed entirely;
If the required button of test of computer keyboard was pressed entirely, then enter step 10;
If the required button of test of computer keyboard was not pressed as yet entirely, then get back to step 3;
(10) the required button of the test of computer keyboard was pressed entirely, the user is according to the short circuit result between the shown keyboard data line of the Word message of the demonstration on the screen of display, and can be easy to obtain the short-circuit conditions of short-circuit conditions, column data line and the column data line of line data line and line data line; With
(11) user has obtained the short-circuit conditions of computer keyboard according to the Word message on the screen of display, with the interrupt service routine reduction, and finishes this keyboard array test process.
6. program (2) described in the detection keyboard array method as claimed in claim 5 utilize the program of interrupt service routine with the scan code that obtains keyboard, interrupt service routine wherein is different from INT 9H interrupt service routine.
7. one kind is detected the keyboard array method, be used for comprising the computer system that a keyboard, a keyboard controller, contain the main frame and a display of buffer zone, central processing unit and memory storage, in order to detect keyboard array short circuit, this detection keyboard array method comprises following program:
(1) set up the pairing standard scan code data of each button storehouse in the keyboard in the main frame, and the keyboard matrix of each button in the corresponding keyboard, each keyboard all has unique scan code; And this keyboard matrix distributes according to line data line and column data line and sets up, and then number represents the button of its pairing physical keyboard in the keyboard matrix with key;
(2) utilize the interrupt service routine design to obtain the scan code of computer keyboard;
(3) will judge at this whether the user presses the arbitrary button on the lower keyboard;
If the user does not press the arbitrary button on the lower keyboard, then enter step 10;
If the user presses the arbitrary button on the lower keyboard, then enter step 4;
(4) since the user by next key, keyboard controller will be read a signal and change and produce scan code corresponding to this key, and the scan code of gained is directly sent in the buffer zone of main frame, handle to carry out the scan code comparison;
(5) data in main frame analysis and the processing buffer zone, main frame compares according to the standard scan code data storehouse of being set up in scan code data that obtained and the main frame, whether has only one to judge the scan code that only obtains by next key;
If after judging, the scan code of gained only has one, then will enter step 6;
If after judging, more than one of the scan code of gained then will enter step 7;
(6) scan code that is obtained only has one, and main frame will draw corresponding to a certain key on the computer keyboard of this scan code and not be short-circuited with other keys, then enter step 10;
(7) scan code that is obtained is more than one, expression line data line and line data line are short-circuited, also or column data line and column data line be short-circuited, so main frame will be according to more than one scan code of gained, be also to be positioned on the same column data line or to be positioned at on the data line line and judge button corresponding to these more than one scan codes;
If after judging, are the last buttons that are positioned at same column data line corresponding to the button of these more than one scan codes, then enter step 8;
If after judging, are the buttons that are positioned at on the data line line corresponding to the button of these more than one scan codes, then enter step 9;
(8) display text information on the screen of display produces the keyboard of short circuit in order to show the key pressed therewith, and demonstrates the title of other line data lines that the line data line at the key place of pressing therewith is short-circuited, and will enter step 10;
(9) display text information on the screen of display produces the keyboard of short circuit in order to show the key pressed therewith, and demonstrates the title of other column data lines that the column data line at the key place of pressing therewith is short-circuited, and will enter step 10;
(10) main frame judges whether the required button of test of computer keyboard was pressed entirely;
If the required button of test of computer keyboard was pressed entirely, then enter step 11;
If the required button of test of computer keyboard was not pressed as yet entirely, then get back to step 3;
(11) the required button of the test of computer keyboard was pressed entirely, the user is according to the short circuit result between the shown keyboard data line of the Word message of the demonstration on the screen of display, and can be easy to obtain the short-circuit conditions of short-circuit conditions, column data line and the column data line of line data line and line data line; With
(12) user has obtained the short-circuit conditions of computer keyboard according to the Word message on the screen of display, with the interrupt service routine reduction, and this fast key disk array test process that is through with.
8. program (2) described in the detection keyboard array method as claimed in claim 7 utilize the program of interrupt service routine with the scan code that obtains keyboard, interrupt service routine wherein is different from INT 9H interrupt service routine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 00118013 CN1327193A (en) | 2000-06-05 | 2000-06-05 | Method for detecting keyboard array short circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 00118013 CN1327193A (en) | 2000-06-05 | 2000-06-05 | Method for detecting keyboard array short circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1327193A true CN1327193A (en) | 2001-12-19 |
Family
ID=4587098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 00118013 Pending CN1327193A (en) | 2000-06-05 | 2000-06-05 | Method for detecting keyboard array short circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1327193A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100336017C (en) * | 2002-11-18 | 2007-09-05 | 神基科技股份有限公司 | Computer instantaneous starting system and method |
CN100369007C (en) * | 2005-01-31 | 2008-02-13 | 英群企业股份有限公司 | Automatic vision identifying system for identifying keyboard |
CN102193849A (en) * | 2010-03-03 | 2011-09-21 | 神讯电脑(昆山)有限公司 | Keyboard testing system |
CN101710949B (en) * | 2009-12-04 | 2013-12-18 | 深圳创维数字技术股份有限公司 | Digital television receiver with keyboard |
CN109407857A (en) * | 2017-08-15 | 2019-03-01 | 联想(新加坡)私人有限公司 | The method of scan code is sent in keyboard system, embedded controller and keyboard system |
-
2000
- 2000-06-05 CN CN 00118013 patent/CN1327193A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100336017C (en) * | 2002-11-18 | 2007-09-05 | 神基科技股份有限公司 | Computer instantaneous starting system and method |
CN100369007C (en) * | 2005-01-31 | 2008-02-13 | 英群企业股份有限公司 | Automatic vision identifying system for identifying keyboard |
CN101710949B (en) * | 2009-12-04 | 2013-12-18 | 深圳创维数字技术股份有限公司 | Digital television receiver with keyboard |
CN102193849A (en) * | 2010-03-03 | 2011-09-21 | 神讯电脑(昆山)有限公司 | Keyboard testing system |
CN109407857A (en) * | 2017-08-15 | 2019-03-01 | 联想(新加坡)私人有限公司 | The method of scan code is sent in keyboard system, embedded controller and keyboard system |
CN109407857B (en) * | 2017-08-15 | 2022-06-17 | 联想(新加坡)私人有限公司 | Keyboard system, embedded controller and method for sending scanning code in keyboard system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1179533C (en) | Character-recognition system for mobile radio communication terminal and method thereof | |
US4680572A (en) | Chord entry keying of data fields | |
CN1732509A (en) | Method and system for providing a disambiguated keypad | |
CN1538279A (en) | Chinese phonetic alphabet imput method by numeric key pad and its device | |
CN101322090A (en) | Input device | |
KR900007405B1 (en) | Keyboard control method | |
EP0548251A1 (en) | Method and system for matching the software command language of a computer with the printer language of a printer | |
CN1512440A (en) | Character input device | |
JPH07287631A (en) | Key input device | |
US20050049861A1 (en) | Chinese character input method | |
CN101038539A (en) | Information processing apparatus and information processing method | |
CN1327193A (en) | Method for detecting keyboard array short circuit | |
US20080129552A1 (en) | Concurrent data entry for a portable device | |
CN1310397A (en) | Computer keyboard testing method | |
US6535146B1 (en) | Method of detecting short-circuits of keyboard Matrix | |
US20030011572A1 (en) | Key input device having braille input function | |
CN1717651A (en) | Method and apparatus for secure data entry using multiple function keys | |
US6642858B1 (en) | Apparatus for inputting opening and closing parentheses simultaneously by single keystroke and method for the same | |
CN1138200C (en) | Input key system of electronic balance | |
JP3066729B2 (en) | Fingerprint input device | |
JP2000155640A (en) | Keyboard device | |
CN216697209U (en) | Code error prevention system platform of typewriter | |
CN1454343A (en) | Method and apparatus for entry of multi-stroke characters | |
AU609448B2 (en) | Keyboard crosspoint encoder having pseudo-n-key rollover | |
CA2497987A1 (en) | Handheld electronic device having facilitated input and associated method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |