JP2008152316A - Communication system, device, host, communication method, and program - Google Patents
Communication system, device, host, communication method, and program Download PDFInfo
- Publication number
- JP2008152316A JP2008152316A JP2006336545A JP2006336545A JP2008152316A JP 2008152316 A JP2008152316 A JP 2008152316A JP 2006336545 A JP2006336545 A JP 2006336545A JP 2006336545 A JP2006336545 A JP 2006336545A JP 2008152316 A JP2008152316 A JP 2008152316A
- Authority
- JP
- Japan
- Prior art keywords
- host
- stop request
- stop
- link
- stopped
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、通信システムに関し、特に、デバイス側からの操作でデバイスを安全にホストから切り離すことが可能なシステムに関する。 The present invention relates to a communication system, and more particularly to a system capable of safely disconnecting a device from a host by an operation from the device side.
従来、Universal Serial Bus(以下、USBという)周辺デバイスのような活線挿抜可能なデバイスは、使用者が情報処理装置(ホスト)側で取り外しを行いたいデバイスの動作を停止させた後にデバイスを物理的に取り外す必要があった。この理由は、デバイスにファイルを書き込み中等のタイミングで突然デバイスを取り外すと、ファイル破損を引き起こす可能性があるという問題があったからである。例えば、特許文献1に、情報処理装置(ホスト)に接続されたUSB周辺装置(デバイス)がサスペンド(動作停止)モードでない状態で、情報処理装置(ホスト)からUSB周辺装置(デバイス)に対してサスペンド(動作停止)コマンドが送信されUSB周辺装置(デバイス)がサスペンド(動作停止)状態になる旨が記載されている。
Conventionally, devices that can be hot-plugged, such as Universal Serial Bus (hereinafter referred to as USB) peripheral devices, physically operate after the user stops the operation of the device that the user wants to remove on the information processing device (host) side. Needed to be removed. This is because there is a problem that if the device is suddenly removed at the timing of writing a file to the device, the file may be damaged. For example,
特にUSB−HUBなどを用いてツリー構造にこのようなUSB周辺装置(デバイス)が接続されている場合には、USB−HUBのアップストリーム側を取り外すためにUSB−HUBのダウンストリームに接続されている全てのデバイスに対し取り外しが可能となるように処理を行わないとアップストリーム側を安全に取り外すことができなかった。 In particular, when such a USB peripheral device (device) is connected to the tree structure using a USB-HUB or the like, it is connected to the USB-HUB downstream to remove the upstream side of the USB-HUB. The upstream side could not be safely removed unless processing was performed so that it could be removed from all existing devices.
上述の通り、従来は、活線挿抜可能なデバイスをホスト側からの取り外し処理なしに突然取り外すとファイル破損を引き起こす可能性があるという問題があったため、使用者がホストから活線挿抜可能なデバイスを安全に取り外すためにはホスト側からの制御(取り外し処理)が必須であった。 As described above, there has been a problem that a device that can be hot-swapped from a host may be damaged if a device that can be hot-swapped is suddenly removed without removing it from the host. Control (removal processing) from the host side was indispensable to safely remove the device.
また、Wireless USB等のようにバスの無線化が進むと、デバイスとホストとが離れた場所に設置されることもあり、また、デバイス−ホスト間を結ぶケーブルもないためにデバイスが接続されているホストがどれであるかわかりにくい状況も想定される。このようにバスの無線化が進むと、使用者の使い勝手にも問題が生じていた。
[発明の目的]
本発明は上記事情に鑑みてなされたものであり、本発明の目的は、ホストに接続された活線挿抜可能なデバイスをデバイス側からの制御で安全に取り外す通信システム、デバイス、ホスト、通信方法、プログラムを提供することにある。
Also, as buses become more wireless, such as Wireless USB, the device and host may be installed in a remote location, and the device is connected because there is no cable connecting the device and the host. It may be difficult to tell which host is on. As buses become more wireless in this way, there has been a problem in user convenience.
[Object of invention]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a communication system, device, host, and communication method for safely removing a hot-pluggable device connected to a host by control from the device side. , To provide a program.
本発明の通信システムは、接続するホストに自デバイスが停止することを通知する停止要求通知手段を有するデバイスと、前記デバイスからの停止要求通知を受信する停止要求検出手段と、前記停止要求通知を受信すると前記デバイスへのリンクを停止させる停止制御手段とを有するホストと、を有することを特徴とする。 The communication system of the present invention includes a device having stop request notification means for notifying the connected host that the own device is stopped, a stop request detection means for receiving a stop request notification from the device, and the stop request notification. And a host having stop control means for stopping the link to the device upon reception.
本発明のデバイスは、接続するホストに自デバイスが停止することを通知する停止要求通知手段を有し、当該通知を受けたホストによって自デバイスへのリンクが停止されることを特徴とするデバイス。 The device of the present invention has a stop request notifying means for notifying the connected host that the own device is stopped, and the link to the own device is stopped by the host that has received the notification.
本発明のホストは、下流に接続されたデバイスから自デバイスを停止することが通知された場合に前記デバイスからの通知を受信する停止要求検出手段と、前記停止要求通知を受信すると前記デバイスへのリンクを停止させる停止制御手段とを有することを特徴とする。 The host according to the present invention includes a stop request detection unit that receives a notification from the device when the device connected to the downstream is notified to stop the device, and a device that receives the stop request notification And stop control means for stopping the link.
本発明の通信方法は、デバイスに接続するホストに自デバイスが停止することを通知する停止要求通知ステップと、前記停止要求通知を受信する停止要求検出ステップと、前記停止要求通知を受信すると前記デバイスへのリンクを停止させる停止制御ステップとを有することを特徴とする。 The communication method of the present invention includes a stop request notification step for notifying a host connected to a device that the own device is stopped, a stop request detection step for receiving the stop request notification, and the device upon receiving the stop request notification. And a stop control step for stopping the link to.
本発明は、接続するホストに自デバイスが停止することを通知し、この通知を受けたホストが前記デバイスへのリンクを停止させ、デバイスはリンクが停止したことで自らの動作を停止させるという構成により、使用者がデバイス側の操作のみでデバイスを安全に取り外すことが可能となる。 The present invention is configured to notify a connected host that its own device is stopped, the host that has received this notification stops the link to the device, and the device stops its operation when the link is stopped. Thus, the user can safely remove the device only by operation on the device side.
[第1の実施形態]
本発明の第1の実施形態を図面を用いて説明する。
[First Embodiment]
A first embodiment of the present invention will be described with reference to the drawings.
図1に本発明の第1の実施形態の構成を示す。活線挿抜可能なデバイス110は、このデバイスの動作を制御するファンクション機構111と、使用者より停止要求を受け付けるための入力機構113と、ホスト100に停止要求を通知する停止要求通知機構112と、ホスト100と接続するバス(リンク)の状態を監視・制御するバス制御機構114と、ホストと接続するバス(リンク)の状態を表示するリンク状態表示機構115とを備える。
FIG. 1 shows the configuration of the first embodiment of the present invention. The hot-pluggable device 110 includes a
ホスト100は、接続されたデバイスを制御するファンクション制御機構101と、ファンクション制御機構101を停止状態に移行させる停止制御機構102と、接続されたデバイスからの停止要求通知を検出して停止制御機構102に通知する停止要求検出機構103と、デバイス110と接続するバス(リンク)の状態を制御するバス管理機構104とを備える。
The
使用者が活線挿抜可能なデバイス側からの操作で当該デバイスを安全に取り外すための動作について図1、2を用いて以下に記す。 The operation for safely removing the device by the operation from the device side where the user can hot-swap the device will be described below with reference to FIGS.
使用者は、安全に取り外したいデバイス110の入力機構113を操作(201)することにより停止要求通知機構112からホスト100に停止要求(202)を通知する。
The user operates the
具体的には、停止ボタンの押下を認識したデバイス110の停止要求通知機構112がホスト100に停止要求(202)を通知するとホスト100の停止要求検出機構103が当該通知を検出する。
Specifically, when the stop
ホスト100は、停止要求検出機構103により停止要求を検出したら、デバイス110を停止させるために停止制御機構102に対しファンクション制御機構101を停止させることを要求する(203)。この要求を受けた停止制御機構102は、ファンクション制御機構101に対して停止要求(204)を行う。ファンクション制御機構101はこの要求にしたがいデバイス110の動作を停止待ち状態に移行させるようファンクション機構111に指示する(205)とともに、停止させたいデバイス110が接続されているポートを閉じ、リンクを停止するようバス管理機構104に通知する(206)。デバイス110のバス制御機構114はリンクが停止されたことを認識して(207)自身の動作を停止し、リンクが停止状態に移行したことをリンク状態表示機構115に表示する(208)する。使用者はリンク状態表示機構115を確認して活線挿抜可能なデバイスの取り外しなどを実行する。
When the stop request is detected by the stop
次に、本発明をUSB−HUBに適用した場合の実施例を示す。図3は、ホスト300に、USBストレージ316を接続したUSB−HUB310を接続した場合についての例を示している。
Next, an embodiment when the present invention is applied to USB-HUB will be described. FIG. 3 shows an example in which a USB-
USB−HUB310は、USB−HUBとして機能するために動作を制御するUSB−HUB機構311と、使用者からの停止要求を受け付ける停止ボタン313と、ホスト300にUSBバス(リンク)の停止要求を通知する停止要求通知機構312と、USBバスを監視・制御するUSBデバイスコントローラ314と、USBバス(リンク)の状態を示すLED315とから構成される。
The USB-HUB 310 notifies the
ホスト300は、USBバスを制御するUSBホストコントローラ304と、接続されたUSB−HUB310を制御するUSB−HUB制御機構301と、USB−HUB310の下流側に接続されたUSBストレージ316を制御するUSBストレージ制御機構305と、活線挿抜可能なデバイス側からの停止要求通知を検出する停止要求検出機構303と、停止要求検出機構303からの通知を受けて対象デバイスの動作を停止させる停止制御機構302とから構成される。
The
停止要求検出機構303は、USB−HUB制御機構301とUSBホストコントローラ304の間に位置しており、USB−HUB210の停止要求通知機構312からの停止要求を受信したときは停止制御機構302にUSB−HUB310の停止を指示し、停止要求以外の受信信号については全てUSB−HUB制御機構301に渡す。これにより既存のUSB−HUB制御機構301を変更することなく既存の処理も本発明独自の処理も実施可能となる。
The stop
また、ホスト300が停止要求検出機構303を持たない場合であっても、デバイスが停止要求通知機構312からの通知を行わなければ、既存のホストに本発明に係る(停止要求通知が行える)デバイスを接続しての使用が可能である。
Even if the
次に実施例の動作について説明する。 Next, the operation of the embodiment will be described.
本実施例における、動作停止までのシーケンスを図4に示す。 FIG. 4 shows a sequence until the operation is stopped in this embodiment.
ホスト300は、USB−HUB310が接続されるとUSB−HUB310を制御するためにUSB−HUB制御機構301を起動する。この時にUSB−HUB310が停止要求通知機構312を備えているならば、合わせて停止要求検出機構303を起動する。
When the USB-HUB 310 is connected, the
停止要求検出機構303は、起動するとUSB−HUB310からの停止要求の監視を始める(400)。この状態において、使用者がUSB−HUB310の停止ボタン313を押下(401)するとホストに停止要求を通知する(402)。
When the stop
停止要求検出機構303は、停止要求を検出した場合には停止制御機構302にUSB−HUB310の停止を指示する(403)。
When the stop
なお停止要求検出機構303は、停止要求以外の信号は全てUSB−HUB制御機構301)に渡す。
The stop
停止制御機構302は、USB−HUB制御機構301が制御するUSB−HUB310を停止するために、USB−HUB310のダウンストリームに接続されているUSBストレージ316を制御するUSBストレージ制御機構305に停止を要求する(404)。
The
USBストレージ制御機構305は、この停止要求に従いUSBストレージの動作を停止待ち状態に移行させ(405)、移行したことをUSB−HUB制御機構301に通知する(406)。USB−HUB制御機構301は、停止待ち状態に移行したUSBストレージ316が接続されているポートを閉じダウンストリーム(リンク)を停止する(407)。
The USB
USBストレージ316は、USB−HUB310のダウンストリーム(リンク)が停止したことによりバスの信号が停止されたことを認識して自身の動作を停止する。
The
USB−HUB310のダウンストリームに接続されているUSBストレージ316の動作が停止したら、次に停止制御機構302からUSB−HUB制御機構301に停止要求が発行される(408)。USB−HUB制御機構301は、USBバスを制御しているUSBホストコントローラ304に停止したことを通知し(409)、USB−HUB310に対してもUSBバスの信号が停止され、USB−HUB310が動作を停止したことを認識する。
When the operation of the
USB−HUB310は、バスの信号が停止されホストとのリンクが切れたらLED315を消灯する。使用者は、LED315が消灯したことによりUSB−HUB310の取り外しを安全に行うことができると使用者が認識することができる。
The USB-
また、USB−HUB310からの停止要求をホストが処理できない場合もしくは直ぐには停止できない場合(例えば、USBストレージ316に対してファイルを書き込んでいる途中のため停止が行えない等)には、LED315が消灯しないので取り外しを行うと問題が発生することを使用者が認識できる。
If the host cannot process a stop request from the USB-
当該実施例では、ホスト側からバス分岐点(HUB)のダウンストリーム側にあるデバイス全ての停止を実行した後に取り外し可能状態に移行しているので、ダウンストリーム側にあるデバイスの状況を使用者が確認することなく取り外すことが可能となる。 In the present embodiment, since all the devices on the downstream side of the bus branch point (HUB) are stopped from the host side, the state shifts to the detachable state. It can be removed without confirmation.
ここで、ホストに接続されたUSB−HUB等の活線挿抜可能なデバイスの状態遷移の状況について整理する。図7にホストに接続された活線挿抜可能なデバイスの状態遷移を示す。 Here, the state transition state of a device that can be hot-plugged such as USB-HUB connected to the host will be summarized. FIG. 7 shows a state transition of a hot-pluggable device connected to the host.
活線挿抜可能なデバイスはホストに接続すると動作状態に移行して通常動作を開始する(701)。ユーザがデバイスの停止ボタンを押下すると停止待ち状態に移行する(703)。この時にもデバイスは動作状態であり、唯一、停止要求の確認に対する応答が変わるのみでホストからのリクエストに対して通常動作状態と変わらない応答を行う。ホスト側でデバイスの停止処理が処理された場合には、バスの信号が停止されるためリンク切れが発生してデバイスは停止状態に移行する(704)。 When the hot-pluggable device is connected to the host, it shifts to an operating state and starts normal operation (701). When the user presses the stop button of the device, the process shifts to a stop waiting state (703). At this time as well, the device is in the operating state, and only the response to the confirmation of the stop request is changed, and a response that does not change from the normal operating state is made to the request from the host. When the device stop process is processed on the host side, the bus signal is stopped, so that the link is broken and the device shifts to the stop state (704).
なお、ホストが停止までに時間が掛る場合を考慮してキャンセルまたはタイムアウトを設け、停止待ち状態から通常動作状態へ移行させることも可能である(705)。 In consideration of the case where the host takes time to stop, it is possible to provide a cancel or timeout and shift from the stop waiting state to the normal operation state (705).
上記実施例では、本発明の停止要求通知機構や停止ボタンをUSB−HUBのみに実装した場合を例に挙げたが、これらの機能をUSB−HUBのみならずUSBストレージなどの活線挿抜可能なデバイスにも実装することが可能である。 In the above embodiment, the case where the stop request notification mechanism and the stop button of the present invention are mounted only on the USB-HUB is taken as an example. However, these functions can be hot-swapped not only in the USB-HUB but also in a USB storage or the like. It can also be implemented in devices.
この様な実装形態についての第1の変形例を図5に示す。図5では、停止要求通知機構522と停止ボタン523をUSBストレージ520にも実装している。また、図5のホスト側では、接続される活線挿抜可能なデバイス毎に停止要求検出機構5031,5032・・・を実装し、各デバイス(USB−HUB510やUSBストレージ520)からの停止要求に対して、それぞれ対応した停止要求検出機構5031,5032・・・が停止要求を検出してデバイスの停止動作を開始する。デバイスの停止動作の手順は上記実施例と同様であるので説明は省略する。
A first modification of such a mounting form is shown in FIG. In FIG. 5, a stop
また、この様な実装形態についての第2の変形例を図6に示す。図6に示す変形例においても図5と同様に停止要求通知機構622と停止ボタン623をUSBストレージ620に実装している。しかし、図6に示す第2の変形例では、ホスト600の構成が図5の変形例とは異なっている。第2の変形例のホストには、停止要求検出機構603は1つのみ実装され、これとは別にデバイス識別機構606を実装している。
Moreover, the 2nd modification about such a mounting form is shown in FIG. Also in the modified example shown in FIG. 6, the stop
この第2の変形例では、各デバイス(USB−HUB610やUSBストレージ620)からの停止要求について、停止要求検出機構603が全て検出して、どのデバイスからの停止要求であるかをデバイス識別機構606が判断して、停止動作を開始する。デバイスの停止動作の手順は上記実施例と同様であるので説明は省略する。
[第2の実施形態]
本発明の第2の実施形態を図面を用いて説明する。
In the second modification, the stop
[Second Embodiment]
A second embodiment of the present invention will be described with reference to the drawings.
図8に本発明の第2の実施形態の構成を示す。 FIG. 8 shows the configuration of the second embodiment of the present invention.
上記第1の実施形態では、使用者からの停止指示による活線挿抜可能なデバイスの動作停止方法について示したが、第2の実施形態では、使用者の指示ではなく活線挿抜可能なデバイスが自律的に停止要求を行う形態について説明する。 In the first embodiment, the operation stop method of a device that can be hot-plugged / removed by a stop instruction from the user has been described. However, in the second embodiment, a device that can be hot-plugged / removed instead of a user's instruction is provided. The form which performs a stop request | requirement autonomously is demonstrated.
図8にWireless USBストレージデバイスに適用した場合の例を示す。Wireless USBストレージデバイスは、アップストリームが無線であるため、距離が離れることによる電波強度の低下やノイズなどによる転送エラーの頻度の増加によりリンク品質が悪くなり、突然ホストとの接続が切断される可能性がある。 FIG. 8 shows an example in which the present invention is applied to a Wireless USB storage device. Since wireless USB storage devices are wireless upstream, link quality deteriorates due to a decrease in radio field strength due to a long distance and an increase in the frequency of transfer errors due to noise, etc., and the connection with the host may be suddenly disconnected. There is sex.
この場合、Wireless USBストレージデバイス810は、ホスト800からの停止処理が行われない状態で切断されるため、ファイルの破損などが発生する可能性が考えられる。
In this case, since the wireless
図8において、Wireless USBストレージデバイス810は、このWireless USBストレージデバイス810の動作を制御するUSBストレージ機構811と、ホストに停止要求を通知するための停止要求通知機構812と、アップストリームのリンク品質を判断するためのリンク品質判断機構813と、ホストと接続するバス(リンク)の状態を監視・制御するWireless USB制御機構814とを備える。
In FIG. 8, a wireless
ホスト800には、第1の実施形態と同様に、Wireless USBストレージデバイス810を制御するUSBストレージ制御機構801と、Wireless USBストレージデバイス810からの停止要求を検出する停止要求検出機構803と、USBストレージ制御機構801を停止する停止制御機構802と、Wireless USBストレージデバイス810と接続するバス(リンク)の状態を制御するWireless USB管理機構804とを備える。
As in the first embodiment, the
リンク品質判断機構813は、Wireless USB制御機構814と連携しホストとのリンク状況を定期的に確認する。ホストからの信号の電波強度の低下や転送エラーの発生頻度の増加などによりリンク品質判断機構813が、リンク品質が悪くなりWireless USBストレージデバイス810の動作継続に大きな支障があると判断した場合に、停止要求通知機構812を通してホストに停止要求を行う。ホストは、停止要求を検出したら、USBストレージ制御機構801を停止、Wireless USBストレージデバイス810へのリンクを切断する。
The link
停止動作の手順は第1の実施形態と同様であるので説明は省略する。 Since the procedure of the stop operation is the same as that of the first embodiment, description thereof is omitted.
上述のように、ホスト−デバイス間の通信品質が低下した場合にデバイス側からホストに対して停止要求を通知するので、Wireless USBストレージデバイス810は、ホスト800とのリンクが突然切断される前に停止状態に移行することが可能となり、ファイル破損などを防止することができる。
[第3の実施形態]
本発明の第3の実施形態を図面を用いて説明する。
As described above, when the communication quality between the host and the device is deteriorated, a stop request is notified from the device side to the host. Therefore, before the link with the
[Third Embodiment]
A third embodiment of the present invention will be described with reference to the drawings.
第3の実施の形態では、動作中に活線挿抜可能なデバイスの電源を不用意に切断された場合でも対応可能な形態の例を示す。 In the third embodiment, an example of a configuration that can cope with a case where the power supply of a device that can be hot-plugged during operation is inadvertently cut off will be described.
図9に本発明の第3の実施形態の構成を示す。 FIG. 9 shows the configuration of the third embodiment of the present invention.
活線挿抜可能なデバイス910は、このデバイスの動作を制御するファンクション機構911と、外部電源916と、外部電源の供給が停止した場合にデバイスに電源を供給するバッテリ915と、外部電源916とバッテリ915の切換えを司る電源スイッチ機構913と、ホスト900に停止要求を通知する停止要求通知機構912と、ホスト900と接続するバス(リンク)の状態を監視・制御するバス制御機構914とを備える。
The hot-
ホスト900は、接続されたデバイス910を制御するファンクション制御機構901と、ファンクション制御機構901を停止状態に移行させる停止制御機構902と、接続されたデバイスからの停止要求通知を検出して停止制御機構902に通知する停止要求検出機構903と、デバイス910と接続するバス(リンク)の状態を制御するバス管理機構904とを備える。
The
次に、動作中に使用者により電源スイッチ機構913が操作され電源断を要求された場合または外部電源916からの供給を突然断された場合の動作について説明する。
このような場合、電源スイッチ機構913は、電源の供給元を外部電源916からバッテリ915に変更し、停止要求通知機構912に停止要求を行うように指示する。
Next, an operation when the
In such a case, the
ホスト900は、停止要求検出機構903によって停止要求を検出したらファンクション制御機構901を停止、デバイスへのリンクを切断する。
When the
デバイス910は、リンク切れを検出したら電源スイッチ機構913を操作してバッテリ915からの電源供給を停止する。
When the
上述のように、電源断等の処理が行われた場合に電源をバッテリに切換えた後にホストに対して停止要求を通知するので、突然の電源断に伴う障害を防止することができる。
[第4の実施形態]
以上説明した実施形態ではいずれの実施形態においても、ホストは、停止要求を検出してファンクション制御機構を停止する機構を備えていた。しかし、活線挿抜可能なデバイスの動作を完全に停止するのではなく一時的に停止しておく機構を備えることでWireless USBデバイスなどを複数ホストに接続することが可能となる。以下にWireless USBデバイスを複数ホストに接続する場合の実施形態を示す。
As described above, when processing such as power-off is performed, the host is notified of a stop request after switching the power source to the battery, so that a failure due to a sudden power-off can be prevented.
[Fourth Embodiment]
In any of the above-described embodiments, the host includes a mechanism for detecting a stop request and stopping the function control mechanism. However, it is possible to connect a wireless USB device or the like to a plurality of hosts by providing a mechanism for temporarily stopping the operation of a device that can be hot-plugged / removed instead of completely stopping it. An embodiment in the case where a Wireless USB device is connected to a plurality of hosts will be described below.
図10において、Wireless USBデバイス1010は、このWireless USBデバイス1010の動作を制御するファンクション機構1011と、ホストに停止要求を通知する停止要求通知機構1012と、ホストの切り替えが要求された場合にWireless USBデバイス1010の状態を示す情報を構築し、また、ホストから受信したWireless USBデバイス1010の状態情報に基づいてWireless USBデバイス1010の状態をホスト変更前の状態に復帰させるデバイス状態構築・復帰機構1013と、ホストと接続するバス(リンク)の状態を監視・制御するWireless USB制御機構1014と、ホストと接続するバス(リンク)の状態を表示するリンク状態表示機構1015とを備える。
In FIG. 10, a
ホストA1000は、接続されたWireless USBデバイス1010を制御するファンクション制御機構1001と、Wireless USBデバイス1010からのデバイス状態情報(以降、デバイス状態情報と記載)を保持するデバイス状態保持機構1002と、接続されたWireless USBデバイス1010からの停止要求とデバイス状態情報とを検出して、デバイス状態情報をデバイス情報保持機構1002に保存させ、また、停止要求検出後のファンクション制御機構1001からの転送要求を保留する停止要求検出機構1003と、Wireless USBデバイス1010と接続するバス(リンク)の状態を制御するWireless USB管理機構1004と、ファンクション制御機構1001に影響を与えないデータ転送を継続的に要求する切断防止機構1005とを備える。
The
また、ホストB1100もホストA1000と同様の構成である。 The host B1100 has the same configuration as the host A1000.
次に、図10および図11を用いて、本実施形態におけるホストA1000とWireless USBデバイス1010との動作について説明する。
Next, operations of the
まず、Wireless USBデバイス1010がホストA1000に接続されていたと仮定する。Wireless USBデバイス1010は、使用者からの指示によって又は定期的に、接続するホストの切り替えを行う。
First, it is assumed that the
デバイス状態構築・復帰機構1013は、ホストの切り替えタイミングに合わせてデバイス状態情報を構築し停止要求通知機構1012に通知する(1101)。停止要求通知機構1012は、このデバイス状態情報を停止要求と共にホストA1000に転送する(1102)。
The device state construction /
ホストA1000の停止要求検出機構1003は、停止要求とデバイス状態情報を検出し、デバイス状態情報をデバイス状態保持機構1002に保存する(1103)。また、停止要求検出機構1103は、停止要求を検出したらファンクション制御機構1001からWireless USBデバイス1010への転送要求をWireless USB管理機構に渡さずに保留する(1107)。
The stop
Wireless USBデバイス1010は、ホストA1000から自身へのデータ転送が停止、即ちリンクが停止したと認識したら他ホスト(ホストB1100)への接続を行いアップストリームの接続先を変更する。
When the
Wireless USBデバイス1010がホストB1100と接続している間も、ホストA1000では、停止要求検出機構1003により仮想的にWireless USBデバイス1010が接続されている状態を保つ。
Even while the
Wireless USBデバイス1010が、ホストB1100での処理を終了し再度ホストA1000へ接続する場合には、Wireless USBデバイス1010はホストA1000に停止状態の解除を要求する(1108)。ホストA1000の停止要求検出機構1012は、停止状態の解除要求を検出したらデバイス状態保持機構1002よりデバイス状態情報をWireless USBデバイス1010に転送する(1109)。この情報を受信したWireless USBデバイス1010のデバイス状態構築・復帰機構1013は、Wireless USBデバイス1010の状態をホストA1000での動作停止前の状態に復帰させる。ホストA1000は、Wireless USBデバイス1010が状態を復帰したら停止要求検出機構1103にて保留していたデータ転送を再開する(1110)。
When the
上述のように、接続先のホストを切換える前にデバイスの状態をホストが保持しているので、Wireless USBデバイス1010を複数のホストに接続した場合にも転送データの欠落が起こらないという効果を奏する。
As described above, since the host holds the device state before switching the connection destination host, there is an effect that transfer data is not lost even when the
また、通常、ホストは、接続されているがデータ転送の行われていない活線挿抜可能なデバイスに対しデバイスの生存チェックを行うための通信を行う。この生存チェックに対しデバイスから一定時間応答がない場合には、ホストはデバイスが存在しなくなったと判断してデバイスを切断する。図10における切断防止機構1005は、このホストによる自動切断を防止するためにファンクション機構1001に影響を与えないデータ転送を継続的に要求する(図11の上側の1104)。
In general, the host performs communication for performing a device survival check for a device that is connected but is not transferring data and is capable of hot-swapping. If there is no response from the device for this life check for a certain period of time, the host determines that the device no longer exists and disconnects the device. The
なお、この切断防止のための転送要求は、バス制御から転送エラーとして返答される可能性がある(図11の1105)。その場合、切断防止機構1005は、再度切断防止のための転送を要求し(図11の下側の1104)、データ転送の要求がある状態を継続する。
Note that this transfer request for preventing disconnection may be returned as a transfer error from the bus control (1105 in FIG. 11). In that case, the
また、切断防止機構1005は、"停止解除要求(図11の1108)"が通知された場合には、切断防止のための転送要求をキャンセルして(図11の1106)、切断防止のための転送要求を停止する。
In addition, when a “stop release request (1108 in FIG. 11)” is notified, the
ホストは、データ転送を要求するデバイスに対しては生存チェックを行わないため、上述の処理を行うことによりデバイスがホストにより自動的に切断されることを防止することが可能となる。なお、切断防止機構1005は、長時間デバイスが再接続されない場合には、データ転送を停止し、ホストの自動切断を有効とする。
Since the host does not perform a survival check for a device that requests data transfer, it is possible to prevent the device from being automatically disconnected by the host by performing the above-described processing. Note that the
また、デバイス状態情報にデバイスの設定情報を含めることにより、動的に各ホストとの接続条件の制御が行えるようになる。これにより例えば、転送の多いホストには接続時間を多く割り当てるなどの制御が可能となる。 Also, by including device setting information in the device status information, it becomes possible to dynamically control connection conditions with each host. As a result, for example, it is possible to perform control such as assigning a large connection time to a host having a large number of transfers.
以上の説明では、ホストおよびデバイスでの処理はハードウェア的に実現されるように記載したが、これらの処理はプログラムによって実現しても良い。 In the above description, the processing in the host and the device is described as being realized by hardware, but these processing may be realized by a program.
100 ホスト
101 ファンクション制御機構
102 停止制御機構
103 停止要求検出機構
104 バス管理機構
110 デバイス
111 ファンクション機構
112 停止要求通知機構
113 入力機構
114 バス制御機構
115 リンク状態表示機構
300 ホスト
301 USB−HUB制御機構
302 停止制御機構
303 停止要求検出機構
304 USBホストコントローラ
310 USB−HUB
311 USB−HUB機構
312 停止要求通知機構
313 停止ボタン
314 USBデバイスコントローラ
315 LED
DESCRIPTION OF
311 USB-
Claims (16)
前記デバイスからの停止要求通知を検出する停止要求検出手段と、前記停止要求通知を検出すると前記デバイスへのリンクを停止させる停止制御手段とを有するホストと、
を有することを特徴とする通信システム。 A device having stop request notification means for notifying the host to be connected that the own device is stopped;
A host having stop request detecting means for detecting a stop request notification from the device, and a stop control means for stopping a link to the device upon detecting the stop request notification;
A communication system comprising:
前記ハブの下流に接続する記憶手段を有し、
前記停止制御手段が、停止要求を検出すると、前記記憶手段を停止させた後に、前記ハブへのリンクを停止させること
を特徴とする請求項1または2に記載の通信システム。 The device is a hub;
Storage means connected downstream of the hub;
3. The communication system according to claim 1, wherein when the stop control unit detects a stop request, the link to the hub is stopped after stopping the storage unit. 4.
前記ホストが、前記デバイスの状態を通知したデバイスが切り離されている間デバイスの状態を保持し、前記デバイスが接続されたときに前記デバイスの状態をデバイスに通知させるデバイス状態保持手段を有することを特徴とする請求項1記載の通信システム。 The stop request notification means notifies the host of the status of the device,
The host has device state holding means for holding the state of the device while the device that has notified the state of the device is disconnected and notifying the device of the state of the device when the device is connected. The communication system according to claim 1.
当該通知を検出したホストによって自デバイスへのリンクが停止されることを特徴とするデバイス。 Having a stop request notification means for notifying the connected host that the own device is stopped;
A device in which a link to the device is stopped by a host that detects the notification.
前記停止要求通知を検出する停止要求検出ステップと、
前記停止要求通知を検出すると前記ホストと前記デバイス間のリンクを停止させる停止制御ステップと
を有することを特徴とする通信方法。 A stop request notification step for notifying the host connected to the device that the own device is stopped;
A stop request detection step for detecting the stop request notification;
And a stop control step of stopping a link between the host and the device when detecting the stop request notification.
を有することを特徴とする請求項9記載の通信方法。 The communication method according to claim 9, further comprising a link state display step indicating that the link is stopped when the stop control step is performed and the link is stopped.
前記デバイスの状態を通知したデバイスがホストから切り離されている間デバイスの状態を保持し、前記デバイスが接続されたときに前記デバイスの状態をデバイスに通知させるデバイス状態保持ステップを有することを特徴とする請求項9記載の通信方法。 The stop request notification step notifies the host of the status of the device,
A device state holding step of holding a device state while the device that has notified the device state is disconnected from a host, and notifying the device of the device state when the device is connected; The communication method according to claim 9.
当該通知を受けたホストによって自デバイスへのリンクが停止されたときに自デバイスの動作を停止する処理とをコンピュータに実施させることを特徴とするプログラム。 Stop request notification process for notifying the connected host that its own device will be stopped;
A program that causes a computer to execute a process of stopping the operation of a local device when a link to the local device is stopped by a host that has received the notification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006336545A JP2008152316A (en) | 2006-12-14 | 2006-12-14 | Communication system, device, host, communication method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006336545A JP2008152316A (en) | 2006-12-14 | 2006-12-14 | Communication system, device, host, communication method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008152316A true JP2008152316A (en) | 2008-07-03 |
Family
ID=39654459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006336545A Pending JP2008152316A (en) | 2006-12-14 | 2006-12-14 | Communication system, device, host, communication method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008152316A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011003021A (en) * | 2009-06-18 | 2011-01-06 | Fujitsu Ltd | Controller |
JP2011258181A (en) * | 2010-05-14 | 2011-12-22 | Toshiba Corp | Information processor with usb port |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02146652A (en) * | 1988-11-29 | 1990-06-05 | Yokogawa Electric Corp | I/o multiplexer |
JPH04321126A (en) * | 1991-04-22 | 1992-11-11 | Nec Corp | Data processor |
JP2001350548A (en) * | 2000-06-07 | 2001-12-21 | Konica Corp | Power control circuit of external storage device |
JP2006235994A (en) * | 2005-02-24 | 2006-09-07 | Nec Electronics Corp | Bridge system, bridge system control method, information processing apparatus, peripheral equipment, and program |
-
2006
- 2006-12-14 JP JP2006336545A patent/JP2008152316A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02146652A (en) * | 1988-11-29 | 1990-06-05 | Yokogawa Electric Corp | I/o multiplexer |
JPH04321126A (en) * | 1991-04-22 | 1992-11-11 | Nec Corp | Data processor |
JP2001350548A (en) * | 2000-06-07 | 2001-12-21 | Konica Corp | Power control circuit of external storage device |
JP2006235994A (en) * | 2005-02-24 | 2006-09-07 | Nec Electronics Corp | Bridge system, bridge system control method, information processing apparatus, peripheral equipment, and program |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011003021A (en) * | 2009-06-18 | 2011-01-06 | Fujitsu Ltd | Controller |
US8738936B2 (en) | 2009-06-18 | 2014-05-27 | Fujitsu Limited | Storage apparatus |
JP2011258181A (en) * | 2010-05-14 | 2011-12-22 | Toshiba Corp | Information processor with usb port |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4219516B2 (en) | POWER CONTROL DEVICE, POWER CONTROL METHOD, AND STORAGE MEDIUM | |
US8677177B2 (en) | Apparatus, a recovery method and a program thereof | |
JP4930051B2 (en) | Status monitor program | |
JP6130520B2 (en) | MULTISYSTEM SYSTEM AND MULTISYSTEM SYSTEM MANAGEMENT METHOD | |
JP2008033836A (en) | Transmission device and software automatic update method | |
JP2006330770A (en) | Usb host device | |
JP4655718B2 (en) | Computer system and control method thereof | |
JP4646859B2 (en) | USB device and USB connection system | |
JP6014627B2 (en) | Electronic device power mode switching system | |
US8924614B2 (en) | Host controller apparatus, information processing apparatus, and event information output method | |
JP2008152316A (en) | Communication system, device, host, communication method, and program | |
JP5309932B2 (en) | Relay device for connecting hot-plug device devices | |
JP2015026251A (en) | Information processing device, control method for information processing device, and program | |
JP4966610B2 (en) | Information processing system, emergency power-off method for information processing system | |
JP5241342B2 (en) | Peripheral devices and information processing systems | |
JP4476010B2 (en) | Serial communication processing device | |
JP2017033321A (en) | Power supply control system, power supply control device, and power supply control method | |
JP6031757B2 (en) | Transponder, its control method and control program | |
JP2004078388A (en) | Slave device turning off power source of its own in synchronization with turn-off of power source of master device and power source control method | |
JP4104559B2 (en) | Remote monitoring control system | |
JP3719115B2 (en) | Monitoring control apparatus and monitoring control method | |
JP2005352942A (en) | Usb equipment, host device, and usb connection system | |
JP2006048106A (en) | Peripheral equipment device system | |
JP2012108648A (en) | Fault monitoring device, fault monitoring system, fault monitoring method, and program | |
JP2011008819A (en) | Usb device and usb connection system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20080616 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20090515 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100622 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100823 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110222 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110705 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20110712 |