JPH0918513A - Data communication method - Google Patents

Data communication method

Info

Publication number
JPH0918513A
JPH0918513A JP16393095A JP16393095A JPH0918513A JP H0918513 A JPH0918513 A JP H0918513A JP 16393095 A JP16393095 A JP 16393095A JP 16393095 A JP16393095 A JP 16393095A JP H0918513 A JPH0918513 A JP H0918513A
Authority
JP
Japan
Prior art keywords
data
synchronization
character
bit
stop
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
JP16393095A
Other languages
Japanese (ja)
Other versions
JP3176024B2 (en
Inventor
Masakazu Ohashi
正和 大橋
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP16393095A priority Critical patent/JP3176024B2/en
Publication of JPH0918513A publication Critical patent/JPH0918513A/en
Application granted granted Critical
Publication of JP3176024B2 publication Critical patent/JP3176024B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To provide a data communication method which enables a communication device, which has only a bit synchronizing circuit, to send and receive asynchronous and character-synchronous data. CONSTITUTION: This method includes a step wherein a dummy frame 405 of dummy bit synchronism is added to the head of asynchronous or character- synchronous data on a transmission side and the data are transmitted, a step wherein the dummy frame 405 of bit synchronism is detected on a reception side, and a step wherein when the dummy frame 405 of bit synchronism is detected, bit-synchronous data in a following idle period 408 are received as asynchronous data or character-synchronous data 406.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はローカルエリア・ネッ
トワークからワイドエリア・ネットワークまでのあらゆ
る通信システムに関し、特に電子手帳、パソコン、ワー
クステーション、オフィスプロセッサ、大型コンピュー
タ、POS(Point Of Sales)、ECR(Electronic C
ash Register)、シーケンサなどに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to all communication systems from a local area network to a wide area network, and more particularly to electronic notebooks, personal computers, workstations, office processors, large computers, POS (Point Of Sales), ECR ( Electronic C
ash Register), sequencer, etc.

【0002】[0002]

【従来の技術】従来のキャラクタ同期方式の通信とビッ
ト同期方式の通信を1つのデータ通信装置によって行な
う通信方法としては、たとえば特開昭62−36935
号公報に示されているものがある。この公報に示された
ものは、キャラクタ同期回路とフレーム同期回路とを両
方持つ装置において、同期コード検出回路と同期方式指
示レジスタを具備させ、同期コード検出回路により受信
信号から相手装置がいずれの同期方式により送信したか
を判別して同期方式指示レジスタにより、対応する同期
方式の受信回路に自動切換を行なうものであった。
2. Description of the Related Art As a communication method for performing conventional character synchronous communication and bit synchronous communication by a single data communication device, for example, Japanese Patent Laid-Open No. 62-36935 is known.
Is disclosed in Japanese Patent Publication No. What is disclosed in this publication is a device having both a character synchronizing circuit and a frame synchronizing circuit, which is equipped with a synchronizing code detecting circuit and a synchronizing method instruction register, and the synchronizing code detecting circuit allows the partner device to determine which one of the synchronizing signals is received. According to the method, it is determined whether or not the signal is transmitted, and the synchronous method instruction register automatically switches to the corresponding synchronous method receiving circuit.

【0003】[0003]

【発明が解決しようとする課題】上述したように従来の
キャラクタ同期方式の通信とビット同期方式の通信とを
1つのデータ通信装置によって行なう通信方法において
は、キャラクタ同期回路とビット同期回路との双方が必
要となるという問題があった。
As described above, in the communication method in which the conventional character synchronization type communication and bit synchronization type communication are performed by one data communication device, both the character synchronization circuit and the bit synchronization circuit are used. There was a problem that was required.

【0004】それゆえに請求項1に記載のデータ通信方
法は、ビット同期回路(フレーム同期回路と同義)のみ
を有する通信装置であってもビット同期の通信データの
みならず調歩同期およびキャラクタ同期の通信データも
高速に送受信することができるデータ通信方法を提供す
ることを目的とする。
Therefore, in the data communication method according to the first aspect, even a communication device having only a bit synchronization circuit (synonymous with a frame synchronization circuit) transmits not only bit synchronization communication data but also start / stop synchronization and character synchronization communication. An object of the present invention is to provide a data communication method capable of transmitting and receiving data at high speed.

【0005】請求項2に記載のデータ通信方法は、請求
項1に記載のデータ通信方法において、アイドル区間に
おけるビット同期のデータを調歩同期のデータまたはキ
ャラクタ同期のデータとして受信したときに、調歩同期
のデータまたはキャラクタ同期のデータのパケットの終
りを知ることができるデータ通信方法を提供することを
目的とする。
A data communication method according to a second aspect is the data communication method according to the first aspect, wherein when the data of bit synchronization in the idle section is received as data of start-stop synchronization or data of character synchronization, start-stop synchronization is performed. It is an object of the present invention to provide a data communication method capable of knowing the end of a packet of data of a character or data of character synchronization.

【0006】請求項3に記載のデータ通信方法は、請求
項1に記載のデータ通信方法において、アイドル区間に
おけるビット同期のデータを調歩同期のデータとして受
信した場合に、調歩同期では各データがスタートビット
から始まるけれども、これを除去することにより、ビッ
ト同期として受信したデータから調歩同期のデータを簡
単に解読できるデータ通信方法を提供することを目的と
する。
According to a third aspect of the data communication method of the present invention, in the data communication method of the first aspect, when bit synchronization data in an idle section is received as start-stop synchronization data, each data starts in start-stop synchronization. It is an object of the present invention to provide a data communication method that can easily decode the start-stop synchronization data from the data received as the bit synchronization by starting the bit but removing it.

【0007】請求項4に記載のデータ通信方法は、請求
項1に記載のデータ通信方法において、アイドル区間に
おけるビット同期のデータを調歩同期のデータまたはキ
ャラクタ同期のデータとして受信した場合に、受信した
ビット同期のデータのキャラクタ長が、調歩同期のキャ
ラクタ長またはキャラクタ同期のキャラクタ長と異なる
場合でも、受信した調歩同期のデータまたはキャラクタ
同期のデータを簡単に解読できるデータ通信方法を提供
することを目的とする。
According to a fourth aspect of the present invention, in the data communication method according to the first aspect, the bit synchronization data in the idle section is received when it is received as start-stop synchronization data or character synchronization data. An object of the present invention is to provide a data communication method capable of easily decoding received start-stop synchronization data or character-synchronization data even if the character length of bit-synchronization data is different from the start-stop synchronization character length or the character synchronization character length. And

【0008】請求項5に記載のデータ通信方法は、請求
項4に記載のデータ通信方法において、アイドル区間に
おけるビット同期のデータを調歩同期のデータとして受
信した場合に、調歩同期のデータとして受信したビット
同期のデータのキャラクタ長が調歩同期のキャラクタ長
と異なる場合でも、スタートビットの検出を行なうこと
により、受信した調歩同期のデータを簡単に解読できる
データ通信方法を提供することを目的とする。
According to a fifth aspect of the data communication method of the present invention, in the data communication method of the fourth aspect, when bit synchronization data in the idle section is received as start / stop synchronization data, it is received as start / stop synchronization data. An object of the present invention is to provide a data communication method capable of easily decoding received start-stop synchronization data by detecting a start bit even when the character length of the bit-start synchronization data is different from the start-stop synchronization character length.

【0009】請求項6に記載のデータ通信方法は、請求
項4に記載のデータ通信方法において、アイドル区間に
おけるビット同期のデータを調歩同期のデータとして受
信した場合に調歩同期のデータとして受信したビット同
期のデータのキャラクタ長が調歩同期のキャラクタ長と
異なる場合でも、同期キャラクタの検出を行なうことに
より、受信したキャラクタ同期のデータを簡単に解読で
きるデータ通信方法を提供することを目的とする。
According to a sixth aspect of the data communication method of the present invention, in the data communication method according to the fourth aspect, the bit received as the start / stop synchronization data when the bit synchronization data in the idle section is received as the start / stop synchronization data. An object of the present invention is to provide a data communication method capable of easily decoding received character-synchronized data by detecting a synchronous character even when the character length of the synchronized data is different from the character length of the start-stop synchronization.

【0010】[0010]

【課題を解決するための手段】本願の請求項1に記載の
データ通信方法は、ビット同期回路のみを有する通信装
置で調歩同期またはキャラクタ同期の通信データを送受
信する通信方法であって、送信側において、調歩同期の
データまたはキャラクタ同期のデータの先頭にダミーの
ビット同期のパケットを付加して送信するステップと、
受信側において、ビット同期のパケットを検出するステ
ップと、ビット同期のパケットを検出したときには以降
のアイドル区間におけるビット同期のデータを調歩同期
のデータまたはキャラクタ同期のデータとして受信する
ステップとを含むことを特徴とする。
A data communication method according to claim 1 of the present application is a communication method for transmitting and receiving communication data of start-stop synchronization or character synchronization by a communication device having only a bit synchronization circuit, In the step of adding a packet of dummy bit synchronization to the beginning of the data of start-stop synchronization or the data of character synchronization,
The receiving side includes a step of detecting a bit synchronization packet, and a step of receiving the bit synchronization data in the idle period thereafter when the bit synchronization packet is detected as start-stop synchronization data or character synchronization data. Characterize.

【0011】請求項2に記載のデータ通信方法は請求項
1に記載のデータ通信方法であって、送信側において、
調歩同期のデータまたはキャラクタ同期のデータの後に
もダミーのビット同期のパケットを付加して送信するス
テップと、受信側において、前記調歩同期のデータまた
はキャラクタ同期のデータの後に付加された前記ダミー
のビット同期のパケットを検出し、前記調歩同期のデー
タまたはキャラクタ同期のデータの終端を判別するステ
ップとをさらに含むことを特徴とする。
A data communication method according to a second aspect is the data communication method according to the first aspect, in which the transmitting side
A step of adding and transmitting a dummy bit synchronization packet also after the start-stop synchronization data or the character synchronization data; and the dummy bit added after the start-stop synchronization data or the character synchronization data at the receiving side A step of detecting a synchronization packet and determining the end of the start-stop synchronization data or the character synchronization data.

【0012】請求項3に記載のデータ通信方法は請求項
1に記載のデータ通信方法であって、調歩同期の通信デ
ータを送受信するときの送信側において、前記ダミーの
ビット同期のパケットと前記調歩同期のデータとの間
に、((ビット同期のキャラクタ長)−1)ビットのダ
ミーデータを付加して送信するステップと、調歩同期の
通信データを送受信するときの受信側において、前記
((ビット同期のキャラクタ長)−1)ビットのダミー
データおよびその後に続く調歩同期のスタートビットに
相当するデータ以降のビット同期のデータを調歩同期の
データとして受信するステップとをさらに含むことを特
徴とする。
A data communication method according to a third aspect is the data communication method according to the first aspect, wherein the dummy bit synchronization packet and the start-stop packet are transmitted and received on the transmitting side when transmitting / receiving start-stop synchronization communication data. A step of adding ((character length of bit synchronization) -1) bits of dummy data to the synchronization data and transmitting, and a step of transmitting the transmission / reception of the start / stop synchronization on the receiving side ((bit (Character length of synchronization) -1) receiving dummy data of 1 bit and data of bit synchronization subsequent to the data corresponding to a start bit of start-up synchronization that follows thereafter as data of start-stop synchronization.

【0013】請求項4に記載のデータ通信方法は、請求
項1に記載のデータ通信方法であって、受信側におい
て、調歩同期のデータまたはキャラクタ同期のデータと
して受信したビット同期のデータのキャラクタ長が、調
歩同期のキャラクタ長またはキャラクタ同期のキャラク
タ長と異なるときは、ビット同期の各受信データをビッ
ト単位で分解/合成することにより、前記調歩同期のキ
ャラクタ長またはキャラクタ同期のキャラクタ長と等し
い所定のキャラクタ長のキャラクタに再構成するステッ
プとをさらに含むことを特徴とする。
A data communication method according to a fourth aspect is the data communication method according to the first aspect, wherein the character length of the bit-synchronized data received as start-stop synchronization data or character-synchronization data on the receiving side. Is different from the character length of the start-stop synchronization or the character length of the character synchronization, each received data of the bit synchronization is decomposed / combined in a bit unit to obtain a predetermined value equal to the character length of the start-stop synchronization or the character length of the character synchronization. Reconstructing into a character having a character length of.

【0014】請求項5に記載のデータ通信方法は、請求
項4に記載のデータ通信方法であって、調歩同期の通信
データを送受信するときの受信側において、ビット同期
の各受信データをビット単位で分解/合成することによ
り、調歩同期のキャラクタ長と等しい所定のキャラクタ
長の調歩同期のキャラクタに再構成し、調歩同期のデー
タのスタートビットを検出した後、調歩同期のデータを
解読するステップとをさらに含むことを特徴とする。
A data communication method according to a fifth aspect is the data communication method according to the fourth aspect, wherein each reception data of the bit synchronization is transmitted in bit units on the receiving side when transmitting / receiving the start / stop synchronization communication data. By reconstructing into a character of start / stop synchronization having a predetermined character length equal to the character length of start / stop synchronization by detecting the start bit of start / stop synchronization data, and then decoding the start / stop synchronization data. Is further included.

【0015】請求項6に記載のデータ通信方法は、請求
項4に記載のデータ通信方法であって、キャラクタ同期
の通信データを送受信するときの受信側において、ビッ
ト同期の各受信データをビット単位で分解/合成するこ
とにより、キャラクタ同期のキャラクタ長と等しい所定
のキャラクタ長のキャラクタ同期のキャラクタに再構成
し、キャラクタ同期のデータの同期キャラクタを検出し
た後、キャラクタ同期のデータを解読するステップとを
さらに含むことを特徴とする。
A data communication method according to a sixth aspect is the data communication method according to the fourth aspect, wherein each of the bit-synchronized received data is transmitted in bit units on the receiving side when transmitting / receiving character-synchronized communication data. By reconstructing into a character-synchronized character having a predetermined character length equal to the character-synchronized character length by decomposing / combining with, and detecting a character-synchronous data synchronous character, and then decoding the character-synchronous data. Is further included.

【0016】[0016]

【作用】請求項1に記載のデータ通信方法においては、
送信側において、調歩同期またはキャラクタ同期のデー
タの先頭にダミーのビット同期のパケットを付加し、受
信側において、ビット同期のパケットを検出し、ビット
同期のパケットを検出したときには以降のアイドル区間
におけるビット同期のデータを調歩同期のデータまたは
キャラクタ同期のデータとして受信する。
In the data communication method according to claim 1,
On the sending side, a dummy bit-sync packet is added to the beginning of the start-stop synchronization or character-sync data, and on the receiving side, a bit-sync packet is detected. When a bit-sync packet is detected, the bits in the subsequent idle intervals are detected. The synchronization data is received as start-stop synchronization data or character synchronization data.

【0017】したがってビット同期の回路のみを有する
通信装置で、ビット同期の通信データのみならず、調歩
同期およびキャラクタ同期の通信データも高速に送受信
することができる。
Therefore, the communication device having only the bit synchronization circuit can transmit and receive not only the bit synchronization communication data but also the start-stop synchronization and character synchronization communication data at high speed.

【0018】請求項2に記載のデータ通信方法において
は、請求項1に記載の発明の作用に加え、送信側におい
て、調歩同期またはキャラクタ同期のデータの後にもダ
ミーのビット同期のパケットを付加し、受信側におい
て、調歩同期のデータまたはキャラクタ同期のデータの
後に付加されたダミーのビット同期のパケットを検出
し、調歩同期のデータまたはキャラクタ同期のデータの
終端を判別する。
In the data communication method described in claim 2, in addition to the operation of the invention described in claim 1, a dummy bit synchronization packet is added after the start-stop synchronization or character synchronization data on the transmitting side. At the receiving side, a dummy bit synchronization packet added after the start-stop synchronization data or the character synchronization data is detected to determine the end of the start-stop synchronization data or the character synchronization data.

【0019】したがって請求項1においてアイドル区間
におけるビット同期のデータを調歩同期のデータまたは
キャラクタ同期のデータとして受信した場合に、調歩同
期のデータまたはキャラクタ同期のデータのパケットの
終りを知ることができる。
Therefore, when the bit synchronization data in the idle section is received as the start-stop synchronization data or the character synchronization data, it is possible to know the end of the packet of the start-stop synchronization data or the character synchronization data.

【0020】請求項3に記載のデータ通信方法において
は、請求項1に記載の発明の作用に加え、調歩同期の通
信データを送受信するときの送信側において、ダミーの
ビット同期のパケットと前記調歩同期のデータとの間に
((ビット同期のキャラクタ長)−1)ビットのダミー
データを付加して送信し、受信側において、((ビット
同期のキャラクタ長)−1)ビットのダミーデータおよ
びその後に続く調歩同期のスタートビットに相当するデ
ータとが読み捨てられ、以降のビット同期のデータを調
歩同期のデータとして受信する。
In the data communication method according to a third aspect of the present invention, in addition to the operation of the first aspect of the present invention, a dummy bit synchronization packet and the start-stop packet are transmitted and received on the transmitting side when transmitting / receiving start-stop synchronization communication data. ((Bit synchronization character length) -1) bits of dummy data are added to the synchronization data and transmitted, and at the reception side, ((bit synchronization character length) -1) bits of dummy data and The data corresponding to the start bit of the start-stop synchronization and the following are discarded, and the data of the subsequent bit synchronization is received as the start-stop synchronization data.

【0021】したがって請求項1においてアイドル区間
におけるビット同期のデータを調歩同期のデータとして
受信した場合に、調歩同期では各データがスタートビッ
トから始まるので、これを除去することによってビット
同期として受信したデータから調歩同期のデータを簡単
に解読することができる。
Therefore, when the data of bit synchronization in the idle section is received as the data of the start / stop synchronization in claim 1, since each data starts from the start bit in the start / stop synchronization, the data received as the bit synchronization is removed by removing the start bit. It is possible to easily decipher the start-stop synchronization data.

【0022】請求項4に記載のデータ通信方法において
は、請求項1に記載の発明の作用に加え、受信側におい
て、調歩同期のデータまたはキャラクタ同期のデータと
して受信したビット同期のデータのキャラクタ長が、調
歩同期のキャラクタ長またはキャラクタ同期のキャラク
タ長と異なるときは、各受信データをビット単位で分解
/合成することによりビット同期のデータを調歩同期の
キャラクタ長またはキャラクタ同期のキャラクタ長と等
しい所定のキャラクタ長に再構成する。
In the data communication method described in claim 4, in addition to the operation of the invention described in claim 1, the character length of the bit synchronization data received as start-stop synchronization data or character synchronization data on the receiving side. Is different from the character length of the start-stop synchronization or the character length of the character synchronization, each received data is decomposed / combined bit by bit to make the bit-synchronized data equal to the character length of the start-stop synchronization or the character length of the character synchronization. To the character length of.

【0023】したがって請求項1において、アイドル区
間におけるビット同期のデータを調歩同期のデータまた
はキャラクタ同期のデータとして受信した場合に、調歩
同期のデータまたはキャラクタ同期のデータとして受信
したビット同期のデータのキャラクタ長が、調歩同期の
キャラクタ長またはキャラクタ同期のキャラクタ長と異
なる場合でも、受信した調歩同期のデータまたはキャラ
クタ同期のデータを簡単に解読することができる。
Therefore, when the bit synchronization data in the idle section is received as start / stop synchronization data or character synchronization data, the character of the bit synchronization data received as start / stop synchronization data or character synchronization data. Even when the length is different from the character length in the start-stop synchronization or the character length in the character-sync, the received start-stop synchronization data or the character-sync data can be easily decoded.

【0024】請求項5に記載のデータ通信方法において
は、請求項4に記載の発明の作用に加え、調歩同期の通
信データを送受信するときの受信側において、各受信デ
ータをビット単位で分解/合成することにより調歩同期
のキャラクタ長と等しい所定のキャラクタ長の調歩同期
のキャラクタに再構成し、調歩同期のデータのスタート
ビットを検出した後、調歩同期のデータを解読する。
In the data communication method according to the fifth aspect, in addition to the effect of the invention according to the fourth aspect, each reception data is decomposed / bit by bit on the reception side when transmitting / receiving start / stop synchronization communication data. By synthesizing, the data is reconstructed into a start-stop synchronization character having a predetermined character length equal to the start-stop synchronization character length, the start bit of the start-stop synchronization data is detected, and then the start-stop synchronization data is decoded.

【0025】したがって請求項4においてアイドル区間
におけるビット同期のデータを調歩同期のデータとして
受信した場合に、調歩同期のデータとして受信したビッ
ト同期のデータのキャラクタ長が調歩同期のキャラクタ
長と異なる場合でも、スタートビットの検出を行なうこ
とにより受信した調歩同期のデータを簡単に解読するこ
とができる。
Therefore, even when the bit synchronization data in the idle section is received as the start / stop synchronization data, the bit length of the bit synchronization data received as the start / stop synchronization data is different from the start / stop synchronization character length. By detecting the start bit, the received start-stop synchronization data can be easily decoded.

【0026】請求項6に記載のデータ通信方法において
は、請求項4に記載の発明の作用に加え、キャラクタ同
期の通信データを送受信するときの受信側において、各
受信データをビット単位で分解/合成することによりキ
ャラクタ同期のキャラクタ長と等しい所定のキャラクタ
長のキャラクタ同期のキャラクタに再構成し、キャラク
タ同期のデータの同期キャラクタを検出した後、キャラ
クタ同期のデータを解読する。
In the data communication method according to the sixth aspect, in addition to the operation of the invention according to the fourth aspect, each reception data is decomposed / bit by bit on the receiving side when transmitting / receiving character synchronization communication data. By synthesizing, it is reconstructed into a character-synchronized character having a predetermined character length equal to the character-synchronized character length, and after detecting the synchronous character of the character-synchronized data, the character-synchronized data is decoded.

【0027】したがって請求項4においてアイドル区間
におけるビット同期のデータをキャラクタ同期のデータ
として受信した場合に、キャラクタ同期のデータとして
受信したビット同期のデータのキャラクタ長がキャラク
タ同期のキャラクタ長と異なる場合でも、同期キャラク
タの検出を行なうことにより受信したキャラクタ同期の
データを簡単に解読することができる。
Therefore, when the bit synchronization data in the idle section is received as the character synchronization data in claim 4, even if the character length of the bit synchronization data received as the character synchronization data is different from the character synchronization character length. , The received character synchronization data can be easily decoded by detecting the synchronization character.

【0028】[0028]

【実施例】以下この発明の実施例を図面を参照しながら
詳細に説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

【0029】[第1の実施例]請求項1の実施例を図
1、図2、図3、図4および図10で説明する。
[First Embodiment] An embodiment of claim 1 will be described with reference to FIGS. 1, 2, 3, 4, and 10.

【0030】まず図10で、装置1001は、制御装置
1002と、それに接続される記憶装置1003と、一
時記憶装置1004と、入力装置1005と、出力装置
1006と、送信装置1007と、受信装置1008
と、この送信装置1007と受信装置1008に接続さ
れる回線インタフェース1009とを含む。そして回線
インタフェース1009は回線1014に接続される。
First, in FIG. 10, a device 1001 includes a control device 1002, a storage device 1003 connected thereto, a temporary storage device 1004, an input device 1005, an output device 1006, a transmission device 1007, and a reception device 1008.
And a line interface 1009 connected to the transmitter 1007 and the receiver 1008. The line interface 1009 is connected to the line 1014.

【0031】まず、送信時には、制御装置1002は、
入力装置1005から入力された情報、または記憶装置
1003もしくは一時記憶装置1004に記録されてい
る情報を、そのまま、あるいは変換して送信データとし
て送信装置1007から回線インタフェース1009を
経由して回線1014へ送出する。このとき制御装置1
002は、入力装置1005からの指示または記憶装置
1003もしくは一時記憶装置1004に記録されてい
る手順によって、場合によっては一時記憶装置1004
を作業場所として動作する。
First, at the time of transmission, the control device 1002
The information input from the input device 1005 or the information recorded in the storage device 1003 or the temporary storage device 1004 is sent as it is or after being converted as transmission data from the transmission device 1007 to the line 1014 via the line interface 1009. To do. At this time, the control device 1
002 is a temporary storage device 1004 depending on an instruction from the input device 1005 or a procedure recorded in the storage device 1003 or the temporary storage device 1004.
Work as a working place.

【0032】次に受信時には、制御装置1002は、回
線1014からのデータを、回線インタフェース100
9を経由して受信装置1008からそのままあるいは変
換して、一時記憶装置1004に記録し、あるいは出力
装置1006に出力し、あるいはこれらの情報をもとに
して何らかの動作を行なう。このとき制御装置1002
は、入力装置1005からの指示、または記憶装置10
03もしくは一時記憶装置1004に記録されている指
示により、一時記憶装置1003または一時記憶装置1
004に記録されている手順によって、場合によっては
一時記憶装置1004を作業場所として上記の記録、出
力、または動作を行なう。
Next, at the time of reception, the control device 1002 transfers the data from the line 1014 to the line interface 100.
The data is directly or converted from the receiving device 1008 via 9 and recorded in the temporary storage device 1004 or output to the output device 1006, or some operation is performed based on these information. At this time, the control device 1002
Is an instruction from the input device 1005 or the storage device 10
03 or the instruction recorded in the temporary storage device 1004, the temporary storage device 1003 or the temporary storage device 1
Depending on the procedure recorded in 004, the above-described recording, output, or operation is performed using the temporary storage device 1004 as a work place in some cases.

【0033】上記のような装置において、まず調歩同
期、キャラクタ同期、ビット同期の各データについて、
図1で説明する。調歩同期101の場合は、各データ1
10は1ビットの“0”のスタート・ビット104で始
まり、1ビット以上の“1”のストップ・ビット108
で終る。両ビット間には、LSB(最下位ビット)10
5で始まりMSB(最上位ビット)106で終るデータ
・ビット109と、1ビットのパリティビット107と
がある。パリティ・ビット107はない場合もある。そ
して送信時には送信装置1007がデータ・ビット10
9にスタート・ビット104とストップ・ビット108
とパリティ・ビット107とを付加して送信データと
し、受信時には受信装置1008が受信データからスタ
ート・ビット104とストップ・ビット108とパリテ
ィ・ビット107とを削除してデータ・ビット109と
する。
In the above device, first, for each data of start-stop synchronization, character synchronization and bit synchronization,
This will be described with reference to FIG. In the case of start / stop synchronization 101, each data 1
10 starts with a 1-bit “0” start bit 104 and a 1-bit or more “1” stop bit 108.
Ends with. Between both bits, LSB (least significant bit) 10
There is a data bit 109 starting at 5 and ending at the MSB (most significant bit) 106, and one parity bit 107. The parity bit 107 may not be present. At the time of transmission, the transmitting device 1007 transmits the data bit 10
9 start bit 104 and stop bit 108
And the parity bit 107 are added to form transmission data, and the receiving device 1008 deletes the start bit 104, the stop bit 108, and the parity bit 107 from the reception data to form the data bit 109 when receiving.

【0034】キャラクタ同期102の場合は、各データ
114、115、116、117はLSB110で始ま
りMSB111で終るデータ・ビット113と、1ビッ
トのパリティ・ビット112とを含む。パリティ・ビッ
ト112はない場合もある。事前に決められたパターン
である1キャラクタまたは2キャラクタ以上のSYNキ
ャラクタ(同期キャラクタと同じ意味)114でデータ
の同期がとられ、STXキャラクタ115でパケットが
始まり、ETXキャラクタ117でパケットが終る。S
TXキャラクタ115とETXキャラクタ117との間
にデータ116が存在する。そして送信時には送信装置
1007がデータ・ビット113にパリティ・ビット1
12を付加して送信データとし、受信時には受信装置1
008が受信データからパリティ・ビット112を削除
してデータ・ビット113とする。
For character sync 102, each data 114, 115, 116, 117 includes a data bit 113 beginning at the LSB 110 and ending at the MSB 111, and a parity bit 112 of one bit. The parity bit 112 may not be present. Data is synchronized with a predetermined pattern of one character or two or more SYN characters (same meaning as a synchronization character) 114, a packet starts with an STX character 115 and ends with an ETX character 117. S
Data 116 exists between the TX character 115 and the ETX character 117. Then, at the time of transmission, the transmitting device 1007 sets the data bit 113 to the parity bit 1
12 is added as transmission data, and the receiving device 1 is used at the time of reception.
008 deletes the parity bit 112 from the received data to form the data bit 113.

【0035】ビット同期103の場合は、各パケットは
1キャラクタ以上のオープニング・フラグ・キャラクタ
118で始まり、1キャラクタ以上のクロージング・フ
ラグ・キャラクタ119で終る。両キャラクタ間にデー
タ120が存在し、クロージング・フラグ・キャラクタ
119の次には1キャラクタ以上のアボート・キャラク
タ121が存在する。そして送信時には送信装置100
7がデータ120にオープニング・フラグ・キャラクタ
118とクロージング・フラグ・キャラクタ119とア
ボート・キャラクタ121とを付加して送信データと
し、受信時には受信装置1008が受信データからオー
プニング・フラグ・キャラクタ118とクロージング・
フラグ・キャラクタ119とアボート・キャラクタ12
1とを削除してデータ120とする。
For bit sync 103, each packet begins with one or more opening flag characters 118 and ends with one or more closing flag characters 119. Data 120 exists between both characters, and one or more abort characters 121 exist after the closing flag character 119. When transmitting, the transmitting device 100
7 adds the opening flag character 118, the closing flag character 119 and the abort character 121 to the data 120 to make the transmission data, and the receiving device 1008 receives the opening flag character 118 and the closing character from the reception data at the time of reception.
Flag character 119 and abort character 12
1 and are deleted to make data 120.

【0036】次にビット同期のゼロ挿入とゼロ削除を図
2で説明する。これはオープニング・フラグ・キャラク
タやクロージング・フラグ・キャラクタのビットパター
ンが“01111110”であり、またアボート・キャ
ラクタのビットパターンが“11111111”である
ため、これらと同じビットパターンのデータを送受信す
る方法であり、ゼロ挿入は送信時に、ゼロ削除は受信時
に機能する。まず送信時には“1”が4個以内の連続な
らそのまま送信し(204)、5個の連続なら次に
“0”を1個挿入して送信する(205、206、20
7)。これで回線上(202)には、データでは5個の
“1”の次には必ず1個の“0”が送出されることにな
り(212)、オープニング・フラグ・キャラクタやク
ロージング・フラグ・キャラクタやアボート・キャラク
タとの識別ができる。受信時には“1”が4個以内の連
続ならそのまま受信し(217)、5個の連続なら次の
“0”を削除して受信する(213、214、215、
216、218、219、220)。そして送信時には
送信装置1007がこのゼロ挿入を行ない、受信時には
受信装置1008がこのゼロ削除を行なう。
Next, zero insertion and zero deletion of bit synchronization will be described with reference to FIG. This is because the bit pattern of the opening flag character and closing flag character is "01111110", and the bit pattern of the abort character is "11111111". Yes, zero insert works on send and zero delete works on receive. First, at the time of transmission, if there are 4 or less consecutive "1" s, it is transmitted as it is (204), and if it is 5 consecutive, then one "0" is inserted and transmitted (205, 206, 20).
7). As a result, on the line (202), one "0" is always transmitted after five "1" s in the data (212), and the opening flag character and the closing flag It can be distinguished from a character or an abort character. At the time of reception, if the number of consecutive "1" s is four or less, it is received as it is (217), and if it is five consecutive, the next "0" is deleted and received (213, 214, 215,
216, 218, 219, 220). Then, the transmitting device 1007 inserts this zero when transmitting, and the receiving device 1008 deletes this zero when receiving.

【0037】次にビット同期のときに、このゼロ挿入と
ゼロ削除とが機能する区間と機能しない区間について図
3で説明する。オープニング・フラグ・キャラクタ30
2とクロージング・フラグ・キャラクタ304に挟まれ
たデータ303ではゼロ挿入/ゼロ削除が行なわれる
(308)。しかしクロージング・フラグ・キャラクタ
304の後のアボート・キャラクタ305と次のオープ
ニング・フラグ・キャラクタ307の間はアイドル区間
であり、データ306に対してはゼロ挿入/ゼロ削除が
行なわれない(309)。
Next, a section in which the zero insertion and the zero deletion function and a section in which they do not function at the time of bit synchronization will be described with reference to FIG. Opening flag character 30
In the data 303 sandwiched between 2 and the closing flag character 304, zero insertion / zero deletion is performed (308). However, there is an idle section between the abort character 305 after the closing flag character 304 and the next opening flag character 307, and zero insertion / zero deletion is not performed on the data 306 (309).

【0038】以上より、まず送信側の動作を、図4と図
10で説明する。まず送信時には、制御装置1002
は、入力装置1005から入力された情報または記憶装
置1003もしくは一時記憶装置1004に記録されて
いる情報を、そのまま、あるいは変換して送信データと
して送信装置1007から回線インタフェース1009
を経由して回線1014へ送出する。このとき制御装置
1002は、入力装置1005からの指示または記憶装
置1003もしくは一時記憶装置1004に記録されて
いる手順によって、場合によっては一時記憶装置100
4を作業場所として動作する。
From the above, the operation of the transmitting side will be described first with reference to FIGS. 4 and 10. First, at the time of transmission, the control device 1002
Is the information input from the input device 1005 or the information recorded in the storage device 1003 or the temporary storage device 1004 as it is, or converted as transmission data from the transmission device 1007 to the line interface 1009.
To the line 1014 via. At this time, the control device 1002 may change the temporary storage device 100 depending on the instruction from the input device 1005 or the procedure recorded in the storage device 1003 or the temporary storage device 1004.
4 is used as a work place.

【0039】ここで送出される情報はオープニング・フ
ラグ・キャラクタ401、ダミー・キャラクタ402、
クロージング・フラグ・キャラクタ403、アボート・
キャラクタ404に引続く調歩同期式あるいはキャラク
タ同期式のデータフレーム406であり、この後に調歩
同期式あるいはキャラクタ同期式のアイドル区間407
が続く。
The information transmitted here is the opening flag character 401, the dummy character 402,
Closing flag character 403, abort
It is a start-stop synchronization type or character synchronization type data frame 406 following the character 404, and is followed by a start-stop synchronization type or character synchronization type idle section 407.
Followed by

【0040】同じく受信側の動作を、図4と図10で説
明する。制御装置1002は、回線1014からのデー
タを、回線インタフェース1009を経由して受信装置
1008からそのままあるいは変換して、一時記憶装置
1004に記録し、あるいは出力装置1006に出力
し、あるいはこれら情報をもとにして何らかの動作を行
なう。このとき制御装置1002は、入力装置1005
からの指示、または記憶装置1003もしくは一時記憶
装置1004に記録されている指示により、記憶装置1
003または一時記憶装置1004に記録されている手
順によって、場合によっては一時記憶装置1004を作
業場所として、上記の記録、出力、または動作を行な
う。
Similarly, the operation on the receiving side will be described with reference to FIGS. The control device 1002 directly or converts the data from the line 1014 from the receiving device 1008 via the line interface 1009, records the data in the temporary storage device 1004, outputs it to the output device 1006, or outputs these information. And perform some action. At this time, the control device 1002 displays the input device 1005.
From the storage device 1003 or the temporary storage device 1004.
Depending on the procedure stored in the temporary storage device 003 or the temporary storage device 1004, the above-described recording, output, or operation is performed using the temporary storage device 1004 as a work place in some cases.

【0041】ここで受信する情報からビット同期のダミ
ー・フレーム405を読み捨てて、アボート・キャラク
タ404に続くその後のビット同期のアイドル区間40
8内に含まれる調歩同期あるいはキャラクタ同期のデー
タ・フレーム406を、ビット同期のアイドル区間40
8のデータとしてゼロ削除なしで受信する。
The bit synchronization dummy frame 405 is read out from the information received here, and the bit synchronization idle section 40 following the abort character 404 is discarded.
The data frame 406 of start / stop synchronization or character synchronization included in 8 is set in the idle section 40 of bit synchronization.
Received as 8 data without deleting zero.

【0042】以上のように、第1の実施例によれば、ビ
ット同期の回路のみを有する通信装置で、ビット同期の
通信データのみならず、調歩同期およびキャラクタ同期
の通信データも高速に送受信することができる。
As described above, according to the first embodiment, the communication device having only the bit synchronization circuit transmits and receives not only the bit synchronization communication data but also the start-stop synchronization and character synchronization communication data at high speed. be able to.

【0043】[第2の実施例]請求項2の実施例とし
て、請求項1に記載の発明の実施例と同様に調歩同期ま
たはキャラクタ同期のデータの先頭にダミーのビット同
期のパケットを付加するとともに、調歩同期またはキャ
ラクタ同期のデータの後にもダミーのビット同期のパケ
ットを付加し、受信側において調歩同期またはキャラク
タ同期のデータの終端を判別するデータ通信方法の実施
例を図5および図10で説明する。
[Second Embodiment] As an embodiment of the second aspect, a dummy bit synchronization packet is added to the beginning of the start-stop synchronization or character synchronization data as in the case of the first aspect of the invention. At the same time, an embodiment of a data communication method in which a dummy bit synchronization packet is added after the start-stop synchronization or character synchronization data and the end of the start-stop synchronization or character synchronization data is determined on the receiving side is shown in FIGS. explain.

【0044】まず送信時には、制御装置1002は、入
力装置1005から入力された情報、または記憶装置1
003もしくは一時記憶装置1004に記録されている
情報を、そのまま、あるいは変換して送信データとして
送信装置1007から回線インタフェース1009を経
由して回線1014へ送出する。このとき制御装置10
02は、入力装置1005からの指示または記憶装置1
003もしくは一時記憶装置1004に記録されている
手順によって、一時記憶装置1004に記録されている
手順によって、場合によっては一時記憶装置1004を
作業場所として動作する。
First, at the time of transmission, the control device 1002 controls the information input from the input device 1005 or the storage device 1.
003 or the information recorded in the temporary storage device 1004 is sent as it is or after being converted as transmission data from the transmission device 1007 to the line 1014 via the line interface 1009. At this time, the control device 10
Reference numeral 02 denotes an instruction from the input device 1005 or the storage device 1.
003 or the procedure stored in the temporary storage device 1004, and depending on the procedure stored in the temporary storage device 1004, the temporary storage device 1004 operates as a work place in some cases.

【0045】ここで送出される情報は、図5におけるオ
ープニング・フラグ・キャラクタ501と、ダミー・キ
ャラクタ502と、クロージング・フラグ・キャラクタ
503と、アボート・キャラクタ504と、それに引続
く調歩同期式またはキャラクタ同期式のデータ・フレー
ム506とであり、この後にオープニング・フラグ・キ
ャラクタ508と、ダミー・キャラクタ509と、クロ
ージング・フラグ・キャラクタ510と、アボート・キ
ャラクタ511とが続く。
The information transmitted here is the opening flag character 501, the dummy character 502, the closing flag character 503, the abort character 504, and the following start / stop synchronization type or character in FIG. A synchronous data frame 506, followed by an opening flag character 508, a dummy character 509, a closing flag character 510, and an abort character 511.

【0046】次に受信時には、制御装置1002は、回
線1014からのデータを、回線インタフェース100
9を経由して受信装置1008からそのままあるいは変
換して、一時記憶装置1004に記録し、あるいは出力
装置1006に出力し、あるいはこれらの情報をもとし
て何らかの動作を行なう。このとき制御装置1002
は、入力装置1005からの指示、または記憶装置10
03もしくは一時記憶装置1004に記録されている指
示により、記憶装置1003または一時記憶装置100
4に記録されている手順によって、場合によっては一時
記憶装置1004を作業場所として上記の記録、出力ま
たは動作を行なう。
Next, at the time of reception, the control device 1002 transfers the data from the line 1014 to the line interface 100.
The data is directly or converted from the receiving device 1008 via 9 and is recorded in the temporary storage device 1004 or is output to the output device 1006, or some operation is performed by using this information. At this time, the control device 1002
Is an instruction from the input device 1005 or the storage device 10
03 or the instruction recorded in the temporary storage device 1004, the storage device 1003 or the temporary storage device 100
Depending on the procedure recorded in No. 4, the above-mentioned recording, output or operation is performed using the temporary storage device 1004 as a work place in some cases.

【0047】ここで図5において受信する情報からビッ
ト同期のオープニング・ダミー・フレーム505を読み
捨て、アボート・キャラクタ504に引続く調歩同期式
あるいはキャラクタ同期式のデータ・フレーム506を
その後のビット同期のクロージング・ダミー・フレーム
512までビット同期のアイドル区間507のデータと
してゼロ削除なしで受信する。
Here, the bit-synchronous opening dummy frame 505 is discarded from the information received in FIG. 5, and the start-stop or character-synchronous data frame 506 subsequent to the abort character 504 is closed after the bit-synchronization. -Receive data up to dummy frame 512 as data in bit synchronization idle section 507 without deleting zeros.

【0048】以上のように第2の実施例によれば、アイ
ドル区間におけるビット同期のデータを調歩同期のデー
タまたはキャラクタ同期のデータとして受信した場合
に、調歩同期のデータまたはキャラクタ同期のデータの
パケットの終りを知ることができる。
As described above, according to the second embodiment, when the bit synchronization data in the idle section is received as the start-stop synchronization data or the character synchronization data, the start-stop synchronization data or the character synchronization data packet is received. You can know the end of.

【0049】[第3の実施例]請求項3の実施例とし
て、請求項1の実施例と同様に調歩同期またはキャラク
タ同期のデータの先頭にダミーのビット同期のパケット
を付加するとともに、調歩同期の通信データを送受信す
るときの送信側において、ダミーのビット同期のパケッ
トと前記調歩同期のデータとの間に(ビット同期のキャ
ラクタ長−1)ビットのダミーデータを付加して送信す
ることによって調歩同期のデータのスタートビットの影
響を除去するデータ通信方法の実施例を図6および図1
0で説明する。
[Third Embodiment] As an embodiment of claim 3, as in the embodiment of claim 1, a dummy bit synchronization packet is added to the beginning of data of start-stop synchronization or character synchronization, and start-stop synchronization is performed. On the transmitting side when transmitting / receiving the communication data of (1), by adding dummy data of (bit synchronization character length-1) bits between the dummy bit synchronization packet and the start / stop synchronization data, An embodiment of a data communication method for removing the influence of a start bit of synchronous data is shown in FIGS. 6 and 1.
0 will be described.

【0050】なお説明を簡単にするため、ビット同期と
調歩同期のキャラクタ長はともに8ビットであるとす
る。
To simplify the description, it is assumed that the character lengths of bit synchronization and start / stop synchronization are both 8 bits.

【0051】まず送信時には、制御装置1002は、入
力装置1005から入力された情報、または記憶装置1
003もしくは一時記憶装置1004に記録されている
情報を、そのまま、あるいは変換して送信データとして
送信装置1007から回線インタフェース1009を経
由して回線1014へ送出する。このとき制御装置10
02は、入力装置1005からの指示または記憶装置1
003もしくは一時記憶装置1004に記録されている
手順によって、場合によっては一時記憶装置1004を
作業場所として動作する。
First, at the time of transmission, the control device 1002 controls the information input from the input device 1005 or the storage device 1.
003 or the information recorded in the temporary storage device 1004 is sent as it is or after being converted as transmission data from the transmission device 1007 to the line 1014 via the line interface 1009. At this time, the control device 10
Reference numeral 02 denotes an instruction from the input device 1005 or the storage device 1.
003 or a procedure recorded in the temporary storage device 1004, the temporary storage device 1004 operates as a work place in some cases.

【0052】ここで送出される情報は図6におけるオー
プニング・フラグ・キャラクタ601と、ダミー・キャ
ラクタ602と、クロージング・フラグ・キャラクタ6
03と、アボート・キャラクタ604と、それに引続
く、7ビットのダミー・データ605と、その後に続く
調歩同期式データ606とである。
The information transmitted here is the opening flag character 601, the dummy character 602, and the closing flag character 6 in FIG.
03, an abort character 604, 7-bit dummy data 605 following the abort character 604, and start / stop synchronization data 606 following the dummy data 605.

【0053】次に受信時には、制御装置1002は、回
線1014からのデータを、回線インタフェース100
9を経由して受信装置1008からそのままあるいは変
換して、一時記憶装置1004に記録し、あるいは出力
装置1006に出力し、あるいはこれらの情報をもとに
して何らかの動作を行なう。このとき制御装置1002
は、入力装置1005からの指示、または記憶装置10
03もしくは一時記憶装置1004に記録されている指
示により、記憶装置1003または一時記憶装置100
4に記録されている手順によって、場合によっては一時
記憶装置1004を作業場所として、上記の記録、出
力、または動作を行なう。
Next, at the time of reception, the control device 1002 transfers the data from the line 1014 to the line interface 100.
The data is directly or converted from the receiving device 1008 via 9 and recorded in the temporary storage device 1004 or output to the output device 1006, or some operation is performed based on these information. At this time, the control device 1002
Is an instruction from the input device 1005 or the storage device 10
03 or the instruction recorded in the temporary storage device 1004, the storage device 1003 or the temporary storage device 100
According to the procedure recorded in No. 4, the above-mentioned recording, output, or operation is performed using the temporary storage device 1004 as a work place in some cases.

【0054】ここで図6において、受信される情報から
ビット同期のオープニング・ダミー・フレーム612が
読み捨てられ、7ビットのダミー・データ605が受信
されるので、この7ビットのダミー・データ605と調
歩同期式データ606の先頭のスタート・ビット607
とで8ビットとなり、これがビット同期の1キャラクタ
とみなされる。このため調歩同期式データ606の1キ
ャラクタはLSB608からビット同期の1キャラクタ
とみなされ、そのままビット同期のデータとして受信す
ることができる。
Here, in FIG. 6, the opening dummy frame 612 of bit synchronization is read out from the received information and the 7-bit dummy data 605 is received. Start bit 607 at the beginning of synchronous data 606
And becomes 8 bits, which is regarded as one bit-synchronized character. Therefore, one character of the start / stop synchronization type data 606 is regarded by the LSB 608 as one character of bit synchronization and can be received as it is as data of bit synchronization.

【0055】以上のように第3の実施例によれば、アイ
ドル区間におけるビット同期のデータを調歩同期のデー
タとして受信した場合に、調歩同期では各データがスタ
ート・ビットから始まるので、これを除去することによ
ってビット同期として受信したデータから調歩同期のデ
ータを簡単に解読することができる。
As described above, according to the third embodiment, when the bit synchronization data in the idle section is received as the start / stop synchronization data, each data starts from the start bit in the start / stop synchronization. By doing so, the data of the start-stop synchronization can be easily decoded from the data received as the bit synchronization.

【0056】[第4の実施例]請求項4の実施例とし
て、請求項1の実施例と同様に調歩同期またはキャラク
タ同期のデータの先頭にダミーのビット同期のパケット
を付加するとともに、調歩同期のデータまたはキャラク
タ同期のデータとして受信したビット同期のデータのキ
ャラクタ長が、調歩同期またはキャラクタ同期のキャラ
クタ長と異なるときでも、受信したデータが解読できる
データ通信方法の実施例を図7、図11、図12、図1
5、図16、図19、図20、および図21で説明す
る。
[Fourth Embodiment] As an embodiment of claim 4, as in the embodiment of claim 1, a dummy bit synchronization packet is added to the beginning of the data of start-stop synchronization or character synchronization, and start-stop synchronization is performed. 7 and FIG. 11 of the embodiment of the data communication method in which the received data can be decoded even when the character length of the bit-synchronized data received as the character data or the character-synchronized data is different from the character length of the start-stop synchronization or the character synchronization. , FIG. 12, FIG.
5, FIG. 16, FIG. 19, FIG. 20, and FIG.

【0057】まず図19で、装置1901は、制御装置
1902とそれに接続される記憶装置1903と一時記
憶装置1904と入力装置1905と出力装置1906
と送信装置1907と受信装置1908と、この送信装
置1907と受信装置1908に接続される回線インタ
フェース1909とを含む。そして回線インタフェース
1909は、回線1914に接続される。また一時記憶
装置1904は、記憶域A1910と記憶域B1911
と記憶域C1912と記憶域D1913と、変数“i”
を記憶するための領域1915と、変数“j”を記憶す
るための領域1916と、変数“m”を記憶するための
領域1917と、変数“n”を記憶するための領域19
18とを含む。
First, in FIG. 19, the device 1901 includes a control device 1902, a storage device 1903 connected thereto, a temporary storage device 1904, an input device 1905, and an output device 1906.
It includes a transmitter 1907, a receiver 1908, and a line interface 1909 connected to the transmitter 1907 and the receiver 1908. The line interface 1909 is connected to the line 1914. The temporary storage device 1904 has a storage area A 1910 and a storage area B 1911.
And storage area C1912, storage area D1913, and variable "i"
Area 1915 for storing a variable, an area 1916 for storing a variable “j”, an area 1917 for storing a variable “m”, and an area 19 for storing a variable “n”.
18 inclusive.

【0058】このような装置1901において、制御装
置1902は入力装置1905からの指示あるいは記憶
装置1903または一時記憶装置1904に記録されて
いる指示により、記憶装置1903または一時記憶装置
1904に記録されている手順によって、場合によって
は一時記憶装置1904を作業場所として動作する。こ
のとき制御装置1902は、入力装置1905から入力
された情報あるいは記憶装置1903または一時記憶装
置1904に記録されてている情報を、そのままあるい
は変換して送信データとして送信装置1907から回線
インタフェース1909を経由して回線1914へ送出
する。ここで送出される情報は図7におけるオープニン
グ・フラグ・キャラクタ701と、ダミー・キャラクタ
702と、クロージング・フラグ・キャラクタ703
と、アボート・キャラクタ704と、それに引続く調歩
同期またはキャラクタ同期式データ706とである。
In such a device 1901, the control device 1902 is recorded in the storage device 1903 or the temporary storage device 1904 according to an instruction from the input device 1905 or an instruction recorded in the storage device 1903 or the temporary storage device 1904. Depending on the procedure, the temporary storage device 1904 may operate as a work place in some cases. At this time, the control device 1902 directly or converts the information input from the input device 1905 or the information recorded in the storage device 1903 or the temporary storage device 1904 as transmission data from the transmission device 1907 via the line interface 1909. And sends it to the line 1914. The information transmitted here is the opening flag character 701, the dummy character 702, and the closing flag character 703 in FIG.
And the abort character 704, followed by start / stop synchronization or character synchronous data 706.

【0059】次に図19を参照して、受信側は、制御装
置1902は、回線1914からのデータを、回線イン
タフェース1909を経由して受信装置1908からそ
のままあるいは変換して、一時記憶装置1904に記録
し、あるいは出力装置1906に出力し、あるいはこれ
らの情報をもとして何らかの動作を行なう。このとき制
御装置1902は入力装置1905からの指示あるいは
記憶装置1903または一時記憶装置1904に記録さ
れている指示により、記憶装置1903または一時記憶
装置1904に記録されている手順によって、場合によ
っては一時記憶装置1904を作業場所として、上記の
記録、出力、または動作を行なう。
Next, referring to FIG. 19, on the reception side, the control device 1902 directly or converts the data from the line 1914 from the reception device 1908 via the line interface 1909, and stores it in the temporary storage device 1904. The data is recorded or output to the output device 1906, or some operation is performed based on the information. At this time, the control device 1902 uses the instruction from the input device 1905 or the instruction recorded in the storage device 1903 or the temporary storage device 1904, and according to the procedure recorded in the storage device 1903 or the temporary storage device 1904, in some cases, the temporary storage. The above-described recording, output, or operation is performed using the device 1904 as a work place.

【0060】ここで図7において、受信される情報か
ら、ビット同期のオープニング・ダミー・フレーム70
9が読み捨てられ、その後に続く調歩同期またはキャラ
クタ同期式データ706を次の方法で処理する。
Here, in FIG. 7, the opening dummy frame 70 for bit synchronization is received from the received information.
9 is read and discarded, and the start-stop synchronization or character-synchronized data 706 that follows is processed in the following method.

【0061】まず受信したビット同期のデータのキャラ
クタ長が、調歩同期またはキャラクタ同期のキャラクタ
長より短い場合の処理を説明する。
First, the processing when the character length of the received bit-synchronized data is shorter than the character length of the start-stop synchronization or the character synchronization will be described.

【0062】図20を参照して、図19における回線1
914から回線インタフェース1909を経由して受信
装置1908よりビット同期のアイドル区間のデータと
して受信したj番目のもとの8ビットのデータ1141
が、n(j+1)−8jビットのデータ1143と(j
+1)・8−n(j+1)ビットのデータ1144とに
分割される。
Referring to FIG. 20, line 1 in FIG.
The original j-th 8-bit data 1141 received from the receiving device 1908 from the receiving device 1908 via the line interface 1909 as data in the idle period of bit synchronization.
Are n (j + 1) -8j bits of data 1143 and (j
+1) · 8-n (j + 1) -bit data 1144.

【0063】ここで“n”1918は調歩同期やキャラ
クタ同期のキャラクタ長とする。分割された前者のデー
タはMSB方向へ8j−njビット1145分シフトさ
れ、分割された後者のデータはLSB方向へn(j+
1)−8jビット1147分シフトされる。このように
してシフトされた前者のデータがデータ1146であ
り、後者のデータがデータ1148である。ここでj番
目の後者のデータ1148とj+1番目の前者のデータ
1146とが合成され、新たなnビットのデータ115
0が作られる。
Here, "n" 1918 is a character length for start-stop synchronization and character synchronization. The former divided data is shifted by 8j-nj bits 1145 in the MSB direction, and the latter divided data is n (j +) in the LSB direction.
1) -8j bits are shifted by 1147. The former data thus shifted is the data 1146, and the latter data is the data 1148. Here, the j-th latter data 1148 and the j + 1-th former data 1146 are combined to form a new n-bit data 115.
0 is made.

