JPH10164172A - Text data transmission method - Google Patents

Text data transmission method

Info

Publication number
JPH10164172A
JPH10164172A JP8318343A JP31834396A JPH10164172A JP H10164172 A JPH10164172 A JP H10164172A JP 8318343 A JP8318343 A JP 8318343A JP 31834396 A JP31834396 A JP 31834396A JP H10164172 A JPH10164172 A JP H10164172A
Authority
JP
Japan
Prior art keywords
text
code data
conversion
symbol
data
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.)
Pending
Application number
JP8318343A
Other languages
Japanese (ja)
Inventor
Hideomi Sasaki
英臣 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Mobile Communications Ltd
Original Assignee
NEC Mobile Communications Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Mobile Communications Ltd filed Critical NEC Mobile Communications Ltd
Priority to JP8318343A priority Critical patent/JPH10164172A/en
Publication of JPH10164172A publication Critical patent/JPH10164172A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent the end of reception due to the wrong recognition of a string of received variable length text code data by converting the specific binary code data, adding the conversion notification symbol at a position immediately preceding a text conversion symbol to transmit it, and restoring the text conversion signal following the conversion notification symbol at the receiver side. SOLUTION: If the end-of-text code data are supposed as 03, for example, a transmitting terminal equipment 10 converts the binary code data 03 on a single word of the text code data into a text conversion symbol, e.g. Y that is previously defined. At the same time, the equipment 10 adds a conversion notification symbol, e.g. X before the symbol Y and transmits the code data on both symbols X and Y via a transmission line 30. A receiving terminal equipment 20 converts the symbol Y that is received after the symbol X into the binary code data on a single word and restores it into the original text code data 03 if the symbol X is included in a received text code data string.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はシリアルデータ伝送
におけるテキストデータ伝送方法に関し、特に送信する
テキストデコードのデータ長を示すフイールドを設定す
ることなく可変長テキサストを制限なく送信可能なテキ
ストデータ伝送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a text data transmission method in serial data transmission, and more particularly to a text data transmission method capable of transmitting a variable length Texas text without limitation without setting a field indicating a data length of a text decode to be transmitted. .

【0002】[0002]

【従来の技術】通信回線を介して接続されたデータ端末
装置相互間でデータ通信を行う場合、送信側のデータ端
末装置が送信したデータが受信側のデータ端末装置で正
確に受信されなけばならない。そのために所定の伝送フ
ォーマットを使用し、送信側で伝送するデータ本体のデ
ータ長を伝送フォーマット内に指定して送信し、受信側
でこのデータ長の指定情報により、データ本体の受信を
識別する方法がある。
2. Description of the Related Art When data communication is performed between data terminal devices connected via a communication line, data transmitted by a data terminal device on a transmitting side must be accurately received by a data terminal device on a receiving side. . For this purpose, a method of using a predetermined transmission format, specifying the data length of the data body to be transmitted on the transmission side in the transmission format and transmitting the data, and identifying the reception of the data body on the reception side based on the specification information of the data length There is.

【0003】例えば、スタートオブテキスト(STX)
の後に送信するアドレスを示すコードデータ(ARD)
と、可変長なテキストのワード数を示すレングスデータ
(NUM)と、テキスト(TEXT)の後に送信するチ
ェックサムコードデータ(CHK)と、テキストの終り
を示すエンドオブテキスト(EXT)のフイールド順で
1フレームを構成する伝送フォーマットを使用して、可
変長なテキストデータ(バイナリコード)を送信し、受
信側では、STXのコードデータでテキスト伝送のスタ
ートを識別し、ARDのコードデータで自己のアドレス
と照合し、NUMのコードデータで示されたテキストの
ワード数をレジスタにセットし、1ワードのコードデー
タを受信するたびにポインタをインクリメントすると共
にポインタにより示された受信エリアに格納し、ポイン
タ値とレジスタに格納されたワード数との一致によりT
EXTのコードデータの受信完了を識別し、CHKのコ
ードデータと最後のEXTのコードデータを受信し、受
信したADRのコードデータからTEXTの最後な1ワ
ードのコードデータまでを加算しチェックサムのデータ
を算出し、算出結果と受信したCHKコードデータとを
照合し、一致したとき受信を終了するシリアルデータ伝
送方式が特開昭60−204143号公報に提案されて
いる。
[0003] For example, start of text (STX)
Data (ARD) indicating the address to be transmitted after
And length data (NUM) indicating the number of words of a variable length text, checksum code data (CHK) transmitted after the text (TEXT), and end-of-text (EXT) indicating the end of the text. Variable length text data (binary code) is transmitted using the transmission format that composes the frame. On the receiving side, the start of text transmission is identified by STX code data, and its own address and ARD code data are used. The data is collated, the number of words of the text indicated by the NUM code data is set in the register, and the pointer is incremented and stored in the reception area indicated by the pointer each time code data of one word is received. T matches with the number of words stored in the register
Identifies the completion of the reception of the EXT code data, receives the CHK code data and the last EXT code data, adds the received ADR code data to the last one-word code data of the EXT, and checksum data. A serial data transmission method is proposed in Japanese Patent Application Laid-Open No. 60-204143, in which the calculation result is compared with the received CHK code data, and the reception is terminated when they match.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のシリア
ルデータ伝送方式は、伝送フレーム内に可変長データの
ワード数を示すレングスデータを設定することにより、
テキスト等の可変長データ内にSTX、EXTのコード
データと同じコードデータが含まれていても、誤って再
度受信開始や途中での受信終了動作を防止できるが、伝
送フレーム内に可変長データのワード数を示すレングス
データ専用のフィールドを設定する必要があるため、1
フレームで伝送できるテキストデータ長が制限される。
In the above-described conventional serial data transmission method, length data indicating the number of words of variable-length data is set in a transmission frame.
Even if variable-length data such as text contains the same code data as the STX and EXT code data, it is possible to prevent the reception start operation from being performed again or the reception end operation in the middle, but the transmission frame does not include the variable-length data. Since it is necessary to set a field dedicated to length data indicating the number of words, 1
The length of text data that can be transmitted in a frame is limited.

