JPH05219043A - Frame synchronous type data transfer system - Google Patents

Frame synchronous type data transfer system

Info

Publication number
JPH05219043A
JPH05219043A JP4042141A JP4214192A JPH05219043A JP H05219043 A JPH05219043 A JP H05219043A JP 4042141 A JP4042141 A JP 4042141A JP 4214192 A JP4214192 A JP 4214192A JP H05219043 A JPH05219043 A JP H05219043A
Authority
JP
Japan
Prior art keywords
word
frame
information
bits
addition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4042141A
Other languages
Japanese (ja)
Other versions
JP2699754B2 (en
Inventor
Choji Ogami
長次 小神
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP4042141A priority Critical patent/JP2699754B2/en
Publication of JPH05219043A publication Critical patent/JPH05219043A/en
Application granted granted Critical
Publication of JP2699754B2 publication Critical patent/JP2699754B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To easily structure and expand the system by adding individual number information on an opposite party at the head of a frame and a check sum word at the tail. CONSTITUTION:A transmission frame generating means adds the ID word 10 indicating the individual number of the transfer destination at the head of an information word 30, performs binary addition in word units from the ID word 10 to the tail information, and adds the low-order 8 bits of the addition result as the check sum word 20 behind the tail information word to constitute one frame. A reception frame synchronizing means performs sequential binary addition in word units from the 1st received word and judges that a received word which arrives next is the head of the frame when the value of the low-order 8 bits of the addition result at the point of time of the addition matches the word which is received next. When not, on the other hand, it is judged that the frame synchronism steps out, the 1st word of a reception frame which is expected next is shifted forward or backward, and this operation is repeated until they match each other.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はフレーム同期装置に係
り、とくに調歩同期式シリアルデータ転送におけるフレ
ーム同期装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frame synchronizer, and more particularly to a frame synchronizer in start-stop synchronous serial data transfer.

【0002】[0002]

【従来の技術】一般に、連続した複数ワードを1情報単
位(フレーム)とするシリアルデータ転送方式では、送
信された情報を正しく受信し復元するには受信側でフレ
ームの先頭を見つける必要がある。フレームの先頭を見
つける方式をフレーム同期方式と呼ぶ。
2. Description of the Related Art Generally, in a serial data transfer method in which a plurality of consecutive words are used as one information unit (frame), it is necessary for the receiving side to find the beginning of a frame in order to correctly receive and restore transmitted information. The method of finding the beginning of a frame is called the frame synchronization method.

【0003】従来例を図4ないし図6に示す。従来はフ
レーム同期のために特別のフレームワード40を決めて
図4に示されるように情報ワード30の先頭にそれを付
加し、これを1フレームとして図6に示されるように送
信先と接続されている伝送路に出力していた。フレーム
ワード40としては図5のフレームワードに示されるよ
うに「11111111」がよく用いられている。
A conventional example is shown in FIGS. Conventionally, a special frame word 40 is determined for frame synchronization, and it is added to the head of the information word 30 as shown in FIG. 4, and this is regarded as one frame and connected to the destination as shown in FIG. It was output to the transmission line. As the frame word 40, "11111111" is often used as shown in the frame word of FIG.

【0004】ここで、情報ワード30がフレームワード
40と一致することを防ぐために、図5の情報ワードに
示されるように情報ワードにおける1ワード中の1ビッ
トを情報内容に関係なく常に固定している。この従来例
では、フレームワード40が「11111111」であ
るため図5の情報ワードに示されるように8ビット目を
0に固定している。
Here, in order to prevent the information word 30 from being coincident with the frame word 40, one bit in one word of the information word is always fixed regardless of the information content as shown in the information word of FIG. There is. In this conventional example, since the frame word 40 is "11111111", the 8th bit is fixed to 0 as shown in the information word of FIG.

【0005】受信側では、フレームワード40すなわち
「11111111」を見つけることにより、フレーム
同期を実現していた。
On the receiving side, frame synchronization is realized by finding the frame word 40, that is, "11111111".

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来例においては、情報ワードにおける1ワード中の1ビ
ットを使用禁止にしているために、伝送効率が低下する
という不都合があった。
However, in the above-mentioned conventional example, since one bit in one word of the information word is prohibited from being used, there is a disadvantage that the transmission efficiency is lowered.

【0007】また、コンピュータ等で常用されている8
ビットを1ワードとする調歩同期方式では情報ワードが
7ビットに限定されるために、通常のコンピュータとの
整合性が悪くなるという問題点があった。
In addition, it is commonly used in computers 8
In the start-stop synchronization method in which the number of bits is 1 word, the information word is limited to 7 bits, and thus there is a problem that the compatibility with a normal computer is deteriorated.

【0008】さらに、転送相手を指定することができな
いために、複数の送信相手がある場合には図6に示され
るように転送相手の数だけ転送用の線路を必要とし、シ
ステムの構築や拡大を容易に行うことができないという
問題点があった。
Further, since it is not possible to specify a transfer partner, when there are a plurality of transfer partners, as many transfer lines as the transfer partners are required as shown in FIG. There was a problem that it could not be performed easily.

【0009】[0009]

【発明の目的】本発明の目的は、かかる従来例の有する
不都合を改善し、とくに調歩同期方式シリアル転送のフ
レーム同期方式において、伝送効率に優れ、システムの
構築や拡大を容易に行うことができるフレーム同期式デ
ータ転送方式を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to improve the inconvenience of the conventional example, and particularly in the frame synchronization method of the asynchronous transfer serial transfer, the transmission efficiency is excellent and the system can be easily constructed and expanded. It is to provide a frame synchronous data transfer system.

【0010】[0010]

【課題を解決するための手段】そこで、本発明では、デ
ィジタルデータ符号のNビットを1ワード単位に転送す
る調歩同期方式のシリアルデータ転送方式で、連続した
複数ワードを情報単位(フレーム)として扱うデータ転
送方式において、フレームの先頭に位置するワードに情
報を受取る相手の個別番号情報を与え、フレームの先頭
に位置するワードから最後に位置する情報ワードまでの
ワード単位での加算結果の下位Nビット(チェックサム
ワード)をフレームの最後に位置する情報ワードの次の
ワードの位置に付加して1フレームを構成するという構
成を採っている。これによって前述した目的を達成しよ
うとするものである。
In view of the above, in the present invention, a plurality of consecutive words are treated as information units (frames) in a start-stop synchronization serial data transfer system for transferring N bits of a digital data code in units of one word. In the data transfer method, the individual number information of the receiving party is given to the word located at the beginning of the frame, and the lower N bits of the addition result in word units from the word located at the beginning of the frame to the information word located at the end The (checksum word) is added to the position of the word next to the information word located at the end of the frame to form one frame. This aims to achieve the above-mentioned object.

【0011】[0011]

【作用】送信フレーム作成手段では情報ワードの先頭に
転送相手の個別番号を示すIDワードを付加し、さらに
そのIDワードから最後情報ワードまでを順次ワード単
位で2進加算し、例えばその加算結果の下位8ビットを
チェックサムワードとして最終情報ワードの後に付加し
1フレームの送信データを作成する。そしてこの1フレ
ームの送信データは先頭のIDワードからチェックサム
ワードまで1ワード毎に順次シリアルポートから伝送路
上に送信される。
In the transmission frame creating means, an ID word indicating the individual number of the transfer partner is added to the head of the information word, and further the ID word to the last information word are sequentially binary-added in word units. The lower 8 bits are added as a checksum word after the final information word to create one frame of transmission data. Then, the transmission data of one frame is sequentially transmitted word by word from the head ID word to the checksum word from the serial port on the transmission path.

【0012】受信フレーム同期手段では最初に受信した
ワードから順次ワード単位で2進加算していき、加算し
た時点の加算結果の下位8ビットの値と次に受信された
ワードを比較し、その比較結果が一致していれば次の受
信ワードがフレームの先頭であると判断するが、その比
較結果が一致していなければ、フレーム同期がはずれて
いると判断し、次に想定される受信フレームの第1ワー
ドを1ワード前あるいは後ろにずらして、再び受信ワー
ドを順次2進加算し、その結果の下位8ビットを続く受
信ワードと比較し、一致するまでこれを繰り返す。フレ
ーム同期が確立すると、先頭ワードをチェックし、自分
宛のデータであると判断するとこの受信フレームを取り
込むが、自分宛のデータでないと判断するとこの受信フ
レームを廃棄する。
In the reception frame synchronization means, the first received word is sequentially subjected to binary addition in word units, and the value of the lower 8 bits of the addition result at the time of addition is compared with the next received word, and the comparison is made. If the results match, the next received word is judged to be the beginning of the frame, but if the comparison results do not match, it is judged that the frame synchronization has been lost, and the next expected received frame The first word is shifted forward or backward by one word, and the received words are sequentially binary-added again, the lower 8 bits of the result are compared with the succeeding received words, and this is repeated until they match. When frame synchronization is established, the first word is checked, and if it is judged that the data is addressed to itself, this received frame is taken in, but if it is judged that it is not addressed to itself, this received frame is discarded.

【0013】[0013]

【発明の実施例】以下、本発明の一実施例を図1ないし
図3に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0014】情報ワード30の先頭に転送相手の個別番
号を示すIDワード10を付加するとともにこのIDワ
ード10から最後の情報ワードまでをワード単位で2進
加算しその加算結果の下位8ビットをチェックサムワー
ド20として最終情報ワードの後に付加して1フレーム
とする送信フレーム作成手段と、最初の受信ワードから
ワード単位で順次2進加算していき加算した時点の加算
結果の下位8ビットの値と次に受信されたワードの比較
結果が一致していれば次にくる受信ワードがフレームの
先頭であると判断し,比較結果が一致していなければフ
レーム同期がずれていると判断するとともに次に想定さ
れる受信フレームの第1ワードを1ワード前あるいは後
ろにずらして再びワードを2進加算しその結果の下位8
ビットを次の受信ワードと比較し一致するまでこれを繰
り返す受信フレーム同期手段とから構成される。
An ID word 10 indicating the individual number of the transfer partner is added to the beginning of the information word 30, and the ID word 10 to the last information word are binary-added in word units and the lower 8 bits of the addition result are checked. A transmission frame creating means that adds one frame after the final information word as a thumb word 20 and a value of the lower 8 bits of the addition result at the time when the binary addition is sequentially performed in word units from the first reception word. If the comparison result of the next received word matches, it is determined that the next received word is at the beginning of the frame, and if the comparison result does not match, it is determined that the frame synchronization is out of sync. The first word of the expected received frame is shifted forward or backward by one word, and the words are binary-added again.
It comprises a reception frame synchronization means for comparing the bit with the next reception word and repeating this until a match is found.

【0015】次に本実施例の動作について説明する。た
だし、ここでは情報ワード30はm個のワードから構成
されているとする。また、図3に示されるように装置A
と装置B(1)と装置B(2)と・・・・装置B(n)
が1本の伝送路で接続されており、ここでは一例として
装置Aから装置B(2)にデータを送信する場合につい
て説明する。
Next, the operation of this embodiment will be described. However, it is assumed here that the information word 30 is composed of m words. In addition, as shown in FIG.
And device B (1) and device B (2) ... device B (n)
Are connected by one transmission line, and here, as an example, a case where data is transmitted from the device A to the device B (2) will be described.

【0016】装置Aでは、送信フレーム作成手段にて図
1に示されるようにm個のワードから構成される情報ワ
ード30の先頭に転送相手すなわち装置B(2)の個別
番号を示すIDワード10を付加し、さらにIDワード
10から最後の情報ワードである第mワードまでを順次
ワード単位で2進加算し、その加算結果の下位8ビット
をチェックサムワード20として最終情報ワードすなわ
ち第mワードの後に付加し、このm+2個のワードを1
フレームとする。
In the device A, an ID word 10 indicating the individual number of the transfer partner, that is, the device B (2), is added to the head of the information word 30 composed of m words as shown in FIG. Is further added, and the ID word 10 to the last information word, ie, the mth word, are binary-added sequentially in word units, and the lower 8 bits of the addition result are used as a checksum word 20 for the final information word, that is, the mth word. Append later and add m + 2 words to 1
Let it be a frame.

【0017】また、ここでは図2に示されるように1ワ
ードは8ビットで構成されており、これに1ビットのス
タートビットが先頭に付加され、さらに1ビットのスト
ップビットが最後に付加されている。ただし、ストップ
ビットは1ビットに限定されるものではなく1.5ビッ
トや2ビットを付加してもよい。
Further, here, as shown in FIG. 2, one word is composed of 8 bits, to which a 1-bit start bit is added at the beginning and a 1-bit stop bit is added at the end. There is. However, the stop bit is not limited to 1 bit, and 1.5 bits or 2 bits may be added.

【0018】装置Aでは、送信フレーム作成手段にて1
フレームの送信データが作成されると、先頭のIDワー
ド10から1ワード毎にシリアルポートから図2に示さ
れるように伝送路上に送信される。
In the device A, the transmission frame creating means 1
When the transmission data of the frame is created, it is transmitted from the head ID word 10 word by word from the serial port on the transmission path as shown in FIG.

【0019】装置B(1)から装置B(n)では、伝送
路を介して信号を受信すると、受信フレーム同期手段に
て最初に受信したワードから順次ワード単位で2進加算
していき、m+1個の受信ワードを加算した時点の加算
結果の下位8ビットの値と次に受信されたワードの2進
符号値を比較し、その比較結果が一致していれば次の受
信ワードが次の受信フレームの先頭であると判断する。
もし、加算した時点の加算結果の下位8ビットの値と次
に受信されたワードの2進符号値を比較し、その比較結
果が一致していなければ、フレーム同期がずれていると
判断し、次に想定される受信フレームの第1ワードを1
ワード前あるいは後ろにずらして、再びm+1個の受信
ワードを順次2進加算し、その結果の下位8ビットをm
+1ワード目に続く受信ワードの2進符号値と比較し、
一致するまでこれを繰り返す。
In the devices B (1) to B (n), when a signal is received via the transmission path, the received frame synchronization means sequentially performs binary addition in word units from the first received word, m + 1. Number of received words are added, the lower 8 bits of the addition result is compared with the binary code value of the next received word, and if the comparison result is the same, the next received word is the next received word. Judge that it is the beginning of the frame.
If the value of the lower 8 bits of the addition result at the time of addition is compared with the binary code value of the word received next, and if the comparison result does not match, it is determined that the frame synchronization is shifted, 1 for the first word of the next expected received frame
The word is shifted forward or backward, and m + 1 received words are sequentially binary-added again, and the lower 8 bits of the result are added by m.
Compare with the binary code value of the received word following the + 1st word,
Repeat this until it matches.

【0020】フレーム同期が確立した後は、先頭ワード
をチェックし、装置B(2)では自分宛のデータである
と判断しこのフレームを取り込むが、装置B(1)と装
置B(3)と・・・・装置B(n)では、自分宛のデー
タでないと判断しこのフレームを廃棄する。
After the frame synchronization is established, the head word is checked, the device B (2) judges that the data is addressed to itself, and fetches this frame, but the device B (1) and the device B (3) The device B (n) determines that the data is not addressed to itself and discards this frame.

【0021】[0021]

【発明の効果】本発明は以上のように構成され機能する
ので、これによると、情報ワードに使用禁止ビットを設
ける必要がなくしかも転送相手を指定することができ、
これがため、伝送効率に優れ、しかも1本の伝送路で複
数の相手との通信ができるためシステムの構築や拡大を
容易に行うことが可能となるという従来にない優れたフ
レーム同期式データ転送方式を提供することができる。
Since the present invention is constructed and functions as described above, according to the present invention, it is not necessary to provide the use prohibition bit in the information word and the transfer partner can be designated.
For this reason, it has excellent transmission efficiency, and since it is possible to communicate with a plurality of other parties through a single transmission path, it is possible to easily construct and expand the system, which is an unprecedented excellent frame synchronous data transfer method. Can be provided.

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

【図1】本発明の一実施例を示すフレーム構成図であ
る。
FIG. 1 is a frame configuration diagram showing an embodiment of the present invention.

【図2】図1中の1ワードの例を示す説明図である。FIG. 2 is an explanatory diagram showing an example of one word in FIG.

【図3】本発明における装置構成の一例を示す説明図で
ある。
FIG. 3 is an explanatory diagram showing an example of a device configuration according to the present invention.

【図4ないし図5】従来例を示すフレーム構成図であ
る。
4 to 5 are frame configuration diagrams showing a conventional example.

【図6】従来例における装置構成を説明するための説明
図である。
FIG. 6 is an explanatory diagram for explaining a device configuration in a conventional example.

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

10:IDワード 20:チェックサムワード 30:情報ワード 10: ID word 20: Checksum word 30: Information word

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ディジタルデータ符号のNビットを1ワ
ード単位に転送する調歩同期方式のシリアルデータ転送
方式で、連続した複数ワードを情報単位(フレーム)と
して扱うデータ転送方式において、フレームの先頭に位
置するワードに情報を受取る相手の個別番号情報を与
え、フレームの先頭に位置するワードから最後に位置す
る情報ワードまでのワード単位での加算結果の下位Nビ
ット(チェックサムワード)をフレームの最後に位置す
る情報ワードの次のワードの位置に付加して1フレーム
を構成することを特徴とするフレーム同期式データ転送
方式。
1. A start point of a frame in a data transfer method in which a plurality of consecutive words are handled as an information unit (frame) in a start-stop synchronization serial data transfer method for transferring N bits of a digital data code in 1-word units. The individual number information of the other party receiving the information is given to the word, and the lower N bits (checksum word) of the addition result in word units from the word located at the beginning of the frame to the information word located at the end are added to the end of the frame. A frame-synchronous data transfer system characterized in that one frame is formed by adding it to the position of the next word of the positioned information word.
【請求項2】 情報ワードの先頭に転送相手の個別番号
を示すIDワードを付加するとともにこのIDワードか
ら最後の情報ワードまでをワード単位で2進加算しその
加算結果の下位8ビットをチェックサムワードとして最
終情報ワードの後に付加して1フレームとする送信フレ
ーム作成手段を設け、最初の受信ワードからワード単位
で順次2進加算していき加算した時点の加算結果の下位
8ビットの値と次の受信ワードとが一致していれば次に
くるワードがフレームの先頭であると判断し,一致して
いなければフレーム同期がずれていると判断するととも
に次に想定される受信フレームの第1ワードを1ワード
分前後にずらして再び2進加算しその結果の下位8ビッ
トを次の受信ワードと一致するまでこれを繰り返すこと
により受信フレームの同期をとるようにしたことを特徴
とするフレーム同期式データ転送方式。
2. An ID word indicating the individual number of the transfer partner is added to the beginning of the information word, and the ID word to the last information word are binary-added in word units, and the lower 8 bits of the addition result are a checksum. A transmission frame creating means for adding one frame as a word after the final information word is provided, and binary addition is sequentially performed word by word from the first received word and the value of the lower 8 bits of the addition result at the time of addition and the next If it does not match, the next word is judged to be the beginning of the frame, and if it does not match, it is judged that the frame synchronization has shifted and the first word of the next expected received frame. Is shifted forward or backward by one word, and binary addition is performed again, and the lower 8 bits of the result are repeated until they match the next received word. A frame-synchronous data transfer method characterized in that the above are synchronized.
JP4042141A 1992-01-31 1992-01-31 Frame synchronous data transfer system Expired - Lifetime JP2699754B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4042141A JP2699754B2 (en) 1992-01-31 1992-01-31 Frame synchronous data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4042141A JP2699754B2 (en) 1992-01-31 1992-01-31 Frame synchronous data transfer system

Publications (2)

Publication Number Publication Date
JPH05219043A true JPH05219043A (en) 1993-08-27
JP2699754B2 JP2699754B2 (en) 1998-01-19

Family

ID=12627668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4042141A Expired - Lifetime JP2699754B2 (en) 1992-01-31 1992-01-31 Frame synchronous data transfer system

Country Status (1)

Country Link
JP (1) JP2699754B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011515702A (en) * 2008-03-26 2011-05-19 エンフェイズ エナジー インコーポレイテッド AC voltage measuring method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011515702A (en) * 2008-03-26 2011-05-19 エンフェイズ エナジー インコーポレイテッド AC voltage measuring method and apparatus
US9279832B2 (en) 2008-03-26 2016-03-08 Enphase Energy, Inc. Method and apparatus for measuring AC voltages

Also Published As

Publication number Publication date
JP2699754B2 (en) 1998-01-19

Similar Documents

Publication Publication Date Title
US5072449A (en) Packet framing using cyclic redundancy checking
US5128945A (en) Packet framing using cyclic redundancy checking
US6192498B1 (en) System and method for generating error checking data in a communications system
JP2732759B2 (en) Frame synchronization control method
US7630399B2 (en) Apparatus and method for recognizing frame check sequence in generic framing procedure encapsulation mode
JP3465227B2 (en) Telephone terminal device
JPH02226943A (en) System for analyzing and processing high level data link control sequence frame
JPH05219043A (en) Frame synchronous type data transfer system
US6041434A (en) Code generator for selectively producing cyclic redundancy check data codes different in data length
US4709227A (en) Method and device for inserting a digital signal in a channel with higher flow rate
EP0299265A2 (en) Receiver synchronization in encoder/decoder
JP2967748B2 (en) ATM cell synchronization circuit
JPH0142177B2 (en)
JPH02262747A (en) Data communication system
US6714540B1 (en) Data communication method, communication frame generating method, and medium on which program for carrying out the methods are recorded
JPH0563690A (en) Frame synchronization system serial data transfer method
JPS63209336A (en) Time division multiplex packet communication system
JP2001515305A (en) Method and communication system for synchronizing two devices to one predetermined data transmission method
JPS58133066A (en) Multiplexing method of loop communication system
JP3652591B2 (en) Data transmission control method and data transmission system
JPH03258132A (en) Communication terminal equipment
Coleman Architecture for a demonstration radar-communication link
JPH11168458A (en) Synchronizing flag extraction method, multiplex transmission method, and byte synchronization transmission method
JP2991146B2 (en) Synchronous frame detection method
JP2002176417A (en) Data transmission system

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: 19970826