JPH10283135A - Data processing method, data processor, printer and storage medium - Google Patents

Data processing method, data processor, printer and storage medium

Info

Publication number
JPH10283135A
JPH10283135A JP9089825A JP8982597A JPH10283135A JP H10283135 A JPH10283135 A JP H10283135A JP 9089825 A JP9089825 A JP 9089825A JP 8982597 A JP8982597 A JP 8982597A JP H10283135 A JPH10283135 A JP H10283135A
Authority
JP
Japan
Prior art keywords
protocol
printer
host
data
node
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.)
Granted
Application number
JP9089825A
Other languages
Japanese (ja)
Other versions
JP3495878B2 (en
Inventor
Koji Fukunaga
耕司 福長
Kiyoshi Katano
清 片野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP08982597A priority Critical patent/JP3495878B2/en
Priority to SG1998000294A priority patent/SG74611A1/en
Priority to SG200105141A priority patent/SG101460A1/en
Priority to TW087101785A priority patent/TW384611B/en
Priority to CA002229472A priority patent/CA2229472C/en
Priority to MX9801199A priority patent/MX9801199A/en
Priority to CN98104444A priority patent/CN1126343C/en
Priority to AU53921/98A priority patent/AU5392198A/en
Priority to KR1019980004329A priority patent/KR100298140B1/en
Priority to EP05076775A priority patent/EP1612691A1/en
Priority to EP98301120A priority patent/EP0859325A3/en
Priority to US09/025,128 priority patent/US6425019B1/en
Publication of JPH10283135A publication Critical patent/JPH10283135A/en
Priority to US10/041,647 priority patent/US6874082B2/en
Application granted granted Critical
Publication of JP3495878B2 publication Critical patent/JP3495878B2/en
Priority to US11/033,292 priority patent/US7401213B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To adapt a protocol even to a host not corresponding to an initial protocol by performing changeover to the protocol corresponding to the host by using the obtained identifier of the host and executing it in the case of judging the host not corresponding to the initial protocol. SOLUTION: Equipments A-H are provided and A and B, A and C, B and D, D and E, C and F, C and G and C and H are respectively connected by the twist pair cable of a 1394 serial bus. The respective equipments A-H are respectively provided with intrinsic IDs. In such a system, the initial protocol unrelated to the kind of the protocol of this printer is executed, the host not corresponding to the initial protocol is judged and the intrinsic identifier of the host is obtained. Then, in the case of judging that it is the host not corresponding to the initial protocol, the obtained identifier of the host is used and the protocol corresponding to the host is switched and executed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、共通シリアスバス
を介して、複数種類のプリンタのプロトコルの中からホ
ストに対応したプロトコルに切り換えるためのデータ処
理方法、データ処理装置、プリンタ及び記憶媒体に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing method, a data processing device, a printer, and a storage medium for switching from a plurality of types of printer protocols to a protocol corresponding to a host via a common serial bus. It is.

【0002】[0002]

【従来の技術】従来より、シリアスバスを介してプリン
タにデータを送出するシステムとして、様々な種類のシ
ステムが知られている。
2. Description of the Related Art Conventionally, various types of systems have been known as systems for sending data to a printer via a serial bus.

【0003】例えば、SCSI(Small Computer Syste
m Interface )、セントロニクス等、一般に広く用いら
れるようになったデファクトスタンダードのインターフ
ェースを用いて、コンピュータからプリンタにデータを
出力する技術が知られている。
For example, SCSI (Small Computer System)
A technique of outputting data from a computer to a printer using a de facto standard interface that has been widely used, such as m Interface) or Centronics, is known.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、シリア
スバスを用いてプリンタデータを送出する従来のプリン
タプロトコルは、プリンタメーカ固有の1つに限られて
いた。したがって、拡張性に欠ける、という問題が生じ
ていた。特に、様々な種類の機器を接続するインターフ
ェース、例えば、IEEE1394のようなインターフ
ェースを用いて、プリントデータを出力する際には、か
かる拡張性に欠けるという問題点は解決すべき大きな課
題であった。
However, the conventional printer protocol for transmitting printer data using a serial bus is limited to one unique to a printer maker. Therefore, there has been a problem of lack of expandability. In particular, when print data is output using an interface for connecting various types of devices, for example, an interface such as IEEE1394, the problem of lack of expandability has been a major problem to be solved.

【0005】そこで、本発明は、上記の欠点を除去する
ために成されたもので、システムバスを介してプリント
データを送出する際に、拡張性の高いデータ処理方法、
データ処理装置、プリンタ及び記憶媒体を提供すること
を目的とする。また、本発明は、IEEE1394規格
に好適なデータ処理方法、データ処理装置、プリンタ及
び記憶媒体を提供することを目的とする。また、本発明
は、コンピュータを介することなく、画像データ出力デ
バイスから直接プリンタを接続するのに好適なデータ処
理方法、データ処理装置、プリンタ及び記憶媒体を提供
することを目的とする。また、初期プロトコルに対応し
ないホストに対しても、プロトコルを適合させることが
できるデータ処理方法、データ処理装置、プリンタ及び
記憶媒体を提供することを目的とする。
Accordingly, the present invention has been made to eliminate the above-mentioned drawbacks, and has a scalable data processing method for transmitting print data via a system bus.
It is an object to provide a data processing device, a printer, and a storage medium. Another object of the present invention is to provide a data processing method, a data processing device, a printer, and a storage medium suitable for the IEEE 1394 standard. It is another object of the present invention to provide a data processing method, a data processing device, a printer, and a storage medium suitable for connecting a printer directly from an image data output device without using a computer. It is another object of the present invention to provide a data processing method, a data processing device, a printer, and a storage medium that can adapt a protocol to a host that does not support the initial protocol.

【0006】[0006]

【課題を解決するための手段】本発明は、共通シリアス
バスを介して複数種類のプリンタのプロトコルを切り換
えるためのデータ処理方法であって、前記プリンタのプ
ロトコルの種類に係わらない初期プロトコルを実行し、
前記初期プロトコルに対応しないホストを判定し、前記
ホストの固有の識別子を取得し、前記初期プロトコルに
対応しないホストであると判定された場合、取得された
そのホストの識別子を用いて、該ホストに対応したプロ
トコルに切り換えて実行することを特徴とする。また、
前記共通シリアルバスは、IEEE1394規格に適合
したバスであることを特徴とする。また、前記プリンタ
のプロトコルは、インクジェットプリンタ用のプロトコ
ルであることを特徴とする。また、前記共通シリアルバ
スは、USB規格に適合したバスであることを特徴とす
る。また、前記初期プロトコルは、OSIモデルのデー
タリンク層よりも上位の層で実行されるプロトコルであ
ることを特徴とする。また、前記プリンタ固有のプロト
コル実行後に、プリントすべき画像データを伝送するこ
とを特徴とする。また、前記画像データは、撮像手段に
よって光電変換されたデータであることを特徴とする。
本発明は、共通シリアスバスを介して複数種類のプリン
タのプロトコルを切り換えるためのデータ処理装置であ
って、前記プリンタのプロトコルの種類に係わらない初
期プロトコルを実行する実行手段と、前記初期プロトコ
ルに対応しないホストを判定する判定手段と、前記ホス
トの固有の識別子を取得する取得手段とを備え、前記実
行手段は、前記判定手段の判定結果により、前記初期プ
ロトコルに対応しないホストであると判定した場合、前
記取得手段で取得された識別子を用いて、該ホストに対
応したプロトコルに切り換えて実行することを特徴とす
る。また、前記共通シリアルバスは、IEEE1394
規格に適合したバスであることを特徴とする。また、前
記プリンタのプロトコルは、インクジェットプリンタ用
のプロトコルであることを特徴とする。また、前記共通
シリアルバスは、USB規格に適合したバスであること
を特徴とする。また、前記初期プロトコルは、OSIモ
デルのデータリンク層よりも上位の層で実行されるプロ
トコルであることを特徴とする。また、前記プリンタ固
有のプロトコル実行後に、プリントすべき画像データを
伝送することを特徴とする。また、前記画像データは、
撮像手段によって光電変換されたデータであることを特
徴とする。本発明は、共通シリアスバスを介して複数種
類のプリンタのプロトコルを切り換えるプリンタであっ
て、前記プリンタのプロトコルの種類に係わらない初期
プロトコルを実行する実行手段と、前記初期プロトコル
に対応しないホストを判定する判定手段と、前記ホスト
の固有の識別子を取得する取得手段とを備え、前記実行
手段は、前記判定手段の判定結果により、前記初期プロ
トコルに対応しないホストであると判定した場合、前記
取得手段で取得された識別子を用いて、該ホストに対応
したプロトコルに切り換えて実行することを特徴とす
る。また、前記共通シリアルバスは、IEEE1394
規格に適合したバスであることを特徴とする。また、前
記プリンタのプロトコルは、インクジェットプリンタ用
のプロトコルであることを特徴とする。また、前記共通
シリアルバスは、USB規格に適合したバスであること
を特徴とする。また、前記初期プロトコルは、OSIモ
デルのデータリンク層よりも上位の層で実行されるプロ
トコルであることを特徴とする。また、光電変換を行っ
て得た画像データを前記印字データとして前記受信手段
に送信する撮像手段を備えることを特徴とする。本発明
は、共通シリアスバスを介して複数種類のプリンタのプ
ロトコルを切り換えるためのデータ処理を実行するため
のステップが格納された記憶媒体であって、前記プリン
タのプロトコルの種類に係わらない初期プロトコルを実
行する実行ステップと、前記初期プロトコルに対応しな
いホストを判定する判定ステップと、前記ホストの固有
の識別子を取得する取得ステップとをコンピュータが読
出可能に格納し、前記実行ステップは、前記判定ステッ
プの判定結果により、前記初期プロトコルに対応しない
ホストであると判定した場合、前記取得ステップで取得
された識別子を用いて、該ホストに対応したプロトコル
に切り換えて実行するステップを含むことを特徴とす
る。また、前記共通シリアルバスは、IEEE1394
規格に適合したバスであることを特徴とする。また、前
記プリンタのプロトコルは、インクジェットプリンタ用
のプロトコルであることを特徴とする。また、前記共通
シリアルバスは、USB規格に適合したバスであること
を特徴とする。また、前記初期プロトコルは、OSIモ
デルのデータリンク層よりも上位の層で実行されるプロ
トコルであることを特徴とする。また、前記実行ステッ
プは、前記プリンタ固有のプロトコル実行後に、プリン
トすべき画像データを伝送するステップを含むことを特
徴とする。また、前記画像データは、撮像手段によって
光電変換されたデータであることを特徴とする。
SUMMARY OF THE INVENTION The present invention is a data processing method for switching a plurality of types of printer protocols via a common serial bus, and executes an initial protocol irrespective of the type of the printer protocol. ,
Determine a host that does not support the initial protocol, obtain a unique identifier of the host, and if it is determined that the host does not support the initial protocol, use the obtained identifier of the host, to the host It is characterized by switching to a corresponding protocol for execution. Also,
The common serial bus is a bus conforming to the IEEE 1394 standard. Further, the protocol of the printer is a protocol for an inkjet printer. Further, the common serial bus is a bus conforming to the USB standard. Further, the initial protocol is a protocol executed in a layer higher than the data link layer of the OSI model. Further, after executing the printer-specific protocol, image data to be printed is transmitted. Further, the image data is data photoelectrically converted by an imaging unit.
The present invention relates to a data processing device for switching a plurality of types of printer protocols via a common serial bus, wherein the execution unit executes an initial protocol irrespective of the type of the printer protocol; Determining means for determining a host not to perform, and obtaining means for obtaining a unique identifier of the host, wherein the execution means determines from the determination result of the determining means that the host does not correspond to the initial protocol. Using the identifier acquired by the acquiring means, the protocol is switched to a protocol corresponding to the host and executed. Further, the common serial bus is an IEEE1394.
It is a bus that conforms to the standard. Further, the protocol of the printer is a protocol for an inkjet printer. Further, the common serial bus is a bus conforming to the USB standard. Further, the initial protocol is a protocol executed in a layer higher than the data link layer of the OSI model. Further, after executing the printer-specific protocol, image data to be printed is transmitted. Further, the image data is
The data is photoelectrically converted by the imaging means. The present invention relates to a printer for switching protocols of a plurality of types of printers via a common serial bus, and executing means for executing an initial protocol irrespective of the type of the protocol of the printer, and determining a host which does not support the initial protocol. Determining means, and obtaining means for obtaining a unique identifier of the host, wherein the executing means determines, based on a determination result of the determining means, that the host does not correspond to the initial protocol, the obtaining means And switching to a protocol corresponding to the host using the identifier acquired in step (1). Further, the common serial bus is an IEEE1394.
It is a bus that conforms to the standard. Further, the protocol of the printer is a protocol for an inkjet printer. Further, the common serial bus is a bus conforming to the USB standard. Further, the initial protocol is a protocol executed in a layer higher than the data link layer of the OSI model. The image processing apparatus further includes an image pickup unit that transmits image data obtained by performing photoelectric conversion to the reception unit as the print data. The present invention relates to a storage medium storing steps for executing data processing for switching a plurality of types of printer protocols via a common serial bus, wherein an initial protocol irrespective of the type of the printer protocol is stored. An execution step to be executed, a determination step of determining a host that does not correspond to the initial protocol, and an acquisition step of acquiring a unique identifier of the host are stored in a computer readable manner, and the execution step is performed by the computer. When the determination result indicates that the host does not support the initial protocol, the method includes a step of switching to a protocol corresponding to the host using the identifier obtained in the obtaining step and executing the host. Further, the common serial bus is an IEEE1394.
It is a bus that conforms to the standard. Further, the protocol of the printer is a protocol for an inkjet printer. Further, the common serial bus is a bus conforming to the USB standard. Further, the initial protocol is a protocol executed in a layer higher than the data link layer of the OSI model. Further, the executing step includes a step of transmitting image data to be printed after executing the printer-specific protocol. Further, the image data is data photoelectrically converted by an imaging unit.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0008】ここで、まず、以下に説明する第1及び第
2の実施の形態では、各機器間を接続するディジタルI
/Fとして、IEEE1394シリアルバスを用いてい
るため、IEEE1394シリアルバスについて、予め
説明する。
Here, first, in the first and second embodiments described below, a digital I / O connecting each device is used.
Since the IEEE 1394 serial bus is used as / F, the IEEE 1394 serial bus will be described in advance.

