JPH11225167A - Digital signal receiver, its method and recording medium storing program concerning the method - Google Patents

Digital signal receiver, its method and recording medium storing program concerning the method

Info

Publication number
JPH11225167A
JPH11225167A JP10041091A JP4109198A JPH11225167A JP H11225167 A JPH11225167 A JP H11225167A JP 10041091 A JP10041091 A JP 10041091A JP 4109198 A JP4109198 A JP 4109198A JP H11225167 A JPH11225167 A JP H11225167A
Authority
JP
Japan
Prior art keywords
sample
time
samples
estimated
packet data
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
JP10041091A
Other languages
Japanese (ja)
Other versions
JP3444397B2 (en
Inventor
Junichi Fujimori
潤一 藤森
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP04109198A priority Critical patent/JP3444397B2/en
Publication of JPH11225167A publication Critical patent/JPH11225167A/en
Application granted granted Critical
Publication of JP3444397B2 publication Critical patent/JP3444397B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a device which is easily mounted by simple constitution by estimating the hourly position of a leading sample by the time stamp of packet data, arranging samples excepting for the leading sample at each interval of a prescribed time from the hourly position of the leading sample so as to estimate the hourly position of each sample and correcting the value of a time interval so as to generate a sampling clock. SOLUTION: The estimated time local time of a sample 6 is changed to T2 of an accurate hourly position. In addition, as the estimated hourly position is more advanced at the time of comparing the position of a finishing point 6' estimated as the position of the sample 6 and the accurate position T2, a time interval for arranging samples 7 to 9 is corrected in the direction of reducing. To put it in the concrete, a prescribed value α is subtracted from a time interval Δt1 used at the time of obtaining the estimated time of samples 2 to 5 to obtain Δt2 and this is made the time interval between the samples 7 to 9. A line segment 604 shows the state of arranging the samples 7 to 9 at each time interval Δt2 from the position of T2 of the sample 6.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ディジタルオー
ディオ信号をパケット化して転送する伝送システムに関
し、詳しくはディジタル信号受信装置、方法、および該
方法に係るプログラムを記憶した記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transmission system for packetizing and transferring a digital audio signal, and more particularly, to a digital signal receiving apparatus and method, and a storage medium storing a program according to the method.

【0002】[0002]

【従来の技術】ディジタルオーディオ信号を伝送する場
合、各サービスインターバルに発生したN個のオーディ
オ信号(サンプル)を1つのパケットにして転送する方
法が考えられる。各パケットのサンプル数Nは、オーデ
ィオ信号のサンプリング周波数が一定であって、サービ
スインターバルがサンプリング周期の整数倍であって
も、両者が完全に同期していない限りは一定ではない。
したがって、そのようなパケット化をした場合、例えば
そのパケットの先頭のサンプルの発生時刻をタイムスタ
ンプとしてパケットに付加すると、タイムスタンプは一
定でないサンプル数ごとに存在することになる。
2. Description of the Related Art When transmitting digital audio signals, a method of transferring N audio signals (samples) generated in each service interval into one packet is conceivable. The sample number N of each packet is not constant even if the sampling frequency of the audio signal is constant and the service interval is an integral multiple of the sampling period, unless the two are completely synchronized.
Therefore, when such packetization is performed, for example, if the occurrence time of the first sample of the packet is added to the packet as a time stamp, the time stamp exists for every non-constant number of samples.

【0003】オーディオ信号の受信側では、例えば、ア
ナログPLL(Phase-Locked Loop:位相同期ループ)
を用いて、送信側と同じサンプリングクロックを生成す
る。ここで、タイムスタンプの系列からサンプリングク
ロックを生成する場合、タイムスタンプの間隔が一定
で、さらに2のべき乗であると、実装が簡単になること
は良く知られている。受信側で、次にタイムスタンプが
送られてくる時刻が予測できるので、それに合わせた構
成とすればよいからである。
On the audio signal receiving side, for example, an analog PLL (Phase-Locked Loop) is used.
Is used to generate the same sampling clock as that on the transmitting side. Here, it is well known that when a sampling clock is generated from a sequence of time stamps, the time stamp interval is constant and a power of 2 simplifies the implementation. This is because the receiving side can predict the time at which the next time stamp will be sent, and the configuration may be adjusted to that.

【0004】[0004]

【発明が解決しようとする課題】しかし、上述したよう
な一定でないサンプル数ごとに存在するタイムスタンプ
の系列からサンプリングクロックを生成する場合は、パ
ケット化が複雑になったり、送受信のディレイが長くな
るなどの問題が発生する。
However, when a sampling clock is generated from a series of time stamps that exist for every inconsistent number of samples as described above, packetization becomes complicated and transmission / reception delay becomes long. And other problems occur.

【0005】この発明は、ディジタルオーディオ信号を
伝送するシステムで、送信側から一定でないサンプル数
ごとにタイムスタンプを送り、受信側でサンプリングク
ロックを生成するようなシステムにおいて、正確に送信
側のサンプリングクロックを生成することができるとと
もに、簡単な構成で容易に実装することができるように
したディジタル信号受信装置、方法、および該方法に係
るプログラムを記憶した記憶媒体を提供することを目的
とする。
The present invention relates to a system for transmitting a digital audio signal. In a system in which a time stamp is sent from the transmitting side for every fixed number of samples and a sampling clock is generated on the receiving side, the sampling clock on the transmitting side is accurately output. It is an object of the present invention to provide a digital signal receiving apparatus, a method, and a storage medium storing a program according to the digital signal receiving apparatus, which can generate a digital signal, and can be easily implemented with a simple configuration.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に係るディジタル信号受信装置は、連続す
る複数サンプルと該サンプルの先頭サンプルの時間的位
置を示すタイムスタンプとを含むパケットデータを受信
する手段を備え、受信したパケットデータのタイムスタ
ンプに基づいて上記先頭サンプルの時間的位置を推定す
るとともに、該先頭サンプル以外のサンプルを該先頭サ
ンプルの時間的位置から所定時間間隔ごとに配置するこ
とにより各サンプルの時間的位置を推定する手段と、該
推定された時間的位置と次のパケットデータのタイムス
タンプとの差に応じて上記時間間隔の値を修正する手段
と、上記推定した各サンプルの時間的位置からサンプリ
ングクロックを生成する手段とを含むことを特徴とす
る。
In order to achieve the above object, a digital signal receiving apparatus according to the first aspect of the present invention comprises a packet data including a plurality of continuous samples and a time stamp indicating a temporal position of a leading sample of the samples. Means for estimating the temporal position of the first sample based on the time stamp of the received packet data, and arranging samples other than the first sample at predetermined time intervals from the temporal position of the first sample. Means for estimating the temporal position of each sample, and means for correcting the value of the time interval according to the difference between the estimated temporal position and the time stamp of the next packet data. Means for generating a sampling clock from the temporal position of each sample.

【0007】請求項2に係るディジタル信号受信方法
は、連続する複数サンプルと該サンプルの先頭サンプル
の時間的位置を示すタイムスタンプとを含むパケットデ
ータを受信するステップと、受信したパケットデータの
タイムスタンプに基づいて上記先頭サンプルの時間的位
置を推定するとともに、該先頭サンプル以外のサンプル
を該先頭サンプルの時間的位置から所定時間間隔ごとに
配置することにより各サンプルの時間的位置を推定する
ステップと、該推定された時間的位置と次のパケットデ
ータのタイムスタンプとの差に応じて上記時間間隔の値
を修正するステップと、上記推定した各サンプルの時間
的位置からサンプリングクロックを生成するステップと
を含むことを特徴とする。
According to a second aspect of the present invention, there is provided a digital signal receiving method, comprising the steps of: receiving packet data including a plurality of continuous samples and a time stamp indicating a time position of a first sample of the sample; Estimating the temporal position of the first sample based on the above, and estimating the temporal position of each sample by arranging samples other than the first sample at predetermined time intervals from the temporal position of the first sample. Correcting the value of the time interval according to the difference between the estimated time position and the time stamp of the next packet data; and generating a sampling clock from the estimated time position of each sample. It is characterized by including.

【0008】請求項3に係るディジタル信号受信プログ
ラムを格納した記憶媒体は、該プログラムが、連続する
複数サンプルと該サンプルの先頭サンプルの時間的位置
を示すタイムスタンプとを含むパケットデータを受信す
るステップと、受信したパケットデータのタイムスタン
プに基づいて上記先頭サンプルの時間的位置を推定する
とともに、該先頭サンプル以外のサンプルを該先頭サン
プルの時間的位置から所定時間間隔ごとに配置すること
により各サンプルの時間的位置を推定するステップと、
該推定された時間的位置と次のパケットデータのタイム
スタンプとの差に応じて上記時間間隔の値を修正するス
テップと、上記推定した各サンプルの時間的位置からサ
ンプリングクロックを生成するステップとを含むことを
特徴とする。
In the storage medium storing the digital signal receiving program according to claim 3, the program receives packet data including a plurality of continuous samples and a time stamp indicating a time position of a leading sample of the sample. And estimating the temporal position of the first sample based on the time stamp of the received packet data, and arranging samples other than the first sample at predetermined time intervals from the temporal position of the first sample. Estimating the temporal position of
Modifying the value of the time interval according to the difference between the estimated time position and the time stamp of the next packet data; and generating a sampling clock from the estimated time position of each sample. It is characterized by including.

【0009】[0009]

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

【0010】図4は、この発明を適用する伝送システム
の構成例を示す。送信ノード401から、伝送線404
を介して、受信ノード402に、一定の時間間隔(サー
ビスインターバルと呼ぶ)でディジタルオーディオ信号
を伝送する。送受するディジタルオーディオ信号は、複
数サンプルとタイムスタンプを含むパケットデータであ
る。受信ノード402内には、ディジタルPLL403
が備えられており、受信したパケットデータから当該オ
ーディオ信号のサンプリングクロックを生成する。送信
ノード401と受信ノード402は、それぞれ、転送す
るオーディオ信号のサンプリングクロックの周波数に比
べて十分に高い周波数で動作している基準時計(GLOBAL
_TIMEと呼ぶ)を備えているものとし、これらの基準時
計は一定の精度で同一の時刻を指すように常に調整され
ているものとする。
FIG. 4 shows a configuration example of a transmission system to which the present invention is applied. From transmission node 401, transmission line 404
, A digital audio signal is transmitted to the receiving node 402 at regular time intervals (referred to as service intervals). The digital audio signal to be transmitted and received is packet data including a plurality of samples and a time stamp. In the receiving node 402, a digital PLL 403 is provided.
And generates a sampling clock of the audio signal from the received packet data. The transmitting node 401 and the receiving node 402 each operate at a reference clock (GLOBAL) operating at a frequency sufficiently higher than the frequency of the sampling clock of the audio signal to be transferred.
_TIME), and these reference clocks are always adjusted to indicate the same time with constant accuracy.

【0011】図5は、送信側におけるパケット化の様子
を示すタイムチャートである。502は時間軸、501
はその時間軸上で所定のサンプリングクロックにしたが
う周期で並べられたディジタルオーディオ信号の各サン
プルを示す。501で、サンプル1,2,3,…と番号
が付けられている位置(*印の位置)が、それぞれのサ
ンプルの時間的な位置である。これらのサンプル1,
2,3,…を幾つかずつまとめてパケットデータを作成
する。
FIG. 5 is a time chart showing packetization on the transmitting side. 502 is a time axis, 501
Indicates each sample of the digital audio signal arranged on the time axis at a period according to a predetermined sampling clock. At 501, the positions numbered as samples 1, 2, 3,... (Positions marked with *) are the temporal positions of the respective samples. These samples 1,
2, 3,... Are grouped together to create packet data.

【0012】パケットデータは、データの先頭にタイム
スタンプと当該パケットに含まれるサンプルの数とが設
定され、続いて、サンプルが順に設定されて構成され
る。511〜513は、501に示したサンプル1〜1
4をパケット化した例である。パケットデータ511
は、先頭にタイムスタンプT1が設定され、その次にこ
のパケットデータに含まれるサンプルの数である「5」
が設定されている。その後に、サンプル1〜5が順に設
定されている。タイムスタンプは、当該パケットに含ま
れるサンプルのうちの先頭のサンプルの時間的な位置を
示す値である。例えば、パケットデータ511のタイム
スタンプT1は、このパケット中の先頭サンプルである
サンプル1の時間的な位置を示す。同様に、パケットデ
ータ512,513も、先頭から、タイムスタンプT
2,T3、サンプル数、および各サンプルの順に設定さ
れて構成されている。
The packet data is configured by setting a time stamp at the head of the data and the number of samples included in the packet, and then sequentially setting the samples. 511 to 513 are samples 1 to 1 shown in 501.
4 is an example in which the packet No. 4 is packetized. Packet data 511
Is a time stamp T1 set at the beginning, and is the number of samples included in this packet data, followed by "5"
Is set. Thereafter, samples 1 to 5 are set in order. The time stamp is a value indicating the temporal position of the first sample among the samples included in the packet. For example, the time stamp T1 of the packet data 511 indicates the temporal position of sample 1, which is the first sample in the packet. Similarly, packet data 512 and 513 also have time stamp T
2, T3, the number of samples, and the order of each sample.

【0013】以上のようなパケットデータ511〜51
3が、図4の送信ノード401から伝送線404を介し
て受信ノード402に伝送される。受信ノード402に
おいては、受信したパケットデータ511〜513に基
づいて、ディジタルPLL403によってサンプリング
クロックを生成するが、その際、図5で説明した送信側
のサンプリングクロックをできる限り正確に再現した
い。そこで、この実施の形態のシステムでは、ディジタ
ルPLL403により図6のようにして受信側でサンプ
リングクロックを推定する。以下、この推定方式につい
て説明する。
The packet data 511 to 51 as described above
3 is transmitted from the transmission node 401 of FIG. In the receiving node 402, a sampling clock is generated by the digital PLL 403 based on the received packet data 511 to 513. At this time, it is desired to reproduce the sampling clock on the transmission side described in FIG. 5 as accurately as possible. Therefore, in the system of this embodiment, the sampling clock is estimated on the receiving side by the digital PLL 403 as shown in FIG. Hereinafter, this estimation method will be described.

【0014】図6は、受信側におけるサンプリングクロ
ックの推定方式を説明するためのタイムチャートであ
る。ここでは、受信した各サンプルの時間的な位置を推
定し、それに基づいてサンプリングクロックを生成す
る。以下、各サンプルの時間的位置を推定時間Loca
lTimeと呼ぶ。LocalTimeは推定時間の値
を格納する変数である。なお、LocalTimeなど
の変数を表す記号は、その変数自体を表すとともに、そ
の変数に格納されている値(例えばLocalTime
であれば推定時間)をも表すものとする。
FIG. 6 is a time chart for explaining a sampling clock estimation method on the receiving side. Here, a temporal position of each received sample is estimated, and a sampling clock is generated based on the position. Hereinafter, the temporal position of each sample is referred to as the estimated time Loca.
Called lTime. LocalTime is a variable that stores the value of the estimated time. A symbol representing a variable such as LocalTime represents the variable itself and a value stored in the variable (for example, LocalTime).
, The estimated time).

【0015】受信ノード402(図4)では、まずパケ
ットデータ511(図5)を受信した時点で、タイムス
タンプT1により、当該パケットデータ511の先頭の
サンプルであるサンプル1の推定時間LocalTim
eをT1とする。一方、この時点では次のパケットデー
タ512を受信しているか否か保証されないので、当該
パケットデータ511に含まれるサンプル2〜5につい
ては、サンプル1の推定時間LocalTime=T1
から所定の時間間隔Δt1ごとに配置する。図6の線分
603は、サンプル1のT1の位置から、サンプル2〜
5を時間間隔Δt1ごとに配置した様子を示す。各サン
プル2〜5の推定時間LocalTimeは、1つ前の
サンプルの推定時間の値にΔt1を足して求めている。
When the receiving node 402 (FIG. 4) receives the packet data 511 (FIG. 5), the receiving node 402 uses the time stamp T1 to estimate the estimated time LocalTime of the sample 1 which is the first sample of the packet data 511.
Let e be T1. On the other hand, at this point, it is not guaranteed whether or not the next packet data 512 has been received. Therefore, for samples 2 to 5 included in the packet data 511, the estimated time of sample 1 is LocalTime = T1
From a predetermined time interval Δt1. The line segment 603 in FIG.
5 is arranged at intervals of time Δt1. The estimated time LocalTime of each of the samples 2 to 5 is obtained by adding Δt1 to the value of the estimated time of the immediately preceding sample.