【0005】また、伝送するテキストデータの外に特別
なレングスデータのフィールドを設定しなければならな
いので、より多くのテキストデータを送信するときは、
レングスデータ専用のフィールドのバイト数を増やす必
要があり、テキストデータ以外のデータを送信する数が
増え、伝送効率が低下する。
[0005] Further, since a special length data field must be set in addition to the text data to be transmitted, when transmitting more text data,
It is necessary to increase the number of bytes in a field dedicated to length data, and the number of data other than text data to be transmitted increases, resulting in lower transmission efficiency.

【0006】本発明の目的は、可変長テキストコードデ
ータ列の中の1ワードのバイナリコードがエンドオブテ
キストコードデータと同一なとき、データ端末装置相互
間で予め定義した変換規則により所定の記号に変換して
送信し、受信側で元の1ワードのバイナリコードのテキ
ストコードデータに復元するテキストデータ伝送方法を
提供することにある。
An object of the present invention is to convert one word of a variable-length text code data string into a predetermined symbol according to a predetermined conversion rule between data terminals when the binary code of one word is the same as the end-of-text code data. The present invention is to provide a text data transmission method in which the text data is transmitted and restored on the receiving side to the original one-word binary code text code data.

【0007】[0007]

【課題を解決するための手段】本発明のテキストデータ
伝送方法は、スタートオブテキストコードデータの後に
送信先のアドレスコードデータと、テキストコードデー
タと、テキストコードデータの終りを示すエンドオブテ
キストコードデータのフイールド順で1フレームを構成
する伝送フォーマットを使用して、可変長なテキストコ
ードデータの各1ワードをバイナリコードデータで送信
し、受信側では、スタートオブテキストコードデータ
で、テキスト伝送フレームのスタートを識別し、テキス
トコードデータを受信した後、エンドオブテキストコー
ドデータを識別して受信を終了するシリアルデータ伝送
におけるテキストデータ伝送方法において、前記可変長
テキストコードのデータ列の中の1ワードのバイナリコ
ードデータが前記エンドオブテキストコードデータと同
一なとき、前記エンドオブテキストコードデータと同一
な1ワードのバイナリコードデータを、予め定義する変
換規則に従って所定のテキスト変換記号に変換し且つこ
のテキスト変換記号が前記変換規則に従って所定の記号
に変換してある旨を通知するための変換通知記号を前記
テキスト変換記号の直前に付与して送信し、受信した前
記可変長テキストコードデータ列に前記変換通知記号が
含まれているとき、この変換通知記号に続く前記テキス
ト変換記号を、前記変換規則に従って変換し、元の前記
1ワードのバイナリコードデータに復元することを特徴
とする。
According to the text data transmission method of the present invention, a destination address code data, a text code data, and an end-of-text code data indicating the end of the text code data are provided after the start of the text code data. Using a transmission format that constitutes one frame in field order, each word of variable-length text code data is transmitted as binary code data, and the start of the text transmission frame is started on the receiving side with start-of-text code data. Identifying and receiving the text code data, and then ending the reception by identifying the end-of-text code data. In the text data transmission method in serial data transmission, one word of binary code data in the data string of the variable length text code is provided. Is When it is the same as the do-of-text code data, the one-word binary code data identical to the end-of-text code data is converted into a predetermined text conversion symbol in accordance with a predefined conversion rule, and the text conversion symbol is converted in accordance with the conversion rule. A conversion notification symbol for notifying that a predetermined symbol has been converted is added immediately before the text conversion symbol and transmitted, and the received variable length text code data string includes the conversion notification symbol. At this time, the text conversion symbol following the conversion notification symbol is converted in accordance with the conversion rule to restore the original one-word binary code data.

