JP2002185560A - Serial transfer method - Google Patents

Serial transfer method

Info

Publication number
JP2002185560A
JP2002185560A JP2000382432A JP2000382432A JP2002185560A JP 2002185560 A JP2002185560 A JP 2002185560A JP 2000382432 A JP2000382432 A JP 2000382432A JP 2000382432 A JP2000382432 A JP 2000382432A JP 2002185560 A JP2002185560 A JP 2002185560A
Authority
JP
Japan
Prior art keywords
transmission
data
value
register
packet
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
JP2000382432A
Other languages
Japanese (ja)
Inventor
Hisaaki Shibamoto
尚昭 柴本
Hidekazu Takakura
英一 高倉
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2000382432A priority Critical patent/JP2002185560A/en
Publication of JP2002185560A publication Critical patent/JP2002185560A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a serial transfer method by which the speed of transmission and reception is further increased by shortening the idle time as much as possible. SOLUTION: The serial transfer method is provided with a first counter 31 which can measure the time between arbitrary transactions, a transmission register 33 in which an arbitrary value can be set, a second counter 32 which operates up to the set value in the transmission register 33 and a processing circuit for transmitting a data transmission packet when the value of the second counter becomes identical with the value of the transmission register 33.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2台以上の機器が
シリアルバスで繋がれた系において、一方的に、または
互いにシリアルデータを送受信するためのシリアル転送
方式に関し、特に、送信側機器におけるシリアル転送方
式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial transfer system for transmitting and receiving serial data unilaterally or mutually in a system in which two or more devices are connected by a serial bus. It relates to a serial transfer method.

【0002】[0002]

【従来の技術】近年、デジタル信号処理技術の進展およ
びメディアの異なる機器間のデータ共有の必要性が高ま
るにつれ、よく知られたIEEE1394規格のシリア
ルバス搭載の機器が数多く商品化されている。このIE
EE1394規格のシリアルバス上に接続された複数の
機器は、バス上において各機器固有のノード番号が割り
当てられ、相手のノード番号を指定することにより、特
定の機器に対して、所望のパケットを送信することがで
きる。
2. Description of the Related Art In recent years, with the development of digital signal processing technology and the need for data sharing between devices of different media, many well-known devices equipped with a serial bus of the IEEE 1394 standard have been commercialized. This IE
A plurality of devices connected to the EE1394 standard serial bus are assigned node numbers unique to each device on the bus, and transmit a desired packet to a specific device by designating a partner node number. can do.

【0003】ここで、図3、図4を参照して、送信側の
ノードから受信側のノードヘデータを書き込む、いわゆ
るライトトランザクションと呼ばれる動作について説明
する。なお、トランザクションには2通りの方式が存在
し、一方は説明しないスプリットトランザクションと呼
ばれる方式であり、他方は以下に示すユニファイドトラ
ンザクションと呼ばれる方式である。
An operation called a write transaction, in which data is written from a transmitting node to a receiving node, will be described with reference to FIGS. Note that there are two types of transactions, one is a method called a split transaction, which is not described, and the other is a method called a unified transaction described below.

【0004】図3は、最も単純なIEEE1394規格
のシリアルバス上に2台のノードが接続された場合にお
ける、ライトトランザクション動作の一例を示す模式図
である。図3において、100は送信側ノード、101
は受信側ノード、102および105は互いに異なるデ
ータ送信パケット、103および106はデータ受信完
了信号、104はビジー状態通知信号をそれぞれ示す。
FIG. 3 is a schematic diagram showing an example of a write transaction operation when two nodes are connected on the simplest IEEE 1394 standard serial bus. In FIG. 3, reference numeral 100 denotes a transmitting node, 101
Indicates a receiving node, 102 and 105 indicate different data transmission packets, 103 and 106 indicate a data reception completion signal, and 104 indicates a busy state notification signal.

【0005】ライトトランザクション動作においては、
図3に示すように、まず、送信側ノード100が、デー
タ送信パケット102を受信側ノード101へ送信す
る。受信側ノード101では、データ送信パケット10
2を受信可能であれば、データ受信完了信号103を送
信側ノード100へ送信し、パケットの送受信が完了す
る。
In the write transaction operation,
As shown in FIG. 3, first, the transmitting node 100 transmits a data transmission packet 102 to the receiving node 101. In the receiving node 101, the data transmission packet 10
2 can be received, a data reception completion signal 103 is transmitted to the transmission side node 100, and transmission and reception of the packet are completed.

【0006】一方、受信側ノード101において、次の
データ送信パケット105を受信不可能であれば、受信
できなかったことを示すビジー状態通知信号104を送
信側ノード100へ送信する。ビジー状態通知信号10
4を受信した送信側ノード100は、準備ができ次第、
再度同一のデータ送信パケット105を送信する。ここ
で、受信側ノード101からデータ受信完了信号103
を受信すれば、パケットの送受信が完了し、再度、ビジ
ー状態通知信号104を受信すれば、同一のデータ送信
パケット105を送信する。
[0006] On the other hand, if the receiving node 101 cannot receive the next data transmission packet 105, the receiving node 101 transmits a busy state notification signal 104 to the transmitting node 100 indicating that the packet could not be received. Busy status notification signal 10
4 that has received 4
The same data transmission packet 105 is transmitted again. Here, the data reception completion signal 103 from the receiving node 101
, The transmission / reception of the packet is completed. If the busy state notification signal 104 is received again, the same data transmission packet 105 is transmitted.

【0007】このようして、送信側ノード100は受信
側ノード101からデータ受信完了信号106を受信す
るまで、データ送信パケット102の送信を繰り返すこ
とにより、所望のパケットの送信を行うことができる。
In this way, the transmitting node 100 can transmit a desired packet by repeating transmission of the data transmission packet 102 until receiving the data reception completion signal 106 from the receiving node 101.

【0008】図4は、IEEE1394規格のシリアル
バス上に4台のノードが接続された場合に、複数のライ
トトランザクションを行う場合の模式図である。図4に
おいて、110は送信側ノードA、111は受信側ノー
ドA、112はデータ送信パケットA、113はデータ
受信完了信号A、114はビジー状態通知信号A、12
0は送信側ノードB、121は受信側ノードB、122
はデータ送信パケットB、123はデータ受信完了信号
Bをそれぞれ示す。なお、図3、4においては、データ
がIEEE1394規格のシリアルバス上を流れる時間
は考慮しないものとする。
FIG. 4 is a schematic diagram showing a case in which a plurality of write transactions are performed when four nodes are connected on an IEEE 1394 standard serial bus. In FIG. 4, reference numeral 110 denotes a transmitting node A, 111 denotes a receiving node A, 112 denotes a data transmission packet A, 113 denotes a data reception completion signal A, 114 denotes a busy state notification signal A, 12
0 is the transmitting node B, 121 is the receiving node B, 122
Indicates a data transmission packet B, and 123 indicates a data reception completion signal B. In FIGS. 3 and 4, the time during which data flows on the IEEE 1394 standard serial bus is not considered.

【0009】図4において、送信側ノードA110は、
受信側ノードA111との間でライトトランザクション
を行い、送信側ノードB120は、受信側ノードB12
1との間でライトトランザクションを行うものとする。
In FIG. 4, a transmitting node A 110 is
A write transaction is performed with the receiving-side node A111, and the transmitting-side node B120
It is assumed that a write transaction is performed between the write transaction and the write transaction.

【0010】それぞれのライトトランザクションにおい
て、前述した通り、送信側ノードA110は、データ送
信パケットA112を送信し、受信側ノードA111か
らデータ受信完了信号A113を受信することで完了
し、送信側ノードB120は、データ送信パケットB1
22を送信し、受信側ノードB121からデータ受信完
了信号B123を受信することにより完了する。
In each write transaction, as described above, the transmitting node A110 completes by transmitting the data transmission packet A112 and receiving the data reception completion signal A113 from the receiving node A111. , Data transmission packet B1
22 is transmitted, and the process is completed by receiving the data reception completion signal B123 from the receiving node B121.

