CN108108274B - Input device testing system and method - Google Patents

Input device testing system and method Download PDF

Info

Publication number
CN108108274B
CN108108274B CN201611066852.6A CN201611066852A CN108108274B CN 108108274 B CN108108274 B CN 108108274B CN 201611066852 A CN201611066852 A CN 201611066852A CN 108108274 B CN108108274 B CN 108108274B
Authority
CN
China
Prior art keywords
test
input device
information
code
host
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.)
Active
Application number
CN201611066852.6A
Other languages
Chinese (zh)
Other versions
CN108108274A (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.)
Zhishen Technology Co ltd
Original Assignee
Zhishen 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 Zhishen Technology Co ltd filed Critical Zhishen Technology Co ltd
Priority to CN201611066852.6A priority Critical patent/CN108108274B/en
Publication of CN108108274A publication Critical patent/CN108108274A/en
Application granted granted Critical
Publication of CN108108274B publication Critical patent/CN108108274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units

Abstract

The invention provides a system and a method for testing an input device. The input device test system comprises a test host and a test platform, wherein the test host is used for executing a test program and an information interception program and outputting test information by the test program; the test platform is used for receiving the test information and operating the input device according to the test information, and the input device should be operated and outputs response information to the test host. The test host intercepts the response information by the information interception program and converts the response information into at least one code, and judges whether the at least one code is consistent with the test information by the test program. The invention can separate the input device to be tested from the input device of the test host to avoid the mutual influence of the two devices.

Description