【0008】また、前記変換規則は、前記可変長テキス
トコードのデータ列の中の1ワードのバイナリコードデ
ータが前記エンドオブテキストコードデータと同一なと
き、この同一な1ワードのバイナリコードデータを所定
のテキスト変換記号Yに変換し、このテキスト変換信号
Yがテキストコードデータの1ワードのバイナリコード
データの変換記号である旨を示す変換通知記号Xを前記
テキスト変換記号Yの直前に付与し、前記エンドオブテ
キストコードデータと同一な前記テキストコードデータ
の1ワードのバイナリコードデータをXYの記号コード
データとして送信する第1の変換規則と、前記可変長テ
キストコードのデータ列の中の1ワードのバイナリコー
ドデータが前記第1の変換規則に従い変換した前記変換
通知記号Xのコードデータと同一なとき、この同一な1
ワードのバイナリコードデータを所定のテキスト変換記
号Zに変換し、このテキスト変換信号Zがテキストコー
ドデータの1ワードのバイナリコードデータの変換記号
である旨を示す変換通知記号Xを前記テキスト変換記号
Zの直前に付与し、前記第1の変換規則に従い変換した
前記変換通知記号Xのコードデータと同一なテキストコ
ードデータの1ワードのバイナリコードデータをXZの
記号コードデータとして送信する第2の変換規則と、前
記可変長テキストコードのデータ列の中の1ワードのバ
イナリコードデータが、前記エンドオブテキストコード
データおよび前記第1の変換規則に従い変換した前記変
換通知記号Xと異るとき、前記可変長テキストコードデ
ータ列の1ワードのバイナリコードデータを変換せずに
そのまま送信する第3の変換規則とから成ることを特徴
とする。
Further, the conversion rule is that, when one word of binary code data in the data string of the variable length text code is the same as the end of text code data, the same one word of binary code data is converted to a predetermined value. A conversion notification symbol X indicating that the text conversion signal Y is a conversion symbol of one-word binary code data of the text code data is added immediately before the text conversion symbol Y, A first conversion rule for transmitting one-word binary code data of the text code data identical to the text code data as XY symbol code data, and one-word binary code data in the data string of the variable-length text code Is the code of the conversion notification symbol X converted according to the first conversion rule. When data and the same, as the same 1
The word binary code data is converted into a predetermined text conversion symbol Z, and a conversion notification symbol X indicating that this text conversion signal Z is a conversion symbol of one-word binary code data of the text code data is converted to the text conversion symbol Z. And one word of binary code data of the same text code data as the code data of the conversion notification symbol X converted according to the first conversion rule and transmitted as XZ symbol code data. And when the one-word binary code data in the data string of the variable-length text code is different from the end-of-text code data and the conversion notification symbol X converted according to the first conversion rule, One-word binary code data of the code data string is transmitted without conversion Characterized in that it consists of a third transformation rule.

【0009】更に、前記第1,2,および3の変換規則
に従って送信された前記可変長テキストコードデータ列
を前記伝送フォーマットで受信し、受信した前記可変長
テキストコードデータ列に前記変換通知記号Xが含ま
れ、且つこの変換通知記号Xに続くコードデータが前記
テキスト変換記号Yのとき、このテキスト変換記号Yを
元の前記1ワードのバイナリコードデータに変換して復
元し、受信した前記可変長テキストコードデータに前記
変換通知記号Xが含まれ、且つこの変換通知記号Xに続
く前記テキストコードデータが前記テキスト変換記号Z
のとき、このテキスト変換記号Zを元の前記1ワードの
バイナリコードデータに変換して復元し、受信した前記
可変長テキストコードデータに前記変換記号X含まれて
いないとき、このテキストコードデータを変換せずにそ
のまま受信することを特徴とする。
Further, the variable-length text code data string transmitted in accordance with the first, second, and third conversion rules is received in the transmission format, and the received variable-length text code data string is provided with the conversion notification symbol X. , And when the code data following the conversion notification symbol X is the text conversion symbol Y, the text conversion symbol Y is converted and restored to the original one-word binary code data, and the received variable length The text code data includes the conversion notification symbol X, and the text code data following the conversion notification symbol X is the text conversion symbol Z.
When the text conversion symbol Z is converted to the original one-word binary code data and restored, and when the received variable-length text code data does not include the conversion symbol X, the text conversion code Z is converted. It is characterized in that it is received without being used.

【0010】[0010]

【発明の実施の形態】次に本発明の一実施の形態につい
て図面を参照して説明する。図1は本発明のテキストデ
ータの伝送方法を示す図であり、(A)は第1の変換規
則によるテキストデータの変換を示す図である。(B)
は第2の変換規則によるテキストデータの変換を示す図
である。(C)は本発明の第3の変換規則によるテキス
トデータの伝送を示す図である。図2は本発明の第1,
2,および3の変換規則により変換されたテキストコー
ドデータの受信フローを示す図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a text data transmission method according to the present invention, and FIG. 1A is a diagram illustrating conversion of text data according to a first conversion rule. (B)
FIG. 9 is a diagram showing conversion of text data according to a second conversion rule. (C) is a diagram showing transmission of text data according to the third conversion rule of the present invention. FIG. 2 shows the first and second embodiments of the present invention.
FIG. 11 is a diagram illustrating a reception flow of text code data converted according to the conversion rules of 2 and 3.

