JP2000324136A - Packet transmission system - Google Patents

Packet transmission system

Info

Publication number
JP2000324136A
JP2000324136A JP2000071076A JP2000071076A JP2000324136A JP 2000324136 A JP2000324136 A JP 2000324136A JP 2000071076 A JP2000071076 A JP 2000071076A JP 2000071076 A JP2000071076 A JP 2000071076A JP 2000324136 A JP2000324136 A JP 2000324136A
Authority
JP
Japan
Prior art keywords
bit
packet
time
bit stream
receiving side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000071076A
Other languages
Japanese (ja)
Other versions
JP3546799B2 (en
Inventor
Tomohisa Shiga
知久 志賀
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.)
Sony Corp
Original Assignee
Sony 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
Priority claimed from JP24225594A external-priority patent/JP3203978B2/en
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2000071076A priority Critical patent/JP3546799B2/en
Publication of JP2000324136A publication Critical patent/JP2000324136A/en
Application granted granted Critical
Publication of JP3546799B2 publication Critical patent/JP3546799B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To secure coincidence of bit stream speeds between the transmitting and receiving sides by extracting the position time of the head bit of a bit stream that is added at the transmitting side and using the extracted time to control the speed at which a bit stream of the receiving side is read out of a temporary storage means. SOLUTION: An inputted bit stream is turned into a packet in every 125 μs as prescribed by the specifications of IEEE-P1394. A sink time is added or no sink time is added to the bit stream according to whether a head bit is included in the bit stream. When a packet where a sink time is written is received, the sink time is read out of the packet and the time to which a prescribed delay time is added is defined as the head bit of a bit stream of the receiving side. Then the difference of bit rates caused between the transmitting and receiving sides is outputted to control the bit rate of the receiving side.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、IEEE−P1394
に準拠した通信制御バス(以下「P1394シリアルバ
ス」という。)を用いて、一定速度のビットストリーム
をパケット化して伝送する場合に用いて好適なパケット
伝送方式に関する。
BACKGROUND OF THE INVENTION The present invention relates to an IEEE-P1394
The present invention relates to a packet transmission system suitable for use in a case where a constant-speed bit stream is packetized and transmitted using a communication control bus (hereinafter, referred to as a “P1394 serial bus”) that conforms to the standard.

【0002】[0002]

【従来の技術】従来、ビットストリームをパケット化し
て伝送する場合、送信側では所定のフォーマットでパケ
ット化したビットストリームの先頭にヘッダを付与し、
受信側ではパケットのヘッダの位置を検出しこのヘッダ
の位置情報を用いて送信側と同期をとっていた。
2. Description of the Related Art Conventionally, when a bit stream is packetized and transmitted, a transmitting side attaches a header to the head of the bit stream packetized in a predetermined format,
The receiving side detects the position of the header of the packet, and synchronizes with the transmitting side using the position information of the header.

【0003】[0003]

【発明が解決しようとする課題】しかし、前記従来の方
法はビットストリームのフォーマットが変わる度にヘッ
ダの位置を検出する手段を変えなければならず、したが
って、アプリケーションに依存しているという問題があ
った。
However, the conventional method has a problem that the means for detecting the position of the header must be changed every time the format of the bit stream is changed, and therefore, there is a problem that it depends on the application. Was.

【0004】本発明は、このような問題点を解決するた
めになされたものであって、任意の速度、フォーマット
のビットストリームを伝送する際に、アプリケーション
に依存することなく、送信側のビットストリームと受信
側のビットストリームの速度を合わせることのできるパ
ケット伝送方式を提供することを目的とする。
The present invention has been made in order to solve such a problem, and when transmitting a bit stream of an arbitrary speed and format, the transmission side bit stream can be transmitted without depending on the application. It is an object of the present invention to provide a packet transmission system capable of matching the bit stream speeds of the receiver and the receiver.

【0005】また、本発明は、送信側のビットストリー
ムと受信側のビットストリームの速度を合わせ、かつ位
相関係を一定に制御することができるパケット伝送方式
を提供することを目的とする。
Another object of the present invention is to provide a packet transmission system capable of adjusting the speeds of a bit stream on the transmission side and a bit stream on the reception side and controlling the phase relationship to be constant.

【0006】さらに、本発明は、伝送中に損失したデー
タ量を検出するできるパケット伝送方式を提供すること
を目的とする。
A further object of the present invention is to provide a packet transmission system capable of detecting the amount of data lost during transmission.

【0007】[0007]

【課題を解決するための手段】前記課題を解決するため
に、本発明は、所定の速度のビットストリームをパケッ
ト化して伝送するパケット伝送方式において、送信側
に、ビットストリームに周期的に先頭ビットの位置を付
与する手段と、この付与された先頭ビットの位置の時刻
をパケットに付加する手段とを設け、受信側に、受信し
たパケットの一時蓄積手段と、受信したパケットに付加
されている先頭ビットの位置の時刻を抽出する手段と、
この抽出した時刻を用いて一時蓄積手段からのビットス
トリームの読み出し速度を制御する手段とを設けたこと
を特徴とする。
According to the present invention, there is provided a packet transmission method for packetizing a bit stream having a predetermined speed and transmitting the bit stream at a predetermined rate. Means for assigning the position of the assigned leading bit to the packet, and a means for temporarily storing the received packet, Means for extracting the time at the bit position;
Means for controlling the reading speed of the bit stream from the temporary storage means using the extracted time.

【0008】ここで、先頭ビットの位置を付与する手段
は、例えばビットストリームの速度と同じ速度で動作す
るカウンタである。また、受信側のビットストリームの
読み出し速度の制御は、受信したパケットから抽出した
先頭ビットの位置の時刻に所定値を加算した時刻でのビ
ットストリームの位置を受信側のビットストリームの先
頭ビットの位置に定め、この先頭ビットの位置の間隔に
基づいて行う。
Here, the means for giving the position of the leading bit is, for example, a counter operating at the same speed as the speed of the bit stream. In addition, the control of the reading speed of the bit stream on the receiving side is performed by adding the predetermined value to the time of the position of the leading bit extracted from the received packet and determining the position of the leading bit of the receiving side bit stream. And is performed based on the interval between the positions of the first bit.

【0009】本発明はさらに、送信側に、所定時間毎に
ビットストリームのビットの位置をパケットに付加する
手段を設け、受信側に、送信側で付加されたビットスト
リームビットの位置を基に受信側の先頭ビットの位置を
定めて一時蓄積手段へ送出する手段と、受信側の先頭ビ
ットの位置を一時蓄積手段から読み出した時刻とパケッ
トから抽出した先頭ビットの位置の時刻に基づいて一時
蓄積手段からのビットストリームの読み出し速度を制御
するように構成した。
The present invention further comprises means for adding a bit position of a bit stream to a packet at a predetermined time on a transmission side, and a receiving side for receiving data based on the bit stream bit position added on the transmission side. Means for determining the position of the first bit on the receiving side and sending it to the temporary storing means; and means for temporarily storing the position of the first bit on the receiving side based on the time read from the temporary storing means and the time of the position of the first bit extracted from the packet. It is configured to control the reading speed of the bit stream from the.

【0010】[0010]

【0010】また、本発明は、送信側でパケット長をパ
ケットに付加し、受信側でこのパケット長と前記ビット
ストリームのビットの位置とを用いて伝送中に損失した
データ量を検出するように構成した。
Further, according to the present invention, a packet length is added to a packet on a transmitting side, and a data amount lost during transmission is detected on the receiving side using the packet length and the bit position of the bit stream. Configured.

