[go: up one dir, main page]

JP2004287537A - Data transfer device - Google Patents

Data transfer device Download PDF

Info

Publication number
JP2004287537A
JP2004287537A JP2003075665A JP2003075665A JP2004287537A JP 2004287537 A JP2004287537 A JP 2004287537A JP 2003075665 A JP2003075665 A JP 2003075665A JP 2003075665 A JP2003075665 A JP 2003075665A JP 2004287537 A JP2004287537 A JP 2004287537A
Authority
JP
Japan
Prior art keywords
removal
bus
data transfer
transfer device
control device
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
Application number
JP2003075665A
Other languages
Japanese (ja)
Inventor
Hideaki Yamashita
英明 山下
Toshiyuki Kori
俊之 郡
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 JP2003075665A priority Critical patent/JP2004287537A/en
Publication of JP2004287537A publication Critical patent/JP2004287537A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To ensure that an OS and a system can detect that a device is plugged into or unplugged from an IEEE1394 bus. <P>SOLUTION: A plug in/out detection means 104 in a plug in/out storage device 103 detects the plugging in/out of the device and stores it in a plug in/out storage means 105. Then a control device 101 reads from the plug in/out storage means 105, ensuring that it is possible to detect the plugging in/out of the device. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、活線挿抜機能を有するバス上に接続された複数の機器間でデータ転送を行うデータ転送装置に関する。
【0002】
【従来の技術】
近年、データ転送装置は、ディジタルカメラ、ディジタルビデオにおけるディジタル技術の普及に鑑みて、こうしたディジタル機器を同一のバス上に接続してパーソナルコンピュータ(以下PC)で制御させようとする試みがなされてきている。そのようなバスにおいて、IEEE1394バスは、どのような接続形態でも任意の装置間で信号伝送が可能であること、AV信号のようなリアルタイムデータ(アイソクロナスデータ)と、機器の制御コマンドのような非リアルタイムデータ(アシンクロナスデータ)とを同時に伝送することができ、PC及びその関連機器との親和性が優れたシリアルバスとして普及してきている。
【0003】
また、このシリアルバスは、機器の電源を入れたまま、ディジタル機器の活線挿抜が可能であるが、ディジタル機器の活線挿抜が行われた際に、上位のOSやシステムが必ず挿抜を検出できるわけではなかった。これには、いくつかの理由があるが、その一つの理由を説明する。まず、デバイス挿抜時にはシリアルバス上にバスリセットが発生した後、トポロジの初期化から始まり、各デバイス自体の初期化を行うために、多くのパケットが送受信される。これらの処理はインタフェースカード内の回路で行われ、その結果はそのまま随時MPUへ転送される。MPUの処理には、不要な情報やエラーを含んだ情報も多くあり、OSあるいはシステムとして対応できない場合がでてくる。このような理由により、デバイス挿抜を検出を取りこぼすことが発生していた。
【0004】
従来、このような課題を解決する発明として、データ転送装置は特開2001−274803号公報に記載されたものが知られている。そのデータ転送装置を図4に示す。図4は従来のデータ転送装置のブロック図を示すものである。図4において、200はインタフェースカードであり、ポート回路(PORT)205、物理層回路(PHY)204、リンク層回路(LINK)203、バッファメモリ(MEM)202、インタフェース回路(IF)201、及び解析部206を含み、外部バスから入力された映像データ、制御データ、バス転送に必要な情報などのパケットは、解析部206がポート回路205と物理層回路204の情報を元に解析して、挿抜処理が終了した後の情報をバッファメモリ202に書き込み、インタフェース回路201から内部バスで、MPU207へ転送する。
【0005】
以上のように構成された従来のデータ転送装置について、以下その動作について説明する。
【0006】
まず、この従来例が解決しようとする課題について説明する。高速な転送を実現するシリアルバスであるIEEE1394において、PCには、OHCI(Open Host Controller Interface)プロトコルに規定された仕様のインターフェースカードが備えられている。このインタフェースは、シリアルバス上のプラグの状態を認識しパケット(IDパケット)を逐次内部バッファメモリ202に蓄積するとともに順次PCのMPU207に転送する。
【0007】
MPU207は、転送された情報をデバイスドライバ、アプリケーションプログラムに設定する。この情報からデバイスが挿抜されたことを確認する。
【0008】
この時、データ転送装置は、バスから得られたデータまたはパケットに誤りがあっても、そのまま転送する。受信したパケットは、バッファメモリ202に蓄積されて随時MPU207へ転送される。つまり、ドライバソフト及び各種アプリケーションソフトには、これらの個々の情報から得られたデータの評価と解析、その結果に対する正しい対処が求められることになる。しかし、エラーの内容などあらゆる自体を想定することは難しく、MPU207では正しく処理を行うことができずにシステムが不安定になる。
【0009】
これらの問題を避けるために、コントロールデバイス内のインタフェースカード200内で受信したデータを時系列に蓄積してデータを解析することにより、挿抜処理のシーケンスが終了した後のデータのみをあげることにより、MPU207で正しく処理を行えるようにする。
【0010】
【特許文献1】
特開2001−274803号公報
【0011】
【発明が解決しようとする課題】
このデータ転送装置においては、IEEE1394カードに、従来例で示した機能を追加することにより、活線挿抜に対応することができた。しかし、従来のIEEE1394カードや、IEEE1394カードに相当する機能をチップセット内に有するPCなどでは対応ができなかったので、新たに従来例で示した機能を追加したIEEE1394カードや、それに相当する機能を有するPCを用意する必要があった。さらに、IEEE1394バス上に新たに追加する非制御側デバイスでの対応が望まれていた。
【0012】
本発明は、従来のIEEE1394カード(OHCIカード)や、IEEE1394カードに相当する機能をチップセット内に有するPCを使用しても、IEEE1394バス上のデバイス挿抜・バスリセットを確実に検出することを目的とする。
【0013】
【課題を解決するための手段】
この課題を解決するために本発明の請求項1に記載の発明は、活線挿抜機能を有するバスに他のデバイスを制御するコントロールデバイスと前記バス上のデバイス挿抜を検出する挿抜検出手段と前記挿抜検出手段が検出した結果を記憶する挿抜記憶手段を備えた挿抜記憶デバイスが接続されるデータ転送装置であって、前記バス上にデバイス挿抜が発生した場合には、前記挿抜検出手段は前記バス上のデバイス挿抜を検出して、前記デバイス挿抜があったことを前記挿抜記憶手段に記憶し、前記コントロールデバイスは、前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことにより、前記バス上のデバイス挿抜を検出するように構成したものである。
【0014】
これにより、新規開発するデバイスに新たに機能を設けることにより、従来の機器・デバイスにおいてもデバイス挿抜を確実に検出できるという効果が得られる。
【0015】
【発明の実施の形態】
本発明の請求項1に記載の発明は、活線挿抜機能を有するバスに他のデバイスを制御するコントロールデバイスと前記バス上のデバイス挿抜を検出する挿抜検出手段と前記挿抜検出手段が検出した結果を記憶する挿抜記憶手段を備えた挿抜記憶デバイスが接続されるデータ転送装置であって、前記バス上にデバイス挿抜が発生した場合には、前記挿抜検出手段は前記バス上のデバイス挿抜を検出して、前記デバイス挿抜があったことを前記挿抜記憶手段に記憶し、前記コントロールデバイスは、前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことにより、前記バス上のデバイス挿抜を検出することを特徴とし、デバイス挿抜を確実に検出できるという作用を有するデータ転送装置である。
【0016】
本発明の請求項2に記載の発明は、前記挿抜検出手段は、前記バス上のバスリセットによってデバイス挿抜と判断することを特徴とし、バスリセットが発生したことによるバス上の状態の変化を検出できるという作用を有する請求項1記載のデータ転送装置である。
【0017】
本発明の請求項3に記載の発明は、前記コントロールデバイスは、一定時間間隔で前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことを特徴とし、一定間隔の読み出しを行うことにより一定時間内の検出を可能にするという作用を有する請求項1から2記載のデータ転送装置である。
【0018】
本発明の請求項4に記載の発明は、前記一定時間間隔は、バスリセット状態が収束するのに必要な時間以上に設定することを特徴し、バスリセット中の不安定な状態を避けることを可能にするという作用を有する請求項3記載のデータ転送装置である。
【0019】
本発明の請求項5に記載の発明は、前記挿抜検出手段は、一定時間内に発生したバスリセットを1回のデバイス挿抜として記憶することを特徴とし、バスリセット中に複数回発生するバスリセットを効率よく処理できるという作用をする請求項4記載のデータ転送装置である。
【0020】
本発明の請求項6に記載の発明は、前記一定時間は、バスリセット状態が収束するのに必要な時間以上に設定することを特徴とし、バスリセット中の不安定な状態での処理を避けることができるという作用を有する請求項5記載のデータ転送装置である。
【0021】
本発明の請求項7の記載の発明は、前記コントロールデバイスは、前記挿抜記憶デバイスが存在する場合には、前記コントロールデバイス内で検出するデバイス挿抜のイベントは無効とすることを特徴とし、OSからの割り込みとの共存を可能にするという作用をする請求個6記載のデータ転送装置である。
【0022】
本発明の請求項8記載の発明は、前記バスは、 IEEE1394バスであることを特徴とし、IEEE1394バスで使用することができるという作用を有する請求項7記載のデータ転送装置である。
【0023】
本発明の請求項9記載の発明は、前記コントロールデバイスは、 非同期転送により前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことを特徴とし、非同期転送により制御を行うことにより同期転送に影響を及ぼさないという作用を有する請求項8記載のデータ転送装置である。
【0024】
本発明の請求項10記載の発明は、前記コントロールデバイスは、IEEE1394規格のAV/Cコマンドにより前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことを特徴とし、IEEE1394のAV/Cコマンドを使用することにより汎用的な構成とすることができるという作用を有する請求項9記載のデータ転送装置である。
【0025】
以下、本発明の実施の形態について、図1から図3を用いて説明する。
【0026】
(実施の形態1)
図1、2は本発明のデータ転送装置を説明するためのブロック図とソフトウエア・ハードウエアの構成図である。図1において、101はコントロールデバイス、102はデバイスA、103は挿抜記憶デバイスであり、これらのデバイスが活線挿抜機能を有するIEEE1394バスに接続されている。さらに、挿抜記憶デバイス103内において、104は挿抜検出手段、105は挿抜記憶手段である。図2は、コントロールデバイス101と挿抜記憶デバイス103のモジュール構成を表している。
【0027】
コントロールデバイス101は、IEEE1394バスに接続されているデバイスに対して制御を行うとともに、映像データなどを同期あるいは非同期転送により送受信する。例えば、活線挿抜に対応したOSを搭載したPCなどのデバイスが代表的でり、本実施の形態ではPCであることを前提に説明する。デバイスA102と挿抜記憶デバイス103は、IEEE1394バスに接続されている他のコントロールデバイス101からの制御を受けて動作するとともに、他のデバイスに対して映像データなどを同期あるいは非同期転送により送受信する。
【0028】
まず、一般的なコントロールデバイス101に実装されている挿抜検出方法を説明する。コントロールデバイス101は、IEEE1394インタフェースカードにおいてIEEE1394バス上に発生するバスリセットを検出する。IEEE1394インタフェースカードからは、その結果をコントロールデバイス101のOSに対してイベントをあげる。この場合、OSがイベントに反応できた場合には、IEEE1394バス上のデバイスの挿抜が発生したと認識する。この場合、コントロールデバイス101は、IEEE1394バス上にどんなデバイスが接続されているかを調べ、新たなデバイスの接続環境での処理内容へ変更を行ったりする。図2において追加説明すると、点線がコントロールデバイス内のIEEE1394インタフェースカードからのイベントを表している。バスリセットの検出は、ハードウエアであるIEEE1394インタフェースカードで検出してハードウエア割り込みをその上位のデバイスドライバにあげる。その上位のOSを経由して、アプリケーションへイベントとして通知が行われる。この時点で、アプリケーションはバスリセットが発生したことを検出することになる。
【0029】
この挿抜検出方法では、全てのバスリセットを検出することができないので、本発明での検出方法を説明する。図1において、挿抜記憶デバイス103は、挿抜検出手段104が接続されているIEEE1394バス上にデバイスの挿抜時に発生するバスリセットを検出して、挿抜記憶手段103に記憶する。挿抜記憶デバイスは、挿抜記憶手段105に記憶された結果をIEEE1394上に接続されたデバイスから読み出せるコマンドを設けている。コントロールデバイス101は、一定周期で挿抜記憶デバイス103に対して、バスリセットの検出記憶を確認しに行く。バスリセットが起こったことを挿抜記憶手段105が記憶していれば、バスリセットが発生したことを認識することができる。さらに説明を加えると、コントロールデバイス101のアプリケーションは、IEEE1394バス経由で挿抜記憶デバイス103のハードウエアに記憶されている挿抜記憶をIEEE1394上のプロトコルを用いて読み出しを行う。
【0030】
さらに、図3のフローチャートを用いてコントロールデバイスにソフトウエアを実装する場合の処理について説明する。図3(a)のフローチャートは、本発明で新たに設けた方法である、挿抜記憶デバイスに対して読み出しを行うタスクである。図3(b)のフローチャートは、OS標準のバスリセットを検出してイベントを通知するタスクである。図3(a)のタスクから説明すると、S101はスタートステップ、S102は挿抜記憶手段読み出しステップ、S103は挿抜判定ステップ、S104はデバイス挿抜後の処理ステップ、S105はウエイトステップである。スタートステップS101は処理の開始である。挿抜記憶手段読み出しステップS102は挿抜記憶デバイス103に対して読み出しを行うステップである。挿抜判定S103は、挿抜が発生していたかを判断するステップであり、挿抜記憶手段読み出しステップS102で読み出した結果がバスリセットを検出していれば挿抜が発生したと判断し、デバイス挿抜後の処理ステップS104に移行し、逆に挿抜が発生していなければウエイトステップS105に移行する。ウエイトステップS105は、所定の時間が経過後に挿抜記憶手段読み出しステップS102へ移行する。
【0031】
次に図3(b)のタスクを説明すると、S201はスタートステップ、S202は挿抜イベント待ちステップ、S203は挿抜記憶デバイス判定ステップ、S204はデバイス挿抜後の処理ステップである。スタートステップS201は、処理の開始である。挿抜イベント待ちステップS202は、挿抜イベントが発生するまで待ち、挿抜イベントが発生すれば、挿抜記憶デバイス判定ステップS203へ移行する。挿抜記憶デバイス判定ステップS203は、デバイス挿抜が発生した結果をもとに、挿抜記憶デバイス103が抜かれていたかどうかを判断し、挿抜記憶デバイス103が抜かれていない場合には、挿抜イベント待ちステップS202に移行し、逆に挿抜記憶デバイス103が抜かれていた場合には、デバイス挿抜後の処理ステップS204に移行する。この分岐を行う意味は、挿抜記憶デバイス103が存在する場合には、図3(a)のタスクで挿抜が検出されるために、図3(b)のタスクで検出したイベントは利用しないことである。このことで、2重にデバイス挿抜後の処理を行わないようにする。
【0032】
以上説明したように、挿抜記憶デバイス103に挿抜検出手段104と挿抜記憶手段105を設けて、バスリセットを検出したことを記憶し、コントロールデバイス101から一定間隔で読み出しを行うことにより、確実にバスリセットを検出することができる。
【0033】
なお、本発明の実施の形態において、以上説明した各手段の機能の全部または一部をコンピュータにより実行されるプログラムを格納する記憶媒体を用いてもよい。コントロールデバイスは、PCを使用した場合で説明したが、カメラ、VTRなどでもコントロール機能を有する機器であれば、どんな機器でも同様の効果が得られる。アプリケーションの実現例として、OS標準のイベントを併用して動作させたが、挿抜記憶デバイスを必ず利用するシステムでは、OS標準のイベントを全く利用しなくても良い。IEEE1394バスを用いて説明したが、他の挿抜機能を有するバス、例えば、USB(Universal Serial Bus)などにおいても同様の効果が得られる。
【0034】
【発明の効果】
以上のように本発明によれば、新たに開発するデバイスに機能を追加することにより、従来の機器・規格をそのまま使用しても、デバイス挿抜を確実に検出できるという有利な効果が得られる。
【図面の簡単な説明】
【図1】本発明の一実施の形態による構成を示すブロック図
【図2】本発明の一実施の形態の説明のためのソフトウエア・ハードウエアの構成図
【図3】本発明の一実施の形態の説明のためのフローチャート
【図4】従来のデータ転送装置の構成を示すブロック図
【符号の説明】
101 コンロロールデバイス
102 デバイスA
103 挿抜記憶デバイス
104 挿抜検出手段
105 挿抜記憶手段
S101 スタートステップ
S102 挿抜記憶手段読み出しステップ
S103 挿抜判断ステップ
S104 デバイス挿抜後の処理ステップ
S201 スタートステップ
S202 挿抜イベント待ちステップ
S203 挿抜記憶デバイス判定ステップ
S204 デバイス挿抜後の処理
200 インターフェースカード
201 インターフェース回路
202 バッファメモリ
203 リンク層回路
204 物理層回路
205 ポート回路
206 解析部
207 MPU
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data transfer device for performing data transfer between a plurality of devices connected on a bus having a hot-swap function.
[0002]
[Prior art]
In recent years, in view of the widespread use of digital technology in digital cameras and digital video, attempts have been made to connect such digital devices to the same bus and control them by a personal computer (hereinafter referred to as a PC). I have. Among such buses, the IEEE 1394 bus is capable of transmitting signals between arbitrary devices in any connection form, real-time data (isochronous data) such as AV signals, and non-transmission data such as device control commands. Real-time data (asynchronous data) can be transmitted at the same time, and it has become widespread as a serial bus excellent in compatibility with PCs and related devices.
[0003]
In addition, this serial bus allows hot swapping of digital equipment while the power of the equipment is turned on, but when hot swapping of a digital equipment is performed, the upper-level OS or system always detects the insertion and removal. I couldn't do it. There are several reasons for this, one of which will be explained. First, at the time of device insertion / removal, after a bus reset occurs on the serial bus, starting with the initialization of the topology, many packets are transmitted / received in order to initialize each device itself. These processes are performed by circuits in the interface card, and the results are transferred to the MPU as needed. MPU processing has a lot of unnecessary information and information including errors, and there are cases where the OS or system cannot cope. For these reasons, detection of device insertion / removal may be missed.
[0004]
Conventionally, as an invention for solving such a problem, a data transfer device described in Japanese Patent Application Laid-Open No. 2001-274803 is known. FIG. 4 shows the data transfer device. FIG. 4 shows a block diagram of a conventional data transfer device. 4, reference numeral 200 denotes an interface card, which includes a port circuit (PORT) 205, a physical layer circuit (PHY) 204, a link layer circuit (LINK) 203, a buffer memory (MEM) 202, an interface circuit (IF) 201, and an analysis circuit. The analysis unit 206 analyzes the packet based on the information of the port circuit 205 and the physical layer circuit 204 and inserts and removes the packet such as video data, control data, and information necessary for bus transfer. The information after the processing is completed is written into the buffer memory 202 and transferred from the interface circuit 201 to the MPU 207 via the internal bus.
[0005]
The operation of the conventional data transfer device configured as described above will be described below.
[0006]
First, a problem to be solved by the conventional example will be described. In IEEE 1394, which is a serial bus for realizing high-speed transfer, a PC is provided with an interface card having a specification specified by an OHCI (Open Host Controller Interface) protocol. The interface recognizes the state of the plug on the serial bus, sequentially accumulates packets (ID packets) in the internal buffer memory 202, and sequentially transfers the packets to the MPU 207 of the PC.
[0007]
The MPU 207 sets the transferred information in a device driver and an application program. From this information, confirm that the device has been inserted or removed.
[0008]
At this time, the data transfer device transfers the data or packet obtained from the bus even if there is an error. The received packet is stored in the buffer memory 202 and transferred to the MPU 207 as needed. In other words, the driver software and various application software are required to evaluate and analyze data obtained from these pieces of information, and to correctly deal with the results. However, it is difficult to assume everything, such as the content of an error, and the MPU 207 cannot perform processing correctly, and the system becomes unstable.
[0009]
In order to avoid these problems, the data received in the interface card 200 in the control device is accumulated in a time series and the data is analyzed, so that only the data after the sequence of the insertion / extraction process is increased, The MPU 207 can perform processing correctly.
[0010]
[Patent Document 1]
JP 2001-274803 A
[Problems to be solved by the invention]
In this data transfer device, hot-swapping can be supported by adding the function shown in the conventional example to the IEEE 1394 card. However, a conventional IEEE 1394 card or a PC having a function equivalent to the IEEE 1394 card in a chipset cannot be used. Therefore, an IEEE 1394 card to which a function shown in the conventional example is newly added, or a function corresponding to the IEEE 1394 card is added. It was necessary to prepare a personal computer. Further, it has been desired that a non-control-side device newly added to the IEEE 1394 bus be used.
[0012]
An object of the present invention is to reliably detect device insertion / removal / bus reset on an IEEE 1394 bus even when using a conventional IEEE 1394 card (OHCI card) or a PC having a function corresponding to the IEEE 1394 card in a chipset. And
[0013]
[Means for Solving the Problems]
In order to solve this problem, the invention according to claim 1 of the present invention comprises a control device for controlling another device on a bus having a hot-swap function, an insertion / removal detection means for detecting device insertion / removal on the bus, and A data transfer device to which an insertion / removal storage device having an insertion / removal storage unit for storing a result detected by the insertion / removal detection unit is connected, wherein when a device insertion / removal occurs on the bus, the insertion / removal detection unit includes the bus. By detecting the device insertion and removal on the above, the fact that the device has been inserted and removed is stored in the insertion and removal storage means, and the control device reads the presence or absence of device insertion and removal from the insertion and removal storage means of the insertion and removal detection device, It is configured to detect device insertion / removal on the bus.
[0014]
Accordingly, by newly providing a function to a newly developed device, an effect is obtained that device insertion / removal can be reliably detected even in a conventional device / device.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
The invention according to claim 1 of the present invention is a control device for controlling another device on a bus having a hot-swap function, a result of detection by the insertion / removal detection means for detecting device insertion / removal on the bus, and a result detected by the detection device. A data transfer device to which an insertion / removal storage device provided with an insertion / removal storage means for storing a device, wherein when device insertion / removal occurs on the bus, the insertion / removal detection means detects device insertion / removal on the bus. The control device detects the presence or absence of device insertion / removal by reading the presence / absence of device insertion / removal from the insertion / removal storage unit of the insertion / removal detection device. The data transfer device has an operation of reliably detecting device insertion / removal.
[0016]
The invention according to claim 2 of the present invention is characterized in that the insertion / removal detection means determines that a device is inserted / removed by a bus reset on the bus, and detects a change in state on the bus due to the occurrence of a bus reset. 2. The data transfer device according to claim 1, wherein the data transfer device has an effect of being able to do so.
[0017]
The invention according to claim 3 of the present invention is characterized in that the control device reads the presence / absence of device insertion / removal from the insertion / removal storage means of the insertion / removal detection device at regular time intervals. 3. The data transfer device according to claim 1, having an operation of enabling detection within a predetermined time.
[0018]
The invention described in claim 4 of the present invention is characterized in that the predetermined time interval is set to be longer than a time required for the bus reset state to converge, and to avoid an unstable state during the bus reset. 4. The data transfer device according to claim 3, which has an effect of enabling the data transfer.
[0019]
The invention according to claim 5 of the present invention is characterized in that the insertion / removal detection means stores a bus reset generated within a fixed time as one device insertion / removal, and a bus reset generated plural times during the bus reset. 5. The data transfer device according to claim 4, wherein said data transfer device has an effect of efficiently processing.
[0020]
The invention according to claim 6 of the present invention is characterized in that the predetermined time is set to be longer than a time required for the bus reset state to converge, and to avoid processing in an unstable state during the bus reset. 6. The data transfer device according to claim 5, which has an effect of being able to perform the data transfer.
[0021]
The invention according to claim 7 of the present invention is characterized in that the control device invalidates a device insertion / removal event detected in the control device when the insertion / removal storage device is present, 7. The data transfer device according to claim 6, wherein the data transfer device has an effect of enabling coexistence with an interrupt.
[0022]
The invention according to claim 8 of the present invention is the data transfer device according to claim 7, characterized in that the bus is an IEEE 1394 bus, and has an effect that the bus can be used on the IEEE 1394 bus.
[0023]
The invention according to claim 9 of the present invention is characterized in that the control device reads out the presence / absence of device insertion / removal from the insertion / removal storage means of the insertion / removal detection device by asynchronous transfer, and performs synchronous transfer by performing control by asynchronous transfer. 9. The data transfer device according to claim 8, which has an effect of not affecting.
[0024]
An invention according to claim 10 of the present invention is characterized in that the control device reads out the presence / absence of device insertion / removal from the insertion / removal storage unit of the insertion / removal detection device using an IEEE1394 standard AV / C command. 10. The data transfer device according to claim 9, which has an effect that a general configuration can be obtained by using a command.
[0025]
Hereinafter, an embodiment of the present invention will be described with reference to FIGS.
[0026]
(Embodiment 1)
FIGS. 1 and 2 are a block diagram and a software / hardware configuration diagram for explaining a data transfer device according to the present invention. In FIG. 1, reference numeral 101 denotes a control device, 102 denotes a device A, and 103 denotes an insertion / removal storage device. These devices are connected to an IEEE 1394 bus having a hot-swap function. Further, in the insertion / removal storage device 103, reference numeral 104 denotes an insertion / removal detection unit, and reference numeral 105 denotes an insertion / removal storage unit. FIG. 2 shows a module configuration of the control device 101 and the insertion / removal storage device 103.
[0027]
The control device 101 controls devices connected to the IEEE 1394 bus, and transmits and receives video data and the like by synchronous or asynchronous transfer. For example, a device such as a PC equipped with an OS that supports hot-swapping is typical, and the present embodiment will be described on the assumption that the device is a PC. The device A 102 and the insertion / removal storage device 103 operate under the control of another control device 101 connected to the IEEE 1394 bus, and transmit and receive video data and the like to and from other devices by synchronous or asynchronous transfer.
[0028]
First, an insertion / removal detection method mounted on a general control device 101 will be described. The control device 101 detects a bus reset occurring on the IEEE 1394 bus in the IEEE 1394 interface card. From the IEEE 1394 interface card, the result is sent to the OS of the control device 101 as an event. In this case, if the OS can respond to the event, it recognizes that a device on the IEEE 1394 bus has been inserted or removed. In this case, the control device 101 checks what device is connected to the IEEE 1394 bus, and changes the processing content in a new device connection environment. 2, a dotted line indicates an event from the IEEE 1394 interface card in the control device. The bus reset is detected by an IEEE 1394 interface card, which is hardware, and a hardware interrupt is sent to a higher-order device driver. The application is notified as an event via the higher-level OS. At this point, the application will detect that a bus reset has occurred.
[0029]
Since this bus insertion / removal detection method cannot detect all bus resets, a detection method according to the present invention will be described. In FIG. 1, the insertion / removal storage device 103 detects a bus reset occurring when a device is inserted / removed on the IEEE1394 bus to which the insertion / removal detection unit 104 is connected, and stores the bus reset in the insertion / removal storage unit 103. The insertion / removal storage device is provided with a command for reading a result stored in the insertion / removal storage unit 105 from a device connected to IEEE 1394. The control device 101 checks the storage of the bus reset with respect to the insertion / removal storage device 103 at regular intervals. If the insertion and removal storage unit 105 stores that the bus reset has occurred, it is possible to recognize that the bus reset has occurred. More specifically, the application of the control device 101 reads the insertion / removal storage stored in the hardware of the insertion / removal storage device 103 via the IEEE 1394 bus using the protocol on IEEE 1394.
[0030]
Further, processing when software is installed in the control device will be described with reference to the flowchart of FIG. The flowchart in FIG. 3A is a task for reading data from an insertion / removal storage device, which is a method newly provided in the present invention. The flowchart of FIG. 3B is a task of detecting an OS standard bus reset and notifying an event. Starting from the task of FIG. 3A, S101 is a start step, S102 is an insertion / removal storage means reading step, S103 is an insertion / removal determination step, S104 is a processing step after device insertion / removal, and S105 is a wait step. The start step S101 is the start of the process. The insertion / removal storage means readout step S102 is a step for reading out the insertion / removal storage device 103. The insertion / removal determination S103 is a step of determining whether or not the insertion / removal has occurred. If the result read out in the insertion / removal storage means reading step S102 detects a bus reset, it is determined that the insertion / removal has occurred. The process proceeds to step S104. Conversely, if no insertion or removal has occurred, the process proceeds to the wait step S105. In the wait step S105, after a predetermined time has elapsed, the process proceeds to the insertion / removal storage unit reading step S102.
[0031]
Next, the task in FIG. 3B will be described. S201 is a start step, S202 is an insertion / removal event waiting step, S203 is an insertion / removal storage device determination step, and S204 is a processing step after device insertion / removal. The start step S201 is the start of the process. An insertion / extraction event waiting step S202 waits until an insertion / extraction event occurs. If an insertion / extraction event occurs, the process proceeds to an insertion / extraction storage device determination step S203. The insertion / removal storage device determination step S203 determines whether the insertion / removal storage device 103 has been removed based on the result of device insertion / removal. If the insertion / removal storage device 103 has not been removed, the process proceeds to an insertion / removal event waiting step S202. The process proceeds to the step S204 when the insertion / removal storage device 103 has been removed. The reason for performing this branch is that if the insertion / removal storage device 103 exists, the insertion / removal is detected by the task of FIG. 3A, and the event detected by the task of FIG. 3B is not used. is there. This prevents double processing after device insertion / removal.
[0032]
As described above, by providing the insertion / removal detection means 104 and the insertion / removal storage means 105 in the insertion / removal storage device 103, the fact that the bus reset is detected is stored, and by reading out the control device 101 at regular intervals, the bus can be surely transmitted. A reset can be detected.
[0033]
In the embodiments of the present invention, a storage medium for storing a program to be executed by a computer for all or a part of the function of each unit described above may be used. Although the control device has been described using a PC, any device having a control function, such as a camera or a VTR, can achieve the same effect. As an example of realizing an application, an OS standard event is used in combination, but in a system that always uses an insertion / removal storage device, an OS standard event may not be used at all. Although the description has been made using the IEEE 1394 bus, a similar effect can be obtained in a bus having another insertion / removal function, for example, a USB (Universal Serial Bus).
[0034]
【The invention's effect】
As described above, according to the present invention, by adding a function to a newly developed device, an advantageous effect that the device insertion / removal can be reliably detected even when the conventional device / standard is used as it is can be obtained.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration according to an embodiment of the present invention; FIG. 2 is a configuration diagram of software and hardware for describing an embodiment of the present invention; FIG. FIG. 4 is a block diagram showing the configuration of a conventional data transfer device.
101 Control device 102 Device A
103 insertion / extraction storage device 104 insertion / extraction detection means 105 insertion / extraction storage means S101 start step S102 insertion / extraction storage means reading step S103 insertion / extraction determination step S104 processing after device insertion / extraction S201 start step S202 insertion / extraction event waiting step S203 insertion / extraction storage device determination step S204 after device insertion / extraction Processing 200 interface card 201 interface circuit 202 buffer memory 203 link layer circuit 204 physical layer circuit 205 port circuit 206 analyzer 207 MPU

