IP Library Granted Patent US 7,484,156
Granted Patent B2
US 7,484,156 · App. 11/474,755 · Granted Jan 27, 2009

Apparatus and method for testing PS/2 interface

Assignees: Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd.; Hon Hai Precision Industry Co., Ltd.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,484,156
App. No.
11/474,755
Granted
Jan 27, 2009
Kind
B2
Abstract

An apparatus for automatic testing of a PS/2 interface includes a micro controller unit, a PS/2 port, and a plurality of LEDs. The micro controller unit is coupled with both a data pin and a clock pin of the PS/2 interface. The LEDs coupled to the micro controller unit simulate functions of a keyboard. A related method for testing the PS/2 interface is also provided.

Claims (36)

1. An apparatus for testing a PS/2 interface of a host, comprising:

a micro controller unit with predetermined programs for simulating manual operations of a keyboard;

a PS/2 port connected to the micro controller unit for communicating the apparatus with the host; and

a plurality of light-emitting diodes (LEDs) connected to the micro controller unit for simulating indicator lights of the keyboard.

2. The apparatus as claimed in claim 1 , wherein data and clock pins of the PS/2 port are respectively connected to different I/O pins of the micro controller unit.

3. The apparatus as claimed in claim 1 , wherein anodes of the LEDs are connected to a power source.

4. The apparatus as claimed in claim 3 , wherein cathodes of the LEDs are respectively coupled to different I/O pins of the micro controller unit.

5. A method for testing a PS/2 interface of a host, comprising the steps of:

setting both an PS/2 interface testing apparatus and the host in a communicating state;

the host sending user-defined commands for commencing testing to an input buffer of a keyboard controller;

the apparatus receiving the user-defined commands from the input buffer of the keyboard controller;

the apparatus calling a key scan testing function and sending all of scan code set II to the keyboard controller byte by byte;

the keyboard controller translating the scan code set II into scan code set I and storing the scan code set I in an output buffer of the keyboard controller;

the host reading the data from the output buffer of the keyboard controller; and

the host comparing the scan code set I with a reference scan code set I stored in the host and indicating a result of the comparison.

6. The method as claimed in claim 5 , wherein the setting step, further comprising the steps of:

the host sending a start signal to the apparatus;

the apparatus sending a response signal to the host; and

the host confirming the response signal and sending the user-defined commands for commencing testing to the apparatus.

7. The method as claimed in claim 5 , wherein the calling step of the apparatus, further comprising the steps of:

the apparatus waiting for a high signal from the clock pin;

the apparatus checking whether the clock pin being high after delaying 50 μs;

the apparatus checking whether the data pin being high under the situation that the clock pin having been high;

the apparatus sending a scan code set II one byte at a time to the keyboard controller of the host, and a delay of 20 μs between each byte, and checking the data pin still high during the delay.

8. The method as claimed in claim 7 , wherein output from the apparatus is not allowed if the clock pin is low.

9. The method as claimed in claim 7 , wherein the apparatus returns to waiting for the high signal from the clock pin if the data pin is low.

10. The method as claimed in claim 7 , wherein the byte includes a start bit, 8 data bits, a parity bit, and a stop bit.

11. A method for testing a personal system/2 (PS/2) interface of a host to be tested, comprising the steps of:

preparing a testing apparatus comprising a programmable micro controller unit and a PS/2 port electrically connectable with a PS/2 interface of a host to be tested;

programming said micro controller unit to be responsive to said host;

setting said apparatus and said host in a data-communicable state through said connected PS/2 port of said apparatus and said PS/2 interface of said host;

setting said host to allow said apparatus responsively commencing for testing;

sending a predefined test set from said apparatus to said host through said PS/2 interface of said host; and

comparing a retrieved set of said host corresponding to said test set with a reference set predefined in said host to acquire a test result for said PS/2 interface of said host.

12. The method as claimed in claim 11 , further comprising the step of translating said test set to another test set formatted differently from said test set and formatted same as said reference set after said host retrieves said test set from said apparatus.

13. The method as claimed in claim 11 , wherein said apparatus further comprises a plurality of indicators to simulate indicator lights of common keyboards electrically connectable and data-communicable with said PS/2 interface of said host.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 11, 2008
From: HON HAI PRECISION INDUSTRY CO., LTD.
To: HONG FU JIN PRECISION INDUSTRY (SHENZHEN) CO., LTD.; HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 021961/0714 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2006
From: YOU, YONG-XING; HE, FENG-LONG; LUO, YAN-FENG; LIU, QIAN-SHENG
To: HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 018038/0861 →
Priority Claims (1)
CN 2005 1 0035594 · Jun 25, 2005 · national
Continuity (1)
Related Publication 20060294444A1 · Dec 28, 2006