JP2008181230A - Usb data transfer system and its computer - Google Patents

Usb data transfer system and its computer Download PDF

Info

Publication number
JP2008181230A
JP2008181230A JP2007012909A JP2007012909A JP2008181230A JP 2008181230 A JP2008181230 A JP 2008181230A JP 2007012909 A JP2007012909 A JP 2007012909A JP 2007012909 A JP2007012909 A JP 2007012909A JP 2008181230 A JP2008181230 A JP 2008181230A
Authority
JP
Japan
Prior art keywords
computer
data transfer
storage device
connection
usb
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
JP2007012909A
Other languages
Japanese (ja)
Inventor
Masaaki Adachi
政明 安達
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.)
Hitachi Systems and Services Ltd
Original Assignee
Hitachi Systems and Services 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 Hitachi Systems and Services Ltd filed Critical Hitachi Systems and Services Ltd
Priority to JP2007012909A priority Critical patent/JP2008181230A/en
Publication of JP2008181230A publication Critical patent/JP2008181230A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that when a storage device as peripheral equipment is connected through a USB hub, the efficiency of data transfer is more deteriorated, and it takes more time than the case that the storage device is directly inserted into the USB port of a computer so as to be connected, since the connecting state of the peripheral equipment to the USB hub is detected when the computer transfers data with the storage device through the USB hub. <P>SOLUTION: In a data transfer system equipped with a computer connected through a USB hub to a storage device, and equipped with a connecting state detection part for detecting whether or not the storage device is connected to the USB hub, the computer is provided with: a transfer start detection means for detecting data transfer start between the storage device; and a stop means for, in detecting the data transfer start, stopping the connecting state detecting function of the connecting state detection part. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、USBデータ転送システムに関し、特に、UBSハブを介して、コンピュータと周辺機器としての記憶装置との間のデータの転送及びそれに用いるコンピュータに関する。 The present invention relates to a USB data transfer system, and more particularly, to data transfer between a computer and a storage device as a peripheral device via a UBS hub, and a computer used therefor.

本発明におけるUSB(Universal Serial Bus)は、パソコン(パーソナルコンピュータの略)とマウス、プリンタ、記憶装置等の周辺機器との接続に使用されるインターフェイスの規格であり、この規格は、周知の技術規格である。 The USB (Universal Serial Bus) in the present invention is a standard of an interface used for connecting a personal computer (abbreviation of personal computer) and peripheral devices such as a mouse, a printer, and a storage device. This standard is a well-known technical standard. It is.

この規格による使用者としての利点として、従来との比較において、パソコンと周辺機器との接続を両端にコネクター(プラグ)を備えた同一形状のUSBケーブルで接続できるようにし、電源が入ったままで、どの周辺機器ともUSBケーブルの端部に設けられたプラグを抜差し(挿抜)することにより接続又は接続解除できることが挙げられる。 As an advantage for the user by this standard, in comparison with the past, the connection between the PC and peripheral devices can be connected with the same shape USB cable with connectors (plugs) at both ends, and the power is on, For example, any peripheral device can be connected or disconnected by inserting or removing a plug provided at the end of the USB cable.

一般的に、パソコンにはUSB接続用のポートが数個しか備えていないので、多数の周辺機器を接続するにはUSBハブ(Universal Serial Bus Hub、USB集線装置)を使用している。1台のパソコンには、USBハブを介して最大127台の周辺機器を接続できるとされている。 Generally, since a personal computer has only a few ports for USB connection, a USB hub (Universal Serial Bus Hub, USB concentrator) is used to connect many peripheral devices. It is said that a maximum of 127 peripheral devices can be connected to one personal computer via a USB hub.

このUSBハブを介するパソコンと周辺機器とのデータの転送方式には、転送データの特質に応じてインタラプト(Interrupt)転送、バルク(Bulk)転送等が用いられている。
USBハブを介して、パソコンと周辺機器とを接続して、データ転送をする従来技術例としては、特開2003−208395号公報、特開2004−295407号公報がある。
As a data transfer method between the personal computer and the peripheral device via the USB hub, interrupt transfer, bulk transfer, or the like is used according to the characteristics of the transfer data.
JP-A-2003-208395 and JP-A-2004-295407 are examples of conventional techniques for transferring data by connecting a personal computer and peripheral devices via a USB hub.

特開2003−208395号公報JP 2003-208395 A 特開2004−295407号公報JP 2004-295407 A

従来、コンピュータが、USBハブを介して周辺機器との間でデータ転送する場合は、USBハブに周辺機器が接続又は切断されることを検出するためにインタラプト転送を定期的におこなっていた。 Conventionally, when a computer transfers data to and from a peripheral device via a USB hub, interrupt transfer is periodically performed to detect that the peripheral device is connected to or disconnected from the USB hub.