Input device testing system and method
Technical Field
The present invention relates to the field of input device applications, and more particularly, to a system and method for testing a multifunctional input device.
Background
In modern society, computers have become an indispensable part of human life, such as food, clothes, live, walk, breed and fun, and the related applications of computers and related products can be seen everywhere in life.
With the popularization and diversification of computers, many brand-new computer peripherals are emerging as raining spring shoots, and in order to save space and enable users to conveniently use the computer peripherals, the computer peripherals are also developed towards being small and exquisite and having multiple functions, for example, a printer can have the functions of a fax machine or a scanner; the liquid crystal screen is added with a touch function or can watch 2D or 3D films; the input device such as keyboard, mouse, etc. has more resistive or capacitive touch detectors besides the original functions of keys in the keys and the roller, so that the user can input the command into the computer conveniently.
In all computer peripherals, it is very important to test whether the input device can operate correctly during the manufacturing process of the input device because the input device is used as a medium for communication between a human and a computer.
The existing input device often has multiple complex functional elements, such as a mouse with touch and key functions or a touch pad of a notebook computer, but because most of the test systems on the production line are window (Windows) operating systems, the mouse or touch pad to be tested and the cursor input device of the test system may affect each other, so that the cursor of the test system cannot be controlled or irregularly jumped, or even misjudgment of the test system is caused.
In view of the above, the technical problem to be solved by the present invention is to provide a testing system capable of separating an input device to be tested from an input device of the testing system itself to avoid mutual influence therebetween.
Disclosure of Invention
The present invention provides an input device testing system and method for testing an input device having a plurality of functional elements, which can distinguish the input device to be tested from the input device of the testing host to avoid the mutual influence between the two devices.
The technical scheme adopted by the invention for solving the technical problem is to provide an input device testing system which is used for testing an input device with a plurality of functional elements and comprises a testing host and a testing platform, wherein the testing host is used for executing a testing program and an information interception program and outputting testing information by the testing program; the test platform is used for receiving the test information and operating the input device according to the test information, and the input device should be operated and outputs a response message to the test host; the test host intercepts the response message by the message interception program and converts the response message into at least one code, and judges whether the at least one code is consistent with the test message by the test program.
Preferably, the input device is a mouse or a touch pad.
Preferably, the plurality of functional elements include: a left key, a right key, a capacitance detector or an optical detector.
Preferably, the test host includes a screen for displaying the human-machine interface of the test program.
Preferably, the response message includes a plurality of message packets outputted by the plurality of functional devices.
Preferably, the test host converts the plurality of message packets into the at least one code by the message interception process.
Preferably, the input device outputs the response information to the test host through bluetooth wireless communication or a universal serial bus interface.
The invention also provides a test method of the input device, which is used for testing the input device with a plurality of functional elements and comprises the following steps:
(a) generating a test message;
(b) operating the input device according to the test information, so that the input device should operate to output a response message;
(c) converting the response information into at least one code;
(d) judging whether the at least one code is consistent with the test information; and
(e) displaying a test result according to whether the at least one code is consistent with the test information.
The input device testing system and the method provided by the invention can respectively test whether each functional element of the input device can normally operate, and can distinguish the input device to be tested from the input device controlling the testing host machine by recoding the response information output by the input device to be tested, thereby ensuring that the input device to be tested and the input device controlling the testing host machine do not mutually influence, and effectively improving the accuracy of product testing and the efficiency of automatic production.
Drawings
FIG. 1A: is a side view of the multi-function input device;
FIG. 1B: a top view of the multifunctional input device;
FIG. 2: the invention provides a structural block diagram of an input device test system;
FIG. 3: a test flow chart of the test system of the input device of the invention; and
FIG. 4: the invention is a situation diagram of the human-computer interface display of the input device test system.
Detailed Description
The advantages and features of the invention and methods of accomplishing the same may be understood more readily by reference to the following detailed description of exemplary embodiments and the accompanying drawings. This invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
First, referring to fig. 1A and 1B, fig. 1A is a side view of a multifunctional input device; FIG. 1B is a top view of the multi-function input device. The multifunctional input device can be a computer peripheral device such as a mouse or a touch panel and the like with a left key, a right key, a capacitance detector or an optical detector.
In fig. 1A and 1B, the multifunctional input device is a cursor input device, i.e. a mouse 10, the mouse 10 has an upper cover housing 102, a lower cover housing 103, and a plurality of functional elements disposed therein, wherein the functional elements include: a left button 101a, a right button 101b, a capacitance detector 1021, and an optical detector 1031. The left button 101a and the right button 101b may be left and right buttons with entities; or left and right keys formed by the contact position of the finger and the upper cover shell 102 of the mouse 10; or a left button and a right button formed by the left-right swing of the upper cover housing 102 of the mouse 10. The capacitance detector 1021 is a capacitance type printed circuit board arranged in the inner layer of the upper cover shell 102 of the mouse 10, the capacitance detector 1021 changes the tiny capacitance in the circuit by using the human capacitance effect to detect the movement state of the finger or palm on the upper cover shell 1021 of the mouse 10, for example, the capacitance detector 102 can detect the movement state of the finger on the upper cover shell 1021, when the finger slides up and down or left and right at the position of the left key 101a or the right key 101b, the operation of sliding the web page of the computer screen up and down or switching the page is carried out; the optical detector 1031 is disposed on the lower cover housing 103, the optical detector 1031 can collect the moving direction and relative movement of the mouse 10 on the surface of the object on which the mouse 10 is placed, and the user can operate the click and movement of the cursor on the screen by moving the mouse 10.
Next, referring to fig. 1A, fig. 1B and fig. 2, fig. 2 shows an input device testing system provided by the present invention, which includes: mouse 10, test host 20, screen 30 and test platform 40. The test host 20 is a computer host of a Windows (Windows) operating system, and the test host 20 itself also has an input device (not shown) for operation. The test host 20 is electrically connected to the test platform 40 through a Parallel port (Parallel port), in addition, the test host 20 is used to install and execute the information interception program 201 and the test program 202, a user can use an input device (not shown) of the test host 20 to operate the test program 202, wherein the test program 202 is written by a common Labview software, and the test program 202 outputs the test information T0 to the test platform 40 through the Parallel port. The testing platform 40 operates according to the instruction of the testing information T0, for example, the testing platform 40 may be a robot or an electromagnetically controlled striking head, and when the input device is tested, the testing platform 40 operates the mouse 10 to move by the robot according to the instruction of the testing information T0, so that the optical detector 1031 generates the response information P0; or the left button 101a or the right button 101b of the mouse 10 is hit by the head to generate the reaction information P0 by the left button 101a or the right button 101 b. The mouse 10 transmits the response information P0 to the test host 20 via bluetooth (Blue Tooth) wireless communication or Universal Serial Bus (USB). The information interception program 201 in the test host 20 is written in C language, and the information interception program 201 is a hook program for intercepting information at a lower layer than the hook program in the windows operating system, and in the present invention, the information interception program 201 is used for intercepting the response information P0 transmitted from the mouse 10 to the test host 20. The screen 30 is used as a human-machine interface for displaying the test program 202, so that the user can operate the input device test system through the input device (not shown) of the test host 20.
Referring to fig. 2 and 3, fig. 3 is a testing flowchart of the input device testing system of the present invention, when testing the input device, firstly, generating a testing message T0 (step S100), in step S100, driving the testing program 202 to generate and output a testing message T0 from the test host 20 to the testing platform 40 in a manual or automatic manner; after receiving the test information T0, the test platform 40 operates the mouse 10 according to the test information T0, so that the mouse 10 outputs the response information P0 in response to the operation (step S101), in step S101, if the test information included in the test information T0 is six times of testing the left key 101a of the mouse 10, the test platform 40 sequentially hits the left key 101a of the mouse 10 for six times within a preset time by a hit head; if the test information contained in the test information T0 is the optical detector 1031 of the mouse 10, the testing platform 40 moves toward the default direction at the default speed by the operation of the mouse 10 by the robot.
Subsequently, the mouse 10 outputs the response information P0 to the test host 20, and since the mouse 10 includes a plurality of functional elements (the left button 101a, the right button 101b, the capacitance detector 1021 and the optical detector 1031), the output response information P0 includes the following components according to the test information contained in the test information T0 when the mouse 10 performs the operation test: the packet output by the left key 101a, the packet output by the right key 101b, the packet output by the capacitance detector 1021, or the packet output by the optical detector 1031. After the test host 20 receives the response message P0, the message interception program 201 intercepts the response message P0 and converts the response message P0 into at least one code (step S102), in step S102, the message interception program 201 re-encodes the response message packet output by the left button 101a, the response message packet output by the right button 101b, the response message packet output by the capacitance detector 1021, or the response message packet output by the optical detector 1031 after intercepting the response message P0, and further transmits the response message code P1 of the left button 101a, the response message code P2 of the right button 101b, the response message code P3 of the capacitance detector 1021, or the response message code P4 of the optical detector 1031 to the test program 202 after re-encoding. Since the response information P0 is intercepted by the information interception program 201, the mouse 10 and the input device (not shown) of the test host 20 can be effectively separated from each other, so that the mouse 10 and the input device (not shown) of the test host 20 cannot affect each other.
Next, the test program 202 determines whether at least one code matches the test information T0 (step S103), in step S103, the test program 202 compares the test information T0 generated in step S100 with the response information code P1 of the left key 101a, the response information code P2 of the right key 101b, the response information code P3 of the capacitance detector 1021, or the response information code P4 of the optical detector 1031, for example, when the test information contained in the test information T0 is the left key 101a of the test mouse 10, the test program 202 determines whether the response information code P1 of the left key 101a is received.
Finally, the screen 30 displays the test result according to whether the at least one code matches the test information T0 (step S104), and in step S104, if the test information T0 matches the response information code (P1, P2, P3, or P4), a Pass test (Pass) is displayed in the human-computer interface of the screen 30; if the test information T0 does not match the response information code (P1, P2, P3 or P4), a failure of test (Fail) is displayed in the human-computer interface of the screen 30, for example, if the test information contained in the test information T0 is the left button 101a of the test mouse 10, the test program 202 determines whether the response information code P1 of the left button 101a is received, and if so, a Pass is displayed on the screen 30 (Pass); on the contrary, if the test information contained in the test information T0 is the left button 101a of the test mouse 10, but the test program 202 does not receive the response information code P1 of the left button 101a or receives the response information code P2 of the right button 101b, then a Fail (Fail) is displayed on the screen 30.
The input device testing system provided by the present invention not only can effectively separate the input device to be tested from the input device (not shown in the figure) of the testing host 20 itself, so that the two devices will not affect each other, but also can test a plurality of functional elements of the input device, for example, when the user wants to test the left button 101a and the right button 101b of the mouse 10, the testing program 202 can be set to recognize only the response information code P1 of the left button 101a and the response information code P2 of the right button 101b, and ignore the response information code P3 of the capacitance detector 1021 and the response information code P4 of the optical detector 1031; or when the user wants to test the capacitance detector 1021 of the mouse 10, the test program 202 can be set to recognize only the response information code P3 of the capacitance detector 1021, and ignore the response information code P1 of the left button 101a, the response information code P2 of the right button 101b, and the response information code P4 of the optical detector 1031; or, when the user wants to test the optical detector 1031 of the mouse 10, the test program 202 may be configured to recognize only the response information code P4 of the optical detector 1031 and ignore the response information code P1 of the left button 101a, the response information code P2 of the right button 101b and the response information code P3 of the capacitance detector 1021.
Referring to fig. 4, fig. 4 is a schematic view illustrating a situation displayed on the human-machine interface of the input device testing system according to the present invention, in fig. 4, assuming that the test information contained in the test information T0 is the left key 101a of the mouse 10 for six times, the information interception program 201 re-encodes the response information packet output by the left key 101a into X00Y (wherein the Y value is between 1 and 9), and displays codes of X001, X002, X003, X004, X005, X006, etc. in the human-machine interface 2021 of the test program 202 on the screen 30, while displaying that the left key 101a of the mouse 10 passes the test (Pass).
Compared with the prior art, the input device testing system and the input device testing method provided by the invention can respectively test whether each functional element of the input device can normally operate, and can separate the input device to be tested from the input device of the testing host machine, so that the input device to be tested and the input device of the testing host machine can not be influenced mutually, and the accuracy of product testing and the efficiency of automatic production are effectively improved; therefore, the present invention is a creation with great industrial value.
The invention can be modified in various ways by those skilled in the art without departing from the scope of the claims.