【0011】この時、1394シリアルバス上に、1つ
のパケットしか存在することができないので、送信側ノ
ードA110や送信側ノードB120は、IEEE13
94規格のシリアルバス上にパケットを送信する前に、
アービトレーションと呼ばれる手続きにより、バスの使
用権を確保する必要がある。このため、送信側ノードA
110がパケットを送信している間は、送信側ノードB
120はパケットを送信できず、IEEE1394規格
のシリアルバスが解放されるまで待った後に、パケット
を送信する。
At this time, since only one packet can exist on the 1394 serial bus, the transmitting node A 110 and transmitting node B 120
Before sending a packet on the 94 standard serial bus,
It is necessary to secure the right to use the bus by a procedure called arbitration. Therefore, the transmitting node A
While the node 110 is transmitting a packet, the transmitting node B
120 cannot transmit a packet and waits until the IEEE 1394 serial bus is released before transmitting the packet.

【0012】以上のような仕組みにより、複数のライト
トランザクションが発生した時に、順番にIEEE13
94規格のシリアルバスを使用することにより、それぞ
れのパケット送受信を完了することができる。
According to the above-described mechanism, when a plurality of write transactions occur, the IEEE 13
By using a serial bus of the 94 standard, transmission and reception of each packet can be completed.

【0013】[0013]

【発明が解決しようとする課題】例えば、前述のIEE
E1394規格のシリアルバスにおいて、ファイルデー
タを良く知られたDirect Print Prot
ocol(以下、DPPと称す)などの上位プロトコル
を使用して転送する場合、IEEE1394規格の制御
用LSIが固有に持つデータ格納用メモリの大きさによ
り、一回のライト/リード・トランザクションで送受信
できるデータ量に制限が生じる。したがって、例えば、
1MBのデータを転送する場合に、512バイトのデー
タ格納用メモリを持つIEEE1394規格の制御用L
SIにおいては、各プロトコルにおける添付すべきヘッ
ダの大きさを無視したとしても、少なくとも2048回
のデータ送信トランザクションを発行しなければならな
い。
For example, the above-mentioned IEEE
In the E1394 standard serial bus, file data is stored in the well-known Direct Print Prot.
When transfer is performed using a higher-level protocol such as ocol (hereinafter, referred to as DPP), data can be transmitted and received in one write / read transaction depending on the size of the data storage memory inherent in the control LSI of the IEEE1394 standard. Data amount is limited. So, for example,
When transferring 1 MB of data, a control L of the IEEE 1394 standard having a 512-byte data storage memory
In SI, at least 2048 data transmission transactions must be issued even if the size of the header to be attached in each protocol is ignored.

【0014】図3で示すデータ送信パケットの送信時
に、送信側ノード100から送信されたデータ送信パケ
ットを、受信側ノード101が正常に受け取れなかった
場合には、送信側ノード100に対して、受信側ノード
101が現在ビジー状態であるというビジー状態通知信
号104を発行する。
When the receiving node 101 does not normally receive the data transmission packet transmitted from the transmitting node 100 at the time of transmitting the data transmitting packet shown in FIG. The side node 101 issues a busy state notification signal 104 indicating that it is currently busy.

【0015】ここで、ビジー状態通知信号104を受け
取った送信側ノード100では、データ再送信動作を行
う。このデータ再送信動作による再送パケット送信のタ
イミングは、送信側ノード100が再送時に必要なデー
タやデータの長さ、相手ノードを指定するためのレジス
タなどをセットできたか否かにより決まる。つまり、受
信側ノード101がデータ送信パケットを受け取ること
ができる状態に遷移した場合、前述の遷移状況を送信側
ノード100が監視することによって、送信側ノード1
00がデータの再送信を行うわけではない。
Here, the transmitting node 100 that has received the busy state notification signal 104 performs a data retransmission operation. The timing of retransmission packet transmission by this data retransmission operation is determined by whether or not the transmitting node 100 has set data necessary for retransmission, the length of data, a register for designating a partner node, and the like. In other words, when the receiving node 101 transitions to a state in which it can receive a data transmission packet, the transmitting node 100 monitors the above-mentioned transition state, and the transmitting node 1
00 does not retransmit the data.

【0016】したがって、受信側ノード101がデータ
を受け取れる状態に遷移していない場合でも、送信側ノ
ード100はデータの再送信動作を行うことがあり、そ
の場合、再びビジー状態通知信号104が返ってきて、
さらに当該ビジー状態通知信号104に対して再送信動
作を行うこととなるため、CPUに無駄な負荷をかける
とともに、バス使用権を占有してしまう。
Therefore, even if the receiving node 101 has not transitioned to a state in which data can be received, the transmitting node 100 may perform a data retransmission operation. In this case, the busy state notification signal 104 is returned again. hand,
Further, since the retransmission operation is performed for the busy state notification signal 104, a useless load is imposed on the CPU and the right to use the bus is occupied.

【0017】以上述べたように、送信側ノード100の
データ送信間隔時間の方が、受信側ノード101の受信
データ処理能力時間に比して短い場合には、1回のデー
タ送信毎に受信側ノード101が受信データの処理を行
った後、再びデータ送信パケット105を受信できる状
態に移行するまでに、送信側ノード100からの次のデ
ータの送信が行われ、その後に再送信動作が1回以上繰
り返し生じることとなってしまう。この場合、2048
回のデータ送信毎に前述した動作を繰り返すと、トータ
ルの転送速度は著しく低下し、さらにシリアルバスの占
有度が高くなってしまい他の機器間における通信をも阻
害してしまうという問題が生じる。
As described above, when the data transmission interval time of the transmitting node 100 is shorter than the receiving data processing capacity time of the receiving node 101, the receiving node 100 receives data every time data is transmitted. After the node 101 performs the processing of the received data, the next data is transmitted from the transmitting node 100 until the state where the data transmission packet 105 can be received again, and then the retransmission operation is performed once. This will occur repeatedly. In this case, 2048
If the above-described operation is repeated every data transmission, the total transfer speed is significantly reduced, the occupancy of the serial bus is increased, and the communication between other devices is hindered.

【0018】ところで、このような問題を未然に防ぐべ
く、前述したDPPにおいては、受信側ノード101の
内部仮想レジスタ上に受信時の処理能力を書き込んでお
き、送信側ノード100にその値を読んでもらい、デー
タ送信間隔の最適化を図ることもできるようになってい
る。しかしながら、このレジスタはオプションであり、
全てのDPP対応機器が実装している訳ではなく、かつ
DPPのプロトコルに依存しているため、他のプロトコ
ルでは使用できないという問題があった。
In order to prevent such a problem, in the above-described DPP, the processing capability at the time of reception is written on an internal virtual register of the receiving node 101, and the value is read by the transmitting node 100. You can also optimize the data transmission interval. However, this register is optional,
There is a problem that not all DPP-compatible devices are implemented and cannot be used with other protocols because they depend on the DPP protocol.

【0019】また、同一のデータ送信パケット105の
送信動作において、ビジー状態通知信号104が複数回
返ってきてしまう問題に関しては、特開平11−177
75号公報に開示されたように、シリアルインタフェー
スバスで繋がれた機器間におけるデータの転送におい
て、送信側ノード100から受信側ノード101に対す
るあるデータ送信の際に、受信側ノード101がビジー
状態でありデータを受け取れなかった場合の再送信にお
いて、再送信動作がある任意の回数に達した場合、送信
側ノード100に実装されているインターバルレジスタ
の値を変更し、再送信に係るデータ送信パケット105
が出力される間隔を長い時間に再設定することにより、
再送間隔を長くし、2回目以降のビジー状態通知信号1
04を抑制し、円滑な再送信動作が可能となる。
Regarding the problem that the busy state notification signal 104 is returned a plurality of times in the transmission operation of the same data transmission packet 105, see JP-A-11-177.
As disclosed in Japanese Patent Publication No. 75-75, during data transfer between devices connected by a serial interface bus, when certain data is transmitted from the transmitting node 100 to the receiving node 101, the receiving node 101 is in a busy state. In the retransmission when there is no data received, if the retransmission operation reaches an arbitrary number, the value of the interval register mounted on the transmitting node 100 is changed, and the data transmission packet 105 related to the retransmission is changed.
By resetting the output interval to a longer time,
The retransmission interval is lengthened, and the second and subsequent busy state notification signals 1
04 is suppressed, and a smooth retransmission operation can be performed.