この接続状態検出するためのインタラプト転送はバルク転送より優先順位高いので、コンピュータと周辺機器としての記憶装置間とのバルク転送によるデータ転送は、データ転送中であってもインタラプト転送が行われると、バルク転送によるデータ転送はその間中断してしまう。そのため、USBハブを介した場合は、コンピュータのUSBポートに直接に挿入して接続した場合よりもデータ転送の効率が悪く、時間を要するという課題があった。 Since the interrupt transfer for detecting the connection state has a higher priority than the bulk transfer, the data transfer by the bulk transfer between the computer and the storage device as the peripheral device is performed even if the data is being transferred. Data transfer by bulk transfer is interrupted during that time. For this reason, when a USB hub is used, there is a problem that data transfer efficiency is lower and time is required than when a USB port of a computer is directly inserted and connected.

本発明は、上記の課題を解決しようとするものであり、USBハブを介してコンピュータと周辺機器としての記憶装置との間のデータ転送を行う場合、バルク転送によるコンピュータと記憶装置との間のデータ転送が、インタラプト転送によるUSBハブにその他の周辺機器を接続しているか否かの接続状態検出により中断されることなく、データを効率よく転送することを目的とする。 The present invention is intended to solve the above-described problem, and when performing data transfer between a computer and a storage device as a peripheral device via a USB hub, the computer transfers between the computer and the storage device by bulk transfer. An object of the present invention is to efficiently transfer data without being interrupted by detecting a connection state as to whether or not other peripheral devices are connected to the USB hub by interrupt transfer.

上記の課題を解決するために、本願の請求項1記載の発明は、周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段を有し、当該転送開始検出手段によりデータ転送開始を検出した場合、当該接続状態検出部の接続状態検出機能を停止する停止手段を備えることを特徴とする。 In order to solve the above problems, the invention according to claim 1 of the present application includes a USB hub having a plurality of connection ports connected to peripheral devices, a storage device connected through the connection port, the storage device, and the storage device. In a data transfer system including a computer connected to a USB hub and having a connection state detection unit for detecting whether or not the storage device is connected to the USB hub, the computer is connected to the computer. Stop means for stopping the connection state detection function of the connection state detection unit when the transfer start detection means detects transfer start detection means for detecting the start of data transfer with the storage device It is characterized by providing.

また、上記の課題を解決するために、本願の請求項2記載の発明は、周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送終了を検出する転送終了検出手段を有し、当該転送終了検出手段によりデータ転送終了を検出した場合、当該接続状態検出部の接続検出機能を再開する再開手段を備えることを特徴とする。 In order to solve the above-described problem, the invention according to claim 2 of the present application includes a USB hub having a plurality of connection ports connected to peripheral devices, a storage device connected via the connection port, and the storage device. And a data transfer system including a computer having a connection state detection unit for detecting whether or not the storage device is connected to the USB hub. Resume to restart the connection detection function of the connection state detection unit when the transfer end detection unit detects the end of data transfer by detecting the end of data transfer between the computer and the storage device Means are provided.

また、上記の課題を解決するために、本願の請求項3記載の発明は、周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段と、当該コンピュータと当該記憶装置との間のデータ転送終了を検出する転送終了検出手段とを備え、当該転送開始検出手段によりデータ転送開始を検出した場合、当該接続状態検出部の接続状態検出機能を停止し、当該転送終了検出手段によりデータ転送終了を検出した場合、当 該接続状態検出部の接続検出機能を再開することを特徴とする。 In order to solve the above-described problem, the invention according to claim 3 of the present application includes a USB hub having a plurality of connection ports connected to peripheral devices, a storage device connected via the connection port, and the storage device. And a data transfer system including a computer having a connection state detection unit for detecting whether or not the storage device is connected to the USB hub. A transfer start detecting means for detecting the start of data transfer between the computer and the storage device; and a transfer end detecting means for detecting the end of data transfer between the computer and the storage device. When the start of data transfer is detected by this, the connection state detection function of the connection state detection unit is stopped and the data transfer is detected by the transfer end detection means. When detecting the end, characterized in that to resume the connection detecting function of this the connection status detecting unit.

また、上記の課題を解決するために、本願の請求項4記載の発明は、周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段と、当該コンピュータと当該記憶装置との間のデータ転送終了を検出する転送終了検出手段とを備え、当該USBハブ装置は、当該転送開始検出手段により転送開始を検出し、当該接続状態検出部の機能を停止した場合、当該USBハブの周辺機器の接続ポートに当該記憶装置以外の周辺機器が接続されたか否かを記録する接続情報記録部を備え、当該転送終了検出手段によるデータ転送終了の検出により当該接続状態検出部の接続状態検出機能を再開した場合、当該接続情報記録部に記録する接続情報を当該コンピュータが検出することを特徴とする。 In order to solve the above problems, the invention according to claim 4 of the present application includes a USB hub having a plurality of connection ports connected to peripheral devices, a storage device connected via the connection port, and the storage device. And a data transfer system including a computer having a connection state detection unit for detecting whether or not the storage device is connected to the USB hub. The USB hub device comprises a transfer start detecting means for detecting the start of data transfer between the computer and the storage device, and a transfer end detecting means for detecting the end of data transfer between the computer and the storage device. When the transfer start detection means detects the transfer start and stops the function of the connection state detection unit, the connection of the peripheral device of the USB hub A connection information recording unit that records whether or not a peripheral device other than the storage device is connected to the port, and restarts the connection state detection function of the connection state detection unit by detecting the end of data transfer by the transfer end detection unit In this case, the computer detects connection information recorded in the connection information recording unit.

