[go: up one dir, main page]

CN101470651A - System for detecting keyboard control function of electronic device - Google Patents

System for detecting keyboard control function of electronic device Download PDF

Info

Publication number
CN101470651A
CN101470651A CNA2007103066284A CN200710306628A CN101470651A CN 101470651 A CN101470651 A CN 101470651A CN A2007103066284 A CNA2007103066284 A CN A2007103066284A CN 200710306628 A CN200710306628 A CN 200710306628A CN 101470651 A CN101470651 A CN 101470651A
Authority
CN
China
Prior art keywords
row
column
keyboard
program
terminals
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.)
Granted
Application number
CNA2007103066284A
Other languages
Chinese (zh)
Other versions
CN101470651B (en
Inventor
廖祝湘
张基霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Giga Byte Technology Co Ltd
Original Assignee
Giga Byte Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CN2007103066284A priority Critical patent/CN101470651B/en
Publication of CN101470651A publication Critical patent/CN101470651A/en
Application granted granted Critical
Publication of CN101470651B publication Critical patent/CN101470651B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

A system for detecting the keyboard control function of an electronic device comprises a computer, a keyboard simulation program executed by the computer, and a keyboard simulation circuit connected with the computer and the column pins and the row pins of the electronic device. The keyboard simulation program comprises a plurality of key programs which respectively represent keys on a physical keyboard, and when any key program is triggered, the any key program can prompt the computer to transmit corresponding control data to the keyboard simulation circuit. The keyboard simulation circuit correspondingly conducts one of the column pins and one of the row pins of the electronic device according to the received control data. In this way, the action of pressing the key on the physical keyboard can be simulated. When the mode of pressing the analog key needs to be modified or increased, only the keyboard analog program needs to be modified, and the keyboard analog circuit does not need to be changed at all.

Description

用于检测一电子装置的键盘控制功能的系统 System for detecting keyboard control function of an electronic device

【技术领域】 【Technical field】

本发明与有关于检测一电子装置的键盘控制功能的技术,尤其涉及一般所说的QWERTY键盘的检测技术。The present invention relates to the technology of detecting the keyboard control function of an electronic device, in particular to the detection technology of the so-called QWERTY keyboard.

【背景技术】 【Background technique】

在诸如个人数字助理或是移动电话这类配备有键盘的电子装置的制造工程中,制造者通常会在该电子装置真正组装键盘之前,对它实施「键盘模拟测试程序」,藉以确定它的键盘控制功能是否正常。In the manufacturing process of an electronic device equipped with a keyboard, such as a personal digital assistant or a mobile phone, the manufacturer usually implements a "keyboard simulation test program" on the electronic device before the keyboard is actually assembled to determine its keyboard. Whether the control function is normal.

传统的键盘模拟测试程序,是先将一待测电子装置连接到一个已被确认功能正常的键盘,然后由一测试者以手指去按该键盘上的每一按键。如果该待测电子装置能够正确地分辨该测试者所按的每一按键,并据以执行相对应的运作,就表示该待测电子装置是正常的,否则,就表示该待测电子装置是不良品。In the traditional keyboard simulation test procedure, an electronic device to be tested is firstly connected to a keyboard that has been confirmed to function normally, and then a tester presses each key on the keyboard with fingers. If the electronic device to be tested can correctly identify each button pressed by the tester and perform corresponding operations accordingly, it means that the electronic device to be tested is normal; otherwise, it means that the electronic device to be tested is normal. defective products.

在中国台湾公告I242153号案中提及一种按键讯号自动产生装置。此装置是用一m×1多工器连接n个模拟开关,来模拟m×n个按键,并用一第一驱动电路及一第二驱动电路分别驱动该多工器及该些模拟开关,藉此结构来产生m×n个按键信号给一电路板。采用该装置来测试该电路板,虽不需要测试者去按按键,然而,由于该装置完全是用硬件线路来模拟按键被按,导致它只能模拟一种按键被按的状况,亦即被按顺序及被按方式都是唯一的,且无从改变。A device for automatically generating key-press signals is mentioned in China Taiwan Announcement No. I242153. This device uses an m×1 multiplexer to connect n analog switches to simulate m×n buttons, and uses a first drive circuit and a second drive circuit to respectively drive the multiplexer and these analog switches, by This structure is used to generate m×n key signals to a circuit board. Using this device to test the circuit board does not require the tester to press the button, but because the device uses hardware circuits to simulate the button being pressed, it can only simulate a situation where the button is pressed, that is, the button is pressed. The order and the way they are pressed are unique and cannot be changed.

【发明内容】 【Content of invention】

本发明提供一种用于检测一电子装置的键盘控制功能的系统,该系统以软件控制硬件的方式,来模拟一键盘上的按键被按的状况。The invention provides a system for detecting the keyboard control function of an electronic device. The system uses software to control the hardware to simulate the state that a key on a keyboard is pressed.

更详而言之,该系统包括一电脑,一键盘模拟程序由该电脑执行,及一键盘模拟电路连接该电脑及该电子装置。该键盘模拟程序包括复数个按键程序分别对应代表一实体键盘上的按键,且当任一按键程序被触发时,该任一按键程序会促使该电脑传送相对应的一控制资料给该键盘模拟电路。该键盘模拟电路包括复数个行端,复数个列端,及复数个控制端,且被配置成能经由该些控制端所接收到的控制资料,及根据所收到的控制资料对应导通其中一行端与其中一列端。More specifically, the system includes a computer, a keyboard simulation program is executed by the computer, and a keyboard simulation circuit is connected to the computer and the electronic device. The keyboard simulation program includes a plurality of key-press programs corresponding to the keys on a physical keyboard, and when any key-press program is triggered, the any key-press program will prompt the computer to send a corresponding control data to the keyboard simulation circuit . The keyboard simulation circuit includes a plurality of row terminals, a plurality of column terminals, and a plurality of control terminals, and is configured to receive control data through the control terminals, and conduct correspondingly according to the received control data. A row end and one of the column ends.

由于该些行端是用来并行地连接该电子装置的行接脚,该些列端是用来并行地连接该电子装置的列接脚,该些控制端是用来连接该电脑,因此,在该键盘模拟程序控制下,该电脑每传送一笔控制资料给该键盘模拟电路,就会导致该电子装置上的其中一行接脚与其中一条列接脚导通,这对该电子装置而言,是相当于某一实体按键被按的作用。透过这样的方式,就能模拟该实体键盘上的按键被按的动作。Since the row terminals are used to connect the row pins of the electronic device in parallel, the column terminals are used to connect the column pins of the electronic device in parallel, and the control terminals are used to connect the computer, therefore, Under the control of the keyboard simulation program, every time the computer sends a piece of control data to the keyboard simulation circuit, it will cause one row of pins on the electronic device to conduct with one of the column pins. , which is equivalent to the function of a physical button being pressed. In this way, the action of pressing a key on the physical keyboard can be simulated.

较佳地,在本发明中,该键盘模拟电路包括一行多工器及一列多工器。该行多工器具有多个并行的行端、一行连接端、及一组行控制端,且被配置成能根据该组行控制端所接收到的行控制资料对应导通其中一个行端与该行连接端。该列多工器具有多个并行的列端、一列连接端、及一组列控制端,且被配置成能根据该组列控制端所接收到的列控制资料对应导通其中一个列端与该列连接端。其中,该行多工器的行连接端连接该列多工器的列连接端。简言之,该键盘模拟电路仅由一行多工器及一列多工器组成,电路结构相当简单,符合低成本要求。Preferably, in the present invention, the keyboard simulation circuit includes a row of multiplexers and a column of multiplexers. The row multiplexer has a plurality of parallel row terminals, a row of connection terminals, and a group of row control terminals, and is configured to correspondingly connect one of the row terminals and the row control terminal according to the row control data received by the group of row control terminals. The line connects the ends. The column multiplexer has a plurality of parallel column terminals, a column connection terminal, and a group of column control terminals, and is configured to correspondingly conduct one of the column terminals and the column control terminal according to the column control data received by the group of column control terminals. The column connects the ends. Wherein, the row connection end of the row multiplexer is connected to the column connection end of the column multiplexer. In short, the keyboard simulation circuit is only composed of one row of multiplexers and one column of multiplexers. The circuit structure is quite simple and meets the requirement of low cost.

本发明的有益效果在于,使用本发明系统去检测该电子装置的键盘控制功能时,完全不需要该实体键盘,也不需要花费人力去按该按键。更重要的是,本发明系统可以透过该键盘模拟程序的修改,轻易地变换多种模拟方式,或增加更多种的模拟方式,藉以满足不同的测试需求,而且这些修改完全不会变动到硬件上的设计。The beneficial effect of the present invention is that when the system of the present invention is used to detect the keyboard control function of the electronic device, the physical keyboard is completely unnecessary, and no manpower is required to press the key. More importantly, the system of the present invention can easily change multiple simulation methods or add more simulation methods through the modification of the keyboard simulation program, so as to meet different test requirements, and these modifications will not change to hardware design.

【附图说明】 【Description of drawings】

图1显示一QWERTY键盘连接一电子装置时的等效电路图;Figure 1 shows an equivalent circuit diagram when a QWERTY keyboard is connected to an electronic device;

图2显示本发明系统的一较佳例子的方块图;Figure 2 shows a block diagram of a preferred example of the system of the present invention;

图3显示本发明系统的行多工器与列多工器的真值表;Fig. 3 shows the truth table of the row multiplexer and column multiplexer of the system of the present invention;

图4显示本发明系统的键盘模拟程序的大致架构;Fig. 4 shows the general structure of the keyboard simulation program of the system of the present invention;

图5显示一对照表,用于指出本发明系统的键盘模拟程序中的各按键程序与该QWERTY键盘上的各按键的对应关系;Fig. 5 shows a comparison table, is used to point out the corresponding relation of each button program in the keyboard simulation program of the system of the present invention and each button on this QWERTY keyboard;

图6显示本发明系统的键盘模拟程序的画面程序的执行结果。Fig. 6 shows the execution result of the screen program of the keyboard simulation program of the system of the present invention.

【具体实施方式】 【Detailed ways】

图1显示一个实体的QWERTY键盘1连接一电子装置2时的等效电路。该电子装置2泛指移动电话、个人数字助理、或其它的可携式电子装置。该电子装置2有一显示器20及一处理器21。该QWERTY键盘1所有的行线m0~m7是一对一地连接到该处理器21的每一行接脚210,所有的列线n0~n6是一对一地连接到该电子装置2内的处理器20的每一列接脚211。此处所述的行接脚210及列接脚211,也可是指连接该处理器21的一移位暂存器(CPLD)的接脚。该移位暂存器是用于扩充接脚数,以适应具有较多按键的QWERTY键盘。该处理器21会自己或透过该移位暂存器对该QWERTY键盘1的行线进行扫瞄,并对该QWERTY键盘1的列线进行监控,以检测哪一行线与列线有被导通。进一步言之,当任一按键被按下时,连接到该按键的一组行线与列线就会被导通,使得该电子装置2上对应连接该组行线及列线的行接脚210与列接脚211也会跟着导通,或者说短路。例如当按键K被按时,行线m6与列线n0被导通,该电子装置2上对应连接该组行线m6、列线n0的行接脚210与列接脚211也会跟着导通,且此一逻辑变化可立即由该处理器21予以侦知,供其作为处理的依据。由于不同的按键被按,会有不同组的行接脚210与列接脚211被导通,因此,该电子装置2只要检测出是哪一组行接脚210与列接脚211被导通,就能够正确地分辨出是哪一个按键被按。FIG. 1 shows an equivalent circuit when a physical QWERTY keyboard 1 is connected to an electronic device 2 . The electronic device 2 generally refers to a mobile phone, a personal digital assistant, or other portable electronic devices. The electronic device 2 has a display 20 and a processor 21 . All the row lines m0-m7 of the QWERTY keyboard 1 are one-to-one connected to each row pin 210 of the processor 21, and all the column lines n0-n6 are one-to-one connected to the processing in the electronic device 2 Each row of pins 211 of the device 20. The row pins 210 and column pins 211 mentioned here may also refer to pins connected to a shift register (CPLD) of the processor 21 . The shift register is used to expand the number of pins to adapt to the QWERTY keyboard with more keys. The processor 21 scans the row lines of the QWERTY keyboard 1 by itself or through the shift register, and monitors the column lines of the QWERTY keyboard 1 to detect which row lines and column lines are guided. Pass. Further, when any key is pressed, a group of row lines and column lines connected to the key will be turned on, so that the corresponding row pins on the electronic device 2 are connected to the group of row lines and column lines 210 and column pin 211 will also be turned on, or short-circuited. For example, when the button K is pressed, the row line m6 and the column line n0 are turned on, and the row pins 210 and column pins 211 correspondingly connected to the group of row lines m6 and column lines n0 on the electronic device 2 are also turned on. And this logic change can be detected by the processor 21 immediately, which can be used as a basis for processing. Since different keys are pressed, different groups of row pins 210 and column pins 211 will be turned on. Therefore, the electronic device 2 only needs to detect which group of row pins 210 and column pins 211 is turned on. , you can correctly tell which button is pressed.

基于方便说明起见,随后将以上述的QWERTY键盘1为模拟对象,并以上述电子装置2作为待测对象,但不以此为限。For convenience of description, the above-mentioned QWERTY keyboard 1 will be used as a simulated object and the above-mentioned electronic device 2 will be used as an object to be tested, but not limited thereto.

图2的方块图是用来表示本发明系统用于检测该电子装置2的键盘控制功能的情形。其中,该电子装置2上的每一行接脚210与列接脚211并未连接该QWERTY键盘1,而是连接到本发明系统。The block diagram of FIG. 2 is used to show the situation that the system of the present invention is used to detect the keyboard control function of the electronic device 2 . Wherein, each row pin 210 and column pin 211 on the electronic device 2 is not connected to the QWERTY keyboard 1 , but is connected to the system of the present invention.

如图2中虚线框所示,本发明系统包括一电脑3,一键盘模拟程序4由该电脑3执行,及一键盘模拟电路5连接该电脑3。该键盘模拟电路5包括复数个行端50、复数个列端51、及复数个控制端52,且被配置成可能根据该些控制端52所收到的控制资料对应导通其中一行端50与其中一列端51。在此例子中,是选用一行多工器6及一列多工器7来组成该键盘模拟电路5,所以,上述的行端50就相当于该行多工器6的行端,即其接脚S0~S7,上述的列端51就相当于该列多工器7的列端,即其接脚S0~S7,上述的控制端52就相当于该行多工器6的行控制端,即接脚EN、C1、C2、C3,与该列多工器6的列控制端,即接脚EN、C1、C2、C3两者的组合。值得注意的是,该行多工器6还有一行连接端54,该列多工器7还有一列连接端55,且该行连接端54是连接到该列连接端55,以使该行多工器6与该列多工器7串接组成该键盘模拟电路5。As shown in the dotted line box in FIG. 2 , the system of the present invention includes a computer 3 , a keyboard simulation program 4 is executed by the computer 3 , and a keyboard simulation circuit 5 is connected to the computer 3 . The keyboard simulation circuit 5 includes a plurality of row terminals 50, a plurality of column terminals 51, and a plurality of control terminals 52, and is configured to connect the row terminals 50 and the control terminals 52 according to the control data received by the control terminals 52. One of the column ends 51 . In this example, a row of multiplexers 6 and a column of multiplexers 7 are used to form the keyboard simulation circuit 5, so the above-mentioned row end 50 is equivalent to the row end of the row of multiplexers 6, that is, its pins S0~S7, the above-mentioned column terminal 51 is equivalent to the column terminal of the column multiplexer 7, that is, its pins S0~S7, and the above-mentioned control terminal 52 is equivalent to the row control terminal of the row multiplexer 6, namely The combination of the pins EN, C1, C2, and C3 and the column control terminal of the column multiplexer 6 , that is, the pins EN, C1, C2, and C3. It is worth noting that the row multiplexer 6 also has a row of connection terminals 54, and the column multiplexer 7 also has a column connection terminal 55, and the row connection terminal 54 is connected to the column connection terminal 55, so that the row The multiplexer 6 is connected in series with the row of multiplexers 7 to form the keyboard simulation circuit 5 .

在该行多工器6与列多工器7两者都是选用八选一模拟开关(CD4051多工器)的情况下,该两者的接脚S0~S7就是CD4051的第12、13、14、15、1、2、4、及5接脚,该两者的接脚EN、C1、C2、C3,就是CD4051第6、9、10、11接脚,而该行连接端54与列连接端55就是CD4051的第3接脚。CD4051多工器就其内部逻辑电路而言,可视其为一可受控制的一多选择开关,所以,在图2中使用简易的开关符号来代表它,以方便理解。图3中更进一步显示该行多工器6与该列多工器7的真值表。从表中可以清楚理解到,该行多工器6能根据其控制端52所收到的行控制资料来促使其中一行端50与其行连接端54导通,该列多工器7也能根据其控制端52所收到的列控制资料来促使其中一列端51与其列连接端55导通。例如当该行多工器6从其控制端52收到0001时,其编号S1的行端50与其行连接端54被导通,其余参见该真值表类推。由于该行连接端54是连接着该列连接端55,所以,对整个键盘模拟电路5而言,就可根据这些控制端52所收到的控制资料,即该行控制资料与该列控制资料的组合,来决定哪一个行端50与哪一个列端51的导通。图中开关符号所指的位置都是S1,这表示该行多工器6的控制端52是收到0001,而该列多工器7的控制端52也是收到0001,使得编号为S1的行端50与编号为S1的列端51两者是导通的。In the case that the row multiplexer 6 and the column multiplexer 7 both use the one-of-eight analog switch (CD4051 multiplexer), the pins S0-S7 of the two are the 12th, 13th, 14, 15, 1, 2, 4, and 5 pins, the two pins EN, C1, C2, C3 are the 6th, 9, 10, 11 pins of CD4051, and the row connection terminal 54 is connected to the column The connection terminal 55 is the third pin of CD4051. As far as its internal logic circuit is concerned, the CD4051 multiplexer can be regarded as a controllable multi-selection switch. Therefore, a simple switch symbol is used to represent it in Figure 2 for easy understanding. The truth table of the row multiplexer 6 and the column multiplexer 7 is further shown in FIG. 3 . It can be clearly understood from the table that the row multiplexer 6 can impel one row terminal 50 to conduct with its row connection terminal 54 according to the row control data received by its control terminal 52, and the column multiplexer 7 can also conduct according to the row control data received by its control terminal 52. The column control data received by the control terminal 52 can make one of the column terminals 51 and the column connection terminal 55 conduct. For example, when the row multiplexer 6 receives 0001 from its control terminal 52, its row terminal 50 numbered S1 and its row connection terminal 54 are turned on, and the rest can be analogized with reference to the truth table. Since the row connection terminal 54 is connected to the row connection terminal 55, so, for the whole keyboard simulation circuit 5, the control data received by these control terminals 52, that is, the row control data and the row control data can be combination to determine which row terminal 50 is connected to which column terminal 51. The positions indicated by the switch symbols in the figure are all S1, which means that the control terminal 52 of the multiplexer 6 in this row receives 0001, and the control terminal 52 of the multiplexer 7 in this column also receives 0001, so that the serial number of the multiplexer 7 is numbered S1 Both the row terminal 50 and the column terminal 51 numbered S1 are conductive.

在检测该电子装置2的键盘控制功能时,该电脑3是经由一控制资料总线30连接到该键盘模拟电路5上的控制端52。该键盘模拟电路5上的每一行端50是经由一行资料总线31而一对一地连接到该电子装置2的处理器21的每一行接脚210。该键盘模拟电路5上的每一列端51是经由一列资料总线32而一对一地连接到该电子装置2的处理器21的每一列接脚211。如此,每当该电脑3经由该控制资料总线30传送一笔控制资料给该键盘模拟电路5,该键盘模拟电路5的行多工器6与列多工器7就会分别根据该控制资料中的行控制资料及列控制资料,导通相对应的行端50与列端51,从而使得该处理器21上对应连接该组行端50与列端51的行接脚210与列接脚211也因此导通,这对该电子装置2而言,相当于一个实体的按键被按的作用。When detecting the keyboard control function of the electronic device 2 , the computer 3 is connected to the control terminal 52 of the keyboard simulation circuit 5 via a control data bus 30 . Each row terminal 50 on the keyboard simulation circuit 5 is connected one-to-one to each row pin 210 of the processor 21 of the electronic device 2 via a row of data buses 31 . Each column terminal 51 on the keyboard simulation circuit 5 is connected to each column pin 211 of the processor 21 of the electronic device 2 via a column data bus 32 in a one-to-one manner. In this way, whenever the computer 3 transmits a piece of control data to the keyboard simulation circuit 5 via the control data bus 30, the row multiplexer 6 and the column multiplexer 7 of the keyboard simulation circuit 5 will respectively use the control data according to the control data. The row control data and column control data are connected to the corresponding row terminals 50 and column terminals 51, so that the row pins 210 and column pins 211 correspondingly connected to the group of row terminals 50 and column terminals 51 on the processor 21 Therefore, it is turned on, which is equivalent to the effect of a physical button being pressed for the electronic device 2 .

图4显示该键盘模拟程序4大致上的架构,其包括复数个按键程序40分别对应代表该QWERTY键盘1上的按键,且当任一按键程序40被触发时,该任一按键程序40会促使该电脑3传送相对应的一控制资料给该键盘模拟电路5。Fig. 4 shows the general structure of the keyboard simulation program 4, which includes a plurality of button programs 40 respectively corresponding to the keys on the QWERTY keyboard 1, and when any button program 40 is triggered, the any button program 40 will prompt The computer 3 sends a corresponding control data to the keyboard simulation circuit 5 .

图5显示该QWERTY键盘1上的按键与这些按键程序40及其相对应控制资料的对应关系。图中双框线所框住的区域8是代表该QWERTY键盘1,该区域8中有许多小分区80分别代表该QWERTY键盘1上的每一按键,它们分别对应一按键程序40,其中也有一些没有使用到的小分区81。图中上方横向第一排中的各分区82(S0~S7)是分别代表上述的每一行端50(S0~S7),也同时对应代表该QWERTY键盘1上的每一行线(m0~m7),第二排中的各分区83中的4bit资料是分别代表上述的行控制资料,也就是说,当相对应的小分区80所对应的按键程序40被触发时,该电脑3会将其内的4bit资料给传送到该行多工器6的控制端52。图中左方纵向第一排中的各分区84(S0~S7),是分别代表上述的每一列端51(S0~S7),也同时代表该QWERTY键盘1上的每一列线(n0~n7)。第二排中的各分区85中的4bit资料是分别代表上述的列控制资料,也就是说,当相对应的小分区80所对应的按键程序40被触发时,该电脑3会将其内的4bit资料传送到该列多工器7的控制端52。FIG. 5 shows the corresponding relationship between the keys on the QWERTY keyboard 1 and these key programs 40 and their corresponding control data. The area 8 framed by the double frame line in the figure represents the QWERTY keyboard 1. There are many small partitions 80 in this area 8 to represent each button on the QWERTY keyboard 1 respectively, and they correspond to a key program 40 respectively, and some of them The small partition 81 is not used. Each partition 82 (S0-S7) in the upper horizontal first row in the figure respectively represents each row end 50 (S0-S7) mentioned above, and also corresponds to each row line (m0-m7) on the QWERTY keyboard 1 at the same time. , the 4bit data in each partition 83 in the second row represent the above-mentioned row control data respectively, that is to say, when the button program 40 corresponding to the corresponding small partition 80 is triggered, the computer 3 will set The 4bit data is sent to the control terminal 52 of the multiplexer 6 of the row. Each partition 84 (S0~S7) in the left longitudinal first row in the figure represents each column end 51 (S0~S7) mentioned above respectively, and also represents each column line (n0~n7) on the QWERTY keyboard 1 at the same time. ). The 4bit data in each partition 85 in the second row represent the above-mentioned column control data respectively, that is to say, when the button program 40 corresponding to the corresponding small partition 80 is triggered, the computer 3 will set the The 4bit data is sent to the control terminal 52 of the multiplexer 7 of the row.