【0011】本発明のテキストデータの伝送方法は図1
に示すように、送信端末装置10と受信端末装置20と
を伝送路30を介して接続し、送信端末装置10は図示
してないが、スタートオブテキストコードデータ(ST
X)の後に送信先アドレスコードデータ(ARD)と、
テキストコードデータ(TEXT)と、テキストコード
データの終りを示すエンドオブテキストコードデータ
(EXT)のフイールド順で1フレームを構成する伝送
フォーマットを使用して、可変長なテキストデータの各
1ワードをバイナリコードで送信し、受信端末装置20
は、スタートオブテキストコードデータで、テキスト伝
送フレームのスタートを識別し、可変長なテキストコー
ドデータを受信した後、エンドオブテキストコードデー
タを識別して受信を終了する。
The text data transmission method of the present invention is shown in FIG.
As shown in FIG. 1, the transmitting terminal apparatus 10 and the receiving terminal apparatus 20 are connected via a transmission line 30. Although not shown, the transmitting terminal apparatus 10 has start-of-text code data (ST
X), destination address code data (ARD),
Each word of variable-length text data is converted into a binary code using a transmission format that forms one frame in the field order of text code data (TEXT) and end-of-text code data (EXT) indicating the end of the text code data. And the receiving terminal device 20
Identifies the start of a text transmission frame with start-of-text code data, receives variable-length text code data, identifies end-of-text code data, and ends reception.

【0012】図1(A)は、第1の変換規則によるテキ
ストコードデータの送受信を示し、エンドオブテキスト
コードデータ(EXT)を例えば「03」と仮定したと
き、送信端末装置10が送信するテキストコードデータ
列の中にEXT「03」と同じ1ワードのバイナリコー
ドデータが含まれていた場合、受信側でそのテキストコ
ードデータをEXT「03」と誤認識して受信終了処理
することを防止するために、テキストコードデータの1
ワードのバイナリコードデータ「03」を予め定義した
テキスト変換記号、例えば「Y」に変換すると共に、1
ワードのバイナリコードデータ「03」を記号変換して
ある旨を示す変換通知記号、例えば「X」をテキスト変
換記号「Y」の前に付与し、「X,Y」のコードデータ
を伝送路30を介して受信端末装置20へ送信する。
FIG. 1A shows the transmission and reception of text code data according to the first conversion rule. Assuming that the end-of-text code data (EXT) is, for example, "03", the text code transmitted by the transmission terminal device 10 will be described. If the data string contains the same one-word binary code data as EXT “03”, it is possible to prevent the receiving side from erroneously recognizing the text code data as EXT “03” and performing reception termination processing. And 1 of the text code data
The word binary code data “03” is converted into a predefined text conversion symbol, for example, “Y”, and 1
A conversion notification symbol indicating that the binary code data “03” of the word has been symbol-converted, for example, “X” is added before the text conversion symbol “Y”, and the code data of “X, Y” is transmitted through the transmission line 30. To the receiving terminal device 20 via the.

【0013】受信端末装置20は、STXのコードデー
タでテキストデータ伝送フレームのの先頭を、ARDで
自己宛をそれぞれ識別し、テキストコードデータ列を受
信する。テキストコードデータ列の中に変換通知記号
「X」が含まれていたときは、変換通知記号「X」の次
に受信したテキスト変換記号「Y」を1ワードのバイナ
リコードデータに変換して元のテキストコードデータ
「03」に復元する。
The receiving terminal device 20 identifies the head of the text data transmission frame with STX code data and identifies itself with ARD, and receives the text code data string. When the conversion notification symbol “X” is included in the text code data string, the text conversion symbol “Y” received next to the conversion notification symbol “X” is converted into one-word binary code data, and Is restored to the text code data “03”.

【0014】図1(B)は、第2の変換規則によるテキ
ストコードデータの送受信を示し、第1の変換規則で変
換した変換通知記号Xを例えば「02」と仮定したと
き、送信端末装置10が送信するテキストコードデータ
列の中に第1の変換規則で変換した変換通知記号「X」
のコードデータ「02」と同じ1ワードのバイナリコー
ドデータ「02」が含まれていた場合、テキストコード
データの1ワードのバイナリコードデータ「02」を予
め定義したテキスト変換記号、例えば「Z」に変換する
と共に、テキストコードデータの1ワードのバイナリコ
ードデータ「02」を記号変換してある旨を示す変換通
知記号「X」をテキスト変換記号「Y」の前に付与し、
「X,Z,Y」のコードデータを伝送路30を介して受
信端末装置20へ送信する。
FIG. 1B shows the transmission and reception of text code data according to the second conversion rule. When the conversion notification symbol X converted according to the first conversion rule is assumed to be, for example, "02", the transmitting terminal 10 The conversion notification symbol "X" converted by the first conversion rule in the text code data string transmitted by
If the same one-word binary code data "02" as the code data "02" is included, the one-word binary code data "02" of the text code data is converted to a predefined text conversion symbol, for example, "Z". Along with the conversion, a conversion notification symbol "X" indicating that one-word binary code data "02" of the text code data has been symbol-converted is added before the text conversion symbol "Y",
The code data of “X, Z, Y” is transmitted to the receiving terminal device 20 via the transmission line 30.

【0015】また、例えば変換される前のテキストデー
タ列の中に「X,Y」のテキストデータが含まれている
場合、第1の変換規則によると、「X」をテキスト変換
記号「Y」に変換すると共に、記号変換してある旨を示
す変換通知記号「X」をテキスト変換記号「Y」の前に
付加して「X,Y,Y」コードデータを伝送路30を介
して受信端末装置20へ送信し、受信端末装置20は、
変換通知記号「X」を認識して次に続くテキスト変換記
号「Y」を「03」に復元してしまい「X,Y,Y」の
テキストデータが「03,Y」に変換されてしまうの
で、これを防止するために第2の変換規則を定義する。
Further, for example, when the text data string before conversion includes the text data of “X, Y”, according to the first conversion rule, “X” is replaced with the text conversion symbol “Y”. And a conversion notification symbol "X" indicating that the symbol conversion has been performed is added before the text conversion symbol "Y", and the "X, Y, Y" code data is transmitted via the transmission path 30 to the receiving terminal. To the device 20, and the receiving terminal device 20
Since the conversion notice symbol "X" is recognized and the subsequent text conversion symbol "Y" is restored to "03", the text data of "X, Y, Y" is converted to "03, Y". , A second conversion rule is defined to prevent this.