また、上記の課題を解決するために、本願の請求項5記載の発明は、請求項1又は2記載のUSBデータ転送システムにおいて、当該接続状態検出部、当該転送開始検出手段、当該転送終了検出手段の機能をオン又はオフにする切替手段を備えることを特徴とする。 In order to solve the above problem, the invention according to claim 5 of the present application is the USB data transfer system according to claim 1 or 2, wherein the connection state detection unit, the transfer start detection means, the transfer end detection Switching means for turning on or off the function of the means is provided.

また、上記の課題を解決するために、本願の請求項6記載の発明は、請求項3又は4記載のUSBデータ転送システムにおいて、当該接続状態検出部、当該転送開始検出手段、当該転送終了検出手段の機能をオン又はオフにする切替手段を備えることを特徴とする。 In order to solve the above problem, the invention according to claim 6 of the present application is the USB data transfer system according to claim 3 or 4, wherein the connection state detection unit, the transfer start detection means, the transfer end detection Switching means for turning on or off the function of the means is provided.

また、上記の課題を解決するために、本願の請求項7記載の発明は、請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはパーソナルコンピュータであることを特徴とする。 In order to solve the above problems, the invention according to claim 7 of the present application is the USB data transfer system according to claim 1, 2, 3, 4, 5 or 6, wherein the computer is a personal computer. It is characterized by.

また、上記の課題を解決するために、本願の請求項8記載の発明は、請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはコンピュータを備えたコンピュータ付き写真プリンタであることを特徴とする。 In order to solve the above problem, the invention according to claim 8 of the present application is the USB data transfer system according to claim 1, 2, 3, 4, 5 or 6, wherein the computer includes a computer. It is an attached photo printer.

また、上記の課題を解決するために、本願の請求項9記載の発明は、請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはコンピュータを備えたコンピュータ付きミシンであることを特徴とする。 In order to solve the above problems, the invention according to claim 9 of the present application is the USB data transfer system according to claim 1, 2, 3, 4, 5 or 6, wherein the computer includes a computer. It is a sewing machine with a pad.

また、上記の課題を解決するために、本願の請求項10記載の発明は、請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはコンピュータを備えたコンピュータ付きミュージック再生装置であることを特徴とする。 In order to solve the above problems, the invention according to claim 10 of the present application is the USB data transfer system according to claim 1, 2, 3, 4, 5 or 6, wherein the computer includes a computer. It is a music playback device with an attachment.

また、上記の課題を解決するために、本願の請求項11記載の発明は、請求項5、6、7,8、9又は10記載のUSBデータ転送システムにおいて、当該コンピュータはディスプレイを備え、当該切替手段はコンピュータのオペレーティングシステム上のグラフィカルユーザーインターフェイスにより当該ディスプレイに表示されるアイコンにより操作することを特徴とする。 In order to solve the above problem, the invention described in claim 11 of the present application is the USB data transfer system according to claim 5, 6, 7, 8, 9 or 10, wherein the computer includes a display, The switching means is operated by an icon displayed on the display by a graphical user interface on a computer operating system.

また、上記の課題を解決するために、本願の請求項12記載の発明は、USBハブを介して記憶装置と接続するコンピュータにおいて、当該コンピュータは、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部と、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段と、当該転送開始検出手段によりデータ転送開始を検出した場合、当該接続状態検出部の接続状態検出機能を停止する停止手段と、を備えることを特徴とする。 In order to solve the above problem, the invention according to claim 12 of the present application is a computer connected to a storage device via a USB hub, wherein the computer connects the storage device to the USB hub. A connection state detection unit that detects whether or not a connection state, a transfer start detection unit that detects the start of data transfer between the computer and the storage device, and a data transfer start detected by the transfer start detection unit, And stop means for stopping the connection state detection function of the connection state detection unit.

上述したように、本発明によれば、USBハブを介してパソコンと記憶装置との間のデータ転送を行う場合に、USBハブの接続ポートの接続情報検出に割り込まれ中断することなくデータ転送することが可能となるため、データを効率よく転送することができる。   As described above, according to the present invention, when data is transferred between a personal computer and a storage device via a USB hub, the data transfer is interrupted and interrupted by the connection information detection of the connection port of the USB hub. Data can be transferred efficiently.

以下、本発明の実施の形態を図面に基づいて説明する。
図1は、本発明の実施例であるUSBデータ転送システムを構成するパソコンと記憶装置とがUSBハブを介して接続されている図である。
図1において、10はパソコン(パーソナルコンピュータの略、PC)、20はUSBハブ(集線装置)、30は記憶装置である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram in which a personal computer and a storage device constituting a USB data transfer system according to an embodiment of the present invention are connected via a USB hub.
In FIG. 1, 10 is a personal computer (abbreviation of personal computer, PC), 20 is a USB hub (concentrator), and 30 is a storage device.