【0064】具体的には図11を参照して、図19にお
ける回線1914から回線インタフェース1909を経
由して受信装置1908よりビット同期のアイドル区間
のデータとして受信した0番目から4番目のもとの8ビ
ットのデータ1101、1111、1121、および1
131に関し、データ1101についてはnビットのデ
ータ1103と8−nビットのデータ1104とに分割
され、データ1111についてはn−(8−n)=2n
−8ビットのデータ1113と8−(2n−8)=2・
8−2nビットのデータ1114とに分割され、データ
1121についてはn−(2・8−2n)=3n−2・
8ビットのデータ1123と8−(3n−2・8)=3
・8−3nビットのデータ1124とに分割され、デー
タ1131についてはn(3・8−3n)=4n−3・
8ビットのデータ1133と8−(4n−3・8)=4
・8−4nビットのデータ1134とに分割される。
Specifically, referring to FIG. 11, the 0th to 4th original data received from the receiving apparatus 1908 from the line 1914 via the line interface 1909 in FIG. 8-bit data 1101, 1111, 1121, and 1
Regarding 131, data 1101 is divided into n-bit data 1103 and 8-n-bit data 1104, and data 1111 is n- (8-n) = 2n.
-8-bit data 1113 and 8- (2n-8) = 2
The data 1121 is divided into 8-2n-bit data 1114, and n- (2 · 8-2n) = 3n−2 · for the data 1121.
8-bit data 1123 and 8- (3n−2.8) = 3
The data 1124 is divided into 8-3n-bit data 1124, and the data 1131 is n (3 / 8-3n) = 4n-3.
8-bit data 1133 and 8- (4n−3 · 8) = 4
It is divided into 8-4n-bit data 1134.