【0011】そして、本発明では送信側の時刻と受信側
の時刻の時刻合わせを行うように構成した。
According to the present invention, the time on the transmitting side and the time on the receiving side are adjusted.

【0012】[0012]

【作用】本発明によれば、受信側では、送信側でパケッ
トに付加したビットストリームの先頭ビットの位置の時
刻を抽出し、この抽出した時刻を用いて受信側のビット
ストリームを一時蓄積手段から読み出す速度を制御する
ことにより、送信側と受信側のビットストリームの速度
を合わせることができる。
According to the present invention, the receiving side extracts the time at the position of the first bit of the bit stream added to the packet on the transmitting side, and uses the extracted time to store the bit stream on the receiving side from the temporary storage means. By controlling the reading speed, the bit stream speeds on the transmitting side and the receiving side can be matched.

【0013】受信側のビットストリームの読み出し速度
の制御は、受信したパケットから抽出した先頭ビットの
位置の時刻に所定値を加算した時刻でのビットストリー
ムの位置を受信側のビットストリームの先頭ビットの位
置に定め、例えばこの先頭ビットの位置の間隔の差分が
0になるようにする。
The reading speed of the bit stream on the receiving side is controlled by adding a predetermined value to the time of the position of the leading bit extracted from the received packet and determining the position of the bit stream at the time of the leading bit of the receiving side bit stream. The position is determined, for example, so that the difference between the intervals of the position of the first bit becomes zero.

【0014】また、受信側のビットストリームの読み出
し速度の制御は、送信側で付加されたビットストリーム
のビットの位置を基に受信側の先頭ビットの位置を定
め、この先頭ビットの位置を一時蓄積手段から読み出し
た時刻とパケットから抽出した先頭ビットの位置の時刻
とに基づいて行う。このようにすると、送信側のビット
ストリームと受信側のビットストリームの速度を合わ
せ、かつ位相を一定の関係に制御することかできる。
In the control of the reading speed of the bit stream on the receiving side, the position of the first bit on the receiving side is determined based on the position of the bit of the bit stream added on the transmitting side, and the position of the first bit is temporarily stored. This is performed based on the time read from the means and the time of the position of the first bit extracted from the packet. In this way, the speeds of the bit stream on the transmitting side and the bit stream on the receiving side can be matched, and the phase can be controlled in a fixed relationship.

【0015】[0015]

【実施例】以下本発明の実施例について、〔1〕P13
94シリアルバスを用いた通信システム、〔2〕本発明
の第1実施例、〔3〕本発明の第2実施例、の順に詳細
に説明する。
EXAMPLES Examples of the present invention are described below in [1] P13.
A communication system using a 94 serial bus, [2] a first embodiment of the present invention, and [3] a second embodiment of the present invention will be described in this order.

【0016】〔1〕P1394シリアルバスを用いた通
信システム 本発明を4Mbps のビットストリームをP1394シリ
アルバスに乗せて伝送する場合の2つの実施例について
説明する。まず、2つの実施例に共通であるP1394
シリアルバスを用いた通信システムについて説明する。
[1] Communication System Using P1394 Serial Bus Two embodiments of the present invention for transmitting a 4 Mbps bit stream on a P1394 serial bus will be described. First, a P1394 common to the two embodiments
A communication system using a serial bus will be described.

【0017】図10にこのような通信システムの例を示
す。この通信システムは4台のデジタルビデオテープレ
コーダ(VTR1〜4)、1台のデジタルカムコーダ
(CAM)、1台の編集機、及び1台のコンピュータを
備えている。そして、各機器の間はP1394シリアル
バスのケーブルにより接続されている。各機器はP13
94シリアルバスのケーブルから入力される情報信号及
び制御信号を中継する機能を持っているので、この通信
システムは各機器が共通のP1394シリアルバスに接
続されている通信システムと等価である。
FIG. 10 shows an example of such a communication system. This communication system includes four digital video tape recorders (VTRs 1 to 4), one digital camcorder (CAM), one editing machine, and one computer. The devices are connected by a P1394 serial bus cable. Each device is P13
This communication system is equivalent to a communication system in which each device is connected to a common P1394 serial bus because it has a function of relaying information signals and control signals input from a 94 serial bus cable.

【0018】バスを共有している機器におけるデータ伝
送は、図11のように所定の通信サイクル(例えば12
5μsec) 毎に時分割多重によって行なわれる。バス上
における通信サイクルの管理はサイクルマスターと呼ば
れる所定の機器により行われ、サイクルマスターが通信
サイクルの開始時であることを示す同期パケット(サイ
クルスタートパケット)をバス上の他の機器へ伝送する
ことによってその通信サイクルにおけるデータ伝送が開
始される。なお、サイクルマスターはP1394シリア
ルバスに各機器を接続して通信システムを構成すると、
IEEE−P1394で規定する手法により自動的に決
定される。
Data transmission in devices sharing a bus is performed in a predetermined communication cycle (for example, 12
5 μsec) by time division multiplexing. The management of communication cycles on the bus is performed by a predetermined device called a cycle master, and the cycle master transmits a synchronization packet (cycle start packet) indicating the start of a communication cycle to another device on the bus. Starts data transmission in the communication cycle. When the cycle master connects each device to the P1394 serial bus to form a communication system,
It is automatically determined by the method specified in IEEE-P1394.

【0019】一通信サイクル中におけるデータ伝送の形
態は、ビデオデータやオーディオデータなどの同期型
(Isochronous) データと、接続制御コマンド等の非同
期型(Asynchronous)データの2種類である。そして、
同期型データパケットが非同期型データパケットより先
に伝送される。同期型データパケットそれぞれにチャン
ネル番号1,2,3 ,・・・Nを付けることにより、複
数の同期型データを区別することができる。送信すべき
全てのチャンネルの同期型データパケットの送信が終了
した後、次のサイクルスタートパケットまでの期間が非
同期型データパケットの伝送に使用される。
There are two types of data transmission in one communication cycle: synchronous (Isochronous) data such as video data and audio data, and asynchronous (Asynchronous) data such as a connection control command. And
Synchronous data packets are transmitted before asynchronous data packets. By assigning channel numbers 1, 2, 3,... N to each synchronous data packet, a plurality of synchronous data can be distinguished. After the transmission of the synchronous data packets of all the channels to be transmitted is completed, the period until the next cycle start packet is used for transmitting the asynchronous data packets.

【0020】〔2〕本発明の第1実施例 2−1)送信側のタイミング まず図1を参照しながら第1実施例における送信側のタ
イミングについて説明する。この図で、(a)は入力さ
れるビットストリーム、(b)は4MHzのクロックを
カウントするカウンタの出力値、(c)は送信される同
期型データパケットを示す。なお、本発明の対象となる
パケットは同期型データパケットだけなので、以下単に
パケットと呼ぶことにする。
[2] First Embodiment of the Present Invention 2-1) Transmission Timing First, the transmission timing in the first embodiment will be described with reference to FIG. In this figure, (a) shows an input bit stream, (b) shows an output value of a counter that counts a 4 MHz clock, and (c) shows a synchronous data packet to be transmitted. Note that, since only synchronous data packets are the target of the present invention, they will be simply referred to as packets hereinafter.

【0021】入力されるビットストリームはIEEE−
P1394の仕様で決められているように、125μs
毎にパケット化され伝送される。ここでは、期間T1で
後述するFIFOに書かれたビットストリームはパケッ
トP1として、期間T2でFIFOに書かれたビットス
トリームはパケットP2として伝送される。
The input bit stream is based on IEEE-
125 μs, as determined by the specification of P1394
It is packetized and transmitted every time. Here, the bit stream written in the FIFO described later in the period T1 is transmitted as a packet P1, and the bit stream written in the FIFO in the period T2 is transmitted as a packet P2.

