CN104503822A - PS/2 keyboard and mouse simulator - Google Patents
PS/2 keyboard and mouse simulator Download PDFInfo
- Publication number
- CN104503822A CN104503822A CN201410783254.5A CN201410783254A CN104503822A CN 104503822 A CN104503822 A CN 104503822A CN 201410783254 A CN201410783254 A CN 201410783254A CN 104503822 A CN104503822 A CN 104503822A
- Authority
- CN
- China
- Prior art keywords
- signal
- keyboard
- mouse
- processing unit
- simulation
- 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
Abstract
The invention discloses a PS/2 keyboard and mouse simulator, relates to the field of computers and solves the problem that a PS/2 interface is limited in application when distance between a computer and a control console is long or operating space is limited due to the fact that PS/2 signal transmission distance is limited. The PS/2 keyboard mouse simulator is composed of an RS232 signal input interface, a PS/2 keyboard signal simulating and processing unit, a PS/2 mouse signal simulating and processing unit, a PS/2 keyboard signal output interface and a PS/2 mouse signal output interface. The PS/2 keyboard and mouse simulator is easy in wiring and long in transmission distance, the computer can be ensured to still be capable of being correctly started without being connected with a real PS/2 keyboard and a PS/2 mouse; the RS232 signal input interface is adopted, so that the PS/2 keyboard and mouse simulator has no mutual conflict with the keyboard and the mouse with which the computer is connected externally.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of PS/2 keyboard and mouse simulator.
Background technology
PS/2 interface is used for many modern mice and keyboard as the interface in a kind of traditional PC compatible computer system, is developed by IBM and appear at first in ibm technology reference manual.At present, although PS/2 interface slowly replace by USB interface, but, due to PS/2 keyboard interface can support all buttons simultaneously Lothrus apterus, simultaneously can not be malfunctioning when computing machine carries out significantly overclocking etc. be better than the speciality of USB interface, be therefore still retained at some occasion PS/2 interface.But it is compared with USB interface, do not support hot plug, namely its must on computers electricity before be connected with computer system; In addition, PS/2 signal transmission distance is limited, is generally only 2 meters, is restricted in the use relating to PS/2 interface in the application that computing machine and control desk are relatively far away or operating space is limited.
Summary of the invention
Existing because the PS/2 signal transmission distance limited PS/2 of causing interface is relating to the problem be restricted in the application that computing machine and control desk are relatively far away or operating space is limited in order to solve, the invention provides a kind of PS/2 keyboard and mouse simulator.
The technical scheme that the present invention adopts for technical solution problem is as follows:
A kind of PS/2 keyboard and mouse simulator of the present invention, comprising:
RS232 signal input interface, the PS/2 keyboard signal simulation and processing unit be connected with RS232 signal input interface, PS/2 mouse signal simulation and processing unit, the PS/2 keyboard signal output interface be connected with PS/2 keyboard signal simulation and processing unit, the PS/2 mouse signal output interface be connected with PS/2 mouse signal simulation and processing unit; Described PS/2 keyboard signal output interface is connected with main frame PS/2 keyboard port, and described PS/2 mouse signal output interface is connected with main frame PS/2 mouse port;
In computer booting process, the PS/2 keyboard initialization command that PS/2 keyboard signal simulation and processing unit receiving computer sends also correctly responds, the PS/2 mouse initialization command that PS/2 mouse signal simulation and processing unit receiving computer sends also correctly responds, and completes computer initialization; The RS232 keyboard signal with communicate check byte and data statistics byte be converted to by PS/2 physical keyboard signal is by RS232 signal input interface connecting system, PS/2 keyboard signal simulation and processing unit is decoded to RS232 keyboard signal and verifies, store after being verified as correct RS232 keyboard signal, and the PS/2 keyboard signal this RS232 keyboard signal being converted to emulation is transferred to main frame PS/2 keyboard port by PS/2 keyboard signal output interface; The RS232 mouse signal with communicate check byte and data statistics byte be converted to by PS/2 entity mouse signal is by RS232 signal input interface connecting system, PS/2 mouse signal simulation and processing unit is decoded to RS232 mouse signal and verifies, store after being verified as correct RS232 mouse signal, and the PS/2 mouse signal this RS232 mouse signal being converted to emulation is transferred to main frame PS/2 mouse port by PS/2 mouse signal output interface.
Described PS/2 keyboard signal simulation and processing unit, PS/2 mouse signal simulation and processing unit all adopt microcontroller chip.
The invention has the beneficial effects as follows:
1, PS/2 keyboard and mouse simulator of the present invention is controlled by RS232 signal input interface, simulate PS/2 keyboard, PS/2 mouse and computing machine by (mouse) signal imitation of PS/2 keyboard and processing unit and carry out communication, complete the identifying of computing machine to PS/2 keyboard, PS/2 mouse, realize the function of PS/2 keyboard, PS/2 mouse.
RS232 keyboard signal, RS232 mouse signal carry out being correctly decoded and checking by PS/2 keyboard (mouse) signal imitation 2, in the present invention and processing unit, correct effective PS/2 keyboard, PS/2 mouse emulation PS/2 operating protocol are sent to the device of computing machine.
3, in computer booting process, the initialization command of computing machine is correctly replied, complete the identifying of computer booting to keyboard, mouse, still correctly start shooting when computing machine does not connect entity PS/2 keyboard, PS/2 mouse.
4, control signal is the RS232 signal adding check byte, and RS232 signal has transmission range advantage relatively far away relative to PS/2 signal.
5, the present invention adopts RS232 signal input interface to control, do not conflict mutually with other equipment such as keyboard, mouse of external connection of computer, as long as the equipment that can export RS232 signal can control the present invention, computer controlled automatic, lottery ticket speed auxiliary in some game the occasion such as to be beaten and is played a significant role.
Accompanying drawing explanation
Fig. 1 is the composition structured flowchart of a kind of PS/2 keyboard and mouse simulator of the present invention.
Fig. 2 is the software flow schematic diagram of a kind of PS/2 keyboard and mouse simulator of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
A kind of PS/2 keyboard and mouse simulator of the present invention, as long as the equipment that can export RS232 signal can control this simulator, and is converted to the PS/2 signal of emulation and computing machine carries out communication by the RS232 signal of input.As shown in Figure 1, a kind of PS/2 keyboard and mouse simulator of the present invention is made up of RS232 signal input interface, PS/2 keyboard signal simulation and processing unit, PS/2 mouse signal simulation and processing unit, PS/2 keyboard signal output interface and PS/2 mouse signal output interface.
RS232 signal input interface is connected with PS/2 keyboard signal simulation and processing unit, PS/2 mouse signal simulation and processing unit respectively, outside RS232 keyboard signal and RS232 mouse signal are by RS232 signal input interface connecting system, namely PS/2 keyboard signal simulation and processing unit receives outside RS232 keyboard signal by RS232 signal input interface, and PS/2 mouse signal simulation and processing unit receives outside RS232 mouse signal by RS232 signal input interface; PS/2 keyboard signal simulation and processing unit is connected with PS/2 keyboard signal output interface, and PS/2 keyboard signal simulation and processing unit carries out communication by PS/2 keyboard signal output interface and main frame PS/2 keyboard port; PS/2 mouse signal simulation and processing unit is connected with PS/2 mouse signal output interface, and PS/2 mouse signal simulation and processing unit carries out communication by PS/2 mouse signal output interface and main frame PS/2 mouse port.
PS/2 keyboard signal simulation and processing unit a kind ofly RS232 interface data is converted to PS/2 keyboard communication protocol and carries out the interface protocol converting unit of communication with computing machine; PS/2 mouse signal simulation and processing unit a kind ofly RS232 interface data is converted to PS/2 mouse communication protocol and carries out the interface protocol converting unit of communication with computing machine.
In present embodiment, PS/2 keyboard signal simulation and processing unit, PS/2 mouse signal simulation and processing unit all adopt microcontroller (MCU) chip.
As shown in Figure 2, agreement aspect is divided into the reception of computer initialization processing section and RS232 signal, checking, storage and conversion portion.In computer booting process, the PS/2 keyboard initialization command that PS/2 keyboard signal simulation and processing unit receiving computer sends also correctly responds, the PS/2 mouse initialization command that PS/2 mouse signal simulation and processing unit receiving computer sends also correctly responds, and completes computer initialization.
After powering on, the RS232 keyboard signal with communicate check byte and data statistics byte be converted to by PS/2 physical keyboard signal is by RS232 signal input interface connecting system, in computer booting initialization procedure, PS/2 keyboard signal simulation and processing unit receives RS232 keyboard signal, RS232 keyboard signal with communication check byte and data statistics byte is decoded and verified, add communication check byte and data statistics byte can ensure that the signal that decode procedure receives is correct RS232 keyboard signal, if be verified as correct RS232 keyboard signal, then PS/2 keyboard signal simulation and processing unit stores correct RS232 keyboard signal and this RS232 keyboard signal is converted to the PS/2 keyboard signal of emulation, the PS/2 keyboard signal of emulation is transferred to main frame PS/2 keyboard port by PS/2 keyboard signal output interface.
After powering on, the RS232 mouse signal with communicate check byte and data statistics byte be converted to by PS/2 entity mouse signal is by RS232 signal input interface connecting system, in computer booting initialization procedure, PS/2 mouse signal simulation and processing unit receives RS232 mouse signal, RS232 mouse signal with communication check byte and data statistics byte is decoded and verified, add communication check byte and data statistics byte can ensure that the signal that decode procedure receives is correct RS232 mouse signal, if be verified as correct RS232 mouse signal, then PS/2 mouse signal simulation and processing unit stores correct RS232 mouse signal and this RS232 mouse signal is converted to the PS/2 mouse signal of emulation, the PS/2 mouse signal of emulation is transferred to main frame PS/2 mouse port by PS/2 mouse signal output interface.
In the present invention, PS/2 keyboard signal simulation and processing unit simulation PS/2 keyboard communicates with computing machine, PS/2 mouse signal simulation and processing unit simulation PS/2 mouse communicates with computing machine, complete the identifying of computing machine to PS/2 keyboard and PS/2 mouse, ensure that PS/2 keyboard in computer booting process, the identification of PS/2 mouse are correct, ensure PS/2 keyboard, PS/2 mouse normal initialization, do not affect mutually.
In the present invention, transmitting portion and PS/2 keyboard signal output interface and PS/2 mouse signal output interface all adopt the PS/2 host-host protocol of standard and sequential that the PS/2 keyboard signal of emulation, PS/2 mouse signal are sent to the corresponding PS/2 port of main frame, and computing machine is still correctly started shooting when directly connecting outside PS/2 keyboard and outside PS/2 mouse.
Claims (2)
1. a PS/2 keyboard and mouse simulator, is characterized in that, comprising:
RS232 signal input interface, the PS/2 keyboard signal simulation and processing unit be connected with RS232 signal input interface, PS/2 mouse signal simulation and processing unit, the PS/2 keyboard signal output interface be connected with PS/2 keyboard signal simulation and processing unit, the PS/2 mouse signal output interface be connected with PS/2 mouse signal simulation and processing unit; Described PS/2 keyboard signal output interface is connected with main frame PS/2 keyboard port, and described PS/2 mouse signal output interface is connected with main frame PS/2 mouse port;
In computer booting process, the PS/2 keyboard initialization command that PS/2 keyboard signal simulation and processing unit receiving computer sends also correctly responds, the PS/2 mouse initialization command that PS/2 mouse signal simulation and processing unit receiving computer sends also correctly responds, and completes computer initialization; The RS232 keyboard signal with communicate check byte and data statistics byte be converted to by PS/2 physical keyboard signal is by RS232 signal input interface connecting system, PS/2 keyboard signal simulation and processing unit is decoded to RS232 keyboard signal and verifies, store after being verified as correct RS232 keyboard signal, and the PS/2 keyboard signal this RS232 keyboard signal being converted to emulation is transferred to main frame PS/2 keyboard port by PS/2 keyboard signal output interface; The RS232 mouse signal with communicate check byte and data statistics byte be converted to by PS/2 entity mouse signal is by RS232 signal input interface connecting system, PS/2 mouse signal simulation and processing unit is decoded to RS232 mouse signal and verifies, store after being verified as correct RS232 mouse signal, and the PS/2 mouse signal this RS232 mouse signal being converted to emulation is transferred to main frame PS/2 mouse port by PS/2 mouse signal output interface.
2. a kind of PS/2 keyboard and mouse simulator according to claim 1, is characterized in that, described PS/2 keyboard signal simulation and processing unit, PS/2 mouse signal simulation and processing unit all adopt microcontroller chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410783254.5A CN104503822A (en) | 2014-12-16 | 2014-12-16 | PS/2 keyboard and mouse simulator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410783254.5A CN104503822A (en) | 2014-12-16 | 2014-12-16 | PS/2 keyboard and mouse simulator |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104503822A true CN104503822A (en) | 2015-04-08 |
Family
ID=52945223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410783254.5A Pending CN104503822A (en) | 2014-12-16 | 2014-12-16 | PS/2 keyboard and mouse simulator |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104503822A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045401A (en) * | 2015-07-01 | 2015-11-11 | 山东超越数控电子有限公司 | USB interface keyboard and mouse integrated system and design method therefor |
CN110766925A (en) * | 2018-12-31 | 2020-02-07 | 北京安天网络安全技术有限公司 | Circuit and system for one-way remote transmission of keyboard and mouse signals |
CN110794971A (en) * | 2018-12-31 | 2020-02-14 | 北京安天网络安全技术有限公司 | Remote control equipment and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040150625A1 (en) * | 2003-01-30 | 2004-08-05 | Ching-Chih Shih | Virtual keyboard and mouse control device |
CN2702370Y (en) * | 2004-05-17 | 2005-05-25 | 刘洋 | RS232 serial port signal and PS/2 keyboard (mouse) signal transforming cable |
CN200962216Y (en) * | 2006-09-01 | 2007-10-17 | 陈小梅 | Intelligent keyboard simulator |
CN102096474A (en) * | 2010-12-31 | 2011-06-15 | 广东川田科技有限公司 | Simulating device of PS/2 keyboard |
CN103365424A (en) * | 2013-07-01 | 2013-10-23 | 福州创意嘉和软件有限公司 | Keyboard/mouse simulation method based on PS/2 interface protocol |
-
2014
- 2014-12-16 CN CN201410783254.5A patent/CN104503822A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040150625A1 (en) * | 2003-01-30 | 2004-08-05 | Ching-Chih Shih | Virtual keyboard and mouse control device |
CN2702370Y (en) * | 2004-05-17 | 2005-05-25 | 刘洋 | RS232 serial port signal and PS/2 keyboard (mouse) signal transforming cable |
CN200962216Y (en) * | 2006-09-01 | 2007-10-17 | 陈小梅 | Intelligent keyboard simulator |
CN102096474A (en) * | 2010-12-31 | 2011-06-15 | 广东川田科技有限公司 | Simulating device of PS/2 keyboard |
CN103365424A (en) * | 2013-07-01 | 2013-10-23 | 福州创意嘉和软件有限公司 | Keyboard/mouse simulation method based on PS/2 interface protocol |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045401A (en) * | 2015-07-01 | 2015-11-11 | 山东超越数控电子有限公司 | USB interface keyboard and mouse integrated system and design method therefor |
CN110766925A (en) * | 2018-12-31 | 2020-02-07 | 北京安天网络安全技术有限公司 | Circuit and system for one-way remote transmission of keyboard and mouse signals |
CN110794971A (en) * | 2018-12-31 | 2020-02-14 | 北京安天网络安全技术有限公司 | Remote control equipment and system |
CN110794971B (en) * | 2018-12-31 | 2023-06-02 | 北京安天网络安全技术有限公司 | Remote control equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104503594A (en) | PS/2 keyboard-mouse remote switching system | |
CN202956753U (en) | Programming device and programming system of flash memory chip in embedded system | |
CN104735123B (en) | Massive store for cloud computing virtualizes | |
CN103198042A (en) | PCI (programmable communications interface) aviation serial bus board and dynamic data loading processing method | |
CN204065979U (en) | One exempts from instrument dismounting PCIE adapter | |
CN204009696U (en) | A kind of Godson mainboard with PCIE expanded function | |
CN102622136B (en) | A kind of multi-point touch system data processing method and device | |
CN102664873A (en) | Method for realization of KVM-OVER-IP of domestic Loongson CPU server with BMC | |
CN103853642A (en) | Injection type simulation system for infrared digital image based on USB3.0 and method thereof | |
CN104503822A (en) | PS/2 keyboard and mouse simulator | |
CN104461977B (en) | memory card access device, control method thereof and memory card access system | |
CN103164375A (en) | Multichannel digital-to-analogue conversion device communicating with computer through peripheral component interconnect (PCI) bus | |
CN112256615B (en) | USB conversion interface device | |
CN106155555A (en) | A kind of interactive multimedia metope scribble system | |
CN211956463U (en) | I/O (input/output) bridge piece based on Feiteng processor | |
TW201933131A (en) | The bridge of virtual comport device supporting USB host-to-USB host transmission | |
CN204390184U (en) | A kind of USB+PS2 double nip keyboard | |
WO2010060237A1 (en) | Network computer based on fpga | |
US11226891B2 (en) | Testing devices and methods for testing a device driver software | |
CN101344874A (en) | Method and device for controlling I2C device | |
CN204810421U (en) | Switching circuit based on HDMI interface | |
CN102955561B (en) | Simulation PS/2 Interface for System based on flush bonding processor and implementation method | |
CN202383571U (en) | FPC (flexible printed circuit board) output interface based main board | |
CN105740192A (en) | PS2 interface keyboard/mouse hot plug system and realization method thereof | |
CN205405443U (en) | Control of USB keyboard mouse system for KVM system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150408 |