【0016】受信端末装置20は、STXのコードデー
タでテキストデータ伝送フレームのの先頭を、ARDで
自己宛をそれぞれ識別し、テキストコードデータを受信
する。テキストコードデータ列の中に変換通知記号
「X」が含まれていたときは、変換通知記号「X」の次
に受信したテキスト変換記号「Z」を1ワードのバイナ
リコードデータに変換して元のテキストコードデータ
「02」に復元する。
The receiving terminal device 20 identifies the head of the text data transmission frame with the STX code data and identifies itself with the ARD, and receives the text code data. When the conversion notification symbol "X" is included in the text code data string, the text conversion symbol "Z" received next to the conversion notification symbol "X" is converted into one-word binary code data and converted to the original word. Is restored to the text code data “02”.

【0017】図1(C)は、第3の変換規則によるテキ
ストコードデータの送受信を示し、送信端末装置10が
送信するテキストコードデータ列の中に第1の変換規則
および第2の変換規則による変換通知記号「X」が含ま
れていない場合には、変換せずにテキストコードデータ
のバイナリコードデータ、例えば「10」,「11」を
そのまま伝送路30を介して受信端末装置20へ送信す
る。
FIG. 1C shows the transmission and reception of text code data according to the third conversion rule. The text code data string transmitted by the transmitting terminal device 10 includes the first conversion rule and the second conversion rule. If the conversion notification symbol “X” is not included, the binary code data of the text code data, for example, “10”, “11”, is transmitted to the receiving terminal device 20 via the transmission line 30 without conversion. .

【0018】受信端末装置20は、STXのコードデー
タでテキストデータ伝送フレームのの先頭を、ARDで
自己宛をそれぞれ識別し、テキストコードデータを受信
する。テキストコードデータ列の中に変換通知記号
「X」が含まれていないときは、テキストコードデータ
「10」,「11」を変換せずにそのまま受信する。
The receiving terminal device 20 identifies the head of the text data transmission frame by the STX code data and identifies itself to the self by the ARD, and receives the text code data. If the conversion notification symbol “X” is not included in the text code data string, the text code data “10” and “11” are received without conversion.

【0019】次に図2を参照し受信端末装置における変
換処理について説明する。受信端末装置20は伝送路3
0を介して送信端末装置10が送信したテキストコード
データ列のバイナリコードを受信する(図5のステップ
S101)。
Next, the conversion process in the receiving terminal device will be described with reference to FIG. The receiving terminal device 20 is connected to the transmission path 3
The binary code of the text code data string transmitted by the transmitting terminal device 10 via the “0” is received (Step S101 in FIG. 5).

【0020】受信したテキストコードデータ列を先頭か
ら順番に受信し、変換通知記号「X」が分まれているか
否かを監視し、変換通知記号「X」が含まれていない場
合には第3の変換規則により変換せずにそのまま受信す
る(S108)。
The received text code data sequence is received in order from the beginning, and it is monitored whether or not the conversion notification symbol “X” is separated. If the conversion notification symbol “X” is not included, the third And is received as it is without conversion according to the conversion rule (S108).

【0021】ステップS102において、受信したテキ
ストコードデータ列の中に変換通知記号「X」が含まれ
ていた場合には、変換通知記号「X」に続く次のコード
データを受信し(S103)、変換通知記号「X」に続
く次のコードデータがテキスト変換記号「Y」か否かを
監視し(S104)、テキスト変換記号「Y」を識別し
た場合には、第1の変換規則に従ってテキスト変換記号
「Y」を1ワードのバイナリコードデータ「03」に変
換して受信する(S105)。
In step S102, if the conversion notice symbol "X" is included in the received text code data string, the next code data following the conversion notice symbol "X" is received (S103). It is monitored whether the next code data following the conversion notification symbol "X" is the text conversion symbol "Y" (S104). If the text conversion symbol "Y" is identified, the text conversion is performed in accordance with the first conversion rule. The symbol "Y" is converted into one-word binary code data "03" and received (S105).

【0022】ステップS104において、変換通知記号
「X」に続く次のコードデータがテキスト変換記号
「Y」でなかった場合には、続いてテキスト変換記号
「Z」が否かを監視し(S106)、変換通知記号
「X」に続く次のコードデータがテキスト変換記号
「Z」でなかった場合には、ステップS102へ移行
し、テキスト変換記号「Z」であった場合には、第2の
変換規則に従ってテキスト変換記号「Z」を1ワードの
バイナリコードデータ「02」に変換して受信する(S
107)。
In step S104, if the next code data following the conversion notification symbol "X" is not the text conversion symbol "Y", it is monitored whether the text conversion symbol "Z" is present (S106). If the next code data following the conversion notification symbol "X" is not the text conversion symbol "Z", the process proceeds to step S102, and if it is the text conversion symbol "Z", the second conversion is performed. The text conversion symbol "Z" is converted into one-word binary code data "02" and received according to the rules (S
107).