【0065】分割されたデータ1113はMSB方向へ
8−nビット1115分シフトされ、データ1123は
MSB方向へ2・8−2nビット1125分シフトさ
れ、データ1133はMSB方向へ3・8−3nビット
1135分シフトされる。また分割されたデータ110
4はLSB方向へ8−(8−n)=nビット1107分
シフトされ、データ1114はLSB方向へ8−(2・
8−2n)=2n−8ビット1117分シフトされ、デ
ータ1124はLSB方向へ8−(3・8−3n)=3
n−2・8ビット1127分シフトされる。このように
してMSB方向へシフトされた前者のデータがデータ1
116、1126、および1136であり、LSB方向
へシフトされた後者のデータがデータ1108、111
8、および1128である。ここで0番目の後者のデー
タ1108と1番目の前者のデータ1116とが合成さ
れ、(1109)、新たなnビットのデータ1110が
作られる。また1番目の後者のデータ1118と2番目
の前者のデータ1126とが合成され(1119)、新
たなnビットのデータ1120が作られる。さらに2番
目の後者のデータ1128と3番目の前者のデータ11
36とが合成され(1129)、新たなnビットデータ
1130が作られ、以下同様にして分割/合成によりデ
ータが再構成される。
The divided data 1113 is shifted in the MSB direction by 8-n bits 1115, the data 1123 is shifted in the MSB direction by 2.8-2n bits 1125, and the data 1133 is shifted in the MSB direction by 3.8-3n bits. It is shifted by 1135 minutes. The divided data 110
4 is shifted in the LSB direction by 8- (8-n) = n bits 1107, and the data 1114 is shifted in the LSB direction by 8- (2.
8-2n) = 2n-8 bits are shifted by 1117, and the data 1124 is 8- (3 · 8-3n) = 3 in the LSB direction.
n-2 · 8 bits are shifted by 1127. The former data thus shifted in the MSB direction is data 1
116, 1126, and 1136, and the latter data shifted in the LSB direction are data 1108, 111.
8 and 1128. Here, the 0th latter data 1108 and the 1st former data 1116 are combined (1109), and new n-bit data 1110 is created. Further, the first latter data 1118 and the second former data 1126 are combined (1119) to create new n-bit data 1120. Furthermore, the second latter data 1128 and the third former data 11
36 and 1 are combined (1129) to create new n-bit data 1130, and data is reconstructed by division / composition in the same manner.