【0020】しかしながら、前記手段においては、2回
目以降のビジー状態通知信号104を抑制する可能性は
有るものの、データ送信パケット105毎に返ってきて
しまう1回目のビジー状態通知信号104を無くすこと
は不可能である。
However, in the above-mentioned means, there is a possibility that the second and subsequent busy state notification signals 104 may be suppressed, but the first busy state notification signal 104 returned for each data transmission packet 105 may be eliminated. Impossible.

【0021】また、具体的に、数メガバイトから数ギガ
バイトに及ぶファイルデータの送受信を考えた場合、上
記手段によりデータ送信パケット105の再送信動作の
回数を減らすことはできるが、送信データ間隔の最適化
を図ることができるわけではない。すなわち、受信側ノ
ード101が受信データの処理を終えることにより、デ
ータを受け取れる状態に遷移した場合、直ちに送信側ノ
ード100が次のデータ送信パケット105を送信しな
ければ、データ取得可能な状態遷移後のアイドル時間が
無駄となり、トータルの転送速度に大きな影響を及ぼし
てしまうことが考えられる。
Further, when the transmission and reception of file data ranging from several megabytes to several gigabytes is specifically considered, the number of retransmission operations of the data transmission packet 105 can be reduced by the above-mentioned means. It is not possible to achieve this. In other words, when the receiving node 101 has finished processing the received data and has transitioned to a state in which data can be received, if the transmitting node 100 does not immediately transmit the next data transmission packet 105, the state will be changed to a state in which data can be acquired. It is conceivable that the idle time is wasted and has a large effect on the total transfer speed.

【0022】本発明は、上述した事情に鑑みなされたも
のであり、アイドル時間を可能な限り短くすることによ
り、更なるデータ送受信の速度の高速化を図ることが可
能なシリアル転送方式を提供することを目的とする。
The present invention has been made in view of the above-described circumstances, and provides a serial transfer system capable of further increasing the data transmission / reception speed by shortening the idle time as much as possible. The purpose is to:

【0023】[0023]

【課題を解決するための手段】前述の問題を解決するた
めに、本発明のシリアル転送方式は、2台以上の機器が
シリアルバスで繋がれた系においてシリアルデータを送
受信するためのシリアル転送方式であって、任意のトラ
ンザクション間の時間を計測可能な第1のカウンタと、
任意の値をセット可能な送信レジスタと、前記送信レジ
スタにセットされた値まで動作する第2のカウンタと、
前記第2のカウンタの値が前記送信レジスタの値と同一
となった場合に、データ送信パケットを送信するための
処理回路とを備えたことを特徴とするものである。
In order to solve the above-mentioned problem, a serial transfer method according to the present invention is a serial transfer method for transmitting and receiving serial data in a system in which two or more devices are connected by a serial bus. A first counter capable of measuring the time between any transactions;
A transmission register that can set an arbitrary value, a second counter that operates up to the value set in the transmission register,
And a processing circuit for transmitting a data transmission packet when the value of the second counter becomes equal to the value of the transmission register.

【0024】この場合、前記第1のカウンタの値よりも
小さい任意の値を前記送信レジスタにセットし、その後
のデータ送信において、受信側ノードからビジー状態通
知信号が送信されてきた場合に、前記送信レジスタに前
記第1のカウンタで取得した値以下の範囲で、前回セッ
トした前記送信レジスタの値より大きな任意の値を再設
定することが可能である。
In this case, an arbitrary value smaller than the value of the first counter is set in the transmission register. In the subsequent data transmission, when a busy state notification signal is transmitted from the receiving node, An arbitrary value larger than the value of the transmission register set last time can be reset in the transmission register within a range equal to or less than the value obtained by the first counter.

【0025】また、前記第1のカウンタの値よりも小さ
い任意の値を前記送信レジスタにセットし、その後のデ
ータ送信において、受信側ノードからビジー状態通知信
号が送信されてきた場合に、前記送信レジスタに前記第
1のカウンタで取得した値以下の範囲で、前回セットし
た前記送信レジスタの値を再設定し、以後、前記値を固
定値として使用することが可能である。
Further, an arbitrary value smaller than the value of the first counter is set in the transmission register. In the subsequent data transmission, when a busy state notification signal is transmitted from the receiving node, the transmission is performed. It is possible to reset the value of the transmission register previously set in the register within a range equal to or less than the value obtained by the first counter, and thereafter use the value as a fixed value.

【0026】本発明のシリアル転送方式は、このような
構成を備えていることにより、データ送信側ノードがあ
る一定の大きさのデータ送信パケットを連続して送信す
る場合に、受信側ノードにおける受信データ処理能力に
合わせた送信タイミングでデータ送信パケットを送るこ
とが可能となるので、効率的な転送を行うことができ、
再送信を繰り返すことがなくなり、これに伴うシリアル
バスの輻輳を抑制することができる。
The serial transfer system of the present invention has such a configuration, and when the data transmitting node continuously transmits a data transmission packet of a certain size, the receiving node receives the data. Since data transmission packets can be sent at transmission timings that match the data processing capacity, efficient transfer can be performed,
Retransmission is not repeated, and consequent congestion of the serial bus can be suppressed.

【0027】[0027]

【発明の実施の形態】以下、図面に基づいて、本発明に
係るシリアル転送方式の実施形態を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of a serial transfer system according to the present invention will be described with reference to the drawings.

【0028】図1は、IEEE1394規格を用いてデ
ータ転送を行う際の送信側ノードを構成する装置の概略
図である。
FIG. 1 is a schematic diagram of an apparatus constituting a transmitting node when data is transferred using the IEEE 1394 standard.

【0029】図1において、31は任意のトランザクシ
ョン間の時間を計測可能な送信間隔計測カウンタ、32
はこの送信間隔計測カウンタ31と同一の周波数で動作
する任意でリセット可能な送信カウンタ、33は送信間
隔計測カウンタ31の値もしくは任意の値を設定可能な
送信レジスタ、34は送信カウンタ32と送信レジスタ
33の値を比較し、これらが同一の値であれば、データ
送信部36に対して送信を命令する信号を出力するため
の比較回路、35は送信に必要なデータの長さや相手ノ
ードの指定を、IEEE1394規格のLSIのレジス
タに書き込み、データ自体をこのLSIにセットするた
めの送信データセット部、36は比較回路34からデー
タパケット送信命令を受けるか、または任意のタイミン
グで、送信データセット部35においてセットされたデ
ータ送信パケットをシリアルバス上に送信可能なデータ
送信部、37は相手ノードから送信されてきた各種のI
EEE1394規格のパケットを受信するためのデータ
受信部、38はデータ受信部37において受信したIE
EE1394規格のパケットのヘッダを解析してCPU
などに通知したり、データを含むパケットであった場
合、データそのものを他のメモリに格納する受信データ
処理部である。
In FIG. 1, reference numeral 31 denotes a transmission interval measurement counter capable of measuring the time between arbitrary transactions;
Is a transmission counter that operates at the same frequency as the transmission interval measurement counter 31 and can be reset arbitrarily; 33 is a transmission register that can set the value of the transmission interval measurement counter 31 or any value; The values of 33 are compared, and if they are the same value, a comparing circuit for outputting a signal instructing the data transmitting unit 36 to transmit is provided. Is written in a register of an LSI of the IEEE 1394 standard, and the transmission data setting section 36 sets a data itself in this LSI. The transmission data setting section 36 receives a data packet transmission command from the comparison circuit 34 or at an arbitrary timing. A data transmission unit capable of transmitting the data transmission packet set in 35 on the serial bus, 37 A variety of I that has been transmitted from the node
A data receiving unit for receiving an IEEE 1394 standard packet;
Analyzes the header of the EE1394 standard packet and sets the CPU
This is a received data processing unit that notifies the other data or stores the data itself in another memory when the packet includes data.

