CN104834615A - PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same - Google Patents
PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same Download PDFInfo
- Publication number
- CN104834615A CN104834615A CN201510210800.0A CN201510210800A CN104834615A CN 104834615 A CN104834615 A CN 104834615A CN 201510210800 A CN201510210800 A CN 201510210800A CN 104834615 A CN104834615 A CN 104834615A
- Authority
- CN
- China
- Prior art keywords
- usb
- equipment
- self
- adaptation
- port
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/387—Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention provides a PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and an implementation method for the same. The PS/2 and USB adaptive structure comprises a PS/2 equipment input interface, a USB equipment input interface, a PS/2 and USB adaptive interface, an MCU (Micro Controller Unit) chip and a switch chip. A specific implementation process comprises the following steps of initializing PS/2 and USB adaptive equipment; controlling the switch chip to connect a PS/2 port of the MCU chip with a port of a host computer; transmitting a handshaking signal to the PS/2 and USB adaptive equipment by using the host computer, and checking whether the PS/2 and USB adaptive equipment receives the handshaking signal or not within a specified time. Compared with the prior art, the PS/2 and USB adaptive structure and the implementation method for the same have the advantages that the flexibility and the convenience of the equipment are improved, the whole structure is simple in circuit design, the implementation process of the method is simple, the universality of the PS/2 and USB adaptive equipment is achieved, influence on a transmission effect is eliminated, and high practicability and easiness in popularization are achieved.
Description
Technical field
The present invention relates to field of computer technology, specifically a kind of PS/2 and USB adaptive structure and its implementation.
Background technology
PS/2 and usb protocol are agreement common on computer, all has the advantages such as function is simple and practical, technology maturity is high, communication distance is far away, be usually used in the peripheral apparatus of the computing machine such as mouse, keyboard.But PS/2 interface only supported by early stage part main frame, present part main frame only supports USB interface, and difference is between the two comparatively large, illustrates for keyboard, PS/2 keyboard belongs to be pressed what and just what is reported, upspring and what is reported whatever, if press 10 keys simultaneously, just report 10 successively and press event, as for the state that can record how many buttons simultaneously, agreement does not limit, and depends on operating system itself, so PS/2 keyboard can accomplish that unlimited button is without punching in theory; And USB keyboard packet only has 8 bytes, wherein 2 type flags states, all the other 6 bytes are used for recording the scan code of the current button pressed or upspring, so USB keyboard describes the state of 6 buttons at most simultaneously.Because both agreements are different, cause relevant external unit cannot use with compatible mainframe, based on this, now provide a kind of PS/2 and USB adaptive structure and its implementation, the method well solves the problem that external unit and compatible mainframe use.
Summary of the invention
Technical assignment of the present invention is in the deficiencies in the prior art, provides a kind of PS/2 and USB adaptive structure and its implementation.
Technical scheme of the present invention realizes in the following manner, this a kind of PS/2 and USB adaptive structure, comprise a PS/2 equipment input interface, a USB device input interface, a PS/2 and USB adaptive interface, MCU chip, a switch chip, wherein
PS/2 equipment input interface is connected with peripheral hardware with USB device input interface, and this peripheral hardware comprises key mouse;
PS/2 and USB adaptive interface is connected with main frame;
MCU chip, built-in PS/2 port and USB port, connect above-mentioned PS/2 equipment input interface and USB device input interface and the protocol conversion of control PS/2 or USB input equipment;
Switch chip, is responsible for the signal switching communicated with host side.
A kind of PS/2 and USB self-adaptation implementation method, specific implementation process is:
One, initialization is carried out to PS/2 and USB self-adaptation equipment;
Two, be connected with host port by the PS/2 port of gauge tap chip by MCU chip;
Three, main frame sends handshake to PS/2 and USB self-adaptation equipment, checks whether PS/2 and USB self-adaptation equipment receives this handshake at the appointed time, if it is starts and main-machine communication; Otherwise be switched to USB port.
The detailed process of described step one is: after main frame powers on, and is powered to PS/2 and USB self-adaptation equipment by PS/2 and USB adaptive interface, PS/2 and USB self-adaptation device initialize, and to PS/2 equipment input interface and the initialization of USB device input interface.
The detailed process of described step 3 is:
Main frame sends handshake data to PS/2 and USB self-adaptation equipment;
When PS/2 and USB self-adaptation equipment receives the PS/2 handshake that main frame sends in special time, then PS/2 and USB self-adaptation equipment performs PS/2 relative program, and peripheral apparatus data are pressed PS/2 agreement and main-machine communication by PS/2 port; Otherwise the USB port of MCU chip is connected with main frame by gauge tap chip, initialization USB port:
When PS/2 and USB self-adaptation equipment receives the USB handshake that main frame sends in special time, then PS/2 and USB self-adaptation equipment performs USB relative program, and peripheral apparatus data are pressed usb protocol and main-machine communication by USB port; Otherwise return step 2 and continue operation.
The beneficial effect that the present invention is compared with prior art produced is:
A kind of PS/2 and USB adaptive structure of the present invention and its implementation simple and practical, reliability is strong, improve the compatibility of external unit and main frame, improve dirigibility and the convenience of equipment, the circuit design of total is simple, and method implementation procedure is simplified, realize the versatility of PS/2 and USB device, and do not affect laser propagation effect, practical, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is hardware configuration schematic diagram of the present invention.
Accompanying drawing 2 is method realization flow figure of the present invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of PS/2 and USB adaptive structure provided by the present invention and its implementation are described in detail below.
As shown in Figure 1, a kind of PS/2 and USB adaptive structure, comprises a PS/2 equipment input interface, a USB device input interface, a PS/2 and USB adaptive interface, MCU chip, a switch chip, wherein
PS/2 equipment input interface is connected with peripheral hardware with USB device input interface, and this peripheral hardware comprises key mouse;
PS/2 and USB adaptive interface is connected with main frame;
MCU chip, built-in PS/2 port and USB port, connect above-mentioned PS/2 equipment input interface and USB device input interface and the protocol conversion of control PS/2 or USB input equipment;
Switch chip, is responsible for the signal switching communicated with host side.
As shown in Figure 2, a kind of PS/2 and USB self-adaptation implementation method, specific implementation process is:
One, initialization is carried out to PS/2 and USB self-adaptation equipment;
Two, be connected with host port by the PS/2 port of gauge tap chip by MCU chip;
Three, main frame sends handshake to PS/2 and USB self-adaptation equipment, checks whether PS/2 and USB self-adaptation equipment receives this handshake at the appointed time, if it is starts and main-machine communication; Otherwise be switched to USB port.
The detailed process of described step one is: after main frame powers on, and is powered to PS/2 and USB self-adaptation equipment by PS/2 and USB adaptive interface, PS/2 and USB self-adaptation device initialize, and to PS/2 equipment input interface and the initialization of USB device input interface.
The detailed process of described step 3 is:
Main frame sends handshake data to PS/2 and USB self-adaptation equipment;
When PS/2 and USB self-adaptation equipment receives the PS/2 handshake that main frame sends in special time, then PS/2 and USB self-adaptation equipment performs PS/2 relative program, and peripheral apparatus data are pressed PS/2 agreement and main-machine communication by PS/2 port; Otherwise the USB port of MCU chip is connected with main frame by gauge tap chip, initialization USB port:
When PS/2 and USB self-adaptation equipment receives the USB handshake that main frame sends in special time, then PS/2 and USB self-adaptation equipment performs USB relative program, and peripheral apparatus data are pressed usb protocol and main-machine communication by USB port; Otherwise return step 2 and continue operation.
Except the technical characteristic described in instructions, be the known technology of those skilled in the art.
Claims (4)
1. a PS/2 and USB adaptive structure, is characterized in that, comprises a PS/2 equipment input interface, a USB device input interface, a PS/2 and USB adaptive interface, MCU chip, a switch chip, wherein
PS/2 equipment input interface is connected with peripheral hardware with USB device input interface, and this peripheral hardware comprises key mouse;
PS/2 and USB adaptive interface is connected with main frame;
MCU chip, built-in PS/2 port and USB port, connect above-mentioned PS/2 equipment input interface and USB device input interface and the protocol conversion of control PS/2 or USB input equipment;
Switch chip, is responsible for the signal switching communicated with host side.
2. a PS/2 and USB self-adaptation implementation method, is characterized in that, specific implementation process is:
One, initialization is carried out to PS/2 and USB self-adaptation equipment;
Two, be connected with host port by the PS/2 port of gauge tap chip by MCU chip;
Three, main frame sends handshake to PS/2 and USB self-adaptation equipment, checks whether PS/2 and USB self-adaptation equipment receives this handshake at the appointed time, if it is starts and main-machine communication; Otherwise be switched to USB port.
3. a kind of PS/2 and USB self-adaptation implementation method according to claim 2, it is characterized in that, the detailed process of described step one is: after main frame powers on, powered to PS/2 and USB self-adaptation equipment by PS/2 and USB adaptive interface, PS/2 and USB self-adaptation device initialize, and to PS/2 equipment input interface and the initialization of USB device input interface.
4. a kind of PS/2 and USB self-adaptation implementation method according to claim 2, it is characterized in that, the detailed process of described step 3 is:
Main frame sends handshake data to PS/2 and USB self-adaptation equipment;
When PS/2 and USB self-adaptation equipment receives the PS/2 handshake that main frame sends in special time, then PS/2 and USB self-adaptation equipment performs PS/2 relative program, and peripheral apparatus data are pressed PS/2 agreement and main-machine communication by PS/2 port; Otherwise the USB port of MCU chip is connected with main frame by gauge tap chip, initialization USB port:
When PS/2 and USB self-adaptation equipment receives the USB handshake that main frame sends in special time, then PS/2 and USB self-adaptation equipment performs USB relative program, and peripheral apparatus data are pressed usb protocol and main-machine communication by USB port; Otherwise return step 2 and continue operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510210800.0A CN104834615A (en) | 2015-04-29 | 2015-04-29 | PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510210800.0A CN104834615A (en) | 2015-04-29 | 2015-04-29 | PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104834615A true CN104834615A (en) | 2015-08-12 |
Family
ID=53812517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510210800.0A Pending CN104834615A (en) | 2015-04-29 | 2015-04-29 | PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104834615A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740192A (en) * | 2016-01-28 | 2016-07-06 | 山东超越数控电子有限公司 | PS2 interface keyboard/mouse hot plug system and realization method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369762A (en) * | 2001-02-12 | 2002-09-18 | 民生科技股份有限公司 | Dual-purpose computer keyboard and its method for automatically detecting interface state |
CN1959664A (en) * | 2006-10-31 | 2007-05-09 | 埃派克森微电子(上海)有限公司 | Automatic method for identifying signal interfaces of electronic equipment |
CN101782879A (en) * | 2009-01-16 | 2010-07-21 | 银灿科技股份有限公司 | Signal conversion device of all-in-one serial bus connector |
-
2015
- 2015-04-29 CN CN201510210800.0A patent/CN104834615A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369762A (en) * | 2001-02-12 | 2002-09-18 | 民生科技股份有限公司 | Dual-purpose computer keyboard and its method for automatically detecting interface state |
CN1959664A (en) * | 2006-10-31 | 2007-05-09 | 埃派克森微电子(上海)有限公司 | Automatic method for identifying signal interfaces of electronic equipment |
CN101782879A (en) * | 2009-01-16 | 2010-07-21 | 银灿科技股份有限公司 | Signal conversion device of all-in-one serial bus connector |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740192A (en) * | 2016-01-28 | 2016-07-06 | 山东超越数控电子有限公司 | PS2 interface keyboard/mouse hot plug system and realization method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI544337B (en) | Dual-operating-system architecture for sharing usb devices, and method for sharing usb devices in a dual-operating-system architecture | |
CN102323905B (en) | Remote monitoring system for Godson main board | |
US9292411B2 (en) | Wireless debugging and updating of firmware | |
US20090296723A1 (en) | Multi-computer switch with function of transmitting data between computers | |
CN104199569A (en) | Keyboard and mouse switching and using method based on USB interfaces in KVM equipment | |
TW200703011A (en) | Bus device used in computer system | |
CN103019368B (en) | A kind of method that local I/O node switches with KVM module intelligence | |
CN104503594A (en) | PS/2 keyboard-mouse remote switching system | |
CN105653461A (en) | System for converting single USB interface into plurality of UART debugging interfaces | |
EP2985676A1 (en) | Television-and-computer all-in-one machine, method, and computer storage medium for performing remote control on external computer | |
CN101794267A (en) | USB (Universal Serial Bus) switching device and realizing method thereof | |
CN107665036B (en) | Electric power supply control system | |
CN108153626B (en) | USB, serial port multiplexing and safety isolation system | |
CN102421010A (en) | Software debugging system and method compatible to video graphics array (VGA) port input | |
CN102445981B (en) | Data transmission system and data transmission method | |
CN106548574B (en) | POS system and Bluetooth connection device | |
CN104834615A (en) | PS/2 (Personal Computer/2) and USB (Universal Serial Bus) adaptive structure and implementation method for same | |
TW201319821A (en) | Method, system and conversion device applicable to wireless communications for hosts of human interface devices | |
CN202018635U (en) | Device capable of realizing switching of PS (personal system)/2 signals in KVM (kernel-based virtual machine) | |
CN105045401A (en) | USB interface keyboard and mouse integrated system and design method therefor | |
CN114661141A (en) | Thunder and lightning sharing control device | |
US20150084851A1 (en) | Electronic device having plurality of human-machine operation modules | |
CN107402898B (en) | Information processing method and electronic equipment | |
CN102364452A (en) | Realization method for thermal plugging use of PS2 interface keyboard and mouse | |
CN103853572A (en) | Starting-up method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate 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: 20150812 |