【0066】これを図12のフローチャートで説明す
る。最初にステップ1202で“j”1916が“0”
に初期化され、ステップ1203で記憶域A1910に
回線1914から回線インタフェース1909を経由し
て受信装置1908によりビット同期のアイドル区間の
データとして受信されたj番目のもとの8ビットの入力
データが入力される。ステップ1204で記憶域A19
10のデータに2n (j+ 1 )-8j −1を論理積すること
によって、もとの8ビットのデータのLSB側のn(j
+1)−8jビット分が分割されて記憶域B1912に
入力される。ステップ1205で記憶域A1910のデ
ータに28 −2n (j+1 )-8j を論理積することによっ
てもとの8ビットのデータのMSB側の(j+1)・8
−n(j+1)ビット分が分割されて記憶域C1912
に入力される。ステップ1206で記憶域B1911の
データがMSB側に8j−njビットシフトされ、ステ
ップ1207で記憶域C1912のデータがLSB側に
n(j+1)−8jビットシフトされる。
This will be described with reference to the flowchart of FIG. First, in step 1202, “j” 1916 is “0”.
In step 1203, the j-th original 8-bit input data received as the data in the bit synchronization idle section from the line 1914 via the line interface 1909 is input to the storage area A 1910 in step 1203. To be done. Storage area A19 in step 1204
By logically ANDing 10 data with 2 n (j + 1) -8j −1, n (j on the LSB side of the original 8-bit data is
+1) −8j bits are divided and input to the storage area B1912. In step 1205, the data in the storage area A 1910 is ANDed with 2 8 −2 n (j + 1) −8j to obtain (j + 1) · 8 on the MSB side of the original 8-bit data.
-N (j + 1) bits are divided into storage area C1912
Is input to At step 1206, the data in the storage area B1911 is shifted to the MSB side by 8j-nj bits, and at step 1207, the data in the storage area C1912 is shifted to the LSB side by n (j + 1) -8j bits.

【0067】ステップ1208で“j”1916が
“0”つまり初回のデータならステップ1209で記憶
域B1911のデータをそのままnビットの出力データ
とし、ステップ1210で記憶域C1912のデータが
記憶域D1913に転送される。
If "j" 1916 is "0" in step 1208, that is, if it is the first data, the data in storage area B1911 is directly used as n-bit output data in step 1209, and the data in storage area C1912 is transferred to storage area D1913 in step 1210. To be done.

【0068】またステップ1208で“j”1916が
“0”でなければ、つまり初回のデータでなければステ
ップ1211で記憶域B1911のデータと記憶域D1
913のデータとが論理和されてnビットの出力データ
とされ、そしてステップ1212で最終データかどうか
が調べられる。もしも最終データならステップ1213
で処理を終る。もしも最終データでなければステップ1
203で回線1914から回線インタフェース1909
を経由して受信装置1908によりビット同期のアイド
ル区間のデータとして受信された次のもとの8ビットの
データが入力データとして入力される。
If "j" 1916 is not "0" in step 1208, that is, if it is not the first data, the data in the storage area B1911 and the storage area D1 are read in step 1211.
The data in 913 is logically ORed into the output data of n bits, and it is checked in step 1212 whether it is the final data. If the final data, step 1213
Ends the process with. If not final data, step 1
Line 1914 to line interface 1909 at 203
The next original 8-bit data received as the data in the idle period of the bit synchronization by the receiving device 1908 via the is input as the input data.

【0069】次に受信したビット同期のデータのキャラ
クタ長が、調歩同期またはキャラクタ同期のキャラクタ
長より長い場合の処理を説明する。図21を参照して、
図19における回線1914から回線インタフェース1
909を経由して受信装置1908よりビット同期のア
イドル区間のデータとして受信したj番目のもとの8ビ
ットのデータ1570とj+1番目のもとの8ビットデ
ータ1571とより、16ビットのもとのデータ154
1が作られ、ここで“i”1915にj/2の小数点以
下を切捨てた値が入れられ(1572)、このデータ1
541はn(i+1)−16iビットのデータ1543
と(i+1)・16−n(i+1)ビットのデータ15
44とに分割される。なお図21の1572で“IN
T”は小数点以下を切捨てる処理を意味する。ここで
“n”1918は調歩同期やキャラクタ同期のキャラク
タ長とする。分割された前者のデータはMSB方向へ1
6i−niビット1545分シフトされ、分割された後
者のデータはLSB方向へn(i+1)−16iビット
1547分シフトされる。このようにしてシフトされた
前者のデータが1546であり、後者のデータが154
8である。ここでi番目の後者のデータ1548とi+
1番目の前者のデータ1546とが合成され(154
9)、新たなnビットのデータ1550が作られる。
Next, the processing when the character length of the received bit-synchronized data is longer than the character length of the start-stop synchronization or the character synchronization will be described. Referring to FIG.
Line 1914 to line interface 1 in FIG.
From the j-th original 8-bit data 1570 and the j + 1-th original 8-bit data 1571 received from the receiving device 1908 as data of the bit synchronization idle section via 909, the original 16-bit data is obtained. Data 154
1 is created, and the value rounded down to the decimal point of j / 2 is put in “i” 1915 (1572).
541 is n (i + 1) -16i-bit data 1543
And (i + 1) · 16-n (i + 1) -bit data 15
It is divided into 44 and. In addition, at 1572 in FIG.
T "means a process of rounding down the fractional part. Here," n "1918 is the character length of start-stop synchronization or character synchronization. The divided former data is 1 in the MSB direction.
The latter data divided by 6i-ni bits 1545 are shifted in the LSB direction by n (i + 1) -16i bits 1547. The former data thus shifted is 1546, and the latter data is 154.
8 Here, the i-th latter data 1548 and i +
The first former data 1546 is combined (154)
9), new n-bit data 1550 is created.

