JP2824963B2 - Mutual synchronization method and apparatus between leased line terminals - Google Patents

Mutual synchronization method and apparatus between leased line terminals

Info

Publication number
JP2824963B2
JP2824963B2 JP8168047A JP16804796A JP2824963B2 JP 2824963 B2 JP2824963 B2 JP 2824963B2 JP 8168047 A JP8168047 A JP 8168047A JP 16804796 A JP16804796 A JP 16804796A JP 2824963 B2 JP2824963 B2 JP 2824963B2
Authority
JP
Japan
Prior art keywords
synchronization
data
terminal
pattern
buffer
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
JP8168047A
Other languages
Japanese (ja)
Other versions
JPH1013493A (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.)
Ando Electric Co Ltd
Original Assignee
Ando Electric Co Ltd
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 Ando Electric Co Ltd filed Critical Ando Electric Co Ltd
Priority to JP8168047A priority Critical patent/JP2824963B2/en
Publication of JPH1013493A publication Critical patent/JPH1013493A/en
Application granted granted Critical
Publication of JP2824963B2 publication Critical patent/JP2824963B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Telephonic Communication Services (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、専用線上でユーザ
データと制御情報を混在させて送受信して、端末装置間
の通信を実現するための専用線端末装置間の相互同期方
法及び装置に関し、とりわけ、ユーザデータを確実に受
信可能な専用線端末装置間の相互同期方法及び装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for mutually synchronizing dedicated line terminals for transmitting and receiving mixed user data and control information on a dedicated line to realize communication between the terminal devices. In particular, the present invention relates to a method and apparatus for mutual synchronization between dedicated line terminals capable of reliably receiving user data.

【0002】[0002]

【従来の技術】音声に加え、ファクシミリ,静止画,動
画などの各種メディアを高速に伝送するためのディジタ
ル式ネットワークとして、従来より、ISDNと呼ぶネ
ットワークが知られている。このISDNは、回線交換
により、多数の加入者間で多対多の回線接続を実現する
もので、各加入者は通信が必要な場合にだけ回線接続し
て通信を行うようになっている。ここで、ISDNにお
ける通信インターフェイスの一つに、B1,B2,Dチ
ャネルと呼ぶ3つのチャネルを用いて、加入者端末間の
通信を実現した方式がある。ちなみに、この通信インタ
ーフェイスはISDN基本インターフェイスと呼ばれ、
そのチャネルは2B+Dと呼ばれている。
2. Description of the Related Art A network called ISDN is conventionally known as a digital network for transmitting various media such as facsimile, still image and moving image in addition to voice at high speed. The ISDN realizes a many-to-many line connection between a large number of subscribers by circuit switching, and each subscriber performs a line connection and performs communication only when communication is required. Here, as one of the communication interfaces in ISDN, there is a method in which communication between subscriber terminals is realized using three channels called B1, B2, and D channels. By the way, this communication interface is called ISDN basic interface,
That channel is called 2B + D.

【0003】これらのチャネルのうち、B1チャネルと
B2チャネルは何れも音声や各種データを伝送するため
の情報チャネルであって、チャネル速度はともに64k
bps(キロビット毎秒)になっている。これに対し、
DチャネルはB1,B2チャネルで為される通信のため
の発着信時の回線制御などに利用される信号チャネルで
あって、チャネル速度は16kbpsに設定されてい
る。そして、こうしたインターフェイスに適合した端末
をISDN端末と呼んでいる。
[0003] Of these channels, both the B1 channel and the B2 channel are information channels for transmitting voice and various data, and both have a channel speed of 64k.
bps (kilobits per second). In contrast,
The D channel is a signal channel used for line control at the time of transmission and reception for communication performed on the B1 and B2 channels, and the channel speed is set to 16 kbps. A terminal suitable for such an interface is called an ISDN terminal.

【0004】一方、ISDNとは別に、128kbps
の回線速度を有するスーパーディジタルといった「専用
線」と呼ばれる通信形態がある。この形態では1対1の
通信を前提とした貸し切り回線であって、例えば、企業
の本店・支店間の内線電話などに利用される。こうした
専用線を使用する場合、通信相手は予め決まっているの
で、相手先電話番号のダイヤル等は不要であって、相互
の同期が確立すればデータを垂れ流しで出すことができ
る。したがって、専用線を用いた通信では、ISDNに
存在する制御チャネルは不要であって、端末間の通信は
情報チャネルのみを用いて実現されている。以上からわ
かるように、専用線に接続される端末は、情報チャネル
だけで通信を行っており、ISDN端末とは異なる専用
線端末が使用される。
On the other hand, apart from ISDN, 128 kbps
There is a communication form called "dedicated line" such as super digital having a line speed of. In this embodiment, the leased line presupposes one-to-one communication, and is used, for example, for an extension telephone between a head office and a branch of a company. When such a dedicated line is used, since the communication partner is predetermined, dialing of the other party's telephone number or the like is unnecessary, and if mutual synchronization is established, data can be sent out. Therefore, in the communication using the dedicated line, the control channel existing in the ISDN is unnecessary, and the communication between the terminals is realized using only the information channel. As can be seen from the above, the terminal connected to the dedicated line communicates only with the information channel, and a dedicated line terminal different from the ISDN terminal is used.

【0005】ここで、専用線を用いることの利点として
は次のようなことが考えられる。すなわち、ISDNな
どでは回線の使用時間に比例して料金が課金される従量
制を採用しているのが一般的であり、長時間回線を占有
する用途では回線使用料が莫大な金額になってしまう可
能性もある。その点、専用線は通信相手が固定されてい
るという制約はあるものの、回線使用時間に依存しない
固定の使用料を払えば良く、接続時間を気にすることな
く、回線を常時つないでおくことができる。したがっ
て、ある所定時間以上の回線使用が見込まれる場合に
は、ISDNの代わりに専用線を用いるのが得策である
といえる。
Here, the following are conceivable advantages of using the dedicated line. In other words, ISDN and the like generally adopt a pay-as-you-go system in which a fee is charged in proportion to the usage time of the line. In applications where the line is occupied for a long time, the line usage fee becomes enormous. There is also a possibility. On the other hand, the dedicated line has the restriction that the communication partner is fixed, but it is only necessary to pay a fixed usage fee that does not depend on the line usage time, and always connect the line without worrying about the connection time Can be. Therefore, when a line is expected to be used for a predetermined time or more, it can be said that it is advisable to use a dedicated line instead of the ISDN.

【0006】ところで、専用線を用いた通信は、従来、
図5に示すごとく構成された装置を各端末装置に接続す
ることで実現されていた。すなわち、同図に示すよう
に、端末装置間の通信の同期を司る相互同期装置51
a,51bが、専用線LCを介して対向配置され、相互
同期装置51a,51bにはそれぞれ端末装置2a,2
bが接続される。ここで、同図から明らかなように、相
互同期装置51a,51bは全く同一に構成されてい
る。そこで以下、これらを代表して相互同期装置51a
についてだけ構成を説明する。
Meanwhile, communication using a dedicated line has conventionally been
This is realized by connecting a device configured as shown in FIG. 5 to each terminal device. That is, as shown in FIG.
a and 51b are disposed opposite each other via a dedicated line LC, and the mutual synchronizers 51a and 51b are respectively connected to the terminal devices 2a and 2b.
b is connected. Here, as is clear from the figure, the mutual synchronizers 51a and 51b have exactly the same configuration. Therefore, hereinafter, the mutual synchronizer 51a will be representatively described.
Only the configuration will be described.

【0007】相互同期装置51aにおいて、制御部3a
は共通バスを介して同装置内の各部を制御する制御回路
であって、主として、データの発生及び受信の制御と、
端末装置2aとの間の入出力制御を行う。一例として、
制御部3aはCPU(中央処理装置),ROM(リード
オンリメモリ),RAM(ランダムアクセスメモリ)か
ら構成される。
In the mutual synchronization device 51a, the control unit 3a
Is a control circuit that controls each unit in the device via a common bus, and mainly controls data generation and reception,
Input / output control with the terminal device 2a is performed. As an example,
The control unit 3a includes a CPU (central processing unit), a ROM (read only memory), and a RAM (random access memory).

【0008】端末インターフェイス(図では「I/
F」)部4aは、端末装置2aを共通バスに接続するた
めのインターフェイス回路である。データ発生部5a
は、制御部3aを介して端末装置2aから送られる送信
データを変換し、送信データパターンを発生させて、後
述する回線インターフェイス部7aの送信端Tへ送出す
る。なお、制御部3aから共通バスを通してデータ発生
部5aに送られるデータは、例えば、8ビット単位で転
送されてくる。
[0008] A terminal interface (in the figure, "I /
F ") section 4a is an interface circuit for connecting the terminal device 2a to a common bus. Data generator 5a
Converts the transmission data sent from the terminal device 2a via the control unit 3a, generates a transmission data pattern, and sends it to the transmission end T of the line interface unit 7a described later. The data sent from the controller 3a to the data generator 5a via the common bus is transferred, for example, in units of 8 bits.

【0009】データ受信部6aは、回線インターフェイ
ス部7aが専用線LCを介して受信したシリアルのデー
タ列を、回線インターフェイス部7aの受信端Rから受
信し、これを制御部3aが扱うフォーマットに変換して
共通バスへ出力する。回線インターフェイス部7aは、
データの送信或いは受信に際して電気レベル変換を行う
ことによって、専用線LCから受信したシリアルのデー
タをデータ受信部6a及び同期用クロック部8aへ送出
する。また、回線インターフェイス部7aは、データ発
生部5aから送られる送信データを電気レベル変換し、
これを専用線LCへ送出する。
The data receiving unit 6a receives a serial data string received by the line interface unit 7a via the dedicated line LC from the receiving end R of the line interface unit 7a, and converts it into a format handled by the control unit 3a. Output to the common bus. The line interface unit 7a
By performing electrical level conversion at the time of data transmission or reception, serial data received from the dedicated line LC is transmitted to the data receiving unit 6a and the synchronization clock unit 8a. Further, the line interface unit 7a converts the transmission data sent from the data generation unit 5a to an electric level,
This is sent to the dedicated line LC.

【0010】同期用クロック部8aは、回線インターフ
ェイス部7aから送られる受信データの中から、データ
発生部5a及びデータ受信部6aを動作させる同期用の
クロックを抽出する。次に、こうした相互同期装置51
a,51bを用いた端末装置2a,2b間の通信は以下
のようになされる。まず、相互同期装置51aでは、制
御部3aが、端末装置2aからの送信データをデータ発
生部5aに順次書き込む。データ発生部5aは、同期用
クロック部8aからのクロックに同期して、回線インタ
ーフェイス部7aを通じて専用線LCに送信データを送
出する。
The synchronization clock section 8a extracts a synchronization clock for operating the data generation section 5a and the data reception section 6a from the received data sent from the line interface section 7a. Next, such a mutual synchronization device 51
Communication between the terminal devices 2a and 2b using the terminals a and 51b is performed as follows. First, in the mutual synchronization device 51a, the control unit 3a sequentially writes transmission data from the terminal device 2a to the data generation unit 5a. The data generator 5a sends out transmission data to the dedicated line LC through the line interface 7a in synchronization with the clock from the synchronization clock 8a.

【0011】すると、相互同期装置51bでは、専用線
LC及び回線インターフェイス7bを通じて相互同期装
置51aから受信したデータの中から、同期用クロック
部8bが同期用のクロックを抽出する。回線インターフ
ェイス部7bからの受信データは、このクロックに同期
してデータ受信部6bに入力される。すると、制御部3
bは、データ受信部6bが受信したデータを一定の時間
間隔で内部のRAMに読み込む。ここで、データ受信部
6b(6a)は、8ビット分のデータを受信する度に制
御部3b(3a)に割り込み信号を送出し、これを契機
に制御部3b(3a)が順次読み込みを行う。
Then, in the mutual synchronizer 51b, the synchronization clock section 8b extracts a synchronization clock from the data received from the mutual synchronizer 51a through the dedicated line LC and the line interface 7b. Data received from the line interface unit 7b is input to the data receiving unit 6b in synchronization with this clock. Then, the control unit 3
b reads the data received by the data receiving unit 6b into the internal RAM at regular time intervals. Here, the data receiving unit 6b (6a) sends an interrupt signal to the control unit 3b (3a) every time it receives data of 8 bits, and the control unit 3b (3a) sequentially reads the interrupt signal. .

【0012】なお、データ受信部6b(6a)から割り
込みを上げるかわりに、制御部3b(3a)がポーリン
グによってデータ受信部6b(6a)からデータを取り
込むように構成することもある。さらに、こうしたデー
タの送信・受信は、制御部3b(3a)内のCPUを介
さずに、DMA(ダイレクトメモリアクセス)転送によ
って、データ発生部5b(5a),データ受信部6b
(6a)と制御部3b(3a)内のRAMの間で為され
る場合もある。
Incidentally, instead of raising an interrupt from the data receiving unit 6b (6a), the control unit 3b (3a) may be configured to take in data from the data receiving unit 6b (6a) by polling. Further, such data transmission / reception is performed by a data transfer unit 5b (5a) and a data reception unit 6b by DMA (direct memory access) transfer without using a CPU in the control unit 3b (3a).
This may be performed between (6a) and the RAM in the control unit 3b (3a).

【0013】[0013]

【発明が解決しようとする課題】さて、上述のような専
用線に接続された端末装置では、各端末装置が、互いに
ユーザデータを専用線に流して通信を行っている。一
方、こうした端末装置にあっては、ユーザデータ以外に
も、当該端末装置に関する状態情報や各種の制御情報
を、通信相手の端末装置へ伝達する必要がある。このよ
うな制御情報の伝達を実現するには、ユーザデータを伝
送する通信回線とは別に、独立した制御情報用の通信回
線を設置することが考えられる。しかしながら、こうし
た構成にしてしまうと、回線使用料のコストが倍となる
上に、ユーザデータが載る通信回線と制御情報が載る通
信回線との関係が非同期となってしまうため、現実的な
実現方法であるとは言えない。
In the terminal devices connected to the dedicated line as described above, the terminal devices communicate with each other by flowing user data to the dedicated line. On the other hand, in such a terminal device, in addition to user data, it is necessary to transmit status information and various control information relating to the terminal device to a terminal device of a communication partner. In order to realize such transmission of control information, it is conceivable to provide an independent communication line for control information separately from a communication line for transmitting user data. However, such a configuration doubles the cost of the line usage fee, and the relationship between the communication line carrying the user data and the communication line carrying the control information becomes asynchronous. It cannot be said that.

【0014】したがって、ユーザデータと制御情報を同
一の通信回線で伝達する構成を採らざるを得ないことに
なる。こうした手法で問題となるのは、通信回線上を混
在して伝達されるユーザデータと制御情報について、こ
れらデータのパターンが一致してしまって誤動作してし
まう可能性があることである。とは言うものの、実際上
は、これらを完全に区別することは非常に難しいと言え
る。
Therefore, it is inevitable to adopt a configuration for transmitting user data and control information through the same communication line. A problem with such a method is that, for user data and control information transmitted in a mixed manner over a communication line, there is a possibility that these data patterns will match and malfunction. That said, in practice it is very difficult to distinguish them completely.

【0015】そこで本発明者らは、あとで詳述するよう
に、上記の従来技術の問題の解決策を案出した。すなわ
ち、端末装置間で制御情報を伝送する際は、これら端末
装置間で相互同期をとることにしてユーザデータと制御
情報を区別するようにしている。そのために、相互同期
にあたっては、一方の端末装置から同期要求のための同
期パターンを他方の端末装置へ送信すると共に、他方の
端末装置側では、送られてくるデータと上記の同期パタ
ーンとを比較して同期パターンを検出し、これを以て相
互同期をとるようにしている。
The present inventors have devised a solution to the above-mentioned problem of the prior art, as will be described in detail later. That is, when transmitting control information between terminal devices, mutual synchronization is established between these terminal devices so that user data and control information are distinguished. Therefore, in mutual synchronization, one terminal device transmits a synchronization pattern for a synchronization request to the other terminal device, and the other terminal device compares the transmitted data with the above synchronization pattern. Then, a synchronization pattern is detected, and this is used to perform mutual synchronization.

【0016】ところで、こうした同期パターンを用いる
相互同期の実現手段としては、次のような構成がまず考
えられる。すなわち、図5に示す回線インターフェイス
部7a,7bで受信したデータから同期パターンを検出
する同期パターン検出部と、同期パターンを発生するた
めの同期パターン発生部を各相互同期装置に新設する。
ここで、データ受信部6a,6bは共通バスに直接接続
されることから、制御部3a,3bはデータの内容を調
べずに、データ受信部6a,6bから受信したデータ列
をそのまま内蔵のRAMに取り込む。
By the way, as means for realizing mutual synchronization using such a synchronization pattern, the following configuration can be considered first. That is, a synchronization pattern detection unit for detecting a synchronization pattern from data received by the line interface units 7a and 7b shown in FIG. 5 and a synchronization pattern generation unit for generating a synchronization pattern are newly provided in each mutual synchronization device.
Here, since the data receiving units 6a and 6b are directly connected to the common bus, the control units 3a and 3b do not check the contents of the data, and the data strings received from the data receiving units 6a and 6b are directly stored in the built-in RAM. Take in.

【0017】また、これと並行して、同期パターン検出
部で受信データが同期パターンかを比較し、同期パター
ンが検出された時点で制御部3a,3bへ割り込みを上
げる。これにより、制御部3a,3bが、データ受信部
6a,6bから内部のRAMに取り込んでおいた受信デ
ータを遡り、同期パターンを検索してこの同期パターン
を取り込まれた受信データから除去する。こうした動作
を繰り返すことで、相互同期をとりながら、ユーザデー
タだけを内蔵のRAMに取り込むようにする。
In parallel with this, the synchronization pattern detector compares the received data with the synchronization pattern, and raises an interrupt to the controllers 3a and 3b when the synchronization pattern is detected. Thus, the control units 3a and 3b trace the received data fetched from the data receiving units 6a and 6b into the internal RAM, search for a synchronization pattern, and remove the synchronization pattern from the received data. By repeating such operations, only the user data is loaded into the built-in RAM while maintaining mutual synchronization.

【0018】このように、専用線LCから受信したデー
タが同期パターンか否かは、同期パターンの長さに応じ
た所定長のデータ比較を行うことで判定することにな
り、こうした手法は通常であれば全く問題の無いもので
ある。ところが、制御部3a,3bが受信データから同
期パターンを除去する処理は一般に複雑なものになり、
制御部3a,3bがある一定の処理能力を有していない
と、ユーザデータを取りこぼしてしまう可能性がある。
また、同期パターンの検出時間が長くなれば、相互同期
動作完了に要する時間が長くなってしまうということに
もなる。
As described above, whether data received from the dedicated line LC is a synchronization pattern is determined by comparing data of a predetermined length according to the length of the synchronization pattern. If there is, there is no problem at all. However, the processing in which the control units 3a and 3b remove the synchronization pattern from the received data is generally complicated,
If the control units 3a and 3b do not have a certain processing capability, there is a possibility that user data may be missed.
Further, if the detection time of the synchronization pattern becomes longer, the time required for completing the mutual synchronization operation becomes longer.

【0019】さらに、同期パターンの検出を厳格にする
ために、同期パターンのビット長を長くしたり、複数個
の同期パターンを連続させることも考えられる。そうし
た場合、取り込むべき受信データ列が長くなるため、同
期パターンと一致する部分を探し出して除去するまでの
時間が必然的に増大してしまう。したがって、上述した
データ損失の可能性を助長してしまうことになる。
Furthermore, in order to strictly detect the synchronization pattern, it is conceivable to increase the bit length of the synchronization pattern or to make a plurality of synchronization patterns continuous. In such a case, the received data sequence to be captured becomes longer, so that the time required to search for and remove a portion that matches the synchronization pattern necessarily increases. Therefore, the above-described possibility of data loss is promoted.

【0020】本発明は上記の点に鑑みてなされたもので
あり、その目的は、同一の専用線を用いて混在して伝達
されるユーザデータ及び端末制御情報を峻別することの
できる専用線端末装置間の相互同期方法及び装置を提供
することにあり、特に、同期パターンの検出を厳格に行
う場合であっても、ユーザデータの受信を確実に保証で
きる専用線端末装置間の相互同期方法及び装置を提供す
ることにある。
The present invention has been made in view of the above points, and an object of the present invention is to provide a dedicated line terminal capable of distinguishing user data and terminal control information which are mixedly transmitted using the same dedicated line. It is an object of the present invention to provide a method and apparatus for mutual synchronization between apparatuses, and in particular, to provide a method and apparatus for mutual synchronization between dedicated line terminal apparatuses that can reliably guarantee reception of user data even when a synchronization pattern is strictly detected. It is to provide a device.

【0021】[0021]

【課題を解決するための手段】以上の課題を解決するた
めに、請求項1記載の発明は、第1の端末と該第1の端
末の通信相手である第2の端末の間で、専用線によりユ
ーザデータ及び制御情報を送受信して、これら端末間の
通信を実現するための専用線端末装置間の相互同期方法
であって、前記第1〜第2の端末間で前記制御情報を送
受信する前後において、これら端末間で互いに同期パタ
ーンを授受して相互同期をとる際に、前記第1(又は第
2)の端末側で、少なくとも前記同期パターンを格納可
能な容量を有する先入れ先出しのバッファに、前記第2
(又は第1)の端末から送られてくる受信データを順次
書き込んでゆくとともに、該受信データに前記同期パタ
ーンが含まれるか否かを判定し、前記同期パターンが前
記受信データの中に含まれていることが検出された時点
で、前記同期パターンの含まれる前記バッファ上の固定
領域をクリアするようにして、前記同期パターンの除去
された受信データを、前記バッファを介して前記第1
(又は第2)の端末へ送出することを特徴としている。
In order to solve the above-mentioned problems, the invention according to claim 1 provides a dedicated terminal between a first terminal and a second terminal which is a communication partner of the first terminal. A method for mutually synchronizing dedicated line terminal devices for transmitting and receiving user data and control information over a line and realizing communication between these terminals, wherein the control information is transmitted and received between the first and second terminals. Before and after the transmission and reception of the synchronization pattern between these terminals to perform mutual synchronization, the first (or second) terminal side stores a first-in first-out buffer having at least a capacity capable of storing the synchronization pattern. , The second
The received data sent from the (or first) terminal is sequentially written, and it is determined whether or not the synchronization pattern is included in the reception data, and the synchronization pattern is included in the reception data. When it is detected that the synchronization pattern has been detected, the fixed area on the buffer including the synchronization pattern is cleared, and the reception data from which the synchronization pattern has been removed is transmitted to the first data via the buffer.
(Or a second) terminal.

【0022】また、請求項2記載の発明は、専用線と、
該専用線を用いてユーザデータ及び制御情報を互いに送
受信して通信する専用線端末との間に配され、前記専用
線端末とその相手端末との間の相互同期を司る専用線端
末装置間の相互同期装置であって、前記専用線端末間で
前記制御情報を送受信する前後でこれら端末間の相互同
期をとるために授受される同期パターンを、前記相手端
末側から送られてくる受信データの中から検出するパタ
ーン検出手段と、少なくとも前記同期パターンを格納可
能な容量を有する先入れ先出しのバッファと、前記相手
端末側からの受信データを前記バッファに順次書き込ん
でゆくバッファ書込手段と、前記パターン検出手段が前
記同期パターンを検出した時点で、前記同期パターンの
含まれる前記バッファ上の固定領域をクリアして、前記
同期パターンの除去された受信データを前記バッファか
ら前記専用線端末へ送出する制御手段とを具備すること
を特徴としている。
[0022] The invention according to claim 2 is characterized in that:
The dedicated line terminal is arranged between a dedicated line terminal that transmits and receives user data and control information to and from each other using the dedicated line, and performs mutual synchronization between the dedicated line terminal and its partner terminal. A mutual synchronizer, comprising: transmitting and receiving the control information between the leased line terminals; and transmitting and receiving a synchronization pattern for obtaining mutual synchronization between the terminals. Pattern detection means for detecting from the inside, a first-in first-out buffer having at least a capacity capable of storing the synchronization pattern, buffer writing means for sequentially writing data received from the partner terminal side to the buffer, When the means detects the synchronization pattern, the fixed area on the buffer including the synchronization pattern is cleared to remove the synchronization pattern. It is characterized by comprising a control means for transmitting the received data to the dedicated line terminal from the buffer.

【0023】また、請求項3記載の発明は、請求項2記
載の発明において、前記バッファは、少なくとも前記容
量を持つメモリと、該メモリの読み出し/書き込みアド
レスを保持するポインタとを有し、前記制御手段は、前
記ポインタが示すメモリの内容を読み出して前記専用線
端末へ送出し、前記バッファ書込手段は、前記制御手段
が前記ポインタが示すメモリの内容を読み出した後に、
該ポインタが示すメモリのアドレスに対して前記受信デ
ータを書き込むことを特徴としている。
According to a third aspect of the present invention, in the second aspect, the buffer has at least a memory having the capacity, and a pointer for holding a read / write address of the memory. The control means reads out the contents of the memory indicated by the pointer and sends it to the dedicated line terminal, and the buffer writing means reads out the contents of the memory indicated by the pointer,
The reception data is written to an address of a memory indicated by the pointer.

【0024】[0024]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について説明する。図1は、同実施形態による
相互同期装置1a,1bと、これらに接続される端末装
置2a,2bの接続形態を示したブロック図である。こ
の図において、図5と同一の部品については同じ符号を
付してあり、その説明を省略する。また、相互同期装置
1a,1bの構成は同じであるため、以下ではこれらを
代表して、相互同期装置1aについて説明を行う。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a connection configuration of the mutual synchronizers 1a and 1b according to the embodiment and terminal devices 2a and 2b connected thereto. In this figure, parts that are the same as those in FIG. 5 are given the same reference numerals, and descriptions thereof will be omitted. Further, since the configurations of the mutual synchronizers 1a and 1b are the same, the mutual synchronizer 1a will be described below as a representative thereof.

【0025】本実施形態では、図5に示した従来の構成
に対して、同期パターン発生部9a,同期パターン検出
部10a,セレクタ11a,バッファ部12aが追加さ
れている。まず、上述した同期用クロック部8aは同期
パターン検出部10a及びバッファ部12aに対しても
同期用のクロックを供給するように変更されている。次
に、同期パターン発生部9aは、端末装置間における相
互同期を実現するためのパターンを発生する手段であっ
て、用いるパターンとしては例えば巡回符号が好まし
い。本実施形態では10段のPNパターン(擬似ランダ
ムパターン)を用いており、その生成多項式は「X10
9 +1」(繰り返し周期:888)である。
In this embodiment, a synchronization pattern generator 9a, a synchronization pattern detector 10a, a selector 11a, and a buffer 12a are added to the conventional configuration shown in FIG. First, the above-mentioned synchronization clock section 8a is modified so as to also supply a synchronization clock to the synchronization pattern detection section 10a and the buffer section 12a. Next, the synchronization pattern generation unit 9a is a means for generating a pattern for realizing mutual synchronization between terminal devices, and a pattern to be used is preferably, for example, a cyclic code. In the present embodiment, a 10-stage PN pattern (pseudo-random pattern) is used, and its generating polynomial is expressed as “X 10 +
X 9 +1 "(repetition cycle: 888).

【0026】これを実現するには、例えば図2(a)に
示すように、10個のDフリップフロップを縦続接続す
ると共に、9段目と10段目(最終段)のDフリップフ
ロップの出力の排他的論理和(XOR)をとって、初段
のDフリップフロップの入力に戻してやれば良い。な
お、図ではDフリップフロップを駆動するクロックにつ
いては図示を省略してあるが、これらDフリップフロッ
プは全て同一のクロックに同期して動作する。
To realize this, for example, as shown in FIG. 2A, ten D flip-flops are connected in cascade, and the outputs of the ninth and tenth (final) D flip-flops are output. The exclusive-OR (XOR) of the first stage D flip-flop may be returned to the input of the first stage D flip-flop. In the figure, clocks for driving the D flip-flops are not shown, but these D flip-flops all operate in synchronization with the same clock.

【0027】再び図1において、同期パターン検出部1
0aは、回線インターフェイス部7aが抽出した受信デ
ータの中から、同期パターン発生部9aが発生するのと
同じ同期パターンを検出する手段である。ここで、同期
パターン検出部10aの構成例としては図2(b)に示
すものが考えられる。この図に示すように、10個のD
フリップフロップを縦続接続して、回線インターフェイ
ス部7aからの受信データを、初段のDフリップフロッ
プへ入力すると共に、9段目及び10段目(最終段)の
Dフリップフロップの出力と受信データとの排他的論理
和をそれぞれとって、エラー検出信号を生成する。
Referring again to FIG. 1, the synchronization pattern detector 1
Reference numeral 0a denotes a unit for detecting, from the received data extracted by the line interface unit 7a, the same synchronization pattern as that generated by the synchronization pattern generation unit 9a. Here, as an example of the configuration of the synchronization pattern detection unit 10a, the configuration shown in FIG. As shown in this figure, ten D
The flip-flops are connected in cascade, and the data received from the line interface unit 7a is input to the first-stage D flip-flop, and the output of the ninth and tenth (final) D flip-flops and the received data are connected. An exclusive OR is used to generate an error detection signal.

【0028】そうして、受信データにつき、連続する5
6ビットにエラー信号が検出されなければ、PNパター
ンが検出(同期確立)されたものとする。いま、受信デ
ータのパターンがランダムであるとすると、PNパター
ン(同期)を誤検出する確率は、2-56(1.3×10
-17)となる。したがって、例えばデータ通信速度を6
4kbpsとすれば、誤検出は35702年に1回とな
る。なお、実際には、こうした同期パターンが3回連続
して送られてきた場合に、初めて同期したものと見なす
ようにして信頼性の向上を図っている。
Then, for the received data, five consecutive
If no error signal is detected in 6 bits, it is assumed that the PN pattern has been detected (synchronization has been established). Now, assuming that the pattern of the received data is random, the probability of erroneously detecting the PN pattern (synchronization) is 2 −56 (1.3 × 10
-17 ). Therefore, for example, if the data communication speed is 6
If it is 4 kbps, false detection will be once every 35702. Actually, when such a synchronization pattern is sent three times in a row, it is assumed that synchronization has been performed for the first time, thereby improving reliability.

【0029】一方、図1のセレクタ11aは、共通バス
を介した制御部3aの制御の下に、データ発生部5aの
出力と同期パターン発生部9aの出力を選択して回線イ
ンターフェイス部7aの送信端Tへ送出する。バッファ
部12aは、同期用クロック部8aから送られるクロッ
クに同期して、回線インターフェイス部7aが送出する
受信データ列を順次蓄積していくための緩衝手段であ
る。ここで、バッファ部12aの容量は同期パターン検
出部10aで検出する同期パターン(上述)のビット長
よりも、若干大きな容量を確保するようにしている。
On the other hand, the selector 11a in FIG. 1 selects the output of the data generator 5a and the output of the synchronization pattern generator 9a under the control of the controller 3a via the common bus, and transmits the output of the line interface 7a. Send to end T. The buffer section 12a is buffer means for sequentially accumulating the received data string transmitted by the line interface section 7a in synchronization with the clock transmitted from the synchronization clock section 8a. Here, the capacity of the buffer unit 12a is set to be slightly larger than the bit length of the synchronization pattern (described above) detected by the synchronization pattern detection unit 10a.

【0030】このバッファ部12aは一種のFIFO
(先入れ先出し)であるが、後述するように、同期パタ
ーンが検出された場合には、バッファ部12aから同期
パターンの部分を検索してこれを除去する必要がある。
したがって、バッファ部12aを一般的なFIFOの構
成とすることはできない。そこで本実施形態では、メモ
リを用いてバッファ部12aを実現することとし、当該
メモリ上にFIFOの長さ分の領域を確保してFIFO
の機能を実現している。
This buffer section 12a is a kind of FIFO.
As described later, when a synchronous pattern is detected, it is necessary to search for a synchronous pattern portion from the buffer unit 12a and remove it.
Therefore, the buffer section 12a cannot have a general FIFO configuration. Therefore, in the present embodiment, the buffer unit 12a is realized by using a memory, and an area corresponding to the length of the FIFO is secured on the memory, and the FIFO unit 12a is used.
Function is realized.

【0031】いま、一例として、受信データを1バイト
単位で取り扱うものとし、メモリに対するアクセスもバ
イト単位で行うものとする。そうした場合、メモリをア
クセスする際のアドレスをFIFOの長さ分で巡回させ
るようにすると共に、受信データを書き込むためのポイ
ンタをバッファ部12aの内部に設けるようにする。そ
して、回線インターフェイス部7aから1バイト相当分
のデータを受信した時点で、ポインタが指し示すアドレ
スから1バイトのデータを読み出した後に、受信した1
バイトのデータをこの同じアドレスに書き込むようにす
る。こうすれば、ポインタが示すアドレスへの書き込み
がFIFOへデータを入力することに相当し、また、読
み出されたデータはFIFOの長さ分だけ以前に書き込
まれた受信データになるから、FIFOの先頭からデー
タが取り出されるのと同様となって、FIFOの機能が
実現されることになる。
Now, as an example, it is assumed that received data is handled in units of 1 byte, and that access to the memory is also performed in units of bytes. In such a case, the address for accessing the memory is circulated by the length of the FIFO, and a pointer for writing the received data is provided inside the buffer unit 12a. At the point of time when one byte worth of data is received from the line interface unit 7a, one byte of data is read from the address indicated by the pointer, and
Byte data is written to this same address. In this case, writing to the address indicated by the pointer corresponds to inputting data to the FIFO, and the read data becomes reception data written before by the length of the FIFO. The FIFO function is implemented in the same manner as when data is taken out from the beginning.

【0032】また、バッファ部12aは共通バスを介し
た制御部3aの制御を受ける。すなわちバッファ部12
aは、あとで詳述するように、制御部3aからバッファ
クリアの指示が送られると、同期パターン検出部10a
が検出したのと同じPNパターンが格納されている部分
を探索してクリアする。もっとも、同期パターン検出部
10aがPNパターンを検出してからクリアが指示され
るまでの時間は常に一定であるため、実際には、バッフ
ァ部12a上でクリアされるPNパターンの部分は常に
同じ領域になる。
The buffer section 12a is controlled by the control section 3a via a common bus. That is, the buffer unit 12
As will be described in detail later, when a buffer clear instruction is sent from the control unit 3a, the synchronization pattern detection unit 10a
Search for and clear the portion where the same PN pattern as that detected by is stored. However, since the time from when the synchronous pattern detecting unit 10a detects the PN pattern to when the clear is instructed is always constant, actually, the PN pattern portion cleared on the buffer unit 12a always has the same area. become.

【0033】さらに、バッファ部12aは、回線インタ
ーフェイス部7aとデータ受信部6aの間でのデータの
整合性をとるために、回線インターフェイス部7aから
送られるシリアルのデータ列を、例えばバイト単位に直
して上記のメモリに格納する。その一方で、バッファ部
12aは、メモリから読みだした例えばバイト単位のデ
ータを、シリアルのデータ列に変換してデータ受信部6
aへ送出する。
Further, the buffer unit 12a converts the serial data string sent from the line interface unit 7a into, for example, a byte unit in order to ensure data consistency between the line interface unit 7a and the data receiving unit 6a. And store it in the above memory. On the other hand, the buffer unit 12a converts, for example, byte data read from the memory into a serial data string and converts the data into a serial data string.
a.

【0034】他方、本実施形態に係る相互同期装置は、
端末装置がユーザデータを相互に通信する通常のモード
(以下、ユーザデータ通信モードと呼ぶ)と、端末制御
情報を通信する特殊なモード(以下、情報データ通信モ
ードと呼ぶ)を有している。そのために、制御部3a,
3bはそれぞれ内部にステータスレジスタを具備してお
り、何れのモードにあるかを常に把握している。
On the other hand, the mutual synchronization device according to the present embodiment
The terminal device has a normal mode in which user data communicates with each other (hereinafter, referred to as a user data communication mode) and a special mode in which terminal control information is communicated (hereinafter, referred to as an information data communication mode). Therefore, the control units 3a,
3b has a status register inside, and always knows which mode it is in.

【0035】次に、上記構成による相互同期装置の動作
を説明する。まずは、ユーザデータ通信モードにおける
動作を説明するが、以下では、端末装置2aから端末装
置2bにユーザデータを送信する場合を想定する。い
ま、端末装置2aがデータを送信する場合、制御部3a
は、送信すべきユーザデータを、一旦、端末インターフ
ェイス部4aから内蔵のRAMに取り込む。
Next, the operation of the mutual synchronizer having the above configuration will be described. First, the operation in the user data communication mode will be described. In the following, it is assumed that user data is transmitted from the terminal device 2a to the terminal device 2b. Now, when the terminal device 2a transmits data, the control unit 3a
Temporarily captures user data to be transmitted from the terminal interface unit 4a to the built-in RAM.

【0036】それから制御部3aは、RAM上のユーザ
データをデータ発生部5aに書き込んでゆく。その際、
制御部3aはセレクタ11aがデータ発生部5aの出力
を選択するように、当該セレクタ11aを制御する。デ
ータ発生部5aに書き込まれた送信データは、当該デー
タ発生部5aでシリアルのパターン列に変換されたの
ち、セレクタ11aを通り、回線インターフェイス部7
aにて専用線LCの電気レベルに変換されて、相互同期
装置1b側へ伝送される。
Then, the control section 3a writes the user data on the RAM into the data generation section 5a. that time,
The control unit 3a controls the selector 11a so that the selector 11a selects the output of the data generation unit 5a. The transmission data written in the data generation unit 5a is converted into a serial pattern sequence by the data generation unit 5a, passes through the selector 11a, and passes through the line interface unit 7a.
The signal is converted into the electric level of the dedicated line LC at a and transmitted to the mutual synchronizer 1b.

【0037】相互同期装置1bでは、送信されたデータ
を受信するために、専用線LC上のデータを回線インタ
ーフェイス部7bにて電気レベル変換し、得られた受信
データをバッファ部12bへ送る。これと並行して、同
期用クロック部8bは、回線インターフェイス部7bか
らの受信データからクロックを抽出し、データ受信部6
b及びバッファ部12bに供給しており、これにより、
専用線網に同期したデータの受信が可能となる。また、
同期用クロック部8bは、データ発生部5bにもクロッ
クを供給しており、専用線LCへ送出する送信データに
ついても専用線網との同期を実現している。
In the mutual synchronizer 1b, in order to receive the transmitted data, the data on the dedicated line LC is converted into an electric level by the line interface unit 7b, and the obtained received data is sent to the buffer unit 12b. In parallel with this, the synchronization clock section 8b extracts a clock from the data received from the line interface section 7b,
b and the buffer section 12b.
It becomes possible to receive data synchronized with the leased line network. Also,
The synchronization clock unit 8b also supplies a clock to the data generation unit 5b, and realizes synchronization of transmission data to be transmitted to the dedicated line LC with the dedicated line network.

【0038】その後、制御部3bは、データ受信部6b
から受信データを取り込むことになるが、バッファ部1
2bに入れられた受信データは上述したFIFOの長さ
分だけ遅延されてデータ受信部6bに与えられるから、
制御部3bはFIFOの長さ分に相当する遅延時間の後
に、データ受信部6bから受信データを取り出すことに
なる。こうして制御部3bは、受信したデータを一定時
間間隔で内蔵RAMに取り込み、これを端末インターフ
ェイス部4bを経て端末装置2bへ送出する。以上によ
り端末装置2aから端末装置2bに対するユーザデータ
の送信処理が完了したことになる。なお、ユーザデータ
を受信している間、同期パターン検出部10bはPNパ
ターンを検出しないため、バッファ部12bは単なるF
IFO或いはバッファとして機能する。
Thereafter, the control unit 3b sets the data receiving unit 6b
Receive data from the buffer unit 1
2b is given to the data receiving section 6b after being delayed by the length of the FIFO described above.
The control unit 3b extracts the received data from the data receiving unit 6b after a delay time corresponding to the length of the FIFO. Thus, the control unit 3b takes in the received data into the built-in RAM at regular time intervals, and sends it to the terminal device 2b via the terminal interface unit 4b. Thus, the transmission process of the user data from the terminal device 2a to the terminal device 2b is completed. While the user data is being received, the synchronization pattern detection unit 10b does not detect the PN pattern, so that the buffer unit 12b stores only the F
Functions as an IFO or buffer.

【0039】次に、端末装置2a,2b間で制御情報デ
ータを相互に送受信する場合の動作について説明する。
図3は、本実施形態における情報通信モードでの動作を
説明するための図であって、図中、時間は上から下に流
れてゆく。そこで、以下の説明では、同図の上から下の
並び順に沿って説明してゆくことにする。なお図中、U
点はユーザ点を意味する。
Next, the operation when the control information data is mutually transmitted and received between the terminal devices 2a and 2b will be described.
FIG. 3 is a diagram for explaining the operation in the information communication mode according to the present embodiment. In FIG. 3, time flows from top to bottom. Therefore, in the following description, the description will be made in the order of arrangement from the top to the bottom of FIG. In the figure, U
Points mean user points.

【0040】いま、上述したように、端末装置2a,2
b間でユーザデータの通信が相互に行われており、この
状態で端末装置2aから端末装置2bへ端末制御情報を
伝送することを想定する。まず、相互同期装置1a側で
は、セレクタ11aが同期パターン発生部9aの出力を
選択するように、制御部3aがセレクタ11aを制御す
る。このとき制御部3aは、データ発生部5aからユー
ザデータが送出されるのを一時保留するように当該デー
タ発生部5aを制御する。
Now, as described above, the terminal devices 2a and 2
It is assumed that the communication of the user data is performed mutually between the terminals b and the terminal control information is transmitted from the terminal device 2a to the terminal device 2b in this state. First, on the side of the mutual synchronizer 1a, the control unit 3a controls the selector 11a so that the selector 11a selects the output of the synchronization pattern generation unit 9a. At this time, the control unit 3a controls the data generation unit 5a so as to temporarily suspend the transmission of the user data from the data generation unit 5a.

【0041】次に、制御部3aが、同期パターン発生部
9aに対してPNパターンの発生を指示すると、同部が
発生したPNパターンは、セレクタ11a,回線インタ
ーフェイス部7aを通して専用線LCへ送出される。こ
れにより、制御情報の送出要求(図3の右側の「相互同
期要求通知」)が対向する相互同期装置1bへ通知され
る。ここで、制御部3a(3b)は専用線LC上で伝送
される情報チャネルの空き状態を管理している。例え
ば、PNパターンを送信する際、制御部3a(3b)は
これらチャネルの中から空きチャネルを選択し、該チャ
ネルに対応したタイムスロットにPNパターンを載せる
ことで、データの送信を行う。
Next, when the control unit 3a instructs the synchronous pattern generation unit 9a to generate a PN pattern, the PN pattern generated by the control unit 3a is transmitted to the dedicated line LC through the selector 11a and the line interface unit 7a. You. As a result, a control information transmission request ("mutual synchronization request notification" on the right side of FIG. 3) is notified to the opposing mutual synchronization device 1b. Here, the control unit 3a (3b) manages the idle state of the information channel transmitted on the dedicated line LC. For example, when transmitting a PN pattern, the control unit 3a (3b) transmits data by selecting an empty channel from these channels and placing the PN pattern in a time slot corresponding to the channel.

【0042】一方、相互同期装置1bでは、回線インタ
ーフェイス部7bで電気レベル変換された受信データ
が、同期パターン検出部10b及びバッファ部12bに
伝達される。同期パターン検出部10bは、データ受信
部6bがバッファ部12bでバッファされたデータを受
信するのと並行して、受信データのビット列がPNパタ
ーンか否かを常に監視しており、該PNパターンを検出
した時点で割り込みを用い、制御部3bへPNパターン
検出の旨を通知する。なお、同期パターン検出部10b
はこうした検出処理をデータ発生部5bとは非同期的に
実施している。
On the other hand, in the mutual synchronizer 1b, the received data whose electric level has been converted by the line interface unit 7b is transmitted to the synchronization pattern detection unit 10b and the buffer unit 12b. The synchronization pattern detector 10b constantly monitors whether or not the bit string of the received data is a PN pattern in parallel with the reception of the data buffered by the buffer 12b by the data receiver 6b. At the time of detection, an interrupt is notified to the control unit 3b using an interrupt. Note that the synchronization pattern detection unit 10b
Performs such a detection process asynchronously with the data generation unit 5b.

【0043】すると制御部3bは、共通バスを介し、バ
ッファ部12bに対してバッファクリアを指示する。こ
れにより、バッファ部12bが当該バッファ部12bの
メモリのうちPNパターンの部分をクリアする。このこ
とを、以下に図4を用いて説明する。なお、図中、バッ
ファの左端から出力されるデータがデータ受信部側へ送
られ、回線インターフェイス部からの受信データがバッ
ファの右端から入れられる。
Then, the control unit 3b instructs the buffer unit 12b to clear the buffer via the common bus. As a result, the buffer unit 12b clears the PN pattern portion in the memory of the buffer unit 12b. This will be described below with reference to FIG. In the drawing, data output from the left end of the buffer is sent to the data receiving unit side, and data received from the line interface unit is inserted from the right end of the buffer.

【0044】図4において、「DDDDDD」の部分は
PNパターン以外のデータを意味しており、PNパター
ンを受信する前にバッファ部12bに入力されたデータ
である。一方、「PNPN……」の部分はPNパターン
を意味しており、同期パターン検出部10bが検出した
PNパターンに対応している。ここで、前述したように
PNパターンが検出された時点では、PNパターンの最
後のデータが常にFIFOの最後(バッファの右端)に
なっているから、バッファ部12b上でクリアされるの
は、FIFOの右端を起点としたPNパターン長分の領
域になる。
In FIG. 4, "DDDDDD" means data other than the PN pattern, and is data input to the buffer unit 12b before receiving the PN pattern. On the other hand, "PNPN ..." means a PN pattern, which corresponds to the PN pattern detected by the synchronization pattern detection unit 10b. Here, as described above, when the PN pattern is detected, the last data of the PN pattern is always at the end of the FIFO (the right end of the buffer). Is the area corresponding to the PN pattern length starting from the right end.

【0045】以上のようなPNパターンのクリアによっ
て、データ受信部6bにPNパターンが送出されること
を防止でき、ユーザデータだけがデータ受信部6bに送
られることになる。一方、制御部3bは、同期パターン
検出の通知を受け取ることで相互同期要求を受け付ける
モードに入ると共に、相互同期要求通知に対する応答と
して、同期パターン発生部9bを起動し、上述した相互
同期装置1aにおけるのと同様の手順で、PNパターン
を相互同期装置1aへ返信する。
By clearing the PN pattern as described above, it is possible to prevent the PN pattern from being sent to the data receiving unit 6b, and only the user data is sent to the data receiving unit 6b. On the other hand, the control unit 3b enters the mode for receiving the mutual synchronization request by receiving the notification of the detection of the synchronization pattern, and activates the synchronization pattern generation unit 9b in response to the notification of the mutual synchronization request. The PN pattern is returned to the mutual synchronization device 1a in the same procedure as described above.

【0046】すると相互同期装置1aでは、同期パター
ン検出部10aが、送られてきたPNパターンを検出し
て制御部3aに対してPNパターン検出を通知する。制
御部3aは、この通知を以て、相互同期装置1bが相互
同期要求を受け付けられる状態である(図3の左側の
「相互同期要求受付通知」)と判断し、同期パターン発
生部9aに対してPNパターンの送出の停止を指示し、
同時に、セレクタ11aを制御して、当該セレクタ11
aがデータ発生部5aの出力を選択するように切り替え
を行う。
Then, in the mutual synchronization device 1a, the synchronization pattern detection unit 10a detects the transmitted PN pattern and notifies the control unit 3a of the PN pattern detection. Based on this notification, the control unit 3a determines that the mutual synchronization device 1b is ready to receive a mutual synchronization request (“mutual synchronization request reception notification” on the left side of FIG. 3), and sends a PN to the synchronization pattern generation unit 9a. Instruct to stop sending patterns,
At the same time, the selector 11a is controlled to
Switching is performed so that a selects the output of the data generation unit 5a.

【0047】その後、相互同期装置1b側では、同期パ
ターン検出部10bが、相互同期装置1aからのPNパ
ターンの送出の停止に起因する同期外れを検出して制御
部3bへ通知する。ここで、PNパターンの送出が停止
すると、NULL(「0」のビットの連続)が送出され
るようになっており、同期パターン検出部10bは、こ
のNULLのパターンを検出することで同期外れを検出
している。
Thereafter, on the side of the mutual synchronizer 1b, the synchronous pattern detector 10b detects the loss of synchronization due to the stop of the transmission of the PN pattern from the mutual synchronizer 1a and notifies the controller 3b. Here, when the transmission of the PN pattern is stopped, NULL (continuation of “0” bits) is transmitted, and the synchronization pattern detecting unit 10b detects the loss of synchronization by detecting the NULL pattern. Detected.

【0048】同期外れが検出されると、これを以て制御
部3bは、相互同期要求を受け付けるモードに入り、同
期パターン発生部9bに対してPNパターンの送信を停
止する(図3の右側の「情報データ通信モードON通
知」)ように指示すると共に、セレクタ11bがデータ
発生部5bの出力を選択するように、当該セレクタ11
bを制御する。
When the out-of-synchronization is detected, the control unit 3b enters a mode for receiving a mutual synchronization request, and stops transmission of the PN pattern to the synchronization pattern generation unit 9b (see "Information" on the right side of FIG. 3). Data communication mode ON notification ”), and the selector 11b selects the output of the data generator 5b.
control b.

【0049】次いで、相互同期装置1aでは、同期パタ
ーン検出部10aが、相互同期装置1bからのPNパタ
ーンの送出の停止によって同期外れを検出し、これを制
御部1aに通知する。以上により、相互同期装置1a,
1b間で同期が確立されたことになり、相互同期装置1
a側でも端末制御情報の通信を行うために、情報データ
通信モードに入る(図3の左側の「情報データ通信モー
ドON通知」)。
Next, in the mutual synchronization device 1a, the synchronization pattern detection unit 10a detects the loss of synchronization due to the stop of the transmission of the PN pattern from the mutual synchronization device 1b, and notifies the control unit 1a of this. As described above, the mutual synchronization devices 1a,
1b is established, and the mutual synchronization device 1
The a side also enters the information data communication mode to perform communication of terminal control information (“information data communication mode ON notification” on the left side of FIG. 3).

【0050】次に、情報データ通信モードでは、各相互
同期装置内の制御部3a,3bが、データ発生部5a,
5bをそれぞれ制御して端末制御情報を相手端末側へ送
信すると共に、相手端末側からデータ受信部6a,6b
を介して送られてくる情報データを受信する。こうし
て、端末装置2a,2b間で相互に端末制御情報の通信
がなされる。
Next, in the information data communication mode, the control units 3a and 3b in each mutual synchronizing device are controlled by the data generation units 5a and 5a.
5b to transmit terminal control information to the partner terminal side, and to control the data receiving units 6a and 6b from the partner terminal side.
Receiving the information data sent via the. Thus, communication of the terminal control information is performed between the terminal devices 2a and 2b.

【0051】その後に、端末制御情報の通信が終了する
と、相互同期装置1aは、「情報データ通信モードON
通知」時に行ったのと同様の手順で、PNパターンを相
互同期装置1b側へ送信する。これにより、相互同期装
置1bからのPNパターンの返送,相互同期装置1aに
おけるPNパターン送出の停止,相互同期装置1bにお
けるPNパターン送出の停止が順次なされて、相互同期
装置1a,1bにおいて、情報データ通信モードの解除
(図3の「情報データ通信モードOFF通知」)がなさ
れる。これ以後は、上述した説明と同様に、ユーザデー
タの通信或いは端末制御情報の通信が、モードを切り替
えながら適宜行われてゆく。
After that, when the communication of the terminal control information is completed, the mutual synchronization device 1a sets “information data communication mode ON”.
The PN pattern is transmitted to the mutual synchronization device 1b in the same procedure as that performed at the time of "notification". As a result, the return of the PN pattern from the mutual synchronizer 1b, the stop of the transmission of the PN pattern by the mutual synchronizer 1a, and the stop of the transmission of the PN pattern by the mutual synchronizer 1b are sequentially performed. The communication mode is released (“information data communication mode OFF notification” in FIG. 3). Thereafter, as in the above description, communication of user data or communication of terminal control information is appropriately performed while switching modes.

【0052】[0052]

【発明の効果】以上説明したように、本発明によれば、
専用線端末間で互いに同期パターンを授受して相互同期
をとる際に、一方の端末側で、他方の端末からの受信デ
ータを先入れ先出しのバッファに順次書き込むととも
に、同期パターンが含まれるか否かを判定し、同期パタ
ーンを検出した時点でバッファ上の固定領域をクリアす
るようにしたので、受信データ列を一旦記憶装置上に取
り込んだのちに、その中から同期パターンを探し出して
除去して、ユーザデータだけを再度取り出すといった複
雑な処理をする必要がなくなり、ユーザデータや同期パ
ターンが混在する受信データ列の中から、容易にユーザ
データだけを取り出して受信でき、したがって、同期パ
ターンの検出を厳格に行うような場合であっても、デー
タが失われてしまう恐れがなくなるという効果が得られ
る。また、上記のような複雑な処理がなくなるために、
専用線端末間の相互同期の処理が高速化されて情報デー
タ通信モードにおける回線の切断や接続を高速化でき、
これ以外の様々な処理を実行することが可能となり、さ
らに多機能な装置が構築できるという利点がある。
As described above, according to the present invention,
When a dedicated line terminal transmits and receives a synchronization pattern to each other to achieve mutual synchronization, one terminal side sequentially writes data received from the other terminal into a first-in first-out buffer and checks whether the synchronization pattern is included. Since the fixed area on the buffer is cleared when the synchronization pattern is detected, the received data sequence is once taken into the storage device, and then the synchronization pattern is searched for and removed from the storage data sequence. There is no need to perform complicated processing such as retrieving only the data again, and it is possible to easily retrieve and receive only user data from the received data string in which user data and synchronization patterns are mixed, and therefore, strictly detect the synchronization pattern. Even in such a case, the effect of eliminating the risk of data loss is obtained. Also, since the complicated processing as described above is eliminated,
The process of mutual synchronization between leased line terminals is accelerated, and the line disconnection and connection in the information data communication mode can be accelerated
Various other processes can be executed, and there is an advantage that a multifunctional device can be constructed.

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

【図1】 本発明の一実施形態による相互同期装置1
a,1bの構成、及び、当該装置と端末装置2a,2b
の接続形態を表わすブロック図である。
FIG. 1 shows a mutual synchronization device 1 according to an embodiment of the present invention.
a, 1b, the device and the terminal devices 2a, 2b
FIG. 4 is a block diagram illustrating a connection form of FIG.

【図2】 同実施形態によるPNパターンの生成,検出
の原理を説明する図であって、(a)は同期パターン発
生部9a,9bにおける同期パターン発生の原理図、
(b)は同期パターン検出部10a,10bにおける同
期パターン検出の原理図である。
2A and 2B are diagrams illustrating the principle of generation and detection of a PN pattern according to the embodiment, wherein FIG. 2A illustrates the principle of generation of a synchronization pattern in synchronization pattern generation units 9a and 9b;
(B) is a principle diagram of synchronous pattern detection in the synchronous pattern detection units 10a and 10b.

【図3】 同実施形態による端末装置2a,2b間の相
互同期方法を説明した図である。
FIG. 3 is a diagram illustrating a mutual synchronization method between the terminal devices 2a and 2b according to the embodiment.

【図4】 同実施形態において、同期パターン検出部1
0a(10b)がPNパターンを検出した時点における
バッファ部12a(12b)の状態を示す図である。
FIG. 4 is a diagram illustrating a synchronous pattern detection unit 1 according to the embodiment;
It is a figure showing a state of buffer part 12a (12b) at the time when 0a (10b) detects a PN pattern.

【図5】 従来の技術による相互同期装置51a,51
bの構成、及び、当該装置と端末装置2a,2bの接続
形態を表わすブロック図である。
FIG. 5 shows a conventional mutual synchronizer 51a, 51.
3b is a block diagram illustrating a configuration of the terminal device b and a connection form between the device and the terminal devices 2a and 2b.

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

1a,1b…相互同期装置、2a,2b…端末装置、3
a,3b…制御部、4a,4b…端末インターフェイス
部、5a,5b…データ発生部、6a,6b…データ受
信部、7a,7b…回線インターフェイス部、8a,8
b…同期用クロック部、9a,9b…同期パターン発生
部、10a,10b…同期パターン検出部、11a,1
1b…セレクタ、12a,12b…バッファ部、LC…
専用線
1a, 1b ... mutual synchronization device, 2a, 2b ... terminal device, 3
a, 3b control section, 4a, 4b terminal interface section, 5a, 5b data generation section, 6a, 6b data reception section, 7a, 7b line interface section, 8a, 8
b: synchronization clock section, 9a, 9b: synchronization pattern generation section, 10a, 10b: synchronization pattern detection section, 11a, 1
1b ... selector, 12a, 12b ... buffer part, LC ...
Dedicated line

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1の端末と該第1の端末の通信相手で
ある第2の端末の間で、専用線によりユーザデータ及び
制御情報を送受信して、これら端末間の通信を実現する
ための専用線端末装置間の相互同期方法であって、 前記第1〜第2の端末間で前記制御情報を送受信する前
後において、これら端末間で互いに同期パターンを授受
して相互同期をとる際に、 前記第1(又は第2)の端末側で、少なくとも前記同期
パターンを格納可能な容量を有する先入れ先出しのバッ
ファに、前記第2(又は第1)の端末から送られてくる
受信データを順次書き込んでゆくとともに、該受信デー
タに前記同期パターンが含まれるか否かを判定し、 前記同期パターンが前記受信データの中に含まれている
ことが検出された時点で、前記同期パターンの含まれる
前記バッファ上の固定領域をクリアするようにして、 前記同期パターンの除去された受信データを、前記バッ
ファを介して前記第1(又は第2)の端末へ送出するこ
とを特徴とする専用線端末装置間の相互同期方法。
An apparatus for transmitting and receiving user data and control information over a dedicated line between a first terminal and a second terminal that is a communication partner of the first terminal to realize communication between these terminals. A method for mutual synchronization between dedicated line terminal devices, wherein before and after transmitting and receiving the control information between the first and second terminals, when mutually synchronizing by giving and receiving a synchronization pattern between these terminals, The first (or second) terminal sequentially writes the received data sent from the second (or first) terminal into a first-in first-out buffer having a capacity capable of storing at least the synchronization pattern. It is determined whether or not the synchronization pattern is included in the received data. When the synchronization pattern is detected to be included in the reception data, the synchronization pattern is included. A dedicated line terminal for transmitting received data from which the synchronization pattern has been removed to the first (or second) terminal via the buffer so as to clear a fixed area on the buffer. Mutual synchronization method between devices.
【請求項2】 専用線と、該専用線を用いてユーザデー
タ及び制御情報を互いに送受信して通信する専用線端末
との間に配され、前記専用線端末とその相手端末との間
の相互同期を司る専用線端末装置間の相互同期装置であ
って、 前記専用線端末間で前記制御情報を送受信する前後でこ
れら端末間の相互同期をとるために授受される同期パタ
ーンを、前記相手端末側から送られてくる受信データの
中から検出するパターン検出手段と、 少なくとも前記同期パターンを格納可能な容量を有する
先入れ先出しのバッファと、 前記相手端末側からの受信データを前記バッファに順次
書き込んでゆくバッファ書込手段と、 前記パターン検出手段が前記同期パターンを検出した時
点で、前記同期パターンの含まれる前記バッファ上の固
定領域をクリアして、前記同期パターンの除去された受
信データを前記バッファから前記専用線端末へ送出する
制御手段とを具備することを特徴とする専用線端末装置
間の相互同期装置。
2. A dedicated line and a dedicated line terminal for transmitting and receiving user data and control information to and from each other by using the dedicated line, and communicating between the dedicated line terminal and its partner terminal. A mutual synchronizer between dedicated line terminal devices for controlling synchronization, wherein a synchronization pattern transmitted and received for mutual synchronization between these dedicated line terminals before and after the control information is transmitted and received between the dedicated line terminals, Pattern detection means for detecting from among the received data sent from the side, a first-in first-out buffer having at least a capacity capable of storing the synchronization pattern, and sequentially writing the received data from the partner terminal into the buffer. When the buffer writing unit detects the synchronization pattern, the fixed region on the buffer including the synchronization pattern is cleared when the pattern detection unit detects the synchronization pattern. Te, mutual device between dedicated line terminal apparatus characterized by comprising a control means for transmitting the received data that has been removed of the synchronization pattern from said buffer to said private line terminal.
【請求項3】 前記バッファは、少なくとも前記容量を
持つメモリと、該メモリの読み出し/書き込みアドレス
を保持するポインタとを有し、 前記制御手段は、前記ポインタが示すメモリの内容を読
み出して前記専用線端末へ送出し、 前記バッファ書込手段は、前記制御手段が前記ポインタ
が示すメモリの内容を読み出した後に、該ポインタが示
すメモリのアドレスに対して前記受信データを書き込む
ことを特徴とする請求項2記載の専用線端末装置間の相
互同期装置。
3. The buffer has at least a memory having the capacity, and a pointer for holding a read / write address of the memory. The control unit reads the contents of the memory indicated by the pointer to execute the exclusive operation. And sending the received data to the address of the memory indicated by the pointer after the control means reads the contents of the memory indicated by the pointer. Item 3. The mutual synchronization device between the leased line terminals according to Item 2.
JP8168047A 1996-06-27 1996-06-27 Mutual synchronization method and apparatus between leased line terminals Expired - Fee Related JP2824963B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8168047A JP2824963B2 (en) 1996-06-27 1996-06-27 Mutual synchronization method and apparatus between leased line terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8168047A JP2824963B2 (en) 1996-06-27 1996-06-27 Mutual synchronization method and apparatus between leased line terminals

Publications (2)

Publication Number Publication Date
JPH1013493A JPH1013493A (en) 1998-01-16
JP2824963B2 true JP2824963B2 (en) 1998-11-18

Family

ID=15860851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8168047A Expired - Fee Related JP2824963B2 (en) 1996-06-27 1996-06-27 Mutual synchronization method and apparatus between leased line terminals

Country Status (1)

Country Link
JP (1) JP2824963B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4588271B2 (en) * 2001-09-18 2010-11-24 富士通株式会社 Data synchronization system, data synchronization method, data center, and client terminal

Also Published As

Publication number Publication date
JPH1013493A (en) 1998-01-16

Similar Documents

Publication Publication Date Title
US4482999A (en) Method of transmitting information between stations attached to a _unidirectional transmission ring
US4566097A (en) Token ring with secondary transmit opportunities
US4071887A (en) Synchronous serial data adaptor
US4567590A (en) Message stripping protocol for a ring communication network
US4607364A (en) Multimode data communication system
US4635253A (en) Exchange system including plural terminals for voice and data transmission
JP2717112B2 (en) Dual port timing controller
CN116830520A (en) Communication device, communication system, and communication method
RU2142646C1 (en) Device for multiplexing/demultiplexing data of communication between processors in asynchronous transmission mode
JP2824963B2 (en) Mutual synchronization method and apparatus between leased line terminals
US6871241B2 (en) Interface apparatus, communication device including same, and communication method using same
JPS6142982B2 (en)
JPS63258140A (en) General purpose asynchronous receiver-transmitter
JP2828039B2 (en) Mutual synchronization method and apparatus between leased line terminals
CA2056827C (en) Modular communication system with allocatable bandwidth
JPS63266564A (en) Protocol data controller for bit
JP2001067299A (en) Interface controller and computer system
JPH0618373B2 (en) Data transmission method and device
JPS5917751A (en) Data communication system
KR100333713B1 (en) Apparatus for matching atm switch
EP0344915B1 (en) Apparatus and method for processing bit streams
KR100306475B1 (en) Cell Read Synchronouse Control Apparatus And Method In The ATM Exchange System
JPH0614649B2 (en) Terminal adapter having multiple HDLC communication channel receiver
SU1125617A1 (en) Device for interfacing computer to data transmission equipment
CN100486240C (en) Data packet multiplexing receiving controller and data receiving method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980804

LAPS Cancellation because of no payment of annual fees