USBハブ20には、記憶装置30、マウス、キーボード、プリンタ等の周辺機器と接続する4個の接続ポート21を備えている。
一端が記憶装置30に接続されているUSBケーブル40の他端に設けられたUSBコネクター(プラグ)がUSBハブ20の接続ポート21に挿入されることにより、記憶装置30とUSBハブ20と接続されている。
The USB hub 20 includes four connection ports 21 that are connected to peripheral devices such as a storage device 30, a mouse, a keyboard, and a printer.
A USB connector (plug) provided at the other end of the USB cable 40 whose one end is connected to the storage device 30 is inserted into the connection port 21 of the USB hub 20 so that the storage device 30 and the USB hub 20 are connected. ing.

本発明のUSBデータ転送システムでは、実施例として、パソコン10で説明するが、パーソナルコンピュータに限定されることなく、USB接続可能な実質的なコンピュータであれば良く、コンピュータを備える又は内蔵する写真プリンタ、ミシン又はミュージック(音楽)再生装置にも適用できる。 The USB data transfer system according to the present invention will be described using the personal computer 10 as an example. However, the present invention is not limited to a personal computer, and any substantial computer capable of USB connection may be used. It can also be applied to sewing machines or music (music) playback devices.

図2は、パソコンが、USBハブに対し接続状態検出(USBプラグ挿抜検出)をしている状態を示した図である。即ち、パソコン10が、USBハブ20に対しUSBプラグの挿抜検出(接続状態検出)をしている状態を示したものである。 FIG. 2 is a diagram showing a state in which the personal computer is detecting the connection state (USB plug insertion / removal detection) with respect to the USB hub. That is, it shows a state where the personal computer 10 detects the insertion / extraction of the USB plug (connection state detection) with respect to the USB hub 20.

図2において、202はパソコン10から記憶装置20へのバルク転送による転送データ、203はパソコン10から記憶装置20へのインタラプト転送によるUSBコネクター挿抜検出の要求、204は記憶装置20からパソコン10へのUSBコネクターの挿抜検出情報(戻り)を転送している状態を示す。 In FIG. 2, 202 is transfer data by bulk transfer from the personal computer 10 to the storage device 20, 203 is a request for USB connector insertion / removal detection by interrupt transfer from the personal computer 10 to the storage device 20, and 204 is a request from the storage device 20 to the personal computer 10. This shows a state where USB connector insertion / removal detection information (return) is being transferred.

図3は、パソコン内のUSB転送手段等の概略構成図である。
図3において、301はUSBハブとの接続状態検出等のハブ管理を行うハブクラス、302は記憶装置30へデータ転送制御を行うマスストレージクラス、303はハブクラス301に対し接続状態検出(USBコネクター挿抜検出)を行うタイミングを生成するタイマ、304はタイマ303を停止又は開始するための制御指示、305は実際にUSBプロトコル制御や上位クラスからのデータ転送制御を行うバスドライバ、306はマスストレージクラス302から送られてくるデータのコマンド検出及びタイマ303に制御指示を行うバルクデータ転送フィルタ手段、307は転送データをフィルタ手段306に入力する又は入力しないを切替える切替手段、308は切替手段307を制御する手段を示す。
FIG. 3 is a schematic configuration diagram of USB transfer means and the like in the personal computer.
In FIG. 3, 301 is a hub class that performs hub management such as detection of a connection state with a USB hub, 302 is a mass storage class that performs data transfer control to the storage device 30, and 303 is a connection state detection (USB connector insertion / removal detection for the hub class 301). ) Is a control instruction for stopping or starting the timer 303, 305 is a bus driver that actually performs USB protocol control and data transfer control from a higher class, and 306 is from the mass storage class 302 Bulk data transfer filter means for detecting a command of data to be sent and giving a control instruction to the timer 303, 307 is a switching means for switching whether or not to input the transfer data to the filter means 306, 308 is means for controlling the switching means 307 Indicates.

図4は、パソコンとUSBハブと間のデータフォーマットを示した図である。
図4において、401はデータ転送コマンドで、データ転送開始を意味するコマンド、402は転送データ、403は転送ステータスで、データ転送終了を意味する。404はインタラプト転送によるUSBハブ20におけるUSBプラグ挿抜データ、405はUSBハブ20におけるUSBプラグ挿抜確認停止区間を示す。
FIG. 4 is a diagram showing a data format between the personal computer and the USB hub.
In FIG. 4, 401 is a data transfer command, a command meaning start of data transfer, 402 is transfer data, 403 is transfer status, and means data transfer end. Reference numeral 404 denotes USB plug insertion / extraction data in the USB hub 20 by interrupt transfer, and reference numeral 405 denotes a USB plug insertion / extraction confirmation stop section in the USB hub 20.