Claims (8)

1. An input device testing system for testing an input device having a plurality of functional elements, the input device testing system comprising:
the test host is used for executing a test program and an information interception program and outputting test information aiming at a functional element to be tested in the plurality of functional elements by the test program; and
the test platform is used for receiving the test information and operating the input device according to the test information, and the input device should be operated and outputs a response message to the test host;
the test host intercepts the response information by an information interception program and converts the response information into at least one code, and judges whether the at least one code is consistent with the test information by the test program, wherein the test program identifies the code of the functional element to be tested and ignores the codes of other functional elements in the plurality of functional elements.
2. The input device testing system of claim 1, wherein the input device is a mouse or a touchpad.
3. The input device testing system of claim 1, wherein the plurality of functional elements comprise: a left key, a right key, a capacitance detector or an optical detector.
4. The system of claim 1, wherein the test host includes a screen for displaying the human-machine interface of the test program.
5. The input device test system of claim 1, wherein the response message comprises a plurality of message packets output by the plurality of functional elements.
6. The input device testing system of claim 5, wherein the test host transforms the plurality of information packets into the at least one code by the information interception process.
7. The system of claim 1, wherein the input device outputs the response information to the test host via bluetooth wireless communication or a usb interface.
8. An input device testing method for testing an input device having a plurality of functional elements, the input device testing method comprising the steps of:
(a) generating test information aiming at a functional element to be tested in the plurality of functional elements by the test host;
(b) the test platform operates the input device according to the test information, so that the input device should operate and output a response message to the test host;
(c) the test host converts the response information into at least one code;
(d) the test host determines whether the at least one code matches the test information, wherein the test host identifies the code of the functional element to be tested and ignores codes of other functional elements of the plurality of functional elements; and
(e) the screen displays a test result according to whether the at least one code is consistent with the test information.
CN201611066852.6A 2016-11-25 2016-11-25 Input device testing system and method Active CN108108274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611066852.6A CN108108274B (en) 2016-11-25 2016-11-25 Input device testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611066852.6A CN108108274B (en) 2016-11-25 2016-11-25 Input device testing system and method