【0022】本実施例では、入力されるビットストリー
ムを仮想的に一定の周期で繰り返すビット列の集合と考
え、すなわち現実には一定の周期を持っていないか他の
周期で繰り返しているビットストリームを一定の周期で
繰り返しているビット列の集合とみなし、仮想的にフレ
ーミングをしている。このフレーミングを行うために、
入力されるビットレートと同じ速度で動作するカウンタ
を用いている。このカウンタの出力値が図1の(b)で
ある。
In the present embodiment, an input bit stream is considered as a set of bit strings that are virtually repeated at a constant cycle. That is, a bit stream that does not actually have a fixed cycle or is repeated at another cycle is considered. It is regarded as a set of bit strings that are repeated at a constant period, and framing is performed virtually. To do this framing,
A counter that operates at the same speed as the input bit rate is used. The output value of this counter is shown in FIG.

【0023】また、パケットにはシンクタイム(Sync T
ime) が先頭に付いているものと、付いていないものが
ある。これは、そのパケットで伝送されるビットストリ
ームの中に、ビットストリームの先頭ビットが含まれて
いるかどうかに依存する。本実施例ではカウンタの出力
値が0の位置をフレームの先頭とした。
The packet has a sync time (Sync T).
ime) are prefixed and some are not. This depends on whether the bit stream transmitted in the packet includes the first bit of the bit stream. In this embodiment, the position where the output value of the counter is 0 is set as the head of the frame.

【0024】シンクタイムとはフレームの先頭ビットに
おける、P1394のサイクルタイマー(Cycle Time
r) が示す時刻のことである。このサイクルタイマー
は、各機器内に設けられており、所定の周期(例、12
8秒)で一周する時刻を持っている。
The sync time is a cycle timer (Cycle Time) of P1394 at the first bit of the frame.
r) The time indicated by. This cycle timer is provided in each device, and has a predetermined period (for example, 12
8 seconds).

【0025】送信側と受信側のクロックは独立してお
り、同期をしていないため、クロックの誤差が累積し、
送信側でビットストリームをFIFOに書き込む速度
と、受信側でビットストリームをFIFOから読み出す
速度が少しづつずれてくる。これを調節するための情報
としてシンクタイムを用いる。この調節方法の詳細につ
いては後述する。
The clocks on the transmitting side and the receiving side are independent and not synchronized, so that clock errors accumulate,
The speed at which the bit stream is written to the FIFO on the transmitting side and the speed at which the bit stream is read from the FIFO at the receiving side slightly deviate. A sync time is used as information for adjusting this. Details of this adjustment method will be described later.

【0026】本実施例の伝送方式はアプリケーションに
依存しないため、ビットストリームの内容を解析して先
頭ビットを決めることはできない。そこで、ビットスト
リームと同じ速度で一づつ増加するカウンタを用意し、
このカウンタの出力値が0になった位置を先頭ビットと
した。このカウンタはP1394の一周期である125
μsよりも長くなくてはならない。これは一つのパケッ
ト中に、二つ以上のシンクタイムを書き込むことができ
ないからである。本実施例では一周期の長さが250μ
sのカウンタ、例えば4MHzのクロックを1000カ
ウントしたら一周するカウンタを用いた。
Since the transmission method of this embodiment does not depend on the application, it is not possible to determine the first bit by analyzing the contents of the bit stream. So we have a counter that increases by one at the same rate as the bit stream,
The position where the output value of this counter became 0 was defined as the first bit. This counter is 125, which is one cycle of P1394.
Must be longer than μs. This is because two or more sync times cannot be written in one packet. In this embodiment, the length of one cycle is 250 μm.
An s counter, for example, a counter which makes one round when a 4 MHz clock is counted 1000 times, was used.

【0027】図1の周期T1の中ではカウンタの出力値
が0になっているので、パケットP1にはシンクタイム
が付加されている。同様に、周期T3中にもカウンタの
出力値が0になるので、パケットP3にはシンクタイム
が付加されている。しかし、周期T2ではカウンタ値は
0にならないので、パケットP2にはシンクタイムは含
まれていない。図1ではカウンタの出力値が0の時から
のビットストリームの値を仮にA,B,C,・・・とし
た。これは後で受信側の説明で用いる。なお、A,B,
C等の各々は1ビットではなく複数ビットでもよい。
Since the output value of the counter is 0 in the cycle T1 in FIG. 1, a sync time is added to the packet P1. Similarly, since the output value of the counter becomes 0 during the period T3, a sync time is added to the packet P3. However, since the counter value does not become 0 in the cycle T2, the packet P2 does not include the sync time. In FIG. 1, the values of the bit stream from when the output value of the counter is 0 are temporarily A, B, C,. This will be used later in the description of the receiving side. A, B,
Each of C and the like may be not a single bit but a plurality of bits.

【0028】2−2)送信回路 次に、図2を参照しながら送信回路の説明をする。入力
されたビットストリームaは4MHzのクロックbに同
期してFIFO1に書き込まれる。一方、P1394イ
ンターフェイス(以下「P1394 I/F」とい
う。)3は、読み出し要求信号eをシンクタイム付与回
路2へ出力し、FIFO1からデータを読み出すように
指示する。
2-2) Transmission Circuit Next, the transmission circuit will be described with reference to FIG. The input bit stream a is written into the FIFO 1 in synchronization with a 4 MHz clock b. On the other hand, a P1394 interface (hereinafter referred to as “P1394 I / F”) 3 outputs a read request signal e to the sync time providing circuit 2 and instructs to read data from the FIFO 1.

【0029】シンクタイム付与回路2はこれから出力す
るパケットにシンクタイムを書き込むかどうか判断し、
もし必要であればシンクタイムをデータfとしてP13
94I/F3へ出力する。その後はP1394 I/F
3からの読み出し要求信号eに合わせて、読み出し要求
信号cをFIFO1へ出力し、FIFO1からデータd
を読み出し、P1394 I/F3に渡す。
The sync time providing circuit 2 determines whether or not to write a sync time in a packet to be output from now on.
If necessary, set the sync time as data f in P13
Output to 94I / F3. After that, P1394 I / F
3 and outputs a read request signal c to the FIFO 1 in accordance with the read request signal e from the FIFO 1.
Is read and passed to the P1394 I / F3.

【0030】シンクタイムを付与するかどうかの判断は
以下のようにして行われる。クロックbでカウントアッ
プするカウンタ4の出力値が比較回路5に出力される。
比較回路5はカウンタ14の出力値が0になると出力信
号をシンクタイム付与回路2とラッチ6へ出力する。こ
れにより、シンクタイム付与回路2では、これから出力
をしようとしているパケットにシンクタイムを書き込む
かどうかの判断ができる。
The determination as to whether to give a sync time is made as follows. The output value of the counter 4 counting up by the clock b is output to the comparison circuit 5.
When the output value of the counter 14 becomes 0, the comparison circuit 5 outputs an output signal to the sync time giving circuit 2 and the latch 6. As a result, the sync time assignment circuit 2 can determine whether or not to write the sync time to the packet that is about to be output.

【0031】ここで、シンクタイムとして書かれる値
は、ラッチ6が出力する値である。ラッチ6は比較回路
5が出力をした時点でのサイクルタイマー7の値をラッ
チし、シンクタイム付与回路2へ出力をする。
Here, the value written as the sync time is the value output by the latch 6. The latch 6 latches the value of the cycle timer 7 at the time when the output from the comparison circuit 5 is output, and outputs the value to the sync time giving circuit 2.

