JP2004062347A - Usb device and usb system - Google Patents

Usb device and usb system Download PDF

Info

Publication number
JP2004062347A
JP2004062347A JP2002217245A JP2002217245A JP2004062347A JP 2004062347 A JP2004062347 A JP 2004062347A JP 2002217245 A JP2002217245 A JP 2002217245A JP 2002217245 A JP2002217245 A JP 2002217245A JP 2004062347 A JP2004062347 A JP 2004062347A
Authority
JP
Japan
Prior art keywords
usb
usb device
identification information
host
device identification
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.)
Withdrawn
Application number
JP2002217245A
Other languages
Japanese (ja)
Inventor
Tomomi Nagata
永田 智巳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002217245A priority Critical patent/JP2004062347A/en
Publication of JP2004062347A publication Critical patent/JP2004062347A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a USB device allowing a host to correctly identify each USB device without having to allocate a different serial number to each USB device. <P>SOLUTION: The USB device 5 is connected to a USB host 6 by a USB 7 and comprises a receiver 2 for receiving from the USB host 6 a request command requesting USB device identification information for identifying the USB device 5; an identification information generator 1 for generating the USB device identification information according to the serial number 4 imparted to the USB device 5 according to the request command received by the receiver 2; and a transmitter 3 for transmitting to the USB host 6 the USB device identification information generated by the USB device identification information generator 1. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、USBのデバイス機能を有するUSBデバイスおよびUSBシステムに関する。
【0002】
【従来の技術】
USB(Universal Serial Bus)においては、1台のホストにより、USBによって接続されているすべてのUSBデバイスを管理する。そのため、接続されたUSBデバイスをホスト側で識別するために、USBデバイスにはデバイスを特定するための識別情報が保持されている。
【0003】
デバイス識別情報取得要求コマンドをUSBデバイスがホストから受信すると、USBデバイスは自己の識別情報をホストに対して送信する。ホスト側は、USBデバイスから送信された識別情報によって、接続されたUSBデバイスが何であるかを特定する。
【0004】
USBデバイスが保持する識別情報には、製造者を示すベンダーID、製品の型番を示すプロダクトID、機器固有のシリアル番号が含まれている。同一型番のUSBデバイスでは、同一のベンダーID、同一のプロダクトIDを識別情報として保持するため、同一型番のUSBデバイスを複数台ホストに接続した場合には、ホストは、接続されたUSBデバイスをシリアル番号によって識別する。
【0005】
【発明が解決しようとする課題】
しかしながら、USBの規格においてシリアル番号をUSBデバイスが保持することは必須ではないために、シリアル番号を1台ずつ変更してUSBデバイスに付与するためのコストの問題上、1台ずつ変更したシリアル番号が付与されず、シリアル番号が同一であるUSBデバイス、もしくはシリアル番号を保持していないUSBデバイスが存在している。
【0006】
このように、シリアル番号が同一であり、かつ型番も同一であるUSBデバイス、もしくはシリアル番号を保持しておらず、かつ型番が同一であるUSBデバイスが複数台ホストに接続されると、シリアル番号によっては、接続されたUSBデバイスをホストが識別することができず、全く同一のUSBデバイスとして誤った識別を行い、接続されたUSBデバイスが正常に動作しないという問題がある。
【0007】
本発明は係る問題を解決するためになされたものであり、その目的は、同一型番のUSBデバイスを複数台ホストに接続する場合に、USBデバイスに対して1台ずつ異なるシリアル番号を割り当てることなく、またホスト側で対応することなく、ホストがUSBデバイスを正常に識別することができるUSBデバイスおよびUSBシステムを提供することにある。
【0008】
【課題を解決するための手段】
係る目的を達成するために本発明に係るUSBデバイスは、USBによってUSBホストと接続されたUSBデバイスであって、前記USBデバイスを識別するためのUSBデバイス識別情報を要求する要求コマンドを前記USBホストから受信する受信器と、前記受信器によって受信された前記要求コマンドに応じて、前記USBデバイスに付与されたシリアル番号に基づいて前記USBデバイス識別情報を生成するUSBデバイス識別情報生成器と、前記USBデバイス識別情報生成器によって生成された前記USBデバイス識別情報を前記USBホストへ送信する送信器とを具備することを特徴とする。
【0009】
本発明に係るUSBシステムは、USBホストとUSBによって前記USBホストと接続された第1USBデバイスを具備するUSBシステムであって、前記第1USBデバイスは、前記第1USBデバイスを識別するための第1USBデバイス識別情報を要求する第1要求コマンドを前記USBホストから受信する第1受信器と、前記第1受信器によって受信された前記第1要求コマンドに応じて、前記第1USBデバイスに付与された第1シリアル番号と前記USBホストが前記第1USBデバイスに対して割り当てた第1アドレス番号とに基づいて前記第1USBデバイス識別情報を生成する第1USBデバイス識別情報生成器と、前記第1USBデバイス識別情報生成器によって生成された前記第1USBデバイス識別情報を前記USBホストへ送信する第1送信器とを有していることを特徴とする。
【0010】
本発明に係る他のUSBデバイスは、USBによってUSBホストと接続されたUSBデバイスであって、前記USBデバイスを識別するためのUSBデバイス識別情報を要求する要求コマンドを前記USBホストから受信する受信器と、前記受信器によって受信された前記要求コマンドに応じて、前記USBデバイスに付与されたシリアル番号と前記USBホストが前記USBデバイスに対して割り当てたアドレス番号とのいずれかを前記USBデバイス識別情報として選択するUSBデバイス識別情報選択器と、前記USBデバイス識別情報選択器によって選択された前記シリアル番号と前記アドレス番号とのいずれかを前記USBデバイス識別情報として前記USBホストへ送信する送信器とを具備することを特徴とする。
【0011】
【発明の実施の形態】
本発明に係るUSBデバイスにおいては、USBデバイスを識別するためのUSBデバイス識別情報がUSBデバイスに付与されたシリアル番号に基づいて生成される。このため、同一の型番のUSBデバイスに互いに同一のシリアル番号が付与されていても、各USBデバイスごとに互いに異なるUSBデバイス識別情報を生成することができる。その結果、同一型番のUSBデバイスを複数台USBホストに接続することができる。
【0012】
前記USBデバイス識別情報生成器は、任意の乱数に基づいて前記USBデバイス識別情報を生成することが好ましい。
【0013】
前記USBデバイス識別情報生成器は、前記シリアル番号と前記乱数とを結合させることによって前記USBデバイス識別情報を生成することが好ましい。
【0014】
前記USBデバイスは、前記乱数を発生させる乱数発生手段をさらに具備していることが好ましい。
【0015】
前記USBデバイス識別情報生成器は、前記USBデバイスの製造業者または販売納入業者を特定するベンダーIDと前記USBデバイスの種類を特定するプロダクトIDとに基づいて前記USBデバイス識別情報を生成することが好ましい。
【0016】
前記USBデバイスは、前記シリアル番号と前記ベンダーIDと前記プロダクトIDとが格納されるメモリ領域を有していることが好ましい。
【0017】
本発明に係るUSBシステムにおいては、第1USBデバイスを識別するための第1USBデバイス識別情報が、第1USBデバイスに付与された第1シリアル番号とUSBホストが第1USBデバイスに対して割り当てた第1アドレス番号とに基づいて生成される。このため、同一の型番のUSBデバイスに互いに同一のシリアル番号が付与されていても、各USBデバイスごとに互いに異なるUSBデバイス識別情報を生成することができる。その結果、同一型番のUSBデバイスを複数台USBホストに接続することができる。
【0018】
前記第1USBデバイスは、前記第1アドレス番号を格納するための第1アドレスレジスタをさらに有していることが好ましい。
【0019】
前記USBシステムは、前記USBによって前記USBホストと接続された第2USBデバイスをさらに具備しており、前記第2USBデバイスは、前記第2USBデバイスを識別するための第2USBデバイス識別情報を要求する第2要求コマンドを前記USBホストから受信する第2受信器と、前記第2受信器によって受信された前記第2要求コマンドに応じて、前記第2USBデバイスに付与された第2シリアル番号と前記USBホストが前記第2USBデバイスに対して割り当てた第2アドレス番号とに基づいて前記第2USBデバイス識別情報を生成する第2USBデバイス識別情報生成器と、前記第2USBデバイス識別情報生成器によって生成された前記第2USBデバイス識別情報を前記USBホストへ送信する第2送信器とを有していることが好ましい。
【0020】
前記第2USBデバイスは、前記第2アドレス番号を格納するための第2アドレスレジスタをさらに有していることが好ましい。
【0021】
前記第1USBデバイスに付与された前記第1シリアル番号と前記第2USBデバイスに付与された前記第2シリアル番号とは、互いに同一になっており、前記USBホストが前記第1USBデバイスに対して割り当てる前記第1アドレス番号と前記USBホストが前記第2USBデバイスに対して割り当てる前記第2アドレス番号とは、互いに異なっていることが好ましい。
【0022】
前記第1受信器は、前記第1アドレス番号を前記USBホストから受信して前記第1アドレスレジスタに格納することが好ましい。
【0023】
前記第1USBデバイス識別情報生成器は、前記第1シリアル番号と前記第1アドレス番号とを結合させることによって前記第1USBデバイス識別情報を生成することが好ましい。
【0024】
本発明に係る他のUSBデバイスにおいては、USBデバイスに付与されたシリアル番号とUSBホストがUSBデバイスに対して割り当てたアドレス番号とのいずれかがUSBデバイス識別情報としてUSBホストへ送信される。このため、シリアル番号を記録したROMの接続の有無に応じて、シリアル番号とアドレス番号とのいずれかをUSBデバイス識別情報として選択することができる。
【0025】
前記USBデバイスは、前記シリアル番号が格納される記録デバイスをさらに具備していることが好ましい。
【0026】
前記USBデバイスは、前記アドレス番号を格納するためのアドレスレジスタをさらに具備していることが好ましい。
【0027】
前記USBデバイスは、USB形式のデータとATAPI形式のデータとを相互に変換するATAPIブリッジをさらに具備しており、前記USBデバイスは、前記ATAPI形式のデータに基づいて動作するATAPIデバイスと前記ATAPIブリッジを介して接続されていることが好ましい。
【0028】
以下、図面を参照して本発明の実施の形態を説明する。
【0029】
(実施の形態1)
図1は、実施の形態1に係るUSBシステム100の構成を示すブロック図である。USBシステム100は、USBホスト6とUSB7によってUSBホスト6と接続されたUSBデバイス5とを備えている。USBホスト6は、パーソナルコンピュータによって構成されている。USBホスト6には、USBポート26および27が設けられている。USBポート26には、USB7が接続されている。
【0030】
USBデバイス5は、USBインターフェース(I/F)チップ13を有している。USBI/Fチップ13は、受信器2を有している。受信器2は、USBデバイス5を識別するためのUSBデバイス識別情報を要求する要求コマンドをUSBホスト6から受信する。
【0031】
USBI/Fチップ13は、メモリ11を有している。メモリ11には、USBデバイス5を識別するための識別情報31が格納されている。識別情報31には、USBデバイス5の製造業者または販売納入業者を特定するベンダーID9とUSBデバイス5の型番を特定するプロダクトID10とシリアル番号4とが含まれている。シリアル番号4は、USBの規格においてシリアル番号をUSBデバイス5が保持することは必須ではないために、シリアル番号を1台ずつ変更してUSBデバイスに付与するためのコストの問題上、同一のプロダクトID10を有するUSBデバイス5に付与されたシリアル番号4は互いに同一になっている。
【0032】
USBI/Fチップ13には、識別情報生成器1が設けられている。識別情報生成器1は、受信器2によって受信された要求コマンドに応じて、USBデバイス5に付与されたシリアル番号4に基づいてUSBデバイス識別情報を生成する。
【0033】
USBI/Fチップ13は、送信データ格納領域30を有している。送信データ格納領域30には、識別情報生成器1によって生成されたUSBデバイス識別情報が格納される。USBI/Fチップ13には、アドレスレジスタ12が設けられている。アドレスレジスタ12には、USBホスト6がUSBデバイス5に対して割り当てたアドレス番号が格納される。
【0034】
USBI/Fチップ13は、送信データ格納領域30に格納されたUSBデバイス識別情報をUSBホスト6へ送信するために設けられた転送開始レジスタ29を有している。USBI/Fチップ13には、USBデバイス5の全体の動作を制御するためのCPU28が設けられている。
【0035】
USBI/Fチップ13は、乱数発生器8を有している。乱数発生器8は、識別情報生成器1がUSBデバイス識別情報を生成するための任意の乱数を発生する。
【0036】
USBI/Fチップ13には、送信器3が設けられている。送信器3は、識別情報生成器1によって生成されたUSBデバイス識別情報をUSBホスト6へ送信する。
【0037】
このように構成されたUSBシステム100の動作を説明する。図2は、実施の形態1に係るUSBシステム100に設けられたUSBデバイス5の動作を示すフローチャートである。メモリ11に格納されている識別情報31の値として、ベンダーID9の値は「1111」であり、プロダクトID10の値は「2222」であり、シリアル番号4の値は「0000」であるとして説明する。
【0038】
まず、受信器2は、USBデバイス5を識別するためのUSBデバイス識別情報を要求する要求コマンドをUSBホスト6から受信する(ステップS1)。そして、識別情報生成器1は、メモリ11に格納されたベンダーID9とプロダクトID10とシリアル番号4とのいずれかを読み出す(ステップS2)。次に、識別情報生成器1は、メモリ11から読み出した識別情報31がシリアル番号4であるか否かを判断する(ステップS3)。
【0039】
メモリ11から読み出した識別情報31がシリアル番号4でないと判断したときは(ステップS3においてNO)、識別情報生成器1は、メモリ11から読み出したベンダーID9またはプロダクトID10を送信データ格納領域30へ書き込む(ステップS6)。
【0040】
メモリ11から読み出した識別情報31がシリアル番号4であると識別情報生成器1が判断したときは(ステップS3においてYES)、乱数発生器8は任意の乱数をソフトウェア処理によって発生する。乱数発生器8によって発生した乱数の値は「33」であるとする(ステップS4)。その後、識別情報生成器1は、メモリ11から読み出したシリアル番号の値「0000」と乱数発生器8によって発生した乱数の値は「33」とを結合した値「330000」を送信データ格納領域30へ書き込む(ステップS5)。
【0041】
メモリ11から読み出したベンダーID9またはプロダクトID10を送信データ格納領域30へ書き込んだとき(ステップS6)、またはメモリ11から読み出したシリアル番号の値と乱数発生器8によって発生した乱数の値とを結合した値を送信データ格納領域30へ書き込んだとき(ステップS5)は、ベンダーID9とプロダクトID10とシリアル番号4とのすべてをメモリ11から読み出したか否かを判断する(ステップS7)。ベンダーID9とプロダクトID10とシリアル番号4とのすべてを未だメモリ11から読み出していないと判断したときは(ステップS7においてNO)、ステップS2へ戻る。
【0042】
ベンダーID9とプロダクトID10とシリアル番号4とのすべてをメモリ11から読み出したと判断したときは(ステップS7においてYES)、送信器3は、転送開始レジスタ29をセットすることにより、送信データ格納領域30に書き込まれたベンダーID9(「1111」)、プロダクトID10(「2222」)およびシリアル番号(「330000」)をUSBデバイス識別情報としてUSBホスト6へ送信する(ステップS8およびステップS9)。
【0043】
以上のように実施の形態1によれば、USBデバイス5を識別するためのUSBデバイス識別情報がUSBデバイス5に付与されたシリアル番号4に基づいて生成される。このため、同一の型番のUSBデバイス5に互いに同一のシリアル番号4が付与されていても、各USBデバイス5ごとに互いに異なるUSBデバイス識別情報を生成することができる。その結果、同一型番のUSBデバイス5を複数台USBホスト6に接続することができる。
【0044】
(実施の形態2)
図3は、実施の形態2に係るUSBシステム100Aの構成を示すブロック図である。図1および図2を参照して前述したUSBシステム100の構成要素と同一の構成要素には同一の参照符号を付している。従って、これらの構成要素の詳細な説明は省略する。
【0045】
USBシステム100Aは、USBホスト6とUSB7によってそれぞれ接続された2台のUSBデバイス5とを備えている。USBホスト6は、パーソナルコンピュータによって構成されている。USBホスト6は、USBポート26および27を有している。USBポート26にはUSB7を介して一方のUSBデバイス5が接続されており、USBポート27にはUSB7を介して他方のUSBデバイス5が接続されている。
【0046】
各USBデバイス5は、USBインターフェース(I/F)チップ13をそれぞれ有している。各USBI/Fチップ13は、受信器2をそれぞれ有している。各受信器2は、各USBデバイス5を識別するためのUSBデバイス識別情報を要求する要求コマンドをUSBホスト6からそれぞれ受信する。
【0047】
各USBI/Fチップ13は、メモリ11をそれぞれ有している。各メモリ11には、各USBデバイス5を識別するための識別情報31がそれぞれ格納されている。識別情報31には、USBデバイス5の販売納入業者を特定するベンダーID9とUSBデバイス5の型番を特定するプロダクトID10とシリアル番号4とがそれぞれ含まれている。各USBデバイス5の型番は互いに同一であるため、各プロダクトID10の値は互いに同一である。
【0048】
シリアル番号4は、USBの規格においてシリアル番号をUSBデバイス5が保持することは必須ではないために、シリアル番号を1台ずつ変更してUSBデバイスに付与するためのコストの問題上、同一のプロダクトID10を有するUSBデバイス5に付与されたシリアル番号4は互いに同一になっている。
【0049】
各USBI/Fチップ13には、識別情報生成器1がそれぞれ設けられている。各識別情報生成器1は、各受信器2によってそれぞれ受信された要求コマンドに応じて、各USBデバイス5にそれぞれ付与されたシリアル番号4に基づいてUSBデバイス識別情報をそれぞれ生成する。
【0050】
各USBI/Fチップ13には、送信データ格納領域30がそれぞれ設けられている。各送信データ格納領域30には、各識別情報生成器1によって生成されたUSBデバイス識別情報がそれぞれ格納される。各USBI/Fチップ13は、アドレスレジスタ12をそれぞれ有している。各アドレスレジスタ12には、USBホスト6が各USBデバイス5に対して割り当てたアドレス番号がそれぞれ格納される。各USBI/Fチップ13は、各送信データ格納領域30に格納されたUSBデバイス識別情報をUSBホスト6へ送信するために設けられた転送開始レジスタ29をそれぞれ有している。各USBI/Fチップ13には、USBデバイス5の全体の動作を制御するためのCPU28がそれぞれ設けられている。
【0051】
各USBI/Fチップ13には、送信器3がそれぞれ設けられている。各送信器3は、識別情報生成器1によって生成されたUSBデバイス識別情報をUSBホスト6へそれぞれ送信する。
【0052】
このように構成されたUSBシステム100Aの動作を説明する。図4は、実施の形態2に係るUSBシステム100Aに設けられたUSBデバイス5の動作を示すフローチャートである。各メモリ11にそれぞれ格納されている識別情報31の値として、各ベンダーID9の値は「1111」であり、各プロダクトID10の値は「2222」であり、各シリアル番号4の値は「0000」であるとして説明する。
【0053】
USBホスト6の電源が投入されると、USBホスト6は、一方のUSBデバイス5と他方のUSBデバイス5とに互いに異なるアドレス番号、例えば、アドレス番号「01」およびアドレス番号「02」をそれぞれ送信する。一方のUSBデバイス5は、USBホスト6から送信されたアドレス番号「01」を一方のアドレスレジスタ12へ格納し、他方のUSBデバイス5は、USBホスト6から送信されたアドレス番号「02」を他方のアドレスレジスタ12へ格納する。
【0054】
次に、一方のUSBデバイス5に設けられた受信器2は、一方のUSBデバイス5を識別するためのUSBデバイス識別情報を要求する要求コマンドをUSBホスト6から受信する(ステップS1)。そして、一方のUSBデバイス5に設けられた識別情報生成器1は、一方のメモリ11に格納されたベンダーID9とプロダクトID10とシリアル番号4とのいずれかを読み出す(ステップS2)。次に、一方の識別情報生成器1は、一方のメモリ11から読み出した識別情報31がシリアル番号4であるか否かを判断する(ステップS3)。
【0055】
一方のメモリ11から読み出した識別情報31がシリアル番号4でないと判断したときは(ステップS3においてNO)、一方の識別情報生成器1は、一方のメモリ11から読み出したベンダーID9またはプロダクトID10を一方の送信データ格納領域30へ書き込む(ステップS6)。
【0056】
一方のメモリ11から読み出した識別情報31がシリアル番号4であると判断したときは(ステップS3においてYES)、一方の識別情報生成器1は一方のアドレスレジスタ12に格納されたアドレス番号の値「01」を取得する(ステップS11)。そして、一方の識別情報生成器1は、一方のメモリ11から読み出したシリアル番号の値「0000」と一方のアドレスレジスタ12から取得したアドレス番号の値「01」とを結合した値「010000」を送信データ格納領域30へ書き込む(ステップS12)。
【0057】
一方のメモリ11から読み出したベンダーID9またはプロダクトID10を送信データ格納領域30へ書き込んだとき(ステップS6)、またはメモリ11から読み出したシリアル番号の値とアドレスレジスタ12から取得したアドレス番号の値とを結合した値を送信データ格納領域30へ書き込んだとき(ステップS12)は、ベンダーID9とプロダクトID10とシリアル番号4とのすべてを一方のメモリ11から読み出したか否かを判断する(ステップS7)。ベンダーID9とプロダクトID10とシリアル番号4とのすべてを未だメモリ11から読み出していないと判断したときは(ステップS7においてNO)、ステップS2へ戻る。
【0058】
ベンダーID9とプロダクトID10とシリアル番号4とのすべてをメモリ11から読み出したと判断したときは(ステップS7においてYES)、一方の送信器3は、一方の転送開始レジスタ29をセットすることにより、送信データ格納領域30に書き込まれたベンダーID9(「1111」)、プロダクトID10(「2222」)およびシリアル番号(「010000」)をUSBデバイス識別情報としてUSBホスト6へ送信する(ステップS8およびステップS9)。
【0059】
他方のUSBデバイス5も前述した一方のUSBデバイス5と同様に動作する。他方のUSBデバイス5に設けられた識別情報生成器1は、他方のメモリ11から読み出したシリアル番号の値「0000」と他方のアドレスレジスタ12から取得したアドレス番号の値「02」とを結合した値「020000」を送信データ格納領域30へ書き込む。他方のUSBデバイス5に設けられた送信器3は、他方の転送開始レジスタ29をセットすることにより、送信データ格納領域30に書き込まれたベンダーID9(「1111」)、プロダクトID10(「2222」)およびシリアル番号(「020000」)をUSBデバイス識別情報としてUSBホスト6へ送信する。
【0060】
アドレス番号はUSBホスト6に接続されたUSBデバイス5間では同一になることはないため、同一型番で同一のシリアル番号(この場合、「0000」)を有する複数台のUSBデバイス5をUSBホスト6に接続した場合でも、各USBデバイス5がそれぞれ保持するシリアル番号に、UBSホスト6から割り当てられたアドレス番号を付加して新たなシリアル番号を生成することにより、シリアル番号が同一になることはない。
【0061】
以上のように実施の形態2によれば、USBデバイス5を識別するためのUSBデバイス識別情報が、USBデバイス5に付与されたシリアル番号とUSBホスト6がUSBデバイス5に対して割り当てたアドレス番号とに基づいて生成される。このため、同一の型番のUSBデバイス5に互いに同一のシリアル番号が付与されていても、各USBデバイス5ごとに互いに異なるUSBデバイス識別情報を生成することができる。その結果、同一型番のUSBデバイス5を複数台USBホスト6に接続することができる。
【0062】
(実施の形態3)
図5は、実施の形態3に係るUSBシステム100Bの構成を示すブロック図である。図1および図2を参照して前述したUSBシステム100の構成要素と同一の構成要素には同一の参照符号を付している。従って、これらの構成要素の詳細な説明は省略する。
【0063】
USBシステム100Bは、USBホスト6とUSB7によってUSBホスト6と接続されたUSBブリッジデバイス21とUSBブリッジデバイス21にAIAPIケーブル31によって接続されたAIAPIデバイス25とを備えている。AIAPIデバイス25は、ATAPI形式のデータに基づいて動作する。
【0064】
USBホスト6は、パーソナルコンピュータによって構成されている。USBホスト6は、USBポート26および27を有している。USBポート26には、USB7が接続されている。
【0065】
USBブリッジデバイス21は、USBインターフェース(I/F)チップ22を有している。USBインターフェースチップ22は、受信器2を有している。受信器2は、USBブリッジデバイス21を識別するためのUSBデバイス識別情報を要求する要求コマンドをUSBホスト6から受信する。
【0066】
USBI/Fチップ22は、メモリ11を有している。メモリ11には、USBブリッジデバイス21を識別するための識別情報が格納されている。識別情報には、USBブリッジデバイス21の販売納入業者を特定するベンダーID9とUSBブリッジデバイス21の型番を特定するプロダクトID10とが含まれている。
【0067】
USBブリッジデバイス21には、USBI/Fチップ22と接続されたROM23が設けられている。ROM23には、シリアル番号が格納されている。シリアル番号は、USBの規格においてシリアル番号をUSBブリッジデバイス21が保持することは必須ではないために、シリアル番号を1台ずつ変更してUSBデバイスに付与するためのコストの問題上、同一のプロダクトID10を有するUSBブリッジデバイス21に付与されたシリアル番号は互いに同一になっている。
【0068】
USBI/Fチップ22は、アドレスレジスタ12を有している。アドレスレジスタ12には、USBホスト6がUSBブリッジデバイス21に対して割り当てたアドレス番号が格納される。
【0069】
USBI/Fチップ22には、選択器32が設けられている。選択器32は、受信器2によって受信された要求コマンドに応じて、ROM23に格納されたシリアル番号とアドレスレジスタ12に格納されたアドレス番号とのいずれかを選択する。
【0070】
USBI/Fチップ22には、送信データ格納領域30が設けられている。送信データ格納領域30には、選択器32によって選択されたシリアル番号とアドレス番号とのいずれかが格納される。
【0071】
USBI/Fチップ22は、送信データ格納領域30に格納されたシリアル番号とアドレス番号とのいずれかをUSBホスト6へ送信するために設けられた転送開始レジスタ29を有している。USBI/Fチップ22には、USBI/Fチップ22の全体の動作を制御するためのCPU28が設けられている。
【0072】
USBI/Fチップ22には、送信器3が設けられている。送信器3は、送信データ格納領域30に格納されたUSBデバイス識別情報をUSBホスト6へ送信する。
【0073】
USBブリッジデバイス21には、USBI/Fチップ22と接続され、ATAPIケーブル31を介してATAPIデバイス25と接続されたATAPIブリッジ24が設けられている。ATAPIブリッジ24は、USB形式のデータとATAPI形式のデータとを相互に変換する。
【0074】
このように構成されたUSBシステム100Bの動作を説明する。図6は、実施の形態3に係るUSBシステム100Bに設けられたUSBブリッジデバイス21の動作を示すフローチャートである。
【0075】
USBホスト6の電源が投入されると、USBホスト6は、USBブリッジデバイス21へアドレス番号を送信する。USBブリッジデバイス21は、USBホスト6から送信されたアドレス番号をアドレスレジスタ12へ格納する。
【0076】
そして、受信器2は、USBブリッジデバイス21を識別するためのUSBデバイス識別情報を要求する要求コマンドをUSBホスト6から受信する(ステップS1)。その後、選択器32は、メモリ11に格納されたベンダーID9とプロダクトID10とROM23に格納されたシリアル番号とのいずれかを読み出す(ステップS31)。次に、選択器32は、読み出した識別情報がシリアル番号4であるか否かを判断する(ステップS32)。
【0077】
読み出した識別情報がシリアル番号でないと判断したときは(ステップS32においてNO)、選択器32は、メモリ11から読み出したベンダーID9またはプロダクトID10を送信データ格納領域30へ書き込む(ステップS34)。
【0078】
読み出した識別情報がシリアル番号であると選択器32が判断したときは(ステップS32においてYES)、シリアル番号のROM23からの読み出しが正常に完了したか否かを判断する(ステップS33)。シリアル番号のROM23からの読み出しが正常に完了したと判断したときは(ステップS33においてYES)、選択器32は読み出したシリアル番号を送信データ格納領域30に書き込む。
【0079】
シリアル番号のROM23からの読み出しが正常に完了しなかったと判断したときは(ステップS33においてNO)、選択器32はアドレスレジスタ12に格納されたアドレス番号を取得する(ステップS35)。そして、選択器32は、取得したアドレス番号を送信データ格納領域30に書き込む(ステップS36)。
【0080】
メモリ11から読み出したベンダーID9またはプロダクトID10を送信データ格納領域30へ書き込んだとき(ステップS34)、または取得したアドレス番号を送信データ格納領域30に書き込んだとき(ステップS36)は、ベンダーID9とプロダクトID10とシリアル番号とのすべてを読み出したか否かを判断する(ステップS37)。ベンダーID9とプロダクトID10とシリアル番号とのすべてを未だ読み出していないと判断したときは(ステップS37においてNO)、ステップS31へ戻る。
【0081】
ベンダーID9とプロダクトID10とシリアル番号とのすべてを読み出したと判断したときは(ステップS37においてYES)、送信器3は、転送開始レジスタ29をセットすることにより、送信データ格納領域30に書き込まれたベンダーID9、プロダクトID10およびシリアル番号とアドレス番号とのいずれかをUSBデバイス識別情報としてUSBホスト6へ送信する(ステップS38およびステップS39)。
【0082】
このように、USBホスト6がUSBブリッジデバイス21を識別するために利用されるシリアル番号を、USBブリッジデバイス21がUSBホスト6に対して送信するときに、シリアル番号を記録したROM23が接続され、ROM23から正常にシリアル番号が読み出せた場合には、読み出したシリアル番号をUSBホスト6へ送信し、シリアル番号を記録したROM23が接続されておらず、正常にシリアル番号が読み出せなかった場合には、アドレスレジスタ12に格納されているUSBホスト6から割り当てられたアドレス番号をシリアル番号として、USBホスト6へ送信する。
【0083】
これにより、USBブリッジデバイスを開発する上で、様々なATAPIデバイスを接続する場合に、一台ずつ個別にシリアル番号を割り当てたい場合でも、シリアル番号を必要としない場合でも、シリアル番号を記録したROMの接続の有無により実現可能であり、ブリッジデバイス上のファームウェアを変更することなく対応することができる。
【0084】
以上のように実施の形態3によれば、USBブリッジデバイス21に付与されたシリアル番号とUSBホスト6がUSBブリッジデバイス21に対して割り当てたアドレス番号とのいずれかがUSBデバイス識別情報としてUSBホスト6へ送信される。このため、シリアル番号を記録したROM23の接続の有無に応じて、シリアル番号とアドレス番号とのいずれかをUSBデバイス識別情報として選択することができる。
【0085】
【発明の効果】
以上のように本発明によれば、同一型番のUSBデバイスを複数台ホストに接続する場合に、USBデバイスに対して1台ずつ異なるシリアル番号を割り当てることなく、またホスト側で対応することなく、ホストがUSBデバイスを正常に識別することができるUSBデバイスおよびUSBシステムを提供することができる。
【図面の簡単な説明】
【図1】実施の形態1に係るUSBシステムの構成を示すブロック図
【図2】実施の形態1に係るUSBシステムに設けられたUSBデバイスの動作を示すフローチャート
【図3】実施の形態2に係るUSBシステムの構成を示すブロック図
【図4】実施の形態2に係るUSBシステムに設けられたUSBデバイスの動作を示すフローチャート
【図5】実施の形態3に係るUSBシステムの構成を示すブロック図
【図6】実施の形態3に係るUSBシステムに設けられたUSBブリッジデバイスの動作を示すフローチャート
【符号の説明】
1 識別情報生成器
2 受信器
3 送信器
4 シリアル番号
5 USBデバイス
6 USBホスト
7 USB
8 乱数発生器
9 ベンダーID
10 プロダクトID
11 メモリ
12 アドレスレジスタ
13 USBインターフェースチップ
21 USBブリッジデバイス
22 USBインターフェースチップ
23 ROM
24 ATAPIブリッジ
25 ATAPIデバイス
32 選択器
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a USB device having a USB device function and a USB system.
[0002]
[Prior art]
In USB (Universal Serial Bus), one host manages all USB devices connected by USB. Therefore, in order to identify the connected USB device on the host side, the USB device holds identification information for specifying the device.
[0003]
When the USB device receives the device identification information acquisition request command from the host, the USB device transmits its own identification information to the host. The host specifies what the connected USB device is based on the identification information transmitted from the USB device.
[0004]
The identification information held by the USB device includes a vendor ID indicating a manufacturer, a product ID indicating a model number of a product, and a serial number unique to the device. Since USB devices of the same model number hold the same vendor ID and the same product ID as identification information, when multiple USB devices of the same model number are connected to the host, the host connects the connected USB devices to the serial device. Identify by number.
[0005]
[Problems to be solved by the invention]
However, in the USB standard, it is not essential for the USB device to hold the serial number, so the serial number is changed one by one due to the cost of changing the serial number one by one and assigning it to the USB device. There is a USB device with the same serial number or a USB device that does not hold a serial number.
[0006]
As described above, when a plurality of USB devices having the same serial number and the same model number or having no serial number and having the same model number are connected to the host, the serial number is In some cases, the connected USB device cannot be identified by the host, and is erroneously identified as an identical USB device, and the connected USB device does not operate normally.
[0007]
The present invention has been made to solve such a problem, and an object of the present invention is to connect a plurality of USB devices of the same model number to a host without assigning a different serial number to each USB device. Another object of the present invention is to provide a USB device and a USB system that allow a host to normally identify a USB device without taking any action on the host side.
[0008]
[Means for Solving the Problems]
In order to achieve the above object, a USB device according to the present invention is a USB device connected to a USB host by a USB, and transmits a request command for requesting USB device identification information for identifying the USB device to the USB host. A USB device identification information generator that generates the USB device identification information based on a serial number assigned to the USB device in response to the request command received by the receiver, A transmitter for transmitting the USB device identification information generated by the USB device identification information generator to the USB host.
[0009]
A USB system according to the present invention is a USB system including a USB host and a first USB device connected to the USB host by a USB, wherein the first USB device is a first USB device for identifying the first USB device. A first receiver that receives a first request command requesting identification information from the USB host, and a first receiver provided to the first USB device in response to the first request command received by the first receiver. A first USB device identification information generator that generates the first USB device identification information based on a serial number and a first address number assigned to the first USB device by the USB host, and the first USB device identification information generator The first USB device identification information generated by Characterized in that it has a first transmitter for transmitting to B host.
[0010]
Another USB device according to the present invention is a USB device connected to a USB host by USB, and a receiver for receiving a request command for requesting USB device identification information for identifying the USB device from the USB host. And the USB device identification information indicating one of a serial number given to the USB device and an address number assigned to the USB device by the USB host in response to the request command received by the receiver. A USB device identification information selector that is selected as a USB device identification information selector, and a transmitter that transmits one of the serial number and the address number selected by the USB device identification information selector to the USB host as the USB device identification information. It is characterized by having.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
In the USB device according to the present invention, USB device identification information for identifying the USB device is generated based on the serial number assigned to the USB device. For this reason, even if the same serial number is assigned to USB devices of the same model number, different USB device identification information can be generated for each USB device. As a result, a plurality of USB devices of the same model number can be connected to the USB host.
[0012]
It is preferable that the USB device identification information generator generates the USB device identification information based on an arbitrary random number.
[0013]
It is preferable that the USB device identification information generator generates the USB device identification information by combining the serial number and the random number.
[0014]
It is preferable that the USB device further includes random number generation means for generating the random number.
[0015]
It is preferable that the USB device identification information generator generates the USB device identification information based on a vendor ID specifying a manufacturer or a sales supplier of the USB device and a product ID specifying a type of the USB device. .
[0016]
Preferably, the USB device has a memory area for storing the serial number, the vendor ID, and the product ID.
[0017]
In the USB system according to the present invention, the first USB device identification information for identifying the first USB device includes a first serial number assigned to the first USB device and a first address assigned to the first USB device by the USB host. Generated based on the number. For this reason, even if the same serial number is assigned to USB devices of the same model number, different USB device identification information can be generated for each USB device. As a result, a plurality of USB devices of the same model number can be connected to the USB host.
[0018]
It is preferable that the first USB device further has a first address register for storing the first address number.
[0019]
The USB system further includes a second USB device connected to the USB host by the USB, wherein the second USB device requests a second USB device identification information for identifying the second USB device. A second receiver that receives a request command from the USB host; and a second serial number assigned to the second USB device and the USB host in response to the second request command received by the second receiver. A second USB device identification information generator that generates the second USB device identification information based on a second address number assigned to the second USB device; and a second USB device that is generated by the second USB device identification information generator. Second transmitter for transmitting device identification information to the USB host Preferably it has a.
[0020]
It is preferable that the second USB device further includes a second address register for storing the second address number.
[0021]
The first serial number assigned to the first USB device and the second serial number assigned to the second USB device are the same as each other, and the USB host assigns the first USB device to the first USB device. It is preferable that the first address number and the second address number assigned by the USB host to the second USB device are different from each other.
[0022]
Preferably, the first receiver receives the first address number from the USB host and stores the first address number in the first address register.
[0023]
It is preferable that the first USB device identification information generator generates the first USB device identification information by combining the first serial number and the first address number.
[0024]
In another USB device according to the present invention, one of the serial number assigned to the USB device and the address number assigned to the USB device by the USB host is transmitted to the USB host as USB device identification information. Therefore, one of the serial number and the address number can be selected as the USB device identification information according to the presence or absence of the connection of the ROM recording the serial number.
[0025]
It is preferable that the USB device further includes a recording device in which the serial number is stored.
[0026]
It is preferable that the USB device further includes an address register for storing the address number.
[0027]
The USB device further includes an ATAPI bridge for converting between USB format data and ATAPI format data, and the USB device includes an ATAPI device operating based on the ATAPI format data and the ATAPI bridge. Are preferably connected via
[0028]
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0029]
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of the USB system 100 according to the first embodiment. The USB system 100 includes a USB host 6 and a USB device 5 connected to the USB host 6 by a USB 7. The USB host 6 is configured by a personal computer. The USB host 6 is provided with USB ports 26 and 27. The USB 7 is connected to the USB port 26.
[0030]
The USB device 5 has a USB interface (I / F) chip 13. The USB I / F chip 13 has the receiver 2. The receiver 2 receives from the USB host 6 a request command for requesting USB device identification information for identifying the USB device 5.
[0031]
The USB I / F chip 13 has a memory 11. The memory 11 stores identification information 31 for identifying the USB device 5. The identification information 31 includes a vendor ID 9 for specifying a manufacturer or sales supplier of the USB device 5, a product ID 10 for specifying a model number of the USB device 5, and a serial number 4. The serial number 4 is the same product because of the cost of changing the serial number one by one and assigning it to the USB device because it is not essential for the USB device 5 to hold the serial number in the USB standard. The serial numbers 4 assigned to the USB devices 5 having the IDs 10 are the same.
[0032]
The USB I / F chip 13 is provided with the identification information generator 1. The identification information generator 1 generates USB device identification information based on the serial number 4 assigned to the USB device 5 according to the request command received by the receiver 2.
[0033]
The USB I / F chip 13 has a transmission data storage area 30. The USB device identification information generated by the identification information generator 1 is stored in the transmission data storage area 30. The USB I / F chip 13 is provided with an address register 12. The address register 12 stores an address number assigned to the USB device 5 by the USB host 6.
[0034]
The USB I / F chip 13 has a transfer start register 29 provided for transmitting the USB device identification information stored in the transmission data storage area 30 to the USB host 6. The USB I / F chip 13 is provided with a CPU 28 for controlling the entire operation of the USB device 5.
[0035]
The USB I / F chip 13 has a random number generator 8. The random number generator 8 generates an arbitrary random number for the identification information generator 1 to generate USB device identification information.
[0036]
The USB I / F chip 13 is provided with a transmitter 3. The transmitter 3 transmits the USB device identification information generated by the identification information generator 1 to the USB host 6.
[0037]
The operation of the USB system 100 configured as described above will be described. FIG. 2 is a flowchart illustrating an operation of the USB device 5 provided in the USB system 100 according to the first embodiment. As a value of the identification information 31 stored in the memory 11, a description will be given assuming that the value of the vendor ID 9 is "1111", the value of the product ID 10 is "2222", and the value of the serial number 4 is "0000". .
[0038]
First, the receiver 2 receives a request command requesting USB device identification information for identifying the USB device 5 from the USB host 6 (Step S1). Then, the identification information generator 1 reads any one of the vendor ID 9, the product ID 10, and the serial number 4 stored in the memory 11 (Step S2). Next, the identification information generator 1 determines whether or not the identification information 31 read from the memory 11 is the serial number 4 (Step S3).
[0039]
When determining that the identification information 31 read from the memory 11 is not the serial number 4 (NO in step S3), the identification information generator 1 writes the vendor ID 9 or the product ID 10 read from the memory 11 into the transmission data storage area 30. (Step S6).
[0040]
When the identification information generator 1 determines that the identification information 31 read from the memory 11 is the serial number 4 (YES in step S3), the random number generator 8 generates an arbitrary random number by software processing. It is assumed that the value of the random number generated by the random number generator 8 is "33" (step S4). Thereafter, the identification information generator 1 stores the value “330000” obtained by combining the serial number value “0000” read from the memory 11 and the random number value “33” generated by the random number generator 8 into the transmission data storage area 30. (Step S5).
[0041]
When the vendor ID 9 or the product ID 10 read from the memory 11 is written to the transmission data storage area 30 (step S6), or the value of the serial number read from the memory 11 and the value of the random number generated by the random number generator 8 are combined. When the value is written in the transmission data storage area 30 (step S5), it is determined whether or not all of the vendor ID 9, the product ID 10, and the serial number 4 have been read from the memory 11 (step S7). If it is determined that all of the vendor ID 9, the product ID 10, and the serial number 4 have not been read from the memory 11 yet (NO in step S7), the process returns to step S2.
[0042]
When it is determined that all of the vendor ID 9, the product ID 10, and the serial number 4 have been read from the memory 11 (YES in step S7), the transmitter 3 sets the transfer start register 29 to store the data in the transmission data storage area 30. The written vendor ID 9 (“1111”), product ID 10 (“2222”), and serial number (“330000”) are transmitted to the USB host 6 as USB device identification information (steps S8 and S9).
[0043]
As described above, according to the first embodiment, USB device identification information for identifying the USB device 5 is generated based on the serial number 4 assigned to the USB device 5. Therefore, different USB device identification information can be generated for each USB device 5 even if the same serial number 4 is assigned to USB devices 5 of the same model number. As a result, a plurality of USB devices 5 of the same model number can be connected to the USB host 6.
[0044]
(Embodiment 2)
FIG. 3 is a block diagram showing a configuration of the USB system 100A according to the second embodiment. The same components as those of the USB system 100 described above with reference to FIGS. 1 and 2 are denoted by the same reference numerals. Therefore, a detailed description of these components will be omitted.
[0045]
The USB system 100A includes a USB host 6 and two USB devices 5 connected by a USB 7, respectively. The USB host 6 is configured by a personal computer. The USB host 6 has USB ports 26 and 27. One USB device 5 is connected to the USB port 26 via the USB 7, and the other USB device 5 is connected to the USB port 27 via the USB 7.
[0046]
Each USB device 5 has a USB interface (I / F) chip 13. Each USB I / F chip 13 has a receiver 2. Each receiver 2 receives from the USB host 6 a request command for requesting USB device identification information for identifying each USB device 5.
[0047]
Each USB I / F chip 13 has a memory 11. Each memory 11 stores identification information 31 for identifying each USB device 5. The identification information 31 includes a vendor ID 9 for specifying a sales supplier of the USB device 5, a product ID 10 for specifying a model number of the USB device 5, and a serial number 4, respectively. Since the model numbers of the USB devices 5 are the same, the values of the product IDs 10 are the same.
[0048]
The serial number 4 is the same product because of the cost of changing the serial number one by one and assigning it to the USB device because it is not essential for the USB device 5 to hold the serial number in the USB standard. The serial numbers 4 assigned to the USB devices 5 having the IDs 10 are the same.
[0049]
Each USB I / F chip 13 is provided with an identification information generator 1. Each identification information generator 1 generates USB device identification information based on the serial number 4 assigned to each USB device 5 according to the request command received by each receiver 2.
[0050]
Each USB I / F chip 13 is provided with a transmission data storage area 30. Each transmission data storage area 30 stores USB device identification information generated by each identification information generator 1. Each USB I / F chip 13 has an address register 12. Each address register 12 stores an address number assigned to each USB device 5 by the USB host 6. Each USB I / F chip 13 has a transfer start register 29 provided for transmitting the USB device identification information stored in each transmission data storage area 30 to the USB host 6. Each USB I / F chip 13 is provided with a CPU 28 for controlling the entire operation of the USB device 5.
[0051]
Each USB I / F chip 13 is provided with a transmitter 3. Each transmitter 3 transmits the USB device identification information generated by the identification information generator 1 to the USB host 6, respectively.
[0052]
The operation of the USB system 100A thus configured will be described. FIG. 4 is a flowchart showing the operation of the USB device 5 provided in the USB system 100A according to the second embodiment. As the value of the identification information 31 stored in each memory 11, the value of each vendor ID 9 is "1111", the value of each product ID 10 is "2222", and the value of each serial number 4 is "0000". It is assumed that
[0053]
When the power of the USB host 6 is turned on, the USB host 6 transmits different address numbers, for example, the address number “01” and the address number “02” to the one USB device 5 and the other USB device 5, respectively. I do. One USB device 5 stores the address number “01” transmitted from the USB host 6 in one address register 12, and the other USB device 5 stores the address number “02” transmitted from the USB host 6 in the other address register 12. In the address register 12.
[0054]
Next, the receiver 2 provided in the one USB device 5 receives a request command for requesting USB device identification information for identifying the one USB device 5 from the USB host 6 (Step S1). Then, the identification information generator 1 provided in the one USB device 5 reads out one of the vendor ID 9, the product ID 10, and the serial number 4 stored in the one memory 11 (Step S2). Next, the one identification information generator 1 determines whether the identification information 31 read from the one memory 11 is the serial number 4 (step S3).
[0055]
When it is determined that the identification information 31 read from the one memory 11 is not the serial number 4 (NO in step S3), the one identification information generator 1 converts the vendor ID 9 or the product ID 10 read from the one memory 11 into one. Is written to the transmission data storage area 30 (step S6).
[0056]
When it is determined that the identification information 31 read from the one memory 11 is the serial number 4 (YES in step S3), the one identification information generator 1 sets the value of the address number stored in the one address register 12 to " 01 "is obtained (step S11). Then, the one identification information generator 1 outputs the value “010000” obtained by combining the serial number value “0000” read from the one memory 11 and the address number value “01” obtained from the one address register 12. Writing to the transmission data storage area 30 (step S12).
[0057]
When the vendor ID 9 or product ID 10 read from one memory 11 is written to the transmission data storage area 30 (step S6), or the serial number value read from the memory 11 and the address number value obtained from the address register 12 are stored. When the combined value is written in the transmission data storage area 30 (step S12), it is determined whether or not all of the vendor ID 9, the product ID 10, and the serial number 4 have been read from one memory 11 (step S7). If it is determined that all of the vendor ID 9, the product ID 10, and the serial number 4 have not been read from the memory 11 yet (NO in step S7), the process returns to step S2.
[0058]
If it is determined that all of the vendor ID 9, the product ID 10, and the serial number 4 have been read from the memory 11 (YES in step S7), one transmitter 3 sets one transfer start register 29 to transmit data. The vendor ID 9 (“1111”), the product ID 10 (“2222”), and the serial number (“010000”) written in the storage area 30 are transmitted to the USB host 6 as USB device identification information (steps S8 and S9).
[0059]
The other USB device 5 operates similarly to the one USB device 5 described above. The identification information generator 1 provided in the other USB device 5 combines the serial number value “0000” read from the other memory 11 and the address number value “02” obtained from the other address register 12. Write the value “020000” to the transmission data storage area 30. By setting the other transfer start register 29, the transmitter 3 provided in the other USB device 5 sets the vendor ID 9 ("1111") and the product ID 10 ("2222") written in the transmission data storage area 30. And the serial number (“020000”) to the USB host 6 as USB device identification information.
[0060]
Since the address numbers are not the same between the USB devices 5 connected to the USB host 6, a plurality of USB devices 5 having the same model number and the same serial number (in this case, “0000”) are transferred to the USB host 6. Even when the USB device 5 is connected, the new serial number is generated by adding the address number assigned by the UBS host 6 to the serial number held by each USB device 5, so that the serial numbers will not be the same. .
[0061]
As described above, according to the second embodiment, the USB device identification information for identifying the USB device 5 includes the serial number assigned to the USB device 5 and the address number assigned to the USB device 5 by the USB host 6. And is generated based on Therefore, different USB device identification information can be generated for each USB device 5 even if the same serial number is assigned to the USB device 5 of the same model number. As a result, a plurality of USB devices 5 of the same model number can be connected to the USB host 6.
[0062]
(Embodiment 3)
FIG. 5 is a block diagram showing a configuration of a USB system 100B according to the third embodiment. The same components as those of the USB system 100 described above with reference to FIGS. 1 and 2 are denoted by the same reference numerals. Therefore, a detailed description of these components will be omitted.
[0063]
The USB system 100B includes a USB bridge device 21 connected to the USB host 6 by the USB host 6 and the USB 7, and an AIAPI device 25 connected to the USB bridge device 21 by the AIAPI cable 31. The AIAPI device 25 operates based on ATAPI format data.
[0064]
The USB host 6 is configured by a personal computer. The USB host 6 has USB ports 26 and 27. The USB 7 is connected to the USB port 26.
[0065]
The USB bridge device 21 has a USB interface (I / F) chip 22. The USB interface chip 22 has the receiver 2. The receiver 2 receives from the USB host 6 a request command for requesting USB device identification information for identifying the USB bridge device 21.
[0066]
The USB I / F chip 22 has the memory 11. The memory 11 stores identification information for identifying the USB bridge device 21. The identification information includes a vendor ID 9 for specifying a sales supplier of the USB bridge device 21 and a product ID 10 for specifying a model number of the USB bridge device 21.
[0067]
The USB bridge device 21 is provided with a ROM 23 connected to a USB I / F chip 22. The ROM 23 stores a serial number. The serial number is not required to be held by the USB bridge device 21 in the USB standard. Therefore, due to the cost of changing the serial number one by one and assigning it to the USB device, the same product is used. The serial numbers assigned to the USB bridge device 21 having the ID 10 are the same as each other.
[0068]
The USB I / F chip 22 has the address register 12. The address register 12 stores an address number assigned to the USB bridge device 21 by the USB host 6.
[0069]
A selector 32 is provided in the USB I / F chip 22. The selector 32 selects one of the serial number stored in the ROM 23 and the address number stored in the address register 12 according to the request command received by the receiver 2.
[0070]
The USB I / F chip 22 is provided with a transmission data storage area 30. One of the serial number and the address number selected by the selector 32 is stored in the transmission data storage area 30.
[0071]
The USB I / F chip 22 has a transfer start register 29 provided for transmitting any one of the serial number and the address number stored in the transmission data storage area 30 to the USB host 6. The USB I / F chip 22 is provided with a CPU 28 for controlling the entire operation of the USB I / F chip 22.
[0072]
The USB I / F chip 22 is provided with a transmitter 3. The transmitter 3 transmits the USB device identification information stored in the transmission data storage area 30 to the USB host 6.
[0073]
The USB bridge device 21 is provided with an ATAPI bridge 24 connected to the USB I / F chip 22 and connected to an ATAPI device 25 via an ATAPI cable 31. The ATAPI bridge 24 mutually converts USB format data and ATAPI format data.
[0074]
The operation of the USB system 100B thus configured will be described. FIG. 6 is a flowchart illustrating an operation of the USB bridge device 21 provided in the USB system 100B according to the third embodiment.
[0075]
When the power of the USB host 6 is turned on, the USB host 6 transmits an address number to the USB bridge device 21. The USB bridge device 21 stores the address number transmitted from the USB host 6 in the address register 12.
[0076]
Then, the receiver 2 receives a request command requesting USB device identification information for identifying the USB bridge device 21 from the USB host 6 (Step S1). After that, the selector 32 reads one of the vendor ID 9 and the product ID 10 stored in the memory 11 and the serial number stored in the ROM 23 (Step S31). Next, the selector 32 determines whether or not the read identification information is the serial number 4 (Step S32).
[0077]
When determining that the read identification information is not a serial number (NO in step S32), the selector 32 writes the vendor ID 9 or the product ID 10 read from the memory 11 into the transmission data storage area 30 (step S34).
[0078]
When the selector 32 determines that the read identification information is the serial number (YES in step S32), it determines whether the reading of the serial number from the ROM 23 has been completed normally (step S33). When determining that the reading of the serial number from the ROM 23 has been completed normally (YES in step S33), the selector 32 writes the read serial number into the transmission data storage area 30.
[0079]
If it is determined that the reading of the serial number from the ROM 23 has not been completed normally (NO in step S33), the selector 32 acquires the address number stored in the address register 12 (step S35). Then, the selector 32 writes the obtained address number into the transmission data storage area 30 (Step S36).
[0080]
When the vendor ID 9 or the product ID 10 read from the memory 11 is written in the transmission data storage area 30 (step S34), or when the obtained address number is written in the transmission data storage area 30 (step S36), the vendor ID 9 and the product ID are stored. It is determined whether all of the ID 10 and the serial number have been read (step S37). When it is determined that all of the vendor ID 9, the product ID 10, and the serial number have not been read out yet (NO in step S37), the process returns to step S31.
[0081]
If it is determined that all of the vendor ID 9, the product ID 10, and the serial number have been read (YES in step S 37), the transmitter 3 sets the transfer start register 29 so that the vendor written in the transmission data storage area 30 One of the ID 9, the product ID 10, and the serial number and the address number is transmitted to the USB host 6 as USB device identification information (steps S38 and S39).
[0082]
As described above, when the USB bridge device 21 transmits the serial number used for identifying the USB bridge device 21 to the USB host 6, the ROM 23 recording the serial number is connected, When the serial number is normally read from the ROM 23, the read serial number is transmitted to the USB host 6, and when the ROM 23 storing the serial number is not connected and the serial number cannot be read normally. Transmits the serial number to the USB host 6 with the address number assigned by the USB host 6 stored in the address register 12 as a serial number.
[0083]
This makes it possible to connect a variety of ATAPI devices when developing a USB bridge device, whether you want to assign a serial number to each device individually or if you do not need a serial number. This can be realized by the presence or absence of the connection, and can be handled without changing the firmware on the bridge device.
[0084]
As described above, according to the third embodiment, either the serial number given to the USB bridge device 21 or the address number assigned by the USB host 6 to the USB bridge device 21 is used as the USB device identification information by the USB host. 6 is transmitted. Therefore, one of the serial number and the address number can be selected as the USB device identification information according to the presence or absence of the connection of the ROM 23 in which the serial number is recorded.
[0085]
【The invention's effect】
As described above, according to the present invention, when connecting a plurality of USB devices of the same model number to a host, a different serial number is not assigned to each USB device one by one, and no response is made on the host side. It is possible to provide a USB device and a USB system that allow a host to normally identify a USB device.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a USB system according to a first embodiment.
FIG. 2 is a flowchart showing an operation of a USB device provided in the USB system according to the first embodiment;
FIG. 3 is a block diagram showing a configuration of a USB system according to a second embodiment.
FIG. 4 is a flowchart illustrating an operation of a USB device provided in the USB system according to the second embodiment;
FIG. 5 is a block diagram showing a configuration of a USB system according to a third embodiment;
FIG. 6 is a flowchart showing the operation of a USB bridge device provided in the USB system according to the third embodiment.
[Explanation of symbols]
1 Identification information generator
2 Receiver
3 transmitter
4 Serial number
5 USB devices
6 USB host
7 USB
8 random number generator
9 Vendor ID
10 Product ID
11 memory
12 Address register
13 USB interface chip
21 USB Bridge Device
22 USB interface chip
23 ROM
24 ATAPI Bridge
25 ATAPI device
32 selector

Claims (17)

USB(Universal Serial Bus)によってUSBホストと接続されたUSBデバイスであって、
前記USBデバイスを識別するためのUSBデバイス識別情報を要求する要求コマンドを前記USBホストから受信する受信器と、
前記受信器によって受信された前記要求コマンドに応じて、前記USBデバイスに付与されたシリアル番号に基づいて前記USBデバイス識別情報を生成するUSBデバイス識別情報生成器と、
前記USBデバイス識別情報生成器によって生成された前記USBデバイス識別情報を前記USBホストへ送信する送信器とを具備することを特徴とするUSBデバイス。
A USB device connected to a USB host by a USB (Universal Serial Bus),
A receiver for receiving, from the USB host, a request command for requesting USB device identification information for identifying the USB device;
In response to the request command received by the receiver, a USB device identification information generator that generates the USB device identification information based on a serial number given to the USB device,
A USB device for transmitting the USB device identification information generated by the USB device identification information generator to the USB host.
前記USBデバイス識別情報生成器は、任意の乱数に基づいて前記USBデバイス識別情報を生成する、請求項1記載のUSBデバイス。The USB device according to claim 1, wherein the USB device identification information generator generates the USB device identification information based on an arbitrary random number. 前記USBデバイス識別情報生成器は、前記シリアル番号と前記乱数とを結合させることによって前記USBデバイス識別情報を生成する、請求項2記載のUSBデバイス。The USB device according to claim 2, wherein the USB device identification information generator generates the USB device identification information by combining the serial number and the random number. 前記USBデバイスは、前記乱数を発生させる乱数発生手段をさらに具備している、請求項2記載のUSBデバイス。The USB device according to claim 2, wherein the USB device further includes a random number generator that generates the random number. 前記USBデバイス識別情報生成器は、前記USBデバイスの製造業者または販売納入業者を特定するベンダーIDと前記USBデバイスの種類を特定するプロダクトIDとに基づいて前記USBデバイス識別情報を生成する、請求項1記載のUSBデバイス。The USB device identification information generator generates the USB device identification information based on a vendor ID specifying a manufacturer or a sales supplier of the USB device and a product ID specifying a type of the USB device. 1. The USB device according to 1. 前記USBデバイスは、前記シリアル番号と前記ベンダーIDと前記プロダクトIDとが格納されるメモリ領域を有している、請求項4記載のUSBデバイス。The USB device according to claim 4, wherein the USB device has a memory area in which the serial number, the vendor ID, and the product ID are stored. USBホストとUSBによって前記USBホストと接続された第1USBデバイスを具備するUSBシステムであって、
前記第1USBデバイスは、前記第1USBデバイスを識別するための第1USBデバイス識別情報を要求する第1要求コマンドを前記USBホストから受信する第1受信器と、
前記第1受信器によって受信された前記第1要求コマンドに応じて、前記第1USBデバイスに付与された第1シリアル番号と前記USBホストが前記第1USBデバイスに対して割り当てた第1アドレス番号とに基づいて前記第1USBデバイス識別情報を生成する第1USBデバイス識別情報生成器と、
前記第1USBデバイス識別情報生成器によって生成された前記第1USBデバイス識別情報を前記USBホストへ送信する第1送信器とを有していることを特徴とするUSBシステム。
A USB system comprising a USB host and a first USB device connected to the USB host by a USB,
A first receiver that receives, from the USB host, a first request command for requesting first USB device identification information for identifying the first USB device;
In response to the first request command received by the first receiver, a first serial number given to the first USB device and a first address number assigned to the first USB device by the USB host. A first USB device identification information generator that generates the first USB device identification information based on the first USB device identification information;
A first transmitter for transmitting the first USB device identification information generated by the first USB device identification information generator to the USB host.
前記第1USBデバイスは、前記第1アドレス番号を格納するための第1アドレスレジスタをさらに有している、請求項7記載のUSBシステム。The USB system according to claim 7, wherein the first USB device further has a first address register for storing the first address number. 前記USBシステムは、前記USBによって前記USBホストと接続された第2USBデバイスをさらに具備しており、
前記第2USBデバイスは、前記第2USBデバイスを識別するための第2USBデバイス識別情報を要求する第2要求コマンドを前記USBホストから受信する第2受信器と、
前記第2受信器によって受信された前記第2要求コマンドに応じて、前記第2USBデバイスに付与された第2シリアル番号と前記USBホストが前記第2USBデバイスに対して割り当てた第2アドレス番号とに基づいて前記第2USBデバイス識別情報を生成する第2USBデバイス識別情報生成器と、
前記第2USBデバイス識別情報生成器によって生成された前記第2USBデバイス識別情報を前記USBホストへ送信する第2送信器とを有している、請求項7記載のUSBシステム。
The USB system further includes a second USB device connected to the USB host by the USB,
A second receiver that receives, from the USB host, a second request command requesting second USB device identification information for identifying the second USB device;
In response to the second request command received by the second receiver, a second serial number given to the second USB device and a second address number assigned by the USB host to the second USB device A second USB device identification information generator that generates the second USB device identification information based on the second USB device identification information;
The USB system according to claim 7, further comprising: a second transmitter configured to transmit the second USB device identification information generated by the second USB device identification information generator to the USB host.
前記第2USBデバイスは、前記第2アドレス番号を格納するための第2アドレスレジスタをさらに有している、請求項9記載のUSBシステム。The USB system according to claim 9, wherein the second USB device further has a second address register for storing the second address number. 前記第1USBデバイスに付与された前記第1シリアル番号と前記第2USBデバイスに付与された前記第2シリアル番号とは、互いに同一になっており、
前記USBホストが前記第1USBデバイスに対して割り当てる前記第1アドレス番号と前記USBホストが前記第2USBデバイスに対して割り当てる前記第2アドレス番号とは、互いに異なっている、請求項10記載のUSBシステム。
The first serial number given to the first USB device and the second serial number given to the second USB device are the same as each other,
The USB system according to claim 10, wherein the first address number assigned by the USB host to the first USB device and the second address number assigned by the USB host to the second USB device are different from each other. .
前記第1受信器は、前記第1アドレス番号を前記USBホストから受信して前記第1アドレスレジスタに格納する、請求項8記載のUSBシステム。9. The USB system according to claim 8, wherein the first receiver receives the first address number from the USB host and stores the first address number in the first address register. 前記第1USBデバイス識別情報生成器は、前記第1シリアル番号と前記第1アドレス番号とを結合させることによって前記第1USBデバイス識別情報を生成する、請求項8記載のUSBシステム。9. The USB system according to claim 8, wherein the first USB device identification information generator generates the first USB device identification information by combining the first serial number and the first address number. USBによってUSBホストと接続されたUSBデバイスであって、
前記USBデバイスを識別するためのUSBデバイス識別情報を要求する要求コマンドを前記USBホストから受信する受信器と、
前記受信器によって受信された前記要求コマンドに応じて、前記USBデバイスに付与されたシリアル番号と前記USBホストが前記USBデバイスに対して割り当てたアドレス番号とのいずれかを前記USBデバイス識別情報として選択するUSBデバイス識別情報選択器と、
前記USBデバイス識別情報選択器によって選択された前記シリアル番号と前記アドレス番号とのいずれかを前記USBデバイス識別情報として前記USBホストへ送信する送信器とを具備することを特徴とするUSBデバイス。
A USB device connected to a USB host by USB,
A receiver for receiving, from the USB host, a request command for requesting USB device identification information for identifying the USB device;
According to the request command received by the receiver, one of a serial number given to the USB device and an address number assigned to the USB device by the USB host is selected as the USB device identification information. A USB device identification information selector,
A USB device, comprising: a transmitter for transmitting one of the serial number and the address number selected by the USB device identification information selector to the USB host as the USB device identification information.
前記USBデバイスは、前記シリアル番号が格納される記録デバイスをさらに具備している、請求項14記載のUSBデバイス。The USB device according to claim 14, wherein the USB device further comprises a recording device in which the serial number is stored. 前記USBデバイスは、前記アドレス番号を格納するためのアドレスレジスタをさらに具備している、請求項14記載のUSBデバイス。The USB device according to claim 14, wherein the USB device further comprises an address register for storing the address number. 前記USBデバイスは、USB形式のデータとATAPI形式のデータとを相互に変換するATAPIブリッジをさらに具備しており、
前記USBデバイスは、前記ATAPI形式のデータに基づいて動作するATAPIデバイスと前記ATAPIブリッジを介して接続されている、請求項14記載のUSBデバイス。
The USB device further includes an ATAPI bridge for mutually converting USB format data and ATAPI format data,
15. The USB device according to claim 14, wherein the USB device is connected to the ATAPI device that operates based on the data in the ATAPI format via the ATAPI bridge.
JP2002217245A 2002-07-25 2002-07-25 Usb device and usb system Withdrawn JP2004062347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002217245A JP2004062347A (en) 2002-07-25 2002-07-25 Usb device and usb system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002217245A JP2004062347A (en) 2002-07-25 2002-07-25 Usb device and usb system