【0070】具体的には、図15を参照して、図19に
おける回線1914から回線インタフェース1909を
経由して受信装置1908よりビット同期のアイドル区
間のデータとして受信した0番目のもとの8ビットの入
力データ1561、2番目のもとの8ビットのデータ1
563、4番目のもとの8ビットのデータ1565、お
よび6番目のもとの8ビットのデータ1567と、1番
目のもとの8ビットのデータ1562、3番目のもとの
8ビットのデータ1564、5番目のもとの8ビットの
データ1566、および7番目のもとの8ビットのデー
タ1568とより、16ビットのもとのデータ150
1、1511、1521、および1531が作られる。
ここで“i”1915にj/2の小数点以下を切捨てた
値が入れられ(1572)、前記16ビットのもとのデ
ータ1501はnビットのデータ1503と16−nビ
ットのデータ1504とに分割される。データ1511
は、n−(16−n)=2n−16ビットのデータ15
13と、16−(2n−16)=2・16−2nビット
のデータ1514とに分割され、データ1521は、n
−(2・16−2n)=3n−2・16ビットのデータ
1523と、16−(3n−2・16)=3・16−3
nビットのデータ1524とに分割され、データ153
1は、n−(3・16−3n)=4n−3・16ビット
のデータ1533と、16−(4n−3・16)=4・
16−4nビットのデータ1534とに分割される。
Specifically, referring to FIG. 15, the 0th original 8 bits received as data in the idle section of the bit synchronization from the receiving apparatus 1908 via the line interface 1909 from the line 1914 in FIG. Input data 1561, second original 8-bit data 1
563, 4th original 8-bit data 1565, 6th original 8-bit data 1567, 1st original 8-bit data 1562, and 3rd original 8-bit data 1564, the original data of 8 bits 1566, and the original data of 8 bits 1568, the original data of 16 bits 150
1, 1511, 1521, and 1531 are made.
Here, a value obtained by rounding down the decimal point of j / 2 is put in "i" 1915 (1572), and the original data 1501 of 16 bits is divided into n-bit data 1503 and 16-n-bit data 1504. To be done. Data 1511
Is n− (16−n) = 2n−16 bits of data 15
13 and 16− (2n−16) = 2 · 16−2n bits of data 1514, and the data 1521 is n.
-(2 · 16-2n) = 3n−2 · 16-bit data 1523 and 16− (3n−2 · 16) = 3 · 16-3
The data 153 is divided into n-bit data 1524 and data 153.
1 is n− (3 · 16−3n) = 4n−3 · 16-bit data 1533 and 16− (4n−3 · 16) = 4 ·
It is divided into 16-4n-bit data 1534.

【0071】分割されたデータ1513はMSB方向へ
16−nビット1515シフトされ、データ1523は
MSB方向へ、2・16−nビットシフトされ、データ
1533はMSB方向へ、3・16−3nビットシフト
される。また分割されたデータ1504は、LSB方向
へ、16−(16−n)ビットシフトされ、データ15
14はLSB方向へ、16−(2・16−2n)=2n
−16ビットシフトされ、データ1524はLSB方向
へ16−(3・16−3n)=3n−2・16ビットシ
フトされる。このようにしてMSB方向へシフトされた
前者のデータがデータ1516、1526、および15
36であり、LSB方向へシフトされた後者のデータが
データ1508、1518、および1528である。
The divided data 1513 is shifted by 16-n bits 1515 in the MSB direction, the data 1523 is shifted by 2.16-n bits in the MSB direction, and the data 1533 is shifted by 3.16-3n bits in the MSB direction. To be done. Further, the divided data 1504 is shifted by 16- (16-n) bits in the LSB direction to obtain data 15
14 is in the LSB direction, 16− (2 · 16−2n) = 2n
The data 1524 is shifted by -16 bits, and the data 1524 is shifted by 16- (3 * 16-3n) = 3n-2 * 16 bits in the LSB direction. The former data thus shifted in the MSB direction are data 1516, 1526, and 15
36, and the latter data shifted in the LSB direction are data 1508, 1518, and 1528.

【0072】ここで0番目の後者のデータ1508と、
1番目の前者のデータ1516とが合成され(150
9)、新たなnビットのデータ1510が作られる。ま
た1番目の後者のデータ1518と2番目の前者のデー
タ1526とが合成され(1519)、新たなnビット
のデータ1520が作られる。さらに2番目の後者のデ
ータ1528と3番目の前者のデータ1536とが合成
され(1529)、新たなnビットデータ1530が作
られる。以下同様にして分割/合成によりデータが再構
成される。
Here, the 0th latter data 1508 and
The first former data 1516 is combined (150
9), new n-bit data 1510 is created. Further, the first latter data 1518 and the second former data 1526 are combined (1519) to create new n-bit data 1520. Further, the second latter data 1528 and the third former data 1536 are combined (1529) to create new n-bit data 1530. Similarly, the data is reconstructed by dividing / combining.

【0073】これを図16のフローチャートで説明す
る。最初にステップ1602で“j”1916が“0”
に初期化され、ステップ1603で記憶域A1910に
回線1914から回線インタフェース1909を経由し
て受信装置1908によりビット同期のアイドル区間の
データとして受信されたj番目のもとの8ビットの入力
が入力される。次にステップ1604で“j”1916
に“1”が加えられ、ステップ1605で記憶域B19
11に回線1914から回線インタフェース1909を
経由して受信装置1908によりビット同期のアイドル
区間のデータとして受信された次のj番目のもとの8ビ
ットの入力データが入れられる。次にステップ1606
で記憶域B1911のデータがMSB側に8ビットシフ
トされ、ステップ1607で記憶域B1911と記憶域
A1910のデータが論理和されて記憶域A1910に
入れられる。
This will be described with reference to the flowchart of FIG. First, in step 1602, "j" 1916 is "0".
Is initialized to the storage area A 1910 in step 1603, and the j-th original 8-bit input received as data in the bit synchronization idle section from the line 1914 via the line interface 1909 is input to the storage area A 1910. It Next, in step 1604, “j” 1916
"1" is added to the storage area B19 in step 1605.
The next j-th original 8-bit input data received as data in the bit synchronization idle section from the line 1914 via the line interface 1909 is input to the line 11. Next, Step 1606
Then, the data in the storage area B1911 is shifted to the MSB side by 8 bits, and in step 1607 the data in the storage area B1911 and the data in the storage area A1910 are logically ORed and stored in the storage area A1910.

【0074】ステップ1608で“i”1915にj/
2の小数点以下を切捨てた値が入れられ、ステップ16
09で記憶域A1910のデータに2n (i+1 )-16i
1を論理積することによってもとの8ビットのデータL
SB側のn(i+1)−16iビットが分割されて記憶
域B1911に入れられる。ステップ1610で記憶域
A1910のデータに216−2n (i+1 )-16iが論理積
されることによってもとの8ビットのデータのMSB側
の(i+1)・16−n(i+1)ビット分が分割され
て記憶域C1912に入れられる。ステップ1611で
記憶域B1911のデータがMSB側に16i−niビ
ットシフトされ、ステップ1612で記憶域C1912
のデータがLSB側にn(i+1)−16iビットシフ
トされる。ステップ1613で“i”1915が“0”
つまり初回のデータならステップ1614で記憶域B1
911のデータがそのままnビットの出力データとされ
る。ステップ1615で記憶域C1912のデータが記
憶域D1913に転送される。
In step 1608, j / is added to "i" 1915.
The value rounded down to the second decimal point is entered, and step 16 is entered.
In the data of the storage area A1910 at 09, 2 n (i + 1) -16i
The original 8-bit data L is obtained by ANDing 1s.
The n (i + 1) -16i bits on the SB side are divided and placed in the storage area B1911. In step 1610, 2 16 −2 n (i + 1) −16i is logically ANDed with the data in the storage area A 1910 to (i + 1) · 16−n (i + 1) bits on the MSB side of the original 8-bit data. The minutes are divided and placed in storage area C1912. In step 1611, the data in the storage area B1911 is shifted to the MSB side by 16i-ni bits, and in step 1612, the storage area C1912.
Data is shifted to the LSB side by n (i + 1) -16i bits. In step 1613, “i” 1915 is “0”
In other words, if it is the first data, in step 1614 the storage area B1
The data 911 is directly used as n-bit output data. In step 1615, the data in the storage area C1912 is transferred to the storage area D1913.

【0075】またステップ1613で“i”1915が
“0”でなければ、つまり初回のデータでなければステ
ップ1616で記憶域B1911のデータと記憶域D1
913のデータとか論理和されてnビットの出力データ
とされる。そしてステップ1617で最終データかどう
かが調べられる。もしも最終データならステップ161
8で処理を終る。もしも最終データでなければステップ
1603で回線1914から回線インタフェース190
9を経由して受信装置1908によりビット同期のアイ
ドル区間のデータとして受信された次のもとの8ビット
のデータが入力データとして入力される。なお図16の
1608で“INT”は小数点以下を切捨てる処理を意
味する。
If "i" 1915 is not "0" in step 1613, that is, if it is not the first data, the data in the storage area B1911 and the storage area D1 are searched in step 1616.
The data of 913 is logically ORed to obtain n-bit output data. Then, in step 1617, it is checked whether it is the final data. If the final data, step 161
The process ends at 8. If it is not the final data, in step 1603 the line 1914 to the line interface 190
The next original 8-bit data received as data in the idle section of bit synchronization via 9 is input as input data. In addition, "INT" in 1608 of FIG. 16 means a process of cutting off a part after the decimal point.

【0076】以上のように第4の実施例によれば、アイ
ドル区間におけるビット同期のデータを調歩同期または
キャラクタ同期のデータとして受信した場合に、調歩同
期またはキャラクタ同期のデータとして受信したビット
同期のデータのキャラクタ長が、調歩同期またはキャラ
クタ同期のキャラクタ長と異なる場合でも、受信した調
歩同期のまたはキャラクタ同期のデータを簡単に解読す
ることができる。
As described above, according to the fourth embodiment, when the bit synchronization data in the idle section is received as the start-stop synchronization or the character synchronization data, the bit synchronization data received as the start-stop synchronization or the character synchronization data is received. Even when the character length of the data is different from the character length of the start-stop synchronization or character synchronization, the received start-stop synchronization or character-synchronization data can be easily decoded.

【0077】[第5の実施例]請求項5の実施例とし
て、請求項4の実施例と同様に各受信データをビット単
位で分解/合成してビット同期のデータを調歩同期また
はキャラクタ同期のキャラクタ長と等しい所定のキャラ
クタ長に再構成するとともに、受信した調歩同期データ
を解読することができるデータ通信方法の実施例を、図
8、図13、図17、図19で説明する。
[Fifth Embodiment] As an embodiment of claim 5, as in the embodiment of claim 4, each received data is decomposed / combined bit by bit to convert bit-synchronized data into start-stop synchronization or character-synchronization. An embodiment of a data communication method capable of reconstructing to a predetermined character length equal to the character length and decoding the received start / stop synchronization data will be described with reference to FIGS. 8, 13, 17, and 19.

【0078】まず図19で、装置1901は、制御装置
1902と、それに接続される記憶装置1903と、一
時記憶装置1904と、入力装置1905と、出力装置
1906と、送信装置1907と、受信装置1908
と、この送信装置1907と受信装置1908に接続さ
れる回線インタフェース1909とを含む。そして回線
インタフェース1909は回線1914に接続される。
また一時記憶装置1904には記憶域A1910と、記
憶域B1911と、記憶域C1912と、記憶域D19
13と、変数“i”を記憶するための領域1915と、
変数“j”を記憶するための領域1916と、変数
“m”を記憶するための領域1917と、変数“n”を
記憶するための領域1918とを含む。
First, in FIG. 19, the device 1901 includes a control device 1902, a storage device 1903 connected thereto, a temporary storage device 1904, an input device 1905, an output device 1906, a transmission device 1907, and a reception device 1908.
And a line interface 1909 connected to the transmitter 1907 and the receiver 1908. The line interface 1909 is connected to the line 1914.
The temporary storage device 1904 has a storage area A1910, a storage area B1911, a storage area C1912, and a storage area D19.
13, an area 1915 for storing the variable “i”,
An area 1916 for storing the variable “j”, an area 1917 for storing the variable “m”, and an area 1918 for storing the variable “n” are included.

【0079】このような装置1901において、制御装
置1902は入力装置1905からの指示あるいは記憶
装置1903または一時記憶装置1904に記録されて
いる指示により、記憶装置1903または一時記憶装置
1904に記録されている手順によって、場合によって
は一時記憶装置1904を作業場所として動作する。こ
のとき制御装置1902は、入力装置1905から入力
された情報あるいは記憶装置1903または一時記憶装
置1904に記録されている情報を、そのままあるいは
変換して送信データとして送信装置1907から回線イ
ンタフェース1909を経由して回線1914へ送出す
る。
In such a device 1901, the control device 1902 is recorded in the storage device 1903 or the temporary storage device 1904 according to an instruction from the input device 1905 or an instruction recorded in the storage device 1903 or the temporary storage device 1904. Depending on the procedure, the temporary storage device 1904 may operate as a work place in some cases. At this time, the control device 1902 directly or converts the information input from the input device 1905 or the information recorded in the storage device 1903 or the temporary storage device 1904, and transmits it as transmission data from the transmission device 1907 via the line interface 1909. To the line 1914.

【0080】ここで図8において、送出する情報はオー
プニング・フラグ・キャラクタ801と、ダミー・キャ
ラクタ802と、クロージング・フラグ・キャラクタ8
03と、アボート・キャラクタ804と、それに引続く
調歩同期データ806とである。またアボート・キャラ
クタ804と調歩同期データ806との間に、xビット
のダミー・データ805を送ってもかまわない。
In FIG. 8, the information to be transmitted is the opening flag character 801, the dummy character 802, and the closing flag character 8
03, the abort character 804, and the start / stop synchronization data 806 that follow. Further, x-bit dummy data 805 may be sent between the abort character 804 and the start / stop synchronization data 806.

【0081】次に受信側は、図19において、制御装置
1902は、回線1914からのデータを回線インタフ
ェース1909を経由して受信装置1908からそのま
まあるいは変換して、一時記憶装置1904に記録し、
あるいは出力装置1906に出力し、あるいはこれらの
情報をもとにして何らかの動作を行なう。このとき、制
御装置1902は、入力装置1905からの指示あるい
は記憶装置1903または一時記憶装置1904に記録
されている指示により、記憶装置1903または一時記
憶装置1904に記録されている手順によって、場合に
よっては一時記憶装置1904を作業場所として動作す
る。
Next, on the receiving side, in FIG. 19, the control device 1902 records the data from the line 1914 as it is or from the receiving device 1908 via the line interface 1909 and records it in the temporary storage device 1904.
Alternatively, the data is output to the output device 1906, or some operation is performed based on the information. At this time, the control device 1902 receives an instruction from the input device 1905 or an instruction recorded in the storage device 1903 or the temporary storage device 1904, and according to the procedure recorded in the storage device 1903 or the temporary storage device 1904. The temporary storage device 1904 operates as a work place.

【0082】ここで受信する情報からビット同期のオー
プニング・ダミー・フレーム813を読み捨て、その後
に続く調歩同期データ806を次の方法で処理する。
The opening dummy frame 813 for bit synchronization is read out from the information received here, and the start / stop synchronization data 806 following it is processed by the following method.

【0083】まず受信したビット同期のデータのキャラ
クタ長が、調歩同期のキャラクタ長より短い場合の処理
を説明する。
First, the processing when the character length of the received bit synchronization data is shorter than the character length of the start / stop synchronization will be described.

【0084】図13において、最初のステップ1302
で“m”1917は“8”に初期化される。ステップ1
303で記憶域A1910に回線1914から回線イン
タフェース1909を経由して受信装置1908により
ビット同期のアイドル区間のデータとして受信されたも
との8ビットの入力データが記録される。
In FIG. 13, first step 1302
Then, "m" 1917 is initialized to "8". Step 1
In 303, the original 8-bit input data received as data in the idle section of the bit synchronization from the line 1914 via the line interface 1909 in the storage area A 1910 is recorded.

【0085】ステップ1304で記憶域A1910のデ
ータのLSBが調べられる。ステップ1304でLSB
が“1”なら、ステップ1305で記憶域1910のデ
ータがLSBへ1ビットシフトされる。ステップ130
6で“m”1917から“1”が減算され、ステップ1
307で“m”1917が“0”かどうかが調べられ、
もし“0”ならステップ1302へ戻る。もし“0”で
なければステップ1304へ戻る。またステップ130
4でLSBが“0”なら、ステップ1308で“8−
m”の値が調べられる。もし“8−m”が“n”191
8と等しければステップ1309で記憶域A1910の
データがnビットのデータとして出力される。もし“8
−m”が“n”1918より大きければ、ステップ13
10で記憶域A1910のデータに2n −1が論理積さ
れることによってもとの8ビットのデータからLSB側
のnビット分を分割されたnビットのデータが出力され
る。
In step 1304, the LSB of the data in storage area A 1910 is checked. LSB at step 1304
If is "1", the data in the storage area 1910 is shifted to the LSB by 1 bit in step 1305. Step 130
In step 6, "1" is subtracted from "m" 1917, and step 1
At 307, it is checked whether "m" 1917 is "0",
If "0", the process returns to step 1302. If not "0", the process returns to step 1304. Step 130
If the LSB is "0" in step 4, "8- in step 1308"
The value of m "is checked. If" 8-m "is" n "191
If it is equal to 8, the data in the storage area A 1910 is output as n-bit data in step 1309. If "8
If -m "is greater than" n "1918, then step 13
In step 10, 2 n -1 is logically ANDed with the data in the storage area A 1910 to output n-bit data obtained by dividing n bits on the LSB side from the original 8-bit data.

