JPH0417579B2 - - Google Patents
Info
- Publication number
- JPH0417579B2 JPH0417579B2 JP59250223A JP25022384A JPH0417579B2 JP H0417579 B2 JPH0417579 B2 JP H0417579B2 JP 59250223 A JP59250223 A JP 59250223A JP 25022384 A JP25022384 A JP 25022384A JP H0417579 B2 JPH0417579 B2 JP H0417579B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- code
- communication control
- transmission
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 230000005540 biological transmission Effects 0.000 claims description 27
- 238000000034 method Methods 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
- 208000006926 Discoid Lupus Erythematosus Diseases 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 208000004921 cutaneous lupus erythematosus Diseases 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Communication Control (AREA)
Description
【発明の詳細な説明】
(技術分野)
本発明はデータ伝送装置、特に2台以上のコン
ピユータ又はこれを含む端末装置相互間で行なわ
れるデータ伝送に用いるデータ伝送方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a data transmission device, and particularly to a data transmission method used for data transmission between two or more computers or terminal devices including the same.
(従来技術)
従来、この種のデータ伝送方式はISO又はJIS
に示す伝送コードが用いられており、特に伝送効
率を上げる必要のある場合には、バイナリイメー
ジで伝送可能なトランスペアレントモードによる
方式も容認されている。(Prior art) Conventionally, this type of data transmission method was based on ISO or JIS.
Transmission codes shown in the following are used, and in cases where it is particularly necessary to increase transmission efficiency, transparent mode systems that can transmit binary images are also accepted.
しかし、このトランスペアレントモードでは、
たまたまバイナリイメージデータ中にDLEコー
ドと同じコードが存在する場合には、これを区別
するためにDLEなる制御コードを前置して伝送
し、受信側でDLEが2個連続するときはその1
つを除去する方法をとつて、DLE+制御コード
と同じパターンが発生するのを防いでいる。この
方法では常に連続する2キヤラクタを監視する機
能が受信側に必要であつて、1キヤラクタ毎の受
信データで割込みをかけてコードを読みとる方式
を持つデータ伝送方式では、続いて来る2つのキ
ヤラクタを直接比較制御することができず、プロ
グラム上で常に2つの受信キヤラクタを比較しな
がら読みとるため、キヤラクタを読みとるプログ
ラムの間に比較するプログラムが走り、ために高
速伝送時にはキヤラクタを落して再伝送に至る
か、あるいは時間的余裕を見るため最初から伝送
速度を落す時、本来高速伝送のための方式である
にもかかわらず、逆にそれができないという問題
があつた。 But in this transparent mode,
If the same code as the DLE code happens to exist in the binary image data, a control code called DLE is prefixed and transmitted to distinguish it, and if there are two consecutive DLEs on the receiving side, the first one is
This method prevents the same pattern as the DLE+control code from occurring. This method requires a function on the receiving side to always monitor two consecutive characters, and in a data transmission method that reads the code by interrupting the received data for each character, Direct comparison control is not possible, and the program always compares and reads the two received characters, so the comparison program runs between the programs that read the characters, which causes characters to be dropped during high-speed transmission, leading to retransmission. Alternatively, when reducing the transmission speed from the beginning to save time, there was a problem in that even though the system was originally intended for high-speed transmission, it was not possible to do so.
(発明の目的)
本発明の目的は上記欠点を除去せんがため、受
信した瞬間の1キヤラクタだけで伝送制御が可能
となるトランスペアレント伝送によるデータ伝送
装置を提供することにある。(Object of the Invention) An object of the present invention is to provide a data transmission device using transparent transmission, which enables transmission control with only one character at the moment of reception, in order to eliminate the above-mentioned drawbacks.
(発明の構成)
本発明による2点以上に分かれて点在するシス
テム間のデータ伝送方式において、データを編集
しプロトコルを制御するためのプロセツサと、こ
のプロセツサを作動させるプログラム及びデータ
を格納するメモリと、伝送すべきデータを直並列
変換する通信制御回路と、少なくともこれら3つ
の部分を信号的に結合するバスと、システム間距
離が大きな場合に通信制御部からの入出力直列伝
送信号を変復調する変受調部から構成され、送信
側では伝送すべきバイナリーイメージの原始デー
タ列に続けてデータの終りを意味するあらかじめ
定められた1バイトの区切りコードを付加し前記
原始データの中から前記区切りコードと等しいコ
ードのデータのみを取り除き前記区切りコードに
続いて先に取り除いたコードの原始データ内での
位置を示すコード列とこれに続く1バイトの最終
コードを1つのメツセージとして編集、送出する
手段と、受信側ではこのメツセージに含まれる各
コードから原始データを再組立する手段を有する
ことを特徴とするデータ伝送方式が得られる。(Structure of the Invention) In the data transmission method between systems separated at two or more points according to the present invention, there is provided a processor for editing data and controlling a protocol, and a memory for storing a program and data for operating this processor. , a communication control circuit that converts the data to be transmitted from serial to parallel, a bus that connects at least these three parts in a signal manner, and modulates and demodulates the input and output serial transmission signals from the communication control unit when the distance between the systems is large. It consists of a modulator and modulator, and on the transmitting side, a predetermined 1-byte delimiter code indicating the end of the data is added to the original data string of the binary image to be transmitted, and the delimiter code is extracted from the original data. means for editing and transmitting as one message a code string indicating the position of the previously removed code in the original data and a final code of 1 byte following the delimiter code by removing only the data of the code equal to the delimiter code; , a data transmission system is obtained which is characterized in that the receiving side has means for reassembling original data from each code included in this message.
(発明の原理)
通常、送受信装置とも以下に述べるような同一
構成を持つているので、ここではいずれか片側の
みについて説明する。中心となるべきプロセツサ
ではデータ着信時の割込み信号を受付け解析し、
データを読み込み、記憶するとともに受信したデ
ータの内容やエラー、無応答に対するプロトコル
上の制御等を司さどり、バス上に接続されたメモ
リと一体となつて必要な処理一切を行なう。(Principle of the Invention) Normally, both transmitting and receiving devices have the same configuration as described below, so only one of them will be described here. The central processor receives and analyzes interrupt signals when data arrives,
It reads and stores data, and also controls the contents of received data, errors, and non-response based on the protocol, and performs all necessary processing in conjunction with the memory connected to the bus.
データを実際に伝送する回線は必要なら変復調
部を通してこのバスに接続されている通信制御部
に導かれ、回線側の直列信号とバス側の並列信号
とを相互に変換することができる。この通信制御
部は1キヤラクタの送受信毎に1回の割込信号を
プロセツサに与えるという最も一般的なものであ
る。 If necessary, the line that actually transmits data is led to a communication control unit connected to this bus through a modulation/demodulation unit, so that serial signals on the line side and parallel signals on the bus side can be mutually converted. This communication control section is the most common type that provides one interrupt signal to the processor for each transmission/reception of one character.
ここで本発明において用いる伝送フオーマツト
について説明する。前述のごとく原始データはバ
イナリーイメージであるので、受信側に対してデ
ータの終りを示すあらかじめ定められたビツトフ
オーマツトを持つコードとメツセージの終りを示
す同様のコードが伝送データに混在しないように
する。ここでは前者をOO(16進)、後者をFF(16
進)とし、原始データのメツセージ長は254キヤ
ラクタ以下にしておく。原始データからデータの
終りを示すコードと等しいコード(OO)を抜き
去つたものの間をつめ、原始データの最終キヤラ
クタの次にデータ終了コード(OO)を置き、次
に原始データ中OOの存在していた位置を、原始
データの最先頭キヤラクタをO1(16進)、最後
尾をFE(16進)として続けて並べる。最後にメツ
セージ終了コード(FF)を置いて、連続した1
つのメツセージとする。 Here, the transmission format used in the present invention will be explained. As mentioned above, the original data is a binary image, so make sure that the transmitted data does not contain a code with a predetermined bit format that indicates the end of the data to the receiving side and a similar code that indicates the end of the message. . Here, the former is OO (hexadecimal) and the latter is FF (16
The message length of the source data should be 254 characters or less. Remove the code (OO) that is equal to the code that indicates the end of data from the source data, fill in the space between them, place the data end code (OO) next to the final character of the source data, and then place the code (OO) that is equal to the code that indicates the end of data in the source data. Arrange the positions of the source data with the first character as O1 (hexadecimal) and the last character as FE (hexadecimal). Put the message end code (FF) at the end, and then
One message.
この場合バリテイビツト等誤り制御のためのビ
ツトやキヤラクタ、同期キヤラクタの付加される
ことがあるが、本発明の本質的問題ではないので
ここでは省略する。 In this case, bits, characters, and synchronization characters for error control such as a validity bit may be added, but these are omitted here because they are not an essential problem of the present invention.
作 用
このような伝送フオーマツトにおいて、連続受
信キヤラクタ中に、若しOOが発見されれば、こ
の直前のコードをもつてデータが終了したことを
知ることができ、OOの次のキヤラクタから次に
発見されるFFの直前のキヤラクタまではデータ
中に本来あるべきOOなるコードが省略されたこ
とを物語つていると解釈でき、FFを受信した直
後にブログラムは受信を終了して、必要なプロト
コル制御を行ない、先の約束に従つて原始データ
の復元にとりかかり始める。Effect In such a transmission format, if OO is found in the continuous reception character, it can be known that the data has ended with the code immediately before this, and the next character from the character after OO can be known. The character immediately before the discovered FF can be interpreted as indicating that the OO code that should have been in the data has been omitted, and immediately after receiving the FF, the program ends reception and performs the necessary protocol. I take control and begin restoring the original data according to my previous promise.
(実施例)
次に本発明の実施例について図面を参照して説
明する。第1図は本発明の一実施例の構成図を示
し第1図を参照すると、プロセツサ1と、メモリ
2と、通信制御部3はバス4に接続され、このバ
ス4を通じてプログラム実行に必要な信号が授受
される。システム間が距離的に離れている場合、
又は回線にノイズの多く発生している場合には変
復調部5を通信制御部3に接続する。従つて回線
6は変復調部5又は通信制御部3に接続されるこ
とになる。(Example) Next, an example of the present invention will be described with reference to the drawings. FIG. 1 shows a configuration diagram of an embodiment of the present invention. Referring to FIG. Signals are exchanged. When systems are separated by distance,
Alternatively, if a lot of noise is generated on the line, the modulation/demodulation section 5 is connected to the communication control section 3. Therefore, the line 6 is connected to the modulation/demodulation section 5 or the communication control section 3.
この場合プロセツサ1とメモリ2、バス4に要
求する仕様上の特殊条件はなく、通常の割込処理
が可能であればよい。変復調部5もデータ伝送速
度、同期方式に適合していればよい。通信制御部
3は最も一般的な1キヤラクタ毎の割込方式であ
ればよい。総じてごく単純な一般的コンピユータ
システムである。 In this case, there are no special specifications requirements for the processor 1, memory 2, and bus 4, as long as they are capable of normal interrupt processing. The modulation/demodulation unit 5 may also be compatible with the data transmission rate and synchronization method. The communication control unit 3 may use the most general interrupt method for each character. Overall, it is a very simple general computer system.
第2図では、このシステム間で伝送されるキヤ
ラクタフオーマツトが示されているaは原始デー
タを、bは伝送回線上のデータを表わしている。
すなわち送信側ではaをbに変換して送信し、受
信側ではbから再びaに変換する。a、bともバ
イナリーイメージのデータであり、ごく短かい典
形的な例である。本例での原子データは7キヤラ
クタで構成されており、先頭キヤラクタの位置番
号をO1と定義すれば、最後尾キヤラクタ位置は
O7となる。ここでキヤラクタ数は254(FE)
以下である必要がある。理由はキヤラクタ位置情
報コードの中に255(FF)が存在すると、メ
ツセージ終了コード(FF)と区別が不能になる
危険があるためである。a例では位置02,0
5,06にOOが存在している。b例ではaから
OOを取り除いた結果をすき間なく続け位置01
から04までに圧縮した後、位置05にデータ終
了コード(00)を続け、位置06から08にはa
例で省略した00が置かれているビツト位置02,
05,06が順に入れられている。そして最後に
メツセージ終了コードFFを続けて1つのメツセ
ージを構成している。 In FIG. 2, the character formats transmitted between the systems are shown, with a representing the original data and b representing the data on the transmission line.
That is, on the transmitting side, a is converted to b and transmitted, and on the receiving side, b is converted back to a. Both a and b are binary image data, and are very short typical examples. The atomic data in this example consists of seven characters, and if the position number of the first character is defined as O1, the position of the last character will be O7. Here the number of characters is 254 (FE)
Must be below. The reason is that if 255 (FF) exists in the character location information code, there is a risk that it will become indistinguishable from the message end code (FF). In example a, position 02,0
OO exists in 5,06. In example b, from a
Continuing the result of removing OO without a gap, position 01
After compression from 04 to 04, a data end code (00) follows in position 05, and a in positions 06 to 08.
Bit position 02 where 00 omitted in the example is placed,
05 and 06 are entered in order. Finally, a message end code FF is added to form one message.
a、b間の変換はプログラムを介して行なわれ
るが、受信側では00を発見すれば一義的にデータ
の終了を意味し、FFを発見すれば一義的にメツ
セージの終了を意味するため、プログラムは常に
その時受信している1キヤラクタのみを監視して
いればよく、各キヤラクタ間のプログラム走行時
間を最低限におさえることができる。また原理的
に原始データと伝送データのフオーマツト長は第
2図からわかる通り、後者が前者+2キヤラクタ
であるため、JISで規定しているDLE付加方式に
比べ、一般に冗長度が小さく、いずれもトランス
ペアレントの本来の趣旨である高伝送効率に合致
させることができる。 The conversion between a and b is done through the program, but on the receiving side, finding 00 means the end of the data, and finding FF means the end of the message. It is sufficient to always monitor only one character being received at the time, and the program running time between each character can be kept to a minimum. In addition, in principle, as shown in Figure 2, the format length of the original data and the transmitted data is the former + 2 characters, so the redundancy is generally smaller than the DLE addition method specified by JIS, and both are transparent. This can meet the original purpose of high transmission efficiency.
(発明の効果)
本発明はデータ伝送において受信した瞬間の1
キヤラクタだけで伝送制御が可能となる効果があ
る。(Effects of the Invention) The present invention provides the following advantages:
This has the effect of making it possible to control transmission using just the character.
第1図は本発明の一実施例のブロツク図、第2
図a,bはその一例の伝送フオーマツト図を示
す。
1……プロセツサ、2……メモリ、3……通信
制御部、4……バス、5……変復調部。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
Figures a and b show an example of the transmission format. 1...Processor, 2...Memory, 3...Communication control section, 4...Bus, 5...Modulation/demodulation section.
Claims (1)
ータ伝送方式において、データを編集しプロトコ
ルを制御するためのプロセツサと、このプロセツ
サを作動させるプログラム及びデータを格納する
メモリと、伝送すべきデータを直並列変換する通
信制御回路と、少なくともこれら3つの部分を信
号的に結合するバスと、システム間距離が大きな
場合に通信制御部からの入出力直列伝送信号を変
復調する変復調部から構成され、送信側では伝送
すべきバイナリーイメージの原始データ列に続け
てデータの終りを意味するあらかじめ定められた
1バイトの区切りコードを付加し前記原始データ
の中から前記区切りコードと等しいコードのデー
タのみを取り除き前記区切りコードに続いて先に
取り除いたコードの原始データ内での位置を示す
コード列とこれに続く1バイトの最終コードを1
つのメツセージとして編集送出する手段と、受信
側ではこのメツセージに含まれる各コードから原
始データを再組立する手段を有することを特徴と
するデータ伝送方式。1. In a data transmission method between systems that are separated and scattered at two or more points, there is a processor for editing data and controlling protocols, a memory for storing programs and data to operate this processor, and a memory for storing data to be transmitted. It consists of a communication control circuit that performs serial-to-parallel conversion, a bus that connects signals to at least these three parts, and a modem unit that modulates and demodulates input and output serial transmission signals from the communication control unit when the distance between the systems is large. On the side, a predetermined 1-byte delimiter code indicating the end of the data is added to the source data string of the binary image to be transmitted, and only the data with the same code as the delimiter code is removed from the source data. Following the delimiter code, a code string indicating the position of the previously removed code in the source data, followed by a 1-byte final code.
1. A data transmission system comprising means for editing and sending out a single message, and means for reassembling original data from each code included in the message on the receiving side.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59250223A JPS61128652A (en) | 1984-11-27 | 1984-11-27 | Data transmitting system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59250223A JPS61128652A (en) | 1984-11-27 | 1984-11-27 | Data transmitting system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61128652A JPS61128652A (en) | 1986-06-16 |
| JPH0417579B2 true JPH0417579B2 (en) | 1992-03-26 |
Family
ID=17204664
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59250223A Granted JPS61128652A (en) | 1984-11-27 | 1984-11-27 | Data transmitting system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61128652A (en) |
-
1984
- 1984-11-27 JP JP59250223A patent/JPS61128652A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61128652A (en) | 1986-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6819677B1 (en) | Method and apparatus for recovering data that was transported utilizing multiple data transport protocols | |
| JP3247589B2 (en) | Multi-protocol communication controller | |
| EP0124594B1 (en) | Method and apparatus for transmitting and receiving data messages | |
| US5127013A (en) | Data communication system | |
| US5912752A (en) | Method and apparatus for improving serial infrared asynchronous communication performance | |
| JP2544385B2 (en) | Communication control device | |
| JP3227850B2 (en) | Multi-access type LAN | |
| JPH0535624A (en) | Data transfer method, data transmitting device and restoring device | |
| US4746918A (en) | Split bus system interface | |
| EP0572843A1 (en) | Distribution of modem error correction and compression processing | |
| JPH0417579B2 (en) | ||
| US5721891A (en) | Detection of N length bit serial communication stream | |
| JP3424818B2 (en) | Music data communication device | |
| JPH0557788B2 (en) | ||
| EP1036458B1 (en) | A communications protocol | |
| JPH0568071A (en) | Data transmission method | |
| JP3603818B2 (en) | Music data communication device | |
| JPH04260254A (en) | Digital data transfer system in hdlc asynchronous mode | |
| JPH0761080B2 (en) | Transmission control method | |
| JP3364784B2 (en) | Information processing device | |
| JPS63313940A (en) | Communication control device | |
| JPS61126841A (en) | Communication equipment | |
| JPH06284164A (en) | Communication control code avoidance communication method | |
| JPS63314936A (en) | Start-stop synchronizing type data communication system | |
| JPH03217140A (en) | Data transmission system |