図5は、USBプラグ挿入による接続情報記録部を備えたUSBハブを示した図である。
図5において、501は一端が周辺機器に接続されているUSBケーブルの他端に備えたUSBプラグが、USBハブ20のポート21に挿抜することによる接続されたか否かを記録するレジスタ(接続情報記録部)で、502は接続(挿抜)記録データ信号の流れを示す。
FIG. 5 is a view showing a USB hub provided with a connection information recording unit by inserting a USB plug.
In FIG. 5, reference numeral 501 denotes a register (connection information) that records whether or not a USB plug provided at the other end of the USB cable, one end of which is connected to a peripheral device, is connected by being inserted into or removed from the port 21 of the USB hub 20. Reference numeral 502 designates a flow of connection (insertion / removal) recording data signals.

次に図1〜5を用いて、USBハブ20に対するUSBプラグの挿抜検出の停止、開始タイミングを説明する。
図1はパソコン10からUSBハブ20を介して記憶部30が接続されている図である。この状態はUSBハブ20の接続ポート21にケーブル40の一端に備えるUSBプラグが挿入され、パソコン10とUSBハブ20との間は図2に示す転送状態となる。
Next, stop and start timings of detection of insertion / extraction of the USB plug with respect to the USB hub 20 will be described with reference to FIGS.
FIG. 1 is a diagram in which a storage unit 30 is connected from a personal computer 10 via a USB hub 20. In this state, a USB plug provided at one end of the cable 40 is inserted into the connection port 21 of the USB hub 20, and the transfer state between the personal computer 10 and the USB hub 20 is shown in FIG. 2.

図2が示すようにパソコン10から記憶装置30へデータを送る際は連続して転送することが可能なバルク転送を使用する。バルク転送は、連続してデータを転送可能であるが、203に示すインタラプト転送よりもUSBの規格上の転送優先順位が低いため、連続して転送しているバルク転送データは割り込まれる。特に、USBハブ20を介して転送する場合は、USBハブ20のUSBプラグの挿抜検出が定期的に行われるため、割り込まれる頻度が高くなる。そのため、図3の301に示す挿抜状態検出(接続状態検出)を停止する手段をマスストレージクラス302とバスドライバ305の間に設けた。 As shown in FIG. 2, when data is sent from the personal computer 10 to the storage device 30, bulk transfer that can be continuously transferred is used. Bulk transfer can transfer data continuously, but since the transfer priority in the USB standard is lower than the interrupt transfer shown in 203, the bulk transfer data being transferred continuously is interrupted. In particular, when transferring via the USB hub 20, since the insertion / extraction detection of the USB plug of the USB hub 20 is periodically performed, the frequency of interruption is increased. Therefore, means for stopping the insertion / removal state detection (connection state detection) 301 shown in FIG. 3 is provided between the mass storage class 302 and the bus driver 305.

挿抜状態検出は、ハブクラス301内部のタイマ303を使用し一定の周期で行われている。このタイマ303をフィルタ手段306機能から304に示す制御指示で、タイマ303を停止させる。これにより、挿抜状態検出機能が停止し、連続したバルク転送中にインタラプト転送が割り込まない様にする。 The insertion / removal state detection is performed at regular intervals using a timer 303 in the hub class 301. The timer 303 is stopped by the control instruction indicated by 304 from the filter means 306 function. As a result, the insertion / removal state detection function stops and interrupt transfer is not interrupted during continuous bulk transfer.

次に図3と図4を使用して挿抜確認停止のタイミングを説明する。図3のフィルタ手段306でマスストレージクラス302からの記憶装置30のデータをチェックする。
図4に記憶装置30のデータの内容を示す。フィルタ手段306は、まず、データ転送コマンド401を転送データ中から探す。データ転送コマンド401を検出した時点で記憶装置30へのアクセスが開始されるので挿抜検出動作を停止するため、にタイマ303を停止させる制御指示304を発行し、インタラプト転送404である挿抜検出を停止させる。
Next, the timing of the insertion / extraction confirmation stop will be described with reference to FIGS. The data in the storage device 30 from the mass storage class 302 is checked by the filter means 306 in FIG.
FIG. 4 shows the contents of data in the storage device 30. The filter unit 306 first searches for the data transfer command 401 from the transfer data. Since the access to the storage device 30 is started when the data transfer command 401 is detected, the control instruction 304 for stopping the timer 303 is issued to stop the insertion / extraction detection operation, and the insertion / extraction detection which is the interrupt transfer 404 is stopped. Let

そして、転送データ402の転送が終了し、転送ステータス403を検出した時点で、タイマ303を停止させることにより、制御指示304を発行し停止を終了する。この様にすることで記憶装置30のデータは、USBプラグ挿抜が行われても図4で示す区間405は割り込まれないことから、従来よりも効率よくデータを転送することが可能になる。 When the transfer of the transfer data 402 is completed and the transfer status 403 is detected, the timer 303 is stopped to issue a control instruction 304 and the stop is ended. In this way, the data in the storage device 30 can be transferred more efficiently than before because the section 405 shown in FIG. 4 is not interrupted even if the USB plug is inserted and removed.