【0032】カウンタ8が出力するパケット長gは、前
の周期で書かれたビットストリームの長さである。この
値はP1394 I/F3に与えられる。実際の回路で
は、図1に示したように一周期125μsの間に書かれ
るビットストリームの長さは、書き込まれるタイミング
とクロックのジッタ等の影響で、必ずしも一定でない。
したがって、各周期毎にパケット長をP1394 I/
F3に与えている。
The packet length g output by the counter 8 is the length of the bit stream written in the previous cycle. This value is given to the P1394 I / F3. In an actual circuit, as shown in FIG. 1, the length of a bit stream written during one cycle of 125 μs is not always constant due to the timing of writing and the influence of clock jitter.
Therefore, the packet length is set to P1394 I /
Give to F3.

【0033】P1394 I/F3は125μsの周期
の先頭でリセット信号hを出力する。比較回路5とカウ
ンタ8はこのリセット信号hによりリセットされ、次の
周期に備える。
The P1394 I / F 3 outputs a reset signal h at the beginning of a cycle of 125 μs. The comparison circuit 5 and the counter 8 are reset by the reset signal h, and prepare for the next cycle.

【0034】2−3)受信側のタイミング 次に、図3を参照しながら受信側のタイミングについて
説明をする。この図で、(a)は受信したパケット、
(b)は受信したパケットから生成したビットストリー
ム、(c)は4MHzのクロックをカウントするカウン
タの出力値を示す。
2-3) Timing on the receiving side Next, the timing on the receiving side will be described with reference to FIG. In this figure, (a) is a received packet,
(B) shows a bit stream generated from a received packet, and (c) shows an output value of a counter that counts a 4 MHz clock.

【0035】P1394シリアルバスを経て受信しパケ
ットは、後述するFIFOを介しビットストリームとし
て読み出される。受信側も送信側と同様、ビットストリ
ームと同期して動作しているカウンタがある。このカウ
ンタは送信側のカウンタとは独立に動作しているため
に、同じ時刻でも送信側とは異なる値をとる。前述の通
り、送信側のクロックと受信側のクロックは独立して動
作しているので、互いにずれを生ずる。送信側と受信側
のビットレートは平均して同じでなければならないの
で、シンクタイムを用いてこのずれを修正する。
A packet received via the P1394 serial bus is read out as a bit stream via a FIFO described later. Like the transmitting side, the receiving side has a counter that operates in synchronization with the bit stream. Since this counter operates independently of the counter on the transmitting side, it takes a value different from that on the transmitting side even at the same time. As described above, since the clock on the transmitting side and the clock on the receiving side operate independently, they are shifted from each other. Since the bit rates on the transmitting side and the receiving side must be the same on average, this difference is corrected using the sync time.

【0036】以下にシンクタイムを用いてこのずれを修
正する方法を説明する。シンクタイムが書き込まれてい
るパケット(例えば図3のパケットP4)が受信される
と、パケットからシンクタイムを読みだし、所定の遅延
時間tdを加えた時刻を受信側のビットストリームの先
頭ビットとする。遅延時間tdを加える理由は、パケッ
トに書かれているシンクタイムの時刻は送信側の時刻で
あり、受信側でパケットが受信され、そのパケットに書
かれたデータがビットストリームとして読みだされた時
には、パケットのジッタΔT等の要因でシンクタイムの
時刻を過ぎているからである。なお、このジッタはP1
394シリアルバスの仕様上生ずるものである。
Hereinafter, a method for correcting this deviation using the sync time will be described. When a packet in which the sync time is written (for example, packet P4 in FIG. 3) is received, the sync time is read from the packet, and the time obtained by adding a predetermined delay time td is set as the first bit of the bit stream on the receiving side. . The reason for adding the delay time td is that the time of the sync time written in the packet is the time of the transmitting side, and when the packet is received by the receiving side and the data written in the packet is read out as a bit stream, This is because the time of the sync time has passed due to factors such as packet jitter ΔT. This jitter is P1
This occurs due to the specification of the 394 serial bus.

【0037】次に、このシンクタイムに遅延時間tdを
加えた時刻のカウンタの出力値をラッチしておく。図3
(c)では59である。そして、次にまたシンクタイム
が書き込まれているパケットを受信した時に同様の処理
を行い、カウンタ出力値をラッチする。その後、前回ラ
ッチしたカウンタ出力値と今回ラッチしたカウンタ出力
値の差を求める。受信側のカウンタも送信側と同様、4
MHzのクロックを1000カウントしたら一周する。
したがって、送信側のビットレートと受信側のビットレ
ートが同じであれば、ラッチした二つの値は同じにな
り、差は0になるはずである。この差が0でない場合
は、受信側の読みだしクロックを作成しているPLL
(詳細は後述する)にその差を出力し、受信側のビット
レートを調節する。これにより、送信側と受信側のビッ
トレートを平均して同じにすることができる。
Next, the output value of the counter at the time obtained by adding the delay time td to the sync time is latched. FIG.
In (c), it is 59. Then, the same processing is performed the next time a packet in which the sync time is written is received, and the counter output value is latched. Thereafter, the difference between the previously latched counter output value and the currently latched counter output value is determined. The counter on the receiving side is 4
When the clock of the MHz is counted 1000 times, the circuit goes around once.
Therefore, if the bit rate on the transmitting side and the bit rate on the receiving side are the same, the two latched values should be the same and the difference should be 0. If this difference is not 0, the PLL that is creating the read clock on the receiving side
(The details will be described later.) The difference is output to adjust the bit rate on the receiving side. Thereby, the bit rates of the transmitting side and the receiving side can be made equal on average.

【0038】送信側ではビットストリームの値が図1の
例ではAの所が先頭ビットであった。しかし、受信側で
は必ずしも先頭ビットがAであるとは限らない(図3の
例ではCである)。したがって、図4に示すように、送
信側の周期と受信側の周期では位相が通常ずれている。
しかし、平均して送信側と受信側で同じビットレートで
あれば良く、位相のずれは問題にならない。
On the transmission side, the value of the bit stream in the example of FIG. However, on the receiving side, the first bit is not always A (C in the example of FIG. 3). Therefore, as shown in FIG. 4, the phases of the transmission side cycle and the reception side cycle are usually out of phase.
However, it is sufficient if the average bit rate is the same on the transmitting side and the receiving side on average, and phase shift does not matter.

【0039】2−4)受信回路 次に、図5を参照しながら受信回路の説明をする。P1
394シリアルバス9を介してP1394 I/F11
で受信されたパケットjは、FIFO12へ出力され、
PLL22から出力される4MHzのクロックmに同期
して4MHzのビットストリームkとして読み出され
る。
2-4) Receiving Circuit Next, the receiving circuit will be described with reference to FIG. P1
P1394 I / F11 via 394 serial bus 9
The packet j received at is output to the FIFO 12,
The data is read out as a 4 MHz bit stream k in synchronization with a 4 MHz clock m output from the PLL 22.

【0040】一方、P1394 I/F11から出力さ
れたパケットjはシンクタイム抽出回路13にも出力さ
れ、シンクタイムが抽出される。このシンクタイムに
は、レジスタ15にセットされている遅延時間tdが加
算器14で加算され、比較回路16でサイクルタイマー
17の出力と比較され、同じであれば出力をする。
On the other hand, the packet j output from the P1394 I / F 11 is also output to the sync time extraction circuit 13 and the sync time is extracted. The delay time td set in the register 15 is added to the sync time by the adder 14 and compared with the output of the cycle timer 17 by the comparison circuit 16.