【0030】また、図2は、データ転送を行う際に、I
EEE1394規格の系を介した2つの機器間における
データ送信時の動作を示す模式図である。図2におい
て、1は送信側ノード、2は受信側ノード、3〜6およ
び21はデータ送信パケットである。さらに詳しくは、
3は第1番目のデータ送信パケット、4〜6は同一のデ
ータを持つ第2番目のデータ送信パケット、21は第3
番目のデータ送信パケットである。
FIG. 2 shows that when data transfer is performed,
FIG. 4 is a schematic diagram showing an operation at the time of data transmission between two devices via a system based on the IEEE 1394 standard. In FIG. 2, 1 is a transmitting node, 2 is a receiving node, and 3 to 6 and 21 are data transmission packets. For more information,
3 is a first data transmission packet, 4 to 6 are second data transmission packets having the same data, and 21 is a third data transmission packet.
This is the data transmission packet.

【0031】また、図2において、7、10および22
はデータ受信完了信号、8および9はビジー状態通知信
号、11は送信側ノード1がデータ送信の際に行うレジ
スタ書き込みなどに費やす送信データセット時間、13
は受信側ノード2がデータを受け取った後にレジスタか
ら読み出して上位の層へ通知などを行い次のデータ送信
パケットを受け入れることができるようになるまでの受
信データ処理時間、12は送信間隔計測カウンタ31に
より計測した、新規データ送信のためのパラメータおよ
びデータのセット開始からデータ受信完了信号までの時
間、14は受信側ノード2が次のデータ送信パケットを
受け取ることができるようになってから、実際に次のデ
ータ送信パケットが来るまでの待ち時間、20は実際に
は送信されないが、送信可能なタイミングである第3番
目のデータ送信パケット、26は送信間隔計測カウンタ
により計測分12の値をセットされた送信レジスタ33
のセット値、23は「0」から始まって送信レジスタセ
ット値26にセットされた値まで動作する送信カウンタ
32の動作分である。
In FIG. 2, 7, 10 and 22
Is a data reception completion signal, 8 and 9 are busy state notification signals, 11 is a transmission data set time that the transmitting side node 1 spends on register writing and the like performed at the time of data transmission, 13
Is the reception data processing time until the receiving side node 2 receives data, reads it out of the register, notifies the upper layer, etc., and can accept the next data transmission packet. The time from the start of the setting of the parameters and data for new data transmission to the data reception completion signal, which is measured according to the above, is actually 14 since the receiving node 2 can receive the next data transmission packet. The waiting time until the next data transmission packet arrives, 20 is the third data transmission packet which is not actually transmitted, but is the transmittable timing, and 26 is the value of 12 measured by the transmission interval measurement counter. Transmission register 33
The set value 23 is an operation component of the transmission counter 32 starting from “0” and operating up to the value set in the transmission register set value 26.

【0032】ここで、受信データ処理時間13が、送信
データセット時間11より大きい場合のパケット送受信
動作について説明する。まず、送信側ノード1より第1
番目のデータ送信パケット3が送信され、受け取った受
信側ノード2からはデータ受信完了信号7が送信され
る。そして、データ受信完了信号7を受け取った送信側
ノード1では、すぐに第2番目のデータのセットを始
め、この動作開始時点において送信間隔計測カウンタ3
1の動作を開始させる。続いて、送信データセット時間
11を経過した後、第2番目のデータ送信パケット4を
送信する。ここで、送信側ノード1が送信したデータ送
信パケット4に対し、受信側ノード2は未だ第1番目の
データ送信パケット3を処理中であるため、ビジー状態
通知信号8を発行することとなる。
Here, the packet transmission / reception operation when the reception data processing time 13 is longer than the transmission data set time 11 will be described. First, the first node from the transmitting node 1
The data transmission packet 3 is transmitted, and the receiving node 2 that has received the data transmission complete signal 7 is transmitted. Then, the transmission-side node 1 that has received the data reception completion signal 7 immediately starts setting the second data.
1 is started. Subsequently, after the transmission data set time 11 has elapsed, the second data transmission packet 4 is transmitted. Here, since the receiving node 2 is still processing the first data transmitting packet 3 with respect to the data transmitting packet 4 transmitted by the transmitting node 1, the busy state notification signal 8 is issued.

【0033】この時、送信側ノード1は、データ送信パ
ケット4の再送信動作として、第2番目のデータである
データ送信パケット5の送信を行う準備を始め、準備が
でき次第、データ送信パケット5を送信する。ここで
は、再びビジー状態通知信号9を受け取ってしまうた
め、再度の再送信動作により、データ送信パケット4、
5と同一のデータがセットされたデータ送信パケット6
を送信する。
At this time, as a retransmission operation of the data transmission packet 4, the transmitting node 1 starts preparing for transmitting the data transmission packet 5 as the second data. Send Here, since the busy state notification signal 9 is received again, the data transmission packet 4,
Data transmission packet 6 in which the same data as 5 is set
Send

【0034】ここで、データ送信パケット6を正常に受
け取ったことを通知する信号であるデータ受信完了信号
10が、受信側ノード2から送信側ノード1に対して発
行されるまで、送信間隔計測カウンタ31を動作させ、
新しいデータの送信動作が開始されてから、受信側ノー
ド2がデータ送信パケット6を受け取ることができるま
での時間12を計測し、送信間隔計測カウンタ31の値
を得る。
Here, the transmission interval measurement counter continues until a data reception completion signal 10 which is a signal notifying that the data transmission packet 6 has been normally received is issued from the receiving node 2 to the transmitting node 1. 31
The time 12 from when the new data transmission operation is started to when the receiving node 2 can receive the data transmission packet 6 is measured, and the value of the transmission interval measurement counter 31 is obtained.

【0035】第1の実施例では、送信間隔計測カウンタ
31の値を送信レジスタ33にセットし、送信側ノード
1からの第3番目のデータ送信パケット21の送信時に
は、転送データの準備を開始すると同時に、送信間隔計
測カウンタ31と同一の周波数で動作する第2のカウン
タである送信カウンタ32を動作させ、送信カウンタ3
2における送信カウンタ動作分23の値が、送信レジス
タ33にセットした値である送信レジスタセット値26
と同一の値となった時、比較回路34からの命令により
データの送信を行う。すなわち、本来であればデータ送
信パケット20の位置で送信されるデータが、データ送
信パケット21の位置で送信されることとなる。
In the first embodiment, the value of the transmission interval measurement counter 31 is set in the transmission register 33, and when transmitting the third data transmission packet 21 from the transmission side node 1, preparation of transfer data is started. At the same time, the transmission counter 32, which is a second counter operating at the same frequency as the transmission interval measurement counter 31, is operated.
The value of the transmission counter operation 23 in the transmission register set value 26 is the value set in the transmission register 33.
When the value becomes the same as the above, data transmission is performed in accordance with an instruction from the comparison circuit 34. That is, the data that would normally be transmitted at the position of the data transmission packet 20 is transmitted at the position of the data transmission packet 21.