Publications (2)

Publication Number Publication Date
CN108108274A CN108108274A (en) 2018-06-01
CN108108274B true CN108108274B (en) 2021-05-04

Family

ID=62204615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611066852.6A Active CN108108274B (en) 2016-11-25 2016-11-25 Input device testing system and method

Country Status (1)

Country Link
CN (1) CN108108274B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3057958A (en) * 1959-08-24 1962-10-09 Stelma Inc Telegraph test set
US4409656A (en) * 1980-03-13 1983-10-11 Her Majesty The Queen, In Right Of Canada As Represented By The Minister Of National Defense Serial data bus communication system
CN1588322A (en) * 2004-10-14 2005-03-02 致伸科技股份有限公司 Mouse detecting device and its method for simultaneously movingt track detection and key detection
TW201015303A (en) * 2008-10-08 2010-04-16 Inventec Corp A method of testing a PS/2 interface
CN201673498U (en) * 2010-03-03 2010-12-15 神讯电脑(昆山)有限公司 Keyboard test system
CN102224491A (en) * 2008-09-22 2011-10-19 Mts系统公司 Testing machine with workflow based test procedure
US9264497B2 (en) * 2013-12-23 2016-02-16 Cognizant Technology Solutions India Pvt. Ltd. System and method for hosting mobile devices for testing in a cloud computing environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2781396C (en) * 2009-12-01 2018-05-01 Ringcentral, Inc. Universal call management platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3057958A (en) * 1959-08-24 1962-10-09 Stelma Inc Telegraph test set
US4409656A (en) * 1980-03-13 1983-10-11 Her Majesty The Queen, In Right Of Canada As Represented By The Minister Of National Defense Serial data bus communication system
CN1588322A (en) * 2004-10-14 2005-03-02 致伸科技股份有限公司 Mouse detecting device and its method for simultaneously movingt track detection and key detection
CN102224491A (en) * 2008-09-22 2011-10-19 Mts系统公司 Testing machine with workflow based test procedure
TW201015303A (en) * 2008-10-08 2010-04-16 Inventec Corp A method of testing a PS/2 interface
CN201673498U (en) * 2010-03-03 2010-12-15 神讯电脑(昆山)有限公司 Keyboard test system
US9264497B2 (en) * 2013-12-23 2016-02-16 Cognizant Technology Solutions India Pvt. Ltd. System and method for hosting mobile devices for testing in a cloud computing environment