【0009】民生用デジタルVCRやDVDプレーヤの
登場に伴なって、ビデオデータやオーディオデータなど
のリアルタイムで、かつ高情報量のデータ転送のサポー
トが必要になっている。こういったビデオデータやオー
ディオデータをリアルタイムで転送し、パソコン(P
C)に取り込んだり、またはその他のデジタル機器に転
送を行なうには、必要な転送機能を備えた高速データ転
送可能なインタフェースが必要になってくるものであ
り、そういった観点から開発されたインタフェースが、
IEEE1394−1995(High Performance Serial Bu
s )(以下、単に1394シリアルバスとも言う)であ
る。
With the advent of consumer digital VCRs and DVD players, it is necessary to support real-time and high-information-volume data transfer of video data and audio data. Such video data and audio data are transferred in real time and transmitted to a personal computer (P
In order to capture the data in C) or transfer the data to other digital devices, an interface capable of high-speed data transfer having a necessary transfer function is required, and the interface developed from such a viewpoint is:
IEEE 1394-1995 (High Performance Serial Bu
s) (hereinafter simply referred to as 1394 serial bus).

【0010】図1に1394シリアルバスを用いて構成
されるネットワーク・システムの例を示す。
FIG. 1 shows an example of a network system configured using a 1394 serial bus.

【0011】このシステムは、機器A,B,C,D,
E,F,G,Hを備えており、A−B間、A−C間、B
−D間、D−E間、C−F間、C−G間、及びC−H間
をそれぞれ1394シリアルバスのツイスト・ペア・ケ
ーブルで接続されている。この機器A〜Hは、例えばパ
ソコン、デジタルVTR、DVD、デジタルカメラ、ハ
ードディスク、モニタ、チューナー、モニター等であ
る。
This system comprises devices A, B, C, D,
E, F, G, H, and between A and B, between A and C, B
The 1394 serial bus twisted pair cables are connected between -D, DE, CF, CG, and CH. The devices A to H are, for example, personal computers, digital VTRs, DVDs, digital cameras, hard disks, monitors, tuners, monitors, and the like.

【0012】各機器間の接続方式は、ディジーチェーン
方式とノード分岐方式とを混在可能としたものであり、
自由度の高い接続が可能である。
[0012] The connection method between the devices can be a mixture of the daisy chain method and the node branch method.
A highly flexible connection is possible.

【0013】また、各機器は各自固有のIDを有し、そ
れぞれが認識し合うことによって1394シリアルバス
で接続された範囲において、1つのネットワークを構成
している。各デジタル機器間をそれぞれ1本の1394
シリアルバスケーブルで順次接続するだけで、それぞれ
の機器が中継の役割を行い、全体として1つのネットワ
ークを構成するものである。また、1394シリアルバ
ス、Plug&Play機能でケーブルを機器に接続し
た時点で自動で機器の認識や接続状況などを認識する機
能を有している。
Each device has its own unique ID and recognizes each other to form a single network in a range connected by a 1394 serial bus. One 1394 connection between each digital device
Just by sequentially connecting with a serial bus cable, each device plays a role of relay, and constitutes one network as a whole. In addition, it has a function of automatically recognizing the device and recognizing the connection status when the cable is connected to the device by the 1394 serial bus and the Plug & Play function.

【0014】また、図1に示したようなシステムにおい
て、ネットワークからある機器が削除されたり、または
新たに追加されたときなど、自動的にバスリセットを行
い、それまでのネットワーク構成をリセットしてから、
新たなネットワークの再構築を行なう。この機能によっ
て、その時々のネットワークの構成を常時設定、認識す
ることができる。
In the system shown in FIG. 1, when a certain device is deleted from the network or newly added, the bus is automatically reset, and the network configuration up to that time is reset. From
Rebuild a new network. With this function, the configuration of the network at that time can be constantly set and recognized.

【0015】またデータ転送速度は、100/200/
400Mbpsと備えており、上位の転送速度を持つ機
器が下位の転送速度をサポートし、互換をとるようにな
っている。
The data transfer rate is 100/200 /
It has a transmission rate of 400 Mbps, and a device having a higher transfer rate supports a lower transfer rate and is compatible.

【0016】データ転送モードとしては、コントロール
信号などの非同期データ(Asynchronousデ
ータ:以下、Asyncデータと言う)を転送するAs
ynchronous転送モードとリアルタイムなビデ
オデータやオーディオデータ等の同期データ(Isoc
hronousデータ:以下、Isoデータと言う)を
転送するIsochronous転送モードがある。こ
のAsyncデータとIsoデータは各サイクル(通常
1サイクル125μS )の中において、サイクル開始を
示すサイクル・スタート・パケット(CSP)を転送し
た後、Isoデータの転送をAsyncデータより優先
しつつサイクル内で混在して転送される。
As a data transfer mode, As is used to transfer asynchronous data such as a control signal (hereinafter, referred to as Async data).
synchronous transfer mode such as video data and audio data in real time (Isoc)
There is an Isochronous transfer mode for transferring the strong data (hereinafter referred to as Iso data). After transferring a cycle start packet (CSP) indicating the start of a cycle in each cycle (usually 125 μs per cycle), the Async data and the Iso data are transferred within the cycle while giving priority to the transfer of the Iso data over the Async data. It is mixed and transferred.

【0017】つぎに、図2に1394シリアルバスの構
成要素を示す。
Next, FIG. 2 shows components of the 1394 serial bus.

【0018】1394シリアルバスは全体としてレイヤ
(階層)構造で構成されている。図2に示したように、
1394シリアルバスのケーブルとコネクタが接続され
るコネクタポートがあり、その上にハードウェアとして
フィジカル・レイヤとリンク・レイヤを位置づけしてい
る。
The 1394 serial bus has a layer (layer) structure as a whole. As shown in FIG.
There is a connector port for connecting a connector and a cable of the 1394 serial bus, and a physical layer and a link layer are positioned as hardware on the connector port.

【0019】ハードウェア部は実質的なインターフェイ
スチップの部分であり、そのうちフィジカル・レイヤは
符号化やコネクタ関連の制御等を行い、リンク・レイヤ
はパケット転送やサイクルタイムの制御等を行なう。
The hardware part is a substantial part of an interface chip, of which the physical layer performs coding and control related to connectors, and the link layer performs packet transfer and cycle time control.

【0020】ファームウェア部のトランザクション・レ
イヤは、転送(トランザクション)すべきデータの管理
を行ない、Read、Write、Lockの命令を出
す。マネージメント・レイヤは、接続されている各機器
の接続状況や識別子(ID)の管理を行ない、ネットワ
ークの構成を管理する部分である。
The transaction layer of the firmware section manages data to be transferred (transacted), and issues Read, Write, and Lock commands. The management layer is a part that manages the connection status and identifier (ID) of each connected device and manages the configuration of the network.

【0021】このハードウェアとファームウェアまでが
実質上の1394シリアルバスの構成である。
The hardware and firmware up to this point constitute the substantial structure of the 1394 serial bus.

【0022】またソフトウェア部のアプリケーション・
レイヤは使うソフトによって異なり、インタフェース上
にどのようにデータをのせるか規定する部分であり、プ
リンタやAVCプロトコルなどが規定されている。
The software application
The layer differs depending on the software to be used, and is a part for specifying how data is to be loaded on the interface. For example, a printer and an AVC protocol are specified.

【0023】以上が1394シリアルバスの構成であ
る。
The above is the configuration of the 1394 serial bus.

【0024】つぎに、図3に1394シリアルバスにお
けるアドレス空間の図を示す。
Next, FIG. 3 shows a diagram of an address space in the 1394 serial bus.

【0025】1394シリアルバスに接続された各機器
(ノード)には必ず各ノード固有の、64ビットアドレ
スを持たせておく。そしてこのアドレスをROMに格納
しておくことで、自分や相手のノードアドレスを常時認
識でき、相手を指定した通信も行なえる。
Each device (node) connected to the 1394 serial bus must have a 64-bit address unique to each node. By storing this address in the ROM, it is possible to always recognize the node address of oneself and the other party, and perform communication specifying the other party.

【0026】1394シリアルバスのアドレッシング
は、IEEE1212規格に準じた方式であり、アドレ
ス設定は、最初の10bitがバスの番号の指定用に、
次の6bitがノードID番号の指定用に使われる。残り
の48bitが機器に与えられたアドレス幅になり、そ
れぞれ固有のアドレス空間として使用できる。最後の2
8bitは固有データの領域として、各機器の識別や使
用条件の指定の情報などを格納する。
The addressing of the 1394 serial bus is based on the IEEE 1212 standard, and the first 10 bits are used for specifying the bus number.
The next 6 bits are used for specifying the node ID number. The remaining 48 bits become the address width given to the device, and can be used as a unique address space. Last two
8 bits store information such as identification of each device and designation of use conditions as an area of unique data.

【0027】CRSアークテクチャでは、各ノードの機
能を表すためのConfiguration ROMを
持っているが、このROMには、最小形式と一般形式が
あり、xFFFFF0000400から配置される。こ
のようなROMが、図3中のROMに対応している。
The CRS architecture has a configuration ROM for representing the function of each node. This ROM has a minimum format and a general format, and is arranged from xFFFFF0000400. Such a ROM corresponds to the ROM in FIG.

【0028】最小形式では、図4に示すように、ベンダ
IDを表しているだけであり、このIDは、24ビット
で表される全世界で固有の数値である。
In the minimum format, as shown in FIG. 4, only a vendor ID is represented, and this ID is a numerical value unique to the whole world represented by 24 bits.

【0029】一般形式では、図5に示すような形式で、
ノードに関する情報を持っているが、この場合のベンダ
IDは、root_directoryに持つことがで
きる。
In the general format, a format as shown in FIG.
It has information about the node, but the vendor ID in this case can be in the root_directory.

【0030】また、bis_inf_blockとro
ot_leafには、ベンダIDを含んだ64ビットの
全世界で固有な装置番号を持っている。
Also, bis_inf_block and ro
ot_leaf has a globally unique device number of 64 bits including the vendor ID.

【0031】この装置番号は、バスリセットなどの再構
成後に継続してノードを認識するために使用する。
This device number is used for continuously recognizing a node after a reconfiguration such as a bus reset.

【0032】図6は、ディジタルカメラのコンフィグレ
ーションROMの一例を示したものである。
FIG. 6 shows an example of a configuration ROM of a digital camera.

【0033】図6中のベンダIDは、node_ven
dor_id、chip_id_hi、chip_id
_loの64ビットで表されている。
The vendor ID in FIG. 6 is node_ven
dor_id, chip_id_hi, chip_id
_Lo is represented by 64 bits.

【0034】以上が1394シリアルバスの技術の概要
である。
The above is the outline of the technology of the 1394 serial bus.

【0035】つぎに、1394シリアルバスの特徴とい
える技術の部分を、より詳細に説明する。
Next, the technical portion which can be said to be a feature of the 1394 serial bus will be described in more detail.

【0036】1394シリアルバスの電気的仕様につい
て説明する。
The electrical specifications of the 1394 serial bus will be described.

【0037】図7に1394シリアルバス・ケーブルの
断面図を示す。
FIG. 7 is a sectional view of a 1394 serial bus cable.

【0038】1394シリアルバスでは接続ケーブル内
に6ピン、即ち2組のツイストペア信号線の他に、電源
ラインを設けている。これによって、電源を持たない機
器や、故障により電圧低下した機器等にも電力の供給が
可能になっている。
In the 1394 serial bus, a power supply line is provided in a connection cable in addition to 6 pins, ie, two sets of twisted pair signal lines. As a result, power can be supplied to a device having no power supply, a device whose voltage has dropped due to a failure, and the like.

【0039】電源線内を流れる電源の電圧は8〜40
V、電流は最大電流DC1.5Aと規定されている。
The voltage of the power supply flowing in the power supply line is 8 to 40
V and the current are specified as the maximum current DC 1.5A.

【0040】なお、DVケーブルと呼ばれる規格では電
源を省いた4ピンで構成されている。
It should be noted that the standard called DV cable has four pins without a power source.

【0041】DS−Link符号化について説明する。The DS-Link coding will be described.

【0042】1394シリアルバスで採用されている、
データ転送フォーマットのDS−Link符号化方式を
説明するための図を図8に示す。
The 1394 serial bus employs
FIG. 8 is a diagram for explaining the DS-Link encoding method of the data transfer format.

【0043】1394シリアルバスでは、DS−Lin
k(Data/Strobe Link )符号化方式が採用されてい
る。このDS−Link符号化方式は、高速なシリアル
データ通信に適しており、その構成は、2本の信号線を
必要とする。より対線のうち1本に主となるデータを送
り、他方のより対線にはストローブ信号を送る構成にな
っている。受信側では、この通信されるデータと、スト
ローブとの排他的論理和をとることによってクロックを
再現する。
In the 1394 serial bus, DS-Lin
The k (Data / Strobe Link) coding method is adopted. This DS-Link coding scheme is suitable for high-speed serial data communication, and its configuration requires two signal lines. The main data is sent to one of the twisted pairs, and the strobe signal is sent to the other twisted pair. On the receiving side, the clock is reproduced by taking the exclusive OR of the transmitted data and the strobe.

【0044】このDS−Link符号化方式を用いるメ
リットとして、8/10B変換に比べて転送効率が高い
こと、PLL回路が不要となるのでコントローラLSI
の回路規模を小さくできること、更には、転送すべきデ
ータが無いときにアイドル状態であることを示す情報を
送る必要が無いので、各機器のトランシーバ回路をスリ
ープ状態にすることができることによって、消費電力の
低減が図れる、などが挙げられる。
Advantages of using the DS-Link coding method include higher transfer efficiency as compared with the 8 / 10B conversion, and the need for a PLL circuit, thereby eliminating the need for a controller LSI.
Power consumption because the transceiver circuit of each device can be put into a sleep state because there is no need to send information indicating that the device is in an idle state when there is no data to be transferred. Can be reduced.

【0045】バスリセットのシーケンスについて説明す
る。
The sequence of the bus reset will be described.

【0046】1394シリアルバスでは、接続されてい
る各機器(ノード)にはノードIDが与えられ、ネット
ワーク構成として認識されている。
In the 1394 serial bus, each connected device (node) is given a node ID and recognized as a network configuration.

【0047】このネットワーク構成に変化があったと
き、例えばノードの挿抜や電源のON/OFFなどによ
るノード数の増減などによって変化が生じて、新たなネ
ットワーク構成を認識する必要があるとき、変化を検知
した各ノードはバス上にバスリセット信号を送信して、
新たなネットワーク構成を認識するモードに入る。
When there is a change in the network configuration, for example, a change occurs due to an increase or decrease in the number of nodes due to insertion / removal of a node or power ON / OFF, etc. Each detected node sends a bus reset signal on the bus,
Enter the mode to recognize the new network configuration.