【0023】従って、可変長なテキストコードデータ列
にエンドオブテキストコードデータと同じ1ワードのバ
イナリコードデータが含まれていても、そのバイナリコ
ードデータを予め定義した第1,第2の変換規則に従い
記号変換して送信し、受信側で変換規則に従い元の1ワ
ードのバイナリコードデータに変換するので、可変長の
テキストコードデータ列の受信中にエンドオブテキスト
コードデータと誤認識し、受信処理が終了されることを
防止できる。
Therefore, even if the variable-length text code data string contains the same one-word binary code data as the end-of-text code data, the binary code data is symbolized according to the first and second conversion rules defined in advance. Since the data is converted and transmitted, and converted into the original one-word binary code data in accordance with the conversion rule on the receiving side, the data is erroneously recognized as end-of-text code data during reception of the variable-length text code data string, and the reception processing is terminated. Can be prevented.

【0024】[0024]

【発明の効果】以上説明したように本発明は、送信する
可変長テキストコードデータ列の中にエンドオブテキス
トコードデータと同じ1ワードのバイナリコードデータ
が含まれていた場合、テキストコードデータの1ワード
のバイナリコードデータを予め定義したテキスト変換記
号「Y」に変換すると共に、1ワードのバイナリコード
データを記号変換してある旨を示す変換通知記号、例え
ば「X」をテキストコード変換記号「Y」の前に付与
し、「X,Y」のコードデータを送信し、送信するテキ
ストコードデータ列の中に第1の変換規則で変換した変
換通知記号「X」のコードデータと同じ1ワードのバイ
ナリコードデータが含まれていた場合、テキストコード
データの1ワードのバイナリコードデータを予め定義し
たテキスト変換記号「Z」に変換すると共に、1ワード
のバイナリコードを記号変換してある旨を示す変換通知
記号「X」をテキスト変換記号「Z」の前に付与し、
「X,Z,Y」のコードデータを送信し、送信するテキ
ストコードデータ列の中にエンドオブテキストコードデ
ータと同一の1ワードのバイナリコードデータ、あるい
は変換通知記号「X」が含まれていないときは変換せず
にそのまま送信し、受信したテキストコードデータ列の
中に変換通知記号Xが含まれていたときは、変換通知記
号「X」の次に受信したコードデータがテキスト変換記
号「Y」のときは、テキスト変換記号「Y」を1ワード
のバイナリコードデータに変換して元のテキストコード
データに復元し、変換通知記号「X」の次に受信したコ
ードデータがテキスト変換記号「Z」のときは、変換記
号「Z」を1ワードのバイナリコードデータに変換して
元のテキストコードデータに復元し、テキストコードデ
ータ列の中に変換通知記号「X」が含まれていないとき
は、変換せずにそのまま受信するので、テキストコード
データ列を受信中に、エンドオブテキストコードデータ
と誤認識してテキストコードデータ列の伝送中に受信終
了動作が行わることを防止できる。
As described above, according to the present invention, when the variable-length text code data string to be transmitted contains the same one-word binary code data as the end-of-text code data, one word of the text code data is used. Is converted to a predefined text conversion symbol "Y", and a conversion notification symbol indicating that one-word binary code data is symbol-converted, for example, "X" is converted to a text code conversion symbol "Y". , The code data of “X, Y” is transmitted, and the same one-word binary as the code data of the conversion notification symbol “X” converted according to the first conversion rule in the text code data string to be transmitted. If code data is included, one-word binary code data of the text code data is a text conversion symbol defined in advance. Converts to Z ", assigned conversion notification symbol indicating you have symbol converting one word binary code of" X "in front text conversion symbol" Z ",
When the code data of "X, Z, Y" is transmitted, and the text code data string to be transmitted does not include the same one-word binary code data as the end-of-text code data or the conversion notification symbol "X" Is transmitted as it is without conversion, and when the conversion notification symbol X is included in the received text code data string, the received code data following the conversion notification symbol “X” is replaced with the text conversion symbol “Y”. In the case of, the text conversion symbol "Y" is converted into one-word binary code data to restore the original text code data, and the code data received after the conversion notification symbol "X" is replaced with the text conversion symbol "Z". In the case of, the conversion symbol "Z" is converted into one-word binary code data, restored to the original text code data, and converted into a text code data string. If the symbol "X" is not included, the data is received as it is without conversion. Therefore, while the text code data string is being received, the text code data string is erroneously recognized as end-of-text code data, and the reception is completed during transmission of the text code data string Operation can be prevented.

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

【図1】本発明のテキストデータの伝送方法を示す図で
あり、(A)は第1の変換規則によるテキストデータの
変換を示す図、(B)は第2の変換規則によるテキスト
データの変換を示す図、(C)第3の変換規則によるテ
キストデータの伝送を示す図である。
1A and 1B are diagrams showing a method of transmitting text data according to the present invention, wherein FIG. 1A shows the conversion of text data according to a first conversion rule, and FIG. 1B shows the conversion of text data according to a second conversion rule; (C) is a diagram showing transmission of text data according to a third conversion rule.

