CN101470651A - System for detecting keyboard control function of electronic device - Google Patents
System for detecting keyboard control function of electronic device Download PDFInfo
- 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
Links
- 238000004088 simulation Methods 0.000 claims abstract description 35
- 230000001960 triggered effect Effects 0.000 claims abstract description 15
- 238000000034 method Methods 0.000 claims description 6
- 238000003825 pressing Methods 0.000 abstract description 5
- 230000009471 action Effects 0.000 abstract description 4
- 238000005192 partition Methods 0.000 description 13
- 230000008859 change Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
Description
【技术领域】 【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
基于方便说明起见,随后将以上述的QWERTY键盘1为模拟对象,并以上述电子装置2作为待测对象,但不以此为限。For convenience of description, the above-mentioned QWERTY
图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
如图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
在该行多工器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
在检测该电子装置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
图4显示该键盘模拟程序4大致上的架构,其包括复数个按键程序40分别对应代表该QWERTY键盘1上的按键,且当任一按键程序40被触发时,该任一按键程序40会促使该电脑3传送相对应的一控制资料给该键盘模拟电路5。Fig. 4 shows the general structure of the
图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
举例来说,当代表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
请参阅图4,该键盘模拟程序4更包括一自动程序41,且当该自动程序41被触发时,该自动程序41会依序触发所有的按键程序40。这意味着该键盘模拟程序4,能透过该电脑3与该键盘模拟电路5这样的硬件组合,自动模拟该QWERTY键盘1上的所有实体按键被按,且被按的顺序也是由该键盘模拟程序4给定的。Please refer to FIG. 4 , the
此外,基于检测操作上的方便性,该键盘模拟程序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
较佳地,该画面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
较佳地,该画面9更包括一调整钮92,该自动程序41被进一步安排成能依照一时间间隔依序触发所有的按键程序40,且该时间间隔的大小是由该调整钮92予以控制的。Preferably, the screen 9 further includes an
通过上述的说明,可以理解到本发明系统是以软件(键盘模拟程序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
Claims (7)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102955725A (en) * | 2011-08-31 | 2013-03-06 | 鸿富锦精密工业(深圳)有限公司 | Simulator |
Family Cites Families (3)
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 |
-
2007
- 2007-12-28 CN CN2007103066284A patent/CN101470651B/en not_active Expired - Fee Related
Cited By (2)
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 |