USBプラグ挿抜状態検出動作が停止している間に、実際にUSBハブ20の他のポートにおけるUSBプラグの挿抜動作が発生した場合、上位に対し挿抜動作が行われた事を報告する必要がある。その場合に備え挿抜状態検出の停止中に挿抜動作が発生しても分かるように、図5のレジスタ501を設け、挿抜状態を記録しておく。そして、USBプラグ挿抜状態検出が再開した場合にインタラプト転送で上位に報告する。これにより、USBプラグ挿 抜状態検出再開時にUSBプラグの挿抜状態検出を行うことができる。 When the USB plug insertion / removal operation actually occurs in another port of the USB hub 20 while the USB plug insertion / removal state detection operation is stopped, it is necessary to report that the insertion / removal operation has been performed to the host. . In this case, the register 501 of FIG. 5 is provided and the insertion / removal state is recorded so that even if the insertion / removal operation occurs while the insertion / removal state detection is stopped. Then, when the detection of the USB plug insertion / removal state is resumed, it is reported to the host by interrupt transfer. As a result, the USB plug insertion / removal state can be detected when the USB plug insertion / removal state detection is resumed.

図3を用いて、このUSBプラグ挿抜状態検出抑止機能のオン/オフを切替える手段を説明する。マスストレージクラス302とバスドライバ305との間に切替手段307を設けた。308は、切替手段307を制御する手段を示している。この制御手段308のプログラムがパソコン10に搭載されているオペレーティングシステム(OS)のグラフィカルインターフェイス(GUI)上に「挿抜確認有り」をチェックすると挿抜検出制御手段308は、切替手段307を使用しマスストレージクラス302の転送データをフィルタ手段306側に送る。逆にチェックをはずすと、挿抜検出制御手段308は、切替手段307の点線側になり、フィルタ手段306に転送データを出力しない。これにより、挿抜検出動作がOSのGUI上から操作できる。 A means for switching on / off the USB plug insertion / removal state detection inhibiting function will be described with reference to FIG. A switching unit 307 is provided between the mass storage class 302 and the bus driver 305. Reference numeral 308 denotes a means for controlling the switching means 307. When the program of the control unit 308 checks “insertion / removal confirmation” on the graphical interface (GUI) of the operating system (OS) installed in the personal computer 10, the insertion / extraction detection control unit 308 uses the switching unit 307 to perform mass storage. The transfer data of class 302 is sent to the filter means 306 side. Conversely, when the check is removed, the insertion / extraction detection control unit 308 is on the dotted line side of the switching unit 307 and does not output transfer data to the filter unit 306. Thereby, the insertion / extraction detection operation can be operated from the GUI of the OS.

本発明の実施例であるUSBデータ転送システムを構成するパソコンと記憶装置とがUSBハブを介して接続されている図である。1 is a diagram showing a personal computer and a storage device that constitute a USB data transfer system according to an embodiment of the present invention connected via a USB hub. FIG. パソコンが、USBハブに対し接続検出をしている状態を示した図である。It is the figure which showed the state in which the personal computer is detecting the connection with respect to a USB hub. パソコン内のUSB転送手段等の概略構成図である。It is a schematic block diagram of the USB transfer means etc. in a personal computer. パソコンとUSBハブ間のデータフォーマットを示した図である。It is the figure which showed the data format between a personal computer and a USB hub. USBコネクター接続情報記録部を備えたUSBハブを示した図である。It is the figure which showed the USB hub provided with the USB connector connection information recording part.

符号の説明Explanation of symbols

10 パソコン
20 USBハブ
21 接続ポート
30 記憶装置
40 USBケーブル
41 USBプラグ
202 USBバルク転送の信号
203 USBインタラプト転送の信号
204 USBインタラプト転送の信号(戻り)
301 ハブクラス
302 マスストレージクラス
303 ハブクラスタイマ
304 ハブクラスタイマ制御指示信号
305 バスドライバ
306 バルクデータフィルタ手段
307 バルクデータ切替手段
308 バルクデータ切替制御手段
401 データ転送コマンド
402 転送データ
403 データ転送ステータス
404 USBハブ挿抜検出データ
405 USBハブ挿抜検出停止区間
501 USBハブ挿抜記憶レジスタ
502 USBハブ挿抜検出データ信号
10 PC 20 USB hub 21 Connection port 30 Storage device 40 USB cable 41 USB plug 202 USB bulk transfer signal 203 USB interrupt transfer signal 204 USB interrupt transfer signal (return)
301 Hub class 302 Mass storage class 303 Hub class timer 304 Hub class timer control instruction signal 305 Bus driver 306 Bulk data filter unit 307 Bulk data switching unit 308 Bulk data switching control unit 401 Data transfer command 402 Transfer data 403 Data transfer status 404 USB hub Insertion / extraction detection data 405 USB hub insertion / extraction detection stop section 501 USB hub insertion / extraction storage register 502 USB hub insertion / extraction detection data signal

Claims (12)