【図2】本発明の第1,2,および3の変換規則により
変換されたテキストコードデータの受信フローを示す図
である。
FIG. 2 is a diagram showing a reception flow of text code data converted according to the first, second, and third conversion rules of the present invention.

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

10 送信端末装置 20 受信端末装置 30 伝送路 DESCRIPTION OF SYMBOLS 10 Transmission terminal device 20 Receiving terminal device 30 Transmission path

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 スタートオブテキストコードデータの後
に送信先のアドレスコードデータと、テキストコードデ
ータと、テキストコードデータの終りを示すエンドオブ
テキストコードデータのフイールド順で1フレームを構
成する伝送フォーマットを使用して、可変長なテキスト
コードデータの各1ワードをバイナリコードデータで送
信し、受信側では、スタートオブテキストコードデータ
で、テキスト伝送フレームのスタートを識別し、テキス
トコードデータを受信した後、エンドオブテキストコー
ドデータを識別して受信を終了するシリアルデータ伝送
におけるテキストデータ伝送方法において、 前記可変長テキストコードのデータ列の中の1ワードの
バイナリコードデータが前記エンドオブテキストコード
データと同一なとき、前記エンドオブテキストコードデ
ータと同一な1ワードのバイナリコードデータを、予め
定義する変換規則に従って所定のテキスト変換記号に変
換し且つこのテキスト変換記号が前記変換規則に従って
所定の記号に変換してある旨を通知するための変換通知
記号を前記テキスト変換記号の直前に付与して送信し、
受信した前記可変長テキストコードデータ列に前記変換
通知記号が含まれているとき、この変換通知記号に続く
前記テキスト変換記号を、前記変換規則に従って変換
し、元の前記1ワードのバイナリコードデータに復元す
ることを特徴とするテキストデータ伝送方法。
1. A transmission format that forms one frame in the field order of destination address code data, text code data, and end-of-text code data indicating the end of the text code data after the start of text code data. Then, each word of the variable-length text code data is transmitted as binary code data, and the receiving end identifies the start of the text transmission frame with the start of text code data, receives the text code data, and then transmits the end of text data. In the method of transmitting text data in serial data transmission in which code data is identified and reception is terminated, when one word of binary code data in the data string of the variable length text code is the same as the end-of-text code data, That one-word binary code data identical to the do-of-text code data is converted into a predetermined text conversion symbol according to a predefined conversion rule, and that the text conversion symbol is converted into a predetermined symbol according to the conversion rule. A conversion notification symbol for notification is added immediately before the text conversion symbol and transmitted,
When the received conversion notification symbol is included in the received variable-length text code data string, the text conversion symbol following the conversion notification symbol is converted according to the conversion rule, and converted into the original one-word binary code data. A text data transmission method characterized by restoring.
【請求項2】 前記変換規則は、 前記可変長テキストコードのデータ列の中の1ワードの
バイナリコードデータが前記エンドオブテキストコード
データと同一なとき、この同一な1ワードのバイナリコ
ードデータを所定のテキスト変換記号Yに変換し、この
テキスト変換信号Yがテキストコードデータの1ワード
のバイナリコードデータの変換記号である旨を示す変換
通知記号Xを前記テキスト変換記号Yの直前に付与し、
前記エンドオブテキストコードデータと同一な前記テキ
ストコードデータの1ワードのバイナリコードデータを
XYの記号コードデータとして送信する第1の変換規則
と、 前記可変長テキストコードのデータ列の中の1ワードの
バイナリコードデータが前記第1の変換規則に従い変換
した前記変換通知記号Xのコードデータと同一なとき、
この同一な1ワードのバイナリコードデータを所定のテ
キスト変換記号Zに変換し、このテキスト変換信号Zが
テキストコードデータの1ワードのバイナリコードデー
タの変換記号である旨を示す変換通知記号Xを前記テキ
スト変換記号Zの直前に付与し、前記第1の変換規則に
従い変換した前記変換通知記号Xのコードデータと同一
なテキストコードデータの1ワードのバイナリコードデ
ータをXZの記号コードデータとして送信する第2の変
換規則と、 前記可変長テキストコードのデータ列の中の1ワードの
バイナリコードデータが、前記エンドオブテキストコー
ドデータおよび前記第1の変換規則に従い変換した前記
変換通知記号Xと異るとき、前記可変長テキストコード
データ列の1ワードのバイナリコードデータを変換せず
にそのまま送信する第3の変換規則とから成ることを特
徴とする請求項1記載のテキストデータ伝送方法。
2. The method according to claim 1, wherein when one word of binary code data in the data string of the variable length text code is the same as the end of text code data, the same one word of binary code data is converted to a predetermined value. A conversion notification symbol X indicating that the text conversion signal Y is a conversion symbol of one-word binary code data of the text code data is added immediately before the text conversion symbol Y;
A first conversion rule for transmitting one-word binary code data of the text code data identical to the end-of-text code data as XY symbol code data; and a one-word binary in the data string of the variable-length text code. When the code data is the same as the code data of the conversion notification symbol X converted according to the first conversion rule,
The same one-word binary code data is converted into a predetermined text conversion symbol Z, and a conversion notification symbol X indicating that the text conversion signal Z is a conversion symbol of one-word binary code data of the text code data is set to the above-mentioned. One word binary code data of the same text code data as the code data of the conversion notification symbol X, which is added immediately before the text conversion symbol Z and converted according to the first conversion rule, is transmitted as the symbol code data of XZ. 2, when one word of binary code data in the data string of the variable-length text code is different from the end-of-text code data and the conversion notification symbol X converted according to the first conversion rule, Without converting the one-word binary code data of the variable-length text code data string. 2. The text data transmission method according to claim 1, further comprising a third conversion rule for transmitting the text data as it is.
【請求項3】 前記第1,2,および3の変換規則に従
って送信された前記可変長テキストコードデータ列を前
記伝送フォーマットで受信し、受信した前記可変長テキ
ストコードデータ列に前記変換通知記号Xが含まれ、且
つこの変換通知記号Xに続くコードデータが前記テキス
ト変換記号Yのとき、このテキスト変換記号Yを元の前
記1ワードのバイナリコードデータに変換して復元し、
受信した前記可変長テキストコードデータに前記変換通
知記号Xが含まれ、且つこの変換通知記号Xに続く前記
テキストコードデータが前記テキスト変換記号Zのと
き、このテキスト変換記号Zを元の前記1ワードのバイ
ナリコードデータに変換して復元し、受信した前記可変
長テキストコードデータに前記変換記号X含まれていな
いとき、このテキストコードデータを変換せずにそのま
ま受信することを特徴とする請求項1,2記載のテキス
トデータ伝送方法。
3. The variable-length text code data string transmitted according to the first, second, and third conversion rules is received in the transmission format, and the received variable-length text code data string includes the conversion notification symbol X Is included, and when the code data following the conversion notification symbol X is the text conversion symbol Y, the text conversion symbol Y is converted into the original one-word binary code data and restored.
When the received variable-length text code data includes the conversion notification symbol X and the text code data following the conversion notification symbol X is the text conversion symbol Z, the text conversion symbol Z is converted to the original one word. 2. When the received variable-length text code data does not include the conversion symbol X, the text code data is received without conversion. , 2 text data transmission method.
JP8318343A 1996-11-28 1996-11-28 Text data transmission method Pending JPH10164172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8318343A JPH10164172A (en) 1996-11-28 1996-11-28 Text data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8318343A JPH10164172A (en) 1996-11-28 1996-11-28 Text data transmission method