Also Published As

Publication number Publication date
CN108108274A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
US10466805B2 (en) Actuation lock for a touch sensitive input device
US9041652B2 (en) Fusion keyboard
KR101117481B1 (en) Multi-touch type input controlling system
US9454239B2 (en) Enabling touch events on a touch sensitive mechanical keyboard
JP2011221640A (en) Information processor, information processing method and program
US9128609B2 (en) Touch interpretive architecture and touch interpretive method by using multi-fingers gesture to trigger application program
CN103309482A (en) Electronic equipment and touch control method and touch control device thereof
CN103207757B (en) Portable apparatus and its operational approach
CN102609184A (en) Method and apparatus for providing mouse right click function in touch screen terminal
CN106445369B (en) Input method and device
US10126843B2 (en) Touch control method and electronic device
US20140354550A1 (en) Receiving contextual information from keyboards
US7616194B2 (en) Key lock means and application method of the same
JP6017995B2 (en) Portable information processing apparatus, input method thereof, and computer-executable program
KR101833281B1 (en) Method and apparatus preventing malfunction of touchpad in electronic device
CN104281318A (en) Method and apparatus to reduce display lag of soft keyboard presses
EP3211510B1 (en) Portable electronic device and method of providing haptic feedback
CN103809793A (en) Information processing method and electronic device
CN108108274B (en) Input device testing system and method
CN101211239A (en) Human-machine interaction input device and input method
KR101013219B1 (en) Method and system for input controlling by using touch type
US20140111435A1 (en) Cursor control device and method using the same to launch a swipe menu of an operating system
TWI609261B (en) Input device test system and method thereof
CN109976652B (en) Information processing method and electronic equipment
KR20130027841A (en) Signal processing method of mobile computer and mobile computer thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant