JP3444397B2 - Digital signal receiving apparatus, method, and storage medium storing program according to the method - Google Patents

Digital signal receiving apparatus, method, and storage medium storing program according to the method

Info

Publication number
JP3444397B2
JP3444397B2 JP04109198A JP4109198A JP3444397B2 JP 3444397 B2 JP3444397 B2 JP 3444397B2 JP 04109198 A JP04109198 A JP 04109198A JP 4109198 A JP4109198 A JP 4109198A JP 3444397 B2 JP3444397 B2 JP 3444397B2
Authority
JP
Japan
Prior art keywords
sample
time
temporal position
packet data
estimated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP04109198A
Other languages
Japanese (ja)
Other versions
JPH11225167A (en
Inventor
潤一 藤森
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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

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 a digital audio signal, a method of transferring N audio signals (samples) generated in each service interval into one packet is considered. The number N of samples in each packet is not constant unless the sampling frequency of the audio signal is constant and the service interval is an integral multiple of the sampling period unless both are completely synchronized.
Therefore, in the case of such packetization, for example, if the time of occurrence of the sample at the beginning of the packet is added to the packet as a time stamp, the time stamp will exist for each non-constant number of samples.

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

【0004】[0004]

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

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

【0006】[0006]

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

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

【0009】[0009]

【発明の実施の形態】以下、図面を用いて、この発明の
実施の形態を説明する。
BEST MODE FOR CARRYING OUT THE INVENTION 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 the transmitting node 401 to the transmission line 404
A digital audio signal is transmitted to the receiving node 402 via the receiver at regular time intervals (called service intervals). The transmitted / received digital audio signal is packet data including a plurality of samples and a time stamp. Within the receiving node 402 is a digital PLL 403.
Is provided, and a sampling clock for the audio signal is generated from the received packet data. The transmitting node 401 and the receiving node 402 each operate on 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 shall always be adjusted to point to the same time with a certain accuracy.

【0011】図5は、送信側におけるパケット化の様子
を示すタイムチャートである。502は時間軸、501
はその時間軸上で所定のサンプリングクロックにしたが
う周期で並べられたディジタルオーディオ信号の各サン
プルを示す。501で、サンプル1,2,3,…と番号
が付けられている位置(*印の位置)が、それぞれのサ
ンプルの時間的な位置である。これらのサンプル1,
2,3,…を幾つかずつまとめてパケットデータを作成
する。
FIG. 5 is a time chart showing how packetization is performed on the transmitting side. 502 is a time axis, 501
Indicates each sample of the digital audio signal arranged on the time axis in a cycle 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,
Packet data is created by combining 2, 3, ...

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

【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 in FIG. 4 to the reception node 402 via the transmission line 404. 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 that time, it is desired to reproduce the sampling clock on the transmitting 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 the estimation method of the sampling clock on the receiving side. Here, the temporal position of each received sample is estimated, and a sampling clock is generated based on the estimated position. Hereinafter, the temporal position of each sample is estimated as the estimated time Loca.
Call lTime. LocalTime is a variable that stores the value of the estimated time. A symbol that represents a variable such as LocalTime represents the variable itself and also a value stored in the variable (for example, LocalTime).
If so, it also represents 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を足して求めている。
At the reception node 402 (FIG. 4), when the packet data 511 (FIG. 5) is received, the estimated time LocalTim of sample 1, which is the first sample of the packet data 511, is determined by the time stamp T1.
Let e be T1. On the other hand, at this point, it is not guaranteed whether or not the next packet data 512 is received. Therefore, for samples 2 to 5 included in the packet data 511, the estimated time of Sample 1, LocalTime = T1.
From the first time to the predetermined time interval Δt1. A line segment 603 in FIG.
5 shows a state in which 5 is arranged at each time interval Δt1. The estimated time LocalTime of each sample 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
Similarly, alTime is 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 becomes 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 the Local on the left side of the above equation
Time indicates the estimated time of sample 6, and Loc on the right side
Let alTime indicate the estimated time for 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, the packet data 512 including the time stamp T2 (samples 6 to 6) at time T2.
9) is received. Here, the estimated time LocalTime of the sample 6 was 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 thereof is acquired, the accuracy of the sample 6 is accurate. It can be seen that the correct temporal position is T2.
Therefore, the estimated time LocalTime of the sample 6 is changed to T2 which is an accurate time position. The position of the end point 6 ′ estimated as the position of the sample 6 and the accurate position T
With 2, the estimated temporal position is ahead, so
The correction is performed so as to reduce the time interval for arranging the samples 7 to 9. Specifically, Δt2 (= Δt1−α) is obtained by subtracting a predetermined value α from the time interval Δt1 used when obtaining the estimated times of Samples 2 to 5, and this is obtained from Samples 7 to
9 time intervals. That is, the packet data 512
For samples 7 to 9 included in the above, the time interval Δt from the estimated time LocalTime = T2 of 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 calculated in the same manner. 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 is the estimated time LocalTime of the sample 10.
e is the estimated time of the sample 6, LocalTime (= T
2) shows that the product of Δt2 and 4 (there are four time intervals Δt2 from sample 6 to sample 10) is added. Note that the Loca on the left side of the above equation
lTime indicates the estimated time of sample 10, and L 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 the time stamp T3 at time T3.
14) is received. Here, although the estimated time LocalTime of the sample 10 was estimated to be the position of the end point 10 ′ of the line segment 604 as described above, the packet data 513
Is received and its time stamp T3 is obtained, it can be seen that the accurate 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 time position. Further, 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, correction is made to increase the time interval in which the samples 11 to 14 are arranged. To do. Specifically, the time interval Δt2 used when obtaining the estimated times of Samples 7 to 9
Is added with a predetermined value β to obtain Δt3 (= Δt2 + β),
This is the time interval of samples 11-14. That is, the samples 11 to 1 included in the packet data 513
For 4, the estimated time LocalTi of sample 10
It is arranged at every time interval Δt3 from me = T3. A line segment 605 in FIG. 6 shows a state in which the samples 11 to 14 are arranged at time intervals Δt3 from the position of T3 of the sample 10.

【0020】以下同様にして、パケットデータを受信す
るたびに、該パケットデータの先頭のサンプルを正確な
タイムスタンプに基づいて配置し、そのタイムスタンプ
と推定時間とのずれ量に基づいて時間間隔Δtを修正
し、その時間間隔Δtごとにサンプルを配置して各サン
プルの推定時間を求める。各サンプルの推定時間に基づ
いてサンプリングクロックを生成する。
Similarly, each time packet data is received, the first sample of the packet data is arranged based on an accurate time stamp, and the time interval Δt is calculated 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)の場合の処理である。
FIG. 1 and FIG. 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.
403 shows a specific procedure for executing the processing described in FIG. Figure 1 shows a sample with a timestamp (for example,
FIG. 2 shows the processing in the case of Samples 1, 6, and 10) described in FIGS. 5 and 6, and FIG. 2 is a sample having no time stamp (for example, Samples 2 to 2 described in FIGS. 5 and 6).
5, 7-10, 11-14).

【0022】図1において、タイムスタンプを持つサン
プルの場合は、まずステップ101で、受信パケットか
らタイムスタンプを得てtimestamp(変数)に
設定する。次に、ステップ102で、現在の推定時間L
ocalTimeがタイムスタンプtimestamp
を越えているか否か、すなわち推定時間がタイムスタン
プより進んでいるか否かを判別する。
In FIG. 1, in the case of a sample having a time stamp, first, in step 101, the time stamp is obtained from the received packet and set in timestamp (variable). Next, in step 102, the current estimated time L
ocalTime is time stamp timestamp
Is exceeded, that is, 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の後に配置され
て時間が逆転してしまうので、そのようなことがないよ
うにする、ということである。
When the estimated time is ahead in step 102, in step 103, the time is not reversed, and Work = LocalTime LocalTime = timestamp is set. Work is a work variable for saving the current estimated time. “Do not reverse the time” means, for example, in the example of FIG. 6, when the estimated time of the sample 5 is ahead of the time stamp T2, the estimated time of the sample 6 is T
When set to 2, the sample 5 is placed after the sample 6 and the time is reversed, so that such a situation should be prevented.

【0024】なお、そのような進みによる時間の逆転が
発生したときには、ステップ103の処理のうちLoc
alTime=timestampの処理は実行せずに
(すなわちタイムスタンプ値を使わない)、現在の推定
時間LocalTimeをそのまま用いることとしてい
る。図6の606と607は、タイムスタンプ値を使用
せずそのまま推定時間を使用した例を示す。606は6
03と同じである。607はタイムスタンプ値T2の位
置ではなく、推定時間6’の位置からサンプル6〜10
を配置している。
When a time reversal due to such advance occurs, the Loc of the process of step 103 is performed.
The process 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 an example in which the estimated time is used as it is without using the time stamp value. 606 is 6
The same as 03. 607 indicates samples 6 to 10 from the position of the estimated time 6 ′, not the position of the time stamp value T2.
Are 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 (estimated time before processing in step 103 is saved) and t
The difference from imestamp is a predetermined threshold value THRESHOL
It is determined whether D_GAIN or more. If so, in step 105, the predetermined value S is obtained from the time interval Δt.
LOWER is subtracted and the process returns. Step 104
And the difference between Work and timestamp is the threshold value THR.
When it is not equal to or more than EHOLD_GAIN, the process directly returns. It should be noted that Δt is a variable in which the time interval Δt1, Δt2, or Δt3 described in FIG. 6 is set. 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 in step 102 the estimated time is equal to or behind the time stamp, step 106.
Then, Work = LocalTime LocalTime = timestamp is set. Next, in step 107, Work (estimated time before processing in step 106 is saved) and t
The difference from imestamp is a predetermined threshold value THRESHOL
It is determined whether D_LOSE or more. If so, in 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 timestamp is the threshold THRES.
If it is not more than HOLD_LOSE, the process directly returns. The predetermined value FASTER corresponds to the predetermined value β described in FIG.

【0027】図2を参照して、タイムスタンプを持たな
いサンプルの場合の推定時間の求め方を説明する。この
場合は、ステップ201で、 LocalTime=LocalTime+Δt により、推定時間を求め、リターンする。
A method of obtaining the estimated time in the case of a sample having no time stamp will be described with reference to FIG. In this case, in step 201, the estimated time is obtained from 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 details of step 103 in FIG. Step 103 is replaced with steps 301 and 302 in FIG.
Should be replaced with In step 301, the estimated time Lo
Timestamp timestamp from calTime
It is determined whether or not the difference obtained by subtracting is greater than or equal to the time interval Δt. When the above difference is Δt or more, LocalT
If you set time = timestamp, the time will be reversed, so the current Local
In step 302, Work = is used because Time is used.
After setting only LocalTime, the process proceeds to step 104. If the above difference is not equal to or greater than Δt in step 301, no time reversal occurs, so in step 303 Work = LocalTime and Loc.
After setting alTime = timestamp, the process proceeds to step 104.

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

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

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

【0032】[0032]

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

【図面の簡単な説明】[Brief description of 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 diagram showing how packetization is performed on the transmission side.

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

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

401…送信ノード、402…受信ノード、403…デ
ィジタルPLL、404…伝送線、511〜513…パ
ケットデータ。
401 ... Transmission node, 402 ... Reception node, 403 ... Digital PLL, 404 ... Transmission line, 511-513 ... Packet data.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−362827(JP,A) 特開 平9−64860(JP,A) 特開 平9−149016(JP,A) 特開 平5−14399(JP,A) 特開 平8−111685(JP,A) 特開 平6−30043(JP,A) 特開 平11−136224(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 12/56 H04L 7/00 H04L 12/28 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-4-362827 (JP, A) JP-A-9-64860 (JP, A) JP-A-9-149016 (JP, A) JP-A-5- 14399 (JP, A) JP-A-8-111685 (JP, A) JP-A-6-30043 (JP, A) JP-A-11-136224 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) H04L 12/56 H04L 7/00 H04L 12/28

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】連続する複数サンプルと該サンプルの先頭
サンプルの時間的位置を示すタイムスタンプとを含むパ
ケットデータを受信する手段を備え、 受信したパケットデータのタイムスタンプに基づいて上
記先頭サンプルの時間的位置を推定するとともに、該先
頭サンプル以外のサンプルを該先頭サンプルの時間的位
置から所定時間間隔ごとに配置することにより各サンプ
ルの時間的位置を推定する手段と、該推定された時間的
位置と次のパケットデータのタイムスタンプとの差に応
じて上記時間間隔の値を修正する手段と、上記推定した
各サンプルの時間的位置からサンプリングクロックを生
成する手段とを含むことを特徴とするディジタル信号受
信装置。
1. A means for receiving packet data including a plurality of consecutive samples and a time stamp indicating a temporal position of a head sample of the sample, wherein the time of the head sample is based on the time stamp of the received packet data. And a means for 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, and the estimated temporal position. And means for correcting the value of the time interval according to the difference between the time stamp of the next packet data and means for generating a sampling clock from the estimated temporal position of each sample. Signal receiving device.
【請求項2】連続する複数サンプルと該サンプルの先頭
サンプルの時間的位置を示すタイムスタンプとを含むパ
ケットデータを受信するステップと、 受信したパケットデータのタイムスタンプに基づいて上
記先頭サンプルの時間的位置を推定するとともに、該先
頭サンプル以外のサンプルを該先頭サンプルの時間的位
置から所定時間間隔ごとに配置することにより各サンプ
ルの時間的位置を推定するステップと、 該推定された時間的位置と次のパケットデータのタイム
スタンプとの差に応じて上記時間間隔の値を修正するス
テップと、 上記推定した各サンプルの時間的位置からサンプリング
クロックを生成するステップとを含むことを特徴とする
ディジタル信号受信方法。
2. A step of receiving packet data including a plurality of consecutive samples and a time stamp indicating a time position of a head sample of the sample, and a time step of the head sample based on the time stamp of the received packet data. Estimating the position 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; and the estimated temporal position. A digital signal comprising the steps of modifying the value of the time interval according to the 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 reception program, the program receiving packet data including a plurality of consecutive samples and a time stamp indicating a temporal position of a leading sample of the samples. , 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, modifying the value of the time interval according to the difference between the estimated temporal position and the time stamp of the next packet data, and estimating the temporal position of each sample Generating a sampling clock from the digital signal. A storage medium that stores a signal reception program.
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 JPH11225167A (en) 1999-08-17
JP3444397B2 true 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)

Family Cites Families (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
NL9401525A (en) * 1994-09-21 1996-05-01 Nederland Ptt Clock recovery for ATM receiver.
JP3419607B2 (en) * 1995-08-25 2003-06-23 パイオニア株式会社 Clock recovery device
JP2891149B2 (en) * 1995-11-20 1999-05-17 日本電気株式会社 Phase control loop method
JP3433071B2 (en) * 1997-10-29 2003-08-04 富士通株式会社 Clock frequency synchronizer

Also Published As

Publication number Publication date
JPH11225167A (en) 1999-08-17

Similar Documents

Publication Publication Date Title
US7447237B2 (en) Radio access network system, radio communication method, synchronous server and node
US6535926B1 (en) Time synchronization system for industrial control network using global reference pulses
US5940458A (en) Method and compensating for time error of time/frequency generator using global positioning system
US9763207B2 (en) Timing synchronization device and timing synchronization control method
US7738501B2 (en) Method of recovering timing over a granular packet network
US11177896B2 (en) Time synchronization device and time synchronization method
US20180097610A1 (en) Synchronization apparatus, synchronization system, radio communication apparatus and synchronization method
US8416814B2 (en) System and method for high precision clock recovery over packet networks
JPH10509294A (en) System with predetermined timing relationship between data input and output, and transmitter and receiver of such system
JP5336611B2 (en) Clock recovery in communication networks
WO2021077289A1 (en) Synchronization method and device
CN111478744B (en) Error adjusting method and system for time synchronization
CN101420281B (en) Method and arrangement for transferring a time of day value between network elements
JP3444397B2 (en) Digital signal receiving apparatus, method, and storage medium storing program according to the method
JPH11308203A (en) Clock reproduction system
JP6198075B2 (en) Time synchronization apparatus, time synchronization method, and time synchronization program
TWM628940U (en) Master device and slave device
JP2007228040A (en) Pll device compatible with received packet missing
US9438379B2 (en) Communication device, communication program, communication method, and information processing device
JP3039365B2 (en) Receive synchronization position control method
JP3587201B2 (en) Clock recovery device
TWI809564B (en) Synchronization correction method, master device and slave device
EP3526651B1 (en) Precision time stamping method and system
WO2020119605A1 (en) Audio stream switching method and device
KR100290737B1 (en) Circuit for operating data mean value

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