JP2014178719A - Usb packet conversion device, usb packet conversion method and usb packet conversion program - Google Patents
Usb packet conversion device, usb packet conversion method and usb packet conversion program Download PDFInfo
- Publication number
- JP2014178719A JP2014178719A JP2013050337A JP2013050337A JP2014178719A JP 2014178719 A JP2014178719 A JP 2014178719A JP 2013050337 A JP2013050337 A JP 2013050337A JP 2013050337 A JP2013050337 A JP 2013050337A JP 2014178719 A JP2014178719 A JP 2014178719A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- packet
- usb device
- main body
- packet conversion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Bus Control (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
本発明は、USBパケット変換装置、USBパケット変換方法およびUSBパケット変換プログラムに関する。 The present invention relates to a USB packet conversion device, a USB packet conversion method, and a USB packet conversion program.
キーボードやマウス等の周辺機器とパーソナルコンピュータ(以下、PCという。)を結ぶデータ伝送路の規格のひとつに、USB(Universal Serial Bus)がある。 USB (Universal Serial Bus) is one of data transmission path standards that connect peripheral devices such as a keyboard and a mouse to a personal computer (hereinafter referred to as a PC).
処理装置となるホストと物理デバイスを接続する際に、データ伝送路の規格としてUSBを使用した場合、ホストに接続できる物理デバイスの数は最大127台に制限される。その理由は、ホストが内部で管理できる物理デバイスのアドレスの最大数が127個であるためである。 When USB is used as a data transmission path standard when connecting a host as a processing device and a physical device, the maximum number of physical devices that can be connected to the host is limited to 127. The reason is that the maximum number of physical device addresses that can be managed internally by the host is 127.
また、PC本体側のOS(Operating System)によって、自身の他に接続されているUSB機器があると稼働できないUSB機器がある。例えば、OSがWindows XP(登録商標)であるPCのUSBポートにUSBスキャナを2つ取り付けたとき、最初に接続したUSBスキャナは正常に認識されるが、2つ目のUSBスキャナは正常に認識されない。このような場合、PCユーザには一旦USB機器を抜き差しすることが求められる。 In addition, there is a USB device that cannot be operated if there is a USB device connected in addition to itself depending on an OS (Operating System) on the PC main body side. For example, when two USB scanners are attached to a USB port of a PC whose OS is Windows XP (registered trademark), the first connected USB scanner is recognized normally, but the second USB scanner is recognized normally. Not. In such a case, the PC user is required to remove and insert the USB device once.
特許文献1には、エンドポイントに関する情報を利用してUSB機器に割り振るアドレスを少なくし、アドレスリソースの有効利用を図ることができるUSB通信装置が記載されている。 Patent Document 1 describes a USB communication apparatus that can reduce the number of addresses allocated to a USB device by using information related to an endpoint and can effectively use address resources.
しかし、特許文献1に記載されたUSB通信装置では、USBデバイスコントローラが複数のエンドポイント(通信端点)を保有していることが想定されているが、USBデバイスコントローラのエンドポイントの数は、一般に、制限されている。すなわち、特許文献1に記載されたUSB通信装置では、アドレスリソースの有効活用が不十分となる場合もある。 However, in the USB communication device described in Patent Document 1, it is assumed that the USB device controller has a plurality of end points (communication end points). However, the number of end points of the USB device controller is generally Is limited. That is, in the USB communication device described in Patent Document 1, effective use of address resources may be insufficient.
そこで、本発明は、エンドポイントに関する情報を使用せずに、アドレスリソースを有効活用できるUSBパケット変換装置、USBパケット変換方法およびUSBパケット変換プログラムを提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides a USB packet conversion device, a USB packet conversion method, and a USB packet conversion program that can effectively use address resources without using information about an endpoint.
本発明によるUSBパケット変換装置は、複数のUSB機器が接続されるUSBパケット変換装置であって、複数のUSB機器とパケットを送受信するUSB機器接続部と、ホスト端末とパケットを送受信する端末接続部と、ホスト端末に向けられたパケットをUSB機器からUSB機器接続部が受信した場合、複数のUSB機器に共通の識別情報を当該パケットに付加して、端末接続部に出力する制御部とを備えることを特徴とする。 A USB packet conversion device according to the present invention is a USB packet conversion device to which a plurality of USB devices are connected, a USB device connection unit that transmits and receives packets to and from a plurality of USB devices, and a terminal connection unit that transmits and receives packets to and from a host terminal. And a control unit that adds identification information common to a plurality of USB devices to the packet and outputs the packet to the terminal connection unit when the USB device connection unit receives a packet directed to the host terminal from the USB device. It is characterized by that.
本発明によるUSBパケット変換方法は、複数のUSB機器が接続されるUSBパケット変換装置において実行されるUSBパケット変換方法であって、ホスト端末に向けられたパケットをUSB機器から受信した場合、複数のUSB機器に共通の識別情報を付加した上で当該パケットをホスト端末へ送信することを特徴とする。 A USB packet conversion method according to the present invention is a USB packet conversion method executed in a USB packet conversion apparatus to which a plurality of USB devices are connected. When a packet directed to a host terminal is received from a USB device, The packet is transmitted to the host terminal after adding common identification information to the USB device.
本発明によるUSBパケット変換プログラムは、複数のUSB機器が接続されるUSBパケット変換装置において実行されるUSBパケット変換プログラムであって、USBパケット変換装置に、複数のUSB機器とパケットを送受信するUSBパケット送受信処理、ホスト端末とパケットを送受信する端末パケット送受信処理、およびホスト端末に向けられたパケットをUSB機器から受信した場合、複数のUSB機器に共通の識別情報を付加した上で当該パケットをホスト端末へ送信するパケット変換処理を実行させることを特徴とする。 A USB packet conversion program according to the present invention is a USB packet conversion program executed in a USB packet conversion device to which a plurality of USB devices are connected, and transmits and receives packets to and from the USB packet conversion device. Send / receive processing, terminal packet send / receive processing for sending / receiving packets to / from the host terminal, and when receiving a packet directed to the host terminal from the USB device, add the identification information common to the plurality of USB devices, and then send the packet to the host terminal The packet conversion processing to be transmitted to is executed.
本発明によれば、エンドポイントに関する情報を使用せずに、アドレスリソースを有効活用できる。 According to the present invention, it is possible to effectively use address resources without using information related to endpoints.
以下、本発明の実施形態を図面を参照して説明する。図1は、本発明によるUSBパケット変換装置の第1の実施形態の構成例を示すシステム構成図である。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a system configuration diagram showing a configuration example of a first embodiment of a USB packet conversion apparatus according to the present invention.
図1には、USBパケット変換器200が、PC本体100と、USB機器300およびUSB機器400にそれぞれ接続されている例が示されている。なお、図1には2台のUSB機器が示されているが、USB機器の台数は2台以上であってもよい。また、USBパケット変換器200は、PC本体100に内蔵されていてもよい。
FIG. 1 shows an example in which a
図1に示すUSBパケット変換装置を利用すると、PC本体100は、USB機器300およびUSB機器400にパケットを同時に送信できる。また、USB機器300およびUSB機器400も、PC本体100にパケットを同時に送信できる。
If the USB packet conversion device shown in FIG. 1 is used, the PC
PC本体100は、USB機器300およびUSB機器400に向けて指示命令等の信号を含むパケットを送信する。PC本体100は、USB機器300およびUSB機器400から命令に対する応答等の信号を含むパケットを受信する。なお、PC本体100は、サーバ等の情報処理装置でもよい。
The PC
USBパケット変換器200は、PC本体100から受信したパケット群を分割し、USB機器300およびUSB機器400向けのパケットをそれぞれに送信する。また、USBパケット変換器200は、USB機器300およびUSB機器400から受信したパケットのアドレスを統合して、PC本体100に送信する。
The
USB機器300およびUSB機器400は、USB規格に基づいてUSBパケット変換器200に接続されるデバイスである。USB機器300およびUSB機器400は、例えば、フラッシュメモリである。
The
次に、USBパケット変換器200の詳細な構成を図2を参照して説明する。図2は、第1の実施形態におけるUSBパケット変換器200の構成例を示すブロック図である。
Next, a detailed configuration of the
図2に示すUSBパケット変換器200は、USBデバイスコントローラ201と、パケット解析/生成部202と、USBホストコントローラ203と、ネゴシエーション情報記憶部204とを備える。
The
USBデバイスコントローラ201は、PC本体100から受信したパケットを、パケット解析/生成部202に出力する機能を有する。また、USBデバイスコントローラ201は、パケット解析/生成部202で生成されたパケットを入力し、PC本体100に送信する機能を有する。
The
パケット解析/生成部202は、USBデバイスコントローラ201およびUSBホストコントローラ203を制御する機能を有する。
The packet analysis /
また、パケット解析/生成部202は、USBデバイスコントローラ201またはUSBホストコントローラ203から入力したパケットを解析する。解析することにより、パケット解析/生成部202は、送信先に送信すべきパケットを生成する。パケット解析/生成部202は、生成したパケットを、USBデバイスコントローラ201またはUSBホストコントローラ203に出力する。
The packet analysis /
USBホストコントローラ203は、USB機器300またはUSB機器400から受信したパケットを、パケット解析/生成部202に出力する機能を有する。また、USBホストコントローラ203は、パケット解析/生成部202で生成されたパケットを入力し、USB機器300またはUSB機器400に送信する機能を有する。
The
また、USBホストコントローラ203は、ネゴシエーション情報記憶部204に、USB機器300、USB機器400とそれぞれネゴシエーションをした時に取得したネゴシエーション情報を出力する機能を有する。ネゴシエーション情報には、USB機器のプロダクトIDや、一度に送受信できるパケットサイズ等、USB機器自身がどのようなデバイスであるかを表す情報が含まれる。
The
ネゴシエーション情報記憶部204は、USBホストコントローラ203から入力されたネゴシエーション情報を解析し、解析することで得られたUSBアドレスを記憶する機能を有する。ネゴシエーション情報には、USB通信の仕様として各USB機器に割り振られた個別のUSBアドレスが含まれている。
The negotiation
なお、本実施形態におけるパケット解析/生成部202は、例えば、プログラムに従って動作するCPUによって実現される。
Note that the packet analysis /
また、USBデバイスコントローラ201は、例えば、プログラムに従って動作するCPUと、LSI(Large Scale Integration)等の集積回路とによって実現される。
The
また、USBホストコントローラ203は、例えば、プログラムに従って動作するCPUと、インタフェースカード等の入出力制御装置とによって実現される。
The
以下、本発明の動作を説明する。最初に、PC本体100、USB機器300およびUSB機器400と接続した時のUSBパケット変換器200の接続処理の動作を、図3のフローチャートを参照して説明する。図3は、USBパケット変換器200の接続処理の動作を示すフローチャートである。
The operation of the present invention will be described below. First, the connection processing operation of the
USBパケット変換器200のパケット解析/生成部202は、USBホストコントローラ203にUSB機器300とUSBネゴシエーションを行うよう指示する。指示を受け、USBホストコントローラ203は、USB機器300とUSBネゴシエーションを行う(ステップS101)。USBホストコントローラ203は、USB機器300とのネゴシエーション情報をネゴシエーション情報記憶部204に出力する。
The packet analysis /
次に、パケット解析/生成部202は、USBホストコントローラ203にUSB機器400とUSBネゴシエーションを行うよう指示する。指示を受け、USBホストコントローラ203は、USB機器400とUSBネゴシエーションを行う(ステップS102)。USBホストコントローラ203は、USB機器400とのネゴシエーション情報をネゴシエーション情報記憶部204に出力する。
Next, the packet analysis /
ネゴシエーション情報記憶部204は、USBホストコントローラ203から入力されたUSB機器300とのネゴシエーション情報と、USB機器400とのネゴシエーション情報とを解析する。ネゴシエーション情報記憶部204は、解析することで得られたUSB機器300のUSBアドレス情報とUSB機器400のUSBアドレス情報とを保存する(ステップS103)。
The negotiation
パケット解析/生成部202は、USBデバイスコントローラ201に、PC本体100とUSBネゴシエーションを行うよう指示する。指示を受け、USBデバイスコントローラ201は、PC本体100とUSBネゴシエーションを行う(ステップS104)。以上で、USBパケット変換器200はネゴシエーション処理を完了する。
The packet analysis /
次に、PC本体100からパケットを受信した時のUSBパケット変換器200のパケット変換処理の動作を、図4のフローチャートと図5の説明図を参照して説明する。図4は、USBパケット変換器200のPC本体100からのパケットの送受信処理の動作を示すフローチャートである。図5は、USBパケット変換器200のPC本体100からのパケットの変換処理の例を示す説明図である。
Next, the packet conversion processing operation of the
図5は、図4に示す送受信処理が行われる時の、USBパケット変換器200によるパケット変換処理の例を示す。図5には、PC本体100から受信したパケット11と、USB機器300へ送信するパケット12と、USB機器400へ送信するパケット13と、パケット解析/生成部202とが示されている。
FIG. 5 shows an example of packet conversion processing by the
パケット11の「A300」はUSB機器300のUSBアドレスを、また「A400」はUSB機器400のUSBアドレスをそれぞれ意味している。
“A300” in the
USBパケット変換器200のパケット解析/生成部202は、USBデバイスコントローラ201を介してPC本体100からパケットを受信したか否か確認する(ステップS201)。PC本体100からパケットを受信していない場合(ステップS201のNo)、パケット解析/生成部202は処理を終了する。
The packet analysis /
PC本体100からパケットを受信した場合(ステップS201のYes)、パケット解析/生成部202は、ネゴシエーション情報記憶部204に保存されたUSBアドレス情報に基づき、受信したパケットの中にUSB機器300へのパケットがあるか否か確認する(ステップS202)。ここでは具体的に、USBパケット変換器200がPC本体100からパケット11を受信した場合を例に説明する(ステップS201のYes)。
When the packet is received from the PC main body 100 (Yes in step S201), the packet analysis /
USB機器300へのパケットがある場合(ステップS202のYes)、パケット解析/生成部202は、PC本体100から受信したパケットから、USB機器300向けのパケットを生成する(ステップS203)。
When there is a packet for the USB device 300 (Yes in step S202), the packet analysis /
USB機器300のUSBアドレス「A300」があることから、パケット11には、USB機器300へのパケットが含まれていることが分かる(ステップS202のYes)。パケット解析/生成部202は、受信したパケット11から、USB機器300へのパケット12を生成する(ステップS203)。
Since there is the USB address “A300” of the
生成した後、パケット解析/生成部202は、USBホストコントローラ203に、ネゴシエーション情報記憶部204に保存されたUSBアドレス情報に基づき、USB機器300へパケットを送信するよう指示する。指示を受け、USBホストコントローラ203は、USB機器300へパケットを送信する(ステップS204)。USBホストコントローラ203は、USB機器300へパケット12を送信する(ステップS204)。
After the generation, the packet analysis /
USB機器300へのパケットがない場合(ステップS202のNo)、またはステップS204の処理の終了後、パケット解析/生成部202は、ネゴシエーション情報記憶部204に保存されたUSBアドレス情報に基づき、受信したパケットの中にUSB機器400へのパケットがあるか否か確認する(ステップS205)。
When there is no packet to the USB device 300 (No in step S202), or after the processing in step S204 is completed, the packet analysis /
USB機器400へのパケットがない場合(ステップS205のNo)、パケット解析/生成部202は、処理を終了する。
If there is no packet to the USB device 400 (No in step S205), the packet analysis /
USB機器400へのパケットがある場合(ステップS205のYes)、パケット解析/生成部202は、PC本体100から受信したパケットから、USB機器400向けのパケットを生成する(ステップS206)。
When there is a packet for the USB device 400 (Yes in step S205), the packet analysis /
USB機器400のUSBアドレス「A400」があることから、パケット11には、USB機器400へのパケットが含まれていることが分かる(ステップS205のYes)。パケット解析/生成部202は、受信したパケット11から、USB機器400へのパケット13を生成する(ステップS206)。
Since there is the USB address “A400” of the
生成した後、パケット解析/生成部202は、USBホストコントローラ203に、ネゴシエーション情報記憶部204に保存されたUSBアドレス情報に基づき、USB機器400へパケットを送信するよう指示する。指示を受け、USBホストコントローラ203は、USB機器400へパケットを送信する(ステップS207)。
After the generation, the packet analysis /
USBホストコントローラ203は、USB機器300へパケット13を送信する(ステップS207)。パケットが送信されると、パケット解析/生成部202は、処理を終了する。
The
図6は、USB機器300のみが稼働している場合について、USBパケット変換器200のPC本体100からのパケットの送受信処理の動作を示すフローチャートである。USB機器300のみが稼働している場合も、USBパケット変換器200のパケットの送受信処理の動作は、USB機器300とUSB機器400の両方が稼働している場合と同様である。
FIG. 6 is a flowchart showing the operation of packet transmission / reception processing from the PC
図7は、図6に示す送受信処理が行われる時の、USBパケット変換器200によるパケット変換処理の例を示す。図7には、PC本体100から受信したパケット14と、USB機器300へ送信するパケット15と、パケット解析/生成部202とが示されている。
FIG. 7 shows an example of packet conversion processing by the
PC本体100からパケットを受信し(ステップS301のYes)、受信したパケットの中にUSB機器300へのパケットがある場合(ステップS302のYes)、パケット解析/生成部202は、受信したパケットからUSB機器300向けのパケットを生成する(ステップS303)。
When a packet is received from the PC main body 100 (Yes in step S301) and there is a packet to the
ここでは具体的に、USBパケット変換器200がPC本体100からパケット14を受信した場合を例に説明する(ステップS301のYes)。
Here, specifically, a case where the
USB機器300のUSBアドレス「A300」があることから、パケット14には、USB機器300へのパケットが含まれていることが分かる(ステップS302のYes)。パケット解析/生成部202は、受信したパケット14から、USB機器300向けのパケット15を生成する(ステップS303)。
Since there is the USB address “A300” of the
変換した後、パケット解析/生成部202から指示を受けたUSBホストコントローラ203は、ネゴシエーション情報記憶部204に保存されたUSBアドレス情報に基づき、USB機器300へパケットを送信する(ステップS304)。USBホストコントローラ203は、USB機器300へパケット15を送信する(ステップS304)。パケットが送信されると、パケット解析/生成部202は、処理を終了する。
After the conversion, the
なお、USB機器300のみが稼働している状態で、PC本体100からUSB機器400へのパケットを含むパケットを受信した場合(ステップS305のYes)、パケット解析/生成部202は、受信したパケットからUSB機器400向けのパケットを生成する(ステップS306)。そして、USBホストコントローラ203は、USB機器400へ生成されたパケットを送信する(ステップS307)。
When only the
なお、USB機器300およびUSB機器400を同時に使用しないことを前提に、USBパケット変換器200は、USB機器300とUSB機器400に共通のUSBアドレスを割り振ってもよい。
Note that the
次に、USB機器300またはUSB機器400からパケットを受信した時のUSBパケット変換器200のパケット変換処理の動作を、図8のフローチャートと図9の説明図を参照して説明する。図8は、USBパケット変換器200のUSB機器からのパケットの送受信処理の動作を示すフローチャートである。図9は、USBパケット変換器200のUSB機器からのパケットの変換処理の例を示す説明図である。
Next, the packet conversion processing operation of the
図9は、図8に示す送受信処理が行われる時の、USBパケット変換器200によるパケット変換処理の例を示す。図9には、USB機器300から受信したパケット16と、USB機器400から受信したパケット17と、PC本体100へ送信するパケット18およびパケット19と、パケット解析/生成部202とが示されている。
FIG. 9 shows an example of packet conversion processing by the
図9に示す例において、USBパケット変換機200は、USB機器300とUSB機器400に共通のUSBアドレスである「A300」を割り振るとする。PC本体100は、USB機器300およびUSB機器400に対し、USBアドレス「A300」が割り振られていると認識する。
In the example illustrated in FIG. 9, it is assumed that the
パケット解析/生成部202は、USBホストコントローラ203を介して、USB機器300からパケットを受信したか否か確認する(ステップS401)。
The packet analysis /
USB機器300からパケットを受信した場合(ステップS401のYes)、パケット解析/生成部202は、USB機器300からのパケットをPC本体100向けの構成のパケットに変換する(ステップS402)。
When a packet is received from the USB device 300 (Yes in step S401), the packet analysis /
ここでは具体的に、USBパケット変換器200がUSB機器300からパケット16を受信した場合を例に説明する(ステップS401のYes)。パケット解析/生成部202は、パケット16をPC本体100向けの構成のパケットであるパケット18に変換する(ステップS402)。変換する際、パケット解析/生成部202は、パケット16にUSB機器300に割り振られている共通のUSBアドレス「A300」を含める。
Here, the case where the
USB機器300からパケットを受信していない場合(ステップS401のNo)、またはステップS402の処理の終了後、パケット解析/生成部202は、USBホストコントローラ203を介してUSB機器400からパケットを受信したか否か確認する(ステップS403)。
If no packet is received from the USB device 300 (No in step S401), or after the processing in step S402 is completed, the packet analysis /
USB機器400からパケットを受信した場合(ステップS403のYes)、パケット解析/生成部202は、USB機器400からのパケットをPC本体100向けの構成のパケットに変換する(ステップS404)。
When a packet is received from the USB device 400 (Yes in step S403), the packet analysis /
ここでは具体的に、USBパケット変換器200がUSB機器400からパケット17を受信した場合を例に説明する(ステップS403のYes)。パケット解析/生成部202は、パケット17をPC本体100向けの構成のパケットであるパケット19に変換する(ステップS404)。変換する際、パケット解析/生成部202は、パケット17にUSB機器400に割り振られている共通のUSBアドレス「A300」を含める。
Here, specifically, the case where the
USB機器400からパケットを受信していない場合(ステップS403のNo)、またはステップS404の処理の終了後、パケット解析/生成部202は、PC本体100へのパケットがあるか否か確認する(ステップS405)。
If no packet has been received from the USB device 400 (No in step S403), or after the processing in step S404 is completed, the packet analysis /
PC本体100へのパケットがない場合(ステップS405のNo)、パケット解析/生成部202は、処理を終了する。
If there is no packet to the PC main body 100 (No in step S405), the packet analysis /
PC本体100へのパケットがある場合(ステップS405のYes)、パケット解析/生成部202は、USBデバイスコントローラ201に、PC本体100へパケットを送信するよう指示する。指示を受け、USBデバイスコントローラ201は、PC本体100へパケットを送信する(ステップS406)。
If there is a packet to the PC main body 100 (Yes in step S405), the packet analysis /
図9に示す例において、PC本体100へのパケットは存在する(ステップS405のYes)。USBデバイスコントローラ201は、PC本体100へパケット18とパケット19を送信する(ステップS406)。パケットが送信されると、パケット解析/生成部202は、処理を終了する。
In the example shown in FIG. 9, there is a packet to the PC main body 100 (Yes in step S405). The
図10は、USB機器300のみが稼働している場合について、USBパケット変換器200のUSB機器からのパケットの送受信処理の動作を示すフローチャートである。USB機器300のみが稼働している場合も、USBパケット変換器200のパケットの送受信処理の動作は、USB機器300とUSB機器400の両方が稼働している場合と同様である。
FIG. 10 is a flowchart showing an operation of packet transmission / reception processing from the USB device of the
図11は、図10に示す送受信処理が行われる時の、USBパケット変換器200によるパケット変換処理の例を示す。図11には、USB機器300から受信したパケット20と、PC本体100へ送信するパケット21と、パケット解析/生成部202とが示されている。
FIG. 11 shows an example of packet conversion processing by the
図11に示す例においても図9と同様に、USBパケット変換機200は、USB機器300とUSB機器400に共通のUSBアドレスである「A300」を割り振るとする。PC本体100は、USB機器300およびUSB機器400に対し、USBアドレス「A300」が割り振られていると認識する。
Also in the example shown in FIG. 11, as in FIG. 9, the
USB機器300からパケットを受信した場合(ステップS501のYes)、パケット解析/生成部202は、USB機器300からのパケットをPC本体100向けの構成のパケットに変換する(ステップS502)。
When a packet is received from the USB device 300 (Yes in step S501), the packet analysis /
ここでは具体的に、USBパケット変換器200がUSB機器300からパケット20を受信した場合を例に説明する(ステップS501のYes)。パケット解析/生成部202は、受信したパケット20を、PC本体100向けの構成のパケットであるパケット21に変換する(ステップS502)。変換する際、パケット解析/生成部202は、パケット20にUSB機器300に割り振られている共通のUSBアドレス「A300」を含める。
Here, the case where the
PC本体100へのパケットがあるため(ステップS505のYes)、パケット解析/生成部202から指示を受けたUSBデバイスコントローラ201は、PC本体100へパケットを送信する(ステップS506)。
Since there is a packet to the PC main body 100 (Yes in step S505), the
USBデバイスコントローラ201は、PC本体100へパケット21を送信する(ステップS506)。パケットが送信されると、パケット解析/生成部202は、処理を終了する。
The
本実施形態のUSBパケット変換装置を使用した場合、複数のUSB機器のUSBアドレスを1つのUSBアドレスに変換することで、アドレスリソースが有効活用される。また、複数のUSB機器のパケットを排他的に送受信することもできるため、使用するユーザは、USB機器を抜き差しすること無く、USB機器の切り替え動作ができる。 When the USB packet conversion apparatus according to the present embodiment is used, address resources are effectively used by converting the USB addresses of a plurality of USB devices into one USB address. Further, since packets of a plurality of USB devices can be exclusively transmitted / received, the user who uses the device can perform the switching operation of the USB devices without connecting / disconnecting the USB devices.
実施形態2.
次に、本発明の第2の実施形態を説明する。図12は、本発明によるUSBパケット変換装置の第2の実施形態の構成例を示すシステム構成図である。
Next, a second embodiment of the present invention will be described. FIG. 12 is a system configuration diagram showing a configuration example of the second embodiment of the USB packet conversion apparatus according to the present invention.
第1の実施形態の構成例と異なる点は、USBパケット変換器200に4台のUSB機器300〜600が接続されている点である。なお、図12には4台のUSB機器が示されているが、USB機器の台数は4台以上であってもよい。
The difference from the configuration example of the first embodiment is that four
図13は、第2の実施形態におけるUSBパケット変換器200の構成例を示すブロック図である。第1の実施形態の構成例と異なる点は、USBホストコントローラ203とUSB機器との間に、USBハブ(HUB)コントローラ205が設けられている点である。
FIG. 13 is a block diagram illustrating a configuration example of the
USBハブコントローラ205は、USB機器接続ポート数を増やす機能を有する。ユーザは、USBホストコントローラ203のみではUSB機器接続ポート数が足りない時でも、USBハブコントローラ205を使用すれば、接続ポート数を増やすことができる。
The
なお、本発明の第2の実施形態におけるUSBパケット変換器200の接続処理、送受信処理および変換処理の各動作は、第1の実施形態における説明と同様なため説明を省略する。
Note that the operations of the connection process, the transmission / reception process, and the conversion process of the
次に、本発明の概要を説明する。図14は、USBパケット変換装置の概要を示すブロック図である。本発明によるUSBパケット変換装置1は、複数のUSB機器が接続されるUSBパケット変換装置であって、複数のUSB機器とパケットを送受信するUSB機器接続部4(例えば、USBホストコントローラ203)と、ホスト端末(例えば、PC本体100)とパケットを送受信する端末接続部2(例えば、USBデバイスコントローラ201)と、ホスト端末に向けられたパケットをUSB機器からUSB機器接続部4が受信した場合、複数のUSB機器に共通の識別情報を当該パケットに付加して、端末接続部2に出力する制御部3(例えば、パケット解析/生成部202)とを備える。
Next, the outline of the present invention will be described. FIG. 14 is a block diagram showing an outline of the USB packet conversion apparatus. A USB packet conversion device 1 according to the present invention is a USB packet conversion device to which a plurality of USB devices are connected, and a USB device connection unit 4 (for example, a USB host controller 203) that transmits and receives packets to and from a plurality of USB devices. When the USB device connection unit 4 receives a packet directed to the host terminal from the terminal connection unit 2 (for example, the USB device controller 201) that transmits / receives a packet to / from the host terminal (for example, the PC main body 100), a plurality of packets are received. A control unit 3 (for example, a packet analysis / generation unit 202) that adds identification information common to the USB devices to the packet and outputs the same to the
そのような構成により、USBパケット変換装置は、エンドポイントに関する情報を使用せずに、アドレスリソースを有効活用できる。 With such a configuration, the USB packet conversion device can effectively use address resources without using information on the endpoint.
USBパケット変換装置1は、USB機器接続部4とUSB機器との間にUSBハブを備えていてもよい。 The USB packet conversion device 1 may include a USB hub between the USB device connection unit 4 and the USB device.
そのような構成により、USBパケット変換装置は、USB機器接続ポート数を増やすことができる。 With such a configuration, the USB packet conversion device can increase the number of USB device connection ports.
1 USBパケット変換装置
2 端末接続部
3 制御部
4 USB機器接続部
11〜21 パケット
100 PC本体
200 USBパケット変換器
201 USBデバイスコントローラ
202 パケット解析/生成部
203 USBホストコントローラ
204 ネゴシエーション情報記憶部
205 USBハブコントローラ
300〜600 USB機器
DESCRIPTION OF SYMBOLS 1
Claims (4)
前記複数のUSB機器とパケットを送受信するUSB機器接続部と、
ホスト端末とパケットを送受信する端末接続部と、
前記ホスト端末に向けられたパケットをUSB機器から前記USB機器接続部が受信した場合、前記複数のUSB機器に共通の識別情報を当該パケットに付加して、前記端末接続部に出力する制御部とを備える
ことを特徴とするUSBパケット変換装置。 A USB packet conversion device to which a plurality of USB devices are connected,
A USB device connection unit for transmitting and receiving packets to and from the plurality of USB devices;
A terminal connection for transmitting and receiving packets to and from the host terminal;
A control unit that adds identification information common to the plurality of USB devices to the packet and outputs the packet to the terminal connection unit when the USB device connection unit receives a packet directed to the host terminal from the USB device; A USB packet conversion device comprising:
請求項1記載のUSBパケット変換装置。 The USB packet conversion device according to claim 1, wherein the USB packet conversion device includes a USB hub between the USB device connection unit and the USB device.
ホスト端末に向けられたパケットをUSB機器から受信した場合、前記複数のUSB機器に共通の識別情報を付加した上で当該パケットを前記ホスト端末へ送信する
ことを特徴とするUSBパケット変換方法。 A USB packet conversion method executed in a USB packet conversion apparatus to which a plurality of USB devices are connected,
When a packet directed to a host terminal is received from a USB device, the packet is transmitted to the host terminal after adding common identification information to the plurality of USB devices.
USBパケット変換装置に、
前記複数のUSB機器とパケットを送受信するUSBパケット送受信処理、
ホスト端末とパケットを送受信する端末パケット送受信処理、および
前記ホスト端末に向けられたパケットをUSB機器から受信した場合、前記複数のUSB機器に共通の識別情報を付加した上で当該パケットを前記ホスト端末へ送信するパケット変換処理
を実行させるためのUSBパケット変換プログラム。 A USB packet conversion program executed in a USB packet conversion apparatus to which a plurality of USB devices are connected,
USB packet converter
USB packet transmission / reception processing for transmitting / receiving packets to / from the plurality of USB devices,
A terminal packet transmission / reception process for transmitting / receiving a packet to / from a host terminal; and when a packet directed to the host terminal is received from a USB device, the host terminal is added with identification information common to the plurality of USB devices. USB packet conversion program for executing packet conversion processing to be sent to
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013050337A JP2014178719A (en) | 2013-03-13 | 2013-03-13 | Usb packet conversion device, usb packet conversion method and usb packet conversion program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013050337A JP2014178719A (en) | 2013-03-13 | 2013-03-13 | Usb packet conversion device, usb packet conversion method and usb packet conversion program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014178719A true JP2014178719A (en) | 2014-09-25 |
Family
ID=51698641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013050337A Pending JP2014178719A (en) | 2013-03-13 | 2013-03-13 | Usb packet conversion device, usb packet conversion method and usb packet conversion program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014178719A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166463A (en) * | 2019-05-27 | 2019-08-23 | 中国银联股份有限公司 | A kind of message transmissions conversion method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06139178A (en) * | 1992-10-27 | 1994-05-20 | Fujitsu Ltd | Device for extending storage device |
JP2003256351A (en) * | 2002-03-04 | 2003-09-12 | Yamaha Corp | Usb hub |
JP2006134093A (en) * | 2004-11-05 | 2006-05-25 | Toshiba Tec Corp | Usb device and usb system |
JP2006243988A (en) * | 2005-03-02 | 2006-09-14 | Kyocera Mita Corp | Usb device, usb system and usb control program |
-
2013
- 2013-03-13 JP JP2013050337A patent/JP2014178719A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06139178A (en) * | 1992-10-27 | 1994-05-20 | Fujitsu Ltd | Device for extending storage device |
JP2003256351A (en) * | 2002-03-04 | 2003-09-12 | Yamaha Corp | Usb hub |
JP2006134093A (en) * | 2004-11-05 | 2006-05-25 | Toshiba Tec Corp | Usb device and usb system |
JP2006243988A (en) * | 2005-03-02 | 2006-09-14 | Kyocera Mita Corp | Usb device, usb system and usb control program |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166463A (en) * | 2019-05-27 | 2019-08-23 | 中国银联股份有限公司 | A kind of message transmissions conversion method and device |
CN110166463B (en) * | 2019-05-27 | 2021-08-27 | 中国银联股份有限公司 | Message transmission conversion method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8489795B2 (en) | PCI-Express communication system and PCI-Express communication method | |
CN109445905B (en) | Virtual machine data communication method and system and virtual machine configuration method and device | |
US10261930B2 (en) | System, device and method for transmitting signals between different communication interfaces | |
US8793424B2 (en) | Switch apparatus | |
EP2570913A1 (en) | Method and system for accessing storage device | |
US20170124018A1 (en) | Method and Device for Sharing PCIE I/O Device, and Interconnection System | |
CN104579796A (en) | Remote network equipment maintenance method, remote network equipment maintenance system and terminal | |
CN113934674B (en) | PCIE (peripheral component interface express) bus-based command transmission method and system on chip | |
US10616348B2 (en) | System and method for providing multiple IPMI serial over LAN (SOL) sessions in management controller stack | |
CN104461716A (en) | Access method of multi-nucleus heterogeneous system and multi-nucleus heterogeneous system | |
KR20210000648A (en) | Method, apparatus, electronic device and computer readable storage medium for supporting communication among chips | |
CN204117142U (en) | Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host | |
CN104461978B (en) | Method and device for unidirectional data transmission | |
CN101582057B (en) | Method, device and system for controlling communication and transmission of human interface device | |
US20150350014A1 (en) | Networking implementation using a converged high speed input/output fabric technology | |
CN109460379B (en) | Serial port selection method and switching device | |
JP2014178719A (en) | Usb packet conversion device, usb packet conversion method and usb packet conversion program | |
TW201426528A (en) | Interface switching system and method for switching operation mode | |
CN103686323A (en) | Multiprocessor communication method and system | |
CN102932193A (en) | Network device, management terminal and configuration management system | |
TWI450098B (en) | Host electronic device and host determination method | |
KR20210045200A (en) | Computer program for driving DDS data conversion and transmission device | |
JP6522537B2 (en) | Command processing device and program | |
KR101984150B1 (en) | Control method and control device | |
JP7371782B2 (en) | USB connection control system, USB connection control method, USB-network conversion device and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20140729 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160205 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20161124 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161227 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170808 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20180213 |