【0041】サイクルタイマーの値は送信側も受信側も
同じ絶対時刻を持っている。これは、前述したサイクル
マスターが125μs毎にバスへ送出するサイクルスタ
ートパケットにサイクルマスターに設けられているサイ
クルタイマーの絶対時刻が書かれており、バスに接続さ
れている各機器はサイクルスタートパケットを受信しそ
こに書かれている絶対時刻により自分のサイクルタイマ
ーの時刻を補正しているからである。
The value of the cycle timer has the same absolute time on both the transmitting side and the receiving side. This is because the absolute time of the cycle timer provided in the cycle master is written in the cycle start packet transmitted to the bus by the cycle master every 125 μs, and each device connected to the bus transmits the cycle start packet. This is because the time of the own cycle timer is corrected by the absolute time received and written therein.

【0042】比較回路16の出力はアンド回路19とラ
ッチ18及びラッチ23に出力される。ラッチ23は比
較回路16からの出力により、カウンタ20の出力をラ
ッチする。カウンタ20はビットストリームの読み出し
クロックmで一づつ増加し、周期は送信側と同じ100
0ある。
The output of the comparison circuit 16 is output to an AND circuit 19, a latch 18 and a latch 23. The latch 23 latches the output of the counter 20 based on the output from the comparison circuit 16. The counter 20 is incremented by one at a bit stream read clock m, and the cycle is 100
There are 0.

【0043】ラッチ21は電源投入後、一度のみラッチ
がかかる。このラッチ21でラッチされた値が受信側の
先頭ビットである。その後、この値は変更されてほしく
ないために、一度のみラッチがかかるようになってい
る。これをラッチ18で実現している。ラッチ18は電
源投入後、最初の比較回路16からの出力でローレベル
をラッチする。したがって、それ以降はアンド回路19
にローレベルを出力し続ける。この回路によりラッチ2
1には比較回路16からの出力は一度しか入力されず、
ラッチ21は一度しかラッチがかからないことになる。
The latch 21 is latched only once after the power is turned on. The value latched by the latch 21 is the first bit on the receiving side. Thereafter, this value is latched only once, as we do not want it to change. This is realized by the latch 18. After the power is turned on, the latch 18 latches the low level with the first output from the comparison circuit 16. Therefore, thereafter, the AND circuit 19
Output a low level. The latch 2
1, the output from the comparison circuit 16 is input only once.
The latch 21 is latched only once.

【0044】減算器24ではラッチ21の出力からラッ
チ23の出力を減算し、PLL22へ出力する。もし減
算器24の出力が0より大きければ、前回の先頭ビット
の位置よりも小さい値をラッチしたことになるので、P
LL22には位相が早くなるような値を出力し、逆の場
合は位相が遅くなるような値を出力すれば良いことにな
る。この結果、受信側のビットレートを送信側のビット
レートに合わせることができる。
The subtractor 24 subtracts the output of the latch 23 from the output of the latch 21 and outputs the result to the PLL 22. If the output of the subtractor 24 is larger than 0, it means that a value smaller than the previous position of the first bit has been latched.
A value that causes the phase to be advanced is output to LL22, and a value that causes the phase to be delayed is output in the opposite case. As a result, the bit rate on the receiving side can be adjusted to the bit rate on the transmitting side.

【0045】〔3〕本発明の第2実施例 次に図6〜図9を参照しながら本発明の第2実施例につ
いて説明する。ここで第1実施例と対応する部分には同
一の番号が付してある。
[3] Second Embodiment of the Present Invention Next, a second embodiment of the present invention will be described with reference to FIGS. Here, parts corresponding to those in the first embodiment are given the same numbers.

【0046】3−1)送信側のタイミング まず、図6を参照しながら送信側のタイミングについて
説明する。この図で(a)は入力されるビットストリー
ム、(b)は4MHzのクロックをカウントするカウン
タの出力値、(c)は送信されるパケットを示す。
3-1) Transmission-side timing First, the transmission-side timing will be described with reference to FIG. In this figure, (a) shows an input bit stream, (b) shows an output value of a counter for counting a 4 MHz clock, and (c) shows a transmitted packet.

【0047】第1実施例との差異は、全てのパケットに
パケット長とデータブロック番号(Data Bloc
k Number:以下「DBN」と略す。)が付加さ
れていることである。パケット長は第1実施例において
説明したように、前の周期でFIFOに書き込まれたビ
ットストリームの長さである。そして、DBNは各パケ
ットの最初に書かれているビットのカウンタの出力値で
ある。
The difference from the first embodiment is that all packets have a packet length and a data block number (Data Bloc).
k Number: hereinafter abbreviated as “DBN”. ) Is added. The packet length is the length of the bit stream written to the FIFO in the previous cycle, as described in the first embodiment. DBN is the output value of the bit counter written at the beginning of each packet.

【0048】また、本実施例では、シンクタイムがフレ
ームの先頭ビットの時刻を示していることを利用して、
受信側でシンクタイムに所定の遅延時間tdを足した時
刻にFIFOからフレームの先頭ビットが読み出される
ようにすることにより、送信側に入力されるビットスト
リームと、受信側から出力されるビットストリームの間
の位相を制御するためにも用いる。
Also, in the present embodiment, utilizing that the sync time indicates the time of the first bit of the frame,
By allowing the reception side to read the first bit of the frame from the FIFO at a time obtained by adding a predetermined delay time td to the sync time, the bit stream input to the transmission side and the bit stream output from the reception side are read out. Also used to control the phase between them.

【0049】3−2)送信回路 次に図7を参照しながら送信回路の説明をする。入力さ
れたビットストリームaは4MHzのクロックbに同期
してFIFO1に書き込まれる。一方、P1394 I
/F3は、読み出し要求信号eをシンクタイム,DBN
付与回路2’へ出力し、FIFO1からデータを読み出
すように指示する。
3-2) Transmission Circuit Next, the transmission circuit will be described with reference to FIG. The input bit stream a is written into the FIFO 1 in synchronization with a 4 MHz clock b. On the other hand, P1394 I
/ F3 sets the read request signal e to the sync time, DBN
The data is output to the application circuit 2 ′, and an instruction is issued to read data from the FIFO1.

【0050】シンクタイム,DBN付与回路2’はこれ
から出力するパケットにシンクタイムを書き込むかどう
かの判断をし、もし必要であればシンクタイムとカウン
タ4から入力されるDBNをデータf’としてP139
4 I/F3へ出力する。その後はP1394 I/F3
からの読み出し要求信号eに合わせて、読み出し要求信
号cをFIFO1へ出力し、FIFO1からデータdを
読み出し、P1394 I/F3に渡す。なお、シンク
タイムを書き込む必要がなければDBNのみをP139
4 I/F3に渡す。
The sync time / DBN adding circuit 2 'determines whether or not to write a sync time in a packet to be output from now on. If necessary, the sync time and the DBN input from the counter 4 are used as data f' as P139.
4 Output to I / F3. After that, P1394 I / F3
The read request signal c is output to the FIFO 1 in accordance with the read request signal e from the controller, and the data d is read from the FIFO 1 and passed to the P1394 I / F3. If it is not necessary to write the sync time, only DBN is stored in P139.
4 Give it to I / F3.