Publications (1)

Publication Number Publication Date
JP2004062347A true JP2004062347A (en) 2004-02-26

Family

ID=31938777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002217245A Withdrawn JP2004062347A (en) 2002-07-25 2002-07-25 Usb device and usb system

Country Status (1)

Country Link
JP (1) JP2004062347A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006243988A (en) * 2005-03-02 2006-09-14 Kyocera Mita Corp Usb device, usb system and usb control program
JP2009187203A (en) * 2008-02-05 2009-08-20 I-O Data Device Inc User authentication method, program, portable storage device, user authentication device, and user terminal
JP2011014036A (en) * 2009-07-03 2011-01-20 Silex Technology Inc Device and program for managing peripheral equipment
JP2011216101A (en) * 2011-06-07 2011-10-27 Shiro Kanbe Measuring system
US8417843B2 (en) 2009-09-28 2013-04-09 Samsung Electronics Co., Ltd. Electronic device and data control method thereof
JP2016048411A (en) * 2014-08-27 2016-04-07 セイコーエプソン株式会社 Recording apparatus, control system, and information processing method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006243988A (en) * 2005-03-02 2006-09-14 Kyocera Mita Corp Usb device, usb system and usb control program
JP4666589B2 (en) * 2005-03-02 2011-04-06 京セラミタ株式会社 USB device, USB system and USB control program
JP2009187203A (en) * 2008-02-05 2009-08-20 I-O Data Device Inc User authentication method, program, portable storage device, user authentication device, and user terminal
JP2011014036A (en) * 2009-07-03 2011-01-20 Silex Technology Inc Device and program for managing peripheral equipment
US8417843B2 (en) 2009-09-28 2013-04-09 Samsung Electronics Co., Ltd. Electronic device and data control method thereof
US8935442B2 (en) 2009-09-28 2015-01-13 Samsung Electronics Co., Ltd. Electronic device and data control method thereof
US9116606B2 (en) 2009-09-28 2015-08-25 Samsung Electronics Co., Ltd. Electronic device and data control method thereof
US9369750B2 (en) 2009-09-28 2016-06-14 Samsung Electronics Co., Ltd. Electronic device and data control method thereof
JP2011216101A (en) * 2011-06-07 2011-10-27 Shiro Kanbe Measuring system
JP2016048411A (en) * 2014-08-27 2016-04-07 セイコーエプソン株式会社 Recording apparatus, control system, and information processing method