Publications (1)

Publication Number Publication Date
JPH10164172A true JPH10164172A (en) 1998-06-19

Family

ID=18098109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8318343A Pending JPH10164172A (en) 1996-11-28 1996-11-28 Text data transmission method

Country Status (1)

Country Link
JP (1) JPH10164172A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001010098A1 (en) * 1999-08-02 2001-02-08 Fujitsu Limited Frame communication device
JP2010524372A (en) * 2007-04-13 2010-07-15 トムソン ライセンシング Communication protocol and method for deploying the communication protocol and operating the network
US7864350B2 (en) 2002-12-12 2011-01-04 Seiko Epson Corporation Image processing method and image processing system using the same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001010098A1 (en) * 1999-08-02 2001-02-08 Fujitsu Limited Frame communication device
US7020163B2 (en) 1999-08-02 2006-03-28 Fujitsu Limited Frame communication system
US7864350B2 (en) 2002-12-12 2011-01-04 Seiko Epson Corporation Image processing method and image processing system using the same
JP2010524372A (en) * 2007-04-13 2010-07-15 トムソン ライセンシング Communication protocol and method for deploying the communication protocol and operating the network

Similar Documents

Publication Publication Date Title
EP0381515B1 (en) Integrated communications system for HDLC variable-length data packets and fixed-length voice/video packets
JP4335090B2 (en) Mobile terminal device
US4009469A (en) Loop communications system with method and apparatus for switch to secondary loop
JPH02226943A (en) System for analyzing and processing high level data link control sequence frame
JPH11510982A (en) Computer assisted back signaling method in automatic repeat request method
US5406281A (en) Encoder/decoder and method for efficient string handling in data compression
JPH10164172A (en) Text data transmission method
KR20000005265A (en) Multiplex communication interface circuit and method
JPH03140038A (en) Token ring net work recovery method and device therefor
JPH10327155A (en) Information identification system, controller for the information identification system, and responser
US6625223B1 (en) Method and apparatus for encoding, transmitting and decoding digital data
US5307355A (en) Method and apparatus for generating a 48-bit frame check sequence
JPH05252165A (en) Satellite communication equipment
JPH07336364A (en) Digital radio communication system
JPS59134943A (en) Data communication system
KR102595722B1 (en) Communication network, method and apparatus for identifying node connected thereto
KR100279579B1 (en) How to transfer data for AV system control
JP2829550B2 (en) Communication control LSI
US5903301A (en) Apparatus for removing unnecessary data in communication network
JP3297645B2 (en) Transmission control device and transmission control system
KR0148947B1 (en) Data communication method between program builder and chip mounter
JPH10271097A (en) Transfer data check device and method
JP3140924B2 (en) Synchronous signal detection circuit for second generation cordless telephone system
JP3491403B2 (en) Wireless input system
CN114064533A (en) RS-485 signal polarity identification method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990330