CN102539987A - Testing method for key circuit boards and system - Google Patents
Testing method for key circuit boards and system Download PDFInfo
- Publication number
- CN102539987A CN102539987A CN2010105881267A CN201010588126A CN102539987A CN 102539987 A CN102539987 A CN 102539987A CN 2010105881267 A CN2010105881267 A CN 2010105881267A CN 201010588126 A CN201010588126 A CN 201010588126A CN 102539987 A CN102539987 A CN 102539987A
- Authority
- CN
- China
- Prior art keywords
- circuit board
- test
- pin
- script
- button
- 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
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention relates to a testing method for key circuit boards and a system. The testing system comprises a computer and a testing seat with a circuit board, the computer comprises a script database, a script building module and a testing module, and the script database is provided with a plurality of pin testing scripts. The testing module searches the pin testing script corresponding to the circuit board in the script database, and tests the circuit board according to the pin testing script. When the pin testing script cannot be found in the script database by the testing module, the script building module is started to generate the pin testing script. The testing method for key circuit boards and the system can test various circuit boards with different scanning matrix formats and circuit boards with different pin settings.
Description
Technical field
The present invention is about a kind of method of testing and system of button circuit board, especially about a kind of method of testing and system of button circuit board of input media.
Background technology
Science and technology arrived with the epoch of information; No matter be work or amusement and recreation; Computer with and peripherals be the part in everyone daily life; Input media as the bridge between computer and user also receives sizable attention, and input media comprises mouse, keyboard and trace ball etc.
Next be that example is explained with the key board unit that has maximum buttons in the input media, see also Fig. 1, it is the surface structure synoptic diagram of existing key board unit.Have a plurality of buttons on the surface of existing key board unit 1; Those buttons are classified as general key 10, numerical key 11 and function key 12 etc.; Those buttons supply the user to press with finger and produce corresponding signal to computer, make computer carry out touched keypress function---and general key 10 is in order to symbols such as inputting English letters, and numerical key 11 is in order to input digit; Function key 12 is then in order to provide various functions, for example F1~F12 etc.
Generally speaking, but key board unit in manufacture process must through the test to guarantee the key board unit operate as normal.The test of key board unit comprises to the test of the circuit board of key board unit and to the key board unit of accomplishing carries out complete test; To the test of circuit board is for fear of finding that after the key board unit assembling is accomplished the circuit board defectiveness exists, and must dismantle that key board unit is directed against the circuit board debug and disappearance that man-hour of causing is wasted.
At first explanation has the internal circuit of key board unit now.See also Fig. 2, it is the internal circuit synoptic diagram of existing key board unit.Key board unit 1 comprises a circuit board (not being shown among the figure), a microprocessor 13 and a keyboard scan matrix 14; Microprocessor 13 is connected in keyboard scan matrix 14; Microprocessor 13 remainders then are the wide knowledge of those of ordinary skills institute, so do not give unnecessary details.Intermesh by multi-strip scanning incoming line X0~X7 and multi-strip scanning output line Y0~Y17 and form as for 14 in keyboard scan matrix; Wherein the end of multi-strip scanning incoming line X0~X7 is connected in microprocessor 13; And the other end of multi-strip scanning incoming line X0~X7 is connected in a plurality of input pins (not being shown among the figure) of circuit board; And the end of multi-strip scanning output line Y0~Y17 is connected in microprocessor 13, and the other end of multi-strip scanning output line Y0~Y17 is connected in a plurality of output connecting pins (not being shown among the figure) of circuit board.Because the quantity of scanning incoming line is 8 (that is X0~X7); And the scanning number of output lines is 18 (that is Y0~Y17); That is the scan matrix form of keyboard scan matrix 14 is 8 * 18, and wherein each scanning incoming line and arbitrary scanning output line can form a contact, so keyboard scan matrix 14 can produce 144 contacts altogether; And those contacts can be corresponding to key board unit 1 lip-deep a plurality of buttons; That is to say that if on the key board unit 1 when 144 buttons are arranged, key board unit 1 inside then must be provided with 8 scanning incoming lines and 18 scanning output lines at least.
Next explanation has the method for the circuit board of test key board unit now.After the circuit board manufacturing of key board unit is accomplished; Circuit board is connected in a test module; Test module comprises 26 switches and 26 light emitting diodes; Wherein 26 switches are connected to corresponding to a plurality of input pins of multi-strip scanning incoming line X0~X7 and corresponding to a plurality of output connecting pins of multi-strip scanning output line Y0~Y17, and 26 light emitting diodes are then corresponding to 26 switches.Next press 26 switches in regular turn with manual type, behind touch-pressure switch, can be luminous corresponding to the light emitting diode of this switch to represent through test.If but behind the touch-pressure switch, not luminous corresponding to the light emitting diode of this switch, then represent to take place unusual corresponding to the input pin or the output connecting pin of this switch.Whether the tester can come the decision circuitry plate can normally move according to the luminous situation of light emitting diode.
Though the method for existing testing circuit board is simple; But through a large amount of key board unit circuit board testings; The tester can repeat to press same switch or leakage unavoidably and the false touch problem such as press, and just need test again and loses time this circuit board thus.
Therefore; Develop a kind of test macro of testing the keyboard device circuit board on the market; The test macro of this circuit board to the circuit board of a certain scan matrix form (for example 8 * 18) write in advance accomplish one be exclusively used in this circuit board the pin test script; And utilize program and this pin test script that circuit board is tested, and the false touch problem that can avoid the manual testing to produce.Yet; The test macro of this circuit board only can be exclusively used in the circuit board of certain scan matrix form of test; For example be connected in the circuit board of 8 * 18 scan matrix; If the test macro desire of circuit board scans the circuit board that is connected in 8 * 16 scan matrix, then must revise the pin test script in addition or write again one be exclusively used in the circuit board of 8 * 16 scan matrix forms the pin test script.
Wherein, set and must be defined by the pin of the circuit board of the test system and test of this circuit board, for example first of the circuit board input pin and the formed contact of first output connecting pin are defined as the A button.When the pin in the circuit board is set the pin test script do not meet in this circuit board testing system testing, likewise, must revise the pin test script in addition, just get so that the test macro of circuit board is tested this circuit board.Therefore need a kind of circuit board of various scan matrix forms and test macro of the circuit board that various pin is set of being used in.
Summary of the invention
The technical matters that the present invention mainly solves is, to the above-mentioned deficiency that prior art exists, a kind of method of testing and system of the button circuit board that can test the multiple circuit board of different scanning matrix format is provided.
Another technical matters that the present invention will solve is, to the above-mentioned deficiency that prior art exists, provide a kind of can be to having the method for testing and the system of the button circuit board that circuit board that different pins set tests.
The technical solution adopted for the present invention to solve the technical problems provides a kind of method of testing of button circuit board; In order to a button is tested with circuit board; This circuit board has a plurality of input pins and a plurality of output connecting pin; And this circuit board produces corresponding key set code according to the input pin and the output connecting pin that are triggered, and this method comprises:
One script database is provided;
Reception corresponding to the circuit board information of a correct circuit board by the pin test script of searching in this script database corresponding to this circuit board information; Wherein when this pin test script is not searched, receive pin information to be tested, and form this pin test script according to this circuit board information and this pin information to be tested corresponding to this correct circuit board; And
Test on this circuit board these a plurality of input pins and this a plurality of output connecting pins according to this pin test script corresponding to this pin information to be tested.
Preferably; When on this circuit board of test during corresponding to this a plurality of input pins of this pin information to be tested and this a plurality of output connecting pin; A plurality of input pin numberings and a plurality of output connecting pin numbering put down in writing according to this pin information to be tested trigger these a plurality of input pins and this a plurality of output connecting pins that correspond to; Make these a plurality of input pins and this a plurality of output connecting pins produce corresponding these a plurality of key set codes, and relatively whether these a plurality of key set codes are identical with a plurality of correct key set code of this pin information to be tested.
Preferably, when these a plurality of key set codes and this a plurality of correct key set codes not simultaneously, judge that this circuit board testing fails; And when a plurality of correct key set codes of these a plurality of key set codes and this are identical, judge that this circuit board is through test.
Preferably; This circuit board information comprises circuit board classification number, connectivity port numbering and scan matrix form; And this key set code is scan code (Scan code); And this circuit board is installed in the input media of PS/2 (Personal System/2) interface, and this input media is keyboard, mouse or trace ball.
Preferably, be to search by searching this pin test script in this script database, and this script database is to be stored in the computer according to the circuit board classification number of this circuit board information.
Preferably, when this pin test script was not searched, this method of testing also comprised connectivity port numbering and the scan matrix form that receives this circuit board information.
The present invention also provides a kind of test macro of button circuit board; Be applied to a button is tested with circuit board; This circuit board has a plurality of input pins and a plurality of output connecting pin; And this circuit board produces corresponding key set code according to the input pin and the output connecting pin that are triggered, and this test macro comprises computer and test bench: wherein, this computer comprises that the pin database, the script that are stored in this computer set up module and test module; This script is set up module and is installed in this computer, in order to produce a pin test script and to be stored in this pin database; This test module is installed in this computer, in order to produce the test signal corresponding to this pin test script according to this pin test script, so that this circuit board is tested; This test bench is connected in this computer; In order to this circuit board to be set on this test bench; And produce the emulation push button signalling according to this test signal; To trigger these a plurality of input pins and this a plurality of output connecting pins, make this circuit board output corresponding to this test module in these a plurality of key set codes to this computer of these a plurality of input pins and these a plurality of output connecting pins corresponding to this emulation push button signalling; Wherein this test module relatively these a plurality of key set codes and this pin test script a plurality of correct key set code and judge that whether this circuit board is through test.
Preferably; This pin test script also comprises circuit board information and pin information to be tested; And this pin information to be tested records a plurality of input pin numberings and a plurality of output connecting pin numbering, and these a plurality of correct key set codes are recorded in this pin information to be tested.
Preferably, this circuit board information comprises circuit board classification number, connectivity port numbering and scan matrix form, and this key set code is scan code, and this circuit board is installed in the input media of PS/2 interface, and this input media is keyboard, mouse or trace ball.
Preferably; This circuit board information comprise circuit board classification number, connectivity port numbering, scan matrix form, product identification sign indicating number (Product ID, PID), manufacturer's identification sign indicating number (Vendor ID, VID) and the input media classification code; And this key set code is a scan code; (Universal Series Bus, USB) in the input media of interface, and this input media is keyboard, mouse or trace ball and this circuit board is installed on USB.
Preferably, this test module is not judged this circuit board testing failure simultaneously at these a plurality of key set codes and these a plurality of correct key set codes; And judge that when a plurality of correct key set codes of these a plurality of key set codes and this are identical this circuit board is through test.
Preferably, this computer is connected in a screen, sets up the test interface that the script of module is set up interface and this test module in order to show this script, and this pin test script is set up interface by this script and produced.
Preferably; This script is set up interface display circuit board Information, the connectivity port sets the hurdle and pin to be tested is set the hurdle, and this test interface shows testing circuit board Information, test Port hurdle, searches hurdle, contact to be tested hurdle, test contacts quantity hurdle, test display field and test mode district.
Preferably, this test bench comprises control module, analog switch, power lead, first signal wire and secondary signal line, and wherein, this control module is electrically connected on this circuit board, in order to export this emulation push button signalling according to this test signal; This analog switch is electrically connected on this control module and this circuit board, triggers these a plurality of input pins and this a plurality of output connecting pins corresponding to this circuit board of this emulation push button signalling in order to receive this emulation push button signalling; This power lead is connected in this computer, in order to transmission from the electric power of this computer to this test bench; This first signal wire is connected in this computer, in order to transmission this test signal from this computer; This secondary signal line is connected in this computer, in order to transmit this test module in these a plurality of key set codes to this computer.
Preferably, this power lead and this secondary signal line are the USB connecting lines, and this first signal wire is the RS232 connecting line.
The method of testing test macro of button circuit board of the present invention is tested circuit board by the pin test script in the script database; When the pin test script that do not have in the script database corresponding to circuit board to be tested; Then set up one be specific to this circuit board to be tested the pin test script; And store this pin test script in script database, can in script database, search this pin test script during for the circuit board of testing same type in the future and use it.Therefore, the test macro of the method for testing of button circuit board of the present invention and button circuit board applicable to the circuit board of various scan matrix forms the non-limiting circuit board that only can test certain specific format.Moreover; The method of testing of button circuit board of the present invention and the test macro of button circuit board also can be in the processes of setting up the pin test script; Setting up interface by script comes the input pin of definition circuit plate and the pin of output connecting pin to set; Make method of testing of the present invention and test macro applicable to circuit board, and do not need to write in addition or revise the pin test script, and can save the time of editor's pin test script with various pins settings.
Description of drawings
Fig. 1 is the surface structure synoptic diagram of existing key board unit.
Fig. 2 is the internal circuit synoptic diagram of existing key board unit.
Fig. 3 is the block flow diagram of method of testing in first preferred embodiment of button circuit board of the present invention.
Fig. 4 is the block schematic diagram of test macro in first preferred embodiment of button circuit board of the present invention.
Fig. 5, Fig. 6 are the internal circuit synoptic diagram of test bench in first preferred embodiment of the test macro of button circuit board of the present invention.
Fig. 7, Fig. 8 are that the script of the test macro of button circuit board of the present invention is set up the window synoptic diagram of interface in first preferred embodiment.
Fig. 9, Figure 10, Figure 11, Figure 12, Figure 13 are the window synoptic diagram of test interface in first preferred embodiment of the test macro of button circuit board of the present invention.
Figure 14 is that the script of the test macro of button circuit board of the present invention is set up the window synoptic diagram of interface in second preferred embodiment.
Embodiment
Each step in the method for testing of button circuit board of the present invention at first is described.See also Fig. 3, it is for the block flow diagram of method of testing in first preferred embodiment of button circuit board of the present invention.The method of testing of button circuit board of the present invention may further comprise the steps: at first carry out step S1: a script database is provided; Next carry out step S2: receive circuit board classification number corresponding to the circuit board information of correct circuit board, and by the pin test script of searching in the script database corresponding to the circuit board classification number.When the pin test script is not searched, carry out step S3, and when the pin test script is searched, then carry out step S6, wherein step S3 is provided with a correct circuit board on test bench.And step S6 is provided with circuit board on test bench.On the other hand, carry out step S4 after step S3 accomplishes: receive corresponding to the connectivity port numbering of the circuit board information of correct circuit board, the scan matrix form and the pin information to be tested of circuit board information.Step S4 carries out step S5 after accomplishing: form the pin test script according to circuit board information and pin information to be tested, and store the pin test script in script database, and step S5 also carries out step S6 after accomplishing.
Next; Carry out step S7 after step S6 accomplishes: whether the decision circuitry plate has and the correct identical scan matrix form of circuit board; If both scan matrix forms are judged as difference; Then carry out step S8: be replaced by another circuit board and another circuit board be set on test bench, carry out step S7 once more after step S8 accomplishes, if both scan matrix forms still are judged as not simultaneously; Then repeating step S8 and step S7, until circuit board and correct circuit board be judged as have identical scan matrix form till.When both scan matrix form is judged as when identical; Carry out step S9: trigger a plurality of input pins and a plurality of output connecting pin corresponding to a plurality of input pin numberings and a plurality of output connecting pin numbering according to the pin test script; Make a plurality of input pins and a plurality of output connecting pin produce corresponding a plurality of key set code, next carry out step S10: whether more a plurality of key set codes are identical with the correct key set code of pin information to be tested.When a plurality of key set codes were identical with correct key set code, carry out step S11: the decision circuitry plate was through test; And when a plurality of key set codes and correct key set code not simultaneously, then carry out step S12: the failure of decision circuitry board test.The inventive method finishes.
Next explain further for the key set code in this preferred embodiment, correct circuit board, circuit board information, pin test script, pin information to be tested, correct key set code, scan matrix form and script database.The scan matrix form also is the form of the key scan matrix of input media, for example: 8 * 18, forms such as 8 * 16 or 8 * 17, just relevant with scanning incoming line and scanning number of output lines.Key set code is then relevant with a plurality of buttons of input media, and a plurality of buttons are corresponding to a plurality of button contacts of key scan matrix, and each button contact is made up of scanning incoming line and scanning output line.Illustrate; When the user presses the A button on the key board unit; Button contact corresponding to the A button is triggered, and the scanning incoming line and the scanning output line that form this button contact also are triggered, and therefore produce the coding corresponding to this button contact; Making the computer that is connected in key board unit receive this coding and can learning the scanning incoming line that is triggered and scan output line is corresponding to the A button, and this coding is key set code.In this preferred embodiment, key set code is one scan sign indicating number (Scan Code).
As for correct circuit board, be meant to be judged as the circuit board that can normally move through the general test module.Correct key set code then is scanning incoming line that is triggered on the correct circuit board and the scanning coding that output line produced.In this preferred embodiment, circuit board is installed in the input media of a PS/2 (Personal System/2) interface, so circuit board information comprises a circuit board classification number, connectivity port numbering and one scan matrix format.The circuit board classification number is to classify with the scan matrix form of circuit board; For example: the circuit board that is connected in 8 * 18 key scan matrix is divided into first kind; The circuit board that is connected in 8 * 16 key scan matrix then is divided into second kind, wherein the corresponding circuit board classification number of each kind.
In this preferred embodiment, pin information to be tested records a plurality of input pins numberings, a plurality of output connecting pin numbering of desire test and corresponding to a plurality of correct key set code of above-mentioned a plurality of input pins numberings with a plurality of output connecting pins numberings.The pin test script comprises foregoing circuit plate information and above-mentioned pin information to be tested, and script database is then in order to store above-mentioned pin test script.
Next the test macro of the button circuit board of the inventive method is carried out in explanation.See also Fig. 4, it is for the block schematic diagram of test macro in first preferred embodiment of button circuit board of the present invention.The test macro 2 of button circuit board comprises a computer 20, a test bench 21 and a screen 22, and test bench 21 is connected to computer 20 with screen 22, and test bench 21 is in order to being provided with a circuit board 23 on it, and testing circuit board 23.In this preferred embodiment, circuit board 23 is installed in the input media of a PS/2 (Personal System/2) interface, and input media is keyboard, mouse or trace ball.
Among Fig. 4; The script that the screen 22 that is connected in computer 20 is set up module 202 in order to display script is set up a test interface 222 of interface 221 and test module 203, and test bench 21 comprises a control module 211, an analog switch 212, a power lead 213, one first signal wire 214 and a secondary signal line 215.Test bench 21 is connected in computer 20 by power lead 213, first signal wire 214 and secondary signal line 215; Wherein power lead 213 gives test bench 21 in order to an electric power E who transmits from computer 20; First signal wire 214 is in order to the test signal T of this transmission from computer 20, and secondary signal line 215 gives the test module 203 in the computer 20 in order to transmit a plurality of key set code C1.What need special instruction is that in another preferred embodiment, power lead can be connected in other power supply supply but not be connected in computer.Perhaps, in other preferred embodiment, test bench can in build power supply and power lead need be set.Control module 211 is connected in analog switch 212, and analog switch 212 is connected in circuit board 23.
See also Fig. 5 and Fig. 6, it is the internal circuit synoptic diagram of test bench in first preferred embodiment of the test macro of button circuit board of the present invention.First signal wire 214 and power lead 213 in the test bench 21 are connected to computer 20, can be known by Fig. 5, and first signal wire 214 is RS232 connecting lines.In this preferred embodiment, power lead 213 and secondary signal line 215 are a USB (USB) connecting lines.Among Fig. 5 and Fig. 6, control module 211 is connected in a plurality of analog switches 212, and a plurality of analog switch 212 is connected with a plurality of input pin A0~A7 and a plurality of output connecting pin B0~B17.In this preferred embodiment, a plurality of analog switches 212 are the CD4066 switch.
Next explain that script sets up the script of module 202 and set up interface 221, see also Fig. 7 and Fig. 8, its script for the test macro of button circuit board of the present invention is set up the window synoptic diagram of interface in first preferred embodiment.The script that is shown in screen 22 is set up interface 221 and is shown that a circuit board Information 2211, a Port set hurdle 2212, one pin to be tested and set a hurdle 2213 and a deposit option 2214.In this preferred embodiment, circuit board Information 2211 is in order to receive a circuit board classification number.Port is set hurdle 2212 and is comprised a Port selectionbar 2212A and one scan matrix format hurdle 2212B; Port selectionbar 2212A is in order to receive the connectivity port numbering, and scan matrix ribbon 2212B is then in order to receive the scan matrix form of correct circuit board.Pin to be tested is set input pin numbering and the output connecting pin numbering of hurdle 2213 in order to receive correct circuit board 24, and deposit option 2214 is then stored pin test script 2011 in script database 201 in order to click.
Test interface as for test module then sees also Fig. 9, and it is the window synoptic diagram of test interface in first preferred embodiment of the test macro of button circuit board of the present invention.The test interface 222 that is shown in screen 22 shows a testing circuit board Information 2221, a test Port hurdle 2222,2223, one contact to be tested hurdle 2224, a search hurdle, a test contacts quantity hurdle 2225, a test display field 2226 and a test mode district 2227.Testing circuit board Information 2221 and test Port hurdle 2222 are quite similar with circuit board Information 2211 and setting hurdle 2212, connectivity port that script is set up interface 221; Testing circuit board Information 2221 is searched the pin test script 2011 corresponding to this circuit board classification number in script database 201 in order to the circuit board for receiving classification number; And test Port hurdle 2222 comprises a test Port selectionbar 2222A and a test scan matrix format hurdle 2222B; Wherein test Port selectionbar 2222A in order to acceptance test Port numbering, test scan matrix format hurdle 2222B is then in order to receive the scan matrix form of circuit board to be tested 23.
Next the operation situation of the test macro of button circuit board of the present invention is described; Among Fig. 4; When 2 pairs of circuit boards 23 of test macro of button circuit board begin to test, at first, script database 201 is provided; And store script database 201 in computer 20 (that is step S1), wherein script database 201 has a plurality of pin test scripts that are applicable to multiple circuit board.Next start the test module 203 of computer 20, the test interface 222 of test module 203 is shown in the screen 22, as shown in Figure 9.Circuit board for receiving classification number (that is 12345-1) is shown in figure 10 by the testing circuit board Information 2221 of test interface 222.At this moment, test module 203 is searched the pin test script 2011 (that is step S2) corresponding to this circuit board classification number according to the circuit board classification number that receives in script database 201.When test module 203 does not search the pin test script 2011 corresponding to this circuit board classification number in script database 201; The correct circuit board 24 that placement and circuit board 23 to be tested have the same scan matrix format is on test bench 21; And computer 20 starts script and sets up module 202; Simultaneously, the script that script is set up module 202 is set up interface 221 and is shown in (that is step S3) on the screen 22, and is as shown in Figure 7.
Script is set up in the interface 221; Reception is corresponding to the circuit board classification number of correct circuit board by circuit board Information 2211; Wherein the circuit board classification number of this correct circuit board is identical with the circuit board classification number (being 12345-1) of circuit board to be tested, so the circuit board classification number of correct circuit board also is 12345-1.Next Port selectionbar 2212A and the one scan matrix format hurdle 2212B by Port setting hurdle 2212 receives the scan matrix form that the Port that is connected in test bench 21 is numbered (that is first signal wire 214) and correct circuit board 24 respectively; In this preferred embodiment; First signal wire 214 is connected in first Port of computer 20; So Port selectionbar 2212A receives the Port numbering " 1 " of representing first Port; Certainly, first signal wire 214 also can be connected in second Port of computer 20, and the Port numbering that this moment, Port selectionbar 2212A received then is " 2 ".And the scan matrix form of correct circuit board is 8 * 18, so scan matrix ribbon 2212B receives " 18 ".
Next the pin to be tested of setting up interface 221 by script is set input pin numbering and the output connecting pin numbering that hurdle 2213 receives correct circuit board in regular turn; Pin to be tested is set and has been shown output connecting pin hurdle 2213A and input pin hurdle 2213B in the hurdle 2213; The output connecting pin that output connecting pin hurdle 2213A receives in regular turn is numbered B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12, B13, B14, B15, B16 and B17; And the input pin that input pin hurdle 2213B receives in regular turn is numbered A7, A6, A5, A4, A3, A2, A1, A0, A7, A6, A5, A4, A3, A2, A1, A0, A7 and A6, and is as shown in Figure 8.
What need special instruction is; Each input pin and each output connecting pin form the button contact in the key scan matrix; Can be known that by Fig. 8 input pin A7 and output connecting pin B0 form button contact K1, input pin A6 and output connecting pin B1 form button contact K2;, input pin A6 and output connecting pin B17 form button contact K18.After input pin numbering and output connecting pin numbering are received; Test bench 22 produces corresponding a plurality of correct key set code according to a plurality of input pins (not being shown among the figure) and a plurality of output connecting pin (not being shown among the figure) corresponding to those pins numberings on those input pin numberings and the correct circuit board 24 of output connecting pin numbering triggering; And script is set up module 202 receptions; Wherein circuit board classification number, connectivity port numbering and scan matrix form belong to circuit board information; Input pin numbering, output connecting pin numbering and correct key set code then belong to pin information to be tested, so above-mentioned circuit board for receiving classification number, connectivity port numbering, scan matrix form, input pin numbering, output connecting pin numbering and correct key set code all belong to step S4.
Script is set up module 202 and is received after the circuit board information and pin information to be tested corresponding to correct circuit board 24; Form pin test script 2011 according to circuit board information and pin information to be tested, and set up the deposit option 2214 in the interface 221 and store pin test script 2011 (step S5) in script database 201 by clicking script.
After pin test script 2011 was established, the step of being carried out when searching with above-mentioned pin test script 2011 was identical, that is circuit board 23 (step S6) on test bench 21 is set; At this moment, among the test interface 222, by test Port selectionbar 2222A acceptance test Port numbering; That is " 1 "; Test scan matrix format hurdle 2222B then receives the scan matrix form of circuit board to be tested, that is " 18 ", and is shown in figure 10.After circuit board 23 is set up completion; Whether test module 203 decision circuitry plates 23 have the scan matrix form (step S7) identical with correct circuit board 24; If circuit board 23 is judged when not having the scan matrix form identical with correct circuit board 24, is changed another circuit board and another circuit board (step S8) on test bench 21 is set.Judge once more then after change accomplishing whether another circuit board has the scan matrix form identical with correct circuit board 24; If both scan matrix forms still are judged as not simultaneously; Then continue to change circuit board and judge both scan matrix form once more, until be arranged at circuit board and correct circuit board 24 on the test bench 21 be judged as have identical scan matrix form till.And judged when circuit board 23 and to search hurdle 2223 demonstrations one match information when having the scan matrix form identical with correct circuit board 24, shown in figure 10.
Next; Test module 203 produces the control module 211 that gives test bench 21 corresponding to the test signal T of pin test script 2011 according to pin test script 2011, wherein test signal T include should be to be tested a plurality of input pins numberings and a plurality of output connecting pin numbering.The control module 211 that receives test signal T produces emulation push button signalling S to a plurality of analog switches 212; To trigger a plurality of input pins 231 and a plurality of output connecting pin 232 corresponding to emulation push button signalling S (that is a plurality of input pin numbering and a plurality of output connecting pin numbering); Therefore a plurality of input pins 231 and a plurality of output connecting pin 232 produce corresponding a plurality of key set code C (step S9), and wherein a plurality of key set code C transfer to the test module 203 in the computer 20 by secondary signal line 215.Test module 203 more a plurality of key set code C whether with pin information to be tested in the correct key set code that write down identical; At this moment; Whether to be tested contact to be tested hurdle 2224 answered button contact K1~K18 (that is whether input pin 231 is triggered with output connecting pin 232) and changed; Test contacts quantity hurdle 2225 produces change according to test result (that is result of more a plurality of key set code C and correct key set code), and the input pin 231 that test display field 2226 then should be triggered shows its contact data with output connecting pin 232.
Among Figure 11; When numbering the button contact K1 completion to be tested of A7 and output connecting pin numbering B0 corresponding to the input pin; Zone corresponding to button contact K1 in the contact to be tested hurdle 2224 can show with one first color (for example green); And when the key set code C that is produced corresponding to input pin 231 and the output connecting pin 232 of button contact K1 is identical with correct key set code; The test contacts quantity of answering in the test contacts quantity hurdle 2225 changes to 17 by 18 (seeing also Fig. 7 B); Test contacts quantity changes to 1 by 0 (seeing also Figure 10), and test contacts quantity does not change to 17 by 18 (seeing also Figure 10), and testing circuit board quantity, total passing number, total umber of defectives and yield then are maintained 0.As for the contact data of 2226 demonstrations of test display field corresponding to button contact K1; That is " 19 KeyDown 69 " and " 19 KeyUp 69 "; Wherein its contact of the expression of 19 in " 19KeyDown 69 " is numbered, 69 its key set codes of expression, and KeyDown representes that then this contact is triggered.In like manner, KeyUp representes that then this contact stops to be triggered, and must show that KeyUp and KeyDown do not stop to be triggered after being triggered and the situation that causes similar button to be pressed continuously for fear of contact.
When all button contact K1~K18 all are triggered and its key set code when all identical with correct key set code; Test module 203 decision circuitry plates 23 are through test (step S11); And in the test interface 222; The zone of all button contacts can show with first color (that is green) in the contact to be tested hurdle 2224, and test mode district 2227 shows that one passes through detecting information.In test contacts quantity hurdle 2225, answer test contacts quantity to show 18, test contacts quantity shows 18; Test contacts quantity does not show 0, and testing circuit board quantity shows 1, and total qualified digital display shows 1; Total umber of defectives shows 0, and yield shows 100%, and is shown in figure 12.The EOT of circuit board 23.
All button contact K1~K18 all are triggered and its most of key set codes are identical with correct key set code and work as; And part key set code (for example corresponding to button contact K2 key set code) and correct key set code are not simultaneously; Test module 203 decision circuitry plates, 23 test crashs (step S12); And in the test interface 222; Show with first color (promptly green) corresponding to the zone of button contact K1 and K3~K18 in the contact to be tested hurdle 2224, and show with second color (for example red), and test mode district 2227 shows a test crash information corresponding to the zone of button contact K2.In test contacts quantity hurdle 2225, answer test contacts quantity to show 18, test contacts quantity shows 18; Test contacts quantity does not show 0, and testing circuit board quantity shows 1, and total qualified digital display shows 0; Total umber of defectives shows 1, and yield shows 0%, and is shown in figure 13.The EOT of circuit board 23.
If have other with the circuit board of correct circuit board same scan matrix format also the test macro 2 of button circuit board of the present invention capable of using test; And the test result of those circuit boards can be shown in the test contacts quantity hurdle 2225, to calculate the yield of those circuit boards.
Moreover the method for testing of button circuit board of the present invention and the test macro of button circuit board also provide one second preferred embodiment.In this preferred embodiment, the method for testing of button circuit board and the test macro of button circuit board are in order to test all-purpose universal serial bus (Universal Series Bus, USB) circuit board of interface.
The method of testing of the button circuit board of this preferred embodiment is almost completely identical with first preferred embodiment; Difference only is; Circuit board information also comprises a product identification sign indicating number (Product ID except circuit board classification number, connectivity port numbering and scan matrix form; PID), manufacturer identification sign indicating number (Vendor ID, VID) and an input media classification code.The said goods identification sign indicating number, manufacturer's identification sign indicating number and input media classification code are the peculiar identification sign indicating numbers of input media that belongs to USB interface.
Likewise, this difference is shown in the script of the test macro of this preferred embodiment button circuit board and sets up in the interface, sees also Figure 14, and its script for the test macro of button circuit board of the present invention is set up the window synoptic diagram of interface in second preferred embodiment.Script is set up interface 321 except comprising equally that with first preferred embodiment circuit board Information 3211, a Port set hurdle 3212, one pin to be tested and set a hurdle 3213 and the deposit option 3214; A USB Information 3211A who also comprises circuit board Information 3211 is in order to product identification sign indicating number, manufacturer's identification sign indicating number and the input media classification code of circuit board for receiving.The test macro of method of testing and button circuit board of button circuit board that can get the knowledge capital preferred embodiment according to the related content of the foregoing and first preferred embodiment is to the enforcement situation of the circuit board of USB interface, so no longer add explanation.
Can know according to above-mentioned two preferred embodiments; The method of testing of button circuit board of the present invention and the test macro of button circuit board are tested circuit board by the pin test script in the script database; When the pin test script that do not have in the script database corresponding to circuit board to be tested; Then set up one be specific to this circuit board to be tested the pin test script; And store this pin test script in script database, can in script database, search this pin test script during for the circuit board of testing same type in the future and use it.Therefore, the test macro of the method for testing of button circuit board of the present invention and button circuit board applicable to the circuit board of various scan matrix forms the non-limiting circuit board that only can test certain specific format.
Moreover; The method of testing of button circuit board of the present invention and the test macro of button circuit board also can be in the processes of setting up the pin test script; Setting up interface by script comes the input pin of definition circuit plate and the pin of output connecting pin to set; Make method of testing of the present invention and test macro applicable to circuit board, and do not need to write in addition or revise the pin test script, and can save the time of editor's pin test script with various pins settings.
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 (15)
1. the method for testing of a button circuit board; In order to a button is tested with circuit board; It is characterized in that; This circuit board has a plurality of input pins and a plurality of output connecting pin, and this circuit board produces corresponding key set code according to the input pin and the output connecting pin that are triggered, and this method comprises:
One script database is provided;
Reception corresponding to the circuit board information of a correct circuit board by the pin test script of searching in this script database corresponding to this circuit board information; Wherein when this pin test script is not searched, receive pin information to be tested, and form this pin test script according to this circuit board information and this pin information to be tested corresponding to this correct circuit board; And
Test on this circuit board these a plurality of input pins and this a plurality of output connecting pins according to this pin test script corresponding to this pin information to be tested.
2. the method for testing of button circuit board as claimed in claim 1; It is characterized in that; When on this circuit board of test during corresponding to this a plurality of input pins of this pin information to be tested and this a plurality of output connecting pin; A plurality of input pin numberings and a plurality of output connecting pin numbering put down in writing according to this pin information to be tested trigger these a plurality of input pins and this a plurality of output connecting pins that correspond to; Make these a plurality of input pins and this a plurality of output connecting pins produce corresponding these a plurality of key set codes, and relatively whether these a plurality of key set codes are identical with a plurality of correct key set code of this pin information to be tested.
3. the method for testing of button circuit board as claimed in claim 2 is characterized in that, when these a plurality of key set codes and this a plurality of correct key set codes not simultaneously, judge that this circuit board testing fails; And when a plurality of correct key set codes of these a plurality of key set codes and this are identical, judge that this circuit board is through test.
4. the method for testing of button circuit board as claimed in claim 1; It is characterized in that; This circuit board information comprises circuit board classification number, connectivity port numbering and scan matrix form; And this key set code is a scan code, and this circuit board is installed in the input media of PS/2 interface, and this input media is keyboard, mouse or trace ball.
5. the method for testing of button circuit board as claimed in claim 1 is characterized in that, be to search according to the circuit board classification number of this circuit board information by searching this pin test script in this script database, and this script database is to be stored in the computer.
6. the method for testing of button circuit board as claimed in claim 1 is characterized in that, when this pin test script is not searched, also comprises the connectivity port numbering and the scan matrix form that receive this circuit board information.
7. the test macro of a button circuit board; Be applied to a button is tested with circuit board; It is characterized in that; This circuit board has a plurality of input pins and a plurality of output connecting pin, and this circuit board produces corresponding key set code according to the input pin and the output connecting pin that are triggered, and this test macro comprises:
Computer, it comprises that the pin database, the script that are stored in this computer set up module and test module, wherein, this script is set up module and is installed in this computer, in order to produce a pin test script and to be stored in this pin database; This test module is installed in this computer, in order to produce the test signal corresponding to this pin test script according to this pin test script, so that this circuit board is tested; And
Test bench; Be connected in this computer; In order to this circuit board to be set on this test bench; And produce the emulation push button signalling according to this test signal, to trigger this a plurality of input pins and this a plurality of output connecting pins, this circuit board is exported corresponding to this test module in these a plurality of key set codes to this computer of these a plurality of input pins and these a plurality of output connecting pins corresponding to this emulation push button signalling; Wherein this test module relatively these a plurality of key set codes and this pin test script a plurality of correct key set code and judge that whether this circuit board is through test.
8. the test macro of button circuit board as claimed in claim 7; It is characterized in that; This pin test script also comprises circuit board information and pin information to be tested; And this pin information to be tested records a plurality of input pin numberings and a plurality of output connecting pin numbering, and these a plurality of correct key set codes are recorded in this pin information to be tested.
9. the test macro of button circuit board as claimed in claim 8; It is characterized in that; This circuit board information comprises circuit board classification number, connectivity port numbering and scan matrix form; And this key set code is a scan code, and this circuit board is installed in the input media of PS/2 interface, and this input media is keyboard, mouse or trace ball.
10. the test macro of button circuit board as claimed in claim 8; It is characterized in that; This circuit board information comprises circuit board classification number, connectivity port numbering, scan matrix form, product identification sign indicating number, manufacturer's identification sign indicating number and input media classification code; And this key set code is a scan code, and this circuit board is installed in the input media of USB, and this input media is keyboard, mouse or trace ball.
11. the test macro of button circuit board as claimed in claim 7 is characterized in that, this test module is not judged this circuit board testing failure simultaneously at these a plurality of key set codes and these a plurality of correct key set codes; And judge that when a plurality of correct key set codes of these a plurality of key set codes and this are identical this circuit board is through test.
12. the test macro of button circuit board as claimed in claim 7; It is characterized in that; This computer is connected in a screen, sets up the test interface that the script of module is set up interface and this test module in order to show this script, and this pin test script is set up interface by this script and produced.
13. the test macro of button circuit board as claimed in claim 12; It is characterized in that; This script is set up interface display circuit board Information, the connectivity port sets the hurdle and pin to be tested is set the hurdle, and this test interface shows testing circuit board Information, test Port hurdle, searches hurdle, contact to be tested hurdle, test contacts quantity hurdle, test display field and test mode district.
14. the test macro of button circuit board as claimed in claim 7 is characterized in that, this test bench comprises:
Control module is electrically connected on this circuit board, in order to export this emulation push button signalling according to this test signal;
Analog switch is electrically connected on this control module and this circuit board, triggers these a plurality of input pins and this a plurality of output connecting pins corresponding to this circuit board of this emulation push button signalling in order to receive this emulation push button signalling;
Power lead is connected in this computer, in order to transmission from the electric power of this computer to this test bench;
First signal wire is connected in this computer, in order to transmission this test signal from this computer; And
The secondary signal line is connected in this computer, in order to transmit this test module in these a plurality of key set codes to this computer.
15. the test macro of button circuit board as claimed in claim 14 is characterized in that, this power lead and this secondary signal line are the USB connecting lines, and this first signal wire is the RS232 connecting line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105881267A CN102539987A (en) | 2010-12-08 | 2010-12-08 | Testing method for key circuit boards and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105881267A CN102539987A (en) | 2010-12-08 | 2010-12-08 | Testing method for key circuit boards and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102539987A true CN102539987A (en) | 2012-07-04 |
Family
ID=46347356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105881267A Pending CN102539987A (en) | 2010-12-08 | 2010-12-08 | Testing method for key circuit boards and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102539987A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109239590A (en) * | 2018-08-22 | 2019-01-18 | 中航华东光电有限公司 | Key light guide board measuring method |
CN112114249A (en) * | 2019-06-21 | 2020-12-22 | 致伸科技股份有限公司 | Infinite multitask key test system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369761A (en) * | 2000-11-06 | 2002-09-18 | 英业达股份有限公司 | Method for automatically testing specification of keyboard |
CN101149697A (en) * | 2006-09-20 | 2008-03-26 | 英业达股份有限公司 | Key test system and method |
US20100171510A1 (en) * | 2009-01-07 | 2010-07-08 | Inventec Appliances Corp. | Testing apparatus and testing method |
CN101876930A (en) * | 2009-04-28 | 2010-11-03 | 致伸科技股份有限公司 | Keyboard automatic test system |
-
2010
- 2010-12-08 CN CN2010105881267A patent/CN102539987A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369761A (en) * | 2000-11-06 | 2002-09-18 | 英业达股份有限公司 | Method for automatically testing specification of keyboard |
CN101149697A (en) * | 2006-09-20 | 2008-03-26 | 英业达股份有限公司 | Key test system and method |
US20100171510A1 (en) * | 2009-01-07 | 2010-07-08 | Inventec Appliances Corp. | Testing apparatus and testing method |
CN101876930A (en) * | 2009-04-28 | 2010-11-03 | 致伸科技股份有限公司 | Keyboard automatic test system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109239590A (en) * | 2018-08-22 | 2019-01-18 | 中航华东光电有限公司 | Key light guide board measuring method |
CN112114249A (en) * | 2019-06-21 | 2020-12-22 | 致伸科技股份有限公司 | Infinite multitask key test system |
CN112114249B (en) * | 2019-06-21 | 2023-08-08 | 致伸科技股份有限公司 | Infinite multitasking key test system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104576145B (en) | Lighting keyboard | |
CN104090964A (en) | Electronic device testing method and system | |
CN101876930B (en) | Keyboard automatic test system | |
CN1746824B (en) | Method, apparatus and system for key press determination | |
CN102609072B (en) | The method that response button triggers and the portable set that adopts the method | |
CN101951263A (en) | Key scanning method and system | |
CN102591554A (en) | Input method for mobile phone and device | |
CN218484550U (en) | Key membrane and cognitive ability test terminal | |
US10684700B2 (en) | Keyboard threshold change apparatus and keyboard | |
CN102539987A (en) | Testing method for key circuit boards and system | |
US4424576A (en) | Maintenance panel for communicating with an automated maintenance system | |
TWI378345B (en) | Automatic testing system for keyboard | |
CN106469110A (en) | A kind of message prompt method based on mobile terminal, device and mobile terminal | |
CN110320012A (en) | A kind of LED intelligence manufacture detection device | |
CN102375545A (en) | Keyboard with mode switching function | |
WO2006014058A2 (en) | Data input device and method thereof | |
CN101471977B (en) | Keyboard test system and test method for intelligent mobile phone | |
CN107481595A (en) | FPGA brassboard debugging systems | |
CN110865915A (en) | Maintenance and debugging device for ticket selling and checking equipment | |
CN110069141A (en) | A kind of keyboard display method, keyboard and electronic equipment | |
CN110715792B (en) | Display panel, test method and tool thereof and display device | |
CN101826046B (en) | Power-on debugging method of computer | |
CN102622288A (en) | Method for testing keyboard module and testing system of keyboard module | |
CN101470651B (en) | System used for detecting keyboard control function of electronic device | |
CN202404532U (en) | Non-light-projection-based input keyboard |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120704 |