【0048】このときの変化の検知方法は、1394ポ
ート基盤上でのバイアス電圧の変化を検知することによ
って行われる。
The method of detecting the change at this time is performed by detecting a change in the bias voltage on the 1394 port board.

【0049】あるノードからバスリセット信号が伝達さ
れて、各ノードのフィジカルレイヤはこのバスリセット
信号を受けると同時にリンクレイヤにバスリセットの発
生を伝達し、かつ他のノードにバスリセット信号を伝達
する。最終的にすべてのノードがバスリセット信号を検
知した後、バスリセットが起動となる。
When a bus reset signal is transmitted from a certain node, the physical layer of each node transmits the bus reset signal to the link layer at the same time as receiving the bus reset signal, and transmits the bus reset signal to another node. . After all the nodes finally detect the bus reset signal, the bus reset is activated.

【0050】バスリセットは、先に述べたようなケーブ
ル抜挿や、ネットワーク異常等によるハード検出による
起動と、プロトコルからのホスト制御などによってフィ
ジカルレイヤに直接命令を出すことによっても起動す
る。また、バスリセットが起動するとデータ転送は一時
中断され、この間のデータ転送は待たされ、終了後、新
しいネットワーク構成のもとで再開される。
The bus reset is also started by a cable detection as described above, a start by hardware detection due to a network abnormality or the like, and also by directly issuing a command to a physical layer by a host control from a protocol or the like. Further, when the bus reset is activated, the data transfer is suspended, the data transfer during this period is waited, and after the end, the data transfer is resumed under a new network configuration.

【0051】以上がバスリセットのシーケンスである。The above is the bus reset sequence.

【0052】ノードID決定のシーケンスについて説明
する。
The sequence for determining the node ID will be described.

【0053】バスリセットの後、各ノードは新しいネッ
トワーク構成を構築するために、各ノードにIDを与え
る動作に入る。このときの、バスリセットからノードI
D決定までの一般的なシーケンスを図9、10、11の
フローチャートを用いて説明する。
After the bus reset, each node enters an operation of giving an ID to each node in order to construct a new network configuration. At this time, from the bus reset to the node I
A general sequence up to the determination of D will be described with reference to the flowcharts of FIGS.

【0054】図9のフローチャートは、バスリセットの
発生からノードIDが決定し、データ転送が行えるよう
になるまでの、一連のバスの作業を示してある。
The flowchart of FIG. 9 shows a series of bus operations from the occurrence of a bus reset until the node ID is determined and data transfer can be performed.

【0055】まず、ステップS101として、ネットワ
ーク内にバスリセットが発生することを常時監視してい
て、ここでノードの電源ON/OFFなどでバスリセッ
トが発生するとステップS102に移る。
First, as step S101, the occurrence of a bus reset in the network is constantly monitored. If a bus reset occurs due to power ON / OFF of a node, the process proceeds to step S102.

【0056】ステップS102では、ネットワークがリ
セットされた状態から、新たなネットワークの接続状況
を知るために、直接接続されている各ノード間において
親子関係の宣言がなされる。ステップS103として、
すべてのノード間で親子関係が決定すると、ステップS
104として一つのルートが決定する。すべてのノード
間で親子関係が決定するまで、ステップS102の親子
関係の宣言をおこない、またルートも決定されない。
In step S102, from the state where the network is reset, a parent-child relationship is declared between the directly connected nodes in order to know the connection status of the new network. As step S103,
When the parent-child relationship is determined between all nodes, step S
One route is determined as 104. Until the parent-child relationship is determined between all nodes, the parent-child relationship is declared in step S102, and the route is not determined.

【0057】ステップS104でルートが決定される
と、次はステップS105として、各ノードにIDを与
えるノードIDの設定作業が行われる。所定のノード順
序で、ノードIDの設定が行われ、すべてのノードにI
Dが与えられるまで繰り返し設定作業が行われ、最終的
にステップS106としてすべてのノードにIDを設定
し終えたら、新しいネットワーク構成がすべてのノード
において認識されたので、ステップS107としてノー
ド間のデータ転送が行える状態となり、データ転送が開
始される。
After the route is determined in step S104, the operation of setting a node ID for giving an ID to each node is performed in step S105. Node IDs are set in a predetermined node order, and I
The setting operation is repeatedly performed until D is given. When the IDs are finally set in all the nodes in step S106, the new network configuration is recognized in all the nodes. And data transfer is started.

【0058】このステップS107の状態になると、再
びバスリセットが発生するのを監視するモードに入り、
バスリセットが発生したらステップS101からステッ
プS106までの設定作業が繰り返し行われる。
In the state of step S107, a mode for monitoring the occurrence of a bus reset again is entered.
When the bus reset occurs, the setting operation from step S101 to step S106 is repeatedly performed.

【0059】以上が、図9のフローチャートの説明であ
るが、図6のフローチャートのバスリセットからルート
決定までの部分と、ルート決定後からID設定終了まで
の手順をより詳しくフローチャート図に表したものをそ
れぞれ、図10、図11に示す。
The above is the description of the flowchart of FIG. 9. The flowchart from FIG. 6 shows a portion from the bus reset to the route determination and a procedure from the route determination to the end of the ID setting in a more detailed flowchart. Are shown in FIGS. 10 and 11, respectively.

【0060】まず、図10のフローチャートの説明を行
う。
First, the flowchart of FIG. 10 will be described.

【0061】ステップS201としてバスリセットが発
生すると、ネットワーク構成は一旦リセットされる。な
お、ステップS201としてバスリセットが発生するの
を常に監視している。
When a bus reset occurs in step S201, the network configuration is reset once. The occurrence of a bus reset is constantly monitored in step S201.

【0062】次に、ステップS202として、リセット
されたネットワークの接続状況を再認識する作業の第一
段階として、各機器にリーフ(ノード)であることを示
すフラグを立てておく。さらに、ステップS203とし
て各機器が自分の持つポートがいくつ他ノードと接続さ
れているのかを調べる。
Next, as step S202, as a first stage of the operation of re-recognizing the reset network connection status, a flag indicating a leaf (node) is set for each device. Further, in step S203, each device checks how many ports it has are connected to other nodes.

【0063】ステップS204のポート数の結果に応じ
て、これから親子関係の宣言を始めていくために、未定
義(親子関係が決定されてない)ポートの数を調べる。
バスリセットの直後はポート数=未定義ポート数である
が、親子関係が決定されていくにしたがって、ステップ
S204で検知する未定義ポートの数は変化していくも
のである。
In accordance with the result of the number of ports in step S204, the number of undefined (parent-child relationship is not determined) ports is checked in order to start the declaration of the parent-child relationship.
Immediately after the bus reset, the number of ports = the number of undefined ports. However, as the parent-child relationship is determined, the number of undefined ports detected in step S204 changes.

【0064】まず、バスリセットの直後、はじめに親子
関係の宣言を行えるのはリーフに限られている。リーフ
であるというのはステップS203のポート数の確認で
知ることができる。リーフは、ステップS205とし
て、自分に接続されているノードに対して、「自分は
子、相手は親」と宣言し動作を終了する。
First, immediately after the bus reset, only the leaf can declare a parent-child relationship. A leaf can be known by checking the number of ports in step S203. In step S205, the leaf declares "I am a child and the other is a parent" to the node connected thereto, and ends the operation.

【0065】ステップS203でポート数が複数ありブ
ランチと認識したノードは、バスリセットの直後はステ
ップS204で未定義ポート数>1ということなので、
ステップS206へと移り、まずブランチというフラグ
が立てられ、ステップS207でリーフからの親子関係
宣言で「親」の受付をするために待つ。
A node which has a plurality of ports in step S203 and is recognized as a branch has a number of undefined ports> 1 in step S204 immediately after the bus reset.
Moving to step S206, a flag of branch is first set, and in step S207, the process waits for reception of "parent" in the parent-child relationship declaration from the leaf.

【0066】リーフが親子関係の宣言を行い、ステップ
S207でそれを受けたブランチは適宜ステップS20
4の未定義ポート数の確認を行い、未定義ポート数が1
になっていれば残っているポートに接続されているノー
ドに対して、ステップS205の「自分が子」の宣言を
することが可能になる。2度目以降、ステップS204
で未定義ポート数を確認しても2以上あるブランチに対
しては、再度ステップS207でリーフ又は他のブラン
チからの「親」の受付をするために待つ。
The leaf declares a parent-child relationship, and the branch that has received the declaration in step S207 appropriately returns to step S20.
Confirm the number of undefined ports of 4 and find that the number of undefined ports is 1
If it becomes, it becomes possible to declare “I am a child” in step S205 for the node connected to the remaining port. After the second time, step S204
Even if the number of undefined ports is checked in step S207, for a branch having two or more ports, the process waits again in step S207 to accept a "parent" from a leaf or another branch.

【0067】最終的に、いずれか1つのブランチ、又は
例外的にリーフ(子宣言を行えるのにすばやく動作しな
かった為)がステップS204の未定義ポート数の結果
としてゼロになったら、これにてネットワーク全体の親
子関係の宣言が終了したものであり、未定義ポート数が
ゼロ(すべて親のポートとして決定)になった唯一のノ
ードはステップS208としてルートのフラグが立てら
れ、ステップS209としてルートとしての認識がなさ
れる。
Finally, if any one of the branches or exceptionally leaves (because it did not operate quickly enough to allow child declaration) becomes zero as a result of the number of undefined ports in step S204, In this case, the declaration of the parent-child relationship of the entire network has been completed, and the only node for which the number of undefined ports has become zero (all are determined as parent ports) is flagged as a root in step S208, and the root is set in step S209. Is recognized.

【0068】このようにして、図10に示したバスリセ
ットから、ネットワーク内すべてのノード間における親
子関係の宣言までが終了する。
In this manner, the steps from the bus reset shown in FIG. 10 to the declaration of the parent-child relationship between all the nodes in the network are completed.

【0069】つぎに、図11のフローチャートについて
説明する。
Next, the flowchart of FIG. 11 will be described.

【0070】まず、図11までのシーケンスでリーフ、
ブランチ、ルートという各ノードのフラグの情報が設定
されているので、これを元にして、ステップS301で
それぞれ分類する。
First, in the sequence up to FIG.
Since the information of the flag of each node such as branch and route is set, classification is performed in step S301 based on this.

【0071】各ノードにIDを与える作業として、最初
にIDの設定を行うことができるのはリーフからであ
る。リーフ→ブランチ→ルートの順で若い番号(ノード
番号=0〜)からIDの設定がなされていく。
As a task of assigning an ID to each node, the ID can be first set from the leaf. The IDs are set in ascending order of leaf → branch → route (node number = 0).

【0072】ステップS302としてネットワーク内に
存在するリーフの数N(Nは自然数)を設定する。
At step S302, the number N (N is a natural number) of leaves existing in the network is set.

【0073】この後、ステップS303として各自リー
フがルートに対して、IDを与えるように要求する。こ
の要求が複数ある場合には、ルートはステップS304
としてアービトレーションを行い、ステップS305と
して勝ったノード1つにID番号を与え、負けたノード
には失敗の結果通知を行う。
Thereafter, in step S303, each leaf requests the root to give an ID. If there are a plurality of such requests, the route is determined in step S304.
Arbitration is performed, and an ID number is given to one winning node in step S305, and a failure result is notified to the losing node.

【0074】ステップS306としてID取得が失敗に
終わったリーフは、再度ID要求を出し、同様の作業を
繰り返す。IDを取得できたリーフからステップS30
7として、そのノードのID情報をブロードキャストで
全ノードに転送する。1ノードID情報のブロードキャ
ストが終わると、ステップS308として残りのリーフ
の数が1つ減らされる。
At step S306, the leaf whose ID acquisition has failed fails issues an ID request again and repeats the same operation. Step S30 from the leaf whose ID has been acquired
In step 7, the ID information of the node is transferred to all nodes by broadcast. When the broadcasting of the one-node ID information ends, the number of remaining leaves is reduced by one in step S308.

【0075】ここで、ステップS309として、この残
りのリーフの数が1以上ある時はステップS303のI
D要求の作業からを繰り返し行い、最終的にすべてのリ
ーフがID情報をブロードキャストすると、ステップS
309がN=0となり、次はブランチのID設定に移
る。ブランチのID設定もリーフの時と同様に行われ
る。
Here, if the number of remaining leaves is one or more at step S309, the I at step S303
The operation from the request of D is repeated, and finally, when all the leaves broadcast the ID information, step S
309 becomes N = 0, and the process proceeds to the branch ID setting. The branch ID setting is performed in the same manner as in the leaf setting.

【0076】まず、ステップS310としてネットワー
ク内に存在するブランチの数M(Mは自然数)を設定す
る。
First, as step S310, the number M (M is a natural number) of branches existing in the network is set.

【0077】この後、ステップS311として各自ブラ
ンチがルートに対して、IDを与えるように要求する。
これに対してルートは、ステップS312としてアービ
トレーションを行い、勝ったブランチから順にリーフに
与え終った次の若い番号から与えていく。
Thereafter, in step S311, each branch requests the root to give an ID.
On the other hand, for the route, arbitration is performed in step S312, and the branch is given in order from the winning branch to the next youngest number given to the leaf.

【0078】ステップS313として、ルートは要求を
出したブランチにID情報又は失敗結果を通知し、ステ
ップS314としてID取得が失敗に終わったブランチ
は、再度ID要求を出し、同様の作業を繰り返す。
In step S313, the root notifies the branch that issued the request of ID information or a failure result, and in step S314, the branch whose ID acquisition has failed fails issues an ID request again and repeats the same operation.

【0079】IDを取得できたブランチからステップS
315として、そのノードのID情報をブロードキャス
トで全ノードに転送する。
Step S from the branch where the ID was obtained
At 315, the ID information of the node is transferred to all nodes by broadcast.

【0080】1ノードID情報のブロードキャストが終
わると、ステップS316として残りのブランチの数が
1つ減らされる。
When the broadcasting of one node ID information ends, the number of remaining branches is reduced by one in step S316.

【0081】ここで、ステップS317として、この残
りのブランチの数が1以上ある時はステップS311の
ID要求の作業からを繰り返し、最終的にすべてのブラ
ンチがID情報をブロードキャストするまで行われる。
すべてのブランチがノードIDを取得すると、ステップ
S317はM=0となり、ブランチのID取得モードも
終了する。
Here, in step S317, when the number of the remaining branches is one or more, the operation from the ID request in step S311 is repeated, and the process is repeated until all the branches finally broadcast the ID information.
When all the branches have acquired the node IDs, M = 0 in step S317, and the branch ID acquisition mode ends.

【0082】ここまで終了すると、最終的にID情報を
取得していないノードはルートのみなので、ステップS
318として与えていない番号で最も若い番号を自分の
ID番号と設定し、ステップS319としてルートのI
D情報をブロードキャストする。
At this point, since only the root node has not acquired the ID information at the end, step S
318 is set as the own ID number among the unassigned numbers, and the root I
Broadcast D information.

【0083】以上で、図11に示したように、親子関係
が決定した後から、すべてのノードのIDが設定される
までの手順が終了する。
As described above, as shown in FIG. 11, the procedure from the determination of the parent-child relationship to the setting of the IDs of all the nodes is completed.

【0084】次に、一例として図12に示した実際のネ
ットワークにおける動作を図12を参照しながら説明す
る。
Next, the operation in the actual network shown in FIG. 12 will be described as an example with reference to FIG.

【0085】図12の説明として、(ルート)ノードB
の下位にはノードAとノードCが直接接続されており、
更にノードCの下位にはノードDが直接接続されてお
り、更にノードDの下位にはノードEとノードFが直接
接続された階層構造になっている。この、階層構造やル
ートノード、ノードIDを決定する手順を以下で説明す
る。
Referring to FIG. 12, (root) node B
Are directly connected to node A and node C,
Further, a node D is directly connected below the node C, and a node E and a node F are directly connected below the node D in a hierarchical structure. The procedure for determining the hierarchical structure, the root node, and the node ID will be described below.

【0086】バスリセットがされた後、まず各ノードの
接続状況を認識するために、各ノードの直接接続されて
いるポート間において、親子関係の宣言がなされる。こ
の親子とは親側が階層構造で上位となり、子側が下位と
なると言うことができる。
After the bus reset, a parent-child relationship is declared between ports directly connected to each node in order to recognize the connection status of each node. The parent and child can be said to be such that the parent is higher in the hierarchical structure and the child is lower.

【0087】図12ではバスリセットの後、最初に親子
関係の宣言を行なったのはノードAである。基本的にノ
ードの1つのポートにのみ接続があるノード(リーフと
呼ぶ)から親子関係の宣言を行なうことができる。これ
は自分には1ポートの接続のみということをまず知るこ
とができるので、これによってネットワークの端である
ことを認識し、その中で早く動作を行なったノードから
親子関係が決定されていく。こうして親子関係の宣言を
行なった側(A- B間ではノードA)のポートが子と設
定され、相手側(ノードB)のポートが親と設定され
る。こうして、ノードA−B間では子−親、ノードE−
D間で子−親、ノードF−D間で子−親と決定される。
In FIG. 12, the node A first declares the parent-child relationship after the bus reset. Basically, a node (called a leaf) having a connection to only one port of the node can declare a parent-child relationship. Since the user can first know that only one port is connected, it recognizes that this is the edge of the network, and the parent-child relationship is determined from the node that operates earlier in the network. In this way, the port on the side that has declared the parent-child relationship (node A between AB) is set as a child, and the port on the other side (node B) is set as a parent. Thus, between node AB, child-parent, node E-
The child-parent is determined between D and the child-parent is determined between the nodes FD.

【0088】さらに1階層あがって、今度は複数個接続
ポートを持つノード(ブランチと呼ぶ)のうち、他ノー
ドからの親子関係の宣言を受けたものから順次、更に上
位に親子関係の宣言を行なっていく。図12ではまずノー
ドDがD−E間、D−F間と親子関係が決定した後、ノ
ードCに対する親子関係の宣言を行っており、その結果
ノードD−C間で子−親と決定している。
Further, the node goes up one layer, and among nodes having a plurality of connection ports (referred to as branches), the parent / child relationship is declared further higher in order from the node which received the declaration of the parent / child relationship from another node. To go. In FIG. 12, first, the parent-child relationship between the node D and the node D-F is determined, and then the parent-child relationship is declared for the node C. As a result, the node D is determined as the child-parent between the nodes D and C. ing.

【0089】ノードDからの親子関係の宣言を受けたノ
ードCは、もう一つのポートに接続されているノードB
に対して親子関係の宣言を行なっている。これによって
ノードC−B間で子−親と決定している。
The node C receiving the parent-child relationship declaration from the node D becomes the node B connected to another port.
Declares a parent-child relationship. As a result, a child-parent is determined between the nodes C and B.

【0090】このようにして、図12のような階層構造
が構成され、最終的に接続されているすべてのポートに
おいて親となったノードBが、ルートノードと決定され
た。ルートは1つのネットワーク構成中に一つしか存在
しないものである。
In this way, a hierarchical structure as shown in FIG. 12 is formed, and the node B that has become the parent in all finally connected ports is determined as the root node. There is only one route in one network configuration.

【0091】なお、この図12においてノードBがルー
トノードと決定されたが、これはノードAから親子関係
宣言を受けたノードBが、他のノードに対して親子関係
宣言を早いタイミングで行なっていれば、ルートノード
は他ノードに移っていたこともあり得る。すなわち、伝
達されるタイミングによってはどのノードもルートノー
ドとなる可能性があり、同じネットワーク構成でもルー
トノードは一定とは限らない。
In FIG. 12, node B is determined to be the root node. This is because node B, which has received a parent-child relationship declaration from node A, makes a parent-child relationship declaration for other nodes at an early timing. If so, the root node may have moved to another node. That is, any node may become a root node depending on the transmission timing, and the root node is not always constant even in the same network configuration.

【0092】ルートノードが決定すると、次は各ノード
IDを決定するモードに入る。ここではすべてのノード
が、決定した自分のノードIDを他のすべてのノードに通
知する(ブロードキャスト機能)。
When the root node is determined, next, each node
Enter the ID determination mode. Here, all nodes notify their determined node IDs to all other nodes (broadcast function).

【0093】自己ID情報は、自分のノード番号、接続さ
れている位置の情報、持っているポートの数、接続のあ
るポートの数、各ポートの親子関係の情報等を含んでい
る。
The self ID information includes its own node number, information on the connected position, the number of ports it has, the number of ports it has connected, information on the parent-child relationship of each port, and the like.

【0094】ノードID番号の割り振りの手順としては、
まず1つのポートにのみ接続があるノード(リーフ)か
ら起動することができ、この中から順にノード番号=
0、1、2、・・・と割り当てられる。
The procedure for assigning node ID numbers is as follows:
First, it can be started from a node (leaf) that has connection to only one port, and node number =
0, 1, 2,...

【0095】ノードIDを手にしたノードは、ノード番
号を含む情報をブロードキャストで各ノードに送信す
る。これによって、そのID番号は「割り当て済み」で
あることが認識される。
The node having the node ID broadcasts information including the node number to each node. Thereby, it is recognized that the ID number is “assigned”.

【0096】すべてのリーフが自己ノードIDを取得し
終ると、次はブランチへ移りリーフに引き続いたノード
ID番号が各ノードに割り当てられる。リーフと同様
に、ノードID番号が割り当てられたブランチから順次ノ
ードID情報をブロードキャストし、最後にルートノー
ドが自己ID情報をブロードキャストする。すなわち、
常にルートは最大のノードID番号を所有するものであ
る。
When all the leaves have acquired their own node IDs, the next step is to move to a branch, and the node ID number following the leaf is assigned to each node. Similarly to the leaf, the node ID information is broadcast sequentially from the branch to which the node ID number is assigned, and finally, the root node broadcasts the self ID information. That is,
The root always owns the highest node ID number.

【0097】以上のようにして、階層構造全体のノード
IDの割り当てが終わり、ネットワーク構成が再構築さ
れ、バスの初期化作業が完了する。
As described above, the assignment of the node IDs of the entire hierarchical structure is completed, the network configuration is reconstructed, and the bus initialization is completed.

【0098】アービトレーションについて説明する。The arbitration will be described.

【0099】1394シリアルバスでは、データ転送に
先立って必ずバス使用権のアービトレーション(調停)
を行なう。1394シリアルバスは個別に接続された各
機器が、転送された信号をそれぞれ中継することによっ
て、ネットワーク内すべての機器に同信号を伝えるよう
に、論理的なバス型ネットワークであるので、パケット
の衝突を防ぐ意味でアービトレーションは必要である。
これによってある時間には、たった一つのノードのみ転
送を行なうことができる。
In the 1394 serial bus, arbitration (arbitration) of the right to use the bus must be performed prior to data transfer.
Perform Since the 1394 serial bus is a logical bus-type network in which each device connected individually relays the transferred signal to transmit the same signal to all devices in the network, packet collision occurs. Arbitration is necessary to prevent
This allows only one node to transfer at a given time.

【0100】アービトレーションを説明するための図と
して図13(a)にバス使用要求の図(b)にバス使用
許可の図を示し、以下これを用いて説明する。
As a diagram for explaining arbitration, FIG. 13 (a) shows a diagram of a bus use request and FIG. 13 (b) shows a diagram of a bus use permission, which will be described below.

【0101】アービトレーションが始まると、1つもし
くは複数のノードが親ノードに向かって、それぞれバス
使用権の要求を発する。図13(a)のノードCとノー
ドFがバス使用権の要求を発しているノードである。こ
れを受けた親ノード(図13ではノードA)は更に親ノ
ードに向かって、バス使用権の要求を発する(中継す
る)。この要求は最終的に調停を行なうルートに届けら
れる。
When the arbitration starts, one or more nodes issue a bus use request to the parent node. Nodes C and F in FIG. 13A are nodes that have issued a bus use right request. The parent node (node A in FIG. 13) which has received the request further issues (relays) a bus use request toward the parent node. This request is finally delivered to the arbitration route.

【0102】バス使用要求を受けたルートノードは、ど
のノードにバスを使用させるかを決める。この調停作業
はルートノードのみが行なえるものであり、調停によっ
て勝ったノードにはバスの使用許可を与える。図13
(b)ではノードCに使用許可が与えられ、ノードFの
使用は拒否された図である。
The root node that has received the bus use request determines which node uses the bus. This arbitration work can be performed only by the root node, and the node that has won the arbitration is given permission to use the bus. FIG.
In (b), use permission is given to the node C, and use of the node F is rejected.

【0103】アービトレーションに負けたノードに対し
てはDP(data prefix )パケットを送り、拒否された
ことを知らせる。拒否されたノードのバス使用要求は次
回のアービトレーションまで待たされる。
A DP (data prefix) packet is sent to the node that has lost the arbitration to notify that the node has been rejected. The rejected node use request waits until the next arbitration.

【0104】以上のようにして、アービトレーションに
勝ってバスの使用許可を得たノードは、以降データの転
送を開始できる。
As described above, the node that has won the arbitration and obtained the bus use can start transferring data thereafter.

【0105】ここで、アービトレーションの一連の流れ
をフローチャート図14に示して、説明する。
Here, a series of arbitration flows will be described with reference to a flowchart shown in FIG.

【0106】ノードがデータ転送を開始できる為には、
バスがアイドル状態であることが必要である。先に行わ
れていたデータ転送が終了して、現在バスが空き状態で
あることを認識するためには、各転送モードで個別に設
定されている所定のアイドル時間ギャップ長(例えば、
サブアクション・ギャップ)を経過する事によって、各
ノードは自分の転送が開始できると判断する。
In order for a node to be able to start data transfer,
The bus must be idle. In order to recognize that the data transfer that has been performed earlier is completed and that the bus is currently idle, a predetermined idle time gap length that is individually set in each transfer mode (for example,
Each node determines that its own transfer can be started by passing the subaction gap).

【0107】ステップS401として、Asyncデー
タ、Isoデータ等それぞれ転送するデータに応じた所
定のギャップ長が得られたか判断する。所定のギャップ
長が得られない限り、転送を開始するために必要なバス
使用権の要求はできないので、所定のギャップ長が得ら
れるまで待つ。
In step S401, it is determined whether a predetermined gap length corresponding to each data to be transferred, such as Async data and Iso data, has been obtained. Unless the predetermined gap length is obtained, the request for the right to use the bus required to start the transfer cannot be made, so the process waits until the predetermined gap length is obtained.

【0108】ステップS401で所定のギャップ長が得
られたら、ステップS402として転送すべきデータが
あるか判断し、ある場合はステップS403として転送
するためにバスを確保するよう、バス使用権の要求をル
ートに対して発する。このときの、バス使用権の要求を
表す信号の伝達は、図13に示したように、ネットワー
ク内各機器を中継しながら、最終的にルートに届けられ
る。ステップS402で転送するデータがない場合は、
そのまま待機する。
If a predetermined gap length is obtained in step S401, it is determined in step S402 whether there is data to be transferred. If so, a request for a bus use right is issued in step S403 to secure a bus for transfer. Emit to the route. At this time, the transmission of the signal indicating the request for the right to use the bus is finally delivered to the route while relaying each device in the network, as shown in FIG. If there is no data to be transferred in step S402,
Wait as it is.

【0109】次に、ステップS404として、ステップ
S403のバス使用要求を1つ以上ルートが受信した
ら、ルートはステップS405として使用要求を出した
ノードの数を調べる。
Next, at step S404, when the route receives one or more bus use requests at step S403, the route checks at step S405 the number of nodes that have issued use requests.

【0110】ステップS405での選択値がノード数=
1(使用権要求を出したノードは1つ)だったら、その
ノードに直後のバス使用許可が与えられることとなる。
ステップS405での選択値がノード数>1(使用要求
を出したノードは複数)だったら、ルートはステップS
406として使用許可を与えるノードを1つに決定する
調停作業を行う。この調停作業は公平なものであり、毎
回同じノードばかりが許可を得る様なことはなく、平等
に権利を与えていくような構成となっている(フェア・
アービトレーション)。
The value selected in step S405 is the number of nodes =
If it is 1 (the number of nodes that issued the use right request is one), that node is immediately given the bus use permission.
If the selection value in step S405 is the number of nodes> 1 (the number of nodes that issued a use request is plural), the root
As 406, an arbitration operation for deciding one node to be permitted to use is performed. This arbitration work is fair, and the same node does not always obtain permission each time, and it is structured to give equal rights (Fair
arbitration).

【0111】ステップS407として、ステップS40
6で使用要求を出した複数ノードの中からルートが調停
して使用許可を得た1つのノードと、敗れたその他のノ
ードに分ける選択を行う。ここで、調停されて使用許可
を得た1つのノード、またはステップS405の選択値
から使用要求ノード数=1で調停無しに使用許可を得た
ノードには、ステップS408として、ルートはそのノ
ードに対して許可信号を送る。
As step S407, step S40
At step 6, the node arbitrates the route from among the plurality of nodes that have issued the use request and selects one node whose use has been granted and another node that has lost. Here, for one node that has been arbitrated and has obtained use permission, or a node that has obtained use permission without arbitration with the number of use request nodes = 1 from the selection value in step S405, the route is set to that node as step S408. A permission signal is sent to it.

【0112】許可信号を得たノードは、受け取った直後
に転送すべきデータ(パケット)を転送開始する。ま
た、ステップS406の調停で敗れて、バス使用が許可
されなかったノードにはステップS409としてルート
から、アービトレーション失敗を示すDP(data prefi
x )パケットを送られ、これを受け取ったノードは再度
転送を行うためのバス使用要求を出すため、ステップS
401まで戻り、所定ギャップ長が得られるまで待機す
る。
The node that has received the permission signal starts transferring data (packets) to be transferred immediately after receiving the permission signal. In addition, the node that has lost the arbitration in step S406 and is not permitted to use the bus uses the DP (data prefi?
x) The packet is sent, and the node receiving the packet sends a bus use request to perform the transfer again, so that the node
It returns to 401 and waits until a predetermined gap length is obtained.

【0113】以上がアービトレーションの流れを説明し
た、フローチャート図14の説明である。
The above is the description of the flowchart in FIG. 14 for explaining the flow of arbitration.

【0114】Asynchronous(非同期)転送
について説明する。
A description will now be given of the asynchronous transfer.

【0115】アシンクロナス転送は、非同期転送であ
る。図15にアシンクロナス転送における時間的な遷移
状態を示す。
Asynchronous transfer is asynchronous transfer. FIG. 15 shows a temporal transition state in the asynchronous transfer.

【0116】図15の最初のサブアクション・ギャップ
は、バスのアイドル状態を示すものである。このアイド
ル時間が一定値になった時点で、転送を希望するノード
はバスが使用できると判断して、バス獲得のためのアー
ビトレーションを実行する。
The first sub-action gap in FIG. 15 indicates the idle state of the bus. When the idle time reaches a certain value, the node desiring transfer determines that the bus can be used and executes arbitration for acquiring the bus.

【0117】アービトレーションでバスの使用許可を得
ると、次にデータの転送がパケット形式で実行される。
データ転送後、受信したノードは転送されたデータに対
しての受信結果のack (受信確認用返送コード)をac
k gapという短いギャップの後、返送して応答する
か、応答パケットを送ることによって転送が完了する。
ackは4ビットの情報と4ビットのチェックサムから
なり、成功か、ビジー状態か、ペンディング状態である
かといった情報を含み、すぐに送信元ノードに返送され
る。
When a bus use permission is obtained by arbitration, data transfer is then executed in packet format.
After the data transfer, the receiving node sets the reception result ack (reception confirmation return code) for the transferred data to ac.
After a short gap of k gap, the transfer is completed by replying back or sending a response packet.
The ack is composed of 4-bit information and a 4-bit checksum, and includes information such as success, busy status, and pending status, and is immediately returned to the source node.

【0118】つぎに、図16にアシンクロナス転送のパ
ケットフォーマットの例を示す。
FIG. 16 shows an example of a packet format for asynchronous transfer.

【0119】パケットには、データ部及び誤り訂正用の
データCRCの他にはヘッダ部があり、そのヘッダ部に
は図16に示したような、目的ノードID、ソースノー
ドID、転送データ長さや各種コードなどが書き込ま
れ、転送が行なわれる。
The packet has a header part in addition to the data part and the data CRC for error correction. The header part has the destination node ID, the source node ID, the transfer data length and the like as shown in FIG. Various codes and the like are written and transferred.

【0120】また、アシンクロナス転送は自己ノードか
ら相手ノードへの1対1の通信である。転送元ノードか
ら転送されたパケットは、ネットワーク中の各ノードに
行き渡るが、自分宛てのアドレス以外のものは無視され
るので、宛先の1つのノードのみが読込むことになる。
Asynchronous transfer is one-to-one communication from a self-node to a partner node. The packet transferred from the transfer source node is distributed to each node in the network, but the address other than its own address is ignored, so that only one destination node reads the packet.

【0121】以上がアシンクロナス転送の説明である。The above is the description of the asynchronous transfer.

【0122】Isochronous(同期)転送につ
いて説明する。
The Isochronous (synchronous) transfer will be described.

【0123】アイソクロナス転送は同期転送である。1
394シリアルバスの最大の特徴であるともいえるこの
アイソクロナス転送は、特に映像データや音声データと
いったマルチメディアデータなど、リアルタイムな転送
を必要とするデータの転送に適した転送モードである。
The isochronous transfer is a synchronous transfer. 1
This isochronous transfer, which can be said to be the greatest feature of the 394 serial bus, is a transfer mode suitable for transferring data requiring real-time transfer, such as multimedia data such as video data and audio data.

【0124】また、アシンクロナス転送(非同期)が1
対1の転送であったのに対し、このアイソクロナス転送
はブロードキャスト機能によって、転送元の1つのノー
ドから他のすべてのノードへ一様に転送される。
In addition, when the asynchronous transfer (asynchronous) is 1
Unlike the one-to-one transfer, the isochronous transfer is uniformly transferred from one transfer source node to all other nodes by the broadcast function.

【0125】図17はアイソクロナス転送における、時
間的な遷移状態を示す図である。
FIG. 17 is a diagram showing a temporal transition state in isochronous transfer.

【0126】アイソクロナス転送は、バス上一定時間毎
に実行される。この時間間隔をアイソクロナスサイクル
と呼ぶ。アイソクロナスサイクル時間は、125μS で
ある。この各サイクルの開始時間を示し、各ノードの時
間調整を行なう役割を担っているのがサイクル・スター
ト・パケットである。サイクル・スタート・パケットを
送信するのは、サイクル・マスタと呼ばれるノードであ
り、1つ前のサイクル内の転送終了後、所定のアイドル
期間(サブアクションギャップ)を経た後、本サイクル
の開始を告げるサイクル・スタート・パケットを送信す
る。
The isochronous transfer is executed at fixed time intervals on the bus. This time interval is called an isochronous cycle. The isochronous cycle time is 125 μS. A cycle start packet indicates the start time of each cycle, and plays a role of adjusting the time of each node. A node called a cycle master transmits a cycle start packet, and after a transfer in a previous cycle is completed, a predetermined idle period (subaction gap) is passed, and then the start of this cycle is announced. Send a cycle start packet.

【0127】このサイクル・スタート・パケットの送信
される時間間隔が125μS となる。
The time interval at which the cycle start packet is transmitted is 125 μS.

【0128】また、図17にチャネルA、チャネルB、
チャネルCと示したように、1サイクル内において複数
種のパケットがチャネルIDをそれぞれ与えられることに
よって、区別して転送できる。これによって同時に複数
ノード間でのリアルタイムな転送が可能であり、また受
信するノードでは自分が欲しいチャネルIDのデータの
みを取り込む。このチャネルIDは送信先のアドレスを
表すものではなく、データに対する論理的な番号を与え
ているに過ぎない。よって、あるパケットの送信は1つ
の送信元ノードから他のすべてのノードに行き渡る、ブ
ロードキャストで転送されることになる。
FIG. 17 shows channel A, channel B,
As indicated by channel C, a plurality of types of packets can be distinguished and transferred by being given channel IDs in one cycle. This allows real-time transfer between a plurality of nodes at the same time, and the receiving node fetches only the data of the channel ID desired by itself. The channel ID does not represent the address of the transmission destination, but merely gives a logical number for the data. Therefore, the transmission of a certain packet is transmitted by broadcast, which is distributed from one source node to all other nodes.

【0129】アイソクロナス転送のパケット送信に先立
って、アシンクロナス転送同様アービトレーションが行
われる。しかし、アシンクロナス転送のように1対1の
通信ではないので、アイソクロナス転送にはack(受
信確認用返信コード)は存在しない。
Prior to packet transmission in isochronous transfer, arbitration is performed as in asynchronous transfer. However, since the communication is not one-to-one communication as in the asynchronous transfer, there is no ack (reception confirmation reply code) in the isochronous transfer.

【0130】また、図17に示したiso gap(ア
イソクロナスギャップ)とは、アイソクロナス転送を行
なう前にバスが空き状態であると認識するために必要な
アイドル期間を表している。この所定のアイドル期間を
経過すると、アイソクロナス転送を行ないたいノードは
バスが空いていると判断し、転送前のアービトレーショ
ンを行なうことができる。
The iso gap (isochronous gap) shown in FIG. 17 indicates an idle period necessary for recognizing that the bus is empty before performing the isochronous transfer. After the predetermined idle period has elapsed, a node that wishes to perform isochronous transfer determines that the bus is free, and can perform arbitration before transfer.

【0131】つぎに、図18にアイソクロナス転送のパ
ケットフォーマットの例を示し、説明する。
Next, an example of a packet format for isochronous transfer will be described with reference to FIG.

【0132】各チャネルに分かれた、各種のパケットに
はそれぞれデータ部及び誤り訂正用のデータCRCの他
にヘッダ部があり、そのヘッダ部には図18に示したよ
うな、転送データ長やチャネルNO、その他各種コード及
び誤り訂正用のヘッダCRCなどが書き込まれ、転送が
行なわれる。
Each packet divided into each channel has a header in addition to a data part and data CRC for error correction, and the header part has a transfer data length and a channel as shown in FIG. NO, other codes and a header CRC for error correction are written and transferred.

【0133】以上がアイソクロナス転送の説明である。The above is the description of the isochronous transfer.

【0134】バス・サイクルについて説明する。The bus cycle will be described.

【0135】実際の1394シリアルバス上の転送で
は、アイソクロナス転送と、アシンクロナス転送は混在
できる。その時の、アイソクロナス転送とアシンクロナ
ス転送が混在した、バス上の転送状態の時間的な遷移の
様子を表した図を図19に示す。
In actual transfer on the 1394 serial bus, isochronous transfer and asynchronous transfer can coexist. FIG. 19 shows a temporal transition of the transfer state on the bus in which the isochronous transfer and the asynchronous transfer are mixed at that time.

【0136】アイソクロナス転送はアシンクロナス転送
より優先して実行される。その理由は、サイクル・スタ
ート・パケットの後、アシンクロナス転送を起動するた
めに必要なアイドル期間のギャップ長(サブアクション
ギャップ)よりも短いギャップ長(アイソクロナスギャ
ップ)で、アイソクロナス転送を起動できるからであ
る。したがって、アシンクロナス転送より、アイソクロ
ナス転送は優先して実行されることとなる。
The isochronous transfer is executed prior to the asynchronous transfer. The reason is that after the cycle start packet, the isochronous transfer can be started with a gap length (isochronous gap) shorter than the gap length (subaction gap) of the idle period required to start the asynchronous transfer. . Therefore, the isochronous transfer is executed with priority over the asynchronous transfer.

【0137】図19に示した、一般的なバスサイクルに
おいて、サイクル#mのスタート時にサイクル・スター
ト・パケットがサイクル・マスタから各ノードに転送さ
れる。これによって、各ノードで時刻調整を行ない、所
定のアイドル期間(アイソクロナスギャップ)を待って
からアイソクロナス転送を行なうべきノードはアービト
レーションを行い、パケット転送に入る。図19ではチ
ャネルeとチャネルsとチャネルkが順にアイソクロナ
ス転送されている。
In the general bus cycle shown in FIG. 19, at the start of cycle #m, a cycle start packet is transferred from the cycle master to each node. As a result, each node adjusts the time, and after waiting for a predetermined idle period (isochronous gap), the node that should perform isochronous transfer performs arbitration and starts packet transfer. In FIG. 19, the channel e, the channel s, and the channel k are sequentially isochronously transferred.

【0138】このアービトレーションからパケット転送
までの動作を、与えられているチャネル分繰り返し行な
った後、サイクル#mにおけるアイソクロナス転送がす
べて終了したら、アシンクロナス転送を行うことができ
るようになる。
After the operations from the arbitration to the packet transfer are repeatedly performed for the given channel, when all the isochronous transfers in the cycle #m are completed, the asynchronous transfer can be performed.

【0139】アイドル時間がアシンクロナス転送が可能
なサブアクションギャップに達する事によって、アシン
クロナス転送を行いたいノードはアービトレーションの
実行に移れると判断する。
When the idle time reaches the subaction gap in which asynchronous transfer is possible, the node desiring to perform asynchronous transfer determines that arbitration can be executed.

【0140】ただし、アシンクロナス転送が行える期間
は、アイソクロナス転送終了後から、次のサイクル・ス
タート・パケットを転送すべき時間(cycle synch )ま
での間にアシンクロナス転送を起動するためのサブアク
ションギャップが得られた場合に限っている。
However, during the period in which the asynchronous transfer can be performed, a subaction gap for starting the asynchronous transfer is obtained after the completion of the isochronous transfer and before the time (cycle synch) at which the next cycle start packet should be transferred. Only when they are given.

【0141】図19のサイクル#mでは3つのチャネル
分のアイソクロナス転送と、その後アシンクロナス転送
(含むack )が2パケット(パケット1、パケット2)
転送されている。このアシンクロナスパケット2の後
は、サイクルm+1をスタートすべき時間(cycle sync
h )にいたるので、サイクル#mでの転送はここまでで
終わる。
In cycle #m of FIG. 19, two packets (packet 1 and packet 2) of isochronous transfer for three channels and asynchronous transfer (including ack) thereafter
Has been transferred. After this asynchronous packet 2, the time to start cycle m + 1 (cycle sync + 1)
h), the transfer in cycle #m ends here.

【0142】ただし、非同期または同期転送動作中に次
のサイクル・スタート・パケットを送信すべき時間(cy
cle synch )に至ったとしたら、無理に中断せず、その
転送が終了した後のアイドル期間を待ってから次サイク
ルのサイクル・スタート・パケットを送信する。すなわ
ち、1つのサイクルが125μS 以上続いたときは、そ
の分次サイクルは基準の125μS より短縮されたとす
る。このようにアイソクロナス・サイクルは125μS
を基準に超過、短縮し得るものである。
However, the time (cy) to transmit the next cycle start packet during the asynchronous or synchronous transfer operation
If cle synch is reached, the cycle start packet of the next cycle is transmitted after waiting for an idle period after the transfer is completed without forcibly interrupting the transfer. That is, when one cycle continues for 125 μS or more, it is assumed that the next cycle is shortened by the corresponding amount. Thus, the isochronous cycle is 125 μS
Can be exceeded or shortened based on the standard.

【0143】しかし、アイソクロナス転送はリアルタイ
ム転送を維持するために毎サイクル必要であれば必ず実
行され、アシンクロナス転送はサイクル時間が短縮され
たことによって次以降のサイクルにまわされることもあ
る。こういった遅延情報も含めて、サイクル・マスタに
よって管理される。
However, the isochronous transfer is always executed if necessary every cycle to maintain the real-time transfer, and the asynchronous transfer may be transferred to the next and subsequent cycles due to the shortened cycle time. The information including such delay information is managed by the cycle master.

【0144】そこで、まず、第1の実施の形態について
説明する。
Therefore, the first embodiment will be described first.

【0145】図20は、本発明の特徴を最もよく表す図
であり、同図において1394のインターフェイスをL
ANで用いられるOSIモデルの各層と対比させてみる
と、OSIモデルの物理層1とデータリンク層2が、1
394インターフェイスの下位層4であるフィジカル・
リンク層に該当し、それら下位層4の上に存在する上位
層3が1394インターフェイスではトランスポートプ
ロトコル層5とプレゼンテーション層6に該当する。ま
た、本発明の特徴となるLOGINプロトコル7は、1
394インターフェイスの下位層4とトランスポートプ
ロトコル5との間で動作するものである。
FIG. 20 is a diagram best showing the features of the present invention. In FIG.
Compared with each layer of the OSI model used in AN, the physical layer 1 and the data link layer 2 of the OSI model
Physical layer, which is the lower layer 4 of the 394 interface
The upper layer 3 corresponding to the link layer and present above the lower layer 4 corresponds to the transport protocol layer 5 and the presentation layer 6 in the 1394 interface. Further, the LOGIN protocol 7 which is a feature of the present invention includes
It operates between the lower layer 4 of the 394 interface and the transport protocol 5.

【0146】この実施の形態では、シリアルバスプロト
コル(SBP−2)8に準拠したデバイスにLOGIN
プロトコルを挿入することによって、相手のデバイスに
対して自分がSBP−2に準拠したプロトコルを使って
やり取りを行いたいことを通知することができる。また
例2では、1394インターフェイス上で特化されたデ
バイスプロトコル9についてもLOGINプロトコルを
挿入することで、お互いのデバイスがそのプロトコルが
サポートされているかを判別してデータのやり取りを行
うことができる。
In this embodiment, LOGIN is applied to a device conforming to the serial bus protocol (SBP-2) 8.
By inserting the protocol, it is possible to notify the partner device that he / she wants to exchange data using a protocol conforming to SBP-2. Further, in Example 2, by inserting the LOGIN protocol also for the device protocol 9 specialized on the 1394 interface, it is possible for each device to determine whether the protocol is supported and to exchange data.

【0147】図21は、LOGINプロトコルの基本動
作を示した図であり、プリンタは印字タスク10を実行
する際にまず初めにLOGINプロトコルを使ってプリ
ンタで用意しているプリンタプロトコルA・B・Cのう
ち、どれを選択して印字するかを決定し、その後は決定
されたプロトコルに沿って印字動作を行う。すなわち、
プリンタ側でいくつかのプリンタプロトコルをサポート
しているデバイスにおいて、ターゲットとの接続の際に
まず初めに相手のデバイスのプロトコルをLOGINプ
ロトコルを使って判別し、プリンタは相手のプロトコル
に合わせたプリンタプロトコルを複数の中からひとつ選
択し、この選ばれたプロトコルに沿って印字データやコ
マンドのやり取りを行って印字処理を行う。
FIG. 21 is a diagram showing the basic operation of the LOGIN protocol. When executing the print task 10, the printer first uses the LOGIN protocol to prepare the printer protocol A, B, C prepared by the printer. The printing operation is performed in accordance with the determined protocol. That is,
For devices that support several printer protocols on the printer side, when connecting to the target, the protocol of the partner device is first determined using the LOGIN protocol, and the printer uses the printer protocol that matches the partner protocol. Is selected from among a plurality of printers, and print data and commands are exchanged according to the selected protocol to perform print processing.

【0148】図22は、この実施の形態におけるLOG
INプロトコルを実装した1394インターフェイスに
おける各デバイスの接続形態を示した図で、複数のプリ
ンタプロトコルに対応したプリンタ11に対してLOG
INプロトコルを実装したデバイス(PC12、スキャ
ナ13、VCR14等)が接続された場合に、LOGI
Nプロトコルを使用して相手のトランスポートプロトコ
ルに応じてプリンタ側でプリンタプロトコルを切り替え
ることにより、各デバイスからの印字タスクを問題なく
処理することが可能となる。
FIG. 22 shows a LOG in this embodiment.
FIG. 3 is a diagram illustrating a connection form of each device in a 1394 interface implementing an IN protocol, and a LOG for a printer 11 corresponding to a plurality of printer protocols.
When a device (PC 12, scanner 13, VCR 14, etc.) implementing the IN protocol is connected, the LOGI
By switching the printer protocol on the printer side according to the transport protocol of the partner using the N protocol, it is possible to process the printing task from each device without any problem.

【0149】図23はログイン動作の流れを示したもの
である。
FIG. 23 shows the flow of the login operation.

【0150】第一ステップ: ・デバイス(この場合マルチプロトコルプリンタ)をロ
ック ・プリンタのケーパビリティ(受け付けるプロトコル
等)を取得 かかるケーパビリティは、後述するレジスタ503に格
納される。 ・ホストのケーパビリティをプリンタにセット 第二ステップ: ・第一ステップで決定したプロトコルで、プリントデー
タの通信 第三ステップ: ・プリンタとホストは、コネクションを切断
First step:-Lock the device (in this case, a multi-protocol printer)-Acquire printer capabilities (accepted protocols, etc.) These capabilities are stored in a register 503 described later. -Set the host's capabilities to the printer. Second step:-Communication of print data using the protocol determined in the first step.-Third step:-Disconnect the connection between the printer and the host.

【0151】図24は、この実施の形態においてLOG
INプロトコルのためにプリンタが備える1394シリ
アルバスのCSRを示し、図中、501はロックレジス
タ(lock)、502はプロトコルレジスタ(pro
tocol)、503はケーパビリティレジスタ(ca
pability)を示す。これらのレジスタは139
4シリアルバスのアドレス空間における初期ユニット空
間の定められたアドレスに配置される。ロックレジスタ
501はリソースのロック状態を示し、値0はログイン
可能な状態をあらわし、0以外はロック状態ですでにロ
グインされていることをあらわす。ケーパビリティレジ
スタ503は設定可能なプロトコルを示し、ビット毎に
プロトコルに対応し、ビットの値1はそのプロトコルが
設定可能であることをあらわし、0は設定不可能である
ことをあらわす。プロトコルレジスタ502は現在設定
されたプロトコルを示し、設定されたプロトコルに対応
するケーパビリティレジスタ503のビットに相当する
ビットの値が1になる。
FIG. 24 shows a LOG in this embodiment.
FIG. 4 shows the CSR of the 1394 serial bus provided in the printer for the IN protocol. In the drawing, 501 is a lock register (lock), and 502 is a protocol register (pro)
tocol) and 503 are capability registers (ca
). These registers are 139
4 It is arranged at a predetermined address in the initial unit space in the address space of the serial bus. The lock register 501 indicates the locked state of the resource. A value of 0 indicates a state in which the user can log in, and a value other than 0 indicates that the user is already logged in the locked state. The capability register 503 indicates a settable protocol. Each bit corresponds to a protocol. A bit value of 1 indicates that the protocol can be set, and a value of 0 indicates that the protocol cannot be set. The protocol register 502 indicates the currently set protocol, and the value of the bit corresponding to the bit of the capability register 503 corresponding to the set protocol becomes 1.

【0152】図25は、ログイン処理のホスト側のフロ
ーチャートである。
FIG. 25 is a flowchart on the host side of the login processing.

【0153】ログインを開始するためには、まずログイ
ンしようとするプリンタのロックレジスタ501、プロ
トコルレジスタ502、ケーパビリティレジスタ503
をリードトランザクションにより確認する。ここで、ケ
ーパビリティレジスタ503の内容から、ホストが通信
に用いるプロトコルをプリンタがサポートしているかど
うか確認する(ステップS601)。もしホストのプロ
トコルがプリンタのサポート外ならば、次のステップで
ログインを中止する。
To start login, first, the lock register 501, the protocol register 502, and the capability register 503 of the printer to be logged in.
Is confirmed by a read transaction. Here, it is confirmed whether or not the printer supports the protocol used by the host for communication from the contents of the capability register 503 (step S601). If the host's protocol is not supported by the printer, the next step is to abort the login.

【0154】ロックレジスタ501が0以外であれば、
他のデバイスがログイン中であるとみなし、ログインを
中止する。ログインレジスタ501が0であれば、現在
ログイン可能とみなす(ステップS602)。
If the lock register 501 is other than 0,
Assumes that another device is logged in and cancels the login. If the login register 501 is 0, it is determined that the login is possible at present (step S602).

【0155】ログイン可能の場合リソースロック処理に
移り、プリンタのロックレジスタ501にロックトラン
ザクションを用いて1を書き込み、ホスト側のログイン
設定とする(ステップS603)。この状態でプリンタ
はロックされたことになり、他のデバイスからの出力は
不可能。またレジスタの変更も不可能とする。
If the login is possible, the process proceeds to the resource lock process, where 1 is written into the lock register 501 of the printer using a lock transaction, and the host is set as a login (step S603). In this state, the printer is locked, and output from other devices is not possible. It is also impossible to change the register.

【0156】上記のようにプリンタのリソースがロック
された状態で、次にプロトコルの設定を行なう。本実施
の形態におけるプリンタは、複数プリントプロトコルを
サポートするため、プリントデータを受け取る前に、ホ
スト側のプロトコルを知らねばならない。ここでは、ホ
スト側がプリンタのプロトコルレジスタ502に対し
て、ライトトランザクションにより、これから使用する
プロトコルに相当するビットを立て通知する(ステップ
S604)、という手段を用いる。
In the state where the resources of the printer are locked as described above, the protocol is set next. Since the printer according to the present embodiment supports a plurality of print protocols, it must know the protocol on the host side before receiving print data. Here, a means is used in which the host sets up a bit corresponding to a protocol to be used from now on, by a write transaction, to the protocol register 502 of the printer (step S604).

【0157】この時点で、ホストが通信に用いるプロト
コルがプリンタに通知され、かつプリンタがロック状態
なので、現在ログインしているホストが通常のプロトコ
ルでプリントデータの送信を行なう(ステップS60
5)。
At this point, the protocol used by the host for communication is notified to the printer, and the printer is locked, so that the currently logged-in host transmits print data using the normal protocol (step S60).
5).

【0158】プリントデータの送信が終了したら、ホス
トはプリンタのロックレジスタ501、プロトコルレジ
スタ502、ケーパビリティレジスタ503をクリアす
ることにより、プリンタからログアウトする(ステップ
S606)。
When the transmission of the print data is completed, the host clears the lock register 501, the protocol register 502, and the capability register 503 of the printer to log out of the printer (step S606).

【0159】図26は、ログイン処理のプリンタ側のフ
ローチャートである。
FIG. 26 is a flowchart of the login process on the printer side.

【0160】先ず、プリンタ側は、通常ホストからのロ
グイン待ち状態となる(ステップS701)。ログイン
は、ホストからプリンタロックレジスタ501、プロト
コルレジスタ502、ケーパビリティレジスタ503の
読み取りから開始される。これは、ログインに対応した
ホストの場合であり、ログインに対応していないホスト
では、これらのレジスタに対するアクセスは行われな
い。
First, the printer normally waits for a login from the host (step S701). The login starts when the host reads the printer lock register 501, the protocol register 502, and the capability register 503. This is the case of a host that supports login, and a host that does not support login does not access these registers.

【0161】ログイン待ち状態(ステップS701)
は、所定の時間でタイムアウトとなるようになされてお
り、次のステップS702で、タイムアウトか否かが判
定される。
Login waiting state (step S701)
Is set to time out after a predetermined time, and in the next step S702, it is determined whether or not a time-out has occurred.

【0162】ステップS702の判定により、タイムア
ウトせずにその時間内でログインが行われれば、使用プ
ロトコル種の受信待ち(ステップS705)へ進み、使
用プロトコルの通知待ち状態となる。
If it is determined in step S702 that the login is performed within the time without time-out, the process proceeds to waiting for reception of the used protocol type (step S705), and enters a state of waiting for notification of the used protocol.

【0163】一方、ステップS702の判定により、タ
イムアウトとなった場合、プロトコル検索を行う(ステ
ップS703)。プロトコル検索は、詳細は後述する
が、ホストとなるノードを探し、ノードIDからホスト
のプロトコルを検索する処理である。
On the other hand, if it is determined in step S702 that a timeout has occurred, a protocol search is performed (step S703). As will be described in detail later, the protocol search is a process of searching for a node to be a host and searching for a host protocol from a node ID.

【0164】ステップS703のプロトコル検索の結果
を用いて、次のステップS704でプリンタが対応する
プロトコルであるか否が判定される。
Using the result of the protocol search in step S703, it is determined in step S704 whether the protocol is compatible with the printer.

【0165】ステップS704の判定により、プリンタ
が対応するプロトコルである場合には、プロトコルの設
定を行う(ステップS706)。
If it is determined in step S704 that the printer supports the protocol, the protocol is set (step S706).

【0166】一方、プリンタが対応するプロトコルでな
ければ、ログイン待ち状態(ステップS701)とな
る。
On the other hand, if the printer does not support the protocol, it enters a login wait state (step S701).

【0167】したがって、ログインされて使用プロトコ
ルが通知される(ステップS705)か、或いは、プロ
トコル検索で対応プロトコルが見つかった(ステップS
704)場合に、プロトコルの設定を行う(ステップS
706)。
Therefore, the user is logged in and notified of the protocol to be used (step S705), or the corresponding protocol is found by the protocol search (step S705).
704), the protocol is set (step S
706).

【0168】プロトコルの設定(ステップS706)
後、次のステップS707〜ステップS712により、
各プロトコルへのスイッチを行い、各プロトコルでデー
タ通信を行う。
Protocol setting (step S706)
Thereafter, by the following steps S707 to S712,
Switch to each protocol and perform data communication with each protocol.

【0169】そして、データ通信が終了すると、プリン
タは、ロックレジスタ501、プロトコルレジスタ50
2、ケーパビリティレジスタ503がクリアされたのを
確認し(ステップS713)、ログイン待ち状態(ステ
ップS701)に戻る。
When the data communication is completed, the printer operates the lock register 501 and the protocol register 50.
2. Confirm that the capability register 503 has been cleared (step S713), and return to the login waiting state (step S701).

【0170】但し、プロトコル検索(ステップS70
3)にて、プロトコルが決定されるような場合、当然ロ
グアウトにも対応していないわけであるため、この場合
には、バスのリセット、ホスト、プリンタのリセット等
により、初期状態のログイン待ち状態となる。
However, the protocol search (step S70)
In the case where the protocol is determined in 3), it is natural that the system does not support logout. In this case, the reset state of the bus, the host, and the printer causes the initial state of the login wait state. Becomes

【0171】図27は、上述したプロトコル検索を示す
フローチャートである。
FIG. 27 is a flowchart showing the above-described protocol search.

【0172】先ず、バス上にあるノードの総数を得る
(ステップS801)。バスノードの総数は、バスマネ
ージャが保持するトポロジーマップ等から判断すること
ができる。
First, the total number of nodes on the bus is obtained (step S801). The total number of bus nodes can be determined from a topology map or the like held by the bus manager.

【0173】次に、ステップS801により得られたノ
ードの総数が有効であるか否かを判定する(ステップS
802)。この判定は、上記ノード総数が3以上の場合
か、或いは、自分以外に存在しない場合(ステップS8
02)、対応プロトコル無し(無効)とする処理であ
る。
Next, it is determined whether the total number of nodes obtained in step S801 is valid (step S801).
802). This determination is made when the total number of nodes is 3 or more, or when there is no other node (step S8).
02), a process of setting no corresponding protocol (invalid).

【0174】ステップS802の判定により、ノード総
数が無効であった場合には、対応プロトコル無しとして
(ステップS807)、リターンする。
If it is determined in step S802 that the total number of nodes is invalid, there is no corresponding protocol (step S807), and the process returns.

【0175】一方、ノードの総数が有効であった場合、
相手のノード番号を得る(ステップS803)。自分の
ノード番号が「0」であるならば、相手のノード番号は
「1」、自分のノード番号が「1」であるならば、相手
のノード番号は「0」というように、相手のノード番号
は単純に決定することができる。
On the other hand, if the total number of nodes is valid,
The node number of the other party is obtained (step S803). If the own node number is "0", the other node number is "1", if the own node number is "1", the other node number is "0", and so on. The number can be determined simply.

【0176】次に、相手のノードIDを得る(ステップ
S804)。ノードIDは、図6に示したConfig
uration ROMのnode_vendor_i
d,chip_id_hi,chip_id_loをr
eadトランザクションで読み込むことにより、得るこ
とができる。また、ノードIDは、機器により固有のナ
ンバーを有するため、相手の機器を特定することができ
る。
Next, the node ID of the other party is obtained (step S804). The node ID is the Config shown in FIG.
node_vendor_i of uration ROM
d, chip_id_hi, chip_id_lo to r
It can be obtained by reading with an ead transaction. Further, since the node ID has a unique number depending on the device, it is possible to specify the partner device.

【0177】次に、相手の機器から相手のプロトコルを
決定する(ステップS805)。
Next, the protocol of the partner is determined from the device of the partner (step S805).

【0178】次に、相手のプロトコルがプリンタに有効
か否かを判定し(ステップS806)、有効でなければ
対応プロトコル無しとし(ステップS807)、有効で
あれば対応プロトコル有りとして(ステップS80
8)、リターンする。
Next, it is determined whether or not the other party's protocol is valid for the printer (step S806). If it is not valid, it is determined that there is no corresponding protocol (step S807), and if it is valid, it is determined that there is a corresponding protocol (step S80).
8) Return.

【0179】したがって、上述したプロトコル検索の結
果が、対応プロトコルの有無と、プロトコルとして通知
されることとなる。
Therefore, the result of the above-mentioned protocol search is notified as to the presence or absence of the corresponding protocol and the protocol.

【0180】以上の図26及び図27に示した処理によ
り、ログインを行わない機器に対してプリンタが相手の
ノードIDから相手のプロトコルを特定し、そのプロト
コルに自らのプロトコルを合わせることができる。
By the processing shown in FIG. 26 and FIG. 27, the printer can identify the protocol of the partner from the node ID of the partner with respect to the device that does not log in, and can match its own protocol to that protocol.

【0181】尚、本発明は、図22に示すような、複数
の機器から構成されるシステムに適用しても、1つの機
器からなる装置内のデータ処理方法に適用してもよい。
The present invention may be applied to a system composed of a plurality of devices as shown in FIG. 22, or to a data processing method in a device composed of one device.

【0182】また、本発明の目的は、上述した各実施の
形態のホスト及び端末の機能を実現するソフトウェアの
プログラムコードを記憶した記憶媒体を、システム或い
は装置に供給し、そのシステム或いは装置のコンピュー
タ(又はCPUやMPU)が記憶媒体に格納されたプロ
グラムコードを読みだして実行することによっても、達
成されることは言うまでもない。
An object of the present invention is to supply a storage medium storing program codes of software for realizing the functions of the host and the terminal of each of the above-described embodiments to a system or an apparatus, and to provide a computer for the system or the apparatus. Needless to say, this can also be achieved by a program (or CPU or MPU) reading and executing a program code stored in a storage medium.

【0183】この場合、記憶媒体から読み出されたプロ
グラムコード自体が前述した各実施の形態の機能を実現
することとなり、そのプログラムコードを記憶した記憶
媒体は本発明を構成することとなる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

【0184】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピーディスク、ハードディ
スク、光ディスク、光磁気ディスク、CD−ROM、C
D−R、磁気テープ、不揮発性のメモリカード、ROM
等を用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, C
DR, magnetic tape, nonvolatile memory card, ROM
Etc. can be used.

【0185】また、コンピュータが読みだしたプログラ
ムコードを実行することにより、前述した実施の形態の
機能が実現されるだけでなく、そのプログラムコードの
指示に基づき、コンピュータ上で稼動しているOS等が
実際の処理の一部又は全部を行い、その処理によって実
施の形態の機能が実現される場合も含まれることは言う
までもない。
By executing the program code read out by the computer, not only the functions of the above-described embodiment are realized, but also an OS or the like running on the computer based on the instruction of the program code. Performs part or all of the actual processing, and the processing realizes the functions of the embodiments.

【0186】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された拡張機能ボー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書き込まれた後、そのプログラムコードの指
示に基づき、その機能拡張ボードや機能拡張ユニットに
備わるCPUなどが実際の処理の一部又は全部を行い、
その処理によって前述した実施の形態の機能が実現され
る場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written in a memory provided in an extended function board inserted into the computer or a function extension unit connected to the computer, based on the instruction of the program code, The CPU provided in the function expansion board or function expansion unit performs part or all of the actual processing,
It goes without saying that the processing may realize the functions of the above-described embodiments.

【0187】さらにまた、本発明におけるホスト固有の
識別子としては、アスキーコードでもよいし、2値デー
タでもよいし、或いは、ホストを専有している法人、個
人の名前でもよい。また、識別子としては、ネットワー
クアドレスでもよいし、例えば、IPアドレスや、MA
Cアドレスと呼ばれるアドレスでもよい。また、例え
ば、ホストに固有の識別子でなく、変動型の識別子でも
よいし、又は、暗号化のキー等でもよい。すなわち、ホ
ストが識別できる情報であれば、全て本発明における識
別子に含まれる。
Furthermore, the identifier unique to the host in the present invention may be an ASCII code, binary data, or the name of a corporation or an individual who exclusively uses the host. The identifier may be a network address, for example, an IP address or MA
An address called a C address may be used. Also, for example, instead of an identifier unique to the host, a variable identifier may be used, or an encryption key or the like may be used. That is, any information that can identify the host is included in the identifier according to the present invention.

【0188】[0188]

【発明の効果】以上説明したように本発明によれば、拡
張性の高いデータ処理方法、データ処理装置、プリンタ
及び記憶媒体を提供することができる。特に、複数種類
のプリンタのプロトコルに対応可能であるので、拡張性
が極めて高い。また、初期プロトコルに対応しないホス
ト機器に対してプリンタ等のプロトコルを適合できるよ
うに構成したことにより、初期プロトコルを実装しない
ホストに対しても、プロトコルを一致させることが可能
であるため、幅広く対応することができる。
As described above, according to the present invention, it is possible to provide a data processing method, a data processing device, a printer, and a storage medium with high expandability. In particular, since it is possible to support a plurality of types of printer protocols, the scalability is extremely high. In addition, by configuring the printer and other protocols to be compatible with host devices that do not support the initial protocol, it is possible to match the protocol to hosts that do not implement the initial protocol. can do.

【図面の簡単な説明】[Brief description of the drawings]

【図1】IEEE1394ケーブルを用いた通信システ
ムの一例を示す図である。
FIG. 1 is a diagram illustrating an example of a communication system using an IEEE 1394 cable.

【図2】IEEE1394の階層構造を示す図である。FIG. 2 is a diagram showing a hierarchical structure of IEEE1394.

【図3】IEEE1394のアドレスを示す図である。FIG. 3 is a diagram showing IEEE 1394 addresses.

【図4】最小形式のConfigration ROM
を説明するための図である。
FIG. 4 is a minimum configuration ROM.
FIG.

【図5】一般形式のConfigration ROM
を説明するための図である。
FIG. 5: Configuration ROM of general format
FIG.

【図6】ディジタルカメラのConfigration
ROMを説明するための図である。
FIG. 6: Configuration of a digital camera
FIG. 3 is a diagram for explaining a ROM.

【図7】IEEE1394のケーブル断面図である。FIG. 7 is a cable sectional view of IEEE1394.

【図8】DS-Link 符号化方式を説明するための図であ
る。
FIG. 8 is a diagram for explaining a DS-Link encoding method.

【図9】バスリセットからIDの設定までを説明するフロ
ーチャートである。
FIG. 9 is a flowchart illustrating a process from a bus reset to an ID setting.

【図10】ルートの決定方法を説明するフローチャート
である。
FIG. 10 is a flowchart illustrating a route determination method.

【図11】親子関係決定からすべてのノードIDの設定
までの手順を説明するフローチャートである。
FIG. 11 is a flowchart illustrating a procedure from determination of a parent-child relationship to setting of all node IDs.

【図12】ノード間の親子関係を示す図である。FIG. 12 illustrates a parent-child relationship between nodes.

【図13】アービトレーションの過程を説明するための
図である。
FIG. 13 is a diagram for explaining a process of arbitration.

【図14】アービトレーションの過程を示すフローチャ
ートである。
FIG. 14 is a flowchart showing a process of arbitration.

【図15】Asynchronous転送におけるサブアクションを
示す図である。
FIG. 15 is a diagram showing a sub-action in asynchronous transfer.

【図16】Asynchronous転送におけるパケット構造を示
す図である。
FIG. 16 is a diagram showing a packet structure in asynchronous transfer.

【図17】Isochronous 転送におけるサブアクションを
示す図である。
FIG. 17 is a diagram showing a sub-action in Isochronous transfer.

【図18】Isochronous 転送におけるパケット構造を示
す図である。
FIG. 18 is a diagram showing a packet structure in isochronous transfer.

【図19】IEEE1394の通信サイクルの一例を説
明するための図である。
FIG. 19 is a diagram illustrating an example of a communication cycle of IEEE1394.

【図20】本発明を適用したシステムを説明するための
図である。
FIG. 20 is a diagram for explaining a system to which the present invention is applied.

【図21】LOGINプロトコルの基本動作を説明する
ための図である。
FIG. 21 is a diagram for explaining a basic operation of the LOGIN protocol.

【図22】LOGINプロトコルを実装した1394イ
ンターフェイスにおける各デバイスの接続形態を説明す
るための図である。
FIG. 22 is a diagram illustrating a connection form of each device in a 1394 interface implementing the LOGIN protocol.

【図23】ログイン動作の流れを説明するための図であ
る。
FIG. 23 is a diagram illustrating the flow of a login operation.

【図24】LOGINプロトコルのためにプリンタが備
える1394シリアルバスのCSRを説明するための図
である。
FIG. 24 is a diagram for describing the CSR of the 1394 serial bus provided in the printer for the LOGIN protocol.

【図25】ログイン処理のホスト側の処理を説明するた
めのフローチャートである。
FIG. 25 is a flowchart for explaining the host-side processing of the login processing.

【図26】ログイン処理のプリンタ側の処理を説明する
ためのフローチャートである。
FIG. 26 is a flowchart for explaining a printer-side process of a login process.

【図27】プロトコル検索処理を説明するためのフロー
チャートである。
FIG. 27 is a flowchart illustrating a protocol search process.

【符号の説明】[Explanation of symbols]

1 OSIモデルの物理層 2 データリンク層 3 上位層 4 上位層 5 トランスポートプロトコル層 6 プレゼンテーション層 7 LOGINプロトコル 8 シリアルバスプロトコル(SBP−2) 9 デバイスプロトコル 1 Physical layer of OSI model 2 Data link layer 3 Upper layer 4 Upper layer 5 Transport protocol layer 6 Presentation layer 7 LOGIN protocol 8 Serial bus protocol (SBP-2) 9 Device protocol

Claims (27)

【特許請求の範囲】[Claims] 【請求項1】 共通シリアスバスを介して複数種類のプ
リンタのプロトコルを切り換えるためのデータ処理方法
であって、 前記プリンタのプロトコルの種類に係わらない初期プロ
トコルを実行し、 前記初期プロトコルに対応しないホストを判定し、 前記ホストの固有の識別子を取得し、 前記初期プロトコルに対応しないホストであると判定さ
れた場合、取得されたそのホストの識別子を用いて、該
ホストに対応したプロトコルに切り換えて実行すること
を特徴とするデータ処理方法。
1. A data processing method for switching a plurality of types of printer protocols via a common serial bus, wherein the host executes an initial protocol irrespective of the type of the printer protocol, and does not support the initial protocol. And obtains a unique identifier of the host, and when it is determined that the host does not support the initial protocol, switches to a protocol corresponding to the host using the obtained host identifier and executes the host. A data processing method.
【請求項2】 前記共通シリアルバスは、IEEE13
94規格に適合したバスであることを特徴とする請求項
1記載のデータ処理方法。
2. The method according to claim 1, wherein the common serial bus is an IEEE13.
2. The data processing method according to claim 1, wherein the bus conforms to the 94 standard.
【請求項3】 前記プリンタのプロトコルは、インクジ
ェットプリンタ用のプロトコルであることを特徴とする
請求項1記載のデータ処理方法。
3. The data processing method according to claim 1, wherein the protocol of the printer is a protocol for an inkjet printer.
【請求項4】 前記共通シリアルバスは、USB規格に
適合したバスであることを特徴とする請求項1記載のデ
ータ処理方法。
4. The data processing method according to claim 1, wherein the common serial bus is a bus conforming to a USB standard.
【請求項5】 前記初期プロトコルは、OSIモデルの
データリンク層よりも上位の層で実行されるプロトコル
であることを特徴とする請求項1記載のデータ処理方
法。
5. The data processing method according to claim 1, wherein the initial protocol is a protocol executed in a layer higher than a data link layer of an OSI model.
【請求項6】 前記プリンタ固有のプロトコル実行後
に、プリントすべき画像データを伝送することを特徴と
する請求項1記載のデータ処理方法。
6. The data processing method according to claim 1, further comprising transmitting image data to be printed after executing the printer-specific protocol.
【請求項7】 前記画像データは、撮像手段によって光
電変換されたデータであることを特徴とする請求項6記
載のデータ処理方法。
7. The data processing method according to claim 6, wherein said image data is data photoelectrically converted by an imaging unit.
【請求項8】 共通シリアスバスを介して複数種類のプ
リンタのプロトコルを切り換えるためのデータ処理装置
であって、 前記プリンタのプロトコルの種類に係わらない初期プロ
トコルを実行する実行手段と、 前記初期プロトコルに対応しないホストを判定する判定
手段と、 前記ホストの固有の識別子を取得する取得手段とを備
え、 前記実行手段は、前記判定手段の判定結果により、前記
初期プロトコルに対応しないホストであると判定した場
合、前記取得手段で取得された識別子を用いて、該ホス
トに対応したプロトコルに切り換えて実行することを特
徴とするデータ処理装置。
8. A data processing device for switching protocols of a plurality of types of printers via a common serial bus, wherein the execution unit executes an initial protocol irrespective of the type of the protocol of the printer. Determining means for determining an unsupported host, and obtaining means for obtaining a unique identifier of the host, wherein the executing means determines that the host is not compatible with the initial protocol based on a determination result of the determining means. In this case, the data processing device is characterized by switching to a protocol corresponding to the host using the identifier acquired by the acquisition unit and executing the protocol.
【請求項9】 前記共通シリアルバスは、IEEE13
94規格に適合したバスであることを特徴とする請求項
8記載のデータ処理装置。
9. The common serial bus includes an IEEE 13 bus.
9. The data processing device according to claim 8, wherein the bus conforms to the 94 standard.
【請求項10】 前記プリンタのプロトコルは、インク
ジェットプリンタ用のプロトコルであることを特徴とす
る請求項8記載のデータ処理方法。
10. The data processing method according to claim 8, wherein the protocol of the printer is a protocol for an inkjet printer.
【請求項11】 前記共通シリアルバスは、USB規格
に適合したバスであることを特徴とする請求項8記載の
データ処理装置。
11. The data processing device according to claim 8, wherein the common serial bus is a bus conforming to a USB standard.
【請求項12】 前記初期プロトコルは、OSIモデル
のデータリンク層よりも上位の層で実行されるプロトコ
ルであることを特徴とする請求項8記載のデータ処理装
置。
12. The data processing apparatus according to claim 8, wherein said initial protocol is a protocol executed in a layer higher than a data link layer of an OSI model.
【請求項13】 前記プリンタ固有のプロトコル実行後
に、プリントすべき画像データを伝送することを特徴と
する請求項8記載のデータ処理装置。
13. The data processing apparatus according to claim 8, wherein image data to be printed is transmitted after the execution of the printer-specific protocol.
【請求項14】 前記画像データは、撮像手段によって
光電変換されたデータであることを特徴とする請求項1
3記載のデータ処理装置。
14. The image data according to claim 1, wherein the image data is data photoelectrically converted by an imaging unit.
3. The data processing device according to 3.
【請求項15】 共通シリアスバスを介して複数種類の
プリンタのプロトコルを切り換えるプリンタであって、 前記プリンタのプロトコルの種類に係わらない初期プロ
トコルを実行する実行手段と、 前記初期プロトコルに対応しないホストを判定する判定
手段と、 前記ホストの固有の識別子を取得する取得手段とを備
え、 前記実行手段は、前記判定手段の判定結果により、前記
初期プロトコルに対応しないホストであると判定した場
合、前記取得手段で取得された識別子を用いて、該ホス
トに対応したプロトコルに切り換えて実行することを特
徴とするプリンタ。
15. A printer for switching protocols of a plurality of types of printers via a common serial bus, comprising: an execution unit for executing an initial protocol irrespective of a type of the protocol of the printer; and a host not supporting the initial protocol. Determining means for determining, and obtaining means for obtaining a unique identifier of the host, wherein the execution means determines, based on a determination result of the determining means, that the host does not correspond to the initial protocol, the obtaining means A printer adapted to switch to a protocol corresponding to the host using the identifier acquired by the means.
【請求項16】 前記共通シリアルバスは、IEEE1
394規格に適合したバスであることを特徴とする請求
項15記載のプリンタ。
16. The device according to claim 1, wherein the common serial bus is an IEEE1
The printer according to claim 15, wherein the bus conforms to the 394 standard.
【請求項17】 前記プリンタのプロトコルは、インク
ジェットプリンタ用のプロトコルであることを特徴とす
る請求項15記載のプリンタ。
17. The printer according to claim 15, wherein the protocol of the printer is a protocol for an inkjet printer.
【請求項18】 前記共通シリアルバスは、USB規格
に適合したバスであることを特徴とする請求項15記載
のプリンタ。
18. The printer according to claim 15, wherein the common serial bus is a bus conforming to a USB standard.
【請求項19】 前記初期プロトコルは、OSIモデル
のデータリンク層よりも上位の層で実行されるプロトコ
ルであることを特徴とする請求項15記載のプリンタ。
19. The printer according to claim 15, wherein the initial protocol is a protocol executed in a layer higher than a data link layer of an OSI model.
【請求項20】 光電変換を行って得た画像データを前
記印字データとして前記受信手段に送信する撮像手段を
備えることを特徴とする請求項15記載のデータ処理装
置。
20. The data processing apparatus according to claim 15, further comprising an imaging unit that transmits image data obtained by performing photoelectric conversion to the reception unit as the print data.
【請求項21】 共通シリアスバスを介して複数種類の
プリンタのプロトコルを切り換えるためのデータ処理を
実行するためのステップが格納された記憶媒体であっ
て、 前記プリンタのプロトコルの種類に係わらない初期プロ
トコルを実行する実行ステップと、 前記初期プロトコルに対応しないホストを判定する判定
ステップと、 前記ホストの固有の識別子を取得する取得ステップとを
コンピュータが読出可能に格納し、 前記実行ステップは、前記判定ステップの判定結果によ
り、前記初期プロトコルに対応しないホストであると判
定した場合、前記取得ステップで取得された識別子を用
いて、該ホストに対応したプロトコルに切り換えて実行
するステップを含むことを特徴とする記憶媒体。
21. A storage medium storing a step for executing data processing for switching a plurality of types of printer protocols via a common serial bus, wherein the initial protocol is independent of the type of the printer protocol. And a determining step of determining a host that does not correspond to the initial protocol; and an obtaining step of obtaining a unique identifier of the host, the computer storing the reading step in a readable manner. When it is determined that the host does not support the initial protocol based on the determination result, the method includes a step of switching to a protocol corresponding to the host using the identifier acquired in the acquiring step and executing the host. Storage medium.
【請求項22】 前記共通シリアルバスは、IEEE1
394規格に適合したバスであることを特徴とする請求
項21記載の記憶媒体。
22. The common serial bus includes an IEEE 1 bus.
22. The storage medium according to claim 21, which is a bus conforming to the 394 standard.
【請求項23】 前記プリンタのプロトコルは、インク
ジェットプリンタ用のプロトコルであることを特徴とす
る請求項21記載の記憶媒体。
23. The storage medium according to claim 21, wherein the protocol of the printer is a protocol for an ink jet printer.
【請求項24】 前記共通シリアルバスは、USB規格
に適合したバスであることを特徴とする請求項21記載
の記憶媒体。
24. The storage medium according to claim 21, wherein said common serial bus is a bus conforming to a USB standard.
【請求項25】 前記初期プロトコルは、OSIモデル
のデータリンク層よりも上位の層で実行されるプロトコ
ルであることを特徴とする請求項21記載の記憶媒体。
25. The storage medium according to claim 21, wherein said initial protocol is a protocol executed in a layer higher than a data link layer of an OSI model.
【請求項26】 前記実行ステップは、前記プリンタ固
有のプロトコル実行後に、プリントすべき画像データを
伝送するステップを含むことを特徴とする請求項21記
載の記憶媒体。
26. The storage medium according to claim 21, wherein said executing step includes a step of transmitting image data to be printed after executing said printer-specific protocol.
【請求項27】 前記画像データは、撮像手段によって
光電変換されたデータであることを特徴とする請求項2
6記載の記憶媒体。
27. The image processing apparatus according to claim 2, wherein the image data is data photoelectrically converted by an imaging unit.
6. The storage medium according to 6.
JP08982597A 1997-02-14 1997-04-08 Data processing method, data processing device and printer Expired - Fee Related JP3495878B2 (en)

Priority Applications (14)

Application Number Priority Date Filing Date Title
JP08982597A JP3495878B2 (en) 1997-04-08 1997-04-08 Data processing method, data processing device and printer
SG1998000294A SG74611A1 (en) 1997-02-14 1998-02-10 Data communication apparatus and method
SG200105141A SG101460A1 (en) 1997-02-14 1998-02-10 Data communication apparatus and method
TW087101785A TW384611B (en) 1997-02-14 1998-02-10 Data communication apparatus and method
CA002229472A CA2229472C (en) 1997-02-14 1998-02-11 Data communication apparatus and method
MX9801199A MX9801199A (en) 1997-02-14 1998-02-12 Data communication apparatus and method.
AU53921/98A AU5392198A (en) 1997-02-14 1998-02-13 Data communication apparatus and method
KR1019980004329A KR100298140B1 (en) 1997-02-14 1998-02-13 Data communication apparatus and method
CN98104444A CN1126343C (en) 1997-02-14 1998-02-13 Data communication equipment and method thereof
EP05076775A EP1612691A1 (en) 1997-02-14 1998-02-16 Data communication apparatus and method
EP98301120A EP0859325A3 (en) 1997-02-14 1998-02-16 Data communication apparatus and method
US09/025,128 US6425019B1 (en) 1997-02-14 1998-02-17 Data communication on a serial bus using an initial protocol which being executed in a transaction layer
US10/041,647 US6874082B2 (en) 1997-02-14 2002-01-10 Data communication on a serial bus using a selected protocol based on an obtained device identifier
US11/033,292 US7401213B2 (en) 1997-02-14 2005-01-12 Data communication apparatus and method of a device that supports plural communication methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08982597A JP3495878B2 (en) 1997-04-08 1997-04-08 Data processing method, data processing device and printer

Publications (2)

Publication Number Publication Date
JPH10283135A true JPH10283135A (en) 1998-10-23
JP3495878B2 JP3495878B2 (en) 2004-02-09

Family

ID=13981539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08982597A Expired - Fee Related JP3495878B2 (en) 1997-02-14 1997-04-08 Data processing method, data processing device and printer

Country Status (1)

Country Link
JP (1) JP3495878B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006006550A1 (en) * 2004-07-09 2006-01-19 Canon Kabushiki Kaisha Image processing apparatus and control method of the same
KR100888109B1 (en) 2004-07-09 2009-03-11 캐논 가부시끼가이샤 Image processing apparatus, its control method and recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006006550A1 (en) * 2004-07-09 2006-01-19 Canon Kabushiki Kaisha Image processing apparatus and control method of the same
JP2006024133A (en) * 2004-07-09 2006-01-26 Canon Inc Image processing apparatus and its control method
KR100888109B1 (en) 2004-07-09 2009-03-11 캐논 가부시끼가이샤 Image processing apparatus, its control method and recording medium
JP4574253B2 (en) * 2004-07-09 2010-11-04 キヤノン株式会社 Image processing apparatus and control method thereof
US7873756B2 (en) 2004-07-09 2011-01-18 Canon Kabushiki Kaisha Image processing apparatus and control method of the same

Also Published As

Publication number Publication date
JP3495878B2 (en) 2004-02-09

Similar Documents

Publication Publication Date Title
KR100298140B1 (en) Data communication apparatus and method
JP2001306428A (en) Network apparatus, network system, communication method, and recording medium
JP2000358033A (en) Data communication system and data communication method
JP3293779B2 (en) Signal processing device and control method thereof
JP3630971B2 (en) Data communication method, apparatus, system, and storage medium
JP2002077211A (en) Information processing equipment, its method and recording medium
JPH10229533A (en) Image forming device, image forming system and image forming method
US7177959B2 (en) Information signal processing apparatus and method
JPH10229544A (en) Image processing unit, its control method, image processing system, output device and storage medium
JP2001275066A (en) Image processor, and its method and storage medium
JP3495878B2 (en) Data processing method, data processing device and printer
JPH10229490A (en) Image-fetching device printing system and printing method, and printer
JP3774542B2 (en) Data processing method, data processing apparatus, printer, and storage medium
JP3495879B2 (en) Data processing method, data processing device, and computer-readable recording medium
JP3897773B2 (en) Communication method and communication apparatus
JP2000196873A (en) Information processor, information processing system, method for them, and storage medium
JP4058156B2 (en) Data processing method, data processing apparatus, printer, and storage medium
JPH10307691A (en) Method and device for data communication, printing device, and printing system including the same
JPH11282641A (en) Electronic instrument, its controlling method and multi-function system
JP2003333045A (en) Power management
JPH11177589A (en) Data transfer device, data processing method therefor and computer readable storage medium stored with program
AU762552B2 (en) Data communication apparatus and method
JP2001077823A (en) Image processing unit, its control method and image processing system
JP2001257685A (en) Information signal processor, information signal processing method and storage medium
JPH11284649A (en) Network system, and network management device and method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101121

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101121

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121121

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131121

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees