JP3456009B2 - Communication method - Google Patents
Communication methodInfo
- Publication number
- JP3456009B2 JP3456009B2 JP10750494A JP10750494A JP3456009B2 JP 3456009 B2 JP3456009 B2 JP 3456009B2 JP 10750494 A JP10750494 A JP 10750494A JP 10750494 A JP10750494 A JP 10750494A JP 3456009 B2 JP3456009 B2 JP 3456009B2
- Authority
- JP
- Japan
- Prior art keywords
- packet
- data
- communication
- vtr
- circuit
- 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.)
- Expired - Fee Related
Links
Landscapes
- Small-Scale Networks (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、デジタルビデオデータ
やデジタルオーディオデータのような時系列なデータを
例えばP1394シリアルバスのような通信制御バス
(以下「バス」と略す)を用いて伝送する場合に好適な
通信方式に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a case where time series data such as digital video data and digital audio data is transmitted using a communication control bus (hereinafter abbreviated as "bus") such as P1394 serial bus. The present invention relates to a communication system suitable for.
【0002】[0002]
【従来の技術】P1394シリアルバスのような制御信
号と情報信号とを混在させることのできる通信制御バス
によって複数の機器を接続し、これらの機器間で情報信
号及び制御信号を通信するシステムが考えられている。2. Description of the Related Art A system for connecting a plurality of devices by a communication control bus capable of mixing control signals and information signals, such as a P1394 serial bus, and communicating information signals and control signals between these devices is considered. Has been.
【0003】図9にこのようなシステムの例を示す。こ
のシステムは機器A,B,C,D,Eを備えている。そ
して、機器A−B間、A−C間、C−D間、及びC−E
間は、P1394シリアルバスのツイストペアケーブル
により接続されている。これらの機器は、例えばデジタ
ルVTR、チューナー、モニター等である。各機器はツ
イストペアケーブルから入力される情報信号及び制御信
号を中継する機能を持っているので、このシステムは図
10のような各機器が共通のバスに接続されているシス
テムと等化である。FIG. 9 shows an example of such a system. This system includes devices A, B, C, D and E. And between the devices A-B, between A-C, between C-D, and C-E
The parts are connected by a twisted pair cable of P1394 serial bus. These devices are, for example, digital VTRs, tuners, monitors and the like. Since each device has a function of relaying an information signal and a control signal input from the twisted pair cable, this system is equal to a system in which each device is connected to a common bus as shown in FIG.
【0004】バスを共有している機器A〜E間における
データ伝送は所定の通信サイクル(例えば125μse
c)ごとに時分割多重によって行なわれる。バス上にお
ける通信サイクルの管理は通信システムを管理する所定
の機器、例えば機器Aが通信の同期、すなわち通信サイ
クルの開始時であることを示す同期パケット(サイクル
スタートパケット:以下「CQ」という)をバス上の他
の機器へ伝送することによってその通信サイクルにおけ
るデータ伝送が開始される。Data transmission between the devices A to E sharing a bus has a predetermined communication cycle (for example, 125 μse).
It is performed by time division multiplexing for each c). The management of the communication cycle on the bus uses a synchronization packet (cycle start packet: hereinafter referred to as "CQ") indicating that a predetermined device that manages the communication system, for example, the device A, is in communication synchronization, that is, the start of the communication cycle. By transmitting to another device on the bus, data transmission in the communication cycle is started.
【0005】バス上における時間情報は個々の機器の持
つ時計レジスタによって管理される。各々の機器の時計
レジスタは図11に示す自己サイクル(125μse
c)毎に、CQによりリセットされる。そして、自己サ
イクル中では各々の機器のクロックをカウントすること
によって時間情報を生成する。したがって、通信サイク
ルが理想的に125μsecごとに繰り返された場合、
図11のようにCQと自己サイクルは同時に始まり、同
時に終了する。The time information on the bus is managed by the clock register of each device. The clock register of each device has a self-cycle (125 μse shown in FIG.
It is reset by CQ every c). Then, during the self cycle, time information is generated by counting the clocks of the respective devices. Therefore, if the communication cycle is ideally repeated every 125 μsec,
As shown in FIG. 11, CQ and the self cycle start at the same time and end at the same time.
【0006】1通信サイクル中において伝送されるデー
タ形式は、デジタルビデオデータやデジタルオーディオ
データなどの同期型データ(以下「Isoデータ」とい
う)と、接続制御コマンド等の非同期型データ(以下
「Asyncデータ」という)の2種類である。これら
2種類のデータの伝送は下記(1)〜(6)のプロトコ
ルにしたがって行われる。The data format transmitted during one communication cycle includes synchronous data such as digital video data and digital audio data (hereinafter referred to as "Iso data") and asynchronous data such as connection control commands (hereinafter referred to as "Async data"). "). Transmission of these two types of data is performed according to the following protocols (1) to (6).
【0007】(1)図12(a) のように、CQが伝送
された後にデータの伝送を行なう。
(2)図12(a)のように、CQの後に伝送されるべ
きデータ形式の優先順位は、Isoデータの方がAsy
ncデータより高い。(1) As shown in FIG. 12A, data is transmitted after CQ is transmitted. (2) As shown in FIG. 12A, the priority of the data format to be transmitted after CQ is Asy for Iso data.
higher than the nc data.
【0008】(3)図12(a) のように、Isoデー
タ2の通信終了時に次の自己サイクルが始まっている場
合には、AsyncデータよりCQを優先するので、A
syncデータ2 はその通信サイクルでは伝送できず、
次以降の通信サイクルにおいて伝送しなければならな
い。(3) As shown in FIG. 12 (a), when the next self cycle starts at the end of communication of Iso data 2, CQ has priority over Async data.
sync data 2 cannot be transmitted in the communication cycle,
It must be transmitted in subsequent communication cycles.
【0009】(4)CQの最大遅れ時間は、システムに
おいてあらかじめ定められているAsyncデータの最
大長によって決まる(例えば41μsec)。
(5)図12(b)のように、バス上での異常によって
例えばCQ2が損失した場合、各機器はCQ2を正常に
受信できなくなり、その結果バス上にはその通信サイク
ル中にはパケットが伝送されなくなる。そこで、通信シ
ステムを管理する機器は次の自己サイクルの始まりと同
時に次の通信サイクルのためのCQ3を伝送する。(4) The maximum delay time of CQ is determined by the maximum length of Async data which is predetermined in the system (for example, 41 μsec). (5) As shown in FIG. 12B, when CQ2 is lost due to an abnormality on the bus, each device cannot receive CQ2 normally, and as a result, packets are not transmitted on the bus during the communication cycle. It will not be transmitted. Then, the device managing the communication system transmits CQ3 for the next communication cycle at the same time as the start of the next self cycle.
【0010】(6)受信側の機器において、CQ又はデ
ータパケットの少なくとも一方が正常に受信できなかっ
た場合には、受信側の機器でそのデータパケットに相当
するエラーのコードを生成して、それを正常なデータパ
ケットの代わりとする。ここで、CQが正常に受信でき
なかった場合には、前記(5)で説明したようにCQが
損失した場合がある。また、データパケットが正常に受
信できなかった場合には、送信側でCQが損失した結果
データパケットが送信されないために受信できなかった
場合と、受信したけれども正しいパケットではない(ヘ
ッダーエラー等)ため結果的に受信できなかった場合
と、受信したパケットのデータ部にエラーがあった場合
がある。(6) When at least one of the CQ and the data packet cannot be normally received by the receiving device, the receiving device generates an error code corresponding to the data packet and Instead of a normal data packet. If the CQ cannot be received normally, the CQ may be lost as described in (5) above. In addition, if the data packet cannot be received normally, it may not be received because the data packet is not transmitted as a result of CQ loss on the transmission side, or it may have been received but is not a correct packet (header error, etc.). As a result, there are cases where the data could not be received and cases where there was an error in the data portion of the received packet.
【0011】以上のプロトコルにしたがってデータを伝
送する場合、図12(a) のように、通信サイクルの開
始合図であるCQが来てから、1つのIsoデータパケ
ット及び1つのAsyncデータパケットの伝送が終了
するまでの1つの通信サイクルは125μsecで終る
とは限らない。When data is transmitted in accordance with the above protocol, one Iso data packet and one Async data packet are transmitted after the CQ which is the start signal of the communication cycle comes as shown in FIG. One communication cycle until the end is not necessarily finished in 125 μsec.
【0012】次に、以上説明した通信システムにおい
て、Isoデータとして、デジタルVTRが出力したデ
ジタルビデオデータ及びデジタルオーディオデータ(以
下「VTRデータ」という)を他のデジタルVTRへ送
信する場合について説明する。Next, in the communication system described above, a case will be described in which digital video data and digital audio data (hereinafter referred to as "VTR data") output from a digital VTR are transmitted to another digital VTR as Iso data.
【0013】まず、VTRデータのようなブロック単位
で処理されるデータをブロック周期とは非同期の通信サ
イクルを持つ通信システムを介して伝送する場合には、
図13のようにデジタルVTR21,22内にデータを
一時的に保持するFIFO23,24が一般的に必要と
なる。First, when data to be processed in block units such as VTR data is transmitted through a communication system having a communication cycle asynchronous with the block cycle,
As shown in FIG. 13, FIFOs 23 and 24 for temporarily holding data in the digital VTRs 21 and 22 are generally required.
【0014】図13において、デジタルVTR21のV
TRデータをデジタルVTR22へ伝送する場合、まず
デジタルVTR21内のVTR本体25で生成したVT
RデータをFIFO23に一時保存する。そして、FI
FO23に蓄えられたデータを通信サイクルにしたがっ
て、次々と通信制御用I/F27からバスを介してデジ
タルVTR22へ伝送する。デジタルVTR22では通
信サイクル毎に受けとったデータパケットを順々にFI
FO24に蓄え、最終的にVTR本体26がFIFO2
4からデータを受けとることになる。In FIG. 13, V of the digital VTR 21
When transmitting the TR data to the digital VTR 22, first, the VT generated by the VTR main body 25 in the digital VTR 21 is transmitted.
The R data is temporarily stored in the FIFO 23. And FI
The data stored in the FO 23 is sequentially transmitted from the communication control I / F 27 to the digital VTR 22 via the bus in accordance with the communication cycle. The digital VTR 22 sequentially receives the data packets received in each communication cycle.
It is stored in FO24, and finally the VTR main body 26 is FIFO2.
You will receive data from 4.
【0015】[0015]
【発明が解決しようとする課題】図14のようなパケッ
ト単位化されたVTRデータを前述の通信システムを用
いて送信する場合、バス上において1通信サイクルの始
めを示すCQが必ず存在すれば、図15のように1通信
サイクルに1VTRデータパケット(Asyncデータ
パケットがある場合は1Asyncデータパケットも)
が伝送される。When transmitting VTR data packetized as shown in FIG. 14 using the above-mentioned communication system, if there is always a CQ indicating the beginning of one communication cycle on the bus, As shown in FIG. 15, one VTR data packet in one communication cycle (or one Async data packet if there is an Async data packet)
Is transmitted.
【0016】これに対して、VTRデータの受信側の機
器では、バス上でノイズなどによてCQ又はデータパケ
ットが損失しない限り、図15と同様なデータの状態
(送信側の機器と同様なデータの状態)でCQ又はデー
タパケットを受け取る。On the other hand, in the device on the VTR data receiving side, unless the CQ or the data packet is lost on the bus due to noise or the like, the same data state as in FIG. 15 (similar to the transmitting side device). CQ or data packet is received in the data state).
【0017】しかし、送信側の機器であるデジタルVT
R21において正常なCQに対して正常にデータパケッ
トを送信したが、バス上の何らかの理由で受信側の機器
がCQ又はデータパケット又は両者を正常に受信できな
かったときは、その通信サイクルのデータパケットはエ
ラーとして、エラーのコードが受信側のVTR本体26
へ転送される。However, the digital VT which is the device on the transmitting side
In R21, a data packet is normally transmitted to a normal CQ, but when the receiving device cannot normally receive the CQ or the data packet or both for some reason on the bus, the data packet of the communication cycle Is an error, and the error code is the VTR body 26 on the receiving side.
Transferred to.
【0018】さらに、図16のように、送信側の機器に
おいて、前述の通信システムを管理する機器が出すC
Q、例えばCQ2がバス上のノイズなどによって損失さ
れた場合、その通信サイクルではデータパケットを送信
することはできなくなる。したがって、送信側の機器で
あるデジタルVTR21において、図17(a) に示す
ように例えばCQ2が損失した場合、本来CQ2の後に
伝送すべきVTRデータパケット2はCQ3から始まる
通信サイクルで伝送するのが従来の方法であるが、その
方法には下記(1)、(2)の問題点がある。Further, as shown in FIG. 16, in the device on the transmission side, the device that manages the above-mentioned communication system outputs C
If Q, for example CQ2, is lost due to noise on the bus, it will not be possible to send data packets in that communication cycle. Therefore, in the digital VTR 21, which is the device on the transmission side, when CQ2 is lost as shown in FIG. 17A, the VTR data packet 2 that should be originally transmitted after CQ2 is transmitted in the communication cycle starting from CQ3. Although it is a conventional method, the method has the following problems (1) and (2).
【0019】(1)FIFOのサイズが大きくなる
送信側のデジタルVTR21において、CQ2が損失し
た場合、本来その通信サイクルで送るべきVTRデータ
パケット2をCQ3の通信サイクルで送信することにな
ると、正常にCQを受信したときに比べてFIFO23
内に保存される時間が1通信サイクル分長くなってしま
い、VTR本体25からブロックデータが定期的にFI
FO23に転送されることを考慮すると、CQが失われ
た通信サイクル数分だけ正常時に比べFIFOのサイズ
を大きくしなければならなくなる。(1) When the CQ2 is lost in the digital VTR 21 on the transmission side where the size of the FIFO becomes large, if the VTR data packet 2 that should be originally sent in the communication cycle is to be sent in the communication cycle of CQ3, it will be normal. FIFO23 compared to when CQ is received
The time saved in the file becomes longer by one communication cycle, and the block data is periodically transmitted from the VTR main body 25 to the FI.
Considering that data is transferred to the FO 23, the size of the FIFO must be increased by the number of communication cycles in which the CQ is lost, compared with the normal case.
【0020】(2)受信側の機器での処理の繁雑化
送信側のデジタルVTR21において、CQ2が損失し
た場合、本来その通信サイクルで送るべきVTRデータ
パケット2をCQ3の通信サイクルで送信することにな
ると、受信側のデジタルVTR22において、受信した
データパケットが何番目のデータパケットなのかを一意
に決定することが困難になる。(2) Complicated processing in the device on the receiving side When CQ2 is lost in the digital VTR 21 on the transmitting side, VTR data packet 2 which should be originally sent in that communication cycle is sent in the communication cycle of CQ3. Then, it becomes difficult for the receiving-side digital VTR 22 to uniquely determine the order of the received data packet.
【0021】図17(a)は送信側のデジタルVTRに
おいて、CQ2が損失した時にVTRデータパケット2
をCQ3の通信サイクルで送信した例であり、図17
(b)は図17(a)の構成で送信されたVTRデータ
パケットをそのまま正常に受信した受信側のデジタルV
TRの状態である。FIG. 17A shows a VTR data packet 2 when CQ2 is lost in the digital VTR on the transmitting side.
17 is an example of transmission of CQ3 in the communication cycle of FIG.
(B) is a digital V of the receiving side that normally received the VTR data packet transmitted in the configuration of FIG.
This is the state of TR.
【0022】また、図18(a)は送信側のデジタルV
TRにおいて、正常にVTRデータパケットが送信され
た状態の例であり、図18(b)は送信側で図18
(a)のように正常にVTRデータパケットが送信され
た場合に、受信する際にCQ2が受信側のデジタルVT
Rでのみ損失した場合の受信状態の例である。図18
(b)において、受信側のみでCQが損失した場合はそ
の通信サイクル中に受信すべきデータパケットも同時に
受信しないというのは、プロトコルによる規定である。Further, FIG. 18A shows a digital V on the transmitting side.
This is an example of a state in which a VTR data packet is normally transmitted in TR, and FIG.
When the VTR data packet is normally transmitted as shown in (a), the CQ2 receives the digital VT on the receiving side when receiving.
It is an example of a reception state when only R is lost. FIG.
In (b), if the CQ is lost only on the receiving side, the data packet to be received during the communication cycle is not received at the same time, which is defined by the protocol.
【0023】これらの4つの状態を見てもわかるよう
に、送信側での2つの状態例(図17(a),図18
(a))は各々異なるに対して、受信側の2つの例(図
17(b),図18(b))ではデータパケットの受信
状態は同じである。しかし、図17(b)と図18
(b)において損失したCQ2の次に来た正常なCQ3
から始まる通信サイクル中に受信するVTRデータパケ
ットの番号は、図17(b)ではVTRデータパケット
2、図18(b)ではVTRデータパケット3といった
ように異なっている。As can be seen by looking at these four states, two state examples on the transmitting side (FIGS. 17A and 18) are shown.
While (a)) is different, the data packet reception state is the same in the two examples on the receiving side (FIGS. 17B and 18B). However, FIG. 17 (b) and FIG.
Normal CQ3 following CQ2 lost in (b)
The numbers of the VTR data packets received during the communication cycle starting from are different, such as VTR data packet 2 in FIG. 17B and VTR data packet 3 in FIG. 18B.
【0024】このため、この通信システムにおいて送受
信するVTRデータパケットがデータパケットの順番を
表すインデックスをVTRデータパケット内に保持して
いない限り、受信側からすると図17(b)と図18
(b)のような場合に、受信したデータパケットの状態
は同じでも、損失したCQの次に受信した正常なCQか
ら始まる通信サイクルで受信したVTRデータパケット
の番号が異なる場合が起きてしまい、さらに、そのVT
Rデータパケットが何番目のデータパケットであるかを
一意に決定することができない。Therefore, unless the VTR data packet transmitted / received in this communication system holds the index indicating the order of the data packet in the VTR data packet, from the receiving side, FIG. 17 (b) and FIG.
In the case of (b), even if the received data packet has the same state, the number of VTR data packet received in the communication cycle starting from the normal CQ received next to the lost CQ may be different, Furthermore, that VT
It is impossible to uniquely determine what number data packet the R data packet is.
【0025】また、データパケットの順番を表すインデ
ックスをVTRデータパケット内に保持していたとして
も、図18(b)の場合にCQが損失したことによりV
TRデータパケット2が損失したことが判定できるの
は、VTRデータパケット3を受信して初めてできるた
め、損失したVTRデータパケット2に対するエラーの
コードを生成するのは時間的に困難である。Even if the index indicating the order of the data packets is held in the VTR data packet, VQ is lost due to CQ loss in the case of FIG. 18B.
Since it can be determined that the TR data packet 2 is lost only after receiving the VTR data packet 3, it is difficult in time to generate an error code for the lost VTR data packet 2.
【0026】本発明は、このような問題点に鑑みてなさ
れたものであって、送信側のFIFOのサイズを最低限
に抑えることができる通信方式を提供することを目的と
する。The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication method capable of minimizing the size of the FIFO on the transmission side.
【0027】また、本発明は、受信側において同期パケ
ットを損失するか又はデータパケットの受信ができなか
った場合でも、データパケットの番号を一意に決定する
ことを容易にする通信方式を提供することを目的とす
る。The present invention also provides a communication method that facilitates uniquely determining the number of a data packet even if the receiving side loses the synchronization packet or cannot receive the data packet. With the goal.
【0028】[0028]
【課題を解決するための手段】前記課題を解決するため
に、請求項1に係る発明は、CQとデータパケットとを
含む通信サイクルによりデータ通信を行う通信方式にお
いて、送信側においてCQが損失した場合、そのCQか
ら始まる通信サイクル期間で送信すべきデータパケット
の送信を行わないようにすることを特徴とするものであ
る。In order to solve the above-mentioned problems, the invention according to claim 1 is a communication system in which data communication is performed by a communication cycle including CQ and data packets, and CQ is lost on the transmitting side. In this case, the data packet to be transmitted is not transmitted in the communication cycle period starting from the CQ.
【0029】また、請求項2に係る発明は、請求項1に
係る発明において、受信側においてCQを損失するか又
はデータパケットが正常に受信できなかった場合、デー
タエラー処理を行うことを特徴とするものである。The invention according to claim 2 is characterized in that, in the invention according to claim 1, when the CQ is lost on the receiving side or the data packet cannot be received normally, data error processing is performed. To do.
【0030】さらに、請求項3に係る発明は、請求項1
に係る発明において、受信側において少なくともデータ
パケットが正常に受信できなかった場合、データエラー
処理を行うことを特徴とするものである。Furthermore, the invention according to claim 3 is the same as claim 1.
In the invention according to, the data error processing is performed when at least the data packet cannot be normally received on the receiving side.
【0031】また、請求項4に係る発明は、請求項1、
2又は3に係る発明において、CQの1つを検出した
後、同期パケットの周期間隔に要する時間内に次のCQ
を検出しないことによりそのCQの損失を検出するもの
である。The invention according to claim 4 is the invention according to claim 1,
In the invention of 2 or 3, after detecting one of the CQs, the next CQ is detected within the time required for the periodic interval of the synchronization packet.
Is detected, the CQ loss is detected.
【0032】そして、請求項5に係る発明は、請求項
1、2、3又は4に係る発明において、伝送するデータ
を同期型データと非同期型データとしたものである。The invention according to claim 5 is the invention according to claim 1, 2, 3 or 4, wherein the data to be transmitted is synchronous data and asynchronous data.
【0033】[0033]
【作用】請求項1に係る発明によれば、送信側の機器は
CQの損失を検出した場合、そのCQから始まる通信サ
イクル期間に本来送信すべきデータパケットの送信を行
わないので、データパケットを一時的に記憶するFIF
O等の記憶手段の容量は正常時と同じでよい。According to the invention of claim 1, when the device on the transmitting side detects the loss of CQ, it does not transmit the data packet which should be originally transmitted during the communication cycle period starting from the CQ. FIF temporarily stored
The capacity of the storage means such as O may be the same as that at the normal time.
【0034】請求項2に係る発明によれば、受信側の機
器は、CQを損失するか又はデータパケットが正常に受
信できなかった場合にデータエラー処理を行うので、C
Qを損失してもしなくても、受信したデータパケットの
番号を一意に決定することが容易になる。According to the second aspect of the invention, the device on the receiving side performs the data error process when the CQ is lost or the data packet cannot be received normally.
It becomes easy to uniquely determine the number of the received data packet with or without Q loss.
【0035】請求項3に係る発明によれば、受信側の機
器は、少なくともデータパケットが正常に受信できなか
った場合にデータエラー処理を行う。したがって、例え
ばCQの損失を検出する前にそのCQから始まる通信サ
イクル期間に送信されたデータパケットを受信した場合
には、後にCQの損失を検出してもデータパケットを正
常に処理できる。According to the third aspect of the invention, the device on the receiving side performs the data error process at least when the data packet cannot be normally received. Therefore, for example, when a data packet transmitted in a communication cycle period starting from the CQ is received before the CQ loss is detected, the data packet can be normally processed even if the CQ loss is detected later.
【0036】請求項4に係る発明によれば、送信側の機
器及び受信側の機器は、CQが損失した場合に、そのC
Qから始まる通信サイクル内でその損失を検知すること
ができる。According to the fourth aspect of the invention, when the CQ is lost, the device on the transmitting side and the device on the receiving side receive the C
The loss can be detected within the communication cycle beginning with Q.
【0037】また、請求項5に係る発明によれば、同期
型のデータと非同期型のデータの通信を行うことができ
る。Further, according to the invention of claim 5, it is possible to communicate synchronous data and asynchronous data.
【0038】[0038]
【実施例】以下図面を参照しながら本発明の実施例につ
いて詳細に説明する。
(第1実施例)図1は本発明の第1実施例において、送
信側でCQが損失した場合のバス上のデータ状態の例を
示す図である。Embodiments of the present invention will be described in detail below with reference to the drawings. (First Embodiment) FIG. 1 is a diagram showing an example of a data state on a bus when CQ is lost on the transmitting side in the first embodiment of the present invention.
【0039】本実施例では、送信側においては、CQが
損失した通信サイクルでは本来その通信サイクルにおい
て送信すべきVTRデータパケットを送信しない。例え
ば、図1のようにCQ2が損失した場合、CQ2から始
まる通信サイクルでは、本来その通信サイクルにおいて
伝送すべきVTRデータパケット2をFIFO内で破棄
する。そして、CQ3から始まる通信サイクルでは、本
来その通信サイクルで送信すべきVTRデータパケット
3を送信する。このようにすることで、FIFOのサイ
ズは最低限の大きさに抑えることができるので、前記問
題点(1)を解決することができる。In the present embodiment, the transmitting side does not transmit the VTR data packet that should be transmitted in the communication cycle in which the CQ is lost, in the communication cycle. For example, when CQ2 is lost as shown in FIG. 1, in the communication cycle starting from CQ2, the VTR data packet 2 that should originally be transmitted in that communication cycle is discarded in the FIFO. Then, in the communication cycle starting from CQ3, the VTR data packet 3 that should originally be transmitted in that communication cycle is transmitted. By doing so, the size of the FIFO can be suppressed to the minimum size, so that the problem (1) can be solved.
【0040】また、受信側においては、CQが損失する
か又はデータパケットが正常に受信されなかった場合に
は、そのデータパケットに相当するエラーのコードを生
成してそれを正常なデータパケットの代わりとする。On the receiving side, if the CQ is lost or the data packet is not normally received, an error code corresponding to the data packet is generated and used as a substitute for the normal data packet. And
【0041】例えば、図2(a)のように受信側でCQ
2及びVTRデータパケット2が受信できなかった場
合、及び図2(b)のように受信側でCQ2が正常に受
信できたもののVTRデータパケット2が正常に受信で
きなかった場合には、そのVTRデータパケット2の受
信はその後も不可とし、その状態をデータエラーとし
て、VTR本体に報告する。具体的には、本来受信する
パケットであるVTRデータパケット2の替わりにエラ
ーパケットを送る。そして、CQ3から始まる次の通信
サイクルにおいて正常にパケットを受信した場合、その
パケットを本来のパケットVTRデータパケット3(前
の通信サイクルで本来の受信すべきVTRデータパケッ
ト2が受信できたものと仮定して)として受信し、VT
R本体へ送る。これによって、VTR本体はその後も本
来のパケットを本来の受信すべき通信サイクル中に受信
できる。For example, as shown in FIG. 2 (a), CQ is set on the receiving side.
2 and VTR data packet 2 cannot be received, and when CQ2 is normally received on the receiving side as shown in FIG. 2B, but VTR data packet 2 is not normally received, the VTR Data packet 2 cannot be received after that, and the state is reported to the VTR main unit as a data error. Specifically, an error packet is sent instead of the VTR data packet 2 which is the originally received packet. When a packet is normally received in the next communication cycle starting from CQ3, the packet is supposed to be the original packet VTR data packet 3 (assuming that the VTR data packet 2 which should be originally received in the previous communication cycle was received. And then received as VT
Send to R body. As a result, the VTR main body can still receive the original packet during the communication cycle in which the original packet should be received.
【0042】このようにすると、ある通信サイクルにお
いてCQが正常に受信されてもされなくても、それ以後
の通信サイクルに対して本来受信すべきVTRデータパ
ケットは一意に決定されるため、図17(b)のような
損失したCQの次の正常な通信サイクルにVTRデータ
パケット2を受信する状態は起こりえなくなり、前記問
題点(2)を解決することができる。In this way, even if CQ is normally received in a certain communication cycle, the VTR data packet that should be originally received in the subsequent communication cycles is uniquely determined. The state in which the VTR data packet 2 is received in the normal communication cycle following the lost CQ as in (b) can no longer occur, and the problem (2) can be solved.
【0043】次に、図3及び図4を参照しながらこのC
Qの損失を検出するための条件について説明する。図3
においてCQ2が損失した場合、CQ2から始まる通信
サイクル中に本来伝送すべきVTRデータパケット2を
FIFOから破棄する必要がある。そのために、送信す
る側のデジタルVTR21は、CQ2の損失をCQ2か
ら始まる通信サイクル中に検知しなければならない。検
知すべきタイミングに必要な条件は、その通信サイクル
中にFIFOから破棄すべきデータを、完全に破棄する
のに必要な時間をその通信サイクル中に残すことであ
る。図3においてFIFO内のVTRデータパケット2
をFIFOから破棄するのに必要な時間をt0とする
と、送信側のデジタルVTR21は遅くとも次の通信サ
イクルの始めのタイミングT2よりもt0早いタイミン
グT1においてCQ2が損失したことを検知しなければ
ならない。Next, referring to FIGS. 3 and 4, this C
The conditions for detecting the Q loss will be described. Figure 3
When CQ2 is lost at, the VTR data packet 2 which should be originally transmitted needs to be discarded from the FIFO during the communication cycle starting from CQ2. Therefore, the transmitting digital VTR 21 must detect the loss of CQ2 during the communication cycle starting from CQ2. The condition required for the timing to be detected is to leave in the communication cycle the time necessary to completely discard the data to be discarded from the FIFO during the communication cycle. In FIG. 3, VTR data packet 2 in FIFO
Assuming that the time required for discarding the data from the FIFO is t0, the digital VTR 21 on the transmitting side must detect the loss of CQ2 at the latest timing T1 t0 earlier than the timing T2 at the beginning of the next communication cycle.
【0044】ところが従来の方法では、デジタルVTR
21がCQ2の損失を検知できるのは、図4のようにC
Q2が損失した通信サイクルの次に正常にCQ3が伝送
されたタイミングT2である。しかしながら、このタイ
ミングにおいてCQ2の損失が検知された場合、CQか
ら始まる通信サイクルのVTRデータパケット3を送信
するまでの時間t1(CQ3が伝送されている時間+g
aptime)はVTRデータパケット2を破棄するの
にかかる時間t0に比べて非常に小さいものであるた
め、t1内に前の通信サイクルで伝送すべきVTRデー
タパケット2をFIFOから破棄し、CQ3から始まる
通信サイクルで伝送すべきVTRデータパケット3をす
ぐに伝送できる状態にすることは時間的に不可能であ
る。However, according to the conventional method, the digital VTR
21 can detect the loss of CQ2 as shown in FIG.
It is the timing T2 when CQ3 is normally transmitted next to the communication cycle in which Q2 is lost. However, when the loss of CQ2 is detected at this timing, the time t1 (the time when CQ3 is transmitted + g when CQ3 is transmitted) until the VTR data packet 3 of the communication cycle starting from CQ is transmitted.
aptime) is much smaller than the time t0 required to discard the VTR data packet 2, the VTR data packet 2 to be transmitted in the previous communication cycle is discarded from the FIFO within t1 and starts from CQ3. It is temporally impossible to put the VTR data packet 3 to be transmitted in the communication cycle into a state in which it can be immediately transmitted.
【0045】同様に、受信側のデジタルVTR22にお
いても、CQ2が損失した場合には、通信プロトコル上
その通信サイクルにおいて受信すべきVTRデータパケ
ット2に相当するエラーのコードを生成してVTR本体
26に送らなければならないわけであるが、従来のCQ
損失の検知タイミングT2においてCQの損失が検出さ
れた場合には、エラーのコードを生成してVTR本体2
6へ送る時間が存在しない。Similarly, in the digital VTR 22 on the receiving side, when the CQ2 is lost, an error code corresponding to the VTR data packet 2 to be received in the communication cycle in the communication protocol is generated and the VTR main body 26 is caused. It has to be sent, but conventional CQ
When CQ loss is detected at the loss detection timing T2, an error code is generated and the VTR main unit 2
There is no time to send to 6.
【0046】そこで、本実施例ではFIFO内のパケッ
トを破棄する時間を十分にとるために、CQ2が損失し
た通信サイクル中にCQ2が損失されたと考えられるタ
イミングを予想して検知する。また、エラーコードを生
成する時間を十分にとるために、CQ2が損失した通信
サイクル中にCQ2が損失したと考えられるタイミング
を予想して検知する。Therefore, in this embodiment, in order to allow a sufficient time for discarding the packet in the FIFO, the timing at which CQ2 is considered to be lost during the communication cycle in which CQ2 is lost is predicted and detected. Further, in order to allow sufficient time for generating the error code, the timing at which CQ2 is considered to have been lost is predicted and detected during the communication cycle in which CQ2 has been lost.
【0047】次に、図5を参照しながら本実施における
CQ損失の検知タイミングについて説明する。ある通信
サイクルにおいて、前述のプロトコル(4)よりCQが
来る可能性のある最も遅いタイミングT0は、自己サイ
クルが始まってから50μsec程度である(一つ前の
通信サイクルにおけるAsyncデータの最大遅延時間
(41μsec)+次の通信サイクルまでのgapti
me(0.04〜0.05μsec)+CQが伝送され
る時間(数μsec))。Next, the detection timing of CQ loss in this embodiment will be described with reference to FIG. In a certain communication cycle, the latest timing T0 at which CQ may come from the above-mentioned protocol (4) is about 50 μsec after the self cycle starts (the maximum delay time of Async data in the immediately preceding communication cycle ( 41 μsec) + gapti until the next communication cycle
me (0.04 to 0.05 μsec) + time for transmitting CQ (several μsec)).
【0048】したがって、正常にCQが伝送されている
状態では、最悪の場合でも自己サイクルが始まって50
μsec経過した時点で必ずCQは伝送されているはず
である。そこで、本実施例では、例えばCQ2の場合、
CQ2を損失した通信サイクルにおいて、本来その通信
サイクルで伝送すべきVTRデータパケット2をFIF
Oから破棄する時間t0を自己サイクルの長さ125μ
secから引いた時点T1をCQ2の損失を検知すべき
最も遅いタイミングとした。そして、自己サイクルが始
まって50μsec程度経過した時点T0までの間にC
Q2が来なかった場合、それはCQ2がバス上において
損失されたと解釈し、そうなった場合時点T1までの間
にFIFO内のVTRデータパケット2を破棄し始めれ
ばよいということになる。実際には、時点T0まで経過
してもCQ2が来なかった場合、時点T1を待たずに時
点T0からFIFO内のVTRデータパケット2の破棄
を始める。なお、図5のt3はパケットの送信が終り、
次の通信サイクルのためのCQが来るまでの時間であ
る。Therefore, in the state where CQ is normally transmitted, the self cycle starts 50 even in the worst case.
CQ must be transmitted at the time when μsec has elapsed. Therefore, in the present embodiment, for example, in the case of CQ2,
In the communication cycle in which CQ2 is lost, the VTR data packet 2 that should originally be transmitted in the communication cycle is FIF
The time t0 for discarding from O is the self cycle length 125μ
The time T1 subtracted from sec was set as the latest timing at which the loss of CQ2 should be detected. Then, within about 50 μsec after the start of the self-cycle, until the time T0, C
If Q2 does not come, it means that CQ2 has been lost on the bus and if so, by the time T1 VTR data packet 2 in the FIFO can begin to be discarded. In reality, if CQ2 does not arrive even after the time T0, the discarding of the VTR data packet 2 in the FIFO is started from the time T0 without waiting for the time T1. Note that at t3 in FIG. 5, the packet transmission is completed,
This is the time until CQ comes for the next communication cycle.
【0049】以上送信側の機器においてCQの損失を検
知する場合を説明したが、受信側の機器においても全く
同じ方法で実現できる。The case of detecting the CQ loss in the transmission side device has been described above, but the same method can be used in the reception side device.
【0050】図6は本発明の第1実施例における送信側
の機器の構成を示す。この回路はVTRデータ送信時に
用いられる回路であり、図13のデジタルVTR21内
のFIFO23及び通信制御用I/F27の内部に存在
する。FIG. 6 shows the configuration of the device on the transmission side in the first embodiment of the present invention. This circuit is used when transmitting VTR data, and is present inside the FIFO 23 and the communication control I / F 27 in the digital VTR 21 shown in FIG.
【0051】まず、VTR本体25体で生成されたVT
Rデータパケットをパケット書き込み回路1によって、
パケット単位でFIFO23に書き込む。書き込まれた
パケットは、パケット読み出し回路3によって読み出さ
れるまでFIFO23内に蓄積されている。そして、F
IFO23からパケットが読み出されると、それ以降に
送信すべきのVTRデータパケットがパケット書き込み
回路1によってFIFO23に書き込まれる。この動作
はFIFO23に空き容量がある限り他の回路の動作に
依存せず繰り返される。First, the VT generated by the 25 VTR bodies
The R data packet is written by the packet writing circuit 1
Write to the FIFO 23 packet by packet. The written packet is accumulated in the FIFO 23 until it is read by the packet reading circuit 3. And F
When the packet is read from the IFO 23, the VTR data packet to be transmitted thereafter is written in the FIFO 23 by the packet writing circuit 1. This operation is repeated without depending on the operation of other circuits as long as the FIFO 23 has a free capacity.
【0052】自機器内のクロックCLKによって自己サ
イクルカウンタ4はカウンタ値aを0secから125
μsecまでカウントアップする。そして、自己サイク
ルカウンタ4のカウンタ値aが125μsecになる
と、カウンタリセット回路5が出力するカウンタ値リセ
ット命令bによって0secにリセットされ、再びクロ
ックCLKを125μsecまでカウントアップする。
さらに、通信プロトコル上絶対とされている、通信シス
テムを管理している機器から送信されているCQ内に書
かれている自己サイクルカウンタ値gによって自己サイ
クルカウンタ4のカウンタ値aがCQごとに修正され
る。この動作は他の回路の動作に依存せず繰り返され
る。The self-cycle counter 4 changes the counter value a from 0 sec to 125 by the clock CLK in the self-device.
Count up to μsec. When the counter value a of the self-cycle counter 4 reaches 125 μsec, it is reset to 0 sec by the counter value reset command b output from the counter reset circuit 5, and the clock CLK is again counted up to 125 μsec.
Further, the counter value a of the self-cycle counter 4 is corrected for each CQ by the self-cycle counter value g written in the CQ transmitted from the device managing the communication system, which is absolute in the communication protocol. To be done. This operation is repeated without depending on the operation of other circuits.
【0053】CQ検知回路7には受信伝送路11上の状
態が常に見えていて、もしメディアアクセス制御部9か
らCQが受信伝送路11上に伝送されていたら、CQ検
出回路7はCQが正常に到達したことをCQ到達判定回
路8に報告する信号dを出す。CQが正常に到達した時
の自己サイクルカウンタ4の値はプロトコル上T0(こ
こでは50μsec程度)より小さいはずである。T0
<自己サイクル判定回路6は自己サイクルカウンタ4の
値aとT0とを比較し、その大小関係に応じた判定値c
をCQ到達判定回路8へ送る。The CQ detection circuit 7 can always see the state on the reception transmission line 11, and if the CQ is transmitted from the media access control unit 9 on the reception transmission line 11, the CQ detection circuit 7 detects that the CQ is normal. The signal d for reporting to the CQ arrival determination circuit 8 that the signal has arrived at is output. The value of the self-cycle counter 4 when the CQ normally reaches should be smaller than T0 (here, about 50 μsec) on the protocol. T0
<Self-cycle determination circuit 6 compares the value a of self-cycle counter 4 with T0, and determines the determination value c according to the magnitude relationship.
To the CQ arrival determination circuit 8.
【0054】CQ到達判定回路8はT0<自己サイクル
判定回路6の出力cとCQ検出回路7の出力dを基に、
正常にCQが到達したと判定した場合には、パケット読
み出し回路3内のスイッチ31を正常時読み出し回路3
3の方へ閉じる。そして、CQ到達判定回路8はパケッ
ト読み出し回路3のスイッチ31を正常時読み出し回路
33の方へ閉じた後は、パケット読み出し回路3からの
読みだし終了報告fを得るまでT0<自己サイクル判定
回路6の判定値cを無効とする。The CQ arrival determination circuit 8 is based on T0 <the output c of the self-cycle determination circuit 6 and the output d of the CQ detection circuit 7,
When it is determined that the CQ has arrived normally, the switch 31 in the packet reading circuit 3 is set to the normal reading circuit 3
Close to 3. Then, the CQ arrival determination circuit 8 closes the switch 31 of the packet read circuit 3 toward the normal read circuit 33, and then, until the read end report f from the packet read circuit 3 is obtained, T0 <self cycle determination circuit 6 The judgment value c of is invalidated.
【0055】また、スイッチ31が閉じられると、正常
時読み出し回路33はメディアアクセス制御部9のアク
セス命令hにしたがって、FIFO23内のデータをパ
ケット単位で読み出す。そして、1パケットの読み出し
を終えると、CQ到達判定回路8へ読みだし終了報告f
を送出する。CQ到達判定回路8はこの報告fを受け取
ると、パケット読み出し回路3内のスイッチ31を開
く。When the switch 31 is closed, the normal read circuit 33 reads the data in the FIFO 23 packet by packet in accordance with the access command h from the media access control unit 9. When the reading of one packet is completed, the CQ arrival determination circuit 8 is read and the end report f is issued.
Is sent. Upon receiving this report f, the CQ arrival determination circuit 8 opens the switch 31 in the packet reading circuit 3.
【0056】もしCQ検知回路7によるCQ検知報告信
号dよりもT0<自己サイクル判定回路6による判定値
cが先に真と出た場合には、受信伝送路11上において
CQが損失したと解釈し、CQ到達判定回路8によって
パケット読み出し回路3内のスイッチ31をパケット破
棄回路32へ閉じる。If T0 <the judgment value c by the self-cycle judgment circuit 6 is true before the CQ detection report signal d by the CQ detection circuit 7, it is interpreted that CQ is lost on the reception transmission line 11. Then, the CQ arrival determination circuit 8 closes the switch 31 in the packet read circuit 3 to the packet discard circuit 32.
【0057】スイッチ31が閉じられると、パケット破
棄回路32はすぐにFIFO23内のパケットを読み出
し始め、読み出したデータはそのまま無効とする。パケ
ット破棄回路32は1パケット分のデータを読みだしを
終えると、CQ到達判定回路8へ読みだし終了報告信号
fを送出する。CQ到達判定回路8はこの信号fを受け
取ると、スイッチ31を開く。When the switch 31 is closed, the packet discard circuit 32 immediately starts reading the packet in the FIFO 23, and the read data is invalidated as it is. When the packet discarding circuit 32 finishes reading one packet of data, it sends out a reading end report signal f to the CQ arrival determination circuit 8. Upon receiving this signal f, the CQ arrival determination circuit 8 opens the switch 31.
【0058】CQ到達判定回路8はパケット読み出し回
路3から読みだし終了報告fが来た後は、再びCQ検知
回路7からのCQ検知報告dとT0<自己サイクル判定
回路6の判定結果cを待つ。The CQ arrival determination circuit 8 waits for the CQ detection report d from the CQ detection circuit 7 and the determination result c of T0 <self cycle determination circuit 6 again after the completion report f read from the packet read circuit 3 comes. .
【0059】図7は本発明の第1実施例における受信側
の機器の構成を示す。この図において、図6の送信側の
機器と対応する部分には同一の番号が付してある。ま
た、この回路はVTRデータ受信時に用いられる回路で
あり、図13のデジタルVTR22内のFIFO24と
通信制御用I/F28の内部に存在する。FIG. 7 shows the configuration of the receiving side device in the first embodiment of the present invention. In this figure, the same numbers are assigned to the parts corresponding to the devices on the transmission side in FIG. Further, this circuit is a circuit used at the time of receiving VTR data, and is present inside the FIFO 24 and the communication control I / F 28 in the digital VTR 22 shown in FIG.
【0060】受信側の装置の動作は前述した送信時の装
置の動作と基本的に同じである。ただし、送信時の書き
込み回路が受信時の読みだし回路、送信時の読み出し回
路が受信時の書き込み回路となるので、パケット書き込
み回路1はパケット読み出し回路13に、パケット読み
出し回路3がパケット書き込み回路14に、パケット破
棄回路32がエラーコード書き込み回路142に、正常
時読みだし回路33が正常時書き込み回路143に、読
みだし終了報告fが書き込み終了報告iになる。The operation of the apparatus on the receiving side is basically the same as the operation of the apparatus at the time of transmission described above. However, since the write circuit at the time of transmission becomes the read circuit at the time of reception and the read circuit at the time of transmission becomes the write circuit at the time of reception, the packet write circuit 1 is the packet read circuit 13 and the packet read circuit 3 is the packet write circuit 14. Then, the packet discard circuit 32 becomes the error code writing circuit 142, the normal read circuit 33 becomes the normal write circuit 143, and the read end report f becomes the write end report i.
【0061】さらに、CQ到達判定回路8によってある
通信サイクルにおいてCQが来たかどうかを判定すると
共に、パケット受信判定回路17によってその通信サイ
クルにおいてパケットを正常に受信したかしなかったか
を判定する。Further, the CQ arrival determination circuit 8 determines whether or not CQ has arrived in a certain communication cycle, and the packet reception determination circuit 17 determines whether or not a packet is normally received in that communication cycle.
【0062】このパケット受信判定回路17は、まず、
前の通信サイクルにおいて、エラーコードもしくはパケ
ットが正常にFIFO24書き込まれると、パケット書
き込み回路14からパケット受信判定回路17に書き込
み終了報告iが到達する。これによって、パケット受信
判定回路17は前の通信サイクルが終了して次の通信サ
イクルが始まることを知る。The packet reception determination circuit 17 first
When the error code or the packet is normally written in the FIFO 24 in the previous communication cycle, the write end report i arrives from the packet write circuit 14 to the packet reception determination circuit 17. As a result, the packet reception determination circuit 17 knows that the previous communication cycle ends and the next communication cycle starts.
【0063】新しい通信サイクルが始まると、パケット
受信判定回路17は、パケット受信検知回路16からパ
ケット受信検知報告mを受けるか又はパケット受信検知
報告mを受ける前にメディアアクセス制御部9より通信
サイクル終了報告jを受けるかによって判定結果kを区
別する。When a new communication cycle starts, the packet reception judgment circuit 17 receives the packet reception detection report m from the packet reception detection circuit 16 or the communication cycle end from the media access control unit 9 before receiving the packet reception detection report m. The determination result k is distinguished depending on whether the report j is received.
【0064】もし新しい通信サイクルに入ってから、先
にパケット受信検知報告mが来た場合には、パケット受
信判定回路17は正常にパケットを受信したと判別し、
その判定結果kをスイッチ制御回路18に報告する。逆
に、新しい通信サイクルが始まってパケット受信検知回
路16によるパケット受信検知報告mよりも先にメディ
アアクセス制御部9から通信サイクル終了報告jが来た
場合には、パケット受信判定回路17はその通信サイク
ル内にパケットを正常に受信できなかったと判別し、そ
の結果kをスイッチ制御回路18へ報告する。If the packet reception detection report m comes first after entering a new communication cycle, the packet reception determination circuit 17 determines that the packet is normally received,
The determination result k is reported to the switch control circuit 18. On the other hand, when a new communication cycle starts and the communication cycle end report j is received from the media access control unit 9 before the packet reception detection report m by the packet reception detection circuit 16, the packet reception determination circuit 17 determines the communication. It is determined that the packet cannot be normally received within the cycle, and the result k is reported to the switch control circuit 18.
【0065】パケット受信判定回路17は判定結果kを
スイッチ制御回路18に送った後は、パケット書き込み
回路14からの書き込み終了報告iを待って、その通信
サイクルの終了を知る。After sending the judgment result k to the switch control circuit 18, the packet reception judgment circuit 17 waits for the write end report i from the packet write circuit 14 to know the end of the communication cycle.
【0066】以上がある通信サイクル中にパケットを正
常に受信したかどうかを判別する回路の動作である。The above is the operation of the circuit for determining whether or not a packet is normally received during a certain communication cycle.
【0067】パケット書き込み回路14の中でのスイッ
チ141をエラーコード書き込み回路142に閉じる
か、もしくは正常時書き込み回路143に閉じるかを決
定するのはスイッチ制御回路18である。スイッチ制御
回路18はCQ到達判定回路8の判定結果e’及びパケ
ットを受信判定回路17の判定結果kを基にスイッチ制
御信号を生成し、下記(1)〜(4)のように動作す
る。The switch control circuit 18 determines whether the switch 141 in the packet writing circuit 14 is closed to the error code writing circuit 142 or the normal time writing circuit 143. The switch control circuit 18 generates a switch control signal based on the judgment result e ′ of the CQ arrival judgment circuit 8 and the judgment result k of the packet reception judgment circuit 17, and operates as in (1) to (4) below.
【0068】(1)CQ到達判定回路8の結果が「CQ
を正常に受信した」であり、かつパケット受信判定回路
17の結果が「パケットを正常に受信した」の場合、す
なわち正常時には、スイッチ141は正常時書き込み回
路143に閉じる。(1) The result of the CQ arrival determination circuit 8 is "CQ
Is normally received ”and the result of the packet reception determination circuit 17 is“ normally received packet ”, that is, in the normal state, the switch 141 is closed to the normal time writing circuit 143.
【0069】(2)CQ到達判定回路8の結果が「CQ
を正常に受信した」であり、かつパケット受信判定回路
17の結果が「パケットを正常に受信しない」の場合、
スイッチ141はエラーコード書き込み回路142に閉
じる。(2) The result of the CQ arrival determination circuit 8 is "CQ
Is received normally ”and the result of the packet reception determination circuit 17 is“ the packet is not received normally ”,
The switch 141 closes the error code writing circuit 142.
【0070】(3)CQ到達判定回路8の結果が「CQ
を正常に受信しない」であり、かつパケット受信判定回
路17の結果が「パケットを正常に受信した」の場合、
スイッチ141はエラーコード書き込み回路142に閉
じる。(3) The result of the CQ arrival determination circuit 8 is "CQ
Is not normally received ”, and the result of the packet reception determination circuit 17 is“ normally received packet ”,
The switch 141 closes the error code writing circuit 142.
【0071】(4)CQ到達判定回路8の結果が「CQ
を正常に受信しない」であり、かつパケット受信判定回
路17の結果が「パケットを正常に受信しない」の場
合、スイッチ141はエラーコード書き込み回路142
に閉じる。(4) The result of the CQ arrival determination circuit 8 is "CQ
Is not normally received ”and the result of the packet reception determination circuit 17 is“ not normally received packet ”, the switch 141 determines that the error code writing circuit 142
Close to.
【0072】以上がスイッチ制御回路18の動作であ
る。スイッチ制御回路18はスイッチ制御信号nを送っ
た後は、上位の二つの判定回路8,17からの判定結果
e’,kが到達するのを待つ。The above is the operation of the switch control circuit 18. After sending the switch control signal n, the switch control circuit 18 waits for the judgment results e ′, k from the upper two judgment circuits 8 and 17 to arrive.
【0073】(第2実施例)まず、図8を参照しながら
第1実施例の通信方式において受信側のみでCQが損失
した場合の処理及びその問題点を説明する。(Second Embodiment) First, with reference to FIG. 8, a description will be given of a process and a problem when CQ is lost only on the receiving side in the communication system of the first embodiment.
【0074】この場合、図8(a)のように、送信側で
はCQが正常に受信されたため、パケットは正常に送信
される。ところが、図8(b)のように、受信側ではC
Q2は損失するが、CQ2損失検知のタイミングT0よ
りも先に送信側からのパケットIsoデータパケット2
が受信される。しかしながら、第1実施例においては、
CQ2の損失を検出するとデータエラーとして処理して
しまうので、パケットを正常に受信しても利用できな
い。In this case, as shown in FIG. 8A, the CQ is normally received at the transmitting side, so that the packet is normally transmitted. However, as shown in FIG.
Although Q2 is lost, the packet Iso data packet 2 from the transmission side is sent before the timing T0 of CQ2 loss detection.
Is received. However, in the first embodiment,
When the loss of CQ2 is detected, it is processed as a data error, and therefore it cannot be used even if the packet is normally received.
【0075】そこで、本実施例では、受信側でデータパ
ケットを正常に受信した場合には、同期パケットを損失
したとしてもデータエラー処理を行わずに、正常なデー
タとして処理するように構成した。Therefore, in this embodiment, when the data packet is normally received on the receiving side, the data error processing is not performed even if the synchronization packet is lost, and the data packet is processed as normal data.
【0076】本実施例の通信方式を実施するための受信
側の装置の構成はスイッチ制御回路18の制御方法を除
けば図7と同じである。スイッチ制御回路18はCQ到
達判定回路8の判定結果e及びパケットを受信判定回路
17の判定結果kを基にスイッチ制御信号を生成し、下
記(1)〜(4)のように動作する。The configuration of the device on the receiving side for implementing the communication system of this embodiment is the same as that of FIG. 7 except for the control method of the switch control circuit 18. The switch control circuit 18 generates a switch control signal based on the judgment result e of the CQ arrival judgment circuit 8 and the judgment result k of the packet reception judgment circuit 17, and operates as in the following (1) to (4).
【0077】(1)CQ到達判定回路8の結果が「CQ
を正常に受信した」であり、かつパケット受信判定回路
17の結果が「パケットを正常に受信した」の場合、す
なわち正常時には、スイッチ141は正常時書き込み回
路143に閉じる。これは第1実施例と同じである。(1) The result of the CQ arrival determination circuit 8 is "CQ
Is normally received ”and the result of the packet reception determination circuit 17 is“ normally received packet ”, that is, in the normal state, the switch 141 is closed to the normal time writing circuit 143. This is the same as the first embodiment.
【0078】(2)CQ到達判定回路8の結果が「CQ
を正常に受信した」であり、かつパケット受信判定回路
17の結果が「パケットを正常に受信しない」の場合、
スイッチ141はエラーコード書き込み回路142に閉
じる。これも第1実施例と同じである。(2) The result of the CQ arrival determination circuit 8 is "CQ
Is received normally ”and the result of the packet reception determination circuit 17 is“ the packet is not received normally ”,
The switch 141 closes the error code writing circuit 142. This is also the same as in the first embodiment.
【0079】(3)CQ到達判定回路8の結果が「CQ
を正常に受信した」であり、かつパケット受信判定回路
17の結果が「パケットを正常に受信した」の場合、す
なわち上記の問題点で挙げた場合、第1実施例とは異な
り、スイッチ141は正常時書き込み回路143に閉じ
る。(3) The result of the CQ arrival determination circuit 8 is "CQ
Is normally received ”and the result of the packet reception determination circuit 17 is“ normally received packet ”, that is, when the above-mentioned problems are mentioned, the switch 141 is different from the first embodiment. The writing circuit 143 is closed at the normal time.
【0080】(4)CQ到達判定回路8の結果が「CQ
を正常に受信しない」であり、かつパケット受信判定回
路17の結果が「パケットを正常に受信しない」の場
合、スイッチ141はエラーコード書き込み回路142
に閉じる。これも第1実施例と同じである。(4) The result of the CQ arrival determination circuit 8 is "CQ
Is not normally received ”and the result of the packet reception determination circuit 17 is“ not normally received packet ”, the switch 141 determines that the error code writing circuit 142
Close to. This is also the same as in the first embodiment.
【0081】このように、本実施例によれば、少なくと
もデータパケットが正常に受信できなかった場合に、デ
ータエラーとして処理する。したがって、同期パケット
の損失を検知する前にデータパケットを受信した場合に
は、そのデータパケットを正常に処理することができ
る。As described above, according to this embodiment, at least when a data packet cannot be received normally, it is processed as a data error. Therefore, when the data packet is received before the loss of the synchronization packet is detected, the data packet can be processed normally.
【0082】なお、前記各実施例はP1394シリアル
バスを介してVTRデータを伝送するシステムに関する
ものであるが、本発明はデジタルオーディオデータを伝
送するシステムやコンピュータデータを伝送するシステ
ムにも適用できる。Although each of the above embodiments relates to a system for transmitting VTR data via the P1394 serial bus, the present invention can be applied to a system for transmitting digital audio data or a system for transmitting computer data.
【0083】[0083]
【発明の効果】以上詳細に説明したように、本発明によ
れば、送信側の機器内に備えるFIFO等の記憶手段の
サイズは最低限の大きさでよい。また、受信側において
同期パケット又はデータパケットの少なくとも一方が受
信できなかった場合にも、受信したデータの番号を一意
に決定することが容易になる。As described above in detail, according to the present invention, the size of the storage means such as the FIFO provided in the device on the transmission side may be the minimum size. Further, even when the receiving side cannot receive at least one of the synchronization packet and the data packet, it becomes easy to uniquely determine the number of the received data.
【0084】さらに、受信側の機器は、同期パケットの
損失を検出する前にその同期パケットから始まる通信サ
イクル期間に送信されたデータパケットを受信した場合
には、後に同期パケットの損失を検出してもデータパケ
ットを正常に処理できる。Further, when the receiving side device receives the data packet transmitted in the communication cycle period starting from the synchronization packet before detecting the loss of the synchronization packet, it detects the loss of the synchronization packet later. Can process data packets normally.
【図1】本発明の第1実施例においてCQが損失した場
合のバス上のデータの状態の例を示す図である。FIG. 1 is a diagram showing an example of a state of data on a bus when CQ is lost in the first embodiment of the present invention.
【図2】本発明の第1実施例における受信側のデータの
状態の例を示す図である。FIG. 2 is a diagram showing an example of a state of data on the receiving side in the first embodiment of the present invention.
【図3】送信側においてCQ損失の検知に求められる条
件を示す図である。FIG. 3 is a diagram showing conditions required for detection of CQ loss on the transmission side.
【図4】従来のCQ損失の検知のタイミングを示す図で
ある。FIG. 4 is a diagram illustrating a conventional CQ loss detection timing.
【図5】本発明の実施例におけるCQ損失の検知のタイ
ミングを示す図である。FIG. 5 is a diagram showing a timing of detecting a CQ loss in the embodiment of the present invention.
【図6】本発明の第1実施例における送信側の機器の構
成の例を示す図である。FIG. 6 is a diagram showing an example of a configuration of a device on the transmission side in the first embodiment of the present invention.
【図7】本発明の第1実施例における受信側の機器の構
成の例を示す図である。FIG. 7 is a diagram showing an example of a configuration of a receiving-side device in the first embodiment of the present invention.
【図8】送信側でCQを正常に受信し、受信側ではCQ
を損失した場合のデータの状態の例を示す図である。FIG. 8: CQ is normally received on the transmitting side, and CQ is received on the receiving side.
It is a figure which shows the example of the state of the data at the time of losing.
【図9】本発明を適用する通信システムの例を示す図で
ある。FIG. 9 is a diagram showing an example of a communication system to which the present invention is applied.
【図10】図9の通信システムを等化的に記載した図で
ある。10 is a diagram equivalently describing the communication system of FIG.
【図11】本発明を適用する通信システムにおけるバス
上の理想的なデータの状態の例を示す図である。FIG. 11 is a diagram showing an example of ideal data states on a bus in a communication system to which the present invention is applied.
【図12】本発明を適用する通信システムにおける実際
のバス上のデータの状態の正常例及び異常例を示す図で
あるFIG. 12 is a diagram showing a normal example and an abnormal example of actual data states on a bus in a communication system to which the present invention is applied.
【図13】本発明を適用するデジタルVTRの基本的構
成を示す図である。FIG. 13 is a diagram showing a basic configuration of a digital VTR to which the present invention is applied.
【図14】図13のデジタルVTRで伝送するデータの
構成の例を示す図である。14 is a diagram showing an example of a structure of data transmitted by the digital VTR of FIG.
【図15】図14のデータを伝送したときの実際のバス
上でのデータの状態の例を示す図である。15 is a diagram showing an example of an actual data state on a bus when the data of FIG. 14 is transmitted.
【図16】バス上でCQが損失した場合のデータの状態
の例を示す図である。FIG. 16 is a diagram showing an example of a state of data when CQ is lost on the bus.
【図17】送信側のみでCQが損失した場合における、
従来の送信側及び受信側のデータの状態の例を示す図で
ある。FIG. 17 shows a case where CQ is lost only on the transmission side,
It is a figure which shows the example of the state of the data of the conventional transmitting side and the receiving side.
【図18】受信側のみでCQが損失した場合における、
従来の送信側及び受信側のデータの状態の例を示す図で
ある。FIG. 18 shows a case where CQ is lost only on the receiving side,
It is a figure which shows the example of the state of the data of the conventional transmitting side and the receiving side.
CQ…サイクルスタートパケット、CC…通信サイク
ル、SC…自己サイクル、Isoデータ…同期型デー
タ、Asyncデータ…非同期型データCQ ... Cycle start packet, CC ... Communication cycle, SC ... Self cycle, Iso data ... Synchronous data, Async data ... Asynchronous data
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平7−321759(JP,A) Michael Teener,A bus on a diet−the serial bus alterna tive−an introducti on to the P1394 High Performance Seria l Bus,Compcon Spri ng’92.Thirty−Sevent h IEEE Computer So ciety Internationa l Conference,Diges t of Papers,米国,IEE E,1992年 2月24日,P.316−321 (58)調査した分野(Int.Cl.7,DB名) H04L 12/28 ─────────────────────────────────────────────────── ─── Continuation of front page (56) Reference JP-A-7-321759 (JP, A) Michael Teener, A bus on a diet-the serial bus alternate-an introducer on to the PB Higher Perfume. Compcon Spring '92. Thirty-Event h IEEE Computer Society International Conference, Digest of Papers, USA, IEEE E, February 24, 1992, P.P. 316-321 (58) Fields investigated (Int.Cl. 7 , DB name) H04L 12/28
Claims (5)
パケットとを含む通信サイクルによりデータ通信を行う
通信方式において、 送信側において前記同期パケットが損失した場合、該同
期パケットから始まる通信サイクル期間で送信すべきデ
ータパケットの送信を行わないようにすることを特徴と
する通信方式。1. In a communication method for performing data communication in a communication cycle including a synchronization packet indicating synchronization of communication and a data packet, when the synchronization packet is lost on the transmitting side, transmission is performed in a communication cycle period starting from the synchronization packet. A communication method characterized by not transmitting data packets that should be transmitted.
か又はデータパケットが正常に受信できなかった場合、
データエラー処理を行うことを特徴とする請求項1記載
の通信方式。2. When the synchronization packet is lost or the data packet cannot be received normally at the receiving side,
The communication method according to claim 1, wherein data error processing is performed.
トが正常に受信できなかった場合、データエラー処理を
行うことを特徴とする請求項1記載の通信方式。3. The communication system according to claim 1, wherein at least the data packet is not normally received at the receiving side, the data error processing is performed.
パケットの周期間隔に要する時間内に次の同期パケット
を検出しないことにより該同期パケットの損失を検出す
る請求項1、2又は3記載の通信方式。4. After detecting the one of the synchronization packet, synchronization
The communication system according to claim 1, 2 or 3, wherein the loss of the next synchronization packet is detected by not detecting the next synchronization packet within the time required for the packet cycle interval .
である請求項1、2、3又は4記載の通信方式。5. The communication system according to claim 1, wherein the data is synchronous data and asynchronous data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10750494A JP3456009B2 (en) | 1994-04-22 | 1994-04-22 | Communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10750494A JP3456009B2 (en) | 1994-04-22 | 1994-04-22 | Communication method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07297851A JPH07297851A (en) | 1995-11-10 |
| JP3456009B2 true JP3456009B2 (en) | 2003-10-14 |
Family
ID=14460891
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10750494A Expired - Fee Related JP3456009B2 (en) | 1994-04-22 | 1994-04-22 | Communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3456009B2 (en) |
-
1994
- 1994-04-22 JP JP10750494A patent/JP3456009B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| Michael Teener,A bus on a diet−the serial bus alternative−an introduction to the P1394 High Performance Serial Bus,Compcon Spring’92.Thirty−Seventh IEEE Computer Society International Conference,Digest of Papers,米国,IEEE,1992年 2月24日,P.316−321 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07297851A (en) | 1995-11-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5802059A (en) | Signal receiving apparatus | |
| KR100605238B1 (en) | Method and apparatus for isochronous data communication | |
| US4945548A (en) | Method and apparatus for detecting impending overflow and/or underrun of elasticity buffer | |
| US7260653B2 (en) | Method and device for the synchronization between two networks | |
| JPH055711Y2 (en) | ||
| US5301186A (en) | High speed transmission line interface | |
| US6088366A (en) | Device and method for converting a data transfer rate in communication of digital audio and video data | |
| JPH07321759A (en) | Communication method | |
| US4612541A (en) | Data transmission system having high-speed transmission procedures | |
| JP3456009B2 (en) | Communication method | |
| US20040111660A1 (en) | CRC verification apparatus with constant delay and method thereof | |
| EP0396669B1 (en) | Method and apparatus for detecting impending overflow and/or underrun of elasticity buffer | |
| JP3189571B2 (en) | Data processing device | |
| JP3505787B2 (en) | Electronics | |
| JP3546799B2 (en) | Data transceiver | |
| US7116684B2 (en) | Cell disassembly unit | |
| JP3825847B2 (en) | Communication device | |
| JP3430689B2 (en) | Bidirectional repeater device | |
| JP2754684B2 (en) | Communication line test equipment | |
| JP2644558B2 (en) | Test apparatus and test method for communication device | |
| JP4061731B2 (en) | Signal processing circuit and method thereof | |
| JPH10164105A (en) | Communication device and communication method | |
| JPH0531981B2 (en) | ||
| JPH10285236A (en) | Signal processing circuit | |
| JPH02203630A (en) | Time division multiplexer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20030630 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080801 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080801 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090801 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100801 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110801 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110801 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130801 Year of fee payment: 10 |
|
| LAPS | Cancellation because of no payment of annual fees |