【0086】ステップ1311で記憶域A1910のデ
ータと28 −2n とが論理積されることによってもとの
8ビットのデータのMSB側の8−nビット分が分割さ
れて記憶域A1910に入れられ、ステップ1312で
記憶域A1910のデータがLSB側にnビットシフト
される。ステップ1313で記憶域A1910のデータ
が記憶域B1911に入れられ、ステップ1314で回
線1914から回線インタフェース1909を経由して
受信装置1908によりビット同期のアイドル区間のデ
ータとして受信された次のもとの8ビットのデータが記
憶域A1910に入れられる。ステップ1315で記憶
域A1910のデータと22n-8+m−1とが論理積される
ことによってもとの8ビットのデータからLSB側の2
n−8+mビット分が分割され、ステップ1316で記
憶域C1912のデータがMSB側に8−m−nビット
シフトされる。ステップ1317で記憶域B1911の
データと記憶域C1912のデータとが論理和されてn
ビットの出力データとされ、ステップ1318で記憶域
A1910のデータと28 −22n-8+mとが論理積されて
MSB側の16−2n−mビットのデータが記憶域A1
910に入れられる。ステップ1319で記憶域A19
10のデータがLSB側に2n−8+mビットシフトさ
れ、ステップ1320で“m”1917に16−2n−
mが入れられ、ステップ1304へ戻る。またステップ
1308で“8−m”が“n”1918より小さけれ
ば、ステップ1313へ進む。
In step 1311, the data in the storage area A 1910 is logically ANDed with 2 8 −2 n to divide 8-bit data on the MSB side of the original 8-bit data into the storage area A 1910. Then, in step 1312, the data in the storage area A 1910 is shifted to the LSB side by n bits. In step 1313, the data in the storage area A 1910 is put into the storage area B 1911, and in step 1314, the next original 8 received as data in the idle section of the bit synchronization from the line 1914 via the line interface 1909 is received. Bits of data are placed in storage A1910. In step 1315, the data in the storage area A 1910 is logically ANDed with 2 2n-8 + m -1 to convert the original 8-bit data to 2 on the LSB side.
The data is divided into n-8 + m bits, and in step 1316, the data in the storage area C1912 is shifted by 8-mn bits toward the MSB side. In step 1317, the data in the storage area B1911 and the data in the storage area C1912 are logically ORed to obtain n.
The data in the storage area A1910 is logically ANDed with the data in the storage area A1910 and 2 8 -2 2n-8 + m in step 1318, and the 16-2n-m bit data on the MSB side is stored in the storage area A1.
It is put in 910. Storage area A19 in step 1319
10 data is shifted to the LSB side by 2n−8 + m bits, and in step 1320, “m” 1917 is 16-2n−.
m is entered, and the process returns to step 1304. If “8-m” is smaller than “n” 1918 in step 1308, the process proceeds to step 1313.

【0087】次に受信したビット同期のデータのキャラ
クタ長が調歩同期のキャラクタ長よりも長い場合の処理
を説明する。
Next, the processing when the character length of the received bit synchronization data is longer than the character length of the start / stop synchronization will be described.

【0088】図17において、最初にステップ1702
で“m”1917が“16”に初期化され、ステップ1
703で記憶域A1910に回線1914から回線イン
タフェース1909を経由して受信装置1908により
ビット同期のアイドル区間のデータとして受信されたも
との16ビットの入力データが入力される。
In FIG. 17, first step 1702
"M" 1917 is initialized to "16" by step 1
At 703, the original 16-bit input data received as data in the idle section of bit synchronization from the line 1914 via the line interface 1909 to the storage area A 1910 is input.

【0089】ステップ1704で記憶域A1910のデ
ータのLSBが調べられる。ステップ1704でLSB
が“1”なら、ステップ1705で記憶域A1910の
データがLSBへ1ビットシフトされ、ステップ170
6で“m”1917から“1”が引かれ、ステップ17
07で“m”1917が“0”かどうかが調べられる。
もし“0”ならステップ1702へ戻り、もし“0”で
なければステップ1704へ戻る。またステップ170
4でLSBが“0”なら、ステップ1708で“16−
m”が値を調べられる。もし“16−m”が“n”19
18と等しければステップ1709で記憶域A1910
のデータがnビットのデータとして出力される。
In step 1704, the LSB of the data in storage area A 1910 is checked. LSB at step 1704
If is "1", the data in the storage area A1910 is shifted to the LSB by 1 bit in step 1705, and then in step 170
In step 6, “1” is subtracted from “m” 1917, and step 17
At 07, it is checked whether "m" 1917 is "0".
If it is "0", the process returns to step 1702. If it is not "0", the process returns to step 1704. Step 170
If the LSB is "0" at step 4, "16-" at step 1708.
"m" can check the value. If "16-m" is "n" 19
If it is equal to 18, the storage area A1910 in step 1709
Data is output as n-bit data.

【0090】もし“16−m”が“n”1918より大
きければステップ1710で記憶域A1910のデータ
と2n −1とが論理積されることによってもとの8ビッ
トのデータからLSB側のnビット分が分割されてnビ
ットのデータとして出力される。ステップ1711で記
憶域A1910のデータと216−2n とが論理積される
ことによってもとの16ビットのデータのMSB側の1
6−nビット分が分割されて記憶域A1910に入れら
れ、ステップ1712で記憶域A1910のデータがL
SB側にnビットシフトされる。
If "16-m" is larger than "n" 1918, the data in the storage area A 1910 is logically ANDed with 2 n -1 in step 1710, and the original 8-bit data is converted into n on the LSB side. Bits are divided and output as n-bit data. In step 1711, the data in the storage area A 1910 is logically ANDed with 2 16 -2 n to obtain 1 on the MSB side of the original 16-bit data.
6-n bits are divided and stored in the storage area A1910, and in step 1712, the data in the storage area A1910 is set to L.
N bits are shifted to the SB side.

【0091】ステップ1713で記憶域A1910のデ
ータが記憶域B1911に入れられ、ステップ1714
で回線1914から回線インタフェース1909を経由
して受信装置1908によりビット同期のアイドル区間
のデータとして受信された次のもとの16ビットのデー
タを記憶域A1910に入れられる。ステップ1715
で記憶域A1910のデータと22n-16+m −1とが論理
積されることによってもとの16ビットのデータからL
SB側の2n−16+mビット分が分割され、ステップ
1716で記憶域C1912のデータがMSB側に16
−m−nビットシフトされる。ステップ1717で記憶
域B1911のデータと記憶域C1912のデータとが
論理和されてnビットの出力データとされ、ステップ1
718で記憶域A1910のデータと216−22n-16+m
とが論理積されてMSB側の32−2n−mビットのデ
ータが記憶域A1910に入れられる。ステップ171
9で記憶域A1910のデータがLSB側に2n−16
+mビットシフトされ、ステップ1720で“m”19
17に32−2n−mが入れられ、ステップ1704へ
戻る。またステップ1708で“16−m”が“n”1
918より小さければ、ステップ1713へ進む。
In step 1713, the data in the storage area A1910 is put into the storage area B1911, and the step 1714 is executed.
Then, the next original 16-bit data received as data in the bit synchronization idle section from the line 1914 via the line interface 1909 is put into the storage area A1910. Step 1715
Then, the data in the storage area A1910 is logically ANDed with 2 2n-16 + m −1 to obtain L from the original 16-bit data.
2n-16 + m bits on the SB side are divided, and in step 1716, the data in the storage area C1912 is divided into 16 bits on the MSB side.
-M-n bits are shifted. In step 1717, the data in the storage area B1911 and the data in the storage area C1912 are logically ORed to obtain n-bit output data, and then step 1
718 and the data in the storage area A1910 and 2 16 -2 2n-16 + m
And are logically ANDed and 32-2n-m-bit data on the MSB side is stored in the storage area A 1910. Step 171
The data of the storage area A 1910 is 2n-16 on the LSB side in 9
+ M bits are shifted, and “m” 19 in step 1720
32-2n-m is put into 17 and the process returns to step 1704. Also, in step 1708, "16-m" is "n" 1.
If it is smaller than 918, the process proceeds to step 1713.

【0092】以上のように第5の実施例によれば、アイ
ドル区間におけるビット同期のデータを調歩同期のデー
タとして受信した場合に、受信したビット同期のデータ
のキャラクタ長が調歩同期のキャラクタ長と異なる場合
でも、スタートビットの検出を行なうことにより受信し
た調歩同期のデータを簡単に解読することができる。 [第6の実施例]請求項6の実施例として、請求項4の
実施例と同様に各受信データをビット単位で分解/合成
してビット同期のデータを調歩同期またはキャラクタ同
期のキャラクタ長と等しい所定のキャラクタ長に再構成
するとともに、受信したキャラクタ同期のデータを解読
することができるデータ通信方法の実施例を図9、図1
4、図18、図19で説明する。
As described above, according to the fifth embodiment, when the bit synchronization data in the idle section is received as the start / stop synchronization data, the character length of the received bit synchronization data is equal to the start / stop synchronization character length. Even if they are different, by detecting the start bit, the received start-stop synchronization data can be easily decoded. [Sixth Embodiment] As an embodiment of claim 6, similarly to the embodiment of claim 4, each received data is decomposed / combined bit by bit and the data of bit synchronization is set to the character length of start / stop synchronization or character synchronization. An embodiment of a data communication method capable of reconstructing to an equal predetermined character length and decoding received character synchronization data is shown in FIGS.
4, FIG. 18 and FIG.

【0093】なお説明を簡単にするためビット同期のキ
ャラクタ長は8ビットとする。まず図19を参照して、
装置1901は、制御装置1902と、それに接続され
る記憶装置1903と、一時記憶装置1904と、入力
装置1905と、出力装置1906と、送信装置190
7と、受信装置1908と、この送信装置1907と受
信装置1908に接続される回線インタフェース190
9とを備える。そして回線インタフェース1909は回
線1914に接続される。また一時記憶装置1904に
は記憶域A1910と、記憶域B1911と、記憶域C
1912と、記憶域D1913と、変数“i”を記憶す
るための領域1915と、変数“j”を記憶するための
領域1916と、変数“m”を記憶するための領域19
17と、変数“n”を記憶するための領域1918とを
備える。
To simplify the explanation, the bit synchronization character length is 8 bits. First, referring to FIG.
The device 1901 includes a control device 1902, a storage device 1903 connected thereto, a temporary storage device 1904, an input device 1905, an output device 1906, and a transmission device 190.
7, a receiving device 1908, and a line interface 190 connected to the transmitting device 1907 and the receiving device 1908.
9 is provided. The line interface 1909 is connected to the line 1914. The temporary storage device 1904 has a storage area A 1910, a storage area B 1911, and a storage area C.
1912, a storage area D1913, an area 1915 for storing the variable “i”, an area 1916 for storing the variable “j”, and an area 19 for storing the variable “m”.
17 and an area 1918 for storing the variable “n”.

【0094】このような装置1901において、制御装
置1902は、入力装置1905からの指示あるいは記
憶装置1903または一時記憶装置1904に記録され
ている指示により、記憶装置1903または一時記憶装
置1904に記録されている手順によって、場合によっ
ては一時記憶装置1904を作業場所として動作する。
このとき制御装置1902は、入力装置1905から入
力された情報あるいは記憶装置1903または一時記憶
装置1904に記録されている情報を、そのままあるい
は変換して通信データとして送信装置1907から回線
インタフェース1909を経由して回線1914へ送出
する。
In such a device 1901, the control device 1902 is recorded in the storage device 1903 or the temporary storage device 1904 according to an instruction from the input device 1905 or an instruction recorded in the storage device 1903 or the temporary storage device 1904. Depending on the procedure, the temporary storage device 1904 operates as a work place in some cases.
At this time, the control device 1902 converts the information input from the input device 1905 or the information recorded in the storage device 1903 or the temporary storage device 1904 as it is or by converting it as communication data from the transmission device 1907 via the line interface 1909. To the line 1914.

【0095】ここで図9において送出する情報はオープ
ニング・フラグ・キャラクタ901、ダミー・キャラク
タ902、クロージング・フラグ・キャラクタ903、
アボート・キャラクタ904に引続いて、キャラクタ同
期データ906が送られる。またアボート・キャラクタ
904とキャラクタ同期データ906の間に、xビット
のダミー・データ905を送ってもかまわない。
Here, the information transmitted in FIG. 9 is the opening flag character 901, the dummy character 902, the closing flag character 903,
Following the abort character 904, character synchronization data 906 is sent. Further, x-bit dummy data 905 may be sent between the abort character 904 and the character synchronization data 906.

【0096】次に、図19において、制御装置1902
は、回線1914から回線インタフェース1909を経
由して受信装置1908からそのままあるいは変換し
て、一時記憶装置1904に記録し、あるいは出力装置
1906に出力し、あるいはこれらの情報をもとにして
何らかの動作を行なう。このとき制御装置1902は、
入力装置1905からの指示あるいは記憶装置1903
または一時記憶装置1904に記録されている指示によ
り、記憶装置1903または一時記憶装置1904に記
録されている手順によって、場合によっては一時記憶装
置1904を作業場所として、動作する。
Next, referring to FIG. 19, a controller 1902 is provided.
Is directly or converted from the receiving device 1908 via the line 1914 via the line interface 1909, and is recorded in the temporary storage device 1904 or is output to the output device 1906, or some operation is performed based on these information. To do. At this time, the control device 1902
Instruction from input device 1905 or storage device 1903
Alternatively, according to an instruction stored in the temporary storage device 1904, the storage device 1903 or the procedure stored in the temporary storage device 1904 is used, and in some cases, the temporary storage device 1904 is used as a work place.

【0097】ここで受信する情報からオープニング・ダ
ミー・フレーム911を読み捨て、その後に続くキャラ
クタ同期データ906を次の方法で処理する。
The opening dummy frame 911 is read out from the information received here, and the following character synchronization data 906 is processed by the following method.

【0098】まず受信したビット同期のデータのキャラ
クタ長がキャラクタ同期のキャラクタ長より短い場合の
処理を説明する。
First, the processing when the character length of the received bit synchronous data is shorter than the character synchronous character length will be described.

【0099】図14において、ステップ1402で記憶
域A1910に、回線1914から回線インタフェース
1909を経由して受信装置1908によりビット同期
のアイドル区間のデータとし受信されたもとの8ビット
の入力データが入れられる。次にステップ1403で
“m”1917が“8−n”に初期化され、ステップ1
404で記憶域A1910のデータのLSB側のnビッ
トが調べられる。ステップ1404でLSB側のnビッ
トがSYNキャラクタでなければ、ステップ1405で
記憶域A1910のデータがLSB側へ1ビットシフト
され、ステップ1406で“m”1917から“1”が
引かれる。ステップ1407で“m”1917が“0”
かどうかが調べられ、もし“0”ならステップ1413
へ進み、もし“0”でなければステップ1404へ戻
る。またステップ1404でLSB側のnビットがSY
Nキャラクタなら、ステップ1408で“n+m”の値
が調べられる。
In FIG. 14, in step 1402, the storage area A 1910 is filled with the original 8-bit input data received as the data in the idle section of the bit synchronization from the line 1914 via the line interface 1909 by the receiving device 1908. Next, in step 1403, “m” 1917 is initialized to “8-n”, and step 1
At 404, the n bits on the LSB side of the data in the storage area A 1910 are examined. If the n bits on the LSB side are not SYN characters in step 1404, the data in the storage area A 1910 is shifted by 1 bit to the LSB side in step 1405, and "1" is subtracted from "m" 1917 in step 1406. In step 1407, “m” 1917 is “0”
Whether it is “0” is determined in step 1413.
Go to step 1404, if not "0". In step 1404, the n bits on the LSB side are SY.
If it is an N character, the value of "n + m" is checked in step 1408.