【0016】さらに、次のサンプル6の推定時間Loc
alTimeも同様にして求める。図6の線分603の
終点6’の位置がサンプル6の推定時間LocalTi
meの位置になる。その下に、 LocalTime=LocalTime+Δt1*5 とあるのは、サンプル6の推定時間LocalTime
は、サンプル1の推定時間LocalTime(=T
1)にΔt1と5(サンプル1からサンプル6までには
5つ分の時間間隔Δt1が存在する)との積を足して求
めていることを示す。なお、上記式の左辺のLocal
Timeはサンプル6の推定時間を示し、右辺のLoc
alTimeはサンプル1の推定時間を示すものとす
る。
Further, the estimated time Loc of the next sample 6
alTime is similarly obtained. The position of the end point 6 ′ of the line segment 603 in FIG. 6 is the estimated time LocalTi of the sample 6.
It is the position of me. Below that, LocalTime = LocalTime + Δt1 * 5 is the estimated time LocalTime of sample 6.
Is the estimated time LocalTime (= T
1) shows that it is obtained by adding the product of Δt1 and 5 (there are five time intervals Δt1 from sample 1 to sample 6). Note that Local on the left side of the above equation is
Time indicates the estimated time of sample 6, and Loc on the right side
alTime indicates the estimated time of sample 1.

【0017】図6のケースでは、時刻T2でタイムスタ
ンプT2を含むパケットデータ512(サンプル6〜
9)を受信したとする。ここで、サンプル6の推定時間
LocalTimeは上述したように線分603の終点
6’の位置と推定したが、パケットデータ512を受信
してそのタイムスタンプT2を取得しているので、サン
プル6の正確な時間的位置がT2であることが分かる。
そこで、サンプル6の推定時間LocalTimeを正
確な時間的位置であるT2に変更する。また、サンプル
6の位置として推定した終点6’の位置と正確な位置T
2とでは、推定した時間的位置の方が進んでいるので、
サンプル7〜9を配置する時間間隔を小さくする方向に
修正する。具体的には、サンプル2〜5の推定時間を求
める際に使用した時間間隔Δt1から所定値αを減算し
てΔt2(=Δt1−α)を求め、これをサンプル7〜
9の時間間隔とする。すなわち、パケットデータ512
に含まれるサンプル7〜9については、サンプル6の推
定時間LocalTime=T2から上記時間間隔Δt
2ごとに配置する。図6の線分604は、サンプル6の
T2の位置から、サンプル7〜9を時間間隔Δt2ごと
に配置した様子を示す。
In the case of FIG. 6, at time T2, the packet data 512 including the time stamp T2 (samples 6 to
Assume that 9) is received. Here, the estimated time LocalTime of the sample 6 is estimated to be the position of the end point 6 ′ of the line segment 603 as described above, but since the packet data 512 is received and the time stamp T2 is obtained, the estimated time It can be seen that the proper temporal position is T2.
Therefore, the estimated time LocalTime of the sample 6 is changed to T2 which is an accurate temporal position. The position of the end point 6 'estimated as the position of the sample 6 and the accurate position T
In the case of 2, since the estimated temporal position is advanced,
The correction is made in such a way that the time interval at which the samples 7 to 9 are arranged is reduced. Specifically, a predetermined value α is subtracted from the time interval Δt1 used when obtaining the estimated times of the samples 2 to 5, and Δt2 (= Δt1−α) is calculated.
Nine time intervals. That is, the packet data 512
For the samples 7 to 9 included in the time interval Δt from the estimated time LocalTime = T2 of the sample 6,
Place every two. A line segment 604 in FIG. 6 shows a state in which samples 7 to 9 are arranged at time intervals Δt2 from the position of T2 of sample 6.

【0018】さらに、次のサンプル10の推定時間Lo
calTimeも同様にして求める。図6の線分604
の終点10’の位置がサンプル10の推定時間Loca
lTimeの位置になる。その下に、 LocalTime=LocalTime+Δt2*4 とあるのは、サンプル10の推定時間LocalTim
eは、サンプル6の推定時間LocalTime(=T
2)にΔt2と4(サンプル6からサンプル10までに
は4つ分の時間間隔Δt2が存在する)との積を足して
求めていることを示す。なお、上記式の左辺のLoca
lTimeはサンプル10の推定時間を示し、右辺のL
ocalTimeはサンプル6の推定時間を示すものと
する。
Further, the estimated time Lo of the next sample 10 is
calTime is similarly obtained. Line segment 604 in FIG.
Is the estimated time Loca of the sample 10
It becomes the position of lTime. Below that, LocalTime = LocalTime + Δt2 * 4 means that the estimated time of the sample 10 is LocalTime.
e is the estimated time LocalTime (= T
2) shows that the value is obtained by adding the product of Δt2 and 4 (four time intervals Δt2 exist from sample 6 to sample 10). Note that Loca on the left side of the above equation
lTime indicates the estimated time of sample 10, and LTime on the right side
ocalTime indicates the estimated time of sample 6.

