JP2006050653A - Data communication apparatus, method, and system, and storage medium - Google Patents

Data communication apparatus, method, and system, and storage medium Download PDF

Info

Publication number
JP2006050653A
JP2006050653A JP2005250364A JP2005250364A JP2006050653A JP 2006050653 A JP2006050653 A JP 2006050653A JP 2005250364 A JP2005250364 A JP 2005250364A JP 2005250364 A JP2005250364 A JP 2005250364A JP 2006050653 A JP2006050653 A JP 2006050653A
Authority
JP
Japan
Prior art keywords
data
node
encoding
transfer
decoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005250364A
Other languages
Japanese (ja)
Inventor
Susumu Kozuki
進 上月
Masamichi Ito
賢道 伊藤
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 JP2005250364A priority Critical patent/JP2006050653A/en
Publication of JP2006050653A publication Critical patent/JP2006050653A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To ensure data transmission and reception in terms of compression data to the utmost. <P>SOLUTION: In a transmission source 101 it is investigated before transmission of data whether a coding system of a transmission destination 102 is coincident with a coding system of the transmission source. If coincident, then compressed data is transmitted, and if not then the data is transmitted after it is decoded. Alternatively, if a decoding system of the transmission destination 102 can be changed in response to a program, in the transmission source 101 a decoding program is sent to the transmission destination 102 prior to the data transmission, and thereafter the compression data is transmitted. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、例えば制御信号とデータとを混在させて通信することが可能なデータ通信バス等を用いて他の電子機器(以下、機器)間と接続され、機器間でデータ通信を行うデータ通信装置及び方法、データ通信システム及び記憶媒体に関する。   The present invention is a data communication in which data communication is performed between devices connected to other electronic devices (hereinafter referred to as devices) using, for example, a data communication bus capable of communicating by mixing control signals and data. The present invention relates to an apparatus and method, a data communication system, and a storage medium.

パーソナルコンピュータ周辺機器の中で、最も利用頻度が高いのはハードディスクやプリンタであり、これらの周辺装置は小型コンピュータ用汎用型インターフェイスで代表的なデジタルインターフェイス(以下、デジタルI/F)であるSCSI等をもってパーソナルコンピュータ間との接続がなされ、データ通信が行われている。   Among personal computer peripheral devices, hard disks and printers are most frequently used. These peripheral devices are general-purpose interfaces for small computers and are representative digital interfaces (hereinafter referred to as digital I / F) such as SCSI. The personal computers are connected to each other and data communication is performed.

また、デジタルカメラやデジタルビデオカメラといった記録再生装置も、パーソナルコンピュータ(以下、PC)への画像入力に用いられる周辺装置の1つである。近年、デジタルカメラやビデオカメラで撮影した静止画や動画といった映像をPCへ取り込み、ハードディスクに記憶したり、またはPCで編集した後、プリンタでカラープリントするといった分野の技術が進んでおり、ユーザーも増えている。   A recording / playback device such as a digital camera or a digital video camera is also one of peripheral devices used for image input to a personal computer (hereinafter referred to as a PC). In recent years, technology in the field of capturing still images and moving images shot with a digital camera or video camera to a PC and storing them on a hard disk or editing them on a PC and then printing them with a printer has been advancing. is increasing.

取り込んだ画像データをPCからプリンタやハードディスクへ出力する際などに、上記のSCSI等を経由してデータ通信がされる。そのようなとき画像データのようにデータ量の多い情報を送るためにも、こういったデジタルI/Fには転送データレートの高い、かつ汎用性のあるものが必要とされる。   When the captured image data is output from a PC to a printer or hard disk, data communication is performed via the SCSI or the like. In such a case, in order to send information having a large amount of data such as image data, such a digital I / F is required to have a high transfer data rate and versatility.

図3に、従来の例としてデジタルカメラ、PC及びプリンタを接続したときのブロック図を示す。   FIG. 3 shows a block diagram when a digital camera, a PC, and a printer are connected as a conventional example.

図3において、31はデジタルカメラ、32はパーソナルコンピュータ(PC)、33はプリンタである。さらに、34はデジタルカメラの記録部であるメモリ、35は画像データの復号化回路、36は画像処理部、37はD/Aコンバータ、38は表示部であるビューファインダ(EVF)、39はデジタルカメラのデジタルI/O部、40はPCのデジタルカメラとのデジタルI/O部、41はキーボードやマウスなどの操作部、42は画像データの復号化回路、43はディスプレイ、44はハードディスク装置、45はRAM等のメモリ、46は演算処理部のMPU、47はPCIバス、48はデジタルI/FのSCSIインタフェース(ボード)、49はPC32とSCSIケーブルで繋がったプリンタ33のSCSIインターフェイス、50はメモリ、51はプリンタヘッド、52はプリンタ制御部のプリンタコントローラ、53はドライバである。   In FIG. 3, 31 is a digital camera, 32 is a personal computer (PC), and 33 is a printer. Further, 34 is a memory that is a recording unit of the digital camera, 35 is a decoding circuit for image data, 36 is an image processing unit, 37 is a D / A converter, 38 is a viewfinder (EVF) that is a display unit, and 39 is digital. Camera digital I / O unit, 40 digital I / O unit with PC digital camera, 41 operation unit such as keyboard and mouse, 42 image data decoding circuit, 43 display, 44 hard disk device, 45 is a memory such as a RAM, 46 is an MPU of an arithmetic processing unit, 47 is a PCI bus, 48 is a SCSI interface (board) of a digital I / F, 49 is a SCSI interface of a printer 33 connected to the PC 32 via a SCSI cable, 50 is A memory, 51 is a printer head, 52 is a printer controller of the printer control unit, and 53 is a driver.

デジタルカメラ 31で撮像した画像をPC32に取り込み、またPC32からプリンタ33へ出力するときの手順の説明を行う。デジタルカメラ31のメモリ34に記憶されている画像データが読みだされると、読み出された画像データのうち一方は復号化回路35で復号化され、画像処理回路36で表示するための画像処理がなされ、D/Aコンバータ37を経て、EVF38で表示される。また一方では、外部出力するためにデジタルI/O部39から、ケーブルを伝わってPC32のデジタルI/O部40へ至る。   A procedure for capturing an image captured by the digital camera 31 into the PC 32 and outputting the image from the PC 32 to the printer 33 will be described. When the image data stored in the memory 34 of the digital camera 31 is read, one of the read image data is decoded by the decoding circuit 35, and image processing for display by the image processing circuit 36 Is displayed on the EVF 38 via the D / A converter 37. On the other hand, for external output, the digital I / O unit 39 is transmitted through a cable to the digital I / O unit 40 of the PC 32.

PC32内では、PCIバス47を相互伝送のバスとして、デジタルI/O部40から入力した画像データは、記憶する場合はハードディスク44で記憶され、表示する場合は復号化回路42で復号化された後、メモリ45で表示画像としてメモリされて、ディスプレイ43 でアナログ信号に変換されてから表示される。PC32での編集時等の操作入力は操作部41から行い、PC32全体の処理はMPU46で行う。   In the PC 32, the image data input from the digital I / O unit 40 is stored in the hard disk 44 when stored using the PCI bus 47 as a mutual transmission bus, and is decoded by the decoding circuit 42 when displayed. Thereafter, it is stored as a display image in the memory 45 and converted into an analog signal on the display 43 before being displayed. Operation input such as editing on the PC 32 is performed from the operation unit 41, and processing of the entire PC 32 is performed by the MPU 46.

また、画像をプリント出力する際は、PC32内のSCSIインターフェイスボード48から画像データをSCSIケーブルにのせて伝送し、プリンタ33側のSCSIインターフェイス49で受信し、メモリ50でプリント画像として形成され、プリンタコントローラ52の制御でプリンタヘッド51とドライバ53が動作して、メモリ50から読み出したプリント画像データをプリントする。   When printing an image, image data is transmitted from the SCSI interface board 48 in the PC 32 via a SCSI cable, received by the SCSI interface 49 on the printer 33 side, and formed as a print image in the memory 50. The printer head 51 and the driver 53 operate under the control of the controller 52, and print image data read from the memory 50 is printed.

以上が、従来の画像データをPC取り込み、またはプリントするまでの手順である。   The above is the procedure until the conventional image data is taken into the PC or printed.

このように、従来はホストであるPCにそれぞれの機器が接続され、PCを介してから、記録再生装置で撮像した画像データをプリントしている。   As described above, each device is conventionally connected to a PC as a host, and image data captured by the recording / reproducing apparatus is printed through the PC.

また、映像データを圧縮する方式も多様化している。静止画を圧縮する方式としてJPEG、動画を圧縮する方式としてMPEGなどが知られており、その他には家庭用デジタルVTR(DVC)ではVLCとDCTを組み合わせた独自の圧縮方式を用いている。このように、機器毎またはデータの種類毎などに分類してさまざまな圧縮方式が考えられている。   In addition, methods for compressing video data are diversified. JPEG is known as a method for compressing still images, and MPEG is known as a method for compressing moving images. In addition, a home digital VTR (DVC) uses a unique compression method combining VLC and DCT. As described above, various compression methods are considered by classifying each device or each data type.

しかしながら、上記従来例で挙げたデジタルインターフェイスの問題点として、SCSIには転送データレートの低いものや、パラレル通信のためケーブルが太いもの、接続される周辺機器の種類や数、接続方式などにも制限があり、多くの面での不便利性も指摘されている。   However, the problems with the digital interface mentioned in the above conventional example include that the SCSI has a low transfer data rate, that the cable is thick for parallel communication, the type and number of peripheral devices to be connected, the connection method, etc. There are limitations and many inconveniences have been pointed out.

また、一般的な家庭用PCの多くは、PCの背面にSCSIやその他のケーブルを接続するためのコネクタを設けているものが多く、またコネクタの形状も大きく、抜き差しに煩わしさがある。デジタルカメラやビデオカメラ等の移動式や携帯式で、通常は据え置きしない装置を接続するときにも、PCの背面コネクタに接続しなければならず、非常に煩わしい。   Also, many common home PCs are provided with a connector for connecting a SCSI or other cable on the back of the PC, and the shape of the connector is large, making it difficult to insert and remove. When connecting a mobile or portable device such as a digital camera or a video camera, which is not normally stationary, it must be connected to the rear connector of the PC, which is very troublesome.

また、通常パーソナルコンピュータには多くの周辺機器が接続されており、今後は更に周辺装置の種類も増え、さらにはI/Fの改良などによって、PC周辺装置に限らず多くのデジタル機器間をネットワーク接続した通信が可能になると予想される。こうなると非常に便利になる反面、機器間によってはデータ量の非常に多い通信も頻繁に行われるようになるので、ネットワークを混雑させてしまい、ネットワーク内での他の機器間における通信に影響をもたらすことも考えられる。例えばユーザーが、画像のプリントを続けてまたは迅速に行いたいときなど、PC−プリンタ間のデータ通信が、ユーザーの意識していない機器間同士の通信がネットワーク全体、またはホスト役のPC等に影響を及ぼすことでうまくいかず、画像のプリントが正常に実行されなかったり、遅れたりすることも考えられる。このように、ネットワークの混雑によるPCに対しての負荷や、PCの動作状況によってのデータ通信等の不具合も存在する。   In addition, many peripheral devices are usually connected to personal computers. In the future, the number of types of peripheral devices will increase, and by improving the I / F, many digital devices will not be limited to PC peripheral devices. It is expected that connected communication will be possible. While this is very convenient, depending on the device, communication with a very large amount of data will also occur frequently, which will congest the network and affect the communication between other devices in the network. It can also be brought about. For example, when the user wants to continue or quickly print an image, the data communication between the PC and printer affects the entire network or the host PC, etc. It is also possible that the image printing will not be successful and the image printing will not be performed normally or may be delayed. As described above, there are problems such as a load on the PC due to network congestion and data communication depending on the operation status of the PC.

また、複数機器間をネットワーク接続すると、ある機器間のデータ転送においてそれぞれが用いているデータ圧縮方式の違いから、伸張できない圧縮データを誤って転送してしまったり、または転送先で伸張できるのに非圧縮データで転送してしまったりと、転送動作、効率における不具合も存在する。   In addition, when multiple devices are connected to a network, due to differences in the data compression methods used by each device for data transfer, compressed data that cannot be decompressed may be transferred by mistake or decompressed at the transfer destination. There are also problems with transfer operation and efficiency, such as transfer with uncompressed data.

本発明は上述した従来抱えている問題を解決するためになされたもので、従来からあるデジタルI/Fの問題点を極力解消した、各デジタル機器に統一されて搭載されるような汎用型デジタルI/F(例えばIEEE1394−1995ハイパフォーマンス・シリアルバス)を用いて、PCやプリンタ、その他周辺装置、またデジタルカメラやデジタルVTRの記録再生装置等をネットワーク構成で接続したときの機器間データ通信を実現し、記録再生装置からビデオデータ等のPCへの取り込み、また、映像データをプリンタへ直接転送しプリントする、所謂ダイレクトプリントを実現することを目的とする。   The present invention has been made to solve the above-mentioned conventional problems, and is a general-purpose digital device that can be integrated and installed in each digital device, eliminating the problems of conventional digital I / F as much as possible. Uses I / F (for example, IEEE1394-1995 high performance serial bus) to realize data communication between devices when a PC, printer, other peripheral devices, digital camera, digital VTR recording / playback device, etc. are connected in a network configuration. It is another object of the present invention to realize so-called direct printing in which video data or the like is captured from a recording / reproducing apparatus to a PC and video data is directly transferred to a printer for printing.

より詳しくは、転送先の機器が復号手段を具備しているか、また具備している復号手段の種類や構成等の情報に基づいて、転送するデータとして圧縮されたままの符号化データを送信するか、または、符号化データを復号化した後のデータを送信するか、選択してデータを送信することで、転送先の構成に応じたデータ転送を行なうことを目的とする。   More specifically, based on information such as whether the transfer destination device has decoding means and the type and configuration of the decoding means provided, the encoded data that has been compressed as data to be transferred is transmitted. Alternatively, it is an object to perform data transfer according to the configuration of the transfer destination by transmitting data after decoding the encoded data or by selecting and transmitting the data.

さらに、転送先の機器にデータを復号するためのプログラム情報を転送してやることによって、転送先の機器がデータの復号に適した復号手段を具備していないときでも、転送される符号化データの復号が転送先の機器で可能とすることを目的とする。   Furthermore, by transferring the program information for decoding data to the transfer destination device, even when the transfer destination device does not have a decoding means suitable for decoding the data, the encoded data to be transferred is decoded. Is intended to be possible on the destination device.

上記目的を達成するために本発明は次のような構成からなる。すなわち、所定の方式でデータを符号化する符号化手段と、符号化されたままの状態でデータを送信する第1のモードと、符号化されたデータを復号してから送信する第2のモードとのいずれかによりデータを通信先のノードに送信する送信手段とを備え、前記符号化手段による符号化方式が通信先のノードが備える復号手段に対応する符号化方式である場合には第1のモードで、対応しない場合には第2のモードでデータを送信する。   In order to achieve the above object, the present invention comprises the following arrangement. That is, an encoding means for encoding data by a predetermined method, a first mode for transmitting data in an encoded state, and a second mode for transmitting data after decoding the encoded data And transmitting means for transmitting data to the communication destination node, and the encoding method by the encoding means is a first encoding method corresponding to the decoding means provided in the communication destination node. If this mode is not supported, data is transmitted in the second mode.

また、所定の方式でデータを符号化する符号化手段と、該符号化手段により符号化されたデータを復号する復号手順を含むプログラム情報を送信する送信手段と、前記符号化手段により符号化されたデータを送信する第2の送信手段とを備える。   Further, an encoding unit that encodes data by a predetermined method, a transmission unit that transmits program information including a decoding procedure for decoding data encoded by the encoding unit, and an encoding unit that encodes the data. Second transmission means for transmitting the received data.

また、符号化手段を備えた第1のノードと第2のノードを接続してなるデータ通信システムであって、第2のノードが、第1のノードで符号化されたデータを復号する手段を備えている場合には、第1のノードは前記符号化手段により符号化されたデータを第2のノードに送信し、第2のノードが、第1のノードで符号化されたデータを復号する手段を備えていない場合には、第1のノードは符号化されたデータを復号してそのデータを第2のノードに送信する。   A data communication system comprising a first node and a second node, each having an encoding means, wherein the second node decodes the data encoded by the first node. If so, the first node transmits the data encoded by the encoding means to the second node, and the second node decodes the data encoded by the first node. If no means is provided, the first node decodes the encoded data and transmits the data to the second node.

また、符号化手段と該符号化手段で符号化されたデータを復号するためのプログラム情報を記憶する記憶手段とを備えた第1のノードと、プログラム情報に基づいて符号化データを復号する第2のノードとを接続してなるデータ通信システムであって、第2のノードが、第1のノードで符号化されたデータを復号するプログラム情報を有していない場合には、第1のノードは、前記符号化手段により符号化されたデータとともに前記記憶手段に記憶されたプログラム情報を第2のノードに送信し、第2のノードが、第1のノードで符号化されたデータを復号するためのプログラム情報を有している場合には、第1のノードは前記符号化手段により符号化されたデータを第2のノードに送信する。   A first node comprising an encoding means and a storage means for storing program information for decoding data encoded by the encoding means; and a first node for decoding encoded data based on the program information. In the data communication system formed by connecting two nodes, when the second node does not have program information for decoding data encoded by the first node, the first node Transmits the program information stored in the storage unit together with the data encoded by the encoding unit to the second node, and the second node decodes the data encoded by the first node. The first node transmits the data encoded by the encoding means to the second node.

