JP2013033314A - Kvm switcher, and method of maintaining connection with usb input device during switching - Google Patents
Kvm switcher, and method of maintaining connection with usb input device during switching Download PDFInfo
- Publication number
- JP2013033314A JP2013033314A JP2011167994A JP2011167994A JP2013033314A JP 2013033314 A JP2013033314 A JP 2013033314A JP 2011167994 A JP2011167994 A JP 2011167994A JP 2011167994 A JP2011167994 A JP 2011167994A JP 2013033314 A JP2013033314 A JP 2013033314A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- computer
- switching
- input device
- connection
- 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.)
- Granted
Links
Images
Abstract
Description
キーボードとマウスから成る一組のUSB対応の入力装置(以下、「USB入力装置」)と複数のコンピュータとの間に配置され、USB入力装置と一台のコンピュータとを操作可能なように接続させるKVM切替器、及びその結果操作対象から外れたコンピュータとUSB入力装置との接続を維持し続ける方法に関するものである。 A USB-compatible input device (hereinafter referred to as “USB input device”) including a keyboard and a mouse is arranged between a plurality of computers and the USB input device and one computer are connected so as to be operable. The present invention relates to a KVM switching device and a method for continuing to maintain a connection between a computer that is excluded from an operation target and a USB input device.
KVM(Keyboard/Video/Mouse)切替器、すなわち、2台以上のコンピュータを接続し、これらのコンピュータで共用される一組のコンソールデバイス(ディスプレイ及びUSB入力装置であるキーボードとマウス)を2台以上のコンピュータのいずれかに切替えて用いる技術は公知である。ここで、USB(Universal Serial Bus)とは、通信アーキテクチャの一種であり、このアーキテクチャによりコンピュータは種々のデバイスを簡単なケーブルを使用して相互接続する機能を有することができる。USB入力装置を、電源が入った状態のコンピュータに接続(ホットプラグ)したり、コンピュータから外したり(ホットアンプラグ)することができる。
ところが、コンピュータの電源を入れたままUSB入力装置を切替えた際、次のような問題があった。
先ず、非接続状態から接続状態に変化したコンピュータの場合、このコンピュータではUSB入力装置の認識動作が行われ、当該装置の再度の初期化処理を始める。一方、接続状態から非接続状態に変化したコンピュータではUSBバスの切り離しが行われる。どちらも上記の認識・切り離しに伴う動作のために数秒から数十秒の時間を要し、この間コンピュータの操作ができなくなる、という問題である。特に、接続されたUSB入力装置が低速な応答をする場合、コンピュータ側はその都度待たなくてはならない。
以下に挙げる特許文献1に記載の発明は、このような切替時に発生する問題を解決することを目的としている。
KVM (Keyboard / Video / Mouse) switch, that is, two or more computers connected to each other, and a pair of console devices (display and USB input device keyboard and mouse) shared by two or more computers A technique for switching to any one of the computers is known. Here, USB (Universal Serial Bus) is a kind of communication architecture, and this architecture allows a computer to have a function of interconnecting various devices using a simple cable. The USB input device can be connected to a computer that is turned on (hot plugged) or disconnected from the computer (hot unplugged).
However, when the USB input device is switched while the computer is turned on, there are the following problems.
First, in the case of a computer that has changed from a non-connected state to a connected state, the computer performs a recognition operation for the USB input device and starts re-initialization processing of the device. On the other hand, in a computer that has changed from a connected state to a disconnected state, the USB bus is disconnected. In both cases, it takes several seconds to several tens of seconds for the operation associated with the above recognition / separation, and the computer cannot be operated during this time. In particular, when the connected USB input device responds at a low speed, the computer side must wait each time.
The invention described in
特許文献1に記載された発明「コンソールデバイス及び周辺デバイスの信号スイッチ」は、切替器内部のCPUにコンピュータのエミュレーション機能を持たせ、それによって複数のコンピュータに対するリクエストの制御と振り分けを行い、その結果スイッチ切替時の周辺機器へのデータフローをスムーズに進行させることを狙いとしている。
The invention “signal switch of console device and peripheral device” described in
念のため、この従来の信号スイッチの主な構成を図5に従い簡単に説明する。
図5の信号スイッチ100を利用して複数のコンピュータ101(101A,101B)を、キーボード102及びマウス103によって制御することができる。
信号スイッチ100はCPU104を備えている。USBハブスイッチモジュール105をCPU104に接続し、第1出力ポート106を通して複数のコンピュータ101と通信が可能となるように構成する。CPU104はメモリを備え、このメモリに管理プログラムを記憶して信号スイッチ100の動作を管理する。信号制御用のUSBデバイス制御モジュール107はCPU104及びUSBハブスイッチモジュール105に接続される。USBデバイス制御モジュール107はUSBデバイスチップを備え、これらのチップを使用してキーボード102及びマウス103のようなコンソールデバイスをエミュレートして第1出力ポート106に接続する。例えば、コンソールデバイスをコンピュータ101Aから異なるコンピュータ101Bへ切替える場合において、コンソールデバイス102,103をエミュレートさせる。その結果、コンピュータ101Aとそれに接続される周辺機器との間の全てのチャネルをそのまま維持し、そのようなチャネルのデータフローが妨害されず、そしてコンピュータ101Aは実際にはエミュレートされているコンソールデバイスが依然として実際に接続されているかのように処理を続行することができる。これらのデバイスチップはCPU104により制御される。
USB主制御モジュール108は、第2出力ポート109を通してコンソールデバイス102,103と通信するように構成され、CPU104に接続される。
つまりこの発明では、複数のコンピュータからの周辺機器に対するリクエストの制御と振り分けを、切替器内部のCPUにエミュレートさせている点に特徴がある。
As a precaution, the main configuration of this conventional signal switch will be briefly described with reference to FIG.
A plurality of computers 101 (101A, 101B) can be controlled by a
The
The USB
In other words, the present invention is characterized in that control and distribution of requests to peripheral devices from a plurality of computers are emulated by the CPU in the switch.
特許文献1の発明は、エミュレーションによって切替時に発生する問題を解決しようとしている。しかしながらこの発明では、接続するUSB入力装置が、専用のドライバが必要な多機能マウスや多機能キーボードの場合、CPU104のプログラムが想定していない拡張された機能をコンピュータへ伝えることができないという問題がある。
この問題は、CPUを介さずにUSB入力装置からの入力は、直接コンピュータ側のUSBハブに送信されるように構成することで回避できる。
本発明は、かかる観点から、切替発生時に必要な処理を、迅速かつ円滑に実行するとともに、キーボードやマウスの拡張機能にも柔軟に対応できるようにすることを目的とする。
The invention of
This problem can be avoided by configuring so that the input from the USB input device is directly transmitted to the USB hub on the computer side without going through the CPU.
In view of this, an object of the present invention is to quickly and smoothly execute processing necessary when switching occurs, and to flexibly cope with extended functions of a keyboard and a mouse.
上記の目的を達成するために、請求項1に係る発明は、
複数のコンピュータと、これらのコンピュータに共用されるUSB入力装置との間に配置され、前記複数のコンピュータのうち操作対象となる1台のコンピュータと前記入力装置との接続を切替えるKVM切替器であって、
該KVM切替器は切替スイッチ部と接続維持部と記憶部を備え、
前記切替スイッチ部は、
ユーザによって切替のために操作される切替操作ボタンと、共用されるUSB入力装置の信号線に接続する選択スイッチと、各コンピュータに1対1に対応するUSBハブと、各コンピュータに1対1に対応し前記USBハブの一のポートに接続するMPU(Micro Processing Unit)とを含み、
前記接続維持部は、
前記USB入力装置と接続されている一のコンピュータと前記USB入力装置との間で送受信されるパケットを常時監視するUSB監視モジュールと、
前記パケットに含まれる所定の初期化情報を前記記憶部に保持させたり、前記記憶部から初期化情報を取り出したりする記憶部制御モジュールと、
前記の各コンピュータからの問い合わせに応答する自動応答モジュールと、
切替操作の発生により前記USB入力装置との接続対象となったコンピュータの初期化情報を前記記憶部から取り出して前記USB入力装置を再初期化させる一方、非接続となったコンピュータに対して前記自動応答モジュールにNAK応答をさせる接続維持制御モジュールとを含み、
前記複数のコンピュータのいずれか一に対応するMPUは、前記切替操作ボタン及び前記選択スイッチと接続し、前記切替操作ボタンによる切替操作を検知すると前記接続維持部の動作を制御するとともに前記選択スイッチを切替えることを特徴とする。
In order to achieve the above object, the invention according to
A KVM switching device that is arranged between a plurality of computers and a USB input device shared by these computers, and switches connection between one of the plurality of computers to be operated and the input device. And
The KVM switching device includes a changeover switch unit, a connection maintaining unit, and a storage unit.
The changeover switch part is
A switching operation button operated for switching by a user, a selection switch connected to a signal line of a shared USB input device, a USB hub corresponding to each computer one-to-one, and one-to-one for each computer And an MPU (Micro Processing Unit) connected to one port of the USB hub,
The connection maintaining unit is
A USB monitoring module for constantly monitoring packets transmitted and received between the USB input device and a computer connected to the USB input device;
A storage unit control module for holding predetermined initialization information included in the packet in the storage unit, and extracting initialization information from the storage unit;
An automatic response module for responding to inquiries from each of the computers;
The initialization information of the computer to be connected to the USB input device due to the occurrence of the switching operation is taken out of the storage unit and the USB input device is reinitialized. A connection maintenance control module that causes the response module to make a NAK response;
The MPU corresponding to any one of the plurality of computers is connected to the switching operation button and the selection switch, and when the switching operation by the switching operation button is detected, controls the operation of the connection maintaining unit and controls the selection switch. It is characterized by switching.
これにより、非接続から接続状態となった選択側コンピュータは実際のUSB入力装置との通信によって初期化情報を取得する代わりに、一時保存してあった過去の初期化情報を読み出してUSB入力装置を再初期化するだけでよいので短時間に再初期化が終了する。一方、接続から非接続状態となった非選択側コンピュータにはNAK応答が自動的に返され、切り離しの動作を要しない。このように、選択側コンピュータの操作性を損なうことなく、非選択側コンピュータの動作にも影響することなく、迅速かつ円滑に切替が行われる。 As a result, the selection side computer that has changed from the non-connected state to the USB input device by reading past initialization information temporarily stored instead of acquiring the initialization information through communication with the actual USB input device. Since it is only necessary to reinitialize, reinitialization is completed in a short time. On the other hand, the NAK response is automatically returned to the non-selected computer that has been changed from the connected state to the disconnected state, and no disconnection operation is required. In this way, the switching can be performed quickly and smoothly without impairing the operability of the selection-side computer and without affecting the operation of the non-selection-side computer.
「USB入力装置」は、下記の実施形態では、USB接続のキーボード(以下、「USBキーボード」)とUSB接続のマウス(以下、「USBマウス」)が該当する。
「記憶部」として、下記の実施形態では読み込み・書き込みが可能なスタティックRAM(Random Access Memory)が用いられている。
「切替操作ボタン」は、ユーザが手動で切替操作ができる手段であれば、ボタンでもスイッチでも何でもよい。MPUはこの切替操作ボタンが操作されたことを検出すると選択スイッチを切替える。
「信号線」とは、USBバスの信号線である。USBバスには、他に電源線も含まれる。
「選択スイッチ」は、MPUの制御によって切替わるソフトウェアスイッチであり、下記の実施形態では、USBキーボード用選択スイッチとUSBマウス用選択スイッチとがある。
「初期化情報」とは、コンピュータに接続されているUSB入力装置に割り付けられているUSBアドレスや設定項目(configuration、以下「コンフィグ情報」)であり、コンピュータの最初の認識時に設定され、切替時の再初期化の際に参照され使用される。
In the following embodiment, the “USB input device” corresponds to a USB-connected keyboard (hereinafter “USB keyboard”) and a USB-connected mouse (hereinafter “USB mouse”).
In the following embodiment, a static RAM (Random Access Memory) that can be read and written is used as the “storage unit”.
The “switching operation button” may be any button or switch as long as the user can manually perform the switching operation. When the MPU detects that this switching operation button has been operated, the MPU switches the selection switch.
A “signal line” is a signal line of a USB bus. The USB bus also includes a power line.
The “selection switch” is a software switch that is switched under the control of the MPU. In the following embodiment, there are a USB keyboard selection switch and a USB mouse selection switch.
“Initialization information” is a USB address assigned to a USB input device connected to the computer or a setting item (configuration, hereinafter “configuration information”), which is set at the first recognition of the computer and is switched. It is referenced and used during reinitialization.
前記接続維持部は、FPGA(Field−Programmable Gate Array)で構成されることが好ましい。FPGAは、製造後に構成の設定が可能な集積回路なので、開発時の改修が容易であり、出荷後にも更新が可能であるといった利点があるからである。
前記MPUは、所定の入力装置の操作、あるいは該MPUと1対1に対応しているコンピュータに実装されている専用プログラム及び所定の入力装置の操作の組合せによって、切替操作が発生したとみなしてもよい。これは、いわゆるホットキー機能であり、ユーザによって切替操作ボタンが操作されたのと同じ効果を生ずる。
It is preferable that the connection maintaining unit is configured with an FPGA (Field-Programmable Gate Array). This is because the FPGA is an integrated circuit whose configuration can be set after manufacture, and therefore has an advantage that it can be easily modified at the time of development and can be updated after shipment.
The MPU considers that a switching operation has occurred due to an operation of a predetermined input device or a combination of a dedicated program installed in a computer corresponding to the MPU and a predetermined input device. Also good. This is a so-called hot key function and produces the same effect as when the switching operation button is operated by the user.
上記の目的を達成するために、請求項4に係る方法の発明は、
請求項1に記載のKVM切替器を利用して、コンピュータとUSB入力装置との切替発生により操作対象から外れたコンピュータとUSB入力装置との接続を維持し続けることを特徴とする。
In order to achieve the above object, a method invention according to
By using the KVM switching device according to
切替時の動作が迅速かつ円滑に行われるので、選択側コンピュータの操作性は損なわれず、非選択側コンピュータの動作にも影響がでない。 Since the operation at the time of switching is performed quickly and smoothly, the operability of the selection side computer is not impaired, and the operation of the non-selection side computer is not affected.
以下、本発明のKVM切替器の一実施の形態を、図面を参照しながら説明する。
図1に示すようにKVM切替器1は、USBバス2を介して1個のUSBキーボード3と、USBバス4を介して1個のUSBマウス5と接続している。
KVM切替器1は、2台のコンピュータ6A,6B(以下、任意のいずれかのコンピュータを指すとき、代表する番号として「6」と表記する)とそれぞれUSBバス7A,7Bを介して接続している。
KVM切替器1は、切替操作ボタン8と2個のLED9も備える。
LED9Aは、切替操作ボタン8によってコンピュータ6Aが選択されたときに点灯し、LED9Bは、コンピュータ6Bが選択されたときに点灯する。
Hereinafter, an embodiment of a KVM switching device of the present invention will be described with reference to the drawings.
As shown in FIG. 1, the
The
The
The LED 9A is lit when the computer 6A is selected by the switching
KVM切替器1は、ユーザによる切替操作ボタン8の切替操作に応じて、USBキーボード3またはUSBマウス5に接続されるコンピュータを、コンピュータ6Aとコンピュータ6Bのいずれかから選択し、選択したコンピュータに接続を切り換えることによって各1個のUSBキーボード3とUSBマウス5を共用させる。
コンピュータ6AがKVM切替器1によって選択されているならば、USBキーボード3から入力されたデータ(a)や,USBマウス5から入力されたデータ(b)は、そのままコンピュータ6Aに入力される(矢印はデータの流れを表わす)。したがって、USBキーボード3やUSBマウス5が、選択されたコンピュータ6Aの入力装置としてコンピュータ6Aを操作することができる。
The
If the computer 6A is selected by the
図2を参照しながら、KVM切替器1の機能ブロックについて説明する。KVM切替器1は、切替スイッチ部10と接続維持部11と記憶部12を備えている。
切替スイッチ部10は、コンピュータ6とUSBキーボード3とUSBマウス5とに接続している。この切替スイッチ部10は、単独でKVM切替器1としての最小限の機能を果たすことができる。しかし、円滑で効率の良い切替を実現するために、本発明のKVM切替器1は接続維持部11を備えることとしたのであるが、このことについて以下に説明する。なお、接続維持部11は切替スイッチ部10及び記憶部12と接続している。
A functional block of the
The
切替スイッチ部10は、切替操作ボタン8およびLED9を含むとともに、コンピュータ6A,6Bのそれぞれに対応するUSBハブ13A,13BとUSBキーボード用選択スイッチ14と、USBマウス用選択スイッチ15を含む。
各USBハブ13の一のポートには1個のMPU16(16A,16B)が接続されている。本発明で使用するMPUは、USBポートに接続するだけで利用可能となるUSB対応マイコンであり、MPU16は、コンピュータ1台につき1個接続し、擬似キーボード・マウスとして動作する。つまり、コンピュータ6がUSBキーボード3やUSBマウス5と非選択の状態のとき、コンピュータ起動時におけるキーボードやマウスの接続確認動作でエラーを発生させないために、MPU16は擬似キーボード・マウスとして動作する。
The
One MPU 16 (16A, 16B) is connected to one port of each USB hub 13. The MPU used in the present invention is a USB-compatible microcomputer that can be used simply by connecting to a USB port. One MPU 16 is connected to one computer and operates as a pseudo keyboard / mouse. That is, when the computer 6 is in a non-selected state with the
図2ではUSBキーボード用選択スイッチ14とUSBマウス用選択スイッチ15によってコンピュータ6Aが選択されている。そのため、USBキーボード3からデータが入力されると、USBバス2の信号線、USBキーボード用選択スイッチ14、USBハブ13AのポートP1、USBバス7Aの信号線を介して、USBキーボード3から入力されたのと同じデータがコンピュータ6Aに入力される。同様にUSBマウス5から入力されたのと同じデータがコンピュータ6Aに入力される。
このように、本発明のKVM切替器1を利用すると、USBキーボード3あるいはUSBマウス5から入力されたデータはコンピュータ6のUSBハブ13に直接送信され、コンピュータ6に入力される。この点で本発明のKVM切替器1は、図5に示す従来の切替器100において、内部のCPU104が、入力デバイスとコンピュータとの間に介在しているのと相違する。
In FIG. 2, the computer 6 </ b> A is selected by the USB
As described above, when the
図2に示すようにUSBキーボード3とUSBマウス5の接続対象としてコンピュータ6Aが選択されている状態で、選択スイッチ14,15が切替わると、コンピュータ6Bが選択されてUSBキーボード3やUSBマウス5から入力されたデータがコンピュータ6Bに入力される。
もし、KVM切替器1が切替スイッチ部10のみから構成されるならば、選択スイッチ14,15の切替時に選択された側のコンピュータ6BではUSBのホットプラグが発生する。このときコンピュータ6BではUSBキーボード3やUSBマウス5の認識動作が行われ、非選択側のコンピュータ6AではUSBのホットアンプラグが発生しUSBバスの切離しが行われる。この認識動作及び切離し動作が行われている数秒から数十秒の間コンピュータの操作ができない状態となる。この状態を回避するのが、次に説明する接続維持部11の役割である。
切替操作ボタン8を含む切替スイッチ部10と、接続維持部11との連携動作を制御するのがMPU16である。接続維持部11はSPI(Serial Peripheral Interface)、すなわちコンピュータ内部の複数のデバイスを4本または3本の信号線で接続するシリアルバスの規格を採用している。SPIでは、一のデバイスをマスターとし他の1個以上のデバイスをスレーブとして、マスターからの要求に応じてスレーブが動作する。この実装形態ではMPU16がマスターデバイスに対応(この実施の形態ではMPU16が2個あるので、SPIは2系統有り)し、接続維持部11がスレーブデバイスに対応する。MPU16AとMPU16Bとの間で情報の授受が必要となるときは、接続維持部11を介して行う。
As shown in FIG. 2, when the computer 6A is selected as the connection target of the
If the
The MPU 16 controls the cooperative operation between the
接続維持部11は、USB監視モジュール17と、接続維持制御モジュール18と、記憶部制御モジュール19と、各コンピュータ6と1対1に対応する自動応答モジュール20A,20Bを備える。
The connection maintaining unit 11 includes a USB monitoring module 17, a connection maintaining control module 18, a storage
USB監視モジュール17は、コンピュータ6とUSBキーボード3やUSBマウス5間のパケットを常時監視し、それらのパケットを解釈して、そのパケットが設定(set)リクエストであれば初期化情報を抽出する。この初期化情報は、記憶部12に保存しておき、切替によって選択されたコンピュータによる再初期化の処理の際に記憶部12から読み出して用いられる。
The USB monitoring module 17 constantly monitors packets between the computer 6 and the
接続維持制御モジュール18はMPU16のスレーブとして、MPU16のリクエストに応じて、USB監視モジュール17、記憶部制御モジュール19、自動応答モジュール20を制御する機能を有する。
The connection maintenance control module 18 functions as a slave of the MPU 16 and controls the USB monitoring module 17, the storage
記憶部制御モジュール19は、USB監視モジュール17によって抽出された初期化情報を記憶部12へ書き込む。また、記憶部制御モジュール19は、接続維持制御モジュール18がUSB監視モジュール17を通して再初期化を行う際、必要となる初期化情報を記憶部12から抽出する。
なお、記憶部12は書き込みと読み出し可能であり、高速なスタティックRAMで実装されることが適当である。
The storage
Note that the
自動応答モジュール20は、MPU16のリクエストを受けた接続維持制御モジュール18によって制御され、対応するコンピュータ6が切替によって非選択になったならばNAK(Negative AcKnowledge)応答を行う。NAKとは、情報通信における制御コードの一つで、一般には、“処理中で応答できない”等の要求が受け付けられなかったことを示すメッセージである。本発明では、コンピュータ6が接続されていないUSB入力装置にアクセスしようとしたとき、当該コンピュータ6に対応した自動応答モジュール20がNAKを返すことによって、当該コンピュータ6にUSB入力装置が切り離されたと認識動作をさせないようにする。 The automatic response module 20 is controlled by the connection maintenance control module 18 that has received the request from the MPU 16, and performs a NAK (Negative AcKnowledge) response if the corresponding computer 6 is not selected by switching. NAK is one of control codes in information communication, and is generally a message indicating that a request such as “cannot respond during processing” has not been accepted. In the present invention, when the computer 6 tries to access a USB input device that is not connected, the automatic response module 20 corresponding to the computer 6 returns NAK, thereby recognizing that the USB input device is disconnected from the computer 6. Do not let it work.
次に、KVM切替器1を含むシステムの動作を次の2つのステップに分けて説明する。
〔1〕コンピュータ6Aに電源が投入された後、最初にUSBキーボード3とUSBマウス5が接続された場合の動作、
〔2〕切替操作ボタン8が切替わり、USBキーボード3とUSBマウス5の接続対象がコンピュータ6Aからコンピュータ6Bに変更された場合の動作、
Next, the operation of the system including the
[1] Operation when the
[2] Operation when the switching
まず、「〔1〕コンピュータ6Aに電源が投入された後、最初にUSBキーボード3とUSBマウス5が接続された場合の動作」について説明する。
USB接続の周辺装置がコンピュータ6Aに接続されると、コンピュータ6AのBIOSは、USBハブ13Aのポートに接続されている装置の有無を調べ、接続された装置があれば、コンピュータ6Aは当該装置へ問い合わせ、それに対する応答により装置種別を識別する。
接続されている装置がUSBキーボード3またはUSBマウス5であると判断される場合、コンピュータ6Aは、初期化を行う。つまり、当該装置にUSBアドレスを割り付け、当該装置のコンフィグ情報を設定する。これにより、コンピュータ6Aにとって当該装置は使用可能な状態となる。これらのUSBアドレスやコンフィグ情報などの初期化情報はKVM切替器1の記憶部12にも保存されるが、この処理について図3を参照しながら説明する。
USB監視モジュール17は、USBバス2(4)の信号線を流れるコンピュータ6とUSBキーボード3(USBマウス5)間のパケットを常時監視している(ステップS1)。パケットが“Set Address”リクエストであれば(ステップS2で“Yes”),記憶部制御モジュール19が設定されたUSBアドレス(USBキーボード3のアドレス、あるいはUSBマウス5のアドレス)を記憶部12に書き込む(ステップS3)。
パケットが“Set Config”リクエストであれば(ステップS4で“Yes”),記憶部制御モジュール19が設定されたコンフィグ情報を記憶部12に書き込む(ステップS3)。コンフィグ情報には、USBキーボード3(USBマウス5)のスピード情報、すなわちロー・スピード(LS)かフル・スピード(FS)、も含まれる。
パケットが“Set Report”リクエストであれば(ステップS5で“Yes”),USBキーボード3のNumLock−LEDやCapsLock−LEDなどの点灯情報を記憶部制御モジュール19が記憶部12に書き込む(ステップS3)。
記憶部12には、コンピュータ6のそれぞれ毎にUSB監視モジュール17によって受信された順に情報が書き込まれる。なお、USB監視モジュール17による情報の受信と送信はいずれも先入先出で行われる。
もし、コンピュータ6Aが電源投入時にUSBキーボード3(USBマウス5)と接続していないときは、MPU16Aが擬似キーボード・マウスとして動作する。これはコンピュータ6AのBIOSがキーボードやマウスの接続確認時にエラーを発生させないためである。
First, “[1] Operation when the
When a USB-connected peripheral device is connected to the computer 6A, the BIOS of the computer 6A checks whether there is a device connected to the port of the
When it is determined that the connected device is the
The USB monitoring module 17 constantly monitors packets between the computer 6 and the USB keyboard 3 (USB mouse 5) flowing through the signal line of the USB bus 2 (4) (step S1). If the packet is a “Set Address” request (“Yes” in step S2), the storage
If the packet is a “Set Config” request (“Yes” in step S4), the storage
If the packet is a “Set Report” request (“Yes” in step S5), the storage
Information is written in the
If the computer 6A is not connected to the USB keyboard 3 (USB mouse 5) when the power is turned on, the MPU 16A operates as a pseudo keyboard / mouse. This is because the BIOS of the computer 6A does not generate an error when checking the connection of the keyboard and mouse.
次に、「〔2〕切替操作ボタン8が切替わり、USBキーボード3とUSBマウス5の接続対象がコンピュータ6Aからコンピュータ6Bに変更された場合の動作」について図4を参照しながら説明する。
ここで、コンピュータ6Bについても〔1〕と同様の処理によって、すでにUSBキーボード3とUSBマウス5の初期化が済み、初期化情報が記憶部12に保存されているものとする。
Next, “[2] Operation when the switching
Here, it is assumed that the computer 6B has already initialized the
切替操作ボタン8の操作によって切替が発生した場合(ステップS11で“Yes”)、切替操作ボタン8と接続しているMPU16Aは切替発生を検知し、接続維持制御モジュール18にコンピュータ6Aから6Bに接続対象が変わったことを通知する。ここでMPU16Aは、LED9Aを消灯させ、LED9Bを点灯させる。
接続維持制御モジュール18は、選択されたコンピュータ6B用の自動応答モジュール20Bに対して、NAK自動応答の停止を指示する(ステップS12)。
接続維持制御モジュール18は、記憶部12に保持されているUSBスピードに合わせ、自動応答モジュール20A,20B経由で選択側コンピュータ6Bおよび非選択側コンピュータ6AのUSBバス7の信号線(D+/D−)をプルアップする。あわせて、接続維持制御モジュール18は、USB監視モジュール17経由で、USBキーボード3とUSBマウス5のUSBバス(2,4)の信号線(D+/D−)をプルダウンする(ステップS13)。
次にMPU16Aは、選択スイッチ14,15を切り離す(ステップS14)。これにより、コンピュータ6はUSBバス7の信号線(D+/D−)に一時的に何も接続されていないがUSBバス(7,2,4)は有効な状態となる。切替に伴う動作が完了していない間は、USBキーボード3およびUSBマウス5からの信号がコンピュータ6側へ送信されないようにするためである。
When the
The connection maintenance control module 18 instructs the automatic response module 20B for the selected computer 6B to stop the NAK automatic response (step S12).
The connection maintenance control module 18 matches the USB speed held in the
Next, the MPU 16A disconnects the selection switches 14 and 15 (step S14). As a result, the computer 6 is temporarily not connected to the signal line (D + / D−) of the
続いて、接続維持制御モジュール18は記憶部制御モジュール19に記憶部12内のコンピュータ6B側の初期化情報を読み出させ、USB監視モジュール17を通してUSBキーボード3とUSBマウス5を再初期化する(ステップS15)。
これで実際にコンピュータ6BとUSBキーボード3及びUSBマウス5との円滑な接続が可能な状態となったので、MPU16Aは、選択スイッチ14,15をコンピュータ6B側に切替える(ステップS16)。コンピュータ6Bは、USBキーボード3およびUSBマウス5と接続状態になったので、自動応答モジュール20Bはコンピュータ6BのUSBバス7Bの信号線(D+/D−)のプルアップを解除する。あわせて接続維持制御モジュール18はUSB監視モジュール17経由で、USBキーボード3およびUSBマウス5のUSBバス2,4の信号線(D+/D−)のプルダウンを解除する(ステップS17)。
Subsequently, the connection maintenance control module 18 causes the storage
Since the smooth connection between the computer 6B and the
接続維持制御モジュール18は非選択側のコンピュータ6Aの自動応答モジュール20AにNAK自動応答の開始を指示する(ステップS18)。
非選択によってUSBキーボード3・USBマウス5と非接続となったコンピュータ6AがUSB問い合わせをしてきた場合の処理は次のようになる。MPU16Aが接続維持制御モジュール18を介して自動応答モジュール20Aに対して、記憶制御モジュール19に記憶部12からのコンピュータ6Aの初期化情報を抽出させる。自動応答モジュール20Aは抽出された初期化情報に含まれるUSBアドレスがコンピュータ6Aから送信されたUSBアドレスと一致したときにコンピュータ6AにNAK応答をする。論理回路(自動応答モジュール)が実際のUSBキーボードやUSBマウスに代わって“代返”をするわけである。この自動応答モジュール20Aの機能により、非選択側のコンピュータ6A側ではUSBキーボード3やUSBマウス5との接続エラーが発生しない。したがって、コンピュータ6Aにおける処理に支障をきたさない。
The connection maintenance control module 18 instructs the
Processing when the computer 6A disconnected from the
このように、KVM切替器による切替が発生しても、USBキーボード・USBマウスとの接続が選択されたコンピュータおよび非選択となったコンピュータのいずれにおいても、切替に伴う処理(図4のステップS12からS18)は短時間で終了し、ユーザによる操作に支障を与えず、円滑で効率的な切替が可能となる。 As described above, even if the switching by the KVM switching device occurs, the process associated with the switching (step S12 in FIG. 4) in both the computer selected for connection to the USB keyboard / USB mouse and the computer not selected. To S18) are completed in a short time, and smooth and efficient switching can be performed without hindering the operation by the user.
以上の実施の形態は、あくまでも一例であって、種々の変形が考えられる。
これらの変形の一例として、切替操作ボタン8に代えてMPU16のいわゆるホットキー機能を用いて切替を行う方法がある。コンピュータ6に専用のプログラムを実装しておき、USBキーボード3の特定のキーが操作されたとき、この専用プログラムがMPU16に通知し、MPU16に切替操作ボタン8が操作されたと同様に、MPU16に切替が発生したと認識させるのである。もしUSBキーボード3がコンピュータ6Bと接続している場合、このホットキー機能によってMPU16Bが切替を認識したならば、接続維持制御モジュール18に通知し、接続維持制御モジュール18からMPU16Aに切替が発生したことを通知する。MPU16Aが接続維持部11に対するマスターデバイスとなって、図4に示したような切替に伴う処理が実行される。
また、コンピュータ6に専用のプログラムを実装することにより、特定キーの設定変更、マウス操作によるコンピュータ6の切替、ホットキー機能の有効化/無効化の切替などの機能拡張も可能である。
The above embodiment is merely an example, and various modifications can be considered.
As an example of these modifications, there is a method of switching using a so-called hot key function of the MPU 16 instead of the
Also, by installing a dedicated program in the computer 6, it is possible to expand functions such as changing the setting of a specific key, switching the computer 6 by operating a mouse, and switching between enabling / disabling a hot key function.
上記の変形例以外にも、例えば、USB監視モジュール17はUSB入力装置毎に分けてもよい。
また、入力装置としてUSBキーボードとUSBマウスに限らず、USB接続のスキャナ、カメラ、タッチスクリーン等も考えられる。
さらに、MPUにプログラムの更新機能を持たせれば、KVM切替器1に追加機能を付与することが容易になる。
In addition to the above modification, for example, the USB monitoring module 17 may be divided for each USB input device.
Also, the input device is not limited to a USB keyboard and USB mouse, but a USB-connected scanner, camera, touch screen, and the like are also conceivable.
Furthermore, if the MPU is provided with a program update function, it becomes easy to add an additional function to the
上記の実施形態では、KVM切替器に接続されているコンピュータは2台であるが、3台以上のコンピュータで1個のUSBキーボード、1個のUSBマウスを共用することも可能である。3台以上のコンピュータで切替可能となるようにKVM切替器1の機能を拡張することは容易なことである。
In the above embodiment, there are two computers connected to the KVM switch, but it is also possible to share one USB keyboard and one USB mouse with three or more computers. It is easy to extend the function of the
USB入力装置の切替時にあってもコンピュータの操作に影響を与えず、効率的に切替動作ができるので、使い勝手のよいKVM切替器として、多くの需要が見込めると期待される。
Even when the USB input device is switched, the switching operation can be efficiently performed without affecting the operation of the computer. Therefore, it is expected that a lot of demand can be expected as an easy-to-use KVM switching device.
1:KVM切替器、3:USBキーボード、5:USBマウス、
6(6A,6B):コンピュータ、8:切替操作ボタン、
10:切替スイッチ部、11:接続維持部、12:記憶部、
13(13A,13B):USBハブ、14:USBキーボード用選択スイッチ、
15:USBマウス用選択スイッチ、16(16A,16B):MPU,
17:USB監視モジュール、18:接続維持制御モジュール、
19:記憶部制御モジュール、20(20A,20B):自動応答モジュール
1: KVM switch, 3: USB keyboard, 5: USB mouse,
6 (6A, 6B): Computer, 8: Switching operation button,
10: changeover switch unit, 11: connection maintaining unit, 12: storage unit,
13 (13A, 13B): USB hub, 14: USB keyboard selection switch,
15: USB mouse selection switch, 16 (16A, 16B): MPU,
17: USB monitoring module, 18: connection maintenance control module,
19: Storage unit control module, 20 (20A, 20B): Automatic response module
上記の目的を達成するために、請求項1に係る発明は、
複数のコンピュータと、これらのコンピュータに共用されるUSB入力装置との間に配置され、前記複数のコンピュータのうち操作対象となる1台のコンピュータと前記入力装置との接続を切替えるKVM切替器であって、
該KVM切替器は切替スイッチ部と接続維持部と記憶部を備え、
前記切替スイッチ部は、
ユーザによって切替のために操作される切替操作ボタンと、共用されるUSB入力装置の信号線に接続する選択スイッチと、各コンピュータに1対1に対応するUSBハブと、各コンピュータに1対1に対応し前記USBハブの一のポートに接続するMPU(Micro Processing Unit)とを含み、
前記USB入力装置から入力されたデータは前記USBハブに直接送信されて対応するコンピュータに入力されるとともに、
前記接続維持部は、
前記USB入力装置と接続されている一のコンピュータと前記USB入力装置との間で送受信されるパケットを常時監視するUSB監視モジュールと、
前記パケットに含まれる所定の初期化情報を前記記憶部に保持させたり、前記記憶部から初期化情報を取り出したりする記憶部制御モジュールと、
切替操作の発生により前記USB入力装置との接続対象となったコンピュータが前記USB入力装置を最初に認識した時に設定した初期化情報を前記記憶部から取り出し、この取り出した初期化情報を前記USB監視モジュールを通して前記USB入力装置に再度設定させる一方、切替操作の発生により非接続となったコンピュータに対して前記自動応答モジュールにNAK自動応答の開始を指示する接続維持制御モジュールとを含み、
前記複数のコンピュータのいずれか一に対応するMPUは、前記切替操作ボタン及び前記選択スイッチと接続し、前記切替操作ボタンによる切替操作を検知すると前記接続維持部の動作を制御するとともに前記選択スイッチを切替えることを特徴とする。
In order to achieve the above object, the invention according to
A KVM switching device that is arranged between a plurality of computers and a USB input device shared by these computers, and switches connection between one of the plurality of computers to be operated and the input device. And
The KVM switching device includes a changeover switch unit, a connection maintaining unit, and a storage unit.
The changeover switch part is
A switching operation button operated for switching by a user, a selection switch connected to a signal line of a shared USB input device, a USB hub corresponding to each computer one-to-one, and one-to-one for each computer And an MPU (Micro Processing Unit) connected to one port of the USB hub,
The data input from the USB input device is directly transmitted to the USB hub and input to the corresponding computer.
The connection maintaining unit is
A USB monitoring module for constantly monitoring packets transmitted and received between the USB input device and a computer connected to the USB input device;
A storage unit control module for holding predetermined initialization information included in the packet in the storage unit, and extracting initialization information from the storage unit;
Initialization information set when the computer connected to the USB input device by the occurrence of the switching operation first recognizes the USB input device is extracted from the storage unit, and the extracted initialization information is extracted from the USB monitor. A connection maintaining control module that instructs the automatic response module to start a NAK automatic response to a computer that is disconnected due to the occurrence of a switching operation, while allowing the USB input device to be set again through a module ,
The MPU corresponding to any one of the plurality of computers is connected to the switching operation button and the selection switch, and when the switching operation by the switching operation button is detected, controls the operation of the connection maintaining unit and controls the selection switch. It is characterized by switching.
Claims (4)
該KVM切替器は切替スイッチ部と接続維持部と記憶部を備え、
前記切替スイッチ部は、
ユーザによって切替のために操作される切替操作ボタンと、共用されるUSB入力装置の信号線に接続する選択スイッチと、各コンピュータに1対1に対応するUSBハブと、各コンピュータに1対1に対応しUSBハブの一のポートに接続するMPU(Micro Processing Unit)とを含み、
前記接続維持部は、
前記USB入力装置と接続されている一のコンピュータと前記USB入力装置との間で送受信されるパケットを常時監視するUSB監視モジュールと、
前記パケットに含まれる所定の初期化情報を前記記憶部に保持させたり、前記記憶部から初期化情報を取り出したりする記憶部制御モジュールと、
前記の各コンピュータからの問い合わせに応答する自動応答モジュールと、
切替操作の発生により前記USB入力装置との接続対象となったコンピュータの初期化情報を前記記憶部から取り出して前記USB監視モジュールを通して前記USB入力装置を再初期化させる一方、非接続となったコンピュータに対して前記自動応答モジュールにNAK応答をさせる接続維持制御モジュールとを含み、
前記複数のコンピュータのいずれか一に対応するMPUは、前記切替操作ボタン及び前記選択スイッチと接続し、前記切替操作ボタンによる切替操作を検知すると前記接続維持部の動作を制御するとともに前記選択スイッチを切替える
ことを特徴とするKVM切替器。 A KVM switching device that is arranged between a plurality of computers and a USB input device shared by these computers, and switches connection between one of the plurality of computers to be operated and the input device. And
The KVM switching device includes a changeover switch unit, a connection maintaining unit, and a storage unit.
The changeover switch part is
A switching operation button operated for switching by a user, a selection switch connected to a signal line of a shared USB input device, a USB hub corresponding to each computer one-to-one, and one-to-one for each computer Including a MPU (Micro Processing Unit) connected to one port of a USB hub,
The connection maintaining unit is
A USB monitoring module for constantly monitoring packets transmitted and received between the USB input device and a computer connected to the USB input device;
A storage unit control module for holding predetermined initialization information included in the packet in the storage unit, and extracting initialization information from the storage unit;
An automatic response module for responding to inquiries from each of the computers;
Initialization information of a computer that is a connection target with the USB input device due to occurrence of a switching operation is taken out of the storage unit, and the USB input device is reinitialized through the USB monitoring module, while being disconnected. A connection maintenance control module that causes the automatic response module to make a NAK response to
The MPU corresponding to any one of the plurality of computers is connected to the switching operation button and the selection switch, and when the switching operation by the switching operation button is detected, controls the operation of the connection maintaining unit and controls the selection switch. A KVM switch characterized by switching.
前記KVM切替器は、ユーザによって切替のために操作される切替操作ボタンを含む切替スイッチ部とともに、論理回路から成る接続維持部と、読み込み・書き込みが可能な記憶部を備え、
前記接続維持部に
前記USB入力装置と現在接続されているコンピュータ間で送受信されるパケットを常時監視し、前記パケットを解釈して所定の初期化情報を前記記憶部に保持するステップと、
前記切替操作ボタンによる切替操作の発生時、前記切替スイッチ部から送信される切替発生検知信号により、切替によって前記USB入力装置との接続対象となったコンピュータの初期化情報を前記記憶部から取り出して前記USB入力装置を再初期化するステップと、
前記切替操作により非接続となったコンピュータからの前記USB入力装置に対する問い合わせに対して自動的にNAK応答するステップと、
を実行させることを特徴とする接続切替時のUSB入力装置接続維持方法。 Using a KVM switching device arranged between a plurality of computers and a USB input device shared by these computers, a computer to be operated among the plurality of computers and the USB input device When switching the connection, the method continues to maintain the connection between the computer and the USB input device that is excluded from the operation target as a result of switching,
The KVM switching device includes a connection switch unit including a switching operation button operated for switching by a user, a connection maintaining unit composed of a logic circuit, and a storage unit capable of reading and writing,
Constantly monitoring packets transmitted and received between the USB input device and the computer currently connected to the connection maintaining unit, interpreting the packets, and holding predetermined initialization information in the storage unit;
When the switching operation by the switching operation button occurs, the initialization information of the computer to be connected to the USB input device by switching is extracted from the storage unit by the switching occurrence detection signal transmitted from the switching switch unit. Re-initializing the USB input device;
Automatically responding to an inquiry about the USB input device from the computer disconnected by the switching operation;
The USB input device connection maintaining method at the time of connection switching,
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011167994A JP4906158B1 (en) | 2011-08-01 | 2011-08-01 | KVM switching device and USB input device connection maintaining method at switching |
TW101113237A TW201246003A (en) | 2011-08-01 | 2012-04-13 | KVM switch and method for maintaining USB input device connection during switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011167994A JP4906158B1 (en) | 2011-08-01 | 2011-08-01 | KVM switching device and USB input device connection maintaining method at switching |
Publications (2)
Publication Number | Publication Date |
---|---|
JP4906158B1 JP4906158B1 (en) | 2012-03-28 |
JP2013033314A true JP2013033314A (en) | 2013-02-14 |
Family
ID=46060766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011167994A Expired - Fee Related JP4906158B1 (en) | 2011-08-01 | 2011-08-01 | KVM switching device and USB input device connection maintaining method at switching |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4906158B1 (en) |
TW (1) | TW201246003A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101748155B1 (en) * | 2015-11-26 | 2017-06-16 | 국방과학연구소 | An user input apparatus for multifunctional control console and method for controlling the same |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI781134B (en) * | 2017-01-25 | 2022-10-21 | 日商精工愛普生股份有限公司 | Circuit device, electronic device, and cable harness |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4258925B2 (en) * | 1999-11-29 | 2009-04-30 | ミツミ電機株式会社 | Wireless USB hub |
JP2001282701A (en) * | 2000-03-31 | 2001-10-12 | Aiwa Co Ltd | Device and method for processing information |
JP2005182578A (en) * | 2003-12-22 | 2005-07-07 | Nec Engineering Ltd | Apparatus control system and method |
JP2005251095A (en) * | 2004-03-08 | 2005-09-15 | Matsushita Electric Ind Co Ltd | Usb device |
JP4878955B2 (en) * | 2006-08-11 | 2012-02-15 | 富士通コンポーネント株式会社 | Switching device and touch panel calibration method |
US7917674B2 (en) * | 2008-10-21 | 2011-03-29 | Aten International Co., Ltd. | KVM switch with PIP functions using remote desktop sharing technique |
US20100115160A1 (en) * | 2008-10-30 | 2010-05-06 | Action Star Enterprise Co., Ltd. | System for transferring a file between associated computers |
-
2011
- 2011-08-01 JP JP2011167994A patent/JP4906158B1/en not_active Expired - Fee Related
-
2012
- 2012-04-13 TW TW101113237A patent/TW201246003A/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101748155B1 (en) * | 2015-11-26 | 2017-06-16 | 국방과학연구소 | An user input apparatus for multifunctional control console and method for controlling the same |
Also Published As
Publication number | Publication date |
---|---|
TW201246003A (en) | 2012-11-16 |
JP4906158B1 (en) | 2012-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7447825B2 (en) | PCI-E automatic allocation system | |
US7966402B2 (en) | Switch to selectively couple any of a plurality of video modules to any of a plurality of blades | |
US8990459B2 (en) | Peripheral device sharing in multi host computing systems | |
US20080043769A1 (en) | Clustering system and system management architecture thereof | |
JP2008536225A (en) | Peripheral device shared USB hub | |
US8589141B2 (en) | Resource sharing apparatus which disconnects an input device when detecting a standby indication of a switching command | |
US20160224493A1 (en) | Universal serial bus (usb) kvm switch using virtual usb for switching among multiple hosts | |
CN101593164A (en) | Based on built-in Linux from USB HID device and firmware implementation method | |
CN105718408A (en) | Hot-pluggable computing system, computer-implemented method and system | |
CN104021047A (en) | Virtual function distribution system, method and management host thereof | |
JP2006072962A (en) | Control system for controlling a plurality of target computers | |
EP0919926B1 (en) | Method and apparatus for robust data broadcast on a peripheral component interconnect bus | |
JP2022162989A (en) | Network device configuration based on slave device type | |
US11113221B2 (en) | Mode switching system and mode switching method using the same | |
WO2023124940A1 (en) | Embedded control circuit for direct memory access, chip, and electronic device | |
CN114281722B (en) | Embedded control circuit with double bus interfaces, chip and electronic equipment | |
CN102087589A (en) | Remote management device capable of detecting state of controlled computer | |
JP4906158B1 (en) | KVM switching device and USB input device connection maintaining method at switching | |
CN114297111A (en) | Embedded control circuit, chip, peripheral access method and electronic equipment | |
US20120260018A1 (en) | Kvm switcher with ability to extend universal serial bus (usb) host interface via serial peripherial interface (spi) | |
CN107294759A (en) | server system and data access method | |
US20220027300A1 (en) | USB hub device having functionality of self firmware updating and host electronic system having the same | |
EP1594068A2 (en) | PCI Bus system | |
US20130239110A1 (en) | Detaching method and recording medium | |
JPH11191073A (en) | Pci bus processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120108 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150120 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |