Invention content
An embodiment of the present invention provides a kind of KVM chips, KVM control systems and method, realizes and be uniformly controlled keyboard, show
Show device and mouse message.
A kind of KVM chips are applied in KVM, including:Data processing unit, microcontroller and at least two controlled interfaces,
In,
The data processing unit is connected with the microcontroller, for determining control data, and by the control data solution
Analysis is that the first format controls data, and first format control data are sent to the microcontroller;
The microcontroller is connected at least two controlled interface, and data are controlled for receiving first format, and
Data are controlled according to first format, the command object is sent to described at least two and controlled connect by invocation target order
Arbitrary controlled interface in mouthful, the command object, including:Key assignments order, mouse action order and the display state life of keyboard
Any one or more in order;
Arbitrary controlled interface at least two controlled interface, is connected with the controlled end of peripheral hardware, for receiving the mesh
Mark order, and the command object is resolved into the second format and controls data, controlling data by second format regulates and controls phase
The controlled end of peripheral hardware even.
Preferably, at least two controlled interface, including:It is any one in USB interface, PS2 interfaces and video interface
Kind is a variety of, wherein
The USB interface, including:USB MAC and USB PHY, wherein
The USB MAC are connected with the microcontroller and the USB PHY respectively, are sent for receiving the microcontroller
Keyboard key assignments/mouse action order, by the key assignments of the keyboard/mouse action command analysis be the second format control number
According to second format is controlled the controlled end that data are sent to by the USB PHY peripheral hardware, is connect by the USB PHY
The second format keyboards/mouse state data that the controlled end of the peripheral hardware is sent are received, by second format keyboards/mouse state
Data resolve to the first format keyboards/mouse state data, and first format keyboards/mouse state data are stored to target
Address is that first format keyboards/mouse state data and the destination address generate 8bit interrupt signals, described in transmission
8bit interrupt signals give the microcontroller;
The PS2 interfaces, are connected with the controlled end of the microcontroller and the peripheral hardware, are sent for receiving the microcontroller
Keyboard key assignments/mouse action order, by the key assignments of the keyboard/mouse action command analysis be the second format control number
According to second format control data being sent to the controlled end of the peripheral hardware, receive that the controlled end of the peripheral hardware sends the
Second format keyboards/mouse state data are resolved to the first format keyboards/mouse by two format keyboards/mouse state data
Mark status data, and by first format keyboards/mouse state data storage to destination address, be first format keyboards/
Mouse state data and the destination address generate 8bit interrupt signals, send the 8bit interrupt signals to the microcontroller;
The video interface is connected with the controlled end of the microcontroller and the peripheral hardware, for receiving the microcontroller hair
The display state command analysis is that the second format controls data, by second format by the display state order sent
Control data are sent to the controlled end of the peripheral hardware, receive the second format video data that the controlled end of the peripheral hardware is sent, will
Second format video data resolves to the first format video data, and with arriving target by first format video data storage
Location is that first format video data and the destination address generate 8bit interrupt signals, sends the 8bit interrupt signals
To the microcontroller.
Preferably, above-mentioned KVM chips, further comprise:WISHBONE buses, wherein
The microcontroller, including:Microcontroller stone, Flash controllers, Flash, RAM, microcontroller variable and plug-in monolithic
It is any one or more in machine variable, wherein
The microcontroller stone, by the WISHBONE buses respectively at least two controlled interface and the number
It is connected according to processing unit, is controlled for receiving the first format that the data processing unit is sent by the WISHBONE buses
Data, and Flash controllers are triggered, the command object that the RAM is sent is received, and institute is received by the WISHBONE buses
The 8bit interrupt signals that arbitrary controlled interface is sent at least two controlled interfaces are stated, according to the 8bit interrupt signals, are determined
Destination address reads the first format result data from the destination address, and the first format result data is passed through institute
It states WISHBONE buses and is sent to the data processing unit, the first format result data, including:First format keyboards shape
Any one or more in state data, the first format mouse state data and the first format video data;
The Flash is connected with the Flash controllers, for storing various orders;
The Flash controllers are connected with the microcontroller stone, for receiving the microcontroller stone triggering
When, data are controlled according to the first format that the microcontroller stone receives, command object are read from the Flash, and will
The command object is sent to the RAM;
The RAM is connected with the microcontroller stone, for receiving the command object, and runs the command object,
The command object is sent to the microcontroller stone;
The microcontroller variable is connected with the microcontroller stone, for storing microcontroller variable, is set according to the variable
Set the microcontroller stone attribute;
The plug-in microcontroller variable, is connected with the microcontroller stone, the storage for expanding the microcontroller variable.
Preferably, the data processing unit, including:Control sub-interface, Ethernet MAC, Ethernet PHY and pressure
Contracting subelement, wherein
The control sub-interface is connected with the Ethernet PHY, for configuring IP address, by the IP address with
The control terminal of peripheral hardware is connected, and receives the control data that the control terminal of peripheral hardware is sent, sends the control data, and receive third lattice
Formula result data;
The Ethernet MAC are connected with the Ethernet PHY and the compression subelement, and pass through institute respectively
It states WISHBONE buses with the microcontroller to be connected, for receiving the control data by the Ethernet PHY, by institute
It states control data and resolves to the first format control data, and first format control data are sent to the microcontroller/institute
Compression subelement is stated, receives the compressed first format result data that the compression subelement is sent, and will be after the compression
The first format result data resolve to third format result data, the third format result data are passed through described
Ethernet PHY are sent to the control sub-interface;
The compression subelement is connected by WISHBONE buses with the microcontroller, and the first format is received for working as
When controlling data, first format is controlled into data compression, and the control data compression of compressed first format is sent to
The microcontroller, receives the first format result data that the microcontroller is sent by the WISHBONE buses, described in compression
First format result data, and send compressed first format result data.
Preferably, above-mentioned KVM chips, further comprise:Encryption unit, wherein
The microcontroller is connected with the encryption unit, single for the first format result data to be sent to the encryption
Member, the first format result data, including:First format keyboards status data, the first format mouse state data and first
Any one or more in format video data;
The encryption unit is connected with the data processing unit, for receiving the first format result data, and it is right
The first format result data are encrypted, and the encrypted first format result data are sent to the data processing
Unit.
Preferably, above-mentioned KVM chips, further comprise:Video processing unit, wherein
The microcontroller is connected with the video processing unit, includes to regard for working as in the first format result data
Frequency according to when, the video data in the first format result data is sent to the video processing unit;
The video processing unit removes redundant video stream in the video data for receiving the video data, and
The the first format result data for removing the redundant video stream are sent to the data processing unit.
A kind of KVM control systems, including:Any one of the above KVM chips, control terminal and at least one controlled end, wherein
The control terminal is connected with the KVM chips, for sending control data to the KVM chips, and described in reception
The third format result data that KVM chips are sent, the third format result data, including:Third format keyboards status data,
Any one or more in third format mouse state data and third format video data;
In at least one controlled end, each controlled end is connected with the KVM chips, for receiving the KVM cores
The second format that piece is sent controls data, receives the control of the second format control data, and sends the second format result number
According to the KVM chips, the second format result data, including:Second format keyboards status data, the second format mouse-like
Any one or more in state data and the second format video data.
A kind of KVM control methods realized using any one of the above KVM chips, are arranged at least two controlled interfaces, lead to
It crosses at least two controlled interface with the controlled end of peripheral hardware to be connected, further includes:
It determines control data, and the control data is resolved into the first format and controls data;
According to first format control data, invocation target order, the command object, including:The key assignments of keyboard is ordered
It enables, any one or more in mouse action order and display state order;
The command object is resolved into the second format and controls data;
The controlled end of the connected peripheral hardware of data regulation and control is controlled by second format.
Preferably, at least two controlled interface, including:It is any one in USB interface, PS2 interfaces and video interface
Kind is a variety of, wherein
It is described that the command object is resolved into the second format control data, including:
By the USB interface/PS2 interfaces by the key assignments of the keyboard/mouse action command analysis be the second lattice
Formula controls data;
The display state command analysis is controlled into data for the second format by the video interface.
Preferably, the above method further comprises:
Control interface is set, and is connected with the control terminal of peripheral hardware by the control interface;
Receive the peripheral hardware controlled end send the second format result data, the second format result data, including:
In second format keyboards status data, the second format mouse state data and the second format video data any one or it is more
Kind;
The second format result data are resolved into third format result data, and the third format result data are sent out
Give the control terminal of peripheral hardware.
Preferably, the determining control data, including:The control terminal that the peripheral hardware is received by the control interface is sent
Control data.
Preferably, described that the second format result data are resolved into third format result data, including:When described
When two format result data include video data, redundant video stream in the video data is removed, and redundant video stream will be removed
Digital video resolution be third format result data.
An embodiment of the present invention provides a kind of KVM chips, KVM control systems and methods, at the data in KVM chips
Reason unit can determine control data, and control data is resolved to the first format and controls data, and the microcontroller in KVM chips
Data, invocation target order can be controlled according to the first format;And by the controlled interface in KVM chips will i.e. command object solution
Analysis is that the second format controls data, and to regulate and control the controlled end of connected peripheral hardware, and the KVM chips that the present invention program provides can be adjusted
Command object, including:Any one or more in the key assignments of keyboard, mouse action order and display state order,
That is, can handle the operation of keyboard by KVM chips, can also handle the operation of mouse, display can also be handled
The operation of device realizes and is uniformly controlled keyboard, display and mouse message.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of KVM chips, it is applied in KVM, including:Data processing unit
101, microcontroller 102 and at least two controlled interfaces 103, wherein
Data processing unit 101 is connected with microcontroller 102, and is resolved to for determining control data, and by control data
One format controls data, and the first format control data are sent to microcontroller 102;
Microcontroller 102 is connected at least two controlled interfaces 103, controls data for receiving the first format, and according to the
One format controls data, and command object is sent to arbitrary controlled interface at least two controlled interfaces by invocation target order
103, command object, including:Any one or more in the key assignments of keyboard, mouse action order and display state order;
Arbitrary controlled interface 103, is connected with the controlled end of peripheral hardware at least two controlled interfaces, for receiving target life
Enable, and command object resolved into the second format and controls data, by the second format control the connected peripheral hardware of data regulation and control by
Control end.
In the embodiment illustrated in fig. 1, control data can determine by the data processing unit in KVM chips, and will
Control data resolves to the first format control data, and the microcontroller in KVM chips can control data according to the first format, adjust
Use command object;And the second format control data will be resolved to by command object by the controlled interface in KVM chips, with regulation and control
The controlled end of connected peripheral hardware, and the command object that the KVM chips that the present invention program provides can call, including:The key of keyboard
Any one or more in value, mouse action order and display state order, that is to say, that can by KVM chips
It handles the operation of keyboard, can also handle the operation of mouse, can realize with the operation of processing display and be uniformly controlled key
Disk, display and mouse message.
As shown in Fig. 2, in still another embodiment of the process, at least two controlled interfaces 103, including:USB interface 201,
Any one or more in PS2 interfaces 202 and video interface 203, wherein
USB interface 201, including:USB MAC2011 and USB PHY2012, wherein
USB MAC2011 are connected with microcontroller 102 and USB PHY2012 respectively, for receiving the transmission of microcontroller 102
The key assignments of keyboard/mouse action command analysis is that the second format controls data, by the by the key assignments of keyboard/mouse action order
Two formats control data are sent to the controlled end of peripheral hardware by USB PHY2012, and the controlled of peripheral hardware is received by USB PHY2012
The the second format keyboards/mouse state data sent are held, the second format keyboards/mouse state data are resolved into the first format key
Disk/mouse state data, and by first format keyboards/mouse state data storage to destination address, be the first format keyboards/
Mouse state data and destination address generate 8bit interrupt signals, send 8bit interrupt signals to microcontroller 102;
PS2 interfaces 202 are connected with the controlled end of microcontroller 102 and peripheral hardware, the keyboard for receiving the transmission of microcontroller 102
Key assignments/mouse action order, by the key assignments of keyboard/mouse action command analysis be the second format control data, by the second lattice
Formula control data are sent to the controlled end of peripheral hardware, receive the second format keyboards/mouse state data that the controlled end of peripheral hardware is sent,
Second format keyboards/mouse state data are resolved into the first format keyboards/mouse state data, and by the first format key
Disk/mouse state data storage to destination address is that the first format keyboards/mouse state data and destination address generate in 8bit
Break signal sends 8bit interrupt signals to microcontroller 102;
Video interface 203 is connected with the controlled end of microcontroller 102 and peripheral hardware, the display for receiving the transmission of microcontroller 102
Display state command analysis is that the second format controls data, the second format control data is sent to outer by device status command
If controlled end, receive the second format video data that the controlled end of peripheral hardware is sent, the second format video data resolved to the
One format video data, and be the first format video data and target by first format video data storage to destination address
Address generates 8bit interrupt signals, sends 8bit interrupt signals to microcontroller 102.
In Fig. 2 the embodiment described, due at least two controlled interfaces, including:USB interface, PS2 interfaces and video connect
Any one or more in mouthful, can not only realize that the controlled end with multiple peripheral hardwares is connected, and it is capable of providing multiple interfaces
Type increases the practicability of KVM chips to meet the demand of the controlled end of peripheral hardware.
As shown in figure 3, in an alternative embodiment of the invention, further comprising:WISHBONE buses 301, wherein
Microcontroller 102, including:Microcontroller stone 302, Flash controllers 303, Flash304, RAM305, microcontroller become
It is any one or more in amount 306 and plug-in microcontroller variable 307, wherein
Microcontroller stone 302, by WISHBONE buses 301 respectively at least two controlled interfaces 103 and data processing
Unit 101 is connected, and data are controlled for receiving the first format that data processing unit 101 is sent by WISHBONE buses 301,
And Flash controllers 303 are triggered, the command object that RAM305 is sent is received, and at least two are received by WISHBONE buses 301
The 8bit interrupt signals that arbitrary controlled interface 103 is sent in a controlled interface determine destination address according to 8bit interrupt signals,
The first format result data are read from destination address, and the first format result data are sent by WISHBONE buses 301
To data processing unit 101, the first format result data, including:First format keyboards status data, the first format mouse state
Any one or more in data and the first format video data;
Flash304 is connected with Flash controllers 303, for storing various orders;
Flash controllers 303 are connected with microcontroller stone 302, for receive microcontroller stone 302 trigger when, root
The first format received according to microcontroller stone 302 controls data, reads command object from Flash304, and by command object
It is sent to RAM305;
RAM305 is connected with microcontroller stone 302, for receiving command object, and operational objective order, by command object
It is sent to microcontroller stone 302;
Microcontroller variable 306 is connected with microcontroller stone 302, and for storing microcontroller variable, monolithic is arranged according to variable
302 attribute of machine stone;
Plug-in microcontroller variable 307, is connected with microcontroller stone 302, the storage for expanding microcontroller variable 306.
In the embodiment shown in fig. 3, microcontroller passes through microcontroller stone, Flash controllers, Flash, RAM, microcontroller
The work of microcontroller is completed in variable and the collaboration of plug-in microcontroller variable, realizes the separation of personage's module, more convenient to monolithic
The maintenance of machine.
As shown in figure 4, in an alternative embodiment of the invention, data processing unit 101, including:Control sub-interface 401,
Ethernet MAC402, Ethernet PHY403 and compression subelement 404, wherein
Sub-interface 401 is controlled, is connected with Ethernet PHY403, for configuring IP address, passes through IP address and peripheral hardware
Control terminal is connected, and receives the control data that the control terminal of peripheral hardware is sent, sends control data, and receive third format result number
According to;
Ethernet MAC402 are connected with Ethernet PHY403 and compression subelement 404, and pass through respectively
WISHBONE buses 301 are connected with microcontroller 102, for receiving control data by Ethernet PHY403, by control data
The first format control data are resolved to, and the first format control data are sent to microcontroller 102/ and compress subelement 404, are received
The compressed first format result data that subelement 404 is sent are compressed, and compressed first format result data are parsed
For third format result data, third format result data are sent to control sub-interface 401 by Ethernet PHY403;
Subelement 404 is compressed, is connected with microcontroller 102 by WISHBONE buses 301, the first format is received for working as
When controlling data, the first format is controlled into data compression, and the control data compression of compressed first format is sent to monolithic
Machine 102 receives the first format result data that microcontroller 102 is sent by the WISHBONE buses 301, compresses the first format
Result data, and send compressed first format result data.
As shown in figure 5, in still another embodiment of the process, above-mentioned KVM chips further comprise:Encryption unit 501,
In,
Microcontroller 102 is connected with encryption unit 501, for the first format result data to be sent to encryption unit 501,
First format result data, including:First format keyboards status data, the first format mouse state data and the first format video
Any one or more in data;
Encryption unit 501 is connected with data processing unit 101, for receiving the first format result data, and to the first lattice
Formula result data is encrypted, and encrypted first format result data are sent to data processing unit 101.
In Fig. 5 the embodiment described, by the encryption to data, the safety of data ensure that.
As shown in fig. 6, in another embodiment of the invention, above-mentioned KVM chips further comprise:Video processing unit
601, wherein
Microcontroller 102 is connected with video processing unit 601, includes video data for working as in the first format result data
When, the video data in the first format result data is sent to video processing unit 601;
Video processing unit 601 removes redundant video stream in video data, and will remove superfluous for receiving video data
First format result data of remaining video flowing are sent to data processing unit 101.
In the embodiment shown in fig. 6, the de-redundancy to video data is realized by video processing unit, so as to
Effectively improve the data transmission efficiency between KVM chips and the control terminal of peripheral hardware.
In another embodiment, above-mentioned KVM chips can be prepared by 0.18 μm of technique.
In another embodiment of the invention, when in control data including wake-up signal, above-mentioned KVM chips pass through USB
Interface/PS2 interfaces wake up the controlled end of connected peripheral hardware.
In another embodiment, above-mentioned video interface includes:In VGA HV and VGA RGB any one or
Two kinds of (not shown)s, transmit the video data of different-format.
In another embodiment of the invention, video processing unit, including:A/D conversion subunits and Video coding are single
First (not shown), wherein
A/D conversion subunits, for when video interface is VGA RGB, A/ to be carried out to the video data of VGA RGB transmission
D transcodings;
Video coding subelement, for removing redundant video stream in video data.
As shown in fig. 7, one embodiment of the invention offer KVM control systems, the KVM control systems, including:It is above-mentioned arbitrary
A kind of KVM chips 701, control terminal 702 and at least one controlled end 703;
Control terminal 702 is connected with KVM chips 701, for sending control data to KVM chips 701, and receives KVM chips
The 701 third format result data sent, third format result data, including:Third format keyboards status data, third format
Any one or more in mouse state data and third format video data;
In at least one controlled end, each controlled end 703 is connected with KVM chips 702, for receiving KVM chips 702
The second format sent controls data, receives the control of the second format control data, and sends the second format result data to KVM
Chip 701, the second format result data, including:Second format keyboards status data, the second format mouse state data and second
Any one or more in format video data.
The contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus/system, due to the method for the present invention
Embodiment is based on same design, and particular content can be found in the narration in following the method for the present invention embodiments, and details are not described herein again.
As shown in figure 8, one embodiment of the invention provides the KVM controlling parties realized using any one of the above KVM chips
Method, this method may comprise steps of:
Step 801:At least two controlled interfaces are set, the controlled end phase of at least two controlled interface and peripheral hardware is passed through
Even;
Step 802:It determines control data, and control data is resolved into the first format and controls data;
Step 803:According to the first format control data, invocation target order, command object, including:The key assignments of keyboard, mouse
Mark any one or more in action command and display state order;
Step 804:Command object is resolved into the second format and controls data;
Step 805:The controlled end of the connected peripheral hardware of data regulation and control is controlled by the second format.
In an embodiment of the invention, in order to meeting the controlled end of distinct interface, improve practicability, it is above-mentioned at least
Two controlled interfaces, including:Any one or more in USB interface, PS2 interfaces and video interface, wherein
The specific implementation mode of step 804, including:The key assignments of keyboard/mouse action is ordered by USB interface/PS2 interfaces
Order resolves to the second format control data;Display state command analysis is controlled into data for the second format by video interface.
In an embodiment of the invention, in order to which the control terminal for being embodied as peripheral hardware provides result data, the above method, into one
Step includes:Control interface is set, and is connected with the control terminal of peripheral hardware by the control interface;Receive the controlled end transmission of peripheral hardware
Second format result data, the second format result data, including:Second format keyboards status data, the second format mouse state
Any one or more in data and the second format video data;Second format result data are resolved into third format result
Data, and the third format result data are sent to the control terminal of peripheral hardware.
In an embodiment of the invention, the specific implementation mode of step 802, including:Peripheral hardware is received by control interface
Control terminal send control data.
In an embodiment of the invention, the above-mentioned tool that second format result data are resolved to third format result data
Body real-time mode, including:When the second format result data include video data, redundant video stream in video data is removed, and
It is third format result data by the Digital video resolution for removing redundant video stream.
KVM controls process provided in an embodiment of the present invention includes interacting between control terminal, KVM chips and controlled end
Journey, to make the object, technical solutions and advantages of the present invention clearer, in another embodiment, to pass through USB/
For PS2 interfaces transmit keyboard data/mouse data, and KVM control methods are described in further detail in conjunction with attached drawing 9,
As shown in Figure 10, this method may comprise steps of:
Step 1001:Control interface is set, is connected with the control terminal of peripheral hardware by the control interface;
In this step, the control interface of setting is control sub-interface 90111 shown in Fig. 9, the control sub-interface 90111
It can be RJ-45 Ethernet interfaces, be connected with control terminal 902 shown in Fig. 9 by the Ethernet, which can be
The long-range KVM applications clients being installed in PC machine realize a set of or number by the long-range KVM applications clients and KVM chips
Set keyboard, mouse and display control more controlled ends 903 shown in Fig. 9.In this step, it searches IP address and establishes KVM cores
Connection between piece and control terminal can realize remote control.
Step 1002:At least two controlled interfaces are set, the controlled end phase of at least two controlled interface and peripheral hardware is passed through
Even;
In this step, as shown in figure 9, setting at least two controlled interfaces 9013, including:USB interface 90131, PS2
Interface 90132 and video interface 90133, wherein USB interface 90131 includes again:USB MAC901311 and USB
PHY901312, video interface 90133 include again:VGA HV901331 and VGA RGB901332.
When the mouse/keyboard interface of controlled end is USB interface, pass through USB MAC901311 and USB PHY901312 structures
At USB interface 90131 be connected with the USB interface of control terminal;When the mouse/keyboard interface of controlled end is PS2 interfaces, pass through
PS290132 is connected with the PS2 interfaces of control terminal;In addition, passing through VGA HV901331 or VGA in video interface 90133
RGB901332 is connected with the display interface device of controlled end.
Step 1003:The key assignments with keyboard/mouse action number that the control terminal of peripheral hardware is sent is received by control interface
According to control data;
Such as:As shown in figure 9, receiving the transmission of control terminal 902 controlled end A is corresponding by controlling sub-interface 90111
Keyboard state becomes the control datas such as capitalization from small letter, alternatively, receiving what control terminal 902 was sent by controlling sub-interface 90111
The control datas such as a mouse click operation are carried out for controlled end A.
Step 1004:The control data of key assignments with keyboard/mouse action data is resolved into the first format and controls number
According to;
Ethernet MAC90113 in the data processing unit of the resolving of the step mainly as shown in Figure 9 have come
At, Ethernet MAC90113 by Ethernet PHY90112 receive that control sub-interface 90111 sends by A pairs of controlled end
The keyboard state answered from small letter becomes the control datas such as capitalization or carries out a mouse click for controlled end A and the controls such as operate asking
It asks, and control data is parsed, the first format control data after parsing are in order to which KVM chips 901 can be identified.
Step 1005:Data, the corresponding keyboard command object/mouse action of call keyboard key assignments are controlled according to the first format
The corresponding mouse target order of data;
It below will be with control data 1:It is illustrated for the corresponding keyboard states of controlled end A are become capitalization from small letter,
As shown in figure 9, the first format control data after Ethernet MAC90113 parse control data 1 are total by WISHBONE
Line 9014 is sent to the microcontroller stone 90121 in microcontroller 9012, which controls number according to the first format
Control data 1 in, triggering Flash controllers 90122, which calls from Flash and is asked with control
1 corresponding order a is sought, and order a is sent in RAM IP 64KB90124 and is run, it is worth noting that, the SRAM in Fig. 9
IP 256B90125 are microcontroller variable, are used for being arranged the attribute of microcontroller stone 90121, and XRAM IP 64KB90126
It is plug-in microcontroller variable to extend the storage of SRAM IP256B90125.
Step 1006:Keyboard command object/mouse target command analysis is controlled for the second format by USB/PS2 interfaces
Data;
In this step, still with control data 1:By the corresponding keyboard states of controlled end A from small letter become capitalization for into
Row explanation, microcontroller stone 90121 receives the order a run in RAM IP 64KB90124, when the Keyboard Control of controlled end A
When interface is USB interface, order a is sent to USB interface 90131 by WISHBONE buses 9014, when the keyboard of controlled end A
When control interface is PS2 interfaces, order a is sent to PS2 interfaces 90132, USB interface by WISHBONE buses 9014
90131 or PS2 interfaces 90132 will order a to resolve to the second format that controlled end A can be identified and control data.
Step 1007:The controlled end of the connected peripheral hardware of data regulation and control is controlled by the second format;
In this step, still with control data 1:By the corresponding keyboard states of controlled end A from small letter become capitalization for into
Keyboard state is become capitalizing by row explanation, controlled end A when receiving the second format control data from small letter, after this, by
Keyboard capitalization status signal will be returned to by step 1008 to step 1013 by controlling end A.
Step 1008:The the second format keyboards status data/mouse sent by the controlled end of USB/PS2 interface peripheral hardwares
Mark status data;
Step 1009:Second format keyboards status data/mouse state data are resolved into the first format keyboards status number
According to/mouse state data;
In step 1008 and step 1009, illustrated for returning to keyboard capitalization status signal, keyboard capitalization
Status signal is the second format keyboards status data mentioned in this step.When the Keyboard Control interface of controlled end A is USB
When interface, keyboard capitalization status signal is sent to USB interface 90131, when the Keyboard Control interface of controlled end A is PS2 interfaces
When, keyboard capitalization status signal is sent to PS2 interfaces 90132, USB interface 90131 or PS2 interfaces 90132 are big by keyboard
Write state signal resolution be KVM chips can identify include keyboard capitalize status signal the first format result data.
Step 1010:According to the first format keyboards status data/mouse state data, calls and send order, judge to send
Whether order has CIPHERING REQUEST, if so, thening follow the steps 1011, otherwise directly executes step 1012;
USB interface 90131/PS2 interfaces 90132 will include that keyboard capitalizes status signal by WISHBONE buses 9014
The first format result data be sent to microcontroller stone 90121, microcontroller stone 90121 by Flash controllers 90122,
Flash90123 and RAM IP 64KB90124, which are called, sends order b to send the first lattice for including keyboard capitalization status signal
Formula result data is to control terminal, and in this step, if it includes CIPHERING REQUEST to send order b, microcontroller stone 90121 will
Include that the first format result data of keyboard capitalization status signal and transmission order b are sent to by WISHBONE buses 9014
Encryption unit 9015.There is CIPHERING REQUEST if sending order b and not including, microcontroller stone 90121 will include keyboard capitalization
The the first format result data and transmission order b of status signal are transmitted directly to data processing list by WISHBONE buses 9014
Member 9011.
Step 1011:Second format keyboards status data/mouse state data are encrypted;
In this step, it is still illustrated for returning to keyboard capitalization status signal, encryption unit 9015 is to including
First format result data of keyboard capitalization status signal are encrypted.Number can be strengthened by the encryption of encryption unit 9015
According to safety.
Step 1012:Second format keyboards status data/mouse state data are resolved into third format result data;
After to including that operation is encrypted in the first format result data of keyboard capitalization status signal, encryption unit
9015 by it is encrypted include keyboard capitalize status signal the first format result data be sent to data processing unit 90111
In compression sub-interface 90114, the compression sub-interface 90114 by include keyboard capitalize status signal the first format result number
According to being compressed, and by it is compressed include that keyboard capitalizes the first format result data of status signal and is sent to Ethernet
MAC90113, the Ethernet MAC90113 by it is compressed include keyboard capitalize status signal the first format result number
According to resolving to third format result data.
Step 1013:Third format result data are sent to the control terminal of peripheral hardware by control interface.
As shown in figure 9, Ethernet MAC90113 are sent out third format result data by Ethernet PHY90112
Control sub-interface 90111 is given, third format result data are sent to control terminal 902, control terminal by control sub-interface 90111
902 adjust the corresponding keyboard states of controlled end A as capitalization according to the keyboard capitalization status signal in third format result data.
It is worth noting that control terminal 902 can also carry out wake operation by KVM chips 901 to controlled end 903, it should be by
It can be server to control end 903.
In another embodiment of the invention, for transmitting screen data by video interface, and it is right in conjunction with attached drawing 9
KVM control methods are described in further detail, and as shown in figure 11, this method may comprise steps of:
Step 1101:Control interface is set, is connected with the control terminal of peripheral hardware by the control interface;
In this step, the control interface of setting is control sub-interface 90111 shown in Fig. 9, the control sub-interface 90111
It can be RJ-45 Ethernet interfaces, be connected with control terminal 902 shown in Fig. 9 by the Ethernet, which can be
The long-range KVM applications clients being installed in PC machine realize a set of or number by the long-range KVM applications clients and KVM chips
Set keyboard, mouse and display control more controlled ends 903 shown in Fig. 9.
Step 1102:At least two controlled interfaces are set, the controlled end phase of at least two controlled interface and peripheral hardware is passed through
Even;
In this step, as shown in figure 9, setting at least two controlled interfaces 9013, including:USB interface 90131, PS2
Interface 90132 and video interface 90133, wherein USB interface 90131 includes again:USB MAC901311 and USB
PHY901312, video interface 90133 include again:VGA HV901331 and VGA RGB901332.
When the mouse/keyboard interface of controlled end is USB interface, pass through USB MAC901311 and USB PHY901312 structures
At USB interface 90131 be connected with the USB interface of control terminal;When the mouse/keyboard interface of controlled end is PS2 interfaces, pass through
PS290132 is connected with the PS2 interfaces of control terminal;In addition, passing through VGA HV901331 or VGA in video interface 90133
RGB901332 is connected with the display interface device of controlled end.
Step 1103:The control data with display screen state that the control terminal of peripheral hardware is sent is received by control interface;
Such as:As shown in figure 9, receiving the modification display screen backgrounds etc. that control terminal 902 is sent by controlling sub-interface 90111
Control data.
Step 1104:Control data with display screen state is resolved into the first format and controls data;
Ethernet MAC90113 in the data processing unit of the resolving of the step mainly as shown in Figure 9 have come
At Ethernet MAC90113 receive the modification display screen that control sub-interface 90111 is sent by Ethernet PHY90112
Control datas such as background, and being parsed to control data, the first format control data after parsing are to allow KVM chips
901 can identify.
Step 1105:Data are controlled according to the first format, call the corresponding display screen command object of display screen state;
Step 1106:Display screen command object is resolved into the second format by video interface and controls data;
In this step, still with control data 2:It is illustrated for modification display screen backgrounds, microcontroller stone 90121 connects
The order c run in RAM IP 64KB90124 is received, when the video interface of controlled end A is VGA HV, order c is passed through
WISHBONE buses 9014 are sent to the VGA HV901331 in video interface 90133, when the Keyboard Control interface of controlled end A is
When VGA RGB, c will be ordered to be sent to by WISHBONE buses 9014 VGA RGB901332, VGA in video interface 90133
HV901331 VGA RGB901332 will order c to resolve to the second format that controlled end A can be identified and control data.
Step 1107:The controlled end of the connected peripheral hardware of data regulation and control is controlled by the second format;
In this step, still with control data 2:It is illustrated for modification display screen backgrounds, controlled end A is receiving the
When two formats control data, display screen backgrounds will be changed, after this, controlled end A will be returned by step 1108 to step 1117
Return modified display screen backgrounds status signal.
Step 1108:The second format display screen status data that the controlled end of peripheral hardware is sent is received by video interface;
Step 1109:Second format display screen status data is resolved into the first format display screen status data, works as video
When interface is VGA HV, step 1110 is executed, when video interface is VGA RGB, executes step 1113;
In step 1108 and step 1109, to return to modified display screen backgrounds status signal, (following processes are referred to as
For:Analog signal 1) for illustrate, the analog signal 1 be this step mentioned in the second format display screen status number
According to.When the video interface of controlled end A is VGA HV, analog signal 1 is sent to VGA HV901331, when the key of controlled end A
When disk control interface is VGA RGB, analog signal 1 is sent to VGA RGB901332, VGA HV901331 or VGA
RGB901332 by analog signal 1 resolve to that KVM chips can identify include analog signal 1 the first format result data.
VGA HV901331/VGA RGB901332 will include the first of analog signal 1 by WISHBONE buses 9014
Format result data are sent to microcontroller stone 90121, microcontroller stone 90121 by Flash controllers 90122,
Flash90123 and RAM IP 64KB90124 call the corresponding transmission lives of the corresponding transmission order d VGA RGB of VGA HV
Enable e with send include analog signal 1 the first format result data to control terminal, in this step, if microcontroller stone
90121 transmissions are that the corresponding transmission order d of VGA HV then follow the steps 1110;If the transmission of microcontroller stone 90121 is
The corresponding transmission order e of VGA RGB then follow the steps 1113.
Step 1110:Remove redundant video stream in the first format display screen status data;
In this step, microcontroller stone 90121 is compiled by WISHBONE buses 9014 by the video that order d includes is sent
Code request and analog signal 1 are sent to the Video coding subelement 90161 in video processing unit 9016, which is mainly
Removal redundant video stream, to improve the efficiency of transmission of display screen state.
Step 1111:The first format display screen status data after removal redundant video stream is encrypted;
It includes CIPHERING REQUEST to order d, then microcontroller stone 90121 is sent out CIPHERING REQUEST by WISHBONE buses 9014
Encryption unit 9015 is given, after the de-redundancy that the reception Video coding of encryption unit 9015 subelement 90161 is sent includes simulation
First format display screen status data of signal 1, and to the first format display screen state comprising analog signal 1 after de-redundancy
Data are encrypted.
Step 1112:Encrypted first format display screen status data is resolved into third format result data, and is held
Row step 1117;
After operation is encrypted in the first format result data comprising analog signal 1 after to de-redundancy, encryption unit
The first format result data comprising analog signal 1 after encrypted de-redundancy are sent to data processing unit by 9015
Compression sub-interface 90114 in 90111, the compression sub-interface 90114 is to the first format for including analog signal 1 after de-redundancy
Result data is compressed, and the first format result data comprising analog signal 1 after compressed de-redundancy are sent to
Ethernet MAC90113, the Ethernet MAC90113 are by the first format result for including analog signal 1 after de-redundancy
Data resolve to third format result data.
Step 1113:A/D video code conversions are carried out to video data in the first format display screen status data, it is aobvious to form transcoding
Display screen status data;
In this step, microcontroller stone 90121 is turned by WISHBONE buses 9014 by the A/D that order e includes is sent
It changes request and analog signal 1 is sent to A/D conversion subunits 90162 in video processing unit 9016, to the analog signal of RGB
1 carries out A/D conversions, forms analog signal 2.
Step 1114:Remove redundant video stream in transcoding display screen status data;
In this step, microcontroller stone 90121 is compiled by WISHBONE buses 9014 by the video that order e includes is sent
Code request is sent to Video coding subelement 90161, is asked according to Video coding, receives what A/D conversion subunits 90162 were sent
Analog signal 2, Video coding subelement 90161 are removed the operation of redundant video stream to analog signal 2.
Step 1115:Transcoding display screen status data after removal redundant video stream is encrypted;
It includes CIPHERING REQUEST to order e, then microcontroller stone 90121 is sent out CIPHERING REQUEST by WISHBONE buses 9014
Encryption unit 9015 is given, after the de-redundancy that the reception Video coding of encryption unit 9015 subelement 90161 is sent includes simulation
First format display screen status data of signal 2, and to the first format display screen state comprising analog signal 2 after de-redundancy
Data are encrypted.
Step 1116:Encrypted transcoding display screen status data is resolved into third format result data;
After operation is encrypted in the first format display screen status data comprising analog signal 2 after to de-redundancy, add
The first format display screen status data comprising analog signal 2 after encrypted de-redundancy is sent to data by close unit 9015
Compression sub-interface 90114 in processing unit 90111, the compression sub-interface 90114 by after de-redundancy comprising analog signal 2
First format display screen status data is compressed, and the first format comprising analog signal 2 of compressed de-redundancy is shown
Display screen status data is sent to Ethernet MAC90113, which includes by compressed de-redundancy
First format display screen status data of analog signal 2 resolves to third format result data.
Step 1117:Third format result data are sent to the control terminal of peripheral hardware by control interface.
As shown in figure 9, Ethernet MAC90113 are sent out third format result data by Ethernet PHY90112
Control sub-interface 90111 is given, third format result data are sent to control terminal 902, control terminal by control sub-interface 90111
902 adjust the corresponding display screen backgrounds states of controlled end A according to the analog signal 2 in third format result data.
According to said program, various embodiments of the present invention at least have the advantages that:
1. can determine control data by the data processing unit in KVM chips, and control data is resolved to first
Format controls data, and the microcontroller in KVM chips can control data, invocation target order according to the first format;And pass through
Controlled interface in KVM chips will resolve to the second format control data by command object, to regulate and control the controlled of connected peripheral hardware
End, and the command object that the KVM chips that the present invention program provides can call, including:The key assignments of keyboard, mouse action order and
Any one or more in display state order, that is to say, that by KVM chips can handle keyboard operation,
The operation of mouse can be handled, can be realized with the operation of processing display and be uniformly controlled keyboard, display and mouse letter
Breath.
2. in embodiments of the present invention, since keyboard, mouse and display screen control information by same in KVM chips
Microcontroller is completed, and multiple microcontrollers need not be arranged on circuit board, is effectively reduced the small and weight of circuit board, is increased
The integrated level of circuit board is added.
3. including at least two controlled interfaces, at least two controlled interface in KVM chips provided in an embodiment of the present invention
Including:Any one or more in USB interface, PS2 interfaces and video interface, can not only realize controlled with multiple peripheral hardwares
End is connected, and it is capable of providing multiple interfaces type, to meet the demand of the controlled end of peripheral hardware, increases the practicality of KVM chips
Property.
4. since control terminal can search KVM chips by IP address, and establishing the connection with KVM chips, then realize
Control terminal remote control KVM chips, are effectively improved the application range of KVM chips.
5. including encryption unit in KVM chips provided in an embodiment of the present invention, which can be to the letter of transmission
It number is encrypted, avoids transmission process information stolen, be effectively improved the safety of transmission signal.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation
Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or equipment including a series of elements includes not only those elements,
But also include other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence " including a 〃 ", is not arranged
Except there is also other identical factors in the process, method, article or apparatus that includes the element.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer-readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light
In the various media that can store program code such as disk.
Finally, it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.