また、所定の方式で符号化されたデータを送信するデータ通信方法であって、通信先ノードから、該ノードが、前記所定方式で符号化されたデータを復号できるか否かを示す情報を獲得し、復号できる場合には、符号化されたデータをそのまま送信し、復号できない場合には、符号化されたデータを復号してから送信する。   A data communication method for transmitting data encoded by a predetermined method, wherein information indicating whether or not the node can decode the data encoded by the predetermined method is acquired from a communication destination node If the data can be decoded, the encoded data is transmitted as it is. If the data cannot be decoded, the encoded data is transmitted after being decoded.

また、所定の方式で符号化されたデータを送信するデータ通信方法であって、通信先ノードから、該ノードが、前記所定方式で符号化されたデータを復号するためのプログラム情報を有しているか否かを示す情報を獲得し、有している場合には、符号化されたデータをそのまま送信し、有していない場合には、符号化されたデータと、符号化されたデータを復号するためのプログラム情報とを送信する。   Also, a data communication method for transmitting data encoded by a predetermined method, the node having program information for decoding the data encoded by the predetermined method from a communication destination node If there is information that indicates whether it is present or not, the encoded data is transmitted as it is. If not, the encoded data and the encoded data are decoded. To send program information.

また、所定の方式で符号化されたデータを送信するデータ通信プログラムを記憶する記憶媒体であって、前記プログラムは、通信先ノードから、該ノードが、前記所定方式で符号化されたデータを復号できるか否かを示す情報を獲得し、復号できる場合には、符号化されたデータをそのまま送信し、復号できない場合には、符号化されたデータを復号してから送信するコードを含む。   In addition, the storage medium stores a data communication program that transmits data encoded by a predetermined method, and the program decodes data encoded by the predetermined method from a communication destination node. If the information indicating whether or not it can be obtained and can be decoded, the encoded data is transmitted as it is. If the information cannot be decoded, the encoded data is decoded and transmitted.

また、所定の方式で符号化されたデータを送信するデータ通信方法であって、プログラムを記憶する記憶媒体であって、前記プログラムは、通信先ノードから、該ノードが、前記所定方式で符号化されたデータを復号するためのプログラム情報を有しているか否かを示す情報を獲得し、有している場合には、符号化されたデータをそのまま送信し、有していない場合には、符号化されたデータと、符号化されたデータを復号するためのプログラム情報とを送信するコードを含む。   A data communication method for transmitting data encoded by a predetermined method, a storage medium for storing a program, wherein the program is encoded from a communication destination node by the predetermined method. Obtains information indicating whether or not it has program information for decoding the encoded data, and if so, transmits the encoded data as it is, and if not, It includes a code for transmitting the encoded data and program information for decoding the encoded data.

本発明によれば、データ転送を行う場合に、転送先ノードが具備する復号機能に応じて、転送元ノードは符号化データまたは非符号化データを選択して転送するため、ノード間の転送効率が向上する。   According to the present invention, when performing data transfer, the transfer source node selects and transfers encoded data or non-encoded data according to the decoding function of the transfer destination node. Will improve.

また、転送先ノードで、転送元ノードより転送される符号化データを復号できないときは非符号化データを転送することによって転送先ノードの復号機能に関らずデータ転送することができる。   Further, when the transfer destination node cannot decode the encoded data transferred from the transfer source node, the data can be transferred regardless of the decoding function of the transfer destination node by transferring the non-encoded data.

また、転送先ノードに復号するためのプログラム情報を転送することで、転送元ノードの符号化方式が如何なるものであっても、転送先ノードでそれを復号することができる。   Further, by transferring the program information for decoding to the transfer destination node, the transfer destination node can decode it regardless of the encoding method of the transfer source node.

このため、符号化データでデータ転送が行われる機会が増大し、データ転送に要する時間の短縮や、受信したデータの記憶に要する容量の縮減ができる。   For this reason, the chance that data transfer is performed with encoded data increases, and the time required for data transfer can be reduced and the capacity required for storing received data can be reduced.

[第1の実施の形態]
以下、本発明の第1の実施の形態について図面を参照しながら説明する。図1に本発明を実施するときの、ネットワーク構成の一例を示す。ここで、本発明では、各機器間を接続するデジタルI/FをIEEE1394シリアルバスを用いるので、IEEE1394シリアルバスについてあらかじめ説明する。
[First Embodiment]
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows an example of a network configuration when implementing the present invention. Here, in the present invention, since an IEEE1394 serial bus is used for the digital I / F for connecting the devices, the IEEE1394 serial bus will be described in advance.

《IEEE1394の技術の概要》
家庭用デジタルVTRやDVDの登場も伴なって、ビデオデータやオーディオデータなどのリアルタイムでかつ高情報量のデータ転送のサポートが必要になっている。こういったビデオデータやオーディオデータをリアルタイムで転送し、パーソナルコンピュータ(PC)に取り込んだり、またはその他のデジタル機器に転送を行なうには、必要な転送機能を備えた高速データ転送可能なインタフェースが必要になってくるものであり、そういった観点から開発されたインタフェースがIEEE1394−1995(High Performance Serial Bus)(以下1394シリアルバス)である。
<Outline of IEEE 1394 technology>
With the advent of home digital VTRs and DVDs, it is necessary to support real-time and high-information data transfer such as video data and audio data. In order to transfer such video data and audio data in real time and transfer them to a personal computer (PC) or other digital devices, an interface capable of high-speed data transfer with the necessary transfer functions is required. The interface developed from such a viewpoint is IEEE1394-1995 (High Performance Serial Bus) (hereinafter referred to as 1394 serial bus).

図7に 1394シリアルバスを用いて構成されるネットワーク・システムの例を示す。このシステムは機器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は例としてPC、デジタルVTR、DVD、デジタルカメラ、ハードディスク、モニタ等である。各機器間の接続方式は、ディジーチェーン方式とノード分岐方式とを混在可能としたものであり、自由度の高い接続が可能である。   FIG. 7 shows an example of a network system configured using a 1394 serial bus. This system is equipped with devices A, B, C, D, E, F, G, and H. 1394 serial buses between AB, AC, BD, DE, CF, CG, and CH Connected with a twisted pair cable. The devices A to H are, for example, a PC, a digital VTR, a DVD, a digital camera, a hard disk, a monitor, and the like. As the connection method between the devices, the daisy chain method and the node branch method can be mixed, and a connection with a high degree of freedom is possible.

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

また、図7に示したようなシステムにおいて、ネットワークからある機器が削除されたり、または新たに追加されたときなど、自動的にバスリセットを行い、それまでのネットワーク構成をリセットしてから、新たなネットワークの再構築を行なう。この機能によって、その時々のネットワークの構成を常時設定、認識することができる。   In the system as shown in FIG. 7, when a device is deleted from the network or newly added, the bus is automatically reset, and the network configuration up to that point is reset, and then a new A reliable network. This function makes it possible to always set and recognize the network configuration at that time.

またデータ転送速度は、100/200/400Mbpsと備えており、上位の転送速度を持つ機器が下位の転送速度をサポートし、互換をとるようになっている。データ転送モードとしては、コントロール信号などの非同期データ(Asynchronousデータ:以下Asyncデータ)を転送する Asynchronous転送モード、リアルタイムなビデオデータやオーディオデータ等の同期データ(Isochronousデータ:以下Isoデータ)を転送するIsochronous転送モードがある。このAsyncデータとIsoデータは各サイクル(通常1サイクル125μS)の中において、サイクル開始を示すサイクル・スタート・パケット(CSP)の転送に続き、Isoデータの転送を優先しつつサイクル内で混在して転送される。   The data transfer rate is 100/200/400 Mbps, and devices with higher transfer rates support lower transfer rates and are compatible. As data transfer mode, asynchronous data such as control signals (Asynchronous data: hereinafter referred to as Async data) is transferred. There is a transfer mode. This Async data and Iso data are mixed in each cycle (usually 125μS per cycle), following the transfer of the cycle start packet (CSP) indicating the start of the cycle, giving priority to the transfer of Iso data. Transferred.

次に、図8に1394シリアルバスの構成要素を示す。1394シリアルバスは全体としてレイヤ(階層)構造で構成されている。図8に示したように、最もハード的なのが1394シリアルバスのケーブルであり、そのケーブルのコネクタが接続されるコネクタポートがあり、その上にハードウェアとしてフィジカル・レイヤとリンク・レイヤがある。   Next, FIG. 8 shows components of the 1394 serial bus. The 1394 serial bus has a layer structure as a whole. As shown in FIG. 8, the most hardware is a 1394 serial bus cable, which has a connector port to which the connector of the cable is connected, and there are a physical layer and a link layer as hardware.

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

ファームウェア部のトランザクション・レイヤは、転送(トランザクション)すべきデータの管理を行ない、ReadやWriteといった命令を出す。シリアルバスマネージメントは、接続されている各機器の接続状況やIDの管理を行ない、ネットワークの構成を管理する部分である。   The transaction layer of the firmware unit manages data to be transferred (transaction) and issues instructions such as Read and Write. The serial bus management is a part that manages the connection status and ID of each connected device and manages the network configuration.

このハードウェアとファームウェアまでが実質上の1394シリアルバスの構成である。またソフトウェア部のアプリケーション・レイヤは使うソフトによって異なり、インタフェース上にどのようにデータをのせるか規定する部分であり、AVプロトコルなどのプロトコルによって規定されている。以上が1394シリアルバスの構成である。   The hardware and firmware are the actual 1394 serial bus configuration. The application layer of the software part differs depending on the software used, and is a part that defines how data is put on the interface, and is defined by a protocol such as the AV protocol. The above is the configuration of the 1394 serial bus.

次に、図9に1394シリアルバスにおけるアドレス空間の図を示す。1394シリアルバスに接続された各機器(ノード)には必ず各ノード固有の、64ビットアドレスを持たせておく。そしてこのアドレスをROMに格納しておくことで、自分や相手のノードアドレスを常時認識でき、相手を指定した通信も行なえる。   Next, FIG. 9 shows a diagram of the address space in the 1394 serial bus. 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 itself and the other party, and to perform communication specifying the other party.

1394シリアルバスのアドレッシングは、IEEE1212規格に準じた方式であり、アドレス設定は、最初の10bitがバスの番号の指定用に、次の6bitがノードID番号の指定用に使われる。残りの48bitが機器に与えられたアドレス幅になり、それぞれ固有のアドレス空間として使用できる。最後の28bitは固有データの領域として、各機器の識別や使用条件の指定の情報などを格納する。以上が1394シリアルバスの技術の概要である。次に、1394シリアルバスの特徴といえる技術の部分を、より詳細に説明する。   The addressing of the 1394 serial bus is based on the IEEE1212 standard, and the address setting uses the first 10 bits for specifying the bus number and the next 6 bits for specifying the node ID number. The remaining 48 bits are the address width given to the device, and each can be used as a unique address space. The last 28 bits are used as a unique data area for storing information such as identification of each device and specification of use conditions. The above is an overview of the 1394 serial bus technology. Next, a technical part that can be said to be a feature of the 1394 serial bus will be described in more detail.

《1394シリアルバスの電気的仕様》
図10に1394シリアルバス・ケーブルの断面図を示す。1394シリアルバスでは接続ケーブル内に、2組のツイストペア信号線の他に、電源ラインを設けている。これによって、電源を持たない機器や、故障により電圧低下した機器等にも電力の供給が可能になっている。電源線内を流れる電源の電圧は8〜40V、電流は最大電流DC1.5Aと規定されている。
<< Electrical Specifications of 1394 Serial Bus >>
FIG. 10 shows a cross-sectional view of a 1394 serial bus cable. In the 1394 serial bus, a power supply line is provided in the connection cable in addition to the two pairs of twisted pair signal lines. As a result, it is possible to supply power to devices that do not have a power supply or devices whose voltage has dropped due to a failure. The voltage of the power supply flowing in the power supply line is specified as 8 to 40V, and the current is specified as the maximum current DC1.5A.

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

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

このDS−Link符号化方式を用いるメリットとして、他のシリアルデータ転送方式に比べて転送効率が高いこと、PLL回路が不要となるのでコントローラ LSIの回路規模を小さくできること、更には、転送すべきデータが無いときにアイドル状態であることを示す情報を送る必要が無いので、各機器のトランシーバ回路をスリープ状態にすることができることによって、消費電力の低減が図れる、などが挙げられる。   Advantages of using this DS-Link encoding method are that transfer efficiency is higher than other serial data transfer methods, the PLL circuit is unnecessary, the circuit scale of the controller LSI can be reduced, and the data to be transferred Since there is no need to send information indicating that the device is in an idle state when there is no power, the transceiver circuit of each device can be put into a sleep state, thereby reducing power consumption.

《バスリセットのシーケンス》
1394シリアルバスでは、接続されている各機器(ノード)にはノードIDが与えられ、ネットワーク構成として認識されている。このネットワーク構成に変化があったとき、例えばノードの挿抜や電源のON/OFFなどによるノード数の増減などによって変化が生じて、新たなネットワーク構成を認識する必要があるとき、変化を検知した各ノードはバス上にバスリセット信号を送信して、新たなネットワーク構成を認識するモードに入る。このときの変化の検知方法は、1394ポート基盤上でのバイアス電圧の変化を検知することによって行われる。
<Bus reset sequence>
In the 1394 serial bus, each connected device (node) is given a node ID and recognized as a network configuration. When there is a change in this network configuration, for example, when there is a change due to increase / decrease in the number of nodes due to node insertion / removal, power ON / OFF, etc., it is necessary to recognize a new network configuration. The node enters a mode to recognize a new network configuration by sending a bus reset signal on the bus. The change detection method at this time is performed by detecting a change in the bias voltage on the 1394 port board.

あるノードからバスリセット信号が伝達されて、各ノードのフィジカルレイヤはこのバスリセット信号を受けると同時にリンクレイヤにバスリセットの発生を伝達し、かつ他のノードにバスリセット信号を伝達する。最終的にすべてのノードがバスリセット信号を検知した後、バスリセットが起動となる。バスリセットは、先に述べたようなケーブル抜挿や、ネットワーク異常等によるハード検出による起動と、プロトコルからのホスト制御などによってフィジカルレイヤに直接命令を出すことによっても起動する。また、バスリセットが起動するとデータ転送は一時中断され、この間のデータ転送は待たされ、終了後、新しいネットワーク構成のもとで再開される。以上がバスリセットのシーケンスである。   When a bus reset signal is transmitted from a certain node, the physical layer of each node receives the bus reset signal, and simultaneously transmits the generation of the bus reset to the link layer and transmits the bus reset signal to the other nodes. After all nodes have finally detected the bus reset signal, the bus reset is activated. The bus reset is also activated by issuing a command directly to the physical layer by means of hardware detection due to cable insertion / removal or network abnormality as described above, and host control from the protocol. Further, when the bus reset is activated, the data transfer is temporarily interrupted, and the data transfer during this time is awaited and resumed under a new network configuration after the end. The above is the bus reset sequence.

《ノードID決定のシーケンス》
バスリセットの後、各ノードは新しいネットワーク構成を構築するために、各ノードにIDを与える動作に入る。このときの、バスリセットからノードID決定までの一般的なシーケンスを図19、20、21のフローチャートを用いて説明する。図19のフローチャートは、バスリセットの発生からノードIDが決定し、データ転送が行えるようになるまでの、一連のバスの作業を示してある。
《Node ID determination sequence》
After the bus reset, each node enters an operation of giving an ID to each node in order to construct a new network configuration. A general sequence from bus reset to node ID determination at this time will be described with reference to the flowcharts of FIGS. The flowchart of FIG. 19 shows a series of bus operations from when a bus reset occurs until a node ID is determined and data transfer can be performed.

まず、ステップ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 the power ON / OFF of the node, the process proceeds to step S102.

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

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

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

以上が、図19のフローチャートの説明であるが、図19のフローチャートのバスリセットからルート決定までの部分と、ルート決定後からID設定終了までの手順をより詳しくフローチャート図に表したものをそれぞれ、図20、図21に示す。   The above is the description of the flowchart of FIG. 19, but the part from the bus reset to the route determination of the flowchart of FIG. 19 and the procedure from the route determination to the end of ID setting in more detail in the flowchart diagram, 20 and 21.

まず、図20のフローチャートの説明を行う。ステップS201としてバスリセットが発生すると、ネットワーク構成は一旦リセットされる。なお、ステップS201としてバスリセットが発生するのを常に監視している。次に、ステップS202として、リセットされたネットワークの接続状況を再認識する作業の第一歩として、各機器にリーフ(ノード)であることを示すフラグを立てておく。さらに、ステップS203として各機器が自分の持つポートがいくつ他ノードと接続されているのかを調べる。ステップS204 のポート数の結果に応じて、これから親子関係の宣言を始めていくために、未定義(親子関係が決定されてない)ポートの数を調べる。バスリセットの直後はポート数=未定義ポート数であるが、親子関係が決定されていくにしたがって、ステップS204で検知する未定義ポートの数は変化していくものである。   First, the flowchart of FIG. 20 will be described. When a bus reset occurs as step S201, the network configuration is once reset. In step S201, the occurrence of a bus reset is constantly monitored. Next, in step S202, as a first step of re-recognizing the connection status of the reset network, a flag indicating that each device is a leaf (node) is set. In step S203, the number of ports that each device has is connected to other nodes. In accordance with the result of the number of ports in step S204, in order to start the declaration of the parent-child relationship, the number of undefined ports (parent-child relationship is not determined) is checked. Immediately after the bus reset, the number of ports = the number of undefined ports, but as the parent-child relationship is determined, the number of undefined ports detected in step S204 changes.

まず、バスリセットの直後、はじめに親子関係の宣言を行えるのはリーフに限られている。リーフであるというのはステップS203のポート数の確認で知ることができる。リーフは、ステップS205として、自分に接続されているノードに対して、「自分は子、相手は親」と宣言し動作を終了する。   First, immediately after a bus reset, only a 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 “it is a child and the other party is a parent” to the node connected to itself, and ends the operation.

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

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

最終的に、いずれか1つのブランチ、又は例外的にリーフ(子宣言を行えるのにすばやく動作しなかった為)がステップS204の未定義ポート数の結果としてゼロになったら、これにてネットワーク全体の親子関係の宣言が終了したものであり、未定義ポート数がゼロ(すべて親のポートとして決定)になった唯一のノードはステップS208としてルートのフラグが立てられ、ステップS209としてルートとしての認識がなされる。   Eventually, if any one branch or exceptionally leaf (because it was able to declare a child but didn't work quickly) became zero as a result of the number of undefined ports in step S204, this is the whole network The only node for which the number of undefined ports has become zero (all determined as parent ports) is flagged as a route in step S208, and recognized as a route in step S209. Is made.

このようにして、図20に示したバスリセットから、ネットワーク内すべてのノード間における親子関係の宣言までが終了する。
つぎに、図21のフローチャートについて説明する。まず、図20までのシーケンスでリーフ、ブランチ、ルートという各ノードのフラグの情報が設定されているので、これを元にして、ステップS301でそれぞれ分類する。
In this way, the process from the bus reset shown in FIG. 20 to the declaration of the parent-child relationship between all the nodes in the network is completed.
Next, the flowchart of FIG. 21 will be described. First, the flag information of each node such as leaf, branch, and root is set in the sequence up to FIG. 20, and based on this, classification is performed in step S301.

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

ステップS302としてネットワーク内に存在するリーフの数N(Nは自然数)を設定する。この後、ステップS303として各自リーフがルートに対して、IDを与えるように要求する。この要求が複数ある場合には、ルートはステップS304としてアービトレーション(1つに調停する作業)を行い、ステップS305として勝ったノード1つにID番号を与え、負けたノードには失敗の結果通知を行う。ステップS306としてID取得が失敗に終わったリーフは、再度ID要求を出し、同様の作業を繰り返す。IDを取得できたリーフからステップS307として、そのノードのID情報をブロードキャストで全ノードに転送する。1ノードID情報のブロードキャストが終わると、ステップS308として残りのリーフの数が1つ減らされる。ここで、ステップS309として、この残りのリーフの数が1以上ある時はステップS303のID要求の作業からを繰り返し行い、最終的にすべてのリーフがID情報をブロードキャストすると、ステップS309がN=0となり、次はブランチのID設定に移る。   In step S302, the number N (N is a natural number) of leaves existing in the network is set. Thereafter, in step S303, each leaf requests the root to give an ID. In the case where there are a plurality of requests, the route performs arbitration (operation to adjust to one) in step S304, gives the ID number to one winning node in step S305, and notifies the losing node of the result of the failure. Do. The leaf whose ID acquisition has failed in step S306 issues an ID request again and repeats the same operation. In step S307, the ID information of the node is broadcast to all nodes from the leaf that has acquired the ID. When the one-node ID information is broadcast, the number of remaining leaves is reduced by one in step S308. Here, as step S309, when the number of remaining leaves is 1 or more, the process of the ID request in step S303 is repeated, and when all the leaves finally broadcast ID information, step S309 is N = 0. Then, the process proceeds to branch ID setting.

ブランチのID設定もリーフの時と同様に行われる。まず、ステップS310としてネットワーク内に存在するブランチの数M(Mは自然数)を設定する。この後、ステップS311として各自ブランチがルートに対して、IDを与えるように要求する。これに対してルートは、ステップS312としてアービトレーションを行い、勝ったブランチから順にリーフに与え終った次の若い番号から与えていく。ステップS313として、ルートは要求を出したブランチにID情報又は失敗結果を通知し、ステップS314としてID取得が失敗に終わったブランチは、再度ID要求を出し、同様の作業を繰り返す。IDを取得できたブランチからステップS315として、そのノードのID情報をブロードキャストで全ノードに転送する。1ノードID情報のブロードキャストが終わると、ステップS316として残りのブランチの数が1つ減らされる。ここで、ステップS317として、この残りのブランチの数が1以上ある時はステップS311のID要求の作業からを繰り返し、最終的にすべてのブランチがID情報をブロードキャストするまで行われる。すべてのブランチがノードIDを取得すると、ステップS317はM=0となり、ブランチのID取得モードも終了する。   The branch ID setting is performed in the same manner as the leaf. First, in step S310, the number M (M is a natural number) of branches existing in the network is set. Thereafter, in step S311, each branch requests the root to give an ID. On the other hand, arbitration is performed in step S312, and the route is given from the next young number that has been given to the leaf in order from the winning branch. In step S313, the route notifies the ID information or the failure result to the branch that issued the request. In step S314, the branch that has failed in ID acquisition issues an ID request again and repeats the same operation. In step S315, the ID information of the node is broadcast to all the nodes from the branch that has acquired the ID. When the one-node ID information is broadcast, the number of remaining branches is reduced by one in step S316. Here, as step S317, when the number of remaining branches is 1 or more, the operation from the ID request in step S311 is repeated until all branches finally broadcast the ID information. When all branches acquire node IDs, M = 0 in step S317, and the branch ID acquisition mode ends.

ここまで終了すると、最終的にID情報を取得していないノードはルートのみなので、ステップS318として与えていない番号で最も若い番号を自分のID番号と設定し、ステップS319としてルートのID情報をブロードキャストする。   At this point, the only node that has not obtained ID information is the root, so the lowest number not given in step S318 is set as its own ID number, and the route ID information is broadcast in step S319. To do.

以上で、図21に示したように、親子関係が決定した後から、すべてのノードのIDが設定されるまでの手順が終了する。   Thus, as shown in FIG. 21, after the parent-child relationship is determined, the procedure until the IDs of all the nodes are set is completed.

次に、一例として図12に示した実際のネットワークにおける動作を図12を参照しながら説明する。図12の説明として、(ルート)ノードBの下位にはノードAとノードCが直接接続されており、更にノードCの下位にはノードDが直接接続されており、更にノードDの下位にはノードEとノードFが直接接続された階層構造になっている。この、階層構造やルートノード、ノードIDを決定する手順を以下で説明する。   Next, as an example, operations in the actual network shown in FIG. 12 will be described with reference to FIG. In the explanation of FIG. 12, the nodes A and C are directly connected to the lower level of the (root) node B, the node D is directly connected to the lower level of the node C, and further to the lower level of the node D. A hierarchical structure in which node E and node F are directly connected. The procedure for determining the hierarchical structure, root node, and node ID will be described below.

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

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

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

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

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

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

ルートノードが決定すると、次は各ノードIDを決定するモードに入る。ここではすべてのノードが、決定した自分のノードIDを他のすべてのノードに通知する(ブロードキャスト機能)。自己ID情報は、自分のノード番号、接続されている位置の情報、持っているポートの数、接続のあるポートの数、各ポートの親子関係の情報等を含んでいる。ノードID番号の割り振りの手順としては、まず1つのポートにのみ接続があるノード(リーフ)から起動することができ、この中から順にノード番号=0、1、2…と割り当てられる。   Once the root node is determined, the next mode is to determine each node ID. Here, all the nodes notify all other nodes of their determined node IDs (broadcast function). The self ID information includes its own node number, connected position information, the number of ports it has, the number of connected ports, the parent-child relationship information of each port, and the like. As a procedure for assigning node ID numbers, first, a node (leaf) connected to only one port can be started, and node numbers = 0, 1, 2,.

ノードIDを手にしたノードは、ノード番号を含む情報をブロードキャストで各ノードに送信する。これによって、そのID番号は『割り当て済み』であることが認識される。すべてのリーフが自己ノードIDを取得し終ると、次はブランチへ移りリーフに引き続いたノードID番号が各ノードに割り当てられる。リーフと同様に、ノードID番号が割り当てられたブランチから順次ノードID情報をブロードキャストし、最後にルートノードが自己ID情報をブロードキャストする。すなわち、常にルートは最大のノードID番号を所有するものである。   The node having the node ID transmits information including the node number to each node by broadcasting. As a result, it is recognized that the ID number is “assigned”. When all the leaves have obtained their own node IDs, the next step is to branch and the node ID numbers that follow the leaves are assigned to each node. Similar to the leaf, node ID information is broadcast sequentially from the branch to which the node ID number is assigned, and finally the root node broadcasts self ID information. That is, the route always has the highest node ID number.

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

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

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

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

バス使用要求を受けたルートノードは、どのノードにバスを使用させるかを決める。この調停作業はルートノードのみが行なえるものであり、調停によって勝ったノードにはバスの使用許可を与える。図13(b)ではノードCに使用許可が与えられ、ノードFの使用は拒否された図である。アービトレーションに負けたノードに対してはDP(data prefix)パケットを送り、拒否されたことを知らせる。拒否されたノードのバス使用要求は次回のアービトレーションまで待たされる。   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 won the arbitration is given permission to use the bus. FIG. 13B is a diagram in which the use permission is given to the node C and the use of the node F is denied. A DP (data prefix) packet is sent to the node that lost the arbitration to notify that it was rejected. The rejected node bus use request is waited until the next arbitration.

以上のようにして、アービトレーションに勝ってバスの使用許可を得たノードは、以降データの転送を開始できる。ここで、アービトレーションの一連の流れをフローチャート図22に示して、説明する。   As described above, the node that has won the arbitration and obtained the bus use permission can subsequently start data transfer. Here, a series of arbitration flows will be described with reference to the flowchart of FIG.

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

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

ステップS401 で所定のギャップ長が得られたら、ステップS402として転送すべきデータがあるか判断し、ある場合はステップS403として転送するためにバスを確保するよう、バス使用権の要求をルートに対して発する。このときの、バス使用権の要求を表す信号の伝達は、図13に示したように、ネットワーク内各機器を中継しながら、最終的にルートに届けられる。ステップS402で転送するデータがない場合は、そのまま待機する。   When a predetermined gap length is obtained in step S401, it is determined whether there is data to be transferred in step S402. If there is, a request for bus use right is issued to the route so as to secure a bus for transfer in step S403. Depart. 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, the process waits as it is.

次に、ステップS404 として、ステップS403のバス使用要求を1つ以上ルートが受信したら、ルートはステップS405として使用要求を出したノードの数を調べる。ステップS405での選択値がノード数=1(使用権要求を出したノードは1つ)だったら、そのノードに直後のバス使用許可が与えられることとなる。ステップS405での選択値がノード数>1(使用要求を出したノードは複数)だったら、ルートはステップS406として使用許可を与えるノードを1つに決定する調停作業を行う。この調停作業は公平なものであり、毎回同じノードばかりが許可を得る様なことはなく、平等に権利を与えていくような構成となっている。   Next, in step S404, if one or more bus use requests in step S403 are received by the route, the route checks the number of nodes that have made use requests in step S405. If the selected value in step S405 is the number of nodes = 1 (one node that has issued a usage right request), the bus use permission immediately after that is given to that node. If the selection value in step S405 is the number of nodes> 1 (a plurality of nodes that have made use requests), the route performs an arbitration operation in step S406 to determine one node to be permitted to use. This arbitration work is fair and is configured such that only the same node does not get permission every time, and rights are given equally.

ステップS407として、ステップS406で使用要求を出した複数ノードの中からルートが調停して使用許可を得た1つのノードと、敗れたその他のノードに分ける選択を行う。ここで、調停されて使用許可を得た1つのノード、またはステップS405の選択値から使用要求ノード数=1で調停無しに使用許可を得たノードには、ステップS408として、ルートはそのノードに対して許可信号を送る。許可信号を得たノードは、受け取った直後に転送すべきデータ(パケット)を転送開始する。また、ステップS406の調停で敗れて、バス使用が許可されなかったノードにはステップS409としてルートから、アービトレーション失敗を示すDP(data prefix)パケットを送られ、これを受け取ったノードは再度転送を行うためのバス使用要求を出すため、ステップS401まで戻り、所定ギャップ長が得られるまで待機する以上がアービトレーションの流れを説明した、フローチャート図22の説明である。   In step S407, a selection is made to divide one node that has obtained use permission by arbitrating the route from the plurality of nodes that issued the use request in step S406 and another node that has lost. Here, for a single node that has been arbitrated and obtained use permission, or a node that has obtained use permission without arbitration from the selection value in step S405 without using the number of requested nodes = 1, the route goes to that node as step S408. In response, a permission signal is sent. The node having obtained the permission signal starts to transfer data (packet) to be transferred immediately after receiving the permission signal. In addition, a DP (data prefix) packet indicating an arbitration failure is sent from the route to the node that has lost the arbitration in step S406 and the bus use is not permitted, and the node that has received the packet performs forwarding again in step S409. In order to issue a bus use request, the process returns to step S401 and waits until a predetermined gap length is obtained.

《Asynchronous(非同期)転送》
アシンクロナス転送は、非同期転送である。図14にアシンクロナス転送における時間的な遷移状態を示す。図14の最初のサブアクション・ギャップは、バスのアイドル状態を示すものである。このアイドル時間が一定値になった時点で,転送を希望するノードはバスが使用できると判断して、バス獲得のためのアービトレーションを実行する。
Asynchronous transfer
Asynchronous transfer is asynchronous transfer. FIG. 14 shows a temporal transition state in asynchronous transfer. The first subaction gap in FIG. 14 indicates the idle state of the bus. When the idle time reaches a certain value, the node that desires to transfer determines that the bus can be used, and executes arbitration for acquiring the bus.

アービトレーションでバスの使用許可を得ると、次にデータの転送がパケット形式で実行される。データ転送後、受信したノードは転送されたデータに対しての受信結果のack(受信確認用返送コード)をack gapという短いギャップの後、返送して応答するか、応答パケットを送ることによって転送が完了する。ackは4ビットの情報と4ビットのチェックサムからなり、成功か、ビジー状態か、ペンディング状態であるかといった情報を含み、すぐに送信元ノードに返送される。   When the bus use permission is obtained by arbitration, data transfer is executed in the packet format. After the data transfer, the receiving node sends back a response result ack (return code for acknowledgment) to the transferred data after a short gap called ack gap and transfers it by sending a response or sending a response packet. Is completed. The ack consists 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.

次に、図15にアシンクロナス転送のパケットフォーマットの例を示す。パケットには、データ部及び誤り訂正用のデータCRCの他にはヘッダ部があり、そのヘッダ部には図15に示したような、目的ノードID、ソースノードID、転送データ長さや各種コードなどが書き込まれ、転送が行なわれる。また、アシンクロナス転送は自己ノードから相手ノードへの1対1の通信である。転送元ノードから転送されたパケットは、ネットワーク中の各ノードに行き渡るが、自分宛てのアドレス以外のものは無視されるので、宛先の1つのノードのみが読込むことになる。以上がアシンクロナス転送の説明である。   Next, FIG. 15 shows an example of a packet format for asynchronous transfer. The packet has a header part in addition to the data part and error correction data CRC, and the header part has a target node ID, source node ID, transfer data length, various codes, etc. as shown in FIG. Is written and transferred. Asynchronous transfer is one-to-one communication from the self node to the partner node. The packet transferred from the transfer source node is distributed to each node in the network. However, since the address other than the address addressed to itself is ignored, only one destination node reads. The above is the description of asynchronous transfer.

《Isochronous (同期)転送》
アイソクロナス転送は同期転送である。1394シリアルバスの最大の特徴であるともいえるこのアイソクロナス転送は、特にVIDEO映像データや音声データといったマルチメディアデータなど、リアルタイムな転送を必要とするデータの転送に適した転送モードである。また、アシンクロナス転送(非同期)が1対1の転送であったのに対し、このアイソクロナス転送はブロードキャスト機能によって、転送元の1つのノードから他のすべてのノードへ一様に転送される。
<< Isochronous transfer >>
Isochronous transfer is synchronous transfer. This isochronous transfer, which can be said to be the greatest feature of the 1394 serial bus, is a transfer mode suitable for transferring data that requires real-time transfer, such as multimedia data such as VIDEO video data and audio data. Asynchronous transfer (asynchronous) is a one-to-one transfer, but this isochronous transfer is uniformly transferred from one node of the transfer source to all other nodes by the broadcast function.

図16はアイソクロナス転送における、時間的な遷移状態を示す図である。アイソクロナス転送は、バス上一定時間毎に実行される。この時間間隔をアイソクロナスサイクルと呼ぶ。アイソクロナスサイクル時間は、125μSである。この各サイクルの開始時間を示し、各ノードの時間調整を行なう役割を担っているのがサイクル・スタート・パケットである。サイクル・スタート・パケットを送信するのは、サイクル・マスタと呼ばれるノードであり、1つ前のサイクル内の転送終了後、所定のアイドル期間(サブアクションギャップ)を経た後、本サイクルの開始を告げるサイクル・スタート・パケットを送信する。このサイクル・スタート・パケットの送信される時間間隔が125μSとなる。   FIG. 16 is a diagram showing a temporal transition state in isochronous transfer. Isochronous transfer is executed at regular intervals on the bus. This time interval is called an isochronous cycle. The isochronous cycle time is 125 μS. The cycle start packet has a role of indicating the start time of each cycle and adjusting the time of each node. The node that sends the cycle start packet is a node called the cycle master, and after the end of the transfer in the previous cycle, it passes the predetermined idle period (subaction gap), and then announces the start of this cycle. Send cycle start packet. The time interval at which this cycle start packet is transmitted is 125 μS.

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

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

また、図16に示したiso gap(アイソクロナスギャップ)とは、アイソクロナス転送を行なう前にバスが空き状態であると認識するために必要なアイドル期間を表している。この所定のアイドル期間を経過すると、アイソクロナス転送を行ないたいノードはバスが空いていると判断し、転送前のアービトレーションを行なうことができる。つぎに、図17にアイソクロナス転送のパケットフォーマットの例を示し、説明する。   Further, the iso gap (isochronous gap) shown in FIG. 16 represents an idle period necessary for recognizing that the bus is in an empty state before performing isochronous transfer. When this predetermined idle period elapses, a node that wishes to perform isochronous transfer determines that the bus is free and can perform arbitration before transfer. Next, FIG. 17 shows an example of a packet format for isochronous transfer and will be described.

各チャネルに分かれた、各種のパケットにはそれぞれデータ部及び誤り訂正用のデータCRCの他にヘッダ部があり、そのヘッダ部には図17に示したような、転送データ長やチャネルNO、その他各種コード及び誤り訂正用のヘッダCRCなどが書き込まれ、転送が行なわれる。以上がアイソクロナス転送の説明である。   Each packet, which is divided into each channel, has a header part in addition to the data part and error correction data CRC. The header part has a transfer data length, channel NO, etc. as shown in FIG. Various codes, error correction header CRC, and the like are written and transferred. The above is the description of isochronous transfer.

《バス・サイクル》
実際の1394シリアルバス上の転送では、アイソクロナス転送と、アシンクロナス転送は混在できる。その時の、アイソクロナス転送とアシンクロナス転送が混在した、バス上の転送状態の時間的な遷移の様子を表した図を図18に示す。アイソクロナス転送はアシンクロナス転送より優先して実行される。その理由は、サイクル・スタート・パケットの後、アシンクロナス転送を起動するために必要なアイドル期間のギャップ長(サブアクションギャップ)よりも短いギャップ長(アイソクロナスギャップ)で、アイソクロナス転送を起動できるからである。したがって、アシンクロナス転送より、アイソクロナス転送は優先して実行されることとなる。
《Bus cycle》
In the actual transfer on the 1394 serial bus, isochronous transfer and asynchronous transfer can be mixed. FIG. 18 shows a time transition state of the transfer state on the bus in which isochronous transfer and asynchronous transfer are mixed. Isochronous transfer is executed with priority over asynchronous transfer. The reason is that after a cycle start packet, isochronous transfer can be started with a gap length (isochronous gap) shorter than the gap length (subaction gap) of the idle period necessary for starting asynchronous transfer. . Therefore, isochronous transfer is executed with priority over asynchronous transfer.

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

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

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

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

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

ただし、非同期または同期転送動作中に次のサイクル・スタート・パケットを送信すべき時間(cycle synch)に至ったとしたら、無理に中断せず、その転送が終了した後のアイドル期間を待ってから次サイクルのサイクル・スタート・パケットを送信する。すなわち、1つのサイクルが125μS以上続いたときは、その分次サイクルは基準の125μSより短縮されたとする。このようにアイソクロナス・サイクルは125μSを基準に超過、短縮し得るものである。しかし、アイソクロナス転送はリアルタイム転送を維持するために毎サイクル必要であれば必ず実行され、アシンクロナス転送はサイクル時間が短縮されたことによって次以降のサイクルにまわされることもある。こういった遅延情報も含めて、サイクル・マスタによって管理される。以上が、IEEE1394シリアルバスの説明である。   However, if it is time to send the next cycle start packet during an asynchronous or synchronous transfer operation (cycle synch), do not forcibly suspend and wait for the idle period after the transfer is completed. Send cycle start packet for cycle. That is, when one cycle continues for 125 μS or more, it is assumed that the fractional cycle is shortened from the reference 125 μS. In this way, the isochronous cycle can be exceeded or shortened on the basis of 125 μS. However, isochronous transfer is always executed if necessary for every cycle in order to maintain real-time transfer, and asynchronous transfer may be passed to the next and subsequent cycles because the cycle time is shortened. This delay information is managed by the cycle master. The above is the description of the IEEE1394 serial bus.

<IEEE1394シリアルバスを用いたダイレクトプリントシステム>
ここから、図1のように1394シリアルバスケーブルで各機器が接続されたシステムの説明を行なう。図1でのバス構成は、実線で描いた1394シリアルバスで接続された、記録再生装置101、プリンタ装置102、パーソナルコンピュータ(PC)103をノードとして構成されており、各機器がそれぞれ1394シリアルバスの仕様に基づいたデータ転送が行なえる。ここで、記録再生装置101とは、動画又は静止画を記録再生する、デジタルカメラやカメラ一体型デジタルVTR等である。また、記録再生装置101で出力する映像データを、プリンタ102に直接転送すればダイレクトプリントが可能である。また、1394シリアルバスの接続方法は、図1のような接続に限ったものではなく、任意の機器間での接続でバスを構成しても可能であり、また図1に示した機器のほかにもデータ通信機器が接続された構成であってもよい。なお、この図1のネットワークは一例とした機器群であって、接続されている機器は、ハードディスクなどの外部記憶装置や、CDR、DVD等の1394シリアルバスでネットワークが構成できる機器なら何であってもよい。
<Direct print system using IEEE1394 serial bus>
From here, a system in which each device is connected with a 1394 serial bus cable as shown in FIG. 1 will be described. The bus configuration in FIG. 1 includes a recording / reproducing device 101, a printer device 102, and a personal computer (PC) 103 connected by a 1394 serial bus drawn by a solid line as nodes, and each device is a 1394 serial bus. Data transfer based on the specifications can be performed. Here, the recording / reproducing apparatus 101 is a digital camera, a camera-integrated digital VTR, or the like that records and reproduces moving images or still images. Direct video printing is possible by transferring the video data output from the recording / reproducing apparatus 101 directly to the printer 102. Further, the connection method of the 1394 serial bus is not limited to the connection as shown in FIG. 1, and it is possible to configure the bus by connecting between arbitrary devices. In addition to the devices shown in FIG. Alternatively, the data communication device may be connected. The network in FIG. 1 is an example of a group of devices, and the connected devices are any devices that can be configured with an external storage device such as a hard disk or a 1394 serial bus such as a CDR or DVD. Also good.

図1のようなバス構成を背景として、本実施の形態の動作に関する説明を、図2を用いて行なう。記録再生装置101において、4は撮像系、5はA/Dコンバータ、6は映像信号処理回路、7は所定のアルゴリズムで記録時に圧縮、再生時に伸張を行なう圧縮/伸張回路、8は磁気テープや固体メモリ等とその記録再生ヘッド等も含めた記録再生系、9はシステムコントローラ、10は指示入力を行なう操作部、11 はD/Aコンバータ、12は表示部であるEVF、13は非圧縮で転送する映像データを記憶するフレームメモリ、14はメモリ13の読み出し等を制御するメモリ制御部、15は圧縮されて転送する映像データを記憶するためのフレームメモリ、16はメモリ15の読み出し等を制御するメモリ制御部、17はデータセレクタ、18は1394シリアルバスのI/F部である。   With reference to the bus configuration as shown in FIG. 1, the operation of the present embodiment will be described with reference to FIG. In the recording / reproducing apparatus 101, 4 is an image pickup system, 5 is an A / D converter, 6 is a video signal processing circuit, 7 is a compression / expansion circuit that compresses and expands during recording by a predetermined algorithm, and 8 is a magnetic tape or the like. Recording / reproducing system including a solid-state memory and its recording / reproducing head, 9 is a system controller, 10 is an operation unit for inputting instructions, 11 is a D / A converter, 12 is an EVF as a display unit, and 13 is uncompressed Frame memory for storing video data to be transferred, 14 is a memory control unit for controlling reading of the memory 13, etc., 15 is a frame memory for storing compressed video data to be transferred, 16 is for controlling reading of the memory 15, etc. A memory control unit 17, a data selector 17, and an I / F unit 1394 serial bus.

また、プリンタ102においては、19はプリンタにおける1394I/F部、 20はデータセレクタ、21は所定のアルゴリズムで圧縮された映像データを復号化するための復号化回路、22はプリント画像の画像処理回路、23はプリント画像を形成する為のメモリ、24はプリンタヘッド、25はプリンタヘッドや紙送り等を行なうドライバ、26はプリンタの制御部であるプリンタコントローラ、27はプリンタ操作部である。   In the printer 102, 19 is a 1394 I / F unit in the printer, 20 is a data selector, 21 is a decoding circuit for decoding video data compressed by a predetermined algorithm, and 22 is an image processing circuit for a print image. , 23 is a memory for forming a print image, 24 is a printer head, 25 is a printer head and a driver for paper feeding, 26 is a printer controller which is a printer control unit, and 27 is a printer operation unit.

また、PC103においては、61はPCに搭載された1394I/F部、62はPCIバス、63はMPU、64は所定のアルゴリズムで圧縮された映像データを復号化するための復号化回路、65はD/Aコンバータも内蔵しているディスプレイ、66はHDD、67はメモリ、68はキーボードやマウスといった操作部である。次に、このブロック図2の動作を順を追って説明する。   In the PC 103, 61 is a 1394 I / F unit mounted on the PC, 62 is a PCI bus, 63 is an MPU, 64 is a decoding circuit for decoding video data compressed by a predetermined algorithm, 65 is A display incorporating a D / A converter, 66 is an HDD, 67 is a memory, and 68 is an operation unit such as a keyboard and a mouse. Next, the operation of the block diagram 2 will be described in order.

<記録再生装置の動作>
まず、記録再生装置101の記録時、撮像系4で撮影されたアナログ映像信号は、A/Dコンバータ5でデジタル化された後、映像信号処理回路6で映像処理がなされる。映像信号処理回路6の出力の一方は撮影中の映像としてD/Aコンバータ11でアナログ信号に戻され、EVF12で表示される。その他の出力は、圧縮回路7で所定のアルゴリズムで圧縮(符号化)処理され、記録再生系8で記録媒体に記録される。ここで、所定の圧縮処理とは、デジタルカメラでは代表的なものとしてJPEG方式、家庭用デジタルVTRでは帯域圧縮方法としてのDCT(離散コサイン変換)及びVLC(可変長符号化)に基づいた圧縮方式、その他としてMPEG方式などである。
<Operation of recording / reproducing apparatus>
First, at the time of recording by the recording / reproducing apparatus 101, an analog video signal photographed by the imaging system 4 is digitized by the A / D converter 5 and then subjected to video processing by the video signal processing circuit 6. One of the outputs of the video signal processing circuit 6 is converted back to an analog signal by the D / A converter 11 as a video during shooting and displayed by the EVF 12. The other outputs are compressed (encoded) by the compression circuit 7 with a predetermined algorithm and recorded on the recording medium by the recording / reproducing system 8. Here, the predetermined compression processing is typically a JPEG method for digital cameras, and a compression method based on DCT (Discrete Cosine Transform) and VLC (Variable Length Coding) as band compression methods for home digital VTRs. Other than that, the MPEG system is used.

再生時は、記録再生系8が記録媒体から所望の映像を再生する。この時、所望の映像の選択は、操作部10から入力された指示入力を元にして選択され、システムコントローラ9が制御して再生する。記録媒体から再生された映像データのうち、圧縮状態のまま転送されるデータはフレームメモリ15に出力する。非圧縮のデータで転送するため再生データを伸張(復号)するときは、伸張回路7で伸張されメモリ13に出力される。また、再生した映像データをEVF12で表示するときは、伸張回路7で伸張し、D/Aコンバータ11でアナログ信号に戻された後EVF12に出力され、表示される。   At the time of reproduction, the recording / reproducing system 8 reproduces a desired video from the recording medium. At this time, selection of a desired video is selected based on an instruction input input from the operation unit 10, and the system controller 9 controls and reproduces it. Of the video data reproduced from the recording medium, the data transferred in the compressed state is output to the frame memory 15. When the reproduction data is expanded (decoded) to be transferred as uncompressed data, it is expanded by the expansion circuit 7 and output to the memory 13. When the reproduced video data is displayed on the EVF 12, it is decompressed by the decompression circuit 7, converted to an analog signal by the D / A converter 11, and then output to the EVF 12 for display.

フレームメモリ13、およびフレームメモリ15は、それぞれシステムコントローラにて制御されたメモリ制御部14、16で書き込み/読み出しの制御がなされて、読み出された映像データはデータセレクタ17へと出力される。このとき、フレームメモリ13、及び15の出力は、同時間にはどちらか一方がデータセレクタ17に出力されるように制御される。   The frame memory 13 and the frame memory 15 are controlled to be written / read by the memory control units 14 and 16 respectively controlled by the system controller, and the read video data is output to the data selector 17. At this time, the outputs of the frame memories 13 and 15 are controlled so that either one is output to the data selector 17 at the same time.

システムコントローラ9は記録再生装置101内の各部の動作を制御するものであるが、プリンタ102やPC103といった外部に接続された機器に対する制御コマンドデータを出力して、データセレクタ17から1394シリアルバスを転送されて外部の装置にコマンドをAsync転送することもできる。また、プリンタ102やPC103から転送されてきた各種コマンドデータは、データセレクタ17からシステムコントローラ9に入力され、記録再生装置101の各部の制御に用いることができる。このうち、プリンタ102、PC103からAsync転送されたデコーダの有無またはデコーダの種類等を示すコマンドデータは、要求コマンドとしてシステムコントローラ9に入力される。その後、そのコマンドデータを基にして、記録再生装置101より映像データを転送する際、それぞれ圧縮、非圧縮どちらの映像データを転送するか判断し、それに応じてメモリ制御部14、及び16にコマンド伝達して、フレームメモリ13、または15から適した一方の映像データを読み出して転送するように制御する。   The system controller 9 controls the operation of each unit in the recording / reproducing apparatus 101. The system controller 9 outputs control command data for externally connected devices such as the printer 102 and the PC 103, and transfers the 1394 serial bus from the data selector 17. It is also possible to Async transfer commands to external devices. Various command data transferred from the printer 102 and the PC 103 are input from the data selector 17 to the system controller 9 and can be used to control each part of the recording / reproducing apparatus 101. Of these, command data indicating the presence or absence of the decoder, the type of decoder, and the like, which are Async transferred from the printer 102 and the PC 103, are input to the system controller 9 as a request command. After that, when transferring the video data from the recording / reproducing device 101 based on the command data, it is determined whether to transfer the compressed or uncompressed video data, and the command is sent to the memory control units 14 and 16 accordingly. Then, control is performed so that one suitable video data is read from the frame memory 13 or 15 and transferred.

圧縮、非圧縮の映像データのうちどちらを転送するかという判断は、プリンタ102またはPC103よりコマンド転送された、それぞれの機器が具備するデコーダの情報に基づいてなされる。その情報により、記録再生装置101での映像データ圧縮方式がデコード可能であると判断されたときは、圧縮された映像データを転送すべく、メモリ15から読み出したデータを出力し、デコードできないと判断されたときは、非圧縮の映像データを転送すべくメモリ13から読み出したデータを出力するよう制御する。   The determination as to which of the compressed or uncompressed video data is to be transferred is made based on the information of the decoder included in each device, which has been command-transferred from the printer 102 or the PC 103. When it is determined from the information that the video data compression method in the recording / playback apparatus 101 can be decoded, the data read from the memory 15 is output to transfer the compressed video data, and it is determined that the data cannot be decoded. If so, control is performed to output the data read from the memory 13 to transfer uncompressed video data.

データセレクタ17に入力した映像データ及びコマンドデータは、1394I/F18で1394シリアルバスの仕様に基づいてケーブル上をデータ転送され、プリント用映像データならばプリンタ102が、PCに取り込む映像データならばPC103が受信する。コマンドデータも適宜対象ノードに対してAsync転送される。各データの転送方式については、主に動画や静止画、または音声といったデータはIsoデータとしてアイソクロナス転送方式で転送し、コマンドデータはAsyncデータとしてアシンクロナス転送方式で転送する。ただし、通常Isoデータで転送するデータのうち、転送状況等に応じて場合によってはAsyncデータとして転送した方が都合がいいときはアシンクロナス転送で送ってもよい。   The video data and command data input to the data selector 17 are transferred over the cable by the 1394 I / F 18 based on the specifications of the 1394 serial bus. The printer 102 is the video data for printing, and the PC 103 is the video data to be imported to the PC. Receive. Command data is also Async transferred to the target node as appropriate. As for the data transfer method, mainly data such as moving images, still images, and audio are transferred as Iso data by the isochronous transfer method, and the command data is transferred as Async data by the asynchronous transfer method. However, among the data transferred as normal Iso data, it may be sent asynchronous transfer when it is convenient to transfer it as Async data depending on the transfer situation.

<プリンタの動作>
一方、プリンタ102においては、1394I/F部19に入力されたデータは、データセレクタ20で各データの種類毎に分類され、映像データ等プリントすべきデータは、圧縮されている場合復号化回路21でデータの伸張がなされた後、画像処理回路22に出力される。上述の通り、記録再生装置101は、予め送られているデコーダの有無または種類等の情報を元にして、最適な転送が行なえるよう圧縮または非圧縮を選びデータ転送している。そのため、転送データが圧縮されていたとしても、プリンタが具備する復号化回路21における所定のアルゴリズムの伸張方式で、受信したデータは伸張(復号)可能である。転送されてきた映像データが非圧縮のものである場合は、プリンタ102に復号化回路21が存在しないか、または、記録再生装置101の圧縮方式に対応不可能な復号化回路21をプリンタ102が具備している場合である。この場合は復号化回路21をスルーして直接プリント画像処理回路22に受信したデータを入力する。また、映像データでないプリント用データなどが入力されたときで、伸張する必要がないデータのときにも復号化回路21はスルーされる。
<Printer operation>
On the other hand, in the printer 102, the data input to the 1394 I / F unit 19 is classified for each data type by the data selector 20, and data to be printed such as video data is decoded when it is compressed. Then, the data is decompressed and output to the image processing circuit 22. As described above, the recording / reproducing device 101 transfers data by selecting compression or non-compression so that optimum transfer can be performed based on information such as the presence / absence or type of a decoder sent in advance. Therefore, even if the transfer data is compressed, the received data can be expanded (decoded) by a predetermined algorithm expansion method in the decoding circuit 21 provided in the printer. If the transferred video data is uncompressed, the printer 102 does not have the decoding circuit 21 or the printer 102 has a decoding circuit 21 that cannot support the compression method of the recording / playback apparatus 101. This is the case. In this case, the received data is directly input to the print image processing circuit 22 through the decoding circuit 21. The decoding circuit 21 is also passed through when printing data or the like that is not video data is input and the data does not need to be expanded.

画像処理回路22に入力されたプリント用のデータは、ここでプリントに適した画像処理が施され、プリンタコントローラ26によって記憶や読み出しが制御されるメモリ23にプリント画像として展開される。このプリント画像はプリンタヘッド24に送られプリントされる。プリンタのヘッド駆動や紙送り等の駆動はドライバ25で行なわれ、ドライバ25やプリンタヘッド24の動作制御、およびその他各部の制御はプリンタコントローラ23によって行われる。   The print data input to the image processing circuit 22 is subjected to image processing suitable for printing here, and is developed as a print image in the memory 23 controlled to be stored and read by the printer controller 26. This print image is sent to the printer head 24 and printed. Driving of the printer, such as head driving and paper feeding, is performed by a driver 25, and operation control of the driver 25 and printer head 24 and other parts are controlled by a printer controller 23.

プリンタ操作部27は紙送りや、リセット、インクチェック、プリンタ動作のスタンバイ/開始/停止等の動作を指示入力するためのものであり、その指示入力に応じてプリンタコントローラ26によって各部の制御がされる。   The printer operation unit 27 is used to input instructions such as paper feed, reset, ink check, and standby / start / stop of printer operation. Each unit is controlled by the printer controller 26 in accordance with the instruction input. The

次に、1394I/F部19に入力したデータが、プリンタ102に対するコマンドデータであったときは、データセレクタ20からプリンタコントローラ26 に制御コマンドとして伝達され、プリンタコントローラ26によって情報に対応したプリンタ102各部の制御がなされる。   Next, when the data input to the 1394 I / F unit 19 is command data for the printer 102, it is transmitted as a control command from the data selector 20 to the printer controller 26, and each unit of the printer 102 corresponding to the information by the printer controller 26. Is controlled.

また、プリンタコントローラ26はプリンタ102内の復号回路21の具備するデコーダの種類、または復号化回路21の有無等の情報を出力して、記録再生装置101にコマンドデータとしてAsync転送することができる。   In addition, the printer controller 26 can output information such as the type of decoder included in the decoding circuit 21 in the printer 102 or the presence / absence of the decoding circuit 21 and transfer the information to the recording / reproducing apparatus 101 as Async data.

ここで、復号化回路21について、プリンタに設けるデコーダの一例として、JPEG方式が考えられる。JPEG復号化はソフトウェア的に可能であるので、復号化回路21では、回路内に持つROMにJPEG復号化プログラムファイルを保持しているもの、あるいは他のノードから復号化プログラムを転送してもらったものなどを用いて、ソフト的に処理されて、復号化処理される構成でよい。記録再生装置からJPEG方式で圧縮された画像データをプリンタに転送し、プリンタ内で復号化処理するようにしたならば、非圧縮データに変換してから転送するより転送効率が良く、また、ソフトウェアでのデコード処理を用いることで、プリンタ自体にデコーダを設けることにもコスト的にも支障はなく都合が良い。また、復号化回路21ではハード的な復号化として、JPEGデコード回路(ボード)を設ける構成でも可能である。   Here, with regard to the decoding circuit 21, as an example of a decoder provided in the printer, the JPEG method can be considered. Since JPEG decoding is possible in software, the decoding circuit 21 has the JPEG decoding program file stored in the ROM in the circuit, or the decoding program is transferred from another node. A configuration may be used in which processing is performed using software and the like and then decrypted. If image data compressed by the JPEG method is transferred from the recording / playback apparatus to the printer and decrypted in the printer, the transfer efficiency is higher than the transfer after converting to uncompressed data, and software Therefore, it is convenient to provide a decoder in the printer itself without any problem in terms of cost. The decoding circuit 21 may be configured to include a JPEG decoding circuit (board) as hardware decoding.

このように、記録再生装置101からプリンタ102に映像データが転送されプリントするときは、所謂ダイレクトプリントであり、PCでの処理を用いずにプリント処理が可能である。   As described above, when video data is transferred from the recording / reproducing apparatus 101 to the printer 102 and printed, it is so-called direct printing, and printing processing can be performed without using processing in the PC.

<パーソナルコンピュータの動作>
次に、PC103での処理について説明する。記録再生装置101から、PCの1394I/F部61に転送された映像データは、PC103内で、PCIバス62をデータ相互伝送のバスとして用いて、各部へ転送される。また、PC103内の各種コマンドデータ等もこのPCIバスを用いて各部へ転送される。
<Operation of personal computer>
Next, processing in the PC 103 will be described. Video data transferred from the recording / playback apparatus 101 to the 1394 I / F unit 61 of the PC is transferred to each unit in the PC 103 using the PCI bus 62 as a data mutual transmission bus. Various command data in the PC 103 are also transferred to each unit using the PCI bus.

PC103では、操作部68からの指示入力と、OS(オペレーティングシステム)やアプリケーションソフトにしたがって、メモリ67を用いながら、MPU63によって処理がなされる。転送された映像データを記録するときはハードディスク66に記録される。   In the PC 103, processing is performed by the MPU 63 using the memory 67 in accordance with an instruction input from the operation unit 68 and an OS (operating system) or application software. When the transferred video data is recorded, it is recorded on the hard disk 66.

転送される映像データは、プリンタと同様、記録再生装置101が予め受信したデコーダの有無またはデコーダ種類等の情報を元にして最適な転送が行なえるよう、圧縮または非圧縮を選びデータ転送されたデータである。そこで、受信した映像データは、たとえ圧縮データであっても、PC103が具備する復号化回路 64で所持する所定のアルゴリズムの伸張方式でデータ伸張可能である。   As with the printer, the video data to be transferred was data transferred with compression or non-compression selected so that optimum transfer can be performed based on information such as the presence / absence of the decoder or the decoder type received in advance by the recording / playback apparatus 101. It is data. Therefore, even if the received video data is compressed data, the data can be decompressed by a decompression method of a predetermined algorithm possessed by the decoding circuit 64 included in the PC 103.

映像データをディスプレイ65で表示するときは、圧縮された映像データであったときは復号化回路64で復号化された後、非圧縮の映像データであったときは直接ディスプレイ65に入力され、D/A変換された後、映像表示される。   When the video data is displayed on the display 65, if it is compressed video data, it is decoded by the decoding circuit 64, and if it is uncompressed video data, it is directly input to the display 65, and D Video is displayed after / A conversion.

PC103に設けられた各種復号化回路64とは、一例としてMPEG方式等のデコーダをボードとしてスロットに差し込んだものや、もしくはハード的に本体に組み込まれたもの、または、MPEG方式やJPEG方式、その他のソフトデコーダをROM等によって所有しているものであり、これらデコーダの種類や有無を情報としてコマンドを記録再生装置101に転送することができる。   Various decoding circuits 64 provided in the PC 103 are, for example, an MPEG system decoder inserted into a slot as a board, or a hardware built in the main body, or an MPEG system, JPEG system, etc. The soft decoder is owned by a ROM or the like, and a command can be transferred to the recording / reproducing apparatus 101 by using the type and presence of these decoders as information.

このようにして、転送された映像データはPC103内に取り込まれ、記録、編集、PCから他機器に転送等がなされる。   In this way, the transferred video data is taken into the PC 103 and recorded, edited, transferred from the PC to another device, and the like.

本実施形態のシステムは、図2のように構成されることにより、記録再生装置101からプリンタ102またはPC103に映像データを転送する前に、転送先のプリンタ102またはPC103からデコーダの情報をコマンドに含めAsync転送することで、記録再生装置101は転送先装置がデコードできるときは圧縮したままの映像データを転送し、デコードできないときは非圧縮のデータにした後の映像データを転送するように選択することができる。   The system of the present embodiment is configured as shown in FIG. 2, so that before the video data is transferred from the recording / reproducing apparatus 101 to the printer 102 or the PC 103, the decoder information is used as a command from the transfer destination printer 102 or the PC 103. By including Async transfer, the recording / playback device 101 selects to transfer the compressed video data when the transfer destination device can decode, and to transfer the uncompressed video data when it cannot decode can do.

<映像データ転送手順>
次に、映像データ転送時の記録再生装置101による動作をフローチャートにして図4に示す。記録再生装置101における、映像データを1394シリアルバスで接続された他の機器に転送するモードにおいて、まずステップS1として、ユーザーによる指定に基づいて、転送先の機器に対するデータ転送の設定を行う。これによって、ステップS2として記録再生装置101は、これから転送を行うことを告げる所定の情報及び転送先機器内に具備するデコーダの有無、種類等の情報を転送するように促す為の情報を含んだコマンドを転送先機器に1394バスを用いて Async転送する。ステップS2のコマンドを受けて、転送先の機器からはデコーダ情報を含んだ所定の転送確認用コマンドデータが記録再生装置101に Async転送され、記録再生装置101はそれを受信する。
<Video data transfer procedure>
Next, the operation of the recording / reproducing apparatus 101 at the time of transferring video data is shown in FIG. 4 as a flowchart. In the mode in which the recording / playback apparatus 101 transfers video data to another device connected via a 1394 serial bus, first, in step S1, data transfer is set for the transfer destination device based on the designation by the user. As a result, in step S2, the recording / reproducing apparatus 101 includes predetermined information for informing transfer and information for urging to transfer information such as the presence / absence of the decoder included in the transfer destination device and the type thereof. The command is Async transferred to the transfer destination device using the 1394 bus. In response to the command in step S2, predetermined transfer confirmation command data including decoder information is Async transferred from the transfer destination device to the recording / reproducing apparatus 101, and the recording / reproducing apparatus 101 receives it.

ステップS3として、記録再生装置101のシステムコントローラ9では、デコーダ情報が受信できたか判断し、デコーダ情報が受信されてデコーダの存在とその種類が判別できたときはステップS4へ移る。デコーダ情報をコマンド送信できない機器であったなどの理由により受信したコマンド内にデコーダ情報が含まれてなかったとき、またはデコーダが存在しないという情報がコマンドに含まれていたとき、または、転送先機器からのコマンドが返信されないか、バス上転送エラーやAsync転送の遅延等によって所定期間を過ぎてもコマンド Async転送が受信されなかったときにはステップS6に移る。   In step S3, the system controller 9 of the recording / reproducing apparatus 101 determines whether the decoder information has been received. When the decoder information is received and the presence and type of the decoder can be determined, the process proceeds to step S4. When the decoder information is not included in the received command due to the reason that the decoder information cannot be transmitted to the command, or when the information that the decoder does not exist is included in the command, or the transfer destination device If the command Async transfer is not received even after a predetermined period of time due to a transfer error on the bus, delay of Async transfer, or the like, the process proceeds to step S6.

ここで、転送先の機器から転送元である記録再生装置101に転送されたコマンドデータの内、デコーダ情報については、この後圧縮して記録した映像データの転送を行う際、圧縮したまま転送するか、または非圧縮に戻してから転送するかの判断の材料となるデータである。すなわちこのデータは、転送先の機器からすれば圧縮データの転送を希望するか、または非圧縮データの転送を希望するかの要求データとしての役割も持つことになる。そこで、あらかじめ転送元の記録再生装置101が用いている圧縮方法の情報を、転送先の機器例えばPC103が事前に知っていれば、記録再生装置からステップS2で送られてきたコマンドに対する応答を、単にPC103内のデコーダ情報を含む応答ではなく、映像データの転送を、圧縮データで転送するか、それとも非圧縮データで転送するかを指定する要求コマンドとして利用することもできる。   Here, among the command data transferred from the transfer destination device to the recording / playback apparatus 101 that is the transfer source, the decoder information is transferred in the compressed state when the video data recorded after being compressed is transferred. Or data that is used to determine whether to transfer data after returning to uncompressed state. In other words, this data also has a role as request data indicating whether transfer of compressed data is desired or transfer of uncompressed data is desired from the destination device. Therefore, if the transfer destination device, for example, the PC 103 knows in advance information on the compression method used by the transfer source recording / playback apparatus 101, a response to the command sent from the recording / playback apparatus in step S2 is obtained. Rather than simply a response including decoder information in the PC 103, it can also be used as a request command for designating whether to transfer video data as compressed data or uncompressed data.

次にステップS4として、受信したデコーダ情報から判別したデコーダの種類が、記録再生装置101の圧縮伸張回路7で用いている映像データの所定のアルゴリズムの圧縮方式に対応できるデコーダであったならば、転送先機器内でのデコード可能ということで、ステップS5としてデコーダ有りの設定、すなわち圧縮したままの映像データを1394バス上にISO転送するために、映像データの転送実行時メモリ15からの出力を転送するように制御する。ステップS4で判別したデコーダの種類が、記録再生装置101での圧縮方式に対応できないものであったときと、ステップS3でデコーダ情報が受信されなかったとき、すなわち転送先機器内にデコーダが何ら存在しないと判断されたときは、ステップS6としてデコーダ無しの設定、すなわち記録再生装置101内でISO転送する映像データの伸張処理を行ってから非圧縮の映像データを1394バス上にISO転送するために、映像データの転送実行時メモリ13からの出力を転送するように制御する。   Next, in step S4, if the decoder type determined from the received decoder information is a decoder that can support the compression method of a predetermined algorithm of video data used in the compression / decompression circuit 7 of the recording / reproducing apparatus 101, Since decoding within the transfer destination device is possible, in step S5, the setting with the decoder, that is, the output from the memory 15 at the time of transfer of the video data is performed in order to transfer the compressed video data to the 1394 bus with ISO. Control to transfer. When the type of decoder determined in step S4 is not compatible with the compression method in the recording / reproducing apparatus 101, and when decoder information is not received in step S3, that is, there is no decoder in the transfer destination device. If it is determined not to do so, in step S6, no decoder is set, that is, the decompression processing of the video data to be ISO-transferred in the recording / reproducing apparatus 101 is performed, and then the non-compressed video data is ISO-transferred onto the 1394 bus. When the video data is transferred, the output from the memory 13 is controlled to be transferred.

このように転送先の機器に応じた映像データ転送時の出力形式の設定を行った上で、次にステップS7としてユーザはプリントまたはPC取り込み等の為、転送したい映像データを記録媒体に記録されている映像中から選択する。記録再生装置101はその選択された映像の読み出し動作を行なう。映像選択動作を行った上で、ステップS8としてユーザが所望の映像に対して転送指令を行なう。   After setting the output format at the time of video data transfer according to the transfer destination device in this way, in step S7, the user records the video data to be transferred on the recording medium for printing or PC capture. Select from the currently displayed video. The recording / reproducing apparatus 101 performs a reading operation of the selected video. After performing the video selection operation, in step S8, the user issues a transfer command for the desired video.

次にステップS5及びS6での設定に基づき、ステップS9で転送先機器に対応可能なデコーダがあるか否かによって、ある場合はステップS10で記録媒体から再生した圧縮したままの映像データをISO転送するため、ステップS8転送指令に応じてメモリ15から読み出した映像データを出力、転送するようにシステムコントローラ9及びメモリ制御16が制御する。ない場合はステップS11で、伸張回路7で伸張した後の非圧縮の映像データをISO転送するため、ステップS8の転送指令に応じてメモリ13から読み出した映像データを出力、転送するようにシステムコントローラ9及びメモリ制御14が制御する。基本的には、映像データの転送は1394シリアルバスを用いて、アイソクロナス転送方式でパケット転送されるが、アシンクロナス転送で送っても良い。   Next, based on the settings in steps S5 and S6, depending on whether or not there is a decoder that can support the transfer destination device in step S9, if so, the compressed video data reproduced from the recording medium in step S10 is ISO transferred. Therefore, the system controller 9 and the memory control 16 control to output and transfer the video data read from the memory 15 in response to the transfer command in step S8. If not, in step S11, the system controller outputs and transfers the video data read from the memory 13 in response to the transfer command in step S8 in order to ISO transfer the uncompressed video data after being decompressed by the decompression circuit 7. 9 and memory control 14 control. Basically, the video data is transferred by the isochronous transfer method using the 1394 serial bus, but may be sent by the asynchronous transfer.

ステップS12として所望の映像データについて転送が終了すると、ステップS13として他の映像データの転送を行いたいかユーザにより選択されているか判定し、他の映像が選択されているときはステップS7に戻り映像選択から繰り返し、他の映像が選択されていないときはステップS14に移る。ステップS14 では、転送先機器を変更して映像データ転送モードを続行するか判断し、転送先を他の機器に変更して映像データ転送を行うときはステップS1の転送先指定から繰り返し、ステップS14で転送先を変更してモード続行する必要が無いときは、これにて本フローを終了するものとする。常時、指示された映像データ転送モード実行に伴なってステップS1にリターンし、本フローは繰り返される。   When the transfer of the desired video data is completed in step S12, it is determined in step S13 whether the user wants to transfer other video data or not, and if another video is selected, the process returns to step S7 to return the video The selection is repeated, and when no other video is selected, the process proceeds to step S14. In step S14, it is determined whether to change the transfer destination device to continue the video data transfer mode. When changing the transfer destination to another device and transferring the video data, repeat from the transfer destination designation in step S1, step S14. When there is no need to change the transfer destination and continue the mode, this flow is terminated. At all times, the process returns to step S1 with the execution of the instructed video data transfer mode, and this flow is repeated.

以上のようにして、本実施形態の記録再生装置は、映像データを送信する送信先から、送信先の備えている復号手順が何であるかを示す情報を獲得し、獲得した情報から、送信先の備える復号順に対応する手順で符号化を行っているならば符号化された映像データを送信し、そうでない場合には符号化データを復号して、それを送信する。これにより、通信により接続されている機器がどのような符号化手順・復号手順を備えていようとも、データの送受を確実に行なうことができる。更に、通信を行なう機器が互いに同じ符号化手順・復号手順を備えている場合には、符号化データを送受信することになるため、通信が迅速に行え、また、送受信に要するメモリの容量も復号されたデータでデータ通信を行なう場合に比べて少なくて済む。   As described above, the recording / reproducing apparatus of the present embodiment acquires information indicating what the decoding procedure of the transmission destination is from the transmission destination that transmits the video data, and transmits the transmission destination from the acquired information. If encoding is performed according to the procedure corresponding to the decoding order included in the encoded video data, the encoded video data is transmitted. Otherwise, the encoded data is decoded and transmitted. As a result, data transmission / reception can be reliably performed regardless of the encoding procedure / decoding procedure provided by the device connected by communication. Furthermore, if the devices that communicate with each other have the same encoding / decoding procedure, the encoded data is transmitted / received, so that communication can be performed quickly and the memory capacity required for transmission / reception is also decoded. Compared to the case where data communication is performed using the data thus obtained.

[第2の実施の形態]
次に第2の実施の形態について説明する。
[Second Embodiment]
Next, a second embodiment will be described.

<システムの構成>
第2の実施形態では、図5に示したような記録再生装置201とプリンタ202とをノードとし、1394シリアルバスケーブルで接続したバス構成で実施する。このとき、記録再生装置201からの映像データをプリンタ202でプリントする、ダイレクトプリントが実現される。
<System configuration>
In the second embodiment, the recording / reproducing apparatus 201 and the printer 202 as shown in FIG. 5 are used as nodes, and the bus configuration is connected by a 1394 serial bus cable. At this time, direct printing in which video data from the recording / reproducing apparatus 201 is printed by the printer 202 is realized.

このときのブロック図は図6に示す。ブロック図6の構成は、基本的にはブロック図2に示した第1の実施の形態の構成からPCを取り除いた、記録再生装置とプリンタの1394I/F間をpeer-to-peer接続した構成である。ブロック図2と異なる部分は、記録再生装置201の圧縮回路7で行われているMPEGやJPEG、DV方式などの映像データ圧縮方法で圧縮されたデータを伸張するための、主としてソフトデコード用プログラムで形成されるデコードプログラム情報をROM74に保有しており、このプログラム情報を必要に応じてシステムコントローラ9および読み出し制御部73の制御に基づきROM74から読み出し、データセレクタ17から1394I/F部18を経て他ノードに転送するという点である。   A block diagram at this time is shown in FIG. The configuration of the block diagram 6 is basically a configuration in which the PC is removed from the configuration of the first embodiment shown in the block diagram 2 and the recording / reproducing apparatus and the 1394 I / F of the printer are connected by peer-to-peer connection. It is. The part different from the block diagram 2 is mainly a soft decoding program for decompressing data compressed by a video data compression method such as MPEG, JPEG, DV, etc. performed by the compression circuit 7 of the recording / reproducing apparatus 201. The decode program information to be formed is held in the ROM 74, and this program information is read from the ROM 74 based on the control of the system controller 9 and the read control unit 73 as necessary, and from the data selector 17 through the 1394 I / F unit 18. The point is to forward to the node.

デコードプログラム情報の転送形態としては、主としてアシンクロナス転送方式で転送、場合によってはISO転送するものとし、映像データの転送実行前、または映像データパケットの転送と並行してその隙間に混在させて転送する。また、ブロック図6では記録再生装置201内に非圧縮データを転送するためのメモリ13及びそのメモリ制御部14は有していない。   As a transfer form of the decoding program information, the transfer is mainly performed by the asynchronous transfer method, and in some cases, the ISO transfer is performed, and before the video data is transferred or in parallel with the transfer of the video data packet, it is mixed and transferred in the gap. . In FIG. 6, the recording / reproducing apparatus 201 does not have the memory 13 for transferring uncompressed data and the memory control unit 14 thereof.

一方、プリンタ202では映像データを復号化するために、映像データの受信前、あるいは映像データと並行して記録再生装置201から前記したデコードプログラム情報を受信し、それを全部または一部書き換え可能なメモリ71に記憶する。受信された圧縮映像データは、復号処理回路72により、メモリ72に記憶されたデコードプログラム情報を用いてデコードされる。   On the other hand, in order to decode the video data, the printer 202 can receive the above-described decoding program information from the recording / reproducing apparatus 201 before receiving the video data or in parallel with the video data, and can rewrite all or a part thereof. Store in the memory 71. The received compressed video data is decoded by the decoding processing circuit 72 using the decoding program information stored in the memory 72.

メモリ71は、圧縮されたデータの転送を行う接続機器に応じてデコードプログラムを書き換えて記憶可能であり、復号処理回路72とともに用いて複数種類のデコーダとして機能できるような構成を持つ。メモリ71にデコードプログラムを他の機器から得なければデコーダとして全く動作できない構成であってよいが、所定のデコードプログラムだけはメモリ71の一部にあらかじめ備えた構成であってもよい。   The memory 71 can rewrite and store the decoding program in accordance with the connected device that transfers the compressed data, and has a configuration that can be used together with the decoding processing circuit 72 to function as a plurality of types of decoders. The memory 71 may be configured so that it cannot operate as a decoder at all unless the decoding program is obtained from another device. However, only a predetermined decoding program may be provided in a part of the memory 71 in advance.

なお、記録再生装置201とプリンタ202との間では、送受信されるデコードプログラム情報の互換性が保証されなければならない。そのためには、復号処理回路72を予め規格化しておき、その規格にあわせて記述されたデコードプログラム情報をROM74に格納しておけばよい。あるいは、デコードプログラム情報の記述の仕方のみを規格化しておき、復号処理回路72は、その規格化されたプログラム情報を解釈・実行するよう構成しておいてもよい。   Note that the compatibility of decoded program information transmitted and received between the recording / reproducing apparatus 201 and the printer 202 must be guaranteed. For this purpose, the decoding processing circuit 72 is standardized in advance, and the decoding program information described in accordance with the standard is stored in the ROM 74. Alternatively, only the method of describing the decoding program information may be standardized, and the decoding processing circuit 72 may be configured to interpret and execute the standardized program information.

ブロック図6のその他の回路要素とその動作は第1の実施の形態で説明したものと同じであるので省略する。   The other circuit elements in the block diagram 6 and their operations are the same as those described in the first embodiment, and will not be described.

記録再生装置201からプリンタ202への圧縮されたプリント映像データの転送に際しては、まず、映像データの転送に先立って、記録再生装置201で用いている映像データの圧縮方式に対応したデコードプログラムをROM74より読み出し、プリンタ202にAsync転送する。プリンタ202は受信したデコードプログラムをメモリ71に記憶して、転送される圧縮映像データのデコードに利用する。記録再生装置201では記録するすべての映像データに統一された1つの圧縮/伸張方式を用いるが、また任意の映像データ量又は時間毎に圧縮方式が複数種混在した記録状態であってもよい。   When transferring the compressed print video data from the recording / reproducing apparatus 201 to the printer 202, first, prior to the transfer of the video data, a decoding program corresponding to the video data compression method used in the recording / reproducing apparatus 201 is stored in the ROM 74. Read out and Async transfer to the printer 202. The printer 202 stores the received decoding program in the memory 71 and uses it for decoding the compressed video data to be transferred. The recording / playback apparatus 201 uses one unified compression / decompression method for all video data to be recorded. However, the recording / playback device 201 may be in a recording state in which a plurality of compression methods are mixed for each video data amount or time.

このように構成することによって、プリンタにデコーダ情報を持っていなくても、圧縮されたままの映像データを転送可能であるので、非圧縮映像データの転送より転送効率がよい。次に、第2の実施の形態の動作をフローチャート図にして図24に示し、これを用いて説明する。   With such a configuration, even if the printer does not have decoder information, it is possible to transfer the compressed video data, so that the transfer efficiency is better than the transfer of the uncompressed video data. Next, the operation of the second embodiment will be described with reference to a flowchart shown in FIG.

<データ転送の手順>
まずステップS21として、ユーザーに転送先の機器を指定させる。本実施形態ではプリンタと指定されることになる。その指示に基づいて転送設定を行う。次にユーザーは、プリントしたい映像データを、記録媒体に記録されている映像中から選択する。ステップS22では、記録再生装置201は選択された映像の読み出し動作を行なう。映像選択動作を行うと、ステップS23としてユーザーに所望の映像に対する転送指令を行わせる。
<Data transfer procedure>
First, in step S21, the user is allowed to designate a transfer destination device. In this embodiment, the printer is designated. Transfer settings are made based on the instruction. Next, the user selects video data to be printed from videos recorded on the recording medium. In step S22, the recording / reproducing apparatus 201 performs a read operation of the selected video. When the video selection operation is performed, the user is instructed to transfer a desired video in step S23.

ステップS24では、転送指令が行われた映像データをデコードするために必要なデコードプログラムを、転送先の機器、ここではプリンタ202に転送する必要があるか判断する。必要がある場合、すなわち、プリンタ内にデコード処理のための必要な復号処理回路72などの手段を備えており、デコードプログラムを転送することで圧縮映像データのデコードが可能となると判断されたときは、ステップS25として必要なデコードプログラムをROM74から読み出し、これをプリンタ202に転送する。プリンタ202では、受信したデコードプログラム情報をメモリ71に格納する。   In step S24, it is determined whether or not a decoding program necessary for decoding the video data for which the transfer command has been issued needs to be transferred to the transfer destination device, here, the printer 202. When it is necessary, that is, when it is determined that the printer has the necessary decoding processing circuit 72 and the like for decoding processing, and that it is possible to decode the compressed video data by transferring the decoding program In step S25, a necessary decoding program is read from the ROM 74 and transferred to the printer 202. The printer 202 stores the received decoding program information in the memory 71.

一方、ステップS24で転送が不要と判断された場合、すなわち、転送先のプリンタ202が、あらかじめ必要なデコードプログラム情報を有しているか、または過去に同じデコードプログラム情報を転送済であって既に今回必要とするデコード情報がメモリ71に記憶されているときなどには、デコードプログラム情報の転送は行わず、映像データの転送に移る。   On the other hand, if it is determined in step S24 that no transfer is necessary, that is, the transfer destination printer 202 has the necessary decode program information in advance, or the same decode program information has been transferred in the past and has already been transferred. When necessary decoding information is stored in the memory 71, the decoding program information is not transferred, and the process proceeds to video data transfer.

なお、このプリンタ202に対してデコードプログラム情報の転送が不要か否かを判断するための情報は、ステップS23において記録再生装置201からプリンタ202へとその情報を要求し、プリンタ202から、それが有するデコードプログラム情報が何であるかを示す情報を応答することによって得ることができる。   Note that the information for determining whether or not the transfer of the decoding program information to the printer 202 is unnecessary is that the information is requested from the recording / reproducing apparatus 201 to the printer 202 in step S23. It can be obtained by responding information indicating what decoding program information it has.

つづいて、ステップS26として転送指令した圧縮映像データを、記録媒体から読み出してメモリ15から出力して、プリンタ202へ転送する。   Subsequently, the compressed video data commanded to be transferred in step S26 is read from the recording medium, output from the memory 15, and transferred to the printer 202.

プリンタ202では、圧縮映像データを受信すると、すでに記憶されているデコードプログラム情報に基づいて映像データのデコード処理を行い、映像データのプリント処理を開始する。Async転送のためデコードプログラムの転送が終了していないときは、デコードプログラム転送完了を待って、映像データデコード処理を開始する。   Upon receiving the compressed video data, the printer 202 performs video data decoding processing based on the stored decoding program information, and starts video data printing processing. When the transfer of the decoding program is not completed for the Async transfer, the video data decoding process is started after the completion of the decoding program transfer.

ステップS27では、所望の映像データについて転送が終了すると転送終了に伴う所定の処理を行ない、ステップS28では、他の映像データの転送を行う選択がされたか判定し、他の映像が選択されているときは、ステップS22に戻り映像選択から繰り返す。他の映像が選択されていないときは本フローを終了する。また、映像データ転送モード実行の指示に伴なって、随時ステップS21から本フローは繰り返される。   In step S27, when the transfer of the desired video data is completed, a predetermined process is performed at the end of the transfer. In step S28, it is determined whether another video data is selected to be transferred, and another video is selected. If so, return to step S22 and repeat from the video selection. When no other video is selected, this flow is terminated. Further, this flow is repeated from step S21 as needed in accordance with the instruction to execute the video data transfer mode.

以上のように、本実施の形態のシステムでは、記録再生装置による映像圧縮方法に応じた伸長方法のデコードプログラム情報が、記録再生装置からプリンタに提供されるため、機器間で転送される映像データは常に圧縮データである。このために、データ量が小さくなり、転送前に予め伸長処理する必要が無くなり、データの転送が迅速に行える。しかもデータの受信側ではデータを格納するためのメモリが、圧縮されていないデータを受信する場合に比べて非常に少なくて済む。   As described above, in the system according to the present embodiment, since the decoding program information of the decompression method corresponding to the video compression method by the recording / playback apparatus is provided from the recording / playback apparatus to the printer, the video data transferred between the devices Is always compressed data. This reduces the amount of data, eliminates the need for decompression processing prior to transfer, and allows data to be transferred quickly. In addition, the data receiving side requires very little memory for storing data compared to receiving uncompressed data.

[第3の実施の形態]
次に第3の実施の形態について説明する。第3の実施形態でも第2の実施形態と同様、図5に示したような記録再生装置201とプリンタ202とをノードとし、1394シリアルバスケーブルでpeer-to-peer接続したバス構成、ダイレクトプリント可能な構成で実施する。
[Third Embodiment]
Next, a third embodiment will be described. In the third embodiment, as in the second embodiment, the recording / reproducing apparatus 201 and the printer 202 as shown in FIG. 5 are used as nodes, and the bus configuration is peer-to-peer connected with a 1394 serial bus cable, and direct printing is performed. Implement in a possible configuration.

<システムの構成>
第3の実施の形態を説明するためのブロック図を図23に示す。ブロック図23の構成は、第2の実施の形態で用いたブロック図6の記録再生装置201に、非圧縮の映像データも転送できる構成とするために、ブロック図2で用いたフレームメモリ13とそのメモリ制御部14を加えた構成である。
<System configuration>
FIG. 23 shows a block diagram for explaining the third embodiment. The configuration of the block diagram 23 is the same as that of the frame memory 13 used in the block diagram 2 in order to transfer uncompressed video data to the recording / reproducing apparatus 201 of the block diagram 6 used in the second embodiment. The memory control unit 14 is added.

第3の実施の形態では、ROM74からのデコードプログラム情報の転送、及びフレームメモリ15からの圧縮映像データの転送、フレームメモリ13からの非圧縮映像データの転送を、プリンタ202より転送されるデコーダの有無、種類や構成の情報を含んだコマンドデータ(デコーダ情報)をもとにして、システムコントローラ9によって、圧縮映像データのみを転送するべきか、圧縮映像データとデコードプログラム情報を転送するべきか、非圧縮映像データを転送するべきか判断されて各部を制御し、必要に応じたデータ転送を行う。   In the third embodiment, transfer of decoding program information from the ROM 74, transfer of compressed video data from the frame memory 15, and transfer of uncompressed video data from the frame memory 13 are performed by the decoder transferred from the printer 202. Whether the system controller 9 should transfer only the compressed video data or the compressed video data and the decoding program information based on the command data (decoder information) including presence / absence, type and configuration information, It is determined whether uncompressed video data should be transferred, and each unit is controlled to perform data transfer as necessary.

詳しく説明すると、あらかじめ転送されたプリンタ内のデコーダ情報より、プリンタ202内メモリ71の一部または全部に記録再生装置201で用いている圧縮方式をデコードするための情報があり、圧縮映像データの復号処理が可能であると判断された場合(ハード的な復号手段でもよい)には、システムコントローラ9はメモリ制御部16を介してメモリ15を制御し、ユーザの指示に応じて圧縮されたままの映像データを読み出し、ISO転送開始する。   More specifically, there is information for decoding the compression method used in the recording / reproducing apparatus 201 in a part or all of the memory 71 in the printer 202 based on the decoder information in the printer transferred in advance, and decoding of the compressed video data When it is determined that the processing is possible (a hardware decoding unit may be used), the system controller 9 controls the memory 15 via the memory control unit 16 and remains compressed in accordance with a user instruction. Read video data and start ISO transfer.

プリンタからのデコーダ情報より、現状ではデコードプログラムの欠如等により圧縮映像データのデコードはできないが、復号回路系の一部であるメモリ71にデコードプログラム情報を与えてやることでプリンタ内の復号処理回路72が使え、プリンタにおいてデコードが可能であると判断されたときには、ROM読み出し制御部73を制御し、ROM74より必要なデコードプログラム情報をメモリ71にAsync転送した上で、メモリ制御部16を介してメモリ15から圧縮されたままの映像データを読み出し、これを転送するように制御する。   Although it is currently impossible to decode compressed video data from the decoder information from the printer due to lack of a decoding program, the decoding processing circuit in the printer can be provided by giving the decoding program information to the memory 71 that is part of the decoding circuit system. 72 can be used, and when it is determined that the printer can decode, the ROM read control unit 73 is controlled, and necessary decode program information is transferred from the ROM 74 to the memory 71 via the memory control unit 16. Control is performed so that the compressed video data is read from the memory 15 and transferred.

一方、プリンタからのデコーダ情報よりプリンタ内のメモリ71と復号手段72とを含む復号回路系が存在しない、または利用できないと判断された場合、またはデコード情報を含むコマンドが受信されなかったときには、プリンタにおける圧縮映像データの復号は不可能であるので、メモリ制御部14を介してメモリ13から非圧縮な映像データを読み出し転送するように制御する。   On the other hand, when it is determined from the decoder information from the printer that the decoding circuit system including the memory 71 and the decoding means 72 in the printer does not exist or cannot be used, or when a command including the decoding information is not received, the printer Since it is impossible to decode the compressed video data, the control is performed so that the non-compressed video data is read from the memory 13 via the memory control unit 14 and transferred.

ブロック図23の各部とその動作は第1の実施の形態または第2の実施の形態で説明したものと同じであるので省略する。   Each part of the block diagram 23 and its operation are the same as those described in the first embodiment or the second embodiment, and will not be described.

このように構成することによって、極力圧縮されたままの映像データを転送可能であるので非圧縮映像データの転送より転送効率がよく、圧縮映像データを転送できなくても非圧縮映像データを転送できるので都合が良い。   With this configuration, video data that has been compressed as much as possible can be transferred, so transfer efficiency is better than transfer of uncompressed video data, and uncompressed video data can be transferred even if compressed video data cannot be transferred. So convenient.

次に、第3の実施の形態の動作をフローチャート図にして図25に示し、これを用いて説明する。まずステップS31として、ユーザーにより転送先の機器をプリンタと指定されると、指示に基づいた転送設定を行う。これによって、記録再生装置201からはステップS32としてプリンタ202に対して、これから転送を行うことを告げる所定の情報及び転送先機器内に具備するデコーダの有無、種類、構成等の情報を転送するように促す為の情報を含んだコマンドを1394バスを用いてAsync転送する。ステップS32のコマンドを受けて、プリンタ202からはデコーダ情報を含んだ所定の転送確認用コマンドデータが記録再生装置201にAsync転送される。   Next, the operation of the third embodiment will be described with reference to a flowchart shown in FIG. First, in step S31, when the user designates the transfer destination device as a printer, transfer setting is performed based on the instruction. As a result, the recording / reproducing apparatus 201 transfers to the printer 202 predetermined information that tells that transfer is to be performed and information such as the presence / absence, type, and configuration of the decoder included in the transfer destination device in step S32. Async transfer of the command including information for prompting using the 1394 bus. In response to the command in step S32, the printer 202 performs Async transfer of predetermined transfer confirmation command data including decoder information to the recording / reproducing apparatus 201.

ここで、記録再生装置201のシステムコントローラ9では、ステップS33においてデコーダ情報の受信が確認できたか判断し、デコーダ情報が受信されたときはステップS34へ移り、プリンタ202にデコーダ機能が存在しない為、またはデコーダ情報をコマンド送信できない機器であった為等の理由によりデコーダ情報が受信されなかったとき、または、デコード情報を含むコマンドが返送されないか、バス上の転送エラーやAsync転送の遅延などによって所定期間を過ぎてもコマンドAsync転送が受信されなかったときは、記録再生装置201は非圧縮の映像データのみを転送するモードへ移行してステップS40に移る。   Here, the system controller 9 of the recording / reproducing apparatus 201 determines whether or not the reception of the decoder information has been confirmed in step S33. When the decoder information is received, the process proceeds to step S34, and the printer 202 has no decoder function. Or, if the decoder information is not received because the device cannot transmit the decoder information, or if the command including the decoding information is not returned, or the bus is not specified, the transfer error on the bus, the delay of Async transfer, etc. If the command Async transfer is not received after the period, the recording / reproducing apparatus 201 shifts to a mode in which only uncompressed video data is transferred, and the process proceeds to step S40.

次にステップS34として、デコーダ情報からプリンタのデコーダ機能を調べ、記録再生装置201で用いられるすべての圧縮方式に対応可能であると判断されたらステップS35へ、所定のデコードプログラムを転送することによって圧縮映像データのデコードが可能と判断されたらステップS45へ、プリンタ202内に設けられたデコード手段ではデコードプログラムを転送する方法にも対応せず、具備しているデコーダでは対応できず、またはデコードの為の手段自体が存在しない等の理由から転送する映像データのデコードが不可能である時にはステップS40へとすすみ、それぞれモード移行する。   Next, in step S34, the decoder function of the printer is checked from the decoder information, and if it is determined that all the compression methods used in the recording / reproducing apparatus 201 can be supported, compression is performed by transferring a predetermined decoding program to step S35. If it is determined that the video data can be decoded, the decoding means provided in the printer 202 does not support the method of transferring the decoding program, and the decoder provided does not support, or the decoding is not possible. When it is impossible to decode the video data to be transferred because, for example, the above means itself does not exist, the process proceeds to step S40, and the mode is changed.

ここで、プリンタ202から転送元である記録再生装置201に転送されたコマンドデータの内、デコーダ情報については、この後圧縮して記録された映像データの転送を行う際圧縮したまま転送するか、または非圧縮に戻してから転送するか、またはデコードプログラムと共に圧縮データを転送するかのモードを選択する判断の材料となるデータであり、かつプリンタ 202からの転送モードに関する要求データとしての役割も持つことになる。また、ノード間で所定情報の事前通知がなされていれば、ステップS32に対しての転送確認用コマンドデータを返送するときにデコーダ情報という形でなく、直接映像データ転送に関する、圧縮データの転送指令、非圧縮データの転送指令、デコードプログラム転送指令を意味する要求コマンドとして用いることも可能になる。   Here, among the command data transferred from the printer 202 to the recording / reproducing device 201 that is the transfer source, the decoder information is transferred while being compressed when transferring the video data recorded after being compressed, Alternatively, it is data that can be used as a basis for determining whether to transfer data after returning to non-compression, or to transfer compressed data together with the decoding program, and also serves as request data regarding the transfer mode from the printer 202 It will be. If advance notification of predetermined information is made between the nodes, a compressed data transfer command related to direct video data transfer is used instead of the decoder information when the command data for transfer confirmation for step S32 is returned. It is also possible to use it as a request command that means a transfer command for uncompressed data and a decode program transfer command.

次に、プリンタ202内のデコード手段で、記録再生装置201で施される、如何なる圧縮方式による圧縮映像データをもデコード可能であるときは、圧縮映像データを転送可能なので圧縮映像データを転送するモードとして、ステップS35以下のフローに入る。   Next, when the decoding means in the printer 202 can decode the compressed video data of any compression method applied by the recording / reproducing apparatus 201, the compressed video data can be transferred, so the compressed video data is transferred. As shown in FIG.

ステップS35として、ユーザーに選択された映像データを、記録媒体に記録されている映像から選択し、記録再生装置201はその読み出し動作を行なう。映像選択動作を行った上で、ステップS36では、ユーザーに所望の映像に対して転送指令を行なわせる。ステップS37では、転送指令された映像データを、圧縮したまま転送するため記録媒体から再生し、フレームメモリ15から出力して、プリンタへISO転送する。プリンタでは所定の動作手順に基づき、映像データのデコード処理が行われ、映像データのプリント処理を開始する。   In step S35, the video data selected by the user is selected from the video recorded on the recording medium, and the recording / reproducing apparatus 201 performs the reading operation. After performing the video selection operation, in step S36, the user is instructed to transfer a desired video. In step S37, the video data instructed to be transferred is reproduced from the recording medium for transfer in a compressed state, output from the frame memory 15, and ISO transferred to the printer. The printer performs video data decoding processing based on a predetermined operation procedure, and starts video data printing processing.

ステップS38として所望の映像データについて転送が終了すると、ステップS39として他の映像データの転送を行う選択を行わせ、他の映像が選択されるとステップS35に戻って映像選択から繰り返し、他の映像を選択しないときはここで終了する。   When the transfer of the desired video data is completed in step S38, the selection for transferring the other video data is performed in step S39. When another video is selected, the process returns to step S35 and repeats from the video selection. If you do not select, end here.

一方、プリンタ202において、本システムを用いて圧縮映像データを転送してもプリンタ202の構成などからデコードが不可能なときは、常に非圧縮映像データを転送することでプリントする映像データの転送を行うことができる。このときの非圧縮映像データを転送するモードとしてはステップS40以下のフローに入る。   On the other hand, in the printer 202, when the compressed video data is transferred using this system but cannot be decoded due to the configuration of the printer 202, the video data to be printed is always transferred by transferring the uncompressed video data. It can be carried out. As a mode for transferring uncompressed video data at this time, the flow enters step S40 and subsequent steps.

ステップS40として、ユーザーはプリントしたい映像データを、記録媒体に記録されている映像から選択させる。記録再生装置201は選択された映像データの読み出し動作を行なう。映像選択動作を行った上で、ステップS41としてユーザーが所望の映像に対して転送指令を行なう。ステップS42として転送指令した映像データを、伸張回路7でデコードして非圧縮の状態にし、フレームメモリ13から出力して、プリンタへISO転送する。プリンタでは所定の動作手順に基づき、映像データのプリント処理を開始する。   In step S40, the user selects video data to be printed from videos recorded on the recording medium. The recording / reproducing device 201 performs a reading operation of the selected video data. After performing the video selection operation, in step S41, the user issues a transfer command for the desired video. In step S42, the video data instructed to be transferred is decoded by the decompression circuit 7 to be in an uncompressed state, output from the frame memory 13, and ISO transferred to the printer. The printer starts a video data print process based on a predetermined operation procedure.

ステップS43として、所望の映像データについて転送が終了すると、ステップS44として他の映像データの転送を行う選択を行い、他の映像を選択するときはステップS40に戻り映像選択から繰り返し、他の映像を選択しないときはここで終了するものとする。   In step S43, when the transfer of the desired video data is completed, a selection is made to transfer other video data in step S44. When another video is selected, the flow returns to step S40 to repeat the video selection and repeat the other video. If no selection is made, the process ends here.

次に、プリンタ202が具備するデコーダ手段に所定のデコードプログラムを与えることによって、転送する圧縮映像データのデコードが可能になるときには、デコードプログラムと圧縮映像データを転送するモードとしてステップS45以下のフローに入る。   Next, when it is possible to decode the compressed video data to be transferred by giving a predetermined decoding program to the decoder means included in the printer 202, the flow from step S45 is set as a mode for transferring the decoding program and the compressed video data. enter.

ステップS45として、ユーザーにプリントしたい映像データを、記録媒体に記録されている映像中から選択させる。記録再生装置201は選択された映像データの読み出し動作を行なう。映像選択動作を行った上で、ステップS46としてユーザーに所望の映像に対して転送指令を行なわせる。   In step S45, the user is made to select video data to be printed from video recorded on the recording medium. The recording / reproducing device 201 performs a reading operation of the selected video data. After performing the video selection operation, in step S46, the user is instructed to transfer a desired video.

ステップS47では、転送指令を行った映像データに対して転送先のプリンタ202内でこの映像データをデコードするために必要な、所定のデコードプログラムを転送する必要があるか判断し、必要である時はステップS48として必要なデコードプログラムをROM74から読み出しこれをプリンタ202にAsync (またはISO)転送する。プリンタ202では受信したデコードプログラム情報をメモリ71に記憶して、復号処理回路72と共にデコード処理を行なう。   In step S47, it is determined whether it is necessary to transfer a predetermined decoding program necessary for decoding the video data in the transfer destination printer 202 with respect to the video data for which the transfer command has been issued. Reads out a necessary decoding program from the ROM 74 at step S48 and transfers it to the printer 202 by Async (or ISO). The printer 202 stores the received decoding program information in the memory 71 and performs decoding processing together with the decoding processing circuit 72.

また、ステップS47として、あらかじめハードまたはソフト的なデコード手段を具備しているか、または過去に同じデコードプログラムを転送済であって既に今回必要とするデコード情報がメモリ71に記憶されているときなど、デコードプログラムの転送が必要でないと判断されたときはデコードプログラムの転送は行わず、映像データの転送に移る。   Further, as step S47, when hardware or software decoding means is provided in advance, or when the same decoding program has been transferred in the past and decoding information required this time is already stored in the memory 71, etc. When it is determined that the transfer of the decoding program is not necessary, the transfer of the decoding program is not performed and the process proceeds to the transfer of the video data.

つづいて、ステップS49として転送指令した映像データを、記録媒体から読み出して圧縮された状態のままメモリ15から出力して、プリンタへISO転送する。プリンタでは所定の動作手順に基づき、既存の、または転送済みのデコードプログラムを用いて転送された映像データのデコード処理が行われ、映像データのプリント処理を開始する。   Subsequently, the video data instructed to be transferred in step S49 is read from the recording medium and output from the memory 15 in a compressed state, and is ISO-transferred to the printer. In the printer, based on a predetermined operation procedure, the video data transferred using an existing or transferred decoding program is decoded, and the video data printing process is started.

ステップS50として、所望の映像データについて転送が終了すると、ステップS51として他の映像データの転送を行う選択を行い、他の映像を選択するときはステップS45に戻り映像選択から繰り返し、他の映像を選択しないときはこれにてこれで終了するものとする。   When the transfer of the desired video data is completed in step S50, a selection is made to transfer other video data in step S51. When another video is selected, the process returns to step S45 to repeat the video selection and repeat the other video. If not selected, this is the end of this.

常時、指示された映像データ転送モード実行に伴なってステップS31にリターンし、本フローは繰り返される。   At all times, the process returns to step S31 with execution of the instructed video data transfer mode, and this flow is repeated.

以上のようにして、第1の実施の形態のシステムと、第2の実施の形態のシステムとを組み合わせることができる。このシステムでは、デコードプログラム情報を受信してそれにしたがって符号化データを復号する機器と、様々な方式の復号手順を実行する回路を内蔵した機器とに対しては符号化データを送信し、復号する機能を有していない機器に対しては符号化されていないデータを送信する。このため、データ送信にようする時間が短縮され、また、記憶領域の利用効率が高まる。   As described above, the system of the first embodiment and the system of the second embodiment can be combined. In this system, encoded data is transmitted and decoded to a device that receives the decoding program information and decodes the encoded data according to the decoding program information and a device that has a circuit that executes a decoding procedure of various methods. Unencoded data is transmitted to a device that does not have a function. For this reason, the time for data transmission is shortened, and the utilization efficiency of the storage area is increased.

なお、本実施形態では、記録媒体に圧縮記録した映像データを用いて説明しているが、記録した映像に限らず、撮像装置より入力した映像データであって記録処理が行わなれていない圧縮映像データを用いたものであってもよい。   In this embodiment, the video data compressed and recorded on the recording medium is described. However, the video is not limited to the recorded video, but is compressed video that is video data input from the imaging apparatus and has not been recorded. Data may be used.

また、実施の形態における記録再生装置は主として動画及び静止画の映像データに関したものであり、カメラ一体型VTRやデジタルカメラを意識したものであるが、他の記録または再生装置であるのDVDやMD、CD、PCなどのデジタル機器であってもよく、扱うデータも映像データに限らず音声データや各種ファイルデータなどであっても構わない。   The recording / reproducing apparatus in the embodiment mainly relates to video data of moving images and still images, and is conscious of a camera-integrated VTR and a digital camera. It may be a digital device such as an MD, CD, or PC, and the data handled is not limited to video data, and may be audio data or various file data.

[他の実施形態]
なお、本発明は、複数の機器(例えばホストコンピュータ,インタフェイス機器,リーダ,プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機,ファクシミリ装置など)に適用してもよい。
[Other Embodiments]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), or a device (for example, a copier, a facsimile device, etc.) including a single device. You may apply to.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても達成される。この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   Another object of the present invention is to supply a storage medium storing software program codes for implementing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. This can also be achieved by reading and executing the program code stored in. 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.

プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。   As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. A case where part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing is also included.

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

第1の実施の形態のネットワーク一例を示した図である。It is the figure which showed an example of the network of 1st Embodiment. 第1の実施の形態を適用した記録再生装置、プリンタ装置、PCのブロック図である。1 is a block diagram of a recording / reproducing apparatus, a printer apparatus, and a PC to which a first embodiment is applied. 従来例で、デジタルカメラ、PC、プリンタをPCを中心に接続したときの構成を示すブロック図である。FIG. 10 is a block diagram illustrating a configuration when a digital camera, a PC, and a printer are connected around a PC in a conventional example. 本発明における第1の実施の形態の記録再生装置での動作の流れを示すフローチャート。6 is a flowchart showing a flow of operations in the recording / reproducing apparatus according to the first embodiment of the present invention. 本発明の第2,第3のの実施の形態のネットワーク一例を示した図である。It is the figure which showed an example of the network of the 2nd, 3rd embodiment of this invention. 第2の実施の形態を適用した記録再生装置とプリンタ装置のブロック図である。It is a block diagram of a recording / reproducing apparatus and a printer apparatus to which a second embodiment is applied. 1394シリアルバスを用いて接続されたネットワーク構成の一例を示す図である。It is a figure which shows an example of the network structure connected using 1394 serial bus. 1394シリアルバスの構成要素を表す図である。It is a figure showing the component of 1394 serial bus. 1394シリアルバスのアドレスマップを示す図である。It is a figure which shows the address map of 1394 serial bus. 1394シリアルバスケーブルの断面図である。It is sectional drawing of a 1394 serial bus cable. DS−Link符号化方式を説明するための図である。It is a figure for demonstrating a DS-Link encoding system. 1394シリアルバスで各ノードのIDを決定する為のトポロジ設定を説明するための図である。It is a figure for demonstrating the topology setting for determining ID of each node by 1394 serial bus. 1394シリアルバスでのアービトレーションを説明するための図である。It is a figure for demonstrating the arbitration in a 1394 serial bus. アシンクロナス転送の時間的な状態遷移を表す基本的な構成図である。It is a basic block diagram showing the time state transition of asynchronous transfer. アシンクロナス転送のパケットのフォーマットの一例の図である。It is a figure of an example of the format of the packet of asynchronous transfer. アイソクロナス転送の時間的な状態遷移を表す基本的な構成図である。It is a basic block diagram showing temporal state transition of isochronous transfer. アイソクロナス転送のパケットのフォーマットの一例の図である。It is a figure of an example of the format of the packet of isochronous transfer. 1394シリアルバスで実際のバス上を転送されるパケットの様子を示したバスサイクルの一例の図である。It is a figure of an example of the bus cycle which showed the mode of the packet transferred on the actual bus | bath by 1394 serial bus. バスリセットからノードIDの決定までの流れを示すフローチャート図である。It is a flowchart figure which shows the flow from a bus reset to determination of node ID. バスリセットにおける親子関係決定の流れを示すフローチャート図である。It is a flowchart figure which shows the flow of the parent-child relationship determination in a bus reset. バスリセットにおける親子関係決定後から、ノードID決定までの流れを示すフローチャート図である。It is a flowchart figure which shows the flow after the parent-child relationship determination in bus reset to node ID determination. アービトレーションを説明するためのフローチャート図である。It is a flowchart for demonstrating arbitration. 第3の実施の形態を適用した記録再生装置とプリンタ装置のブロック図である。It is a block diagram of a recording / reproducing apparatus and a printer apparatus to which a third embodiment is applied. 第2の実施の形態の動作を示すフローチャートである。It is a flowchart which shows operation | movement of 2nd Embodiment. 第3の実施の形態の動作を示すフローチャートである。It is a flowchart which shows operation | movement of 3rd Embodiment.