举例来说,当代表N按键的小分区80a所对应的按键程序40被触发时,表示该电脑3目前是在该键盘模拟程序4的控制下模拟该QWERTY键盘1上的N按键被按的情形,此时,与该小分区80a对应的小分区83a中的资料是0111,与该小分区80a对应的小分区85a中的资料是0001,所以,该被触发的按键程序40会要求该电脑3传送一笔由行控制资料(0111)与列控制资料(0001)所组成的控制资料(01110001)的控制资料给该键盘模拟电路5。接着,该行多工器6会根据其控制端52所收到的行控制资料(0111),导通其行连接端54与编号为S7的行端50。与此同时,该列多工器7会根据其控制端52所收到的列控制资料(0001),导通其列连接端55与编号为S1的列端51。这表示,当该电脑3传送一笔内容为01110001的控制资料给该键盘模拟电路5时,该键盘模拟电路5上编号为S7的行端50与编号为S1列端51被导通,这对该电子装置2而言,是相当于一个实体的N按键被按的作用。For example, when the button program 40 corresponding to the small partition 80a representing the N button is triggered, it means that the computer 3 is currently simulating the situation that the N button on the QWERTY keyboard 1 is pressed under the control of the keyboard simulation program 4 , at this moment, the data in the small partition 83a corresponding to the small partition 80a is 0111, and the data in the small partition 85a corresponding to the small partition 80a is 0001, so the triggered button program 40 will require the computer 3 Send a piece of control data (01110001) composed of row control data (0111) and column control data (0001) to the keyboard simulation circuit 5. Next, the row multiplexer 6 will connect its row connection terminal 54 with the row terminal 50 numbered S7 according to the row control data (0111) received by its control terminal 52 . At the same time, the column multiplexer 7 will conduct the column connection terminal 55 and the column terminal 51 numbered S1 according to the column control data (0001) received by the control terminal 52 . This means that when the computer 3 sends a piece of control data whose content is 01110001 to the keyboard simulation circuit 5, the row end 50 numbered S7 and the column end 51 numbered S1 on the keyboard simulation circuit 5 are turned on, which is As far as the electronic device 2 is concerned, it is equivalent to a physical N button being pressed.