Similar Documents

Publication Publication Date Title
JP4017194B2 (en) SCSI bus system
US7266640B2 (en) Memory card authentication system, capacity switching-type memory card host device, capacity switching-type memory card, storage capacity setting method, and storage capacity setting program
KR20110010707A (en) Direct data transfer between slave devices
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
US7568053B2 (en) USB composite device, USB communication system, and USB communication method
JP2008015629A (en) Card type peripheral equipment and host device
KR20200095526A (en) Flash memory controller, SD card device, method used in flash memory controller, and host device connected to SD card device
KR101833464B1 (en) Method for transferring data between disk device and external storage device and system using the method
JP2004062347A (en) Usb device and usb system
US20100180061A1 (en) Interface control device
US11144305B2 (en) Method for updating IC firmware
JP2014179066A (en) Storage control device, storage system, and storage control method
JPWO2002069127A1 (en) Storage medium control method, storage medium control device, and storage medium adapter
JP3477306B2 (en) Extended input / output interface
TWI394040B (en) Host, memory device, and host access to the memory device
US6892267B2 (en) Method for message transmission exploiting unused device addresses
CN116932451A (en) Data processing method, host and related equipment
JP5010065B2 (en) Microcomputer
US7363393B2 (en) Chipset feature detection and configuration by an I/O device
CN106548088A (en) A kind of kept secure area reading and control method thereof and mobile terminal based on mobile terminal
KR20080109591A (en) Electric apparatus and data sending/receiving method thereof and slave apparatus and communication method between the plural number of apparatuses
JP4723334B2 (en) DMA transfer system
CN103812893A (en) Virtual desktop external equipment transmission method and system
JP2006024143A (en) Information processor, external device, host device and communication method
KR101192594B1 (en) Direct data transfer between slave devices

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20051004