Claims (10)

活線挿抜機能を有するバスに他のデバイスを制御するコントロールデバイスと
前記バス上のデバイス挿抜を検出する挿抜検出手段と
前記挿抜検出手段が検出した結果を記憶する挿抜記憶手段を
備えた挿抜記憶デバイスが接続されるデータ転送装置であって、
前記バス上にデバイス挿抜が発生した場合には、
前記挿抜検出手段は前記バス上のデバイス挿抜を検出して、
前記デバイス挿抜があったことを前記挿抜記憶手段に記憶し、
前記コントロールデバイスは、前記挿抜検出デバイスの前記挿抜記憶手段に
デバイス挿抜の有無を読み出すことにより、
前記バス上のデバイス挿抜を検出する
ことを特徴とするデータ転送装置。
A control device for controlling other devices on a bus having a hot-swap function, an insertion / removal detection means for detecting device insertion / removal on the bus, and an insertion / removal storage device comprising an insertion / removal storage means for storing a result detected by the insertion / removal detection means Is a data transfer device to be connected,
When device insertion / removal occurs on the bus,
The insertion / removal detection means detects device insertion / removal on the bus,
The fact that the device has been inserted and removed is stored in the insertion and removal storage means,
The control device, by reading the presence or absence of device insertion and removal in the insertion and removal storage means of the insertion and removal detection device,
A data transfer device for detecting insertion and removal of a device on the bus.
前記挿抜検出手段は、
前記バス上のバスリセットによってデバイス挿抜と判断する
ことを特徴とする請求項1記載のデータ転送装置。
The insertion / extraction detection means,
2. The data transfer device according to claim 1, wherein the device is determined to be inserted or removed by a bus reset on the bus.
前記コントロールデバイスは、一定時間間隔で前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことを特徴とする請求項1から2記載のデータ転送装置。3. The data transfer device according to claim 1, wherein the control device reads the presence / absence of device insertion / removal from the insertion / removal storage unit of the insertion / removal detection device at predetermined time intervals. 前記一定時間間隔は、バスリセット状態が収束するのに必要な時間以上に設定することを特徴とする請求項3記載のデータ転送装置。4. The data transfer device according to claim 3, wherein the predetermined time interval is set to be equal to or longer than a time required for the bus reset state to converge. 前記挿抜検出手段は、一定時間内に発生したバスリセットを1回のデバイス挿抜として記憶することを特徴とする請求項4記載のデータ転送装置。5. The data transfer device according to claim 4, wherein said insertion / removal detection means stores a bus reset generated within a predetermined time as one device insertion / removal. 前記一定時間は、バスリセット状態が収束するのに必要な時間以上に設定することを特徴とする請求項5記載のデータ転送装置。6. The data transfer device according to claim 5, wherein the predetermined time is set to be equal to or longer than a time required for the bus reset state to converge. 前記コントロールデバイスは、前記挿抜記憶デバイスが存在する場合には、前記コントロールデバイス内で検出するデバイス挿抜のイベントは無効とすることを特徴とする請求個6記載のデータ転送装置。7. The data transfer device according to claim 6, wherein the control device invalidates a device insertion / removal event detected in the control device when the insertion / removal storage device is present. 前記バスは、IEEE1394バスであることを特徴とする請求項7記載のデータ転送装置。The data transfer device according to claim 7, wherein the bus is an IEEE 1394 bus. 前記コントロールデバイスは、非同期転送により前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことを特徴とする請求項8記載のデータ転送装置。9. The data transfer device according to claim 8, wherein the control device reads the presence or absence of device insertion / removal from the insertion / removal storage unit of the insertion / removal detection device by asynchronous transfer. 前記コントロールデバイスは、IEEE1394規格のAV/Cコマンドにより前記挿抜検出デバイスの前記挿抜記憶手段にデバイス挿抜の有無を読み出すことを特徴とする請求項9記載のデータ転送装置。10. The data transfer device according to claim 9, wherein the control device reads the presence / absence of device insertion / removal from the insertion / removal storage unit of the insertion / removal detection device using an IEEE1394 standard AV / C command.
JP2003075665A 2003-03-19 2003-03-19 Data transfer device Pending JP2004287537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003075665A JP2004287537A (en) 2003-03-19 2003-03-19 Data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003075665A JP2004287537A (en) 2003-03-19 2003-03-19 Data transfer device