Claims (27)

所定の方式でデータを符号化する符号化手段と、
符号化されたままの状態でデータを送信する第1のモードと、符号化前のデータ又は符号化後のデータを混在した通信形態で送信する第2のモードとのいずれかによりデータを通信先のノードに送信する、アイソクロナス転送及びアシンクロナス転送とが可能な送信手段と、
前記符号化手段による符号化方式が通信先のノードが備える復号手段に対応する符号化方式である場合には第1のモードで、対応しない場合には第2のモードでデータを送信するように前記送信手段を制御する制御手段と
を備えることを特徴とするデータ通信装置。
Encoding means for encoding data in a predetermined manner;
The communication destination is either the first mode in which data is transmitted in an encoded state or the second mode in which data is transmitted in a communication mode in which data before encoding or data after encoding is mixed. Transmitting means capable of isochronous transfer and asynchronous transfer,
The data is transmitted in the first mode when the encoding method by the encoding unit is an encoding method corresponding to the decoding unit included in the communication destination node, and in the second mode otherwise. A data communication apparatus comprising: control means for controlling the transmission means.
前記送信手段は、アイソクロナス転送により前記データを送信する手段であることを特徴とする請求項1に記載のデータ通信装置。   The data communication apparatus according to claim 1, wherein the transmission unit is a unit that transmits the data by isochronous transfer. 前記データは画像データであることを特徴とする請求項1に記載のデータ通信装置。   The data communication apparatus according to claim 1, wherein the data is image data. 前記制御手段は、アイソクロナス転送による通信によって前記通信先のノードが前記符号化手段による符号化方式に対応しているかを判定することを特徴とする請求項1に記載のデータ通信装置。   2. The data communication apparatus according to claim 1, wherein the control unit determines whether or not the communication destination node corresponds to an encoding method by the encoding unit by communication using isochronous transfer. 前記送信手段は、IEEE1394規格に適合した送信を行なう手段であることを特徴とする請求項1に記載のデータ通信装置。   2. The data communication apparatus according to claim 1, wherein the transmission means is means for performing transmission conforming to the IEEE 1394 standard. 前記制御手段は、シンクロナス転送による通信による適正な応答がない場合には、前記通信先のノードが前記符号化手段による符号化方式に対応していると判定することを特徴とする請求項4に記載のデータ通信装置。   5. The control unit according to claim 4, wherein when there is no appropriate response due to communication by synchronous transfer, the control unit determines that the communication destination node is compatible with an encoding method by the encoding unit. The data communication apparatus according to 1. 前記適正な返答は、所定期間内の返答であることを特徴とする請求項6に記載のデータ通信装置。   The data communication apparatus according to claim 6, wherein the appropriate response is a response within a predetermined period. 前記送信手段は、通信先のノードが復号手段を備えていない場合には、第2のモードでデータを送信することを特徴とする請求項1に記載のデータ通信装置。   The data communication apparatus according to claim 1, wherein the transmission unit transmits data in the second mode when a communication destination node does not include a decoding unit. 通信先のノードから、該ノードが備える復号手段の有無と、復号手段がある場合には、その構成や圧縮方式などの情報を受信する受信手段を更に備え、
前記第1のモードと第2のモードといずれで送信するかは、前記受信手段により受信した情報に基づくことを特徴とする請求項1または2に記載のデータ通信装置。
From the communication destination node, the presence or absence of the decoding means provided in the node, and if there is a decoding means, further comprises receiving means for receiving information such as the configuration and compression method,
3. The data communication apparatus according to claim 1, wherein whether to transmit in the first mode or the second mode is based on information received by the receiving unit.
所定の方式でデータを符号化する符号化手段と、
該符号化手段により符号化されたデータを復号する復号手順を含むプログラム情報を送信する第1送信手段と、
前記符号化手段により符号化されたデータを送信する、アイソクロナス転送とアシンクロナス転送とが可能な第2の送信手段と
を備えることを特徴とするデータ通信装置。
Encoding means for encoding data in a predetermined manner;
First transmission means for transmitting program information including a decoding procedure for decoding data encoded by the encoding means;
A data communication apparatus comprising: a second transmission unit configured to transmit the data encoded by the encoding unit and capable of isochronous transfer and asynchronous transfer.
通信先のノードから、該ノードが備える復号手段についての、構成や圧縮方式などを示す情報を受信する受信手段を更に備え、
前記第1の送信手段は、前記受信手段により受信した情報に基づいてプログラム情報を送信することを特徴とする請求項10に記載のデータ通信装置。
A receiving unit that receives information indicating a configuration, a compression method, and the like of the decoding unit included in the node from the communication destination node;
The data communication apparatus according to claim 10, wherein the first transmission unit transmits program information based on information received by the reception unit.
符号化された映像データを復号してから送信する第3の送信手段を更に備え、
通信先のノードが、前記符号化手段により符号化されたデータを復号する復号手段を備えている場合には前記第2の送信手段により符号化データを送信し、
通信先のノードが、プログラム情報を受信すれば前記符号化手段により符号化されたデータを復号できる場合には、前記送信手段によりプログラム情報を送信するとともに前記第2の送信手段により符号化データを送信し、
通信先のノードが、前記符号化手段により符号化されたデータを復号できない場合には、前記第3の送信手段によりデータを送信することを特徴とする請求項10に記載のデータ通信装置。
A third transmission means for decoding the encoded video data and transmitting the decoded video data;
When the communication destination node includes a decoding unit that decodes the data encoded by the encoding unit, the encoded data is transmitted by the second transmission unit,
If the communication destination node receives the program information and can decode the data encoded by the encoding means, the transmission means transmits the program information and the second transmission means transmits the encoded data. Send
11. The data communication apparatus according to claim 10, wherein when the communication destination node cannot decode the data encoded by the encoding unit, the third transmission unit transmits the data.
映像データを撮影する撮像手段を更に備えることを特徴とする請求項1乃至12のいずれかに記載のデータ通信装置。   The data communication apparatus according to claim 1, further comprising an imaging unit that captures video data. 符号化手段を備えた第1のノードと、第2のノードを接続してなるデータ通信システムであって、
前記第1のノードは、所定の方式でデータを符号化する符号化手段と、
符号化されたままの状態でデータを送信する第1のモードと、符号化前のデータ又は符号化後のデータを混在した通信形態で送信する第2のモードとのいずれかによりデータを第2のノードに送信する、アイソクロナス転送及びアシンクロナス転送とが可能な送信手段と、
前記符号化手段による符号化方式が第2のノードが備える復号手段に対応する符号化方式である場合には第1のモードで、対応しない場合には第2のモードでデータを第2のモードに送信するように前記送信手段を制御する制御手段と
を備えることを特徴とするデータ通信システム。
A data communication system in which a first node having an encoding means and a second node are connected,
The first node includes encoding means for encoding data in a predetermined manner;
The second data is transmitted in either the first mode in which data is transmitted in an encoded state or the second mode in which data is transmitted in a communication mode in which data before encoding or data after encoding is mixed. Transmitting means capable of isochronous transfer and asynchronous transfer,
When the encoding method by the encoding means is an encoding method corresponding to the decoding means included in the second node, the data is transferred to the second mode in the first mode. And a control means for controlling the transmission means so as to transmit to the data communication system.
前記送信手段は、アイソクロナス転送により前記データを送信する手段であることを特徴とする請求項14に記載のデータ通信システム。   15. The data communication system according to claim 14, wherein the transmission means is means for transmitting the data by isochronous transfer. 前記データは画像データであることを特徴とする請求項14に記載のデータ通信システム。   The data communication system according to claim 14, wherein the data is image data. 前記制御手段は、アイソクロナス転送による通信によって前記通信先のノードが前記符号化手段による符号化方式に対応しているかを判定することを特徴とする請求項14に記載のデータ通信システム。   15. The data communication system according to claim 14, wherein the control unit determines whether or not the communication destination node corresponds to an encoding method by the encoding unit by communication using isochronous transfer. 前記送信手段は、IEEE1394規格に適合した送信を行なう手段であることを特徴とする請求項14に記載のデータ通信システム。   15. The data communication system according to claim 14, wherein the transmission means is means for performing transmission conforming to the IEEE 1394 standard. 前記制御手段は、シンクロナス転送による通信による適正な応答がない場合には、前記通信先のノードが前記符号化手段による符号化方式に対応していると判定することを特徴とする請求項17に記載のデータ通信システム。   The control means determines that the node of the communication destination corresponds to the encoding method by the encoding means when there is no appropriate response by communication by synchronous transfer. The data communication system described in 1. 前記適正な返答は、所定期間内の返答であることを特徴とする請求項19に記載のデータ通信システム。   The data communication system according to claim 19, wherein the appropriate response is a response within a predetermined period. 前記第1のノードは、第2のノードにデータを送信する前に、第2のノードに対して、前記符号化手段により符号化されたデータを復号する手段を備えているか問い合わせ、前記第2のノードからの応答に基づいて、データを符号化したまま送信するか、復号して送信するかを決定することを特徴とする請求項14に記載にデータ通信システム。   Before sending data to the second node, the first node inquires of the second node whether it has means for decoding the data encoded by the encoding means, and the second node 15. The data communication system according to claim 14, wherein the data communication system determines whether to transmit the data in an encoded state or to decode and transmit the data based on a response from the node. 符号化手段と該符号化手段で符号化されたデータを復号するためのプログラム情報を記憶する記憶手段とを備えた第1のノードと、プログラム情報に基づいて符号化データを復号する第2のノードとを接続してなるデータ通信システムであって、
前記第1のノードは、所定の方式でデータを符号化する符号化手段と、
符号化されたままの状態でデータを送信する第1のモードと、符号化前のデータ又は符号化後のデータを混在した通信形態で送信する第2のモードとのいずれかによりデータを第2のノードに送信する、アイソクロナス転送及びアシンクロナス転送とが可能な送信手段と、
前記符号化手段による符号化方式が第2のノードが備える復号手段に対応する符号化方式である場合には第1のモードで、対応しない場合には第2のモードでデータを第2のモードに送信するように前記送信手段を制御する制御手段と
を備えることを特徴とするデータ通信システム。
A first node comprising encoding means and storage means for storing program information for decoding data encoded by the encoding means; and a second node for decoding encoded data based on the program information A data communication system formed by connecting nodes,
The first node includes encoding means for encoding data in a predetermined manner;
The second data is transmitted in either the first mode in which data is transmitted in an encoded state or the second mode in which data is transmitted in a communication mode in which data before encoding or data after encoding is mixed. Transmitting means capable of isochronous transfer and asynchronous transfer,
When the encoding method by the encoding means is an encoding method corresponding to the decoding means included in the second node, the data is transferred to the second mode in the first mode. And a control means for controlling the transmission means so as to transmit to the data communication system.
前記第1のノードは、第2のノードにデータを送信する前に、第2のノードに対して、前記符号化手段により符号化されたデータを復号するための往路グラム情報を有しているか問い合わせ、前記第2のノードからの応答に基づいて、前記プログラム情報をデータとともに送信するか否かを決定することを特徴とする請求項22に記載にデータ通信システム。   Does the first node have forward gram information for decoding the data encoded by the encoding means to the second node before transmitting the data to the second node? 23. The data communication system according to claim 22, wherein whether to transmit the program information together with data is determined based on an inquiry and a response from the second node. 前記第1のノードは画像を撮影する撮像手段を更に備え、
前記第2のノードは受信したデータを印刷出力する出力手段を更に備えることを特徴とする請求項22乃至23のいずれかに記載のデータ通信システム。
The first node further comprises imaging means for taking an image,
The data communication system according to any one of claims 22 to 23, wherein the second node further includes output means for printing out the received data.
所定の方式で符号化されたデータを送信するデータ通信方法であって、
符号化されたデータを復号する復号手順を含むプログラム情報を送信する第1の送信工程と、
符号化されたデータを送信する、アイソクロナス転送とアシンクロナス転送とが可能な第2の送信工程と
を備えることを特徴とするデータ通信方法。
A data communication method for transmitting data encoded by a predetermined method,
A first transmission step of transmitting program information including a decoding procedure for decoding encoded data;
A data communication method comprising: a second transmission step of transmitting encoded data and capable of isochronous transfer and asynchronous transfer.
所定の方式で符号化されたデータを送信するデータ通信プログラムを記憶する記憶媒体であって、
前記プログラムは、符号化されたデータを復号する復号手順を含むプログラム情報を送信する第1の送信工程のコードと、
符号化されたデータを送信する、アイソクロナス転送とアシンクロナス転送とが可能な第2の送信工程のコードと
を備えることを特徴とする記憶媒体。
A storage medium for storing a data communication program for transmitting data encoded by a predetermined method,
The program includes a first transmission step code for transmitting program information including a decoding procedure for decoding encoded data;
A storage medium comprising: a second transmission step code capable of isochronous transfer and asynchronous transfer for transmitting encoded data.
所定の方式で符号化されたデータを送信するデータ通信プログラムを記憶する記憶媒体であって、
前記プログラムは、通信先ノードから、該ノードが、前記所定方式で符号化されたデータを復号するためのプログラム情報を有しているか否かを示す情報を獲得し、有している場合には、符号化されたデータをそのまま送信し、有していない場合には、符号化されたデータと、符号化されたデータを復号するためのプログラム情報とを送信するコードを含むことを特徴とする記憶媒体。
A storage medium for storing a data communication program for transmitting data encoded by a predetermined method,
The program acquires information indicating whether or not the node has program information for decoding the data encoded by the predetermined method from the communication destination node. The encoded data is transmitted as it is, and when it does not have, the encoded data and the code for transmitting the program information for decoding the encoded data are included. Storage medium.
JP2005250364A 2005-08-30 2005-08-30 Data communication apparatus, method, and system, and storage medium Pending JP2006050653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005250364A JP2006050653A (en) 2005-08-30 2005-08-30 Data communication apparatus, method, and system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005250364A JP2006050653A (en) 2005-08-30 2005-08-30 Data communication apparatus, method, and system, and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP9102582A Division JPH10285240A (en) 1997-04-04 1997-04-04 Data communication equipment and its method, data communication system and storage medium

Publications (1)

Publication Number Publication Date
JP2006050653A true JP2006050653A (en) 2006-02-16

Family

ID=36028565

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005250364A Pending JP2006050653A (en) 2005-08-30 2005-08-30 Data communication apparatus, method, and system, and storage medium

Country Status (1)

Country Link
JP (1) JP2006050653A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009119886A1 (en) * 2008-03-26 2009-10-01 セイコーエプソン株式会社 Liquid storing body

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009119886A1 (en) * 2008-03-26 2009-10-01 セイコーエプソン株式会社 Liquid storing body
JP2009255550A (en) * 2008-03-26 2009-11-05 Seiko Epson Corp Liquid storing body
US8335978B2 (en) 2008-03-26 2012-12-18 Seiko Epson Corporation Liquid container

Similar Documents

Publication Publication Date Title
US6683999B2 (en) Image transmission apparatus and method utilizing different transmission modes for transmitting moving image data and still image data
JP3423620B2 (en) Imaging device and control device, imaging device control system, control method therefor, and storage medium
US20010047443A1 (en) Data communication apparatus, method and system and programs for data communication process stored in computer readable storage medium
JP2000358033A (en) Data communication system and data communication method
JP2004030111A (en) Apparatus, method, and system for information processing and storage medium
JP4072215B2 (en) Image processing apparatus, control method therefor, and image processing system
JPH10285240A (en) Data communication equipment and its method, data communication system and storage medium
JP3599581B2 (en) Electronic device and computer-readable storage medium
JP3912841B2 (en) Data communication device
JP3501613B2 (en) Data communication system, print system and data communication device
JP3682512B2 (en) Image capturing apparatus and control method thereof, printing system, printing method, and printing apparatus and control method thereof
JP3774540B2 (en) Data transfer method, image processing system and apparatus
JP2006050653A (en) Data communication apparatus, method, and system, and storage medium
JP3890124B2 (en) Data communication system, data communication method, data communication node, and recording medium
JP3814428B2 (en) Camera control method for terminal device
JP4217727B2 (en) Digital device and control method thereof
JP4401446B2 (en) Digital camera and control method thereof
JP4653955B2 (en) Electronic device and control method thereof
JP3774542B2 (en) Data processing method, data processing apparatus, printer, and storage medium
JPH11227286A (en) Print system and print control method
JP2004030109A (en) Apparatus and method for information processing and storage medium stored with program thereof
JP2002064511A (en) Data communication system, electronic device and method for controlling them
JP3862349B2 (en) Information processing system, image processing system and method thereof, information processing apparatus, and computer-readable memory
JP2001147790A (en) Device and method for processing information and storage medium
JP2002144681A (en) Information processor and processing method, and information processing system and storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070416

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070810