请参阅图4,该键盘模拟程序4更包括一自动程序41,且当该自动程序41被触发时,该自动程序41会依序触发所有的按键程序40。这意味着该键盘模拟程序4,能透过该电脑3与该键盘模拟电路5这样的硬件组合,自动模拟该QWERTY键盘1上的所有实体按键被按,且被按的顺序也是由该键盘模拟程序4给定的。Please refer to FIG. 4 , the keyboard simulation program 4 further includes an automatic program 41 , and when the automatic program 41 is triggered, the automatic program 41 will trigger all key-press programs 40 in sequence. This means that the keyboard simulation program 4 can automatically simulate the pressing of all the physical keys on the QWERTY keyboard 1 through the hardware combination of the computer 3 and the keyboard simulation circuit 5, and the order of being pressed is also simulated by the keyboard Program 4 given.

此外,基于检测操作上的方便性,该键盘模拟程序4更包括一画面程序42,其能使该电脑3显示如图6所示的画面9,该画面9包括一键盘90,其包括复数个按键901分别对应该些按键程序40,当任一按键901被点选(click)时,即触发相对的按键程序40。所以,一检测者在该键盘90上的所有点选动作,就相当于是在该QWERTY键盘1上按其按键的动作,对该电子装置2而言两者在作用上是一致的。In addition, based on the convenience of the detection operation, the keyboard simulation program 4 further includes a screen program 42, which enables the computer 3 to display a screen 9 as shown in Figure 6. The screen 9 includes a keyboard 90, which includes a plurality of The buttons 901 correspond to the button programs 40 respectively. When any button 901 is clicked, the corresponding button program 40 is triggered. Therefore, all the clicking actions of a tester on the keyboard 90 are equivalent to the actions of pressing the keys on the QWERTY keyboard 1 , and the functions of the two are consistent for the electronic device 2 .

较佳地,该画面9更包括复数个控制钮91,该自动程序41被安排成由该些控制钮91控制其触发、禁能、或停止。例如,点选标注为Test Mode的控制钮91,使它切到标注为Auto的位置,就能触发该自动程序41,使它切到标注为Manual的位置,就会禁能该自动程序41,此时,检测者只能点选该键盘90上的按键901,每点选一个按键901就只触发其所对应的一个按键程序40。此外,当标注为STOP的控制钮91被点选时,就会中止运作中的自动程序41。Preferably, the screen 9 further includes a plurality of control buttons 91, and the automatic program 41 is arranged to be triggered, disabled, or stopped by the control buttons 91. For example, click the control button 91 marked as Test Mode, make it switch to the position marked as Auto, just can trigger this automatic program 41, make it switch to the position marked as Manual, will disable this automatic program 41, At this time, the inspector can only click the buttons 901 on the keyboard 90 , and each button 901 is clicked to trigger only one corresponding button program 40 . In addition, when the control button 91 labeled STOP is clicked, the running automatic program 41 will be stopped.

较佳地,该画面9更包括一调整钮92,该自动程序41被进一步安排成能依照一时间间隔依序触发所有的按键程序40,且该时间间隔的大小是由该调整钮92予以控制的。Preferably, the screen 9 further includes an adjustment button 92, and the automatic program 41 is further arranged to trigger all key-press programs 40 sequentially according to a time interval, and the size of the time interval is controlled by the adjustment button 92 of.

通过上述的说明,可以理解到本发明系统是以软件(键盘模拟程序4)控制硬件(键盘模拟电路5)的方式,来模拟该QWERTY键盘1上的按键被按。透过这样的方式来检测该电子装置的键盘控制功能,完全不需使用到实体的键盘,也不需要花费人力去按按键。由于是使用软体来控制模拟方式,所以当需要增加或变更模拟方式来满足不同的测试需求时,只需要修改软体部份,完全不需要变动到硬件上的设计。Through the above description, it can be understood that the system of the present invention simulates that the keys on the QWERTY keyboard 1 are pressed by means of software (keyboard simulation program 4) controlling hardware (keyboard simulation circuit 5). In this way, the keyboard control function of the electronic device is detected without using a physical keyboard at all, and without spending manpower to press the buttons. Because software is used to control the simulation method, when it is necessary to add or change the simulation method to meet different test requirements, only the software part needs to be modified, and there is no need to change the design of the hardware at all.

Claims (7)

1、一种用于检测一电子装置的键盘控制功能的系统,该电子装置具有复数行接脚及复数列接脚,该系统包括:1. A system for detecting the keyboard control function of an electronic device, the electronic device has a plurality of row pins and a plurality of column pins, the system comprising: 一电脑,一键盘模拟程序由该电脑执行,其中,该键盘模拟程序包括复数个按键程序分别对应代表一实体键盘上的按键,且当任一按键程序被触发时,该任一按键程序会促使该电脑传送相对应的控制资料;A computer, a keyboard simulation program is executed by the computer, wherein the keyboard simulation program includes a plurality of button programs corresponding to the buttons on a physical keyboard, and when any button program is triggered, the any button program will cause The computer transmits corresponding control data; 一键盘模拟电路,包括复数个行端供一对一地连接该电子装置的行接脚,复数个列端供一对一地连接该电子装置的列接脚,及复数控制端供连接该电脑,且该键盘模拟电路更被配置成能经由该些控制端接收从该电脑传送来的控制资料,及根据所收到的控制资料对应导通其中一行端与其中一列端。A keyboard simulation circuit, including a plurality of row terminals for one-to-one connection with the row pins of the electronic device, a plurality of column terminals for one-to-one connection with the column pins of the electronic device, and a plurality of control terminals for connection with the computer , and the keyboard simulation circuit is further configured to receive the control data sent from the computer through the control terminals, and correspondingly conduct one of the row terminals and one of the column terminals according to the received control data. 2、如权利要求1所述的系统,其特征在于,该键盘模拟程序更包括一自动程序,且当该自动程序被触发时,该自动程序会依序触发所有的按键程序。2. The system as claimed in claim 1, wherein the keyboard simulation program further comprises an automatic program, and when the automatic program is triggered, the automatic program will trigger all key-press programs in sequence. 3、如权利要求1所述的系统,其特征在于,该键盘模拟程序更包括一画面程序,其能使该电脑显示一画面,该画面包括一键盘,其包括复数个按键分别对应该些按键程序,且当任一按键被点选(click)时,即触发相对的按键程序。3. The system according to claim 1, wherein the keyboard simulation program further includes a screen program, which enables the computer to display a screen, and the screen includes a keyboard, which includes a plurality of keys corresponding to the keys program, and when any button is clicked, the corresponding button program is triggered. 4、如权利要求3所述的系统,其特征在于,该键盘模拟程序更包括一自动程序,该画面更包括复数个控制钮,其中,该自动程序被安排成由该些控制钮控制其触发、禁能、或停止,且当该自动程序被触发时,该自动程序会依序触发所有的按键程序。4. The system according to claim 3, wherein the keyboard simulation program further includes an automatic program, and the screen further includes a plurality of control buttons, wherein the automatic program is arranged to be triggered by the control buttons , disable, or stop, and when the automatic program is triggered, the automatic program will trigger all keystroke procedures in sequence. 5、如权利要求4所述的系统,其特征在于,其中该画面更包括一调整钮,该自动程序被进一步安排成能依照一时间间隔依序触发所有的按键程序,且该时间间隔的大小是由该调整钮予以控制。5. The system according to claim 4, wherein the screen further includes an adjustment button, and the automatic program is further arranged to trigger all the button programs sequentially according to a time interval, and the size of the time interval It is controlled by the adjustment button. 6、如权利要求1所述的系统,其特征在于,所述键盘模拟电路由两个多工器串接组成,其中一多工器提供所述行端,另一多工器提供所述列端,两多工器共同提供所述控制端。6. The system according to claim 1, wherein the keyboard simulation circuit is composed of two multiplexers connected in series, wherein one multiplexer provides the row end, and the other multiplexer provides the column terminal, the two multiplexers jointly provide the control terminal. 7、一种键盘模拟电路,其特征在于,包括:7. A keyboard simulation circuit, characterized in that it comprises: 一行多工器,具有多个并行的行端、一行连接端、及一组行控制端,且被配置成能根据该组行控制端所接收到的行控制资料对应导通其中一个行端与该行连接端;及A row of multiplexers has a plurality of parallel row terminals, a row of connection terminals, and a group of row control terminals, and is configured to correspondingly conduct one of the row terminals and the row control terminal according to the row control data received by the group of row control terminals the row connection; and 一列多工器,具有多个并行的列端、一列连接端、及一组列控制端,且被配置成能根据该组列控制端所接收到的列控制资料对应导通其中一个列端与该列连接端;A column multiplexer has a plurality of parallel column terminals, a column connection terminal, and a group of column control terminals, and is configured to be able to connect one of the column terminals and the column control terminal according to the column control data received by the column control terminal. the connection end of the column; 其中,该行多工器的行连接端连接该列多工器的列连接端。Wherein, the row connection end of the row multiplexer is connected to the column connection end of the column multiplexer.
CN2007103066284A 2007-12-28 2007-12-28 System for detecting keyboard control function of an electronic device Expired - Fee Related CN101470651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007103066284A CN101470651B (en) 2007-12-28 2007-12-28 System for detecting keyboard control function of an electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103066284A CN101470651B (en) 2007-12-28 2007-12-28 System for detecting keyboard control function of an electronic device