Publications (1)

Publication Number Publication Date
JP2004287537A true JP2004287537A (en) 2004-10-14

Family

ID=33290924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003075665A Pending JP2004287537A (en) 2003-03-19 2003-03-19 Data transfer device

Country Status (1)

Country Link
JP (1) JP2004287537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010015431A (en) * 2008-07-04 2010-01-21 Seiko Epson Corp Host controller, information processing apparatus, and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010015431A (en) * 2008-07-04 2010-01-21 Seiko Epson Corp Host controller, information processing apparatus, and electronic device

Similar Documents

Publication Publication Date Title
CN108008980B (en) Method and apparatus for initiating re-enumeration of USB3.0 compatible devices
US7451250B2 (en) Methods and apparatus for providing automatic high speed data connection in portable device
TWI778063B (en) Usb host-to-host auto-switching
US6757772B2 (en) Interface device, node, interface system, method for controlling bus reset and computer program product for controlling bus reset
JP3599048B2 (en) Data transfer control system, electronic device, program, and data transfer control method
JP2004287537A (en) Data transfer device
US7366805B2 (en) Data transfer control system, electronic instrument, program, and data transfer control method
CN116126769A (en) Isolation circuit and device isolation method for serial bus
US8972625B2 (en) Electronic apparatus and host determination method
EP3413205A1 (en) Re-enumeration of usb 3.0 compatible devices
JP2002063129A (en) Device management system and device management method
JP4026979B2 (en) Data communication system
US8171185B2 (en) Electronic device and communication method
JP3606145B2 (en) Data transfer control device and electronic device
JP6958110B2 (en) Information processing equipment and programs
KR20090024419A (en) Communication method and communication device using USB
JP2008181230A (en) Usb data transfer system and its computer
JP2002300176A (en) Data communication unit, data communication method, program for the data communication method, and recording medium with recorded program for the data communication method
JP2001274803A (en) Interface device and interface system
JP2006031235A (en) Information processor, external device, host device, and communication method
JP2010003268A (en) Slave device
CN117762846A (en) Hot plug system and method for PCIE equipment
CN118733325A (en) Electronic device debugging method
KR20020020595A (en) Method for Controlling a Hot-Plugging Enabled Storage Device
JP2000267988A (en) DMA controller and abnormality detection method for DMA controller

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050708

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060424

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060516

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060712

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070220