【0051】シンクタイムを付与するかどうかの判断基
準及びシンクタイムとして書かれる値は第1実施例と同
じである。また、カウンタ8が出力するパケット長g、
及びP1394 I/F3が出力するリセット信号hの
作用も第1実施例と同じである。
The criterion for determining whether to give a sync time and the value written as the sync time are the same as in the first embodiment. Also, the packet length g output by the counter 8,
The operation of the reset signal h output from the P1394 I / F3 is the same as that of the first embodiment.

【0052】3−3)受信側のタイミング 次に図8を参照しながら受信側のタイミングについて説
明をする。この図で、(a)は受信したパケット、
(b)は受信したパケットから生成したビットストリー
ム、(c)はフレーミングビット、(d)は4MHzの
クロックをカウントするカウンタの出力値である。
3-3) Timing on Receiving Side Next, the timing on the receiving side will be described with reference to FIG. In this figure, (a) is a received packet,
(B) is a bit stream generated from the received packet, (c) is a framing bit, and (d) is an output value of a counter that counts a 4 MHz clock.

【0053】P1394シリアルバスを経て受信したパ
ケットは、後述するFIFOからビットストリームとし
て読み出される。第1実施例において説明したように、
送信側のクロックと受信側のクロックは独立して動作し
ているので、互いにずれを生ずる。送信側と受信側のビ
ットレートは平均して同じでなければならないので、シ
ンクタイムを用いてこのずれを修正し、同時に送信側と
受信側それぞれのビットストリーム間の位相制御を行う
方法について説明する。
The packet received via the P1394 serial bus is read as a bit stream from a FIFO described later. As described in the first embodiment,
Since the clock on the transmitting side and the clock on the receiving side operate independently, they are shifted from each other. Since the bit rates of the transmitting side and the receiving side must be the same on average, a method of correcting this deviation using the sync time and simultaneously controlling the phase between the bit streams of the transmitting side and the receiving side will be described. .

【0054】パケットP4が受信されるとデータ部はF
IFOに書き込まれ、DBNとシンクタイムが抽出され
る。受信側にはパケットのデータが読み出される毎にカ
ウントアップするカウンタがあり、図8の(d)がその
出力値を示している。このカウンタ出力値はDBNを受
け取る度に、DBNに合わせられる。図8のパケットP
4にはDBN=998が書かれているので、カウンタの
出力値は強制的に998に合わせられる。正常に動作し
ていれば、カウンタの出力値はDBNを受け取った時点
では998の筈である。
When the packet P4 is received, the data part becomes F
The data is written to the IFO, and the DBN and the sync time are extracted. The receiving side has a counter that counts up every time the packet data is read, and FIG. 8D shows the output value. This counter output value is adjusted to DBN each time DBN is received. Packet P in FIG.
Since DBN = 998 is written in 4, the output value of the counter is forcibly adjusted to 998. If it is operating normally, the output value of the counter should be 998 when the DBN is received.

【0055】このようにしてDBNにより値が補正され
るカウンタの出力値0になった時にフレーミングビット
を1にしてFIFOに書き込み、その時同時にFIFO
に書き込まれたデータがフレームの先頭ビットであるこ
とを示す。このため、FIFOはデータの幅より1ビッ
ト広いデータバスを持っている。FIFOからはビット
ストリームと同時にフレーミングビットも読み出され
る。その様子を図8の(c)に示す。前記したようにフ
レーミングビットが1のデータはフレームの先頭ビット
であり、このデータが読み出された時刻がシンクタイム
に所定の遅延時間tdを足した時刻になるように読み出
し側のPLLを調節する。これにより送信側と受信側の
間で一定の位相を保証することができる。
As described above, when the output value of the counter whose value is corrected by the DBN becomes 0, the framing bit is set to 1 and written into the FIFO.
Indicates that the data written in is the first bit of the frame. For this reason, the FIFO has a data bus one bit wider than the data width. The framing bits are read from the FIFO simultaneously with the bit stream. This is shown in FIG. As described above, the data whose framing bit is 1 is the first bit of the frame, and the PLL on the read side is adjusted so that the time at which this data is read is the time obtained by adding a predetermined delay time td to the sync time. . Thereby, a fixed phase can be guaranteed between the transmitting side and the receiving side.

【0056】3−4)受信回路 次に図9を参照しながら受信回路の説明をする。P13
94 I/F11はパケットを受信すると、書き込み信
号nと共にパケットpをデータ部抽出回路25、DBN
抽出回路26、及びシンクタイム抽出回路13に出力す
る。
3-4) Receiving Circuit Next, the receiving circuit will be described with reference to FIG. P13
Upon receiving the packet, the 94 I / F 11 converts the packet p together with the write signal n into the data portion extraction circuit 25, DBN
Output to the extraction circuit 26 and the sync time extraction circuit 13.

【0057】DBN抽出回路26はパケットpからDB
Nを読み出し、カウンタ27へ出力する。カウンタ27
は書き込み信号qによってカウントアップをし、DBN
抽出回路26からDBNが入力された時は、出力値がD
BNに合わせられる。カウンタ27は比較回路28へカ
ウンタ値を出力する。
The DBN extraction circuit 26 converts the packet p into the DB
N is read and output to the counter 27. Counter 27
Counts up by the write signal q, and DBN
When DBN is input from the extraction circuit 26, the output value is D
It is adjusted to BN. The counter 27 outputs a counter value to the comparison circuit 28.

【0058】比較回路28ではカウンタ27からの出力
と0を比較し、0であればデータ部抽出回路25に信号
を出力する。データ部抽出回路25ではP1394 I
/F11から入力されるパケットpからデータ部rを抽
出し、書き込み信号qと共にFIFO12’に書き込
む。またこの時、比較回路28からカウンタ27の出力
値が0であることを示す信号が入力されると、FIFO
12’に書き込むフレーミングビットを1にする。これ
により、FIFO12’内のフレーミングビットが1の
データはフレームの先頭であることがわかる。
The comparison circuit 28 compares the output from the counter 27 with 0, and if it is 0, outputs a signal to the data section extraction circuit 25. In the data part extraction circuit 25, P1394 I
The data part r is extracted from the packet p input from the / F11, and written into the FIFO 12 'together with the write signal q. At this time, when a signal indicating that the output value of the counter 27 is 0 is input from the comparison circuit 28,
The framing bit to be written to 12 'is set to 1. As a result, it is found that the data whose framing bit in the FIFO 12 'is 1 is the head of the frame.

【0059】シンクタイム抽出回路13はパケットから
シンクタイムを抽出し、加算器14において所定の遅延
時間tdを加算し、加算結果を減算器24へ出力する。
FIFO12’にデータと共に書き込まれたフレーミン
グビットはデータと共に読み出され、ラッチ29へ出力
される。ラッチ29ではサイクルタイマー17からの値
を、FIFO12’からの出力が1になったときにラッ
チし、ラッチした値を減算器24へ出力する。
The sync time extracting circuit 13 extracts a sync time from the packet, adds a predetermined delay time td in the adder 14, and outputs the addition result to the subtractor 24.
The framing bits written together with the data into the FIFO 12 ′ are read together with the data and output to the latch 29. The latch 29 latches the value from the cycle timer 17 when the output from the FIFO 12 ′ becomes 1, and outputs the latched value to the subtractor 24.

【0060】減算器24ではラッチ29から入力された
時刻から加算器64から入力された時刻を引き、PLL
22へ出力する。PLL22は正の値が入力されると、
その大きさに従って早い方向(周波数が高くなる方向)
にクロックmを動かし、負の値が入力されると、その大
きさに従って遅い方向(周波数が低くなる方向)にクロ
ックmを動かす。これにより送信側に入力されるビット
ストリームと受信側から読み出されるビットストリーム
を一定の位相関係に制御することができる。
The subtracter 24 subtracts the time input from the adder 64 from the time input from the latch 29, and
22. When a positive value is input to the PLL 22,
Faster direction (higher frequency) according to its size
When a negative value is input, the clock m is moved in a slower direction (a direction in which the frequency decreases) according to the magnitude. As a result, the bit stream input to the transmission side and the bit stream read from the reception side can be controlled to have a fixed phase relationship.

【0061】また、本実施例では、パケット長を利用し
て損失したパケットのデータ量を算出することもでき
る。例えば図8の場合、パケットP4の一つ前のパケッ
トのDBNは498でありそのパケット長は500であ
るから、正常に動作していれば、このDBNにパケット
長を加算した値は次のパケットP4のDBNに等しくな
る。しかし、P4が損失すると、DBN抽出回路26が
抽出するDBNは次に受信するパケットに付与れさてい
る498となるので、500ビットを損失したことがわ
かる。
In this embodiment, the data amount of a lost packet can be calculated by using the packet length. For example, in the case of FIG. 8, since the DBN of the packet immediately before the packet P4 is 498 and the packet length is 500, if the operation is normal, the value obtained by adding the packet length to this DBN is the next packet. It is equal to the DBN of P4. However, if P4 is lost, the DBN extracted by the DBN extraction circuit 26 becomes 498 added to the next packet to be received, indicating that 500 bits have been lost.

【0062】さらに、本実施例では、受信側でDBNを
受け取った時のカウンタ27の出力値がDBNと異なる
ことを検出することにより、パケットの損失を検出する
ことが可能である。例えば図8の場合、パケットP4が
損失すると、DBN抽出回路26が抽出するDBNは次
に受信するパケットに付与れさている498となる。一
方、カウンタ27の出力値は998になっている。
Further, in this embodiment, it is possible to detect a packet loss by detecting that the output value of the counter 27 when the DBN is received on the receiving side is different from the DBN. For example, in the case of FIG. 8, when the packet P4 is lost, the DBN extracted by the DBN extraction circuit 26 becomes 498 added to the next packet to be received. On the other hand, the output value of the counter 27 is 998.

【0063】[0063]

【発明の効果】以上詳細に説明したように、本発明によ
れば、任意の速度、フォーマットのビットストリームを
伝送する際に、アプリケーションに依存することなく、
送信側のビットストリームと受信側のビットストリーム
の速度を合わせることができる。
As described above in detail, according to the present invention, when transmitting a bit stream of an arbitrary speed and format, it does not depend on the application.
The speeds of the bit stream on the transmission side and the bit stream on the reception side can be matched.

【0064】[0064]

【0064】また、本発明によれば、送信側のビットス
トリームと受信側のビットストリームの速度を合わせ、
かつ位相関係を一定に制御することができる。さらに、
本発明によれば、損失したパケットのデータ量を検出す
ることができる。
According to the present invention, the speeds of the bit stream on the transmitting side and the bit stream on the receiving side are matched.
In addition, the phase relationship can be controlled to be constant. further,
According to the present invention, the data amount of a lost packet can be detected.

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

【図1】本発明の第1実施例における送信側の信号のタ
イミングの一例を説明する図である。
FIG. 1 is a diagram illustrating an example of a timing of a signal on a transmission side according to a first embodiment of the present invention.

【図2】本発明の第1実施例における送信回路を示すブ
ロック図である。
FIG. 2 is a block diagram illustrating a transmission circuit according to the first embodiment of the present invention.

【図3】本発明の第1実施例における受信側の信号のタ
イミングの一例を説明する図である。
FIG. 3 is a diagram illustrating an example of a timing of a signal on a receiving side according to the first embodiment of the present invention.

【図4】本発明の第1実施例における送信側と、受信側
の、先頭ビットと周期の関係の一例を説明する図であ
る。
FIG. 4 is a diagram illustrating an example of a relationship between a head bit and a cycle on a transmitting side and a receiving side in the first embodiment of the present invention.

【図5】本発明の第1実施例における受信回路を示すブ
ロック図である。
FIG. 5 is a block diagram illustrating a receiving circuit according to the first embodiment of the present invention.

【図6】本発明の第2実施例における送信側の信号のタ
イミングの一例を説明する図である。
FIG. 6 is a diagram illustrating an example of a timing of a signal on a transmission side according to a second embodiment of the present invention.

【図7】本発明の第2実施例における送信回路を示すブ
ロック図である。
FIG. 7 is a block diagram illustrating a transmission circuit according to a second embodiment of the present invention.

【図8】本発明の第2実施例における受信側の信号のタ
イミングの一例を説明する図である。
FIG. 8 is a diagram illustrating an example of the timing of a signal on a receiving side according to a second embodiment of the present invention.

【図9】本発明の第2実施例における受信回路を示すブ
ロック図である。
FIG. 9 is a block diagram illustrating a receiving circuit according to a second embodiment of the present invention.

【図10】P1394シリアルバスを用いた通信システ
ムの一例を示す図である。
FIG. 10 is a diagram illustrating an example of a communication system using a P1394 serial bus.

【図11】P1394シリアルバスにおける通信サイク
ルの一例を示す図である。
FIG. 11 is a diagram illustrating an example of a communication cycle in a P1394 serial bus.

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

P1〜P4 パケット、 A,B,C,・・・ ビット
ストリーム、 1,12 FIFO、 2 シンクタイ
ム付与回路、 2’ シンクタイム,DBN付与回路、
3,11 P1394 I/F、 4,8,20,2
7 カウンタ、5,16 比較回路、 6,18,2
1,23,29 ラッチ、 7,17サイクルタイマ
ー、 9 P1394シリアルバス、 13 シンクタ
イム抽出回路、 14 加算器、 15 レジスタ、
19 アンド回路、 22 PLL回路、 24 減算
器、 25 データ部抽出回路、 26 DBN抽出回
P1 to P4 packets, A, B, C,... Bit stream, 1,12 FIFO, 2 sync time giving circuit, 2 ′ sync time, DBN giving circuit,
3,11 P1394 I / F, 4,8,20,2
7 counter, 5,16 comparison circuit, 6,18,2
1,23,29 latch, 7,17 cycle timer, 9 P1394 serial bus, 13 sync time extraction circuit, 14 adder, 15 register,
19 AND circuit, 22 PLL circuit, 24 subtracter, 25 data part extraction circuit, 26 DBN extraction circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04L 29/08 H04L 11/20 102F H04N 7/24 13/00 307C // G06F 5/06 H04N 7/13 Z ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04L 29/08 H04L 11/20 102F H04N 7/24 13/00 307C // G06F 5/06 H04N 7/13 Z

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 所定の速度のビットストリームをパケッ
ト化して伝送するパケット伝送方式において、 送信側に、ビットストリームに周期的に先頭ビットの位
置を付与する手段と、該付与された先頭ビットの位置の
時刻をパケットに付加する手段とを設け、 受信側に、受信したパケットの一時蓄積手段と、該パケ
ットに付加されている先頭ビットの位置の時刻を抽出す
る手段と、該抽出した時刻を用いて前記一時蓄積手段か
らのビットストリームの読み出し速度を制御する手段と
を設けたことを特徴とするパケット伝送方式。
1. A packet transmission system for packetizing a bit stream having a predetermined speed and transmitting the bit stream to a transmitting side, wherein a means for periodically assigning a position of a leading bit to the bit stream is provided. Means for adding the time of the packet to the packet, on the receiving side, means for temporarily storing the received packet, means for extracting the time of the position of the first bit added to the packet, and using the extracted time. Means for controlling the speed of reading the bit stream from said temporary storage means.
【請求項2】 先頭ビットの位置を付与する手段がビッ
トストリームの速度と同じ速度で動作するカウンタであ
る請求項1記載のパケット伝送方式。
2. The packet transmission system according to claim 1, wherein the means for assigning the position of the first bit is a counter that operates at the same speed as the speed of the bit stream.
【請求項3】 抽出した先頭ビットの位置の時刻に所定
値を加算した時刻でのビットストリームの位置を受信側
のビットストリームの先頭ビットの位置に定め、該先頭
ビットの位置の間隔に基づいて受信側のビットストリー
ムの読み出し速度を制御する請求項1又は2記載のパケ
ット伝送方式。
3. The position of the bit stream at the time obtained by adding a predetermined value to the time of the position of the extracted first bit is determined as the position of the first bit of the bit stream on the receiving side, and based on the interval between the positions of the first bit. 3. The packet transmission method according to claim 1, wherein a read speed of a bit stream on a receiving side is controlled.
【請求項4】 送信側に、所定時間毎にビットストリー
ムのビットの位置をパケットに付加する手段を設け、 受信側に、該付加されたビットの位置を基に受信側の先
頭ビットの位置を定めて一時蓄積手段へ送出する手段
と、該受信側の先頭ビットの位置を該一時蓄積手段から
読み出した時刻とパケットから抽出した先頭ビットの位
置の時刻に基づいて一時蓄積手段からのビットストリー
ムの読み出し速度を制御する手段とを設けたことを特徴
とする請求項1又は2記載のパケット伝送方式。
4. A transmitting side is provided with means for adding a bit position of a bit stream to a packet at predetermined time intervals, and a receiving side determines a position of a leading bit on the receiving side based on the position of the added bit. Means for determining the position of the first bit on the receiving side and the time of the position of the first bit extracted from the packet based on the time of the position of the first bit extracted from the packet. 3. The packet transmission system according to claim 1, further comprising means for controlling a reading speed.
【請求項5】 送信側でパケット長をパケットに付加
し、受信側で該パケット長とビットストリームのビット
の位置とを用いて伝送中に失われたデータ量を算出する
ことを特徴とする請求項4記載のパケット伝送方式。
5. The transmission side adds a packet length to a packet, and the reception side calculates an amount of data lost during transmission using the packet length and a bit position of a bit stream. Item 6. The packet transmission method according to Item 4.
【請求項6】 送信側の時刻と受信側の時刻の時刻合わ
せを行う請求項1記載のパケット伝送方式。
6. The packet transmission system according to claim 1, wherein the time on the transmitting side and the time on the receiving side are adjusted.
JP2000071076A 1994-07-25 2000-03-09 Data transceiver Expired - Lifetime JP3546799B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000071076A JP3546799B2 (en) 1994-07-25 2000-03-09 Data transceiver

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP19280794 1994-07-25
JP6-192807 1994-07-25
JP24225594A JP3203978B2 (en) 1994-07-25 1994-09-09 Data transmitting / receiving device, data receiving device, and data transmitting device
JP2000071076A JP3546799B2 (en) 1994-07-25 2000-03-09 Data transceiver

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24225594A Division JP3203978B2 (en) 1994-07-25 1994-09-09 Data transmitting / receiving device, data receiving device, and data transmitting device

Publications (2)

Publication Number Publication Date
JP2000324136A true JP2000324136A (en) 2000-11-24
JP3546799B2 JP3546799B2 (en) 2004-07-28

Family

ID=32854043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000071076A Expired - Lifetime JP3546799B2 (en) 1994-07-25 2000-03-09 Data transceiver

Country Status (1)

Country Link
JP (1) JP3546799B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005053316A1 (en) * 2003-11-26 2005-06-09 Sanyo Electric Co.,Ltd. Radio video transmission device, radio video reception device, radio video transmission/reception system, signal generation device, signal decoding device, and signal generation/decoding device
JP2008271077A (en) * 2007-04-19 2008-11-06 Alpine Electronics Inc Transmission system, transmitter, receiver and clock control method
JP2011061431A (en) * 2009-09-09 2011-03-24 Fujitsu Ltd Signal processing circuit, interface unit, frame transmitter, and reading method of segment data
JP2014517588A (en) * 2011-05-02 2014-07-17 アップル インコーポレイテッド Method and apparatus for transferring data through a network tunnel

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005053316A1 (en) * 2003-11-26 2005-06-09 Sanyo Electric Co.,Ltd. Radio video transmission device, radio video reception device, radio video transmission/reception system, signal generation device, signal decoding device, and signal generation/decoding device
KR100776277B1 (en) * 2003-11-26 2007-11-13 산요덴키가부시키가이샤 Radio video transmission device, radio video reception device, radio video transmission/reception system, signal generation device, signal decoding device, and signal generation/decoding device
JPWO2005053316A1 (en) * 2003-11-26 2007-12-06 三洋電機株式会社 Wireless video transmission apparatus, wireless video reception apparatus, wireless video transmission / reception system, signal generation apparatus, signal decoding apparatus, and signal generation decoding apparatus
JP4660377B2 (en) * 2003-11-26 2011-03-30 三洋電機株式会社 Wireless video transmission device, video transmission device, wireless video reception device, video reception device, wireless video transmission / reception system, and video transmission / reception system
US8442123B2 (en) 2003-11-26 2013-05-14 Sanyo Electric Co., Ltd. Device, signal generation/decoding device, video transmission device, video reception device, and video transmission/reception system
JP2008271077A (en) * 2007-04-19 2008-11-06 Alpine Electronics Inc Transmission system, transmitter, receiver and clock control method
JP2011061431A (en) * 2009-09-09 2011-03-24 Fujitsu Ltd Signal processing circuit, interface unit, frame transmitter, and reading method of segment data
JP2014517588A (en) * 2011-05-02 2014-07-17 アップル インコーポレイテッド Method and apparatus for transferring data through a network tunnel

Also Published As

Publication number Publication date
JP3546799B2 (en) 2004-07-28

Similar Documents

Publication Publication Date Title
JP3203978B2 (en) Data transmitting / receiving device, data receiving device, and data transmitting device
JP3371174B2 (en) Packet receiver
KR100605238B1 (en) Method of and apparatus for isochronous data communication
US5790538A (en) System and method for voice Playout in an asynchronous packet network
JP3679808B2 (en) Signal processing system
US6088366A (en) Device and method for converting a data transfer rate in communication of digital audio and video data
US6757304B1 (en) Method and apparatus for data communication and storage wherein a IEEE1394/firewire clock is synchronized to an ATM network clock
JP3810918B2 (en) Multimedia data relay apparatus and method
JP3499818B2 (en) Time stamp offset adjusting method and packet transmission device using the same
JP3546799B2 (en) Data transceiver
EP0873019B1 (en) Device and method for transmitting digital audio and video data
JP3505787B2 (en) Electronics
EP1667447B1 (en) Data conversion system
JP3578156B2 (en) Packet receiver
JPH06350649A (en) Method for transmission and synchronization of block data
JP2821290B2 (en) PCM terminal device with frame aligner circuit and frame aligner method
JPH10164105A (en) Equipment and method for communication
JPH07321849A (en) Data transfer device
JP2000253029A (en) Data transmission and reception system

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040323

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040405

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

Free format text: PAYMENT UNTIL: 20080423

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090423

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090423

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100423

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100423

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110423

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110423

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120423

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130423

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140423

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term