Publications (2)

Publication Number Publication Date
CN101470651A true CN101470651A (en) 2009-07-01
CN101470651B CN101470651B (en) 2012-11-14

Family

ID=40828136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103066284A Expired - Fee Related CN101470651B (en) 2007-12-28 2007-12-28 System for detecting keyboard control function of an electronic device

Country Status (1)

Country Link
CN (1) CN101470651B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955725A (en) * 2011-08-31 2013-03-06 鸿富锦精密工业(深圳)有限公司 Simulator

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6629245B1 (en) * 1999-10-22 2003-09-30 Arthur D. Stone Apparatus for stimulating keypad entry of an access code into a keypad type security system
CN100356339C (en) * 2004-01-07 2007-12-19 北京北阳电子技术有限公司 Method and system for measuring functions of electronic product with keyboard
CN100390555C (en) * 2004-10-13 2008-05-28 盛群半导体股份有限公司 Automatic generation device for key signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955725A (en) * 2011-08-31 2013-03-06 鸿富锦精密工业(深圳)有限公司 Simulator
CN102955725B (en) * 2011-08-31 2017-02-15 杜臣鑫 Simulation device

Also Published As

Publication number Publication date
CN101470651B (en) 2012-11-14

Similar Documents

Publication Publication Date Title
CN108983082A (en) Matrix switch device and system
CN102479132A (en) Multi-chip test system and its test method
CN101876930B (en) Keyboard automatic test system
EP2688064A3 (en) Keyboard circuit and method for detecting keyboard circuit
CN108268162B (en) Multi-channel touch controller with channel switching circuit
CN110673022A (en) Membrane keyboard PCBA testing device and method
CN101211302A (en) Display Interface Test Set
TWI378345B (en) Automatic testing system for keyboard
CN106997249B (en) Display panel with touch function and fault testing method thereof
CN101470651A (en) System for detecting keyboard control function of electronic device
CN101661419A (en) Multi-test port test machine and test method thereof
CN214384608U (en) Simulation keyboard button test circuit
CN110231885B (en) Touch simulation device, control method and method for controlling intelligent equipment
TW201326849A (en) Keyboard automatic test method and keyboard automatic test system using the same
TW201544823A (en) Testing system of membrane switch circuit
CN107943634A (en) More USB Port Auto-Test Systems
CN103519832A (en) Memory ability testing device
TW200928720A (en) System for testing keyboard controller of electronic device
JP4622432B2 (en) Touch panel control unit
US11720183B2 (en) Method for operating an active input element and corresponding input element, input arrangement and computer program product
CN102468582A (en) Video graphics array (VGA) interface switching device
CN104251970A (en) Test device and method of touch key main board
CN102539987A (en) Testing method for key circuit boards and system
CN203634180U (en) Memory ability testing device
CN115129532B (en) Storage test equipment and hot-swap test device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121114

Termination date: 20121228