【0100】“n+m”の値が“n”1918なら、ス
テップ1409で記憶域A1910のデータがnビット
の出力データとされる。また“n+m”の値が“n”1
918と等しくなければ、ステップ1410で記憶域A
1910のデータに2n −1が論理積されることによっ
てもとの8ビットのデータからLSB側のnビット分が
分割されてnビットのデータとして出力される。ステッ
プ1411で記憶域A1910のデータと28 −2n
が論理積されることよってもとの8ビットのデータのM
SB側の8−nビット分が分割されて記憶域A1910
に入れられ、ステップ1412で記憶域A1910のデ
ータがLSB側にnビットシフトされ、ステップ141
3で記憶域A1910のデータが記憶域B1911に入
れられる。ステップ1414で記憶域D1913のデー
タの有無が調べられ、もしデータがあればステップ14
15で記憶域D1913のデータがNSB側へ(記憶域
B1911の有効ビット数)ビットシフトされ、ステッ
プ1416で記憶域B1911のデータと記憶域D19
13のデータとが論理和されて記憶域B1911に入れ
られ、ステップ1417へ進む。またステップ1414
で記憶域D1913にデータがない場合には、直ちにス
テップ1417へ進む。
If the value of "n + m" is "n" 1918, the data in the storage area A 1910 is used as n-bit output data in step 1409. Also, the value of "n + m" is "n" 1
If not equal to 918, then in step 1410 storage area A
By logically ANDing 2 n −1 with the data of 1910, n bits on the LSB side are divided from the original 8 bits of data and output as n bits of data. In step 1411, the data in the storage area A 1910 and 2 8 -2 n are logically ANDed to obtain the original M of 8-bit data.
Storage area A1910 is obtained by dividing 8-n bits on the SB side.
, And the data in the storage area A 1910 is shifted to the LSB side by n bits in step 1412.
At 3, the data in the storage area A1910 is put into the storage area B1911. In step 1414, it is checked whether there is data in the storage area D1913, and if there is data, step 14
In step 15, the data in the storage area D1913 is bit-shifted to the NSB side (the number of effective bits in the storage area B1911), and in step 1416, the data in the storage area B1911 and the storage area D19 are stored.
The data of 13 are logically ORed and stored in the storage area B1911, and the process proceeds to step 1417. Step 1414
If there is no data in the storage area D1913, the process immediately proceeds to step 1417.

【0101】ステップ1417では、回線1914から
回線インタフェース1909を経由して受信装置190
8によりビット同期のアイドル区間のデータとして受信
された次のもとの8ビットのデータが記憶域A1910
に入れられる。ステップ1418で記憶域A1910の
データと2k −1(k=(8−記憶域B1911の有効
ビット数))とが論理積されることによってもとの8ビ
ットのデータからLSB側の(8−記憶域B1911の
有効ビット数)ビットが分割される。ステップ1419
で記憶域C1912のデータがMSB側に(記憶域B1
911の有効ビット数)ビットシフトされ、ステップ1
420で記憶域B1911のデータと記憶域C1912
のデータとが論理和されて記憶域A1910に入れられ
る。ステップ1421で記憶域A1910のデータと2
8 −2k (k=(8−記憶域B1911の有効ビット
数))とが論理積されてMSB側の(記憶域B1911
の有効ビット数)ビットのデータが記憶域D1913に
入れられ、ステップ1403へ戻る。
At step 1417, the receiving device 190 is connected from the line 1914 via the line interface 1909.
The following original 8-bit data received as data in the idle period of bit synchronization by 8 is stored in the storage area A1910.
Can be put in. In step 1418, the data in the storage area A 1910 and 2 k -1 (k = (8-the effective number of bits in the storage area B 1911)) are logically ANDed to convert the original 8-bit data from the LSB side (8- The number of effective bits of the storage area B1911) is divided. Step 1419
The data in storage area C1912 is transferred to the MSB side (storage area B1
911 effective bits) bit-shifted, step 1
Data in storage area B1911 and storage area C1912 in 420
Data is logically ORed into the storage area A1910. In step 1421, data in the storage area A 1910 and 2
8 −2 k (k = (8−the number of effective bits of the storage area B1911)) is logically ANDed and (MS storage area B1911)
(The effective number of bits of) is stored in the storage area D1913, and the process returns to step 1403.

【0102】次に受信したビット同期のデータのキャラ
クタ長がキャラクタ同期のキャラクタ長より長い場合の
処理を説明する。
Next, the processing when the character length of the received bit synchronous data is longer than the character synchronous character length will be described.

【0103】図18を参照して、ステップ1802で記
憶域A1910に回線1914から回線インタフェース
1909を経由して受信装置1908によりビット同期
のアイドル区間のデータとして受信されたもとの16ビ
ットの入力データが入れられ、ステップ1803で
“m”1917が“16−n”に初期化される。ステッ
プ1804で記憶域A1910のデータのLSB側のn
ビットが調べられる。ステップ1804でLSB側のn
ビットがSYNキャラクタでなければ、ステップ180
5で記憶域A1910のデータがLSBへ1ビットシフ
トされ、ステップ1806で“m”1917から“1”
が引かれる。ステップ1807で“m”1917が
“0”かどうかが調べられ、もし“0”ならステップ1
813へ進み、もし“0”でなければステップ1804
へ戻る。またステップ1804でLSB側のnビットが
SYNキャラクタなら、ステップ1808で“n+m”
の値が調べられる。
Referring to FIG. 18, in step 1802, the storage area A 1910 is filled with the original 16-bit input data received as the data in the idle section of the bit synchronization from the line 1914 via the line interface 1909 by the receiving device 1908. Then, in step 1803, “m” 1917 is initialized to “16-n”. In step 1804, n on the LSB side of the data in the storage area A 1910
The bits are examined. In step 1804, n on the LSB side
If the bit is not a SYN character, step 180
In step 5, the data in the storage area A1910 is shifted to the LSB by 1 bit, and in step 1806, "m" 1917 to "1".
Is drawn. In step 1807, it is checked whether "m" 1917 is "0", and if "0", step 1
Proceed to 813, and if not "0", step 1804.
Return to If the n bit on the LSB side is a SYN character in step 1804, "n + m" is determined in step 1808.
The value of is examined.

【0104】“n+m”の値が“n”1918なら、ス
テップ1809で記憶域A1910のデータがnビット
の出力データとされる。また“n+m”の値が“n”1
918と等しくなければ、ステップ1810で記憶域A
1910のデータと2n −1とが論理積されることによ
ってもとの8ビットのデータからLSB側のnビット分
が分割されてnビットのデータとして出力される。ステ
ップ1811で記憶域A1910のデータと216−2n
とが論理積されることによってもとの16ビットのデー
タのMSB側の16−nビット分が分割されて記憶域A
1910に入れられ、ステップ1812で記憶域A19
10のデータがLSB側にnビットシフトされる。ステ
ップ1813で記憶域A1910のデータが記憶域B1
911に入れられ、ステップ1814で記憶域D191
3のデータの有無が調べられる。もしデータがあればス
テップ1815で記憶域D1913のデータがMSBへ
(記憶域B1911の有効ビット数)ビットシフトさ
れ、ステップ1816で記憶域B1911のデータと記
憶域D1913のデータとが論理和されて記憶域B19
11に入れられ、ステップ1817へ進む。またステッ
プ1814で記憶域D1913にデータがない場合に
は、直ちにステップ1817へ進む。
If the value of "n + m" is "n" 1918, the data in the storage area A 1910 is set to n-bit output data in step 1809. Also, the value of "n + m" is "n" 1
If not equal to 918, then in step 1810 storage area A
By logically ANDing the data of 1910 and 2 n −1, the original 8-bit data is divided into n bits on the LSB side and output as n-bit data. In step 1811, the data in storage area A 1910 and 2 16 -2 n
16-n bits on the MSB side of the original 16-bit data are divided by ANDing with the storage area A
1910, and in step 1812 the storage area A19
10 bits of data are shifted to the LSB side by n bits. In step 1813, the data in the storage area A1910 is stored in the storage area B1.
911 and storage area D191 in step 1814.
The presence or absence of the data of 3 is checked. If there is data, the data in the storage area D1913 is bit-shifted to the MSB (the number of effective bits in the storage area B1911) in step 1815, and the data in the storage area B1911 and the data in the storage area D1913 are logically ORed and stored in step 1816. Area B19
11 is entered, and the process proceeds to step 1817. If there is no data in the storage area D1913 in step 1814, the process immediately proceeds to step 1817.

【0105】ステップ1817では、回線1914から
回線インタフェース1909を経由して受信装置190
8によりビット同期のアイドル区間のデータとして受信
された次のもとの16ビットのデータが記憶域A191
0に入れられる。ステップ1818で記憶域A1910
のデータと2k −1(k=(16−記憶域B1911の
有効ビット数))とが論理積されることによってもとの
16ビットのデータからLSB側の(16−記憶域B1
911の有効ビット数)ビットが分割される。ステップ
1819で記憶域C1912のデータがMSB側に(記
憶域B1911の有効ビット数)ビットシフトされ、ス
テップ1820で記憶域B1911のデータと記憶域C
1912のデータとが論理和されて記憶域A1910に
入れられる。ステップ1821で記憶域A1910のデ
ータと216−2k (k=(16−記憶域B1911の有
効ビット数))とが論理積されてMSB側の(記憶域B
1911の有効ビット数)ビットのデータが記憶域D1
913に入れられ、ステップ1803へ戻る。
At step 1817, the receiving device 190 is connected from the line 1914 via the line interface 1909.
The following original 16-bit data received as data of the idle section of bit synchronization by 8 is stored in the storage area A191.
It can be put in 0. Storage area A1910 in step 1818
And 2 k −1 (k = (16−the number of effective bits of storage area B1911)) are logically ANDed to obtain (16−storage area B1 on the LSB side from the original 16-bit data.
911 effective bits) bits are divided. In step 1819, the data in the storage area C1912 is bit-shifted to the MSB side (the number of effective bits in the storage area B1911), and in step 1820, the data in the storage area B1911 and the storage area C are stored.
The data in 1912 is logically ORed and stored in the storage area A 1910. In step 1821, the data in the storage area A 1910 and 2 16 −2 k (k = (16−the effective number of bits in the storage area B 1911)) are logically ANDed to each other (the storage area B on the MSB side).
1911 effective bit number) bit data is stored in the storage area D1
It is put in 913 and it returns to step 1803.

【0106】以上のように第6の実施例によれば、アイ
ドル区間におけるビット同期のデータをキャラクタ同期
のデータとして受信した場合に、ビット同期のデータの
キャラクタ長がキャラクタ同期のキャラクタ長と異なる
場合でも、同期キャラクタの検出を行なうことにより、
受信したキャラクタ同期のデータを簡単に解読すること
ができる。
As described above, according to the sixth embodiment, when the bit synchronization data in the idle section is received as the character synchronization data and the character length of the bit synchronization data is different from the character synchronization character length. However, by detecting the sync character,
The received character synchronization data can be easily decoded.

【0107】[0107]

【発明の効果】以上のようにこの発明の請求項1の記載
のデータ通信方法によれば、送信側において調歩同期の
データまたはキャラクタ同期のデータの先頭にダミーの
ビット同期のパケットを付加し、受信側においてビット
同期のパケットを検出し、ビット同期のパケットを検出
したときには以降のアイドル区間におけるビット同期の
データを調歩同期のデータまたはキャラクタ同期のデー
タとして受信するので、ビット同期回路のみを有する通
信装置であっても、これを用いてビット同期の通信デー
タのみならず調歩同期およびキャラクタ同期の通信デー
タも高速に送受信できるデータ通信方法を提供すること
ができる。
As described above, according to the data communication method of the first aspect of the present invention, the dummy bit synchronization packet is added to the beginning of the start-stop synchronization data or the character synchronization data at the transmitting side, The bit sync packet is detected at the receiving side, and when the bit sync packet is detected, the bit sync data in the subsequent idle section is received as start-stop sync data or character sync data. Even in the case of using the device, it is possible to provide a data communication method capable of transmitting and receiving not only bit-synchronized communication data but also start-stop synchronization and character-synchronization communication data at high speed.

【0108】また請求項2に記載のデータ通信方法によ
れば、請求項1に記載の発明の効果に加え、送信側にお
いて調歩同期またはキャラクタ同期のデータの後にダミ
ーのビット同期のパケットを付加し、受信側において調
歩同期またはキャラクタ同期のデータの後に付加された
ダミーのビット同期のパケットを検出し、調歩同期のデ
ータまたはキャラクタ同期のデータの終端を判別するの
で、請求項1においてアイドル区間におけるビット同期
のデータを調歩同期のデータまたはキャラクタ同期のデ
ータとして受信したときに、調歩同期のデータまたはキ
ャラクタ同期のデータのパケットの終りを知ることがで
きるデータ通信方法を提供することができる。
According to the data communication method of the second aspect, in addition to the effect of the first aspect of the invention, a dummy bit synchronization packet is added after the start-stop synchronization or character synchronization data on the transmitting side. The bit in the idle section according to claim 1, wherein the receiving side detects a dummy bit-sync packet added after the start-stop sync or character-sync data and determines the end of the start-stop sync data or the character-sync data. It is possible to provide a data communication method capable of knowing the end of the packet of start-stop synchronization data or character-sync data when the synchronization data is received as start-stop synchronization data or character-sync data.

【0109】また請求項3に記載のデータ通信方法によ
れば、請求項1に記載の発明の効果に加え、調歩同期の
通信データを送受信するときの送信側において、ダミー
のビット同期のパケットと調歩同期のデータとの間に、
((ビット同期のキャラクタ長)−1)ビットのダミー
データを付加して送信し、その調歩同期の通信データの
受信側において、((ビット同期のキャラクタ長)−
1)ビットのダミーデータおよびその後に続く調歩同期
のスタートビットに相当するデータ以降のビット同期の
データを調歩同期のデータとして受信するので、請求項
1においてアイドル区間におけるビット同期のデータを
調歩同期のデータとして受信した場合に、調歩同期では
各データがスタートビットから始まるけれども、これを
除去することにより、ビット同期として受信したデータ
から調歩同期のデータを簡単に解読できるデータ通信方
法を提供することができる。
According to the data communication method of the third aspect, in addition to the effect of the invention of the first aspect, a dummy bit synchronization packet is transmitted on the transmitting side when transmitting / receiving start / stop synchronization communication data. Between the start-stop synchronization data,
((Bit-synchronized character length) -1) Dummy data is added and transmitted, and at the receiving side of the start-stop synchronized communication data, ((bit-synchronized character length)-
1) Since the bit synchronization data and the data corresponding to the bit synchronization data subsequent to the data corresponding to the start bit of the start-stop synchronization are received as the start-stop synchronization data, the bit-synchronization data in the idle section according to claim 1 is received. When received as data, each data starts with a start bit in start-stop synchronization, but by removing this, it is possible to provide a data communication method that can easily decode start-stop synchronization data from data received as bit-synchronization. it can.

【0110】また請求項4に記載のデータ通信方法によ
れば、請求項1に記載の発明の効果に加え、受信側にお
いて、調歩同期のデータまたはキャラクタ同期のデータ
として受信したビット同期のデータのキャラクタ長が、
調歩同期のキャラクタ長またはキャラクタ同期のキャラ
クタ長と異なるときは、ビット同期の各受信データをビ
ット単位で分解/合成することにより、前記調歩同期の
キャラクタ長またはキャラクタ同期のキャラクタ長と等
しい所定のキャラクタ長のキャラクタに再構成するの
で、請求項1においてアイドル区間におけるビット同期
のデータを調歩同期のデータまたはキャラクタ同期のデ
ータして受信した場合に、調歩同期のデータまたはキャ
ラクタ同期のデータとして受信したビット同期のデータ
のキャラクタ長が、調歩同期のキャラクタ長またはキャ
ラクタ同期のキャラクタ長と異なる場合でも、受信した
調歩同期のデータまたはキャラクタ同期のデータを簡単
に解読できるデータ通信方法を提供することができる。
According to the data communication method of the fourth aspect, in addition to the effect of the first aspect of the invention, the data of the bit synchronization received as the data of the start-stop synchronization or the data of the character synchronization is received on the receiving side. The character length is
If the character length is different from the character length in the start-stop synchronization or the character length in the character synchronization, the received data in the bit-sync is decomposed / combined in bit units to obtain a predetermined character equal to the character length in the start-stop synchronization or the character length in the character synchronization. Since the data is reconstructed into a long character, the bit received as the start-stop synchronization data or the character synchronization data when the bit synchronization data in the idle section is received as the start-stop synchronization data or the character synchronization data. It is possible to provide a data communication method capable of easily decoding received start-stop synchronization data or character-sync data even when the character length of the start-sync data is different from the character length of start-stop synchronization or the character length of character-sync.