周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段を有し、当該転送開始検出手段によりデータ転送開始を検出した場合、当該接続状態検出部の接続状態検出機能を停止する停止手段を備えることを特徴とするUSBデータ転送システム。 A USB hub having a plurality of connection ports to be connected to peripheral devices, a storage device to be connected through the connection port, a connection to the storage device through the USB hub, and a connection of the storage device to the USB hub In a data transfer system including a computer having a connection state detection unit for detecting whether or not there is a connection state, the computer has transfer start detection means for detecting the start of data transfer between the computer and the storage device. And a USB data transfer system comprising stop means for stopping the connection state detection function of the connection state detection unit when data transfer start is detected by the transfer start detection means. 周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送終了を検出する転送終了検出手段を有し、当該転送終了検出手段によりデータ転送終了を検出した場合、当該接続状態検出部の接続検出機能を再開する再開手段を備えることを特徴とするUSBデータ転送システム。 A USB hub having a plurality of connection ports to be connected to peripheral devices, a storage device to be connected through the connection port, a connection to the storage device through the USB hub, and a connection of the storage device to the USB hub In a data transfer system including a computer having a connection state detection unit for detecting whether or not there is a connection state, the computer has transfer end detection means for detecting the end of data transfer between the computer and the storage device. And a USB data transfer system comprising a restarting means for restarting the connection detection function of the connection state detecting unit when the transfer end detecting means detects the end of data transfer. 周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段と、当該コンピュータと当該記憶装置との間のデータ転送終了を検出する転送終了検出手段とを備え、当該転送開始検出手段によりデータ転送開始を検出した場合、当該接続状態検出部の接続状態検出機能を停止し、当該転送終了検出手段によりデータ転送終了を検出した場合、当 該接続状態検出部の接続検出機能を再開することを特徴とするUSBデータ転送システム。 A USB hub having a plurality of connection ports to be connected to peripheral devices, a storage device to be connected through the connection port, a connection to the storage device through the USB hub, and a connection of the storage device to the USB hub In a data transfer system including a computer having a connection state detection unit for detecting whether or not there is a connection state, the computer includes transfer start detection means for detecting the start of data transfer between the computer and the storage device, A transfer end detecting means for detecting the end of data transfer between the computer and the storage device, and when the data transfer start is detected by the transfer start detecting means, the connection state detecting function of the connection state detecting unit is stopped. When the transfer end detection unit detects the end of data transfer, the connection detection function of the connection state detection unit is resumed. USB data transfer system according to claim Rukoto. 周辺機器と接続する複数の接続ポートを有するUSBハブと、当該接続ポート介して接続する記憶装置と、当該記憶装置と当該USBハブを介して接続し、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部を有するコンピュータを備えたデータ転送システムにおいて、当該コンピュータは、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段と、当該コンピュータと当該記憶装置との間のデータ転送終了を検出する転送終了検出手段とを備え、当該USBハブ装置は、当該転送開始検出手段により転送開始を検出し、当該接続状態検出部の機能を停止した場合、当該USBハブの周辺機器の接続ポートに当該記憶装置以外の周辺機器が接続されたか否かを記録する接続情報記録部を備え、当該転送終了検出手段によるデータ転送終了の検出により当該接続状態検出部の接続状態検出機能を再開した場合、当該接続情報記録部に記録する接続情報を当該コンピュータが検出することを特徴とするUSBデータ転送システム。 A USB hub having a plurality of connection ports to be connected to peripheral devices, a storage device to be connected through the connection port, a connection to the storage device through the USB hub, and a connection of the storage device to the USB hub In a data transfer system including a computer having a connection state detection unit for detecting whether or not there is a connection state, the computer includes transfer start detection means for detecting the start of data transfer between the computer and the storage device, A transfer end detecting means for detecting the end of data transfer between the computer and the storage device, and the USB hub device detects the transfer start by the transfer start detecting means, and functions as the connection state detecting unit. When stopped, record whether or not a peripheral device other than the storage device is connected to the connection port of the peripheral device of the USB hub. When the connection state detection function of the connection state detection unit is restarted by detecting the end of data transfer by the transfer end detection unit, the computer detects connection information recorded in the connection information recording unit. A USB data transfer system. 請求項1又は2記載のUSBデータ転送システムにおいて、当該接続状態検出部、当該転送開始検出手段、当該転送終了検出手段の機能をオン又はオフにする切替手段を備えることを特徴とするUSBデータ転送システム。 3. The USB data transfer system according to claim 1, further comprising a switching unit that turns on or off the functions of the connection state detection unit, the transfer start detection unit, and the transfer end detection unit. system. 請求項3又は4記載のUSBデータ転送システムにおいて、当該接続状態検出部、当該転送開始検出手段、当該転送終了検出手段の機能をオン又はオフにする切替手段を備えることを特徴とするUSBデータ転送システム。 5. The USB data transfer system according to claim 3, further comprising a switching unit that turns on or off the functions of the connection state detection unit, the transfer start detection unit, and the transfer end detection unit. system. 請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはパーソナルコンピュータであることを特徴とするUSBデータ転送システム。 7. The USB data transfer system according to claim 1, 2, 3, 4, 5, or 6, wherein the computer is a personal computer. 請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはコンピュータを備えたコンピュータ付き写真プリンタであることを特徴とするUSBデータ転送システム。 The USB data transfer system according to claim 1, 2, 3, 4, 5, or 6, wherein the computer is a photo printer with a computer including a computer. 請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはコンピュータを備えたコンピュータ付きミシンであることを特徴とするUSBデータ転送システム。 7. The USB data transfer system according to claim 1, 2, 3, 4, 5, or 6, wherein the computer is a computer-equipped sewing machine equipped with a computer. 請求項1,2,3,4,5又は6記載のUSBデータ転送システムにおいて、当該コンピュータはコンピュータを備えたコンピュータ付きミュージック再生装置であることを特徴とするUSBデータ転送システム。 7. The USB data transfer system according to claim 1, 2, 3, 4, 5, or 6, wherein the computer is a music playback device with a computer including a computer. 請求項5、6、7,8、9又は10記載のUSBデータ転送システムにおいて、当該コンピュータはディスプレイを備え、当該切替手段はコンピュータのオペレーティングシステム上のグラフィカルユーザーインターフェイスにより当該ディスプレイに表示されるアイコンにより操作することを特徴とするUSBデータ転送システム。 11. The USB data transfer system according to claim 5, 6, 7, 8, 9 or 10, wherein the computer includes a display, and the switching means is an icon displayed on the display by a graphical user interface on the computer operating system. A USB data transfer system characterized by being operated. USBハブを介して記憶装置と接続するコンピュータにおいて、当該コンピュータは、当該USBハブに当該記憶装置を接続しているか否かの接続状態検出をする接続状態検出部と、当該コンピュータと当該記憶装置との間のデータ転送開始を検出する転送開始検出手段と、当該転送開始検出手段によりデータ転送開始を検出した場合、当該接続状態検出部の接続状態検出機能を停止する停止手段と、を備えることを特徴とするコンピュータ。 In a computer that is connected to a storage device via a USB hub, the computer includes a connection state detection unit that detects whether or not the storage device is connected to the USB hub, the computer, and the storage device. A transfer start detecting means for detecting the start of data transfer during the period, and a stop means for stopping the connection state detecting function of the connection state detecting section when the transfer start detecting means detects the data transfer start. A featured computer.
JP2007012909A 2007-01-23 2007-01-23 Usb data transfer system and its computer Withdrawn JP2008181230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007012909A JP2008181230A (en) 2007-01-23 2007-01-23 Usb data transfer system and its computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007012909A JP2008181230A (en) 2007-01-23 2007-01-23 Usb data transfer system and its computer

Publications (1)

Publication Number Publication Date
JP2008181230A true JP2008181230A (en) 2008-08-07

Family

ID=39725104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007012909A Withdrawn JP2008181230A (en) 2007-01-23 2007-01-23 Usb data transfer system and its computer

Country Status (1)

Country Link
JP (1) JP2008181230A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011011533A (en) * 2009-06-03 2011-01-20 Brother Industries Ltd Printer with usb host function
US9304717B2 (en) 2009-06-03 2016-04-05 Brother Kogyo Kabushiki Kaisha Printer for determining whether the connectability of a USB device is suitable

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011011533A (en) * 2009-06-03 2011-01-20 Brother Industries Ltd Printer with usb host function
US9304717B2 (en) 2009-06-03 2016-04-05 Brother Kogyo Kabushiki Kaisha Printer for determining whether the connectability of a USB device is suitable

Similar Documents

Publication Publication Date Title
KR101119684B1 (en) Electronic device, method for controlling the same, information processing apparatus, and a record medium
US6131134A (en) Hot plug-and-play converter of a universal serial bus interface
JP5597104B2 (en) Data transfer apparatus and control method thereof
JP2009188445A (en) Image processing apparatus, serial bus control method and program, and recording medium
CN110419035B (en) USB host-to-host automatic switching
JP2010015318A (en) Usb host controller, information processor, and program
JP2009176152A (en) Information processing apparatus
JP2012533106A (en) USB attachment detection
US9065941B2 (en) Image processing apparatus and method for controlling the same
KR20180011023A (en) Image forming apparatus and power control method for image forming apparatus
JP4646859B2 (en) USB device and USB connection system
JP2008181230A (en) Usb data transfer system and its computer
JP2010134508A (en) Relay apparatus for connecting hot plug type device
US20050182867A1 (en) Systems and methods for signaling write status
JP2007047909A (en) Usb device, and method for evading its standby status
JP2008211761A (en) Image forming apparatus and connection notification method
JP5492844B2 (en) Interface connection method and computer
TWI436216B (en) Power management system, method thereof and storage medium
JP2001067157A5 (en) Computers and their peripheral systems, computer peripherals, computers and their control methods, and computer-readable storage media
JP6958110B2 (en) Information processing equipment and programs
JP2009122844A (en) Communication controller and program
JP4322017B2 (en) Backup device
JP2009266178A (en) Relay device and relay system
JP2008027447A (en) Usb storage device and method of switching media types therefor
JP4716910B2 (en) Power supply control device and power supply control method

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: 20100406