【0036】以上の動作により、送信側ノード1は、前
回送信したデータ送信パケットを受信側ノード2が処理
中であるためでビジー状態であると分かっていながら、
再送信パケットをセットし、送信するための各種の諸元
をLSIのレジスタにセットする動作を行ってしまうこ
とにより、LSI制御用CPUに負荷をかけてしまうと
いう不都合が生じることがない。また、CPUが行うI
EEE1394規格以外のLSIの制御や、そのスピー
ドなどに支障を来す可能性を生じさせてしまうことな
く、前記動作で送信したデータ送信パケットとそれに対
するビジー状態通知信号を送受信するため、バスの占有
権を独占して他の機器間の通信を阻害するという現象を
未然に防止することができる。
With the above operation, the transmitting node 1 knows that the data transmission packet transmitted last time is busy because the receiving node 2 is processing the data transmission packet.
By performing the operation of setting the retransmission packet and setting various data for transmission in the register of the LSI, the inconvenience of imposing a load on the CPU for controlling the LSI does not occur. In addition, I
Since the data transmission packet transmitted in the above operation and the busy state notification signal corresponding to the data transmission packet are transmitted and received without causing the possibility of hindering the control of the LSI other than the IEEE1394 standard or the speed thereof, the bus occupation is increased. It is possible to prevent a phenomenon in which the right is monopolized and communication between other devices is hindered.

【0037】このように、第1の実施例では、送信レジ
スタセット値26が受信データ処理時間13よりも確実
に大きくなることにより、ビジー状態通知信号を受け取
ることなく、データ送信パケットの送信を行うことがで
きるため、IEEE1394規格のバス上における輻輳
を抑制することができる。
As described above, in the first embodiment, since the transmission register set value 26 is surely larger than the reception data processing time 13, the data transmission packet is transmitted without receiving the busy state notification signal. Therefore, congestion on the IEEE 1394 bus can be suppressed.

【0038】しかしながら、転送速度の面から考える
と、その差が大きい場合は、待ち時間14が大きくなり
最適とは言えず、送信レジスタセット値26が受信デー
タ処理時間13より小さくならない範囲内で、送信レジ
スタセット値26を可能な限り受信データ処理時間13
に近づけた方が良いのは自明である。そこで、第2の実
施例として、送信レジスタセット値26を受信データ処
理時間13に可能な限り近づける方法について説明す
る。
However, from the viewpoint of the transfer speed, if the difference is large, the waiting time 14 becomes long and cannot be said to be optimal, and within a range where the transmission register set value 26 does not become smaller than the reception data processing time 13, Set the transmission register set value 26 to the reception data processing time 13
It is obvious that it is better to approach. Therefore, as a second embodiment, a method of making the transmission register set value 26 as close as possible to the reception data processing time 13 will be described.

【0039】第2の実施例では、第2番目のデータ送信
パケット4、5および6を送信する時に得られた送信間
隔計測カウンタ値より所定の割合で小さな値を送信レジ
スタ33にセットし、第3番目のデータ送信パケット2
1の送信時には、転送データの準備の整った送信側ノー
ド1で、送信間隔計測カウンタ31と同一の周波数で動
作する第2のカウンタである送信カウンタ32を動作さ
せ、送信カウンタ32の値が、送信レジスタ33にセッ
トされた値と同一の値となったときに、データ送信パケ
ットの送信を行う。
In the second embodiment, a value smaller than the transmission interval measurement counter value obtained at the time of transmitting the second data transmission packets 4, 5 and 6 by a predetermined ratio is set in the transmission register 33. Third data transmission packet 2
At the time of transmission of 1, the transmission node 32, which is a second counter that operates at the same frequency as the transmission interval measurement counter 31, is operated in the transmission-side node 1 where transfer data is ready, and the value of the transmission counter 32 becomes When the value becomes the same as the value set in the transmission register 33, the data transmission packet is transmitted.

【0040】この時、データ受信完了信号を受け取るこ
とができれば、送信レジスタセット値26が受信データ
処理時間13よりも大きいと判断し、ビジー状態通知信
号を受け取るまで、所定の割合で小さなセット値を送信
レジスタ33にセットしながら、以降のデータ送信パケ
ットの送信を行う。
At this time, if the data reception completion signal can be received, it is determined that the transmission register set value 26 is larger than the reception data processing time 13, and a small set value is reduced at a predetermined rate until the busy state notification signal is received. The subsequent data transmission packet is transmitted while being set in the transmission register 33.

【0041】一方、ビジー状態通知信号を受け取ってし
まった場合には、送信レジスタセット値26が受信デー
タ処理時間13よりも小さいと判断し、当該データ送信
パケットの再送信を行った後、送信レジスタ33に所定
の割合で大きな値をセットしながら、以降のデータ送信
パケットを送信する。そして、ビジー状態通知信号を受
け取ることなくデータ受信完了信号を受け取ることがで
きた時の値を送信レジスタの最適値としてセットし、以
降のデータ送信パケットについては、送信レジスタ33
の値を変更することなく、送信カウンタ32を用いてデ
ータの送信を行う。
On the other hand, when the busy state notification signal is received, it is determined that the transmission register set value 26 is smaller than the reception data processing time 13, and after the data transmission packet is retransmitted, the transmission register The subsequent data transmission packet is transmitted while setting a large value to 33 at a predetermined ratio. Then, a value when the data reception completion signal can be received without receiving the busy state notification signal is set as an optimum value of the transmission register.
Is transmitted using the transmission counter 32 without changing the value of.

【0042】以下、具体的な値を用いて前記動作の一例
を説明する。ここでは、送信側ノード1および受信側ノ
ード2は、それぞれ512バイトのデータ格納メモリを
持ち、送信するデータを1MBとする。また、送信側ノ
ード1におけるデータ送信のための512バイトのデー
タをメモリにセットするとともに、データ長や相手機器
のノード指定などをレジスタに書き込む。
Hereinafter, an example of the above operation will be described using specific values. Here, the transmitting node 1 and the receiving node 2 each have a data storage memory of 512 bytes, and assume that data to be transmitted is 1 MB. In addition, 512-byte data for data transmission in the transmitting node 1 is set in the memory, and the data length and the node designation of the partner device are written in the register.

【0043】また、データを送信できる状態になるまで
の時間、すなわち、図2における送信データセット時間
11を200μsとする。さらに、受信側ノード2で
は、データ送信パケットを受信してから当該データ送信
パケットを処理し終え、次のデータを受けとることがで
きるまでの時間、すなわち、図2における受信データ処
理時間13を530μsとする。なお、ここでは、デー
タがバス上に流れている間の時間は考慮しないものとす
る。
The time until the data can be transmitted, that is, the transmission data set time 11 in FIG. 2 is 200 μs. Further, the receiving node 2 sets the time from the reception of the data transmission packet to the end of processing the data transmission packet to the reception of the next data, that is, the reception data processing time 13 in FIG. I do. Here, it is assumed that the time during which data is flowing on the bus is not considered.

【0044】送信側ノード1において、上位アプリケー
ションが1MBのファイルを転送する場合、IEEE1
394規格の制御用LSIをコントロールするCPUに
おいては、512バイトのデータをメモリにセットし、
データ長や相手機器のノード指定などをレジスタに書き
込み、データのセットおよびレジスタの書き込みが終了
した時点で、第1番目のデータ送信パケット3を送信す
る。受信側ノード2では、第1番目のデータ送信パケッ
ト3を受信すると、送信側ノード1に対してデータ受信
を通知するデータ受信完了信号7を送信し、受信データ
の処理を行う。
In the transmitting node 1, when the upper application transfers a 1 MB file, the IEEE 1
In a CPU controlling a control LSI of the 394 standard, 512 bytes of data are set in a memory,
The data length, the node designation of the partner device, and the like are written in the register, and the first data transmission packet 3 is transmitted when the data setting and the register writing are completed. Upon receiving the first data transmission packet 3, the receiving node 2 transmits a data reception completion signal 7 for notifying the transmitting node 1 of data reception, and performs processing of the received data.

【0045】さらに、送信側ノード1では、受信側ノー
ド2からのデータ受信完了信号7を受信すると、送信間
隔計測カウンタ31を動作させ、第2番目のデータ送信
の準備を始める。すなわち、送信側ノード1は、200
μs後には、受信側ノード2に対してデータ送信パケッ
ト4を送信する。ここで、受信側ノード2のデータ処理
には530μsかかるために、200μs後に、受信側
ノード2に対して次のデータであるデータ送信パケット
4が到着しても、受信側ノード2はこれを受け取ること
ができない。このため、受信側ノード2は、送信側ノー
ド1に対してビジー状態通知信号8を送信する。
Further, when receiving the data reception completion signal 7 from the receiving node 2, the transmitting node 1 operates the transmission interval measuring counter 31 to start preparation for the second data transmission. That is, the transmitting node 1
After μs, the data transmission packet 4 is transmitted to the receiving node 2. Here, since the data processing of the receiving node 2 takes 530 μs, even if a data transmission packet 4 as the next data arrives at the receiving node 2 after 200 μs, the receiving node 2 receives it. Can not do. Therefore, the receiving node 2 transmits the busy state notification signal 8 to the transmitting node 1.

【0046】一方、ビジー状態通知信号8を受け取った
送信側ノード1では、再送信のための準備を行い、受信
側ノード2に対して、200μs後に第2番目のデータ
送信パケット5の再送信を行う。この時点では第1番目
のパケット送信から400μs経過しているが、受信側
ノード2では、まだ受信データ処理は完了していないた
め、ビジー状態通知信号9を送信する。
On the other hand, the transmitting node 1 receiving the busy state notification signal 8 prepares for retransmission, and retransmits the second data transmission packet 5 to the receiving node 200 after 200 μs. Do. At this point, 400 μs has elapsed since the transmission of the first packet, but the receiving node 2 transmits the busy state notification signal 9 because the reception data processing has not been completed yet.

【0047】続いて、ビジー状態通知信号9を受け取っ
た送信側ノード1では、再送信のための準備を行い、受
信側ノード2に対して、200μs後に第2番目のデー
タ送信パケット6の再送信を行う。この時点では、第1
番目のパケット送信からの時間が、受信データ処理時間
の530μsを上回る600μs経過しているため、デ
ータ送信パケット6を受信することができるので、送信
側ノード1に対してデータ受信完了信号10を送信す
る。続いて、データ受信完了信号10を受信した送信側
ノード1は、送信間隔計測カウンタ31を停止させ、送
信レジスタセット値である600μsを得る。
Subsequently, the transmitting node 1 receiving the busy state notification signal 9 prepares for retransmission, and retransmits the second data transmission packet 6 to the receiving node 200 after 200 μs. I do. At this point, the first
Since the time from the transmission of the second packet has passed 600 μs, which exceeds the reception data processing time of 530 μs, the data transmission packet 6 can be received. Therefore, the data reception completion signal 10 is transmitted to the transmission side node 1. I do. Subsequently, the transmission-side node 1 that has received the data reception completion signal 10 stops the transmission interval measurement counter 31 and obtains a transmission register set value of 600 μs.

【0048】第1の実施例では、600μsを送信レジ
スタ33にセットし、第3番目以降のデータ送信パケッ
トを送信すれば、ビジー状態通知信号を受け取らずにこ
のデータ送信パケットを送信することが可能である。こ
の場合に、1MB全てのデータを送信する時間は、51
2バイトのデータ送信パケットを送受信するために60
0μsかかるため、およそ1229ms程である。
In the first embodiment, if 600 μs is set in the transmission register 33 and the third and subsequent data transmission packets are transmitted, this data transmission packet can be transmitted without receiving a busy state notification signal. It is. In this case, the time for transmitting all data of 1 MB is 51
60 to transmit and receive a 2-byte data transmission packet
Since it takes 0 μs, it is about 1229 ms.

【0049】第2の実施例では、第3番目のデータ送信
パケット21を送信する際、送信間隔計測カウンタ31
の値を基準として任意の値に変更した後に、送信レジス
タ33にセットする。ここでは、例として600μsよ
り20μs小さくした送信レジスタセット値580μs
を、送信レジスタ33にセットすることとする。
In the second embodiment, when transmitting the third data transmission packet 21, the transmission interval measurement counter 31
After changing the value to an arbitrary value based on the value of, the value is set in the transmission register 33. Here, as an example, the transmission register set value 580 μs which is 20 μs smaller than 600 μs
Is set in the transmission register 33.

【0050】第3番目のデータ送信パケット21の送信
時には、送信側ノード1において、送信カウンタ32を
動作開始させると同時に、データの送信準備を200μ
sで完了させ、送信カウンタ32が送信レジスタ33と
同一の値、すなわち、送信レジスタセット値580μs
になったと同時に、比較回路34からの命令により、受
信側ノード2へ既に送信準備の完了したデータ送信パケ
ット21を送信する。この時の512バイトの送信時間
は、580μsとなる。さらに、送信レジスタ33の値
を前回の値より20μs小さくしてパケットを送信する
動作を繰り返すと、図示しない第6番目のデータ送信パ
ケットを送信する際の送信間隔が受信データ処理時間の
530μsを下回る送信レジスタセット値520μsと
なり、受信側ノード2からは、送信側ノード1に対して
ビジー状態通知信号が発行される。
At the time of transmitting the third data transmission packet 21, the transmitting node 1 starts operating the transmission counter 32 and simultaneously prepares for data transmission by 200 μm.
s, and the transmission counter 32 has the same value as the transmission register 33, that is, the transmission register set value 580 μs
At the same time, the data transmission packet 21 for which transmission preparation has already been completed is transmitted to the reception-side node 2 in accordance with an instruction from the comparison circuit 34. The transmission time of 512 bytes at this time is 580 μs. Further, when the operation of transmitting the packet is repeated by setting the value of the transmission register 33 to 20 μs smaller than the previous value, the transmission interval when transmitting the sixth data transmission packet (not shown) becomes shorter than the reception data processing time of 530 μs. The transmission register set value becomes 520 μs, and the receiving node 2 issues a busy state notification signal to the transmitting node 1.

【0051】ここでは、まず、第6番目のデータ送信パ
ケットを再送信した後に、520μsとなっている送信
レジスタ33の値を、第5番目のパケット送信時の値で
ある540μsに再設定し、第7番目以降のデータ送信
パケットはこのままの送信レジスタセット値の間隔で送
信する。この場合に、1MB全てのデータを送信するた
めの時間は、512バイトのデータ送信パケットを送受
信するために540μsかかるため、およそ1106m
s程であり、第1の実施例の1229msに対して10
%程の短縮となる。このようにして、ビジー状態通知信
号を受け取らずにデータ送信パケットを送信することが
できるとともに、受信側ノード2における待ち時間を極
力抑えた通信を行うことができる。
Here, first, after retransmitting the sixth data transmission packet, the value of the transmission register 33, which is 520 μs, is reset to 540 μs, which is the value at the time of transmitting the fifth packet. The seventh and subsequent data transmission packets are transmitted at the same interval of the transmission register set value. In this case, it takes about 540 μs to transmit and receive a data transmission packet of 512 bytes, so that the time for transmitting all data of 1 MB is about 1106 m.
s, which is 10 times that of 1229 ms of the first embodiment.
%. In this way, a data transmission packet can be transmitted without receiving a busy state notification signal, and communication can be performed with a minimum waiting time in the receiving node 2.

【0052】また、前述した説明では、送信レジスタ3
3の値を前回の送信レジスタにセットした値より所定の
割合で小さくしてゆき、ビジー状態通知信号を受け取っ
た時点で、送信レジスタ33の値を1つ前のパケット送
信時の値に戻して最適値を求める手法を説明したが、そ
れ以外の手法を採用することも可能である。例えば、送
信レジスタ33の値を1つ前のパケット送信時の値の半
分の値にセットし、ビジー状態通知信号を受け取った時
点で、1つ前のパケット送信時の値と当該パケット送信
時の値の平均値をセットしてゆき、ビジー状態通知信号
を受け取ることなくデータ受信完了信号を受け取ること
ができた時の値を送信レジスタ33の最適値とすること
も可能である。
In the above description, the transmission register 3
The value of 3 is reduced by a predetermined ratio from the value set in the previous transmission register, and when the busy state notification signal is received, the value of the transmission register 33 is returned to the value at the time of the previous packet transmission. Although the method for obtaining the optimum value has been described, other methods may be employed. For example, the value of the transmission register 33 is set to half the value at the time of transmitting the previous packet, and when the busy state notification signal is received, the value at the time of transmitting the previous packet and the value at the time of transmitting the packet are set. It is also possible to set an average value of the values and set the value when the data reception completion signal can be received without receiving the busy state notification signal as the optimum value of the transmission register 33.

【0053】いずれにしても、送信レジスタ33の値を
最適にし、図2における待ち時間14、25を極力短く
し、受信データ処理時間13、24に近づけることによ
り、一層高速なデータ転送を実現することができる。
In any case, the value of the transmission register 33 is optimized, the waiting times 14 and 25 in FIG. 2 are made as short as possible, and the data processing times 13 and 24 are made closer to each other, thereby realizing higher-speed data transfer. be able to.

【0054】なお、第1のカウンタである送信間隔計測
カウンタ31を使用して計測するトランザクションの個
所はあくまで一例であり、例えば、図2において予め送
信データセット時間11を計測しておけば、既に述べた
新規の送信データセット開始の時点から送信間隔計測カ
ウンタ31を動作させる必要はなく、その後のデータ送
信パケット4あるいは5の送信時から送信間隔計測カウ
ンタ31を動作させ、データ受信完了信号10までの時
間を計測すればよい。そして、ここで得られた値を送信
レジスタ33にセットするが、第2のカウンタである送
信カウンタ32の動作開始時に、送信データセット時間
11だけのオフセットを加えることにより、新規のデー
タセット開始の個所から計測するのと同等の動作を期待
でき、カウンタの値が少なくなることから、CPUと回
路自体の負荷が軽減される。また、前述した全ての手段
は、送信データセット時間11に依存しないため、再送
信の際に再びパラメータや送信データのセットが不要な
LSIなど、送信データセット時間11が存在しない系
においても適用することが可能である。
The location of the transaction measured using the transmission interval measurement counter 31 as the first counter is merely an example. For example, if the transmission data set time 11 is measured in advance in FIG. It is not necessary to operate the transmission interval measurement counter 31 from the start of the new transmission data set described above. The transmission interval measurement counter 31 is operated from the subsequent transmission of the data transmission packet 4 or 5 to the data reception completion signal 10. The time of may be measured. The value obtained here is set in the transmission register 33. When the operation of the transmission counter 32 as the second counter starts, an offset of the transmission data set time 11 is added to start the new data set. An operation equivalent to measurement from a location can be expected, and the value of the counter is reduced, thereby reducing the load on the CPU and the circuit itself. In addition, since all of the above-described means do not depend on the transmission data set time 11, it is applied to a system in which the transmission data set time 11 does not exist, such as an LSI that does not need to set parameters and transmission data again at the time of retransmission. It is possible.

【0055】[0055]

【発明の効果】以上説明したように、本発明のシリアル
転送方式によれば、比較的大きなデータをある単位に分
割して連続して転送を行うIEEE1394規格のプロ
トコルのライトトランザクションにおいて、受信側ノー
ドから頻繁にビジー状態通知信号が送られてくる場合、
任意のトランザクション間の時間を計測して、次回のト
ランザクション時に送信レジスタに前記計測時間をセッ
トし、送信カウンタを動作させて送信レジスタと等しい
値になったときにデータ送信パケットの送信を行うこと
により、受信側ノードにおいて無理なくデータ送信パケ
ットを取得することができる。
As described above, according to the serial transfer method of the present invention, in the write transaction of the IEEE 1394 standard protocol in which relatively large data is divided into certain units and transferred continuously, the receiving node If the busy status notification signal is sent frequently from
By measuring the time between any transactions, setting the measurement time in the transmission register at the next transaction, operating the transmission counter and transmitting a data transmission packet when the value becomes equal to the value of the transmission register , The data transmission packet can be obtained without difficulty in the receiving node.

【0056】また、任意の割合で送信間隔計測カウンタ
の値よりも小さな値を送信レジスタにセットしデータ送
信パケットを送信することにより、トランザクション間
の無駄な待ち時間が少なくなる。ここで、送信レジスタ
の値を前回の値の半分にしてセットする場合には、ビジ
ー状態が発生する頻度は高くなることが予想されるが、
転送の初期において最適な転送間隔値を取得するという
優れた効果を奏することができる。
By setting a value smaller than the value of the transmission interval measurement counter at an arbitrary ratio in the transmission register and transmitting the data transmission packet, useless waiting time between transactions is reduced. Here, when the value of the transmission register is set to half of the previous value, the frequency of occurrence of the busy state is expected to increase,
An excellent effect of obtaining an optimum transfer interval value at the beginning of transfer can be obtained.

【0057】また、送信レジスタの値を任意で小さくと
る動作によって、データ送信の際に、受信側機器よりビ
ジー状態の通知信号が発行されてしまった場合、送信レ
ジスタの値を任意である程度大きく取り、再び受信側機
器よりビジー状態通知信号が発行されることを防止でき
る。ここで、送信レジスタの値を前回の送信レジスタの
値より数%程度大きくとることにより、再びビジー状態
が発生する頻度は高くなることが予想されるが、待ち時
間を可能な限り減らすという優れた効果を奏することが
できる。
In the case where a busy notification signal is issued from the receiving device during data transmission by the operation of arbitrarily reducing the value of the transmission register, the value of the transmission register is arbitrarily increased to some extent. Thus, it is possible to prevent the receiving side device from issuing the busy state notification signal again. Here, by setting the value of the transmission register to be several percent larger than the value of the previous transmission register, it is expected that the frequency of occurrence of the busy state will increase again, but the superior advantage of reducing the waiting time as much as possible. The effect can be achieved.

【0058】また、送信レジスタの値を前回と前々回の
値の平均を取ってセットする場合には、転送間隔値を可
能な限り減らすことは難しいが、比較的早い段階で最適
値を取得可能であるという優れた効果を奏することがで
きる。すなわち、本発明のシリアル転送方式によれば、
データ転送を行う際の再試行の軽減を図って、最適な転
送間隔でデータ転送を行うことにより、同一データの転
送シリアルバスにおける輻輳を抑制することができる。
When the value of the transmission register is set by averaging the previous and previous values, it is difficult to reduce the transfer interval value as much as possible, but the optimum value can be obtained at a relatively early stage. There is an excellent effect that there is. That is, according to the serial transfer method of the present invention,
By reducing the number of retries when performing data transfer and performing data transfer at optimal transfer intervals, congestion in the transfer serial bus for the same data can be suppressed.

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

【図1】IEEE1394規格を用いてデータ転送を行
う際の送信側ノードを構成する装置の概略図である。
FIG. 1 is a schematic diagram of an apparatus constituting a transmission-side node when performing data transfer using the IEEE 1394 standard.

【図2】データ転送を行う際に、IEEE1394規格
の系を介した2つの機器間におけるデータ送信時の動作
を示す模式図である。
FIG. 2 is a schematic diagram showing an operation at the time of data transfer between two devices via an IEEE 1394 standard system when performing data transfer.

【図3】IEEE1394規格のシリアルバス上に2台
のノードが接続された場合におけるライトトランザクシ
ョン動作の一例を示す模式図である。
FIG. 3 is a schematic diagram showing an example of a write transaction operation when two nodes are connected on an IEEE 1394 standard serial bus.

【図4】IEEE1394規格のシリアルバス上に4台
のノードが接続された場合に、複数のライトトランザク
ションを行う場合の模式図である。
FIG. 4 is a schematic diagram showing a case where a plurality of write transactions are performed when four nodes are connected on an IEEE 1394 standard serial bus;

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

1 送信側ノード 2 受信側ノード 3 第1番目のデータ送信パケット 4〜6 第2番目のデータ送信パケット 7、10、22 データ受信完了信号 8、9 ビジー状態通知信号 11 送信データセット時間 13、24 受信データ処理時間 12 パラメータ及びデータのセット開始からデータ受
信完了信号までの時間 14、25 待ち時間 20 第3番目のデータ送信パケット(送信可能状態) 21 第3番目のデータ送信パケット 26 送信レジスタセット値 23 送信カウンタ動作分 31 送信間隔計測カウンタ、 32 送信カウンタ 33 送信レジスタ 34 比較回路 35 送信データセット部 36 データ送信部 37 データ受信部 38 受信データ処理部 100 送信側ノード 101 受信側ノード 102、105 互いに異なるデータ送信パケット 103、106 データ受信完了信号 104 ビジー状態通知信号 110 送信側ノードA 111 受信側ノードA 112 データ送信パケットA 113 データ受信完了信号A 114 ビジー状態通知信号A 120 送信側ノードB 121 受信側ノードB 122 データ送信パケットB 123 データ受信完了信号B
DESCRIPTION OF SYMBOLS 1 Sending node 2 Receiving node 3 First data transmission packet 4-6 Second data transmission packet 7, 10, 22 Data reception completion signal 8, 9 Busy state notification signal 11 Transmission data set time 13, 24 Received data processing time 12 Time from start of parameter and data set to data reception completion signal 14, 25 Waiting time 20 Third data transmission packet (transmittable state) 21 Third data transmission packet 26 Transmission register set value 23 Transmission counter operation part 31 Transmission interval measurement counter, 32 Transmission counter 33 Transmission register 34 Comparison circuit 35 Transmission data set part 36 Data transmission part 37 Data reception part 38 Received data processing part 100 Transmission side node 101 Reception side nodes 102, 105 Different data transmission packets G 103, 106 Data reception completion signal 104 Busy status notification signal 110 Transmitting node A 111 Receiving node A 112 Data transmission packet A 113 Data reception completion signal A 114 Busy status notification signal A 120 Transmitting node B 121 Receiving node B 122 Data transmission packet B 123 Data reception completion signal B

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B077 NN02 5K032 AA01 CD01 5K034 AA01 DD03 FF12 HH65 NN22 QQ09  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B077 NN02 5K032 AA01 CD01 5K034 AA01 DD03 FF12 HH65 NN22 QQ09

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 2台以上の機器がシリアルバスで繋がれ
た系においてシリアルデータを送受信するためのシリア
ル転送方式であって、 任意のトランザクション間の時間を計測可能な第1のカ
ウンタと、 任意の値をセット可能な送信レジスタと、 前記送信レジスタにセットされた値まで動作する第2の
カウンタと、 前記第2のカウンタの値が前記送信レジスタの値と同一
となった場合に、データ送信パケットを送信するための
処理回路とを備えたことを特徴とするシリアル転送方
式。
1. A serial transfer method for transmitting and receiving serial data in a system in which two or more devices are connected by a serial bus, comprising: a first counter capable of measuring a time between arbitrary transactions; A transmission register that can set the value of the transmission register, a second counter that operates up to the value set in the transmission register, and data transmission when the value of the second counter becomes equal to the value of the transmission register. A serial transfer method, comprising: a processing circuit for transmitting a packet.
【請求項2】 前記第1のカウンタの値よりも小さい任
意の値を前記送信レジスタにセットし、 その後のデータ送信において、受信側ノードからビジー
状態通知信号が送信されてきた場合に、前記送信レジス
タに前記第1のカウンタで取得した値以下の範囲で、前
回セットした前記送信レジスタの値より大きな任意の値
を再設定することを特徴とする請求項1記載のシリアル
転送方式。
2. An arbitrary value smaller than the value of the first counter is set in the transmission register. When a busy state notification signal is transmitted from a receiving node in subsequent data transmission, the transmission is performed. 2. The serial transfer method according to claim 1, wherein an arbitrary value larger than a value of the transmission register set last time is reset in a register within a range equal to or less than a value obtained by the first counter.
【請求項3】 前記第1のカウンタの値よりも小さい任
意の値を前記送信レジスタにセットし、 その後のデータ送信において、受信側ノードからビジー
状態通知信号が送信されてきた場合に、前記送信レジス
タに前記第1のカウンタで取得した値以下の範囲で、前
回セットした前記送信レジスタの値を再設定し、 以後、前記値を固定値として使用することを特徴とする
請求項1記載のシリアル転送方式。
3. An arbitrary value smaller than the value of the first counter is set in the transmission register. In the subsequent data transmission, when a busy state notification signal is transmitted from a receiving node, the transmission is performed. 2. The serial device according to claim 1, wherein the value of the transmission register set last time is reset in the register within a range equal to or less than the value acquired by the first counter, and thereafter, the value is used as a fixed value. Transfer method.
JP2000382432A 2000-12-15 2000-12-15 Serial transfer method Pending JP2002185560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000382432A JP2002185560A (en) 2000-12-15 2000-12-15 Serial transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000382432A JP2002185560A (en) 2000-12-15 2000-12-15 Serial transfer method

Publications (1)

Publication Number Publication Date
JP2002185560A true JP2002185560A (en) 2002-06-28

Family

ID=18850255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000382432A Pending JP2002185560A (en) 2000-12-15 2000-12-15 Serial transfer method

Country Status (1)

Country Link
JP (1) JP2002185560A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006340194A (en) * 2005-06-03 2006-12-14 Sharp Corp Serial interface circuit
JP2010198226A (en) * 2009-02-24 2010-09-09 Canon Inc Device and method for data processing, and program
JP2010218253A (en) * 2009-03-17 2010-09-30 Canon Inc Information processor, information processing method, and program
JP2011081643A (en) * 2009-10-08 2011-04-21 Canon Inc Data processing apparatus including parallel processing circuit having a plurality of processing modules, and control method for the same
US9043524B2 (en) 2009-02-24 2015-05-26 Canon Kabushiki Kaisha Information processing apparatus, method thereof, and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006340194A (en) * 2005-06-03 2006-12-14 Sharp Corp Serial interface circuit
JP2010198226A (en) * 2009-02-24 2010-09-09 Canon Inc Device and method for data processing, and program
US9043524B2 (en) 2009-02-24 2015-05-26 Canon Kabushiki Kaisha Information processing apparatus, method thereof, and storage medium
JP2010218253A (en) * 2009-03-17 2010-09-30 Canon Inc Information processor, information processing method, and program
JP2011081643A (en) * 2009-10-08 2011-04-21 Canon Inc Data processing apparatus including parallel processing circuit having a plurality of processing modules, and control method for the same
US8754896B2 (en) 2009-10-08 2014-06-17 Canon Kabushiki Kaisha Data processing apparatus having a parallel processing circuit including a plurality of processing modules, and method for controlling the same

Similar Documents

Publication Publication Date Title
US8155112B2 (en) Fly-by serial bus arbitration
US5905874A (en) Method and system for reducing data transfer latency when transferring data from a network to a computer system
CN103460201B (en) Serial line interface
US4593281A (en) Local area network interframe delay controller
US6252879B1 (en) Single counter for controlling multiple finite state machines in a multi-port bridge for local area network
US6157951A (en) Dual priority chains for data-communication ports in a multi-port bridge for a local area network
US6442168B1 (en) High speed bus structure in a multi-port bridge for a local area network
JP2002185560A (en) Serial transfer method
TW387163B (en) Expandable repeater
JPH11298555A (en) System and method for serial transfer of digital data
JP2003289315A (en) Packet transfer apparatus and packet transfer method
JP2002359626A (en) Serial data receiver
JP3753622B2 (en) Packet transceiver
JPH04263545A (en) Data communication equipment
JPH09205431A (en) Radio data communication system
KR100539518B1 (en) method for arbitrating Asynchronous Packet in bus system
JP2002281034A (en) Information transfer device
KR20050063605A (en) Wireless lan system and dma data transmission control method for the same
JP2005267324A (en) Private branch exchange and data transfer processing system
JP2002366508A (en) Data transfer method
JP2003037596A (en) Communication device and method
JPH0437345A (en) Lan communication system
JPS60174546A (en) Control method of data transmission equipment
JP2002044128A (en) Data transfer method
JPH04262644A (en) Packet communication terminal equipment