【0111】また請求項5に記載のデータ通信方法によ
れば、請求項4に記載の発明の効果に加え、調歩同期の
通信データを送受信するときの受信側において、各受信
データをビット単位で合成/分解することにより調歩同
期のキャラクタ長と等しい所定のキャラクタ長の調歩同
期のキャラクタに再構成し、調歩同期のデータのスター
トビットを検出した後、調歩同期のデータを解読するの
で、請求項4においてアイドル区間におけるビット同期
のデータを調歩同期のデータとして受信した場合に調歩
同期のデータとして受信したビット同期のデータのキャ
ラクタ長が調歩同期のキャラクタ長と異なる場合でも、
スタートビットの検出を行なうことにより、受信した調
歩同期のデータを簡単に解読できるデータ通信方法を提
供することができる。
According to the data communication method of the fifth aspect, in addition to the effect of the invention of the fourth aspect, each reception data is transmitted in bit units at the receiving side when transmitting / receiving start / stop synchronization communication data. Claims: Since the data is reconstructed by synthesizing / disassembling into a character of start / stop synchronization having a predetermined character length equal to the character length of start / stop synchronization, the start bit of start / stop synchronization data is detected, and then the start / stop synchronization data is decoded. Even when the character length of the bit synchronization data received as the start-stop synchronization data when the bit synchronization data in the idle section is received as the start-stop synchronization data in 4 is different from the start-stop synchronization character length,
By detecting the start bit, it is possible to provide a data communication method capable of easily decoding received start-stop synchronization data.

【0112】また請求項6に記載のデータ通信方法によ
れば、請求項4に記載の発明の効果に加え、キャラクタ
同期の通信データを送受信するときの受信側において、
各受信データをビット単位で分解/合成することにより
キャラクタ同期のキャラクタ長と等しい所定のキャラク
タ長のキャラクタ同期のキャラクタに再構成し、キャラ
クタ同期のデータの同期キャラクタを検出した後、キャ
ラクタ同期のデータを解読するので、請求項4において
アイドル区間におけるビット同期のデータを調歩同期の
データとして受信した場合に調歩同期のデータとして受
信したビット同期のデータのキャラクタ長が調歩同期の
キャラクタ長と異なる場合でも、同期キャラクタの検出
を行なうことにより、受信したキャラクタ同期のデータ
を簡単に解読できるデータ通信方法を提供することがで
きる。
According to the data communication method of the sixth aspect, in addition to the effect of the invention of the fourth aspect, on the receiving side when transmitting and receiving character-synchronized communication data,
After each received data is decomposed / combined bit by bit, it is reconstructed into a character-synchronized character having a predetermined character length equal to the character-synchronized character length, and the character-synchronized data of the character-synchronized data is detected. Therefore, even if the character length of the bit synchronization data received as the start / stop synchronization data is different from that of the start / stop synchronization when the bit synchronization data in the idle section is received as the start / stop synchronization data. By detecting the synchronization character, it is possible to provide a data communication method that can easily decode the received character synchronization data.

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

【図1】調歩同期、キャラクタ同期、ビット同期の各通
信方式の説明図である。
FIG. 1 is an explanatory diagram of communication methods of start-stop synchronization, character synchronization, and bit synchronization.

【図2】ビット同期のゼロ挿入/ゼロ削除の説明図であ
る。
FIG. 2 is an explanatory diagram of zero insertion / zero deletion in bit synchronization.

【図3】ビット同期のゼロ挿入/ゼロ削除が行なわれる
区間とゼロ挿入/ゼロ削除が行なわれない区間との説明
図である。
FIG. 3 is an explanatory diagram of a section in which zero insertion / zero deletion of bit synchronization is performed and a section in which zero insertion / zero deletion is not performed.

【図4】請求項1に係る第1の実施例の通信データの図
である。
FIG. 4 is a diagram of communication data according to the first embodiment of claim 1.

【図5】請求項2に係る第2の実施例の通信データの図
である。
FIG. 5 is a diagram of communication data of the second embodiment according to claim 2;

【図6】請求項3に係る第3の実施例の通信データの図
である。
FIG. 6 is a diagram of communication data of a third embodiment according to claim 3;

【図7】請求項4に係る第4の実施例の通信データの図
である。
FIG. 7 is a diagram of communication data of a fourth embodiment according to claim 4;

【図8】請求項5に係る第5の実施例の通信データの図
である。
FIG. 8 is a diagram of communication data of the fifth embodiment according to claim 5;

【図9】請求項6に係る第6の実施例の通信データの図
である。
FIG. 9 is a diagram of communication data of the sixth embodiment according to claim 6;

【図10】請求項1、請求項2および請求項3に係る第
1の実施例,第2の実施例および第3の実施例の装置例
を示すブロック図である。
FIG. 10 is a block diagram showing a device example of a first embodiment, a second embodiment and a third embodiment according to claim 1, claim 2 and claim 3;

【図11】請求項4に係る第4の実施例における受信デ
ータのキャラクタ長が短い場合の受信データの分解/合
成の具体的説明図である。
FIG. 11 is a specific explanatory diagram of decomposition / combination of received data when the character length of the received data is short according to the fourth embodiment of the present invention.

【図12】請求項4に係る第4の実施例における受信デ
ータのキャラクタ長が短い場合の受信データの分解/合
成のフローチャートである。
FIG. 12 is a flowchart of decomposition / composition of received data when the character length of the received data is short according to the fourth embodiment of the present invention.

【図13】請求項5に係る第5の実施例における受信デ
ータの処理のフローチャートである。
FIG. 13 is a flowchart of processing received data in a fifth embodiment according to claim 5;

【図14】請求項6に係る第6の実施例における受信デ
ータの処理のフローチャートである。
FIG. 14 is a flowchart of a process of received data in a sixth embodiment according to claim 6;

【図15】請求項4に係る第4の実施例における受信デ
ータのキャラクタ長が長い場合の受信データの分解/合
成の具体的説明図である。
FIG. 15 is a specific explanatory diagram of disassembling / combining the received data when the character length of the received data is long according to the fourth embodiment of the present invention.

【図16】請求項4に係る第4の実施例における受信デ
ータのキャラクタ長が長い場合の受信データの分解/合
成のフローチャートである。
FIG. 16 is a flowchart of decomposition / composition of received data when the character length of the received data is long according to the fourth embodiment of the present invention.

【図17】請求項5に係る第5の実施例における受信デ
ータの処理のフローチャートである。
FIG. 17 is a flowchart of processing of received data in a fifth embodiment according to claim 5;

【図18】請求項6に係る第6の実施例における受信デ
ータの処理のフローチャートである。
FIG. 18 is a flowchart of a process of received data in a sixth embodiment according to claim 6;

【図19】請求項4、請求項5および請求項6に係る第
4の実施例,第5の実施例および第6の実施例の装置例
を示すブロック図である。
FIG. 19 is a block diagram showing a device example of a fourth embodiment, a fifth embodiment and a sixth embodiment according to claim 4, claim 5 and claim 6;

【図20】請求項4に係る第4の実施例における受信デ
ータのキャラクタ長が短い場合の受信データの分解/合
成の一般的説明図である。
FIG. 20 is a general explanatory diagram of decomposition / composition of received data when the character length of the received data is short according to the fourth embodiment of the present invention.

【図21】請求項4に係る第4の実施例における受信デ
ータのキャラクタ長が長い場合の受信データの分解/合
成の一般的説明図である。
FIG. 21 is a general explanatory diagram of decomposition / synthesis of received data when the character length of the received data is long according to the fourth embodiment of the present invention.

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

101 調歩同期 102 キャラクタ同期 103,301 ビット同期 104,607,807 スタート・ビット 405 ビット同期のダミー・フレーム 408,507 ビット同期のアイドル区間 406,506,706 調歩同期あるいはキャラクタ
同期のデータ・フレーム 606,806 調歩同期のデータ・フレーム 906 キャラクタ同期のデータ・フレーム 407 調歩同期あるいはキャラクタ同期のアイドル区
101 Asynchronous 102 Character Synchronous 103,301 Bit Synchronous 104,607,807 Start Bit 405 Bit Synchronous Dummy Frame 408,507 Bit Synchronous Idle Section 406,506,706 Asynchronous or Character Synchronous Data Frame 606 806 Asynchronous data frame 906 Character synchronous data frame 407 Asynchronous or character synchronous idle section

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ビット同期回路のみを有する通信装置で
調歩同期またはキャラクタ同期の通信データを送受信す
る通信方法であって、 送信側において、 調歩同期のデータまたはキャラクタ同期のデータの先頭
にダミーのビット同期のパケットを付加して送信するス
テップと、 受信側において、 ビット同期のパケットを検出するステップと、 ビット同期のパケットを検出したときには以降のアイド
ル区間におけるビット同期のデータを調歩同期のデータ
またはキャラクタ同期のデータとして受信するステップ
とを含むデータ通信方法。
1. A communication method for transmitting and receiving communication data of start-stop synchronization or character synchronization in a communication device having only a bit synchronization circuit, wherein a dummy bit is provided at the beginning of start-stop synchronization data or character synchronization data on the transmission side. When a sync packet is added and transmitted, at the receiving side, a bit sync packet is detected, and when a bit sync packet is detected, the bit sync data in the idle period after that is detected. And a step of receiving as synchronous data.
【請求項2】 送信側において、 調歩同期のデータまたはキャラクタ同期のデータの後に
もダミーのビット同期のパケットを付加して送信するス
テップと、 受信側において、 前記調歩同期のデータまたはキャラクタ同期のデータの
後に付加された前記ダミーのビット同期のパケットを検
出し、前記調歩同期のデータまたはキャラクタ同期のデ
ータの終端を判別するステップとをさらに含む請求項1
に記載のデータ通信方法。
2. A step of adding a dummy bit synchronization packet after the start-stop synchronization data or the character synchronization data at the transmitting side and transmitting the data, and a step of receiving the start-stop synchronization data or the character synchronization data at the receiving side. Further comprising the step of detecting the dummy bit synchronization packet added after, and determining the end of the start-stop synchronization data or the character synchronization data.
The data communication method described in 1.
【請求項3】 調歩同期の通信データを送受信するとき
の送信側において、 前記ダミーのビット同期のパケットと前記調歩同期のデ
ータとの間に、((ビット同期のキャラクタ長)−1)
ビットのダミーデータを付加して送信するステップと、 受信側において、 前記((ビット同期のキャラクタ長)−1)ビットのダ
ミーデータおよびその後に続く調歩同期のスタートビッ
トに相当するデータ以降のビット同期のデータを調歩同
期のデータとして受信するステップとをさらに含む請求
項1に記載のデータ通信方法。
3. On the transmitting side when transmitting / receiving start / stop synchronization communication data, between the dummy bit synchronization packet and the start / stop synchronization data, ((bit synchronization character length) -1)
And a step of adding dummy data of bits, and at the receiving side, bit synchronization of the data corresponding to the ((bit synchronization character length) -1) bits of dummy data and the start bit of the start-stop synchronization that follows. The data communication method according to claim 1, further comprising the step of: receiving the data of step 1 as start-stop synchronization data.
【請求項4】 受信側において、 調歩同期のデータまたはキャラクタ同期のデータとして
受信したビット同期のデータのキャラクタ長が、調歩同
期のキャラクタ長またはキャラクタ同期のキャラクタ長
と異なるときには、各受信データをビット単位で分解/
合成することによりビット同期のデータを前記調歩同期
のキャラクタ長またはキャラクタ同期のキャラクタ長と
等しい所定のキャラクタ長のキャラクタに再構成するス
テップとをさらに含む請求項1に記載のデータ通信方
法。
4. When the character length of the bit synchronization data received as the start-stop synchronization data or the character synchronization data at the receiving side is different from the start-stop synchronization character length or the character synchronization character length, each received data is bit-coded. Disassemble in units /
The data communication method according to claim 1, further comprising the step of reconstructing bit-synchronized data into a character having a predetermined character length equal to the character length of the start-stop synchronization or the character length of character synchronization by combining.
【請求項5】 調歩同期の通信データを送受信する通信
方法であって、受信側において、 各受信データをビット単位で分解/合成することにより
調歩同期のキャラクタ長と等しい所定のキャラクタ長の
調歩同期のキャラクタに再構成し、調歩同期のデータの
スタートビットを検出した後、調歩同期のデータを解読
するステップをさらに含む請求項4に記載のデータ通信
方法。
5. A communication method for transmitting / receiving start / stop synchronization communication data, wherein the reception side decomposes / combines each received data in bit units to obtain a start / stop synchronization of a predetermined character length equal to the start / stop synchronization character length. 5. The data communication method according to claim 4, further comprising the step of reconstructing the start character of the start / stop synchronization data and decoding the start / stop synchronization data.
【請求項6】 キャラクタ同期の通信データを送受信す
る通信方法であって、受信側において、 各受信データをビット単位で分解/合成することにより
キャラクタ同期のキャラクタ長と等しい所定のキャラク
タ長のキャラクタ同期のキャラクタに再構成し、キャラ
クタ同期のデータの同期キャラクタを検出した後、キャ
ラクタ同期のデータを解読するステップをさらに含む請
求項4に記載のデータ通信方法。
6. A communication method for transmitting and receiving character-synchronized communication data, wherein the receiving side decomposes / combines each received data bit by bit to obtain a character synchronization having a predetermined character length equal to the character length of the character synchronization. 5. The data communication method according to claim 4, further comprising the step of reconstructing the character synchronization data, detecting the synchronization character of the character synchronization data, and then decoding the character synchronization data.
JP16393095A 1995-06-29 1995-06-29 Data communication method Expired - Fee Related JP3176024B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16393095A JP3176024B2 (en) 1995-06-29 1995-06-29 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16393095A JP3176024B2 (en) 1995-06-29 1995-06-29 Data communication method

Publications (2)

Publication Number Publication Date
JPH0918513A true JPH0918513A (en) 1997-01-17
JP3176024B2 JP3176024B2 (en) 2001-06-11

Family

ID=15783534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16393095A Expired - Fee Related JP3176024B2 (en) 1995-06-29 1995-06-29 Data communication method

Country Status (1)

Country Link
JP (1) JP3176024B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100385887C (en) * 1997-05-07 2008-04-30 西门子公司 Method and device for coding, transmitting and decoding digital data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100385887C (en) * 1997-05-07 2008-04-30 西门子公司 Method and device for coding, transmitting and decoding digital data

Also Published As

Publication number Publication date
JP3176024B2 (en) 2001-06-11

Similar Documents

Publication Publication Date Title
JP4435096B2 (en) Data transmission method, data equalization method and apparatus
ATE464709T1 (en) METHOD FOR SYNCHRONIZING DATA
JPH11510036A (en) Decryption of retransmitted data in encrypted communication systems
JP2853784B2 (en) Encoding / decoding device
JPH0918513A (en) Data communication method
JP2947074B2 (en) Frame synchronization detection circuit
JP3158711B2 (en) Data transfer method
JPH04348638A (en) Data transmission method
JP3327305B2 (en) Encoded information communication method
JP3224310B2 (en) Parallel transmission line decoding processor
JP3061975B2 (en) Serial transmission method
KR0162221B1 (en) Device and method for managing error of digital audio transmission signal
JP2857852B2 (en) Frame synchronization code detection circuit
JP3245622B2 (en) Pattern comparison method
JP2674799B2 (en) High efficiency digital add / drop device
KR100292946B1 (en) Block decoding circuit
JPS6240834A (en) Code transmission system
JPH11284612A (en) Method and device for transmission, circuit and method for clock regeneration
JPH0669176B2 (en) Secret communication method
JPH10145343A (en) Multiplex transmission circuit
JPH0123016B2 (en)
JPH07202951A (en) Asynchronous data receiver
JPH07154386A (en) Control data communication system
JPS5862950A (en) Data transmission system
JPS63232641A (en) Digital transmission method for voice signal by vocoder 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: 20010321

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

Free format text: PAYMENT UNTIL: 20080406

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090406

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090406

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100406

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100406

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110406

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130406

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees