[go: up one dir, main page]

CN105740192A - PS2 interface keyboard/mouse hot plug system and realization method thereof - Google Patents

PS2 interface keyboard/mouse hot plug system and realization method thereof Download PDF

Info

Publication number
CN105740192A
CN105740192A CN201610057995.4A CN201610057995A CN105740192A CN 105740192 A CN105740192 A CN 105740192A CN 201610057995 A CN201610057995 A CN 201610057995A CN 105740192 A CN105740192 A CN 105740192A
Authority
CN
China
Prior art keywords
interface
keyboard
mouse
hot plug
computer
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
Application number
CN201610057995.4A
Other languages
Chinese (zh)
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.)
Shandong Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics 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 Shandong Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201610057995.4A priority Critical patent/CN105740192A/en
Publication of CN105740192A publication Critical patent/CN105740192A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a PS2 interface keyboard/mouse hot plug system and a realization method thereof, belongs to PS2 interfaces, and aims at solving the technical problem of how to realize the hot plug usage of PS2 protocol interface keyboards and mice and make the usage be convenient as that of USB protocol keyboards and mice. The PS2 interface keyboard/mouse hot plug system comprises a PS2 interface hot plug module, a PS2 keyboard equipment interface and a PS2 mouse equipment interface, wherein the PS2 keyboard equipment interface and the PS2 mouse equipment interface are arranged at one end of the PS2 interface hot plug module. The realization method of the PS2 interface keyboard/mouse hot plug system comprises the following step: (1) computer starting: simulating a computer PS2 keyboard interface and a computer PS2 mouse interface by the PS2interface hot plug module to initialize PS2 interfaces of a computer main, and judging whether to establish an initialization completion mark.

Description

A kind of PS2 interface keyboard mouse hot plug system and its implementation
Technical field
The present invention relates to a kind of PS2 interface, specifically a kind of PS2 interface keyboard mouse hot plug system and its implementation.
Background technology
PS2 interface and traditional keyboard interface except interface external form, pin have different except, data transfer format is identical.A lot of mainboard PS2 interface sockets connect keyboard now, and the keyboard of legacy interface can pass through PS2 interface convertor and connect mainboard PS2 interface socket.
Along with technical development of computer, usb protocol interface tends to unified calculation machine Peripheral Interface with excellent characteristics such as its hot plugs, PS2 interface keyboard, mouse also fail to escape by luck, the hot-swappable property of usb protocol interface makes USB interface keyboard, mouse substitute traditional PS2 interface keyboard, mouse on a large scale, but a lot of keyboard, mouse response speed required higher occasion, PS2 protocol interface keyboard, mouse status still cannot replace.Compared with USB interface keyboard, mouse, though the fast response time of PS2 protocol interface keyboard, mouse, but it is not hot swappable, use be not as convenient as USB interface keyboard and mouse, how to be capable of the hot-swappable use of PS2 protocol interface keyboard, mouse, use the technical problem being conveniently exist in prior art as usb protocol keyboard and mouse.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that a kind of simple in construction, production cost are low, be prone to processing, the PS2 interface keyboard mouse hot plug system of environmentally safe and its implementation.
The technical solution adopted for the present invention to solve the technical problems is: a kind of PS2 interface keyboard mouse hot plug system, including PS2 interface hot plug module, PS2 keyboard equipment interface, PS2 mouse device interface, computer PS2 keyboard interface and computer PS2 mouse interface, described PS2 keyboard equipment interface and PS2 mouse device interface are arranged on PS2 interface hot plug module one end, PS2 keyboard equipment interface and PS2 mouse device interface and are used for connecting keyboard and mouse;The PS2 interface hot plug module other end is provided with computer PS2 keyboard interface and computer PS2 mouse interface, computer PS2 keyboard interface and computer PS2 mouse interface for connecting the PS2 interface of main frame;PS2 interface hot plug module includes data transceiving unit and data processing unit, and data transceiving unit connects data processing unit by I2C bus.Wherein, after PS2 interface hot plug module manufacture has been debugged, insert main frame PS2 keyboard interface and PS2 mouse interface, or by onboard for PS2 interface hot plug module enter inside computer mainframe box, PS2 interface hot plug module is powered and is provided by main frame.PS2 keyboard interface, PS2 mouse interface ensure PS2 interface hot plug module plate normal power supply when inserting PS2 interface hot plug module plate, and PS2 keyboard equipment interface, PS2 mouse device interface can plug use at any time.
As preferably, described PS2 keyboard equipment interface, PS2 mouse device interface, computer PS2 keyboard interface and computer PS2 mouse interface and PS2 interface hot plug module bi-directional transfer of data.
As preferably, described data transceiving unit and data processing unit are by I2C bus two-way communication.
As preferably, described data transceiving unit adopts CPLD.
A kind of PS2 interface keyboard mouse hot plug realize method, adopt above-mentioned a kind of PS2 interface keyboard mouse hot plug system to realize PS2 interface keyboard mouse hot plug, step is as follows:
(1), computer starting, the PS2 interface of main frame is initialized by PS2 interface hot plug module analogue computer PS2 keyboard interface, computer PS2 mouse interface, and judge whether set up initialize complement mark;
1., when main frame initialization complement mark is set up, step (3) is jumped to;
2., when main frame initialize fail complement mark set up time:
(a), inquire-receive main frame initialization command;
B (), reception main frame initialization command also send handshake;
(c), through sending after handshake, return step (1);
(2), keyboard, mouse be when being connected to PS2 keyboard equipment interface, PS2 mouse device interface, and keyboard, mouse are initialized by PS2 interface hot plug module analogue computer start-up course, and judge whether to set up keyboard, mouse initializes complement mark:
If 1. set up keyboard, mouse initialization complement mark, jump to step (3);
If 2. fail to set up keyboard, mouse initializes complement mark:
(a), inquire-receive keyboard, mouse initialization command;
B (), reception keyboard, mouse initialization command also send corresponding configuration data;
After (c), transmission corresponding configuration data, return step (2);
(3), when 1. the step in step (1) 1. connects with the step in step (2) simultaneously, then keyboard, mouse are connected with main frame by PS2 keyboard equipment interface, PS2 mouse device interface, PS2 interface hot plug module, computer PS2 keyboard interface, computer PS2 mouse interface;Otherwise, keyboard, mouse fail to connect with main frame;
(4), after keyboard, mouse connect with main frame, whether inquiry has keyboard, mouse device to pull out: if having keyboard or mouse device to pull out, then remove corresponding keyboard, mouse initializes complement mark, returns step (2).
Compared to the prior art a kind of PS2 interface keyboard mouse hot plug system of the present invention and its implementation, have the advantages that
1, the present invention is the peripheral hardware application technology of computer realm, provides warm connection function for computer PS2 keyboard interface, PS2 mouse interface;A keyboard, mouse hot swappable PS2 interface hot plug module is concatenated between PS2 keyboard equipment interface, PS2 mouse device interface and computer PS2 interface, this module can receive the PS2 order of mainboard and complete the PS2 of main frame and initialize after powering on, the equipment that can complete after inserting keyboard, mouse device initializes, so that the convenient hot plug as usb protocol interface keyboard, mouse of PS2 keyboard equipment interface, PS2 mouse device interface uses;
2, PS2 interface hot plug module is respectively completed the initialization of main frame PS2 interface and keyboard, mouse, the PS2 interface of computer starting computer-chronograph main frame does not rely on keyboard, mouse completes initialization procedure, keyboard, mouse device complete initialization procedure also not dependent on main frame, after PS2 interface hot plug module detects that main frame and keyboard, mouse device all complete initialization, connection keyboard, mouse communicate with main frame, it is achieved the hot plug of keyboard and mouse;
3, the technological difficulties of the present invention are that PS2 interface hot plug module accurately receives the valid data from main frame or keyboard, mouse.During PS2 interface hot plug module processes, can actively abandon being considered as invalid reception data, the mistake that can cause module during garbled-reception is corresponding, correct handshake data cannot be sent, cause that initialization is unsuccessful, therefore, to invalid data accurately identify and filtration be initialize successfully crucial, so, adopt the stronger CPLD(CPLD of logical signal disposal ability) as the Transmit-Receive Unit of PS2 data, it is ensured that the accuracy of data receiver.
Therefore the present invention has reasonable in design, simple in construction, the features such as processing, little, easy to use, the one-object-many-purposes of volume that are prone to, thus, have good value for applications.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described.
Accompanying drawing 1 is the structured flowchart of a kind of PS2 interface keyboard mouse hot plug system;
Accompanying drawing 2 is the flow chart that a kind of PS2 interface keyboard mouse hot plug realizes method.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Embodiment 1
As shown in Figure 1, a kind of PS2 interface keyboard mouse hot plug system of the present invention, its structure includes PS2 interface hot plug module, PS2 keyboard equipment interface, PS2 mouse device interface, computer PS2 keyboard interface and computer PS2 mouse interface, PS2 keyboard equipment interface and PS2 mouse device interface are arranged on PS2 interface hot plug module one end, PS2 keyboard equipment interface and PS2 mouse device interface and are used for connecting keyboard and mouse;The PS2 interface hot plug module other end is provided with computer PS2 keyboard interface and computer PS2 mouse interface, computer PS2 keyboard interface and computer PS2 mouse interface for connecting the PS2 interface of main frame;PS2 interface hot plug module includes data transceiving unit and data processing unit, and data transceiving unit connects data processing unit by I2C bus.PS2 keyboard equipment interface, PS2 mouse device interface, computer PS2 keyboard interface and computer PS2 mouse interface and PS2 interface hot plug module bi-directional transfer of data.Data transceiving unit and data processing unit are by I2C bus two-way communication.Data transceiving unit adopts CPLD.
Concrete installation process: first, is connected the computer PS2 keyboard interface in PS2 interface hot plug module and computer PS2 mouse interface with the PS2 interface of main frame;Then, keyboard, mouse are connected to the PS2 keyboard equipment interface in PS2 interface hot plug module, PS2 mouse device interface;Finally, after installing, start computer, just can be realized the hot plug of keyboard, mouse by PS2 interface hot plug module, concrete methods of realizing, as described in Example 2.
Embodiment 2
As shown in Figure 2, the method that realizes of a kind of PS2 interface keyboard mouse hot plug of the present invention, adopt a kind of PS2 interface keyboard mouse hot plug system of embodiment 1 to realize PS2 interface keyboard mouse hot plug, step is as follows:
(1), computer starting, the PS2 interface of main frame is initialized by PS2 interface hot plug module analogue computer PS2 keyboard interface, computer PS2 mouse interface, and judge whether set up initialize complement mark;
1., when main frame initialization complement mark is set up, step (3) is jumped to;
2., when main frame initialize fail complement mark set up time:
(a), inquire-receive main frame initialization command;
B (), reception main frame initialization command also send handshake;
(c), through sending after handshake, return step (1);
(2), keyboard, mouse be when being connected to PS2 keyboard equipment interface, PS2 mouse device interface, and keyboard, mouse are initialized by PS2 interface hot plug module analogue computer start-up course, and judge whether to set up keyboard, mouse initializes complement mark:
If 1. set up keyboard, mouse initialization complement mark, jump to step (3);
If 2. fail to set up keyboard, mouse initializes complement mark:
(a), inquire-receive keyboard, mouse initialization command;
B (), reception keyboard, mouse initialization command also send corresponding configuration data;
After (c), transmission corresponding configuration data, return step (2);
(3), when 1. the step in step (1) 1. connects with the step in step (2) simultaneously, then keyboard, mouse are connected with main frame by PS2 keyboard equipment interface, PS2 mouse device interface, PS2 interface hot plug module, computer PS2 keyboard interface, computer PS2 mouse interface;Otherwise, keyboard, mouse fail to connect with main frame;
(4), after keyboard, mouse connect with main frame, whether inquiry has keyboard, mouse device to pull out: if having keyboard or mouse device to pull out, then remove corresponding keyboard, mouse initializes complement mark, returns step (2).
Above-mentioned detailed description of the invention is only the concrete case of the present invention; the scope of patent protection of the present invention includes but not limited to above-mentioned detailed description of the invention; a kind of PS2 interface keyboard mouse hot plug system of any present invention of meeting and claims of its implementation and any person of an ordinary skill in the technical field to its suitably change done or replaces, and all should fall into the scope of patent protection of the present invention.
By detailed description of the invention above, described those skilled in the art can be easy to realize the present invention.It is understood that the present invention is not limited to above-mentioned two kind detailed description of the invention.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizing different technical schemes.
Except the technical characteristic described in description, it is the known technology of those skilled in the art.

Claims (5)

1. a PS2 interface keyboard mouse hot plug system, it is characterized in that: include PS2 interface hot plug module, PS2 keyboard equipment interface, PS2 mouse device interface, computer PS2 keyboard interface and computer PS2 mouse interface, described PS2 keyboard equipment interface and PS2 mouse device interface are arranged on PS2 interface hot plug module one end, PS2 keyboard equipment interface and PS2 mouse device interface and are used for connecting keyboard and mouse;The PS2 interface hot plug module other end is provided with computer PS2 keyboard interface and computer PS2 mouse interface, computer PS2 keyboard interface and computer PS2 mouse interface for connecting the PS2 interface of main frame;PS2 interface hot plug module includes data transceiving unit and data processing unit, and data transceiving unit connects data processing unit by I2C bus.
2. a kind of PS2 interface keyboard mouse hot plug system according to claim 1, it is characterised in that: described PS2 keyboard equipment interface, PS2 mouse device interface, computer PS2 keyboard interface and computer PS2 mouse interface and PS2 interface hot plug module bi-directional transfer of data.
3. a kind of PS2 interface keyboard mouse hot plug system according to claim 1, it is characterised in that: described data transceiving unit and data processing unit are by I2C bus two-way communication.
4. a kind of PS2 interface keyboard mouse hot plug system according to claim 1, it is characterised in that: described data transceiving unit adopts CPLD.
5. a PS2 interface keyboard mouse hot plug realize method, it is characterised in that: adopting any one PS2 interface keyboard mouse hot plug system in claim 1-4 to realize PS2 interface keyboard mouse hot plug, step is as follows:
(1), computer starting, the PS2 interface of main frame is initialized by PS2 interface hot plug module analogue computer PS2 keyboard interface, computer PS2 mouse interface, and judge whether set up initialize complement mark;
1., when main frame initialization complement mark is set up, step (3) is jumped to;
2., when main frame initialize fail complement mark set up time:
(a), inquire-receive main frame initialization command;
B (), reception main frame initialization command also send handshake;
(c), through sending after handshake, return step (1);
(2), keyboard, mouse be when being connected to PS2 keyboard equipment interface, PS2 mouse device interface, and keyboard, mouse are initialized by PS2 interface hot plug module analogue computer start-up course, and judge whether to set up keyboard, mouse initializes complement mark:
If 1. set up keyboard, mouse initialization complement mark, jump to step (3);
If 2. fail to set up keyboard, mouse initializes complement mark:
(a), inquire-receive keyboard, mouse initialization command;
B (), reception keyboard, mouse initialization command also send corresponding configuration data;
After (c), transmission corresponding configuration data, return step (2);
(3), when 1. the step in step (1) 1. connects with the step in step (2) simultaneously, then keyboard, mouse are connected with main frame by PS2 keyboard equipment interface, PS2 mouse device interface, PS2 interface hot plug module, computer PS2 keyboard interface, computer PS2 mouse interface;Otherwise, keyboard, mouse fail to connect with main frame;
(4), after keyboard, mouse connect with main frame, whether inquiry has keyboard, mouse device to pull out: if having keyboard or mouse device to pull out, then remove corresponding keyboard, mouse initializes complement mark, returns step (2).
CN201610057995.4A 2016-01-28 2016-01-28 PS2 interface keyboard/mouse hot plug system and realization method thereof Pending CN105740192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610057995.4A CN105740192A (en) 2016-01-28 2016-01-28 PS2 interface keyboard/mouse hot plug system and realization method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610057995.4A CN105740192A (en) 2016-01-28 2016-01-28 PS2 interface keyboard/mouse hot plug system and realization method thereof

Publications (1)

Publication Number Publication Date
CN105740192A true CN105740192A (en) 2016-07-06

Family

ID=56246918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610057995.4A Pending CN105740192A (en) 2016-01-28 2016-01-28 PS2 interface keyboard/mouse hot plug system and realization method thereof

Country Status (1)

Country Link
CN (1) CN105740192A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213013A (en) * 2018-02-28 2019-09-06 中航光电科技股份有限公司 A kind of telecommunication system and method based on PS/2 interface
CN110362349A (en) * 2018-03-26 2019-10-22 新唐科技股份有限公司 Virtual input managing device and its management method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201812253U (en) * 2010-10-15 2011-04-27 浪潮电子信息产业股份有限公司 A device for converting PS/2 to USB keyboard and mouse
CN102364452A (en) * 2011-06-27 2012-02-29 浪潮电子信息产业股份有限公司 A Realization Method of Hot Swappable Use of PS2 Interface Keyboard and Mouse
US20140101345A1 (en) * 2012-10-08 2014-04-10 Analog Devices, Inc. Universal serial bus (usb) plug-in event detection system and associated method
CN104834615A (en) * 2015-04-29 2015-08-12 山东超越数控电子有限公司 PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same
CN204705993U (en) * 2015-06-26 2015-10-14 浪潮集团有限公司 USB consolidates keyboard mouse controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201812253U (en) * 2010-10-15 2011-04-27 浪潮电子信息产业股份有限公司 A device for converting PS/2 to USB keyboard and mouse
CN102364452A (en) * 2011-06-27 2012-02-29 浪潮电子信息产业股份有限公司 A Realization Method of Hot Swappable Use of PS2 Interface Keyboard and Mouse
US20140101345A1 (en) * 2012-10-08 2014-04-10 Analog Devices, Inc. Universal serial bus (usb) plug-in event detection system and associated method
CN104834615A (en) * 2015-04-29 2015-08-12 山东超越数控电子有限公司 PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same
CN204705993U (en) * 2015-06-26 2015-10-14 浪潮集团有限公司 USB consolidates keyboard mouse controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213013A (en) * 2018-02-28 2019-09-06 中航光电科技股份有限公司 A kind of telecommunication system and method based on PS/2 interface
CN110362349A (en) * 2018-03-26 2019-10-22 新唐科技股份有限公司 Virtual input managing device and its management method
CN110362349B (en) * 2018-03-26 2022-08-12 新唐科技股份有限公司 Virtual input management device and management method thereof

Similar Documents

Publication Publication Date Title
EP2587385B1 (en) Usb key device and method for realizing intelligent card communication using usb interface
CN108111382B (en) Communication device based on I3C bus and communication method thereof
WO2006117752A1 (en) I2c slave/master interface enhancement using state machines
TW201027351A (en) Signal converter of all-in-one USB connector
CN204576500U (en) A kind of usb communication circuit of compatible I2C communication and system
CN202394228U (en) USB (Universal Serial Bus) equipment
CN102445981B (en) Data transmission system and data transmission method
CN105740192A (en) PS2 interface keyboard/mouse hot plug system and realization method thereof
CN202798652U (en) Signal conversion circuit and interface switching equipment
CN101782879B (en) Signal conversion device for all-in-one serial bus connector
CN202872142U (en) Multifunctional USB (Universal Serial Bus) data line
CN203658990U (en) Debugging device for central processing unit
CN202995719U (en) USB (universal serial bus) interface extension equipment and electronic terminal
CN102364452A (en) A Realization Method of Hot Swappable Use of PS2 Interface Keyboard and Mouse
CN203689514U (en) Master-slave coordinated work Godson server PCI-E device
CN205942360U (en) USB bus interface's extensions card based on PCI E structure
CN113742160B (en) Interface connection device, system and method
CN204440391U (en) A kind of full isolated form RS485 bus transceiver
CN206893961U (en) A kind of USB turns AccessPort line
CN105975427A (en) PCIE dual-mode system based on SAS interface
CN208781211U (en) A kind of multibus USB adapter
CN108132902B (en) UART-to-USB system and method capable of self-adapting to voltage
CN108494889B (en) Communication circuit based on I2C bus and debugging method
US20150095540A1 (en) External device and a transmission system and the method of the heterogeneous device
CN204480238U (en) A kind of universal serial bus switching device shifter

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: 20160706