Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides a kind of blade server KVM device, this installation cost is low, simple in structure, realize that simply with low cost, the chip of use all is extremely common IC, realized simultaneously multiple KVM control mode, the user can write code according to understanding oneself.The mode that in the BMC of present way to manage, does not have the OSD menu.
In order to realize the foregoing invention purpose, the present invention takes following technical scheme:
A kind of blade server KVM device, described device comprises KM system and VGA system, CPU1 receives the switching command of described device, simultaneously KM system and VGA system are switched on the same calculation blade, described KM system carries out local and remote control to keyboard and mouse, and described VGA system carries out local and remote control to VGA.
Described KM system comprises calculation blade KM subsystem, middle plate KM subsystem and administration module KM subsystem.
Described calculation blade KM subsystem comprises single-chip microcomputer (MCU), RS485 conversion chip, KVM button and KVM pilot lamp; Described single-chip microcomputer utilizes the GPIO stitch to connect PS2 keyboard and the mouse signal line of mainboard KVM circuit, described single-chip microprocessor MCU possesses the RS232 bus interface, utilize the RS485 conversion chip to convert the RS232 bus to the RS485 bus, then be connected to the RS485 bus of middle plate (Midplane), single-chip microcomputer relies on the PS2 data that produce or receive RS232 bus and RS485 bus to transmit, KVM button and KVM pilot lamp are positioned on the front panel of calculation blade, respectively by the CPU1 on the plate connection management module in the signal wire process separately.
Described middle plate KM subsystem will and form the form of shared bus (share bus) from the RS485 bus of each calculation blade from the RS485 bus of administration module, KVM button signal line and KVM pilot lamp signal wire from each calculation blade are connected on the CPU1 of administration module.
Described administration module KM subsystem comprises CPU1, and its GPIO pin connects KVM button signal line and the KVM pilot lamp signal wire from each calculation blade; CPU1 has the RS232 interface, and by the RS485 conversion chip RS232 bus is converted to the RS485 bus, connect to form the form of shared bus with the RS485 bus of middle plate, CPU1 utilizes 4 GPIO pin to simulate the PS2 signal wire, then be divided into two-way, wherein one road PS2 signal wire is connected to the PS2 connector through switch chip, inserts PS2 keyboard and mouse at the PS2 connector, can control the KM of calculation blade, realize local KM function; Another road PS2 signal wire is connected to CPU2, realizes communication through the control terminal of Ethernet, RJ45 connector and Ethernet and far-end successively; Described PS2 signal wire comprises the clock cable of keyboard, the data signal line of keyboard, the clock cable of mouse and the data signal line of mouse.
Described VGA system comprises calculation blade VGA subsystem, middle plate VGA subsystem and administration module VGA subsystem.
Described calculation blade VGA subsystem is the N:1 MUX of the VGA signal leading on each calculation blade to the middle plate; Described middle plate VGA subsystem is provided with the N:1 MUX at middle plate, and CPU1 controls described N:1 MUX by iic bus; Described administration module VGA subsystem is introduce OSD video synthesis chip from the rgb signal among the VGA signal RGBHV of middle plate, H signal and V signal are introduced the capable field of 2:1 MUX, the H signal is also introduced administration module CPU1 simultaneously, administration module CPU1 is by gathering the H signal of original VGA, utilize phase-locked loop pll to produce OSD menu needed row signal H_ARM and field signal V_ARM, then be introduced into the capable field of 2:1 MUX, administration module CPU1 controls the capable field of 2:1 MUX at H signal and V signal by the EN_HV signal wire, select one tunnel output between H_ARM signal and the V_ARM signal, the row field signal of output is respectively H_OUT and V_OUT, H_OUT and V_OUT are introduced in respectively the OSD generating chip, CPU2 and local VGA connector, and H_OUT also is introduced in OSD video synthesis chip, synthetic rgb signal one tunnel input CPU2 that OSD video synthesis chip generates, for long-range KVM provides the VGA data, another pass enters local VGA connector, in conjunction with H_OUT and V_OUT, form local VGA and show needed signal, external-connection displayer shows on local VGA connector, realizes local VGA.
Compared with prior art, beneficial effect of the present invention is: the invention provides a kind of blade server KVM device, this installation cost is low, simple in structure, realize that simply with low cost, the chip of use all is extremely common IC, realized simultaneously multiple KVM control mode, the user can write code according to understanding oneself.In the BMC of present way to manage, do not have the mode of OSD menu, and relate to the problems such as intellectual property fees.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
The invention provides a kind of blade server KVM device, described device comprises KM system and VGA system, CPU1 receives the switching command of described device, simultaneously KM system and VGA system are switched on the same calculation blade, described KM system carries out local and remote control to keyboard and mouse, and described VGA system carries out local and remote control to VGA.
Described KM system comprises calculation blade KM subsystem, middle plate KM subsystem and administration module KM subsystem.
Blade server has a plurality of calculation blades, and the design of each calculation blade is the same, and Fig. 2 has only illustrated 2 calculation blades, and namely Blade1 (101) and BladeN (N-101) have omitted other calculation blades.N represents N calculation blade, and this N calculation blade all is the same.Regarding to down the identical part of calculation blade only takes Blade1 (101) to set forth for example.
Described calculation blade KM subsystem is comprised of single-chip microprocessor MCU (107), RS485 conversion chip (110), KVM button (105) and KVM pilot lamp (106).Single-chip microcomputer (107) utilizes the GPIO stitch to connect PS2 keyboard and the mouse signal line (108) of mainboard KVM circuit (112).Used single-chip microcomputer (107) need to possess RS232 bus (109) interface, utilize RS485 conversion chip (110) that RS232 bus (109) is converted to RS485 bus (111), then be connected to the RS485 bus (111) of middle plate (Midplane) (201).Single-chip microcomputer (107) the PS2 data that produce or receive rely on RS232 bus (109) and RS485 bus (111) to transmit.KVM button (105) and KVM pilot lamp (106) are positioned on the front panel of calculation blade, pass through respectively the CPU1 (302) of plate (201) connection management module (301) in KVM_Request_1 signal wire (103) and KVM_LED_1 signal wire (104) process.
Described middle plate KM subsystem is forming share bus(shared bus from the RS485 bus of each calculation blade with from the RS485 bus of administration module) form (111).KVM button signal line (such as KVM_Request_1 signal wire (103), KVM_Request_N signal wire (N-103)) and pilot lamp signal wire (such as KVM_LED_1 signal wire (104), KVM_JED_N signal wire (N-104)) from each calculation blade are connected on the CPU1 (302) of administration module (301).
Described administration module KM subsystem has a CPU1 (302) at administration module (301), and its GPIO pin connects KVM button signal line and the KVM pilot lamp signal wire from each calculation blade.CPU1 (302) should have the RS232 interface, and by RS485 conversion chip (304) RS232 bus (303) is converted to RS485 bus (111), and linking together with the RS485 bus (111) of middle plate (201) forms share bus(shared bus) form.CPU1 (302) utilizes 4 GPIO pin to simulate PS2 signal wire (clock cable of the clock cable of keyboard, the data signal line of keyboard, mouse, the data signal line of mouse) (324), then is divided into two-way.Wherein one road PS2 signal wire (324) is connected to PS2 connector (PS2 CONN) (325) through switch chip (327).Insert PS2 keyboard and mouse at PS2 connector (325), just can control the KM of calculation blade, realize local KM function.Another road PS2 signal wire (324) is connected to CPU2 (320), passes through successively Ethernet (321), RJ45 connector (322) and Ethernet (328) and realizes communication with the control terminal (329) of far-end.The effect on this road is to realize long-range KM function.
The principle of work of KM system is as follows: the single-chip microcomputer on the calculation blade (107) is as the receiver transmitter of PS2 simulator and PS2 data, single-chip microcomputer (107) links to each other with the PS2 data line of main board system and serves as the PS2 simulator on the one hand, namely by simulation realizes virtual PS2 keyboard and a mouse to mcu programming, follow the PS2 agreement, realized transmission and the execution of PS2 data and order between single-chip microcomputer (107) and mainboard KVM circuit (112); Single-chip microcomputer (107) serves as the receiver transmitter of PS2 data on the other hand, its RS232 bus (109) is converted to RS485 bus (111), by these two kinds of buses the PS2 data are carried out sending and receiving, the mutual communication of PS2 data between the CPU1 on realization and the administration module.The CPU1 of administration module also serves as receiver transmitter and the PS2 simulator of PS2 data.CPU1 is by carrying out reception and the transmission of PS2 data between RS232 and RS485 bus and the calculation blade.CPU1 serves as again PS2 main equipment simulator, its GPIO signal wire is modeled to the PS2 signal wire carries out the bifurcated connection, and an end connects the PS2 connector, is inserted with PS2 keyboard and mouse on the PS2 connector, realizes local KM function; One end connects CPU2, and the PS2 data of mutual transmission are provided for long-range KM.
Described VGA system comprises calculation blade VGA subsystem, middle plate VGA subsystem and administration module VGA subsystem; Described calculation blade VGA subsystem is that the VGA signal on each calculation blade (such as 113, N-113) is incorporated into N:1 MUX (202) on the middle plate (201).
Described middle plate VGA subsystem is the MUX (202) that has designed a N:1 at middle plate, and effect is selecting any one road VGA signal RGBHV(317 from the VGA signal RGBHV of N calculation blade) export to administration module (301).CPU1 (302) realizes that by iic bus (309) control MUX (202) N selects 1 function.
Described administration module VGA subsystem is from the VGA signal RGBHV(317 of middle plate) in rgb signal (310) introduce OSD video synthesis chip (318), H signal (308) and V signal (311) are introduced the row MUX (312) of 2:1, and H signal (308) is also introduced CPU1 (302) simultaneously.CPU1 (302) is by gathering the H signal (308) of original VGA, utilize PLL(Phase Locked Loop phaselocked loop) frequency doubling technology generation OSD menu needed row signal H_ARM (307), field signal V_ARM (306), then be introduced into a row MUX (312).CPU1 (302) by EN_HV signal wire (a 305) control row MUX (312) at H(308), V(311) select one tunnel output between signal and H_ARM (307), V_ARM (306) signal, the row field signal of output is respectively H_OUT (314), V_OUT(313).H_OUT (314), V_OUT(313) be introduced in respectively OSD generating chip (315), CPU2 (320) and local VGA connector (VGACONN) (323), and H_OUT (314) also is introduced in OSD video synthesis chip (318).Synthetic rgb signal (319) one tunnel input CPU2 (320) that OSD video synthesis chip (318) generates, for long-range KVM provides the VGA data, another pass enters local VGA connector (323), in conjunction with H_OUT (314), V_OUT(313), form local VGA and show needed signal, show at the upper external-connection displayer (330) of local VGA connector (323), realize local VGA.
The principle of work of VGA system is that CPU1 (302) selects one road VGA signal to export to administration module in the VGA of a plurality of calculation blades signal by iic bus (309) control MUX (202).A pass entered local VGA connector after this VGA signal generated combiner circuit through OSD, can carry out local VGA demonstration by external VGA display, realized local VGA function; One pass enters CPU2, for long-range VGA Fumction display provides data.
Described long-range KM function and long-range VGA function synthesize long-range KVM function.CPU2 (320) is from CPU1(302) the PS2 data (324) that transmit and synthetic RGB data (319), H_OUT (314), V_OUT(313) carry out encoding and decoding, control terminal (329) by Ethernet and far-end is realized communication, control terminal (329) carries out encoding and decoding and can simulate the calculation blade display interface in control terminal (329) by means of the client-side program of installing the KVM data, and realizes the control of keyboard and mouse.
Osd circuit design realizes principle: the activation of osd function is inputted predefined order (for example ' Ctrl+F2 ' Macintosh) by means of local PS2 keyboard and mouse (331) and is realized.After receiving the hot key order that excites osd function as CPU1 (302), gather the H signal (308) of original VGA, utilize PLL(Phase Locked Loop phaselocked loop) frequency doubling technology generation OSD needed row signal H_ARM (307), field signal V_ARM (306).Meanwhile, CPU1 (302) control EN_HV signal wire (305) makes a row MUX (312) select row signal H_ARM (307), field signal V_ARM (306) as H_OUT (314), V_OUT(313).CPU1 (302) utilizes iic bus (309) control OSD generating chip (315) at H_OUT (314), V_OUT(313) blanking interval generation OSD VGA signal (316).OSD video synthesis chip (318) utilizes the sequential of H_OUT (314) OSD VGA signal (316) and the synthetic VGA signal (319) with OSD menu of rgb signal (310), and in conjunction with H_OUT (314), V_OUT(313) signal exports to the display (330) on the local VGA connector (323), realizes local VGA function.
When osd function did not activate, CPU1 (302) control EN_HV signal wire (305) made a row MUX (312) select H (308), V (311) as H_OUT (314), V_OUT(313).CPU1 (302) can send the order that generates OSD VGA signal (316) for OSD generating chip (315) by iic bus (309).OSD video synthesis chip (318) does not just simply add the rgb signal that transmits from calculation blade (310) output of any conversion, one the tunnel is directly passed to CPU2 (320), and in conjunction with transmitting H_OUT (314), the V_OUT(313 that does not add any conversion from calculation blade) signal realizes long-range VGA function, another road export on the local VGA connector (323) display (330) and in conjunction with transmitting H_OUT (314), the V_OUT(313 that does not add any conversion from calculation blade) signal realizes local VGA function.
KM system and VGA systematic collaboration changing method are, no matter be to adopt KVM button switching mode, OSD menu switching mode or the KVM switching mode of long-range KVM interface control, when the RS485 bus of plate and certain calculation blade are set up the KM data link in CPU1 controls, select the VGA signal of this calculation blade of output to set up the VGA data link by its iic bus (309) control MUX, what guarantee KM circuit and VGA circuit UNICOM is same calculation blade.KM data link and VGA data just can be carried out local KVM or long-range KVM function to this calculation blade after setting up.
KM system and VGA systematic collaboration switching mode comprise:
Mode 1:KVM button switching mode;
Mode 2:OSD menu switching mode;
Mode 3: the KVM switching mode of long-range KVM interface control.
The detailed process of described mode 1 is as follows:
Step 1: in a plurality of calculation blades, determine to need to switch the calculation blade that uses KVM;
Step 2: press the KVM button on this calculation blade, send the KVM handoff request to administration module; The KVM button is positioned on the front panel of each calculation blade, and the KVM button of each calculation blade respectively has a signal line, is connected to by middle plate on the CPU1 stitch of administration module.Press the KVM button on certain calculation blade, connect signal wire level can change, the CPU1 on the administration module detects the variation of level and just thinks that this calculation blade has sent the handoff request of KVM;
Step 3: after administration module is received the KVM handoff request, analyze the operating position of present whole blade system KVM, then judge;
Step 4: if KVM is used administration module can make the judgement of not switching by other calculation blades, so control the KVM pilot lamp flicker of this calculation blade, showing that the KVM function is being used by other calculation blades also can't switch, the a period of times such as needs attempt again, namely are recycled to step 1;
The KVM pilot lamp is positioned on the front panel of each calculation blade, and the KVM pilot lamp of each calculation blade respectively has a signal line, is connected to by middle plate on the CPU1 stitch of administration module.CPU1 changes to control the state of KVM pilot lamp by the level of control KVM pilot lamp, show the just busy or idle condition of KVM function.
The KVM circuit system design of each calculation blade is divided into the design of KM circuit system and the design of VGA circuit system.
If KVM is idle, administration module just switches to the KVM function on this calculation blade, controls simultaneously the KVM pilot lamp Chang Liang of this calculation blade.
Step 5: if the KVM handover success just can have been carried out local and remote KVM sequence of operations.
In the mode 2, OSD menu switching mode implementation method:
When local KVM work, input predefined order (for example ' Ctrl+F2 ' Macintosh) by means of local PS2 keyboard and mouse (331) and activate osd function.CPU1 (302) programmes to OSD generating chip (315) by iic bus (309) and realizes the OSD menu, the option that provides calculation blade to select, press local PS2 keyboard<↑,<↓〉or<PageUp,<PageDown〉behind the key, need to select the blade of switching, and then press<carriage return key, so CPU1 (302) can receive the order of switching.Supposing selected is N calculation blade, and the RS485 bus (111) of plate connected with N calculation blade during CPU1 (302) controlled after receiving switching command, set up the KM data link; Pass through simultaneously the VGA signal of N calculation blade of iic bus (309) control MUX (202) selection as RGBHV signal (317), set up the VGA data link; KM data link and VGA data just can be carried out local KVM to N calculation blade after setting up.
In the mode 3, the KVM switching mode of long-range KVM interface control is as follows:
The control terminal of far-end (329) can show the calculation blade tabulation that all detect by means of the client-side program of installing, and clicks any one calculation blade, and long-range KVM will switch on that calculation blade.Supposing selected is N calculation blade, and behind ' click ' this calculation blade, the control terminal of far-end (329) can be issued CPU2 (320) to this order by Ethernet, and then issues CPU1 (302) by the PS2 agreement.The RS485 bus (111) of plate connects with N calculation blade in CPU1 (302) control, sets up the KM data link; Pass through simultaneously the VGA signal of N calculation blade of iic bus (309) control MUX (202) selection as RGBHV signal (317), set up the VGA data link; KM data link and VGA data just can be carried out long-range KVM to N calculation blade after setting up.
The single-chip microcomputer (107) that the present invention adopts is the AT89S52 of Atmel company, RS485 conversion chip (110) and (304) are the SP3072E of SIPEX company, CPU1 (302) and CPU2 (320) are the LPC2132 of NXP company, the capable field of 2:1 MUX (312) is the CD4053 of Fairchild company, OSD generating chip (315) is the MA102CA of MAS company, OSD video synthesis chip (318) is the TDA4886 of Philips company, and switch chip (327) is the MC74LVXT4066DTR2 of ON Semiconductor company.
Should be noted that at last: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit, although with reference to above-described embodiment the present invention is had been described in detail, those of ordinary skill in the field are to be understood that: still can make amendment or be equal to replacement the specific embodiment of the present invention, and do not break away from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of the claim scope of the present invention.