【0019】図6のケースでは、時刻T3でタイムスタ
ンプT3を含むパケットデータ513(サンプル10〜
14)を受信したとする。ここで、サンプル10の推定
時間LocalTimeは上述したように線分604の
終点10’の位置と推定したが、パケットデータ513
を受信してそのタイムスタンプT3を取得しているの
で、サンプル10の正確な時間的位置がT3であること
が分かる。そこで、サンプル10の推定時間Local
Timeを正確な時間的位置であるT3に変更する。ま
た、サンプル10の位置として推定した終点10’の位
置と正確な位置T3とでは、推定した時間的位置の方が
遅れているので、サンプル11〜14を配置する時間間
隔を大きくする方向に修正する。具体的には、サンプル
7〜9の推定時間を求める際に使用した時間間隔Δt2
に所定値βを加算してΔt3(=Δt2+β)を求め、
これをサンプル11〜14の時間間隔とする。すなわ
ち、パケットデータ513に含まれるサンプル11〜1
4については、サンプル10の推定時間LocalTi
me=T3から上記時間間隔Δt3ごとに配置する。図
6の線分605は、サンプル10のT3の位置から、サ
ンプル11〜14を時間間隔Δt3ごとに配置した様子
を示す。
In the case of FIG. 6, packet data 513 (samples 10 to 10) including a time stamp T3 at time T3.
14) is received. Here, the estimated time LocalTime of the sample 10 is estimated to be the position of the end point 10 ′ of the line segment 604 as described above.
Has been received and its time stamp T3 has been obtained, it can be seen that the exact temporal position of the sample 10 is T3. Therefore, the estimated time Local of the sample 10 is
Change Time to T3, which is the exact temporal position. In addition, since the estimated temporal position is delayed between the position of the end point 10 'estimated as the position of the sample 10 and the accurate position T3, the time interval for arranging the samples 11 to 14 is corrected to be increased. I do. Specifically, the time interval Δt2 used when obtaining the estimated times of the samples 7 to 9
Is added to a predetermined value β to obtain Δt3 (= Δt2 + β),
This is the time interval of samples 11 to 14. That is, the samples 11 to 1 included in the packet data 513
4, the estimated time LocalTi of the sample 10
It is arranged at every time interval Δt3 from me = T3. A line segment 605 in FIG. 6 shows a state where the samples 11 to 14 are arranged at time intervals Δt3 from the position of T3 of the sample 10.

【0020】以下同様にして、パケットデータを受信す
るたびに、該パケットデータの先頭のサンプルを正確な
タイムスタンプに基づいて配置し、そのタイムスタンプ
と推定時間とのずれ量に基づいて時間間隔Δtを修正
し、その時間間隔Δtごとにサンプルを配置して各サン
プルの推定時間を求める。各サンプルの推定時間に基づ
いてサンプリングクロックを生成する。
Similarly, every time packet data is received, the first sample of the packet data is arranged based on the accurate time stamp, and the time interval Δt is determined based on the amount of deviation between the time stamp and the estimated time. Is corrected, and samples are arranged at each time interval Δt to obtain an estimated time of each sample. A sampling clock is generated based on the estimated time of each sample.

【0021】図1および図2は、受信側において各サン
プルの推定時間LocalTimeを求める処理手順を
示すフローチャートであり、受信側のディジタルPLL
403が図6で説明した処理を実行する具体的な手順を
示す。図1はタイムスタンプを持つサンプル(例えば、
図5および図6で説明したサンプル1、6、10)の場
合の処理であり、図2はタイムスタンプを持たないサン
プル(例えば、図5および図6で説明したサンプル2〜
5、7〜10、11〜14)の場合の処理である。
FIGS. 1 and 2 are flowcharts showing a processing procedure for obtaining an estimated time LocalTime of each sample on the receiving side, and a digital PLL on the receiving side.
Reference numeral 403 denotes a specific procedure for executing the processing described in FIG. FIG. 1 shows a sample with a time stamp (eg,
FIG. 2 shows the processing in the case of the samples 1, 6, and 10 described with reference to FIGS. 5 and 6, and FIG.
5, 7, 10 and 11 to 14).

【0022】図1において、タイムスタンプを持つサン
プルの場合は、まずステップ101で、受信パケットか
らタイムスタンプを得てtimestamp(変数)に
設定する。次に、ステップ102で、現在の推定時間L
ocalTimeがタイムスタンプtimestamp
を越えているか否か、すなわち推定時間がタイムスタン
プより進んでいるか否かを判別する。
In FIG. 1, in the case of a sample having a time stamp, first, at step 101, a time stamp is obtained from the received packet and set to timestamp (variable). Next, in step 102, the current estimated time L
ocalTime is the timestamp timestamp
, Ie, whether the estimated time is ahead of the time stamp.

【0023】ステップ102で推定時間の方が進んでい
るときは、ステップ103で、時間が逆転しないように
しつつ、 Work=LocalTime LocalTime=timestamp と設定する。Workは現在の推定時間を退避するワー
ク用変数である。「時間が逆転しないように」とは、例
えば図6の例で、サンプル5の推定時間がタイムスタン
プT2より進んでいたとき、サンプル6の推定時間をT
2に合わせるとサンプル5がサンプル6の後に配置され
て時間が逆転してしまうので、そのようなことがないよ
うにする、ということである。
If the estimated time is advanced in step 102, then in step 103, Work = LocalTime LocalTime = timestamp is set while the time is not reversed. “Work” is a work variable for saving the current estimated time. "To prevent time from reversing" means, for example, in the example of FIG. 6, when the estimated time of sample 5 is earlier than time stamp T2, the estimated time of sample 6 is set to T
If it is adjusted to 2, the sample 5 is placed after the sample 6 and the time is reversed, so that such a case is avoided.

【0024】なお、そのような進みによる時間の逆転が
発生したときには、ステップ103の処理のうちLoc
alTime=timestampの処理は実行せずに
(すなわちタイムスタンプ値を使わない)、現在の推定
時間LocalTimeをそのまま用いることとしてい
る。図6の606と607は、タイムスタンプ値を使用
せずそのまま推定時間を使用した例を示す。606は6
03と同じである。607はタイムスタンプ値T2の位
置ではなく、推定時間6’の位置からサンプル6〜10
を配置している。
When the time is reversed due to such advance, Loc of the processing in step 103 is used.
The processing of alTime = timestamp is not executed (that is, the time stamp value is not used), and the current estimated time LocalTime is used as it is. Reference numerals 606 and 607 in FIG. 6 show examples in which the estimated time is used without using the time stamp value. 606 is 6
Same as 03. 607 is not the position of the time stamp value T2, but samples 6 to 10 from the position of the estimated time 6 '.
Has been arranged.

【0025】次に、ステップ104で、Work(ステ
ップ103の処理前の推定時間が退避されている)とt
imestampとの差が所定の閾値THRESHOL
D_GAIN以上であるか否かを判別する。そうである
場合は、ステップ105で、時間間隔Δtから所定値S
LOWERを減算し、リターンする。ステップ104
で、Workとtimestampとの差が閾値THR
ESHOLD_GAIN以上でなかったときは、そのま
まリターンする。なお、Δtは図6で説明した時間間隔
Δt1、Δt2、あるいはΔt3が設定される変数であ
る。所定値SLOWERは、図6で説明した所定値αに
相当する。
Next, in step 104, Work (the estimated time before the processing in step 103 is saved) and t
the difference from the current stamp is a predetermined threshold THRESHOL
It is determined whether or not D_GAIN or more. If so, in step 105, the predetermined value S is calculated from the time interval Δt.
LOWER is subtracted, and the routine returns. Step 104
And the difference between Work and timestamps is equal to the threshold THR
If it is not equal to or greater than ESHOLD_GAIN, the process returns. Note that Δt is a variable for setting the time intervals Δt1, Δt2, or Δt3 described in FIG. The predetermined value SLOWER corresponds to the predetermined value α described in FIG.

【0026】ステップ102で推定時間がタイムスタン
プに等しいかまたは遅れているときは、ステップ106
で、 Work=LocalTime LocalTime=timestamp と設定する。次に、ステップ107で、Work(ステ
ップ106の処理前の推定時間が退避されている)とt
imestampとの差が所定の閾値THRESHOL
D_LOSE以上であるか否かを判別する。そうである
場合は、ステップ108で、時間間隔Δtに所定値FA
STERを加算し、リターンする。ステップ107で、
Workとtimestampとの差が閾値THRES
HOLD_LOSE以上でなかったときは、そのままリ
ターンする。なお所定値FASTERは、図6で説明し
た所定値βに相当する。
If it is determined in step 102 that the estimated time is equal to or later than the time stamp, step 106
Then, Work = LocalTime LocalTime = timestamp is set. Next, in step 107, Work (the estimated time before the processing in step 106 is saved) and t
the difference from the current stamp is a predetermined threshold THRESHOL
It is determined whether or not D_LOSE or more. If so, at step 108, the time interval Δt is set to the predetermined value FA.
Add STER and return. In step 107,
The difference between Work and timestamps is the threshold THRES
If it is not equal to or larger than HOLD_LOSE, the process returns. The predetermined value FASTER corresponds to the predetermined value β described in FIG.

【0027】図2を参照して、タイムスタンプを持たな
いサンプルの場合の推定時間の求め方を説明する。この
場合は、ステップ201で、 LocalTime=LocalTime+Δt により、推定時間を求め、リターンする。
With reference to FIG. 2, a method of obtaining an estimated time in the case of a sample having no time stamp will be described. In this case, in step 201, the estimated time is obtained by LocalTime = LocalTime + Δt, and the process returns.

【0028】図3は、図1のステップ103の詳細を示
す。ステップ103を、図3のステップ301、302
に置き換えればよい。ステップ301で、推定時間Lo
calTimeからタイムスタンプtimestamp
を引いた差が時間間隔Δt以上であるか否かを判別す
る。上記の差がΔt以上であったときは、LocalT
ime=timestampと設定してしまうと時間の
逆転が起こってしまうので、そのまま現在のLocal
Timeを使用するため、ステップ302でWork=
LocalTimeの設定のみを行なってからステップ
104に進む。ステップ301で上記の差がΔt以上で
なかったときは、時間の逆転は起こらないから、ステッ
プ303でWork=LocalTimeおよびLoc
alTime=timestampの設定を行なってか
らステップ104に進む。
FIG. 3 shows the details of step 103 in FIG. Step 103 is replaced with steps 301 and 302 in FIG.
Can be replaced with In step 301, the estimated time Lo
time stamp timestamp from calTime
It is determined whether or not the difference obtained by subtracting is equal to or longer than the time interval Δt. When the difference is equal to or larger than Δt, LocalT
If "im = timestamp" is set, the time is reversed, so the current Local
In order to use Time, in step 302, the Work =
After setting only LocalTime, the process proceeds to step 104. If the difference is not equal to or larger than Δt in step 301, the time does not reverse, so that in step 303, Work = LocalTime and Loc
After setting alTime = timestamp, the process proceeds to step 104.

【0029】以上により、受信側ディジタルPLL40
3で、送信側のサンプリングクロックと同じサンプリン
グクロックを生成することができる。
As described above, the receiving digital PLL 40
In step 3, the same sampling clock as the transmitting-side sampling clock can be generated.

【0030】なお、ステップ103と106の処理は、
何もしないことを含め、種々に変形してもよい。また、
図1の処理においては、THRESHOLD_GAI
N、THRESHOLD_LOSE、FASTER、お
よびSLOWERの値に応じて動作が変化するので、こ
れらの値を適宜制御することにより、各サンプルの時間
的な配置の仕方を調整することができる。また、FAS
TER、およびSLOWERの値は、ステップ104あ
るいは107で評価するWorkとtimestamp
との差の大きさに応じて決定するようにすれば、より早
くΔtが適正な値に収束するようにできる。
The processing in steps 103 and 106 is as follows.
Various modifications may be made, including not doing anything. Also,
In the process of FIG. 1, THRESHOLD_GAI
Since the operation changes in accordance with the values of N, THRESHOLD_LOSE, FASTER, and SLOWER, by appropriately controlling these values, it is possible to adjust the manner in which each sample is temporally arranged. Also, FAS
The values of TER and SLOWER are the values of Work and timestamp evaluated in step 104 or 107, respectively.
If it is determined according to the magnitude of the difference from Δt, Δt can converge to an appropriate value more quickly.

【0031】上記実施の形態では、ディジタルPLL4
03によりサンプリングクロックを生成したが、このデ
ィジタルPLL403のあとにアナログPLLを用いる
ようにしてもよい。
In the above embodiment, the digital PLL 4
03, the sampling clock is generated, but an analog PLL may be used after the digital PLL 403.

【0032】[0032]

【発明の効果】以上説明したように、この発明によれ
ば、受信側において、受信したパケットデータのタイム
スタンプに基づいて先頭サンプルの時間的位置を推定す
るとともに、該先頭サンプル以外のサンプルを該先頭サ
ンプルの時間的位置から所定時間間隔ごとに配置するこ
とにより各サンプルの時間的位置を推定し、該推定され
た時間的位置と次のパケットデータのタイムスタンプと
の差に応じて上記時間間隔の値を修正するようにしてい
るので、送信側から一定でないサンプル数ごとにタイム
スタンプを送り、受信側でサンプリングクロックを生成
するようなシステムでも、正確に送信側のサンプリング
クロックを生成することができるとともに、簡単な構成
で容易に実装することができるという効果がある。
As described above, according to the present invention, on the receiving side, the temporal position of the first sample is estimated based on the time stamp of the received packet data, and samples other than the first sample are replaced with the first sample. The temporal position of each sample is estimated by arranging the temporal position of the first sample at predetermined time intervals from the temporal position of the first sample, and the time interval is determined according to the difference between the estimated temporal position and the time stamp of the next packet data. Since the value of is corrected, even in a system that sends a time stamp from the sending side for each inconsistent number of samples and generates a sampling clock on the receiving side, it is possible to accurately generate the sampling clock on the sending side. In addition to this, there is an effect that it can be easily mounted with a simple configuration.

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

【図1】 タイムスタンプを持つサンプルの推定時間を
求める処理手順を示すフローチャート図
FIG. 1 is a flowchart showing a processing procedure for obtaining an estimated time of a sample having a time stamp.

【図2】 タイムスタンプを持たないサンプルの推定時
間を求める処理手順を示すフローチャート図
FIG. 2 is a flowchart showing a processing procedure for obtaining an estimated time of a sample having no time stamp.

【図3】 ステップ103の詳細図FIG. 3 is a detailed diagram of step 103;

【図4】 この発明を適用する伝送システムの構成例を
示す図
FIG. 4 is a diagram showing a configuration example of a transmission system to which the present invention is applied;

【図5】 送信側におけるパケット化の様子を示すタイ
ムチャート図
FIG. 5 is a time chart showing packetization on the transmission side.

【図6】 受信側におけるサンプリングクロックの推定
方式を説明するためのタイムチャート図
FIG. 6 is a time chart for explaining a sampling clock estimation method on the receiving side.

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

401…送信ノード、402…受信ノード、403…デ
ィジタルPLL、404…伝送線、511〜513…パ
ケットデータ。
Reference numeral 401: transmission node, 402: reception node, 403: digital PLL, 404: transmission line, 511 to 513: packet data.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】連続する複数サンプルと該サンプルの先頭
サンプルの時間的位置を示すタイムスタンプとを含むパ
ケットデータを受信する手段を備え、 受信したパケットデータのタイムスタンプに基づいて上
記先頭サンプルの時間的位置を推定するとともに、該先
頭サンプル以外のサンプルを該先頭サンプルの時間的位
置から所定時間間隔ごとに配置することにより各サンプ
ルの時間的位置を推定する手段と、該推定された時間的
位置と次のパケットデータのタイムスタンプとの差に応
じて上記時間間隔の値を修正する手段と、上記推定した
各サンプルの時間的位置からサンプリングクロックを生
成する手段とを含むことを特徴とするディジタル信号受
信装置。
And means for receiving packet data including a plurality of consecutive samples and a time stamp indicating a time position of a first sample of the sample, wherein a time of the first sample is determined based on a time stamp of the received packet data. Means for estimating the temporal position and estimating the temporal position of each sample by arranging samples other than the leading sample at predetermined time intervals from the temporal position of the leading sample; and Means for correcting the value of the time interval according to the difference between the time stamp of the next packet data and the time stamp of the next packet data, and means for generating a sampling clock from the estimated time position of each sample. Signal receiver.
【請求項2】連続する複数サンプルと該サンプルの先頭
サンプルの時間的位置を示すタイムスタンプとを含むパ
ケットデータを受信するステップと、 受信したパケットデータのタイムスタンプに基づいて上
記先頭サンプルの時間的位置を推定するとともに、該先
頭サンプル以外のサンプルを該先頭サンプルの時間的位
置から所定時間間隔ごとに配置することにより各サンプ
ルの時間的位置を推定するステップと、 該推定された時間的位置と次のパケットデータのタイム
スタンプとの差に応じて上記時間間隔の値を修正するス
テップと、 上記推定した各サンプルの時間的位置からサンプリング
クロックを生成するステップとを含むことを特徴とする
ディジタル信号受信方法。
2. A method for receiving packet data including a plurality of continuous samples and a time stamp indicating a time position of a first sample of the sample, the method comprising: detecting a time stamp of the first sample based on a time stamp of the received packet data; Estimating a temporal position of each sample by estimating a position and arranging samples other than the leading sample at predetermined time intervals from a temporal position of the leading sample; and A digital signal, comprising: correcting the value of the time interval according to a difference from the time stamp of the next packet data; and generating a sampling clock from the estimated temporal position of each sample. Receiving method.
【請求項3】ディジタル信号受信プログラムを格納した
記憶媒体であって、該プログラムは、 連続する複数サンプルと該サンプルの先頭サンプルの時
間的位置を示すタイムスタンプとを含むパケットデータ
を受信するステップと、 受信したパケットデータのタイムスタンプに基づいて上
記先頭サンプルの時間的位置を推定するとともに、該先
頭サンプル以外のサンプルを該先頭サンプルの時間的位
置から所定時間間隔ごとに配置することにより各サンプ
ルの時間的位置を推定するステップと、 該推定された時間的位置と次のパケットデータのタイム
スタンプとの差に応じて上記時間間隔の値を修正するス
テップと、 上記推定した各サンプルの時間的位置からサンプリング
クロックを生成するステップとを含むことを特徴とする
ディジタル信号受信プログラムを記憶した記憶媒体。
3. A storage medium storing a digital signal receiving program, the program comprising: receiving packet data including a plurality of continuous samples and a time stamp indicating a temporal position of a leading sample of the samples. Estimating the temporal position of the first sample on the basis of the time stamp of the received packet data, and arranging samples other than the first sample at predetermined time intervals from the temporal position of the first sample so that Estimating a temporal position; correcting the value of the time interval according to a difference between the estimated temporal position and a time stamp of the next packet data; and a temporal position of each of the estimated samples. Generating a sampling clock from the digital signal. Storage medium storing a program for receiving a signal.
JP04109198A 1998-02-06 1998-02-06 Digital signal receiving apparatus, method, and storage medium storing program according to the method Expired - Fee Related JP3444397B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04109198A JP3444397B2 (en) 1998-02-06 1998-02-06 Digital signal receiving apparatus, method, and storage medium storing program according to the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04109198A JP3444397B2 (en) 1998-02-06 1998-02-06 Digital signal receiving apparatus, method, and storage medium storing program according to the method

Publications (2)

Publication Number Publication Date
JPH11225167A true JPH11225167A (en) 1999-08-17
JP3444397B2 JP3444397B2 (en) 2003-09-08

Family

ID=12598817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04109198A Expired - Fee Related JP3444397B2 (en) 1998-02-06 1998-02-06 Digital signal receiving apparatus, method, and storage medium storing program according to the method

Country Status (1)

Country Link
JP (1) JP3444397B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04362827A (en) * 1991-06-10 1992-12-15 Oki Electric Ind Co Ltd Packet communication system
JPH0514399A (en) * 1991-07-03 1993-01-22 Oki Electric Ind Co Ltd Picture packet communication system
JPH0630043A (en) * 1992-07-13 1994-02-04 Nec Corp Voice packet communication system
JPH08111685A (en) * 1994-09-21 1996-04-30 Koninkl Ptt Nederland Nv Clock recovery circuit of atm receiver
JPH0964860A (en) * 1995-08-25 1997-03-07 Pioneer Electron Corp Clock recovery device
JPH09149016A (en) * 1995-11-20 1997-06-06 Nec Corp Phase controlled loop system
JPH11136224A (en) * 1997-10-29 1999-05-21 Fujitsu Ltd Clock frequency synchronizing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04362827A (en) * 1991-06-10 1992-12-15 Oki Electric Ind Co Ltd Packet communication system
JPH0514399A (en) * 1991-07-03 1993-01-22 Oki Electric Ind Co Ltd Picture packet communication system
JPH0630043A (en) * 1992-07-13 1994-02-04 Nec Corp Voice packet communication system
JPH08111685A (en) * 1994-09-21 1996-04-30 Koninkl Ptt Nederland Nv Clock recovery circuit of atm receiver
JPH0964860A (en) * 1995-08-25 1997-03-07 Pioneer Electron Corp Clock recovery device
JPH09149016A (en) * 1995-11-20 1997-06-06 Nec Corp Phase controlled loop system
JPH11136224A (en) * 1997-10-29 1999-05-21 Fujitsu Ltd Clock frequency synchronizing device

Also Published As

Publication number Publication date
JP3444397B2 (en) 2003-09-08

Similar Documents

Publication Publication Date Title
US7738501B2 (en) Method of recovering timing over a granular packet network
US7447237B2 (en) Radio access network system, radio communication method, synchronous server and node
US5940458A (en) Method and compensating for time error of time/frequency generator using global positioning system
US11177896B2 (en) Time synchronization device and time synchronization method
US20230308201A1 (en) Timing synchronization over cable networks
US9374214B2 (en) Communication apparatus, communication system, and communication method
US20030198254A1 (en) Method of synchronizing the playback of a digital audio broadcast by inserting a control track pulse
US9763207B2 (en) Timing synchronization device and timing synchronization control method
US20030103486A1 (en) Time synchronization using dynamic thresholds
EP2023456A1 (en) Estimating a time offset between stationary clocks
US8416814B2 (en) System and method for high precision clock recovery over packet networks
WO2013051447A1 (en) Time control device, time control method, and program
WO2001050674A1 (en) Synchronization in packet-switched telecommunications system
JPH10509294A (en) System with predetermined timing relationship between data input and output, and transmitter and receiver of such system
AU2002302300B2 (en) Synchronization of at least one node of a bus system
US20220248353A1 (en) Synchronization method and device
JP5336611B2 (en) Clock recovery in communication networks
US7440474B1 (en) Method and apparatus for synchronizing clocks on packet-switched networks
JP2007282093A (en) Apparatus and method for clock signal generation
CN101420281B (en) Method and arrangement for transferring a time of day value between network elements
US7012982B1 (en) Method and system for de-jittering of transmitted MPEG-2 and MPEG-4 video
JP3499818B2 (en) Time stamp offset adjusting method and packet transmission device using the same
JP3444397B2 (en) Digital signal receiving apparatus, method, and storage medium storing program according to the method
TWM628940U (en) Master device and slave device
JP6198075B2 (en) Time synchronization apparatus, time synchronization method, and time synchronization program

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20080627

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090627

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100627

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100627

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120627

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120627

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130627

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees