JPH0832645A - Data communication controller and checking method for its data transfer - Google Patents

Data communication controller and checking method for its data transfer

Info

Publication number
JPH0832645A
JPH0832645A JP6168162A JP16816294A JPH0832645A JP H0832645 A JPH0832645 A JP H0832645A JP 6168162 A JP6168162 A JP 6168162A JP 16816294 A JP16816294 A JP 16816294A JP H0832645 A JPH0832645 A JP H0832645A
Authority
JP
Japan
Prior art keywords
data
information
block
control information
control
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
JP6168162A
Other languages
Japanese (ja)
Inventor
Kozo Nakada
幸造 中田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP6168162A priority Critical patent/JPH0832645A/en
Publication of JPH0832645A publication Critical patent/JPH0832645A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To provide the data communication controller of high versatility by arbitrarily setting control information such as text start information and text end information, which are added to data and constitute a block. CONSTITUTION:An application program 6 is stored in a memory controlled by CPU 4, and it executes a processing for setting various pieces of communication parameter information for a communication control processor 5 before the execution of communication start. The communication control processor 5 transmits data in a block unit to an opposite station 2 based on text data supplied from CPU 4 and communication parameter information, receives data transmitted from the opposite station 2 and communication-controls data supplied to CPU 4. Furthermore, the communication control processor 5 stores communication parameter information supplied from CPU 4, generates data of a transmission block system, to which control information included in communication parameter information is added, and transmits/receives data in the block unit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、特にコンピュータ間の
データ通信システムに使用されるデータ通信制御装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication controller used in a data communication system between computers.

【0002】[0002]

【従来の技術】従来、例えば分散型のデータ通信システ
ムでは、データ通信回線で接続された各局にデータ通信
制御装置が設けられており、このデータ通信制御装置に
より所定の伝送制御手順(通信手順)が実行されてい
る。局とはデータの送受信を行なう装置であり、通常で
はコンピュータまたは端末装置である。
2. Description of the Related Art Conventionally, for example, in a distributed data communication system, a data communication control device is provided in each station connected by a data communication line, and a predetermined transmission control procedure (communication procedure) is provided by this data communication control device. Is running. A station is a device that transmits and receives data, and is usually a computer or terminal device.

【0003】伝送制御手順は、データ通信制御装置に設
けられた通信制御プロセッサにより実行される。伝送制
御手順には各種の方式があるが、例えばJIS規格のベ
ーシック手順(基本型データ伝送制御手順)が周知であ
る。このベーシック手順は、データリンクの確立(リン
ク確立)、データの送受信(データ転送)、通信回線の
終結またはデータ回線の切断(リンク切断)の通信フェ
ーズ(phase)からなる。
The transmission control procedure is executed by the communication control processor provided in the data communication control device. There are various types of transmission control procedures, and for example, the basic procedure of JIS standard (basic data transmission control procedure) is well known. This basic procedure includes a communication phase (phase) of establishing a data link (link establishment), transmitting / receiving data (data transfer), closing a communication line or disconnecting a data line (link disconnection).

【0004】ところで、ベーシック手順等の伝送制御手
順では、伝送する情報(情報メッセージと呼ばれる)は
ブロック単位で処理される。伝送ブロック形式は、送受
信する情報の本体であるテキストデータ、伝送制御キャ
ラクタ(以下制御情報と称する)およびブロック・チェ
ック・キャラクタ(BCC)からなる。制御情報は、例
えばJIS7ビットコードにより設定されており、テキ
スト開始情報(STX)やテキスト終了情報(ETX)
等がある。BCCは、テキストブロック(制御情報を含
むブロック)のデータエラーを検出するための検査用符
号であり、例えばCRC(cyclic redund
ancy code)である。
By the way, in a transmission control procedure such as a basic procedure, information to be transmitted (called an information message) is processed in block units. The transmission block format consists of text data, which is the body of information to be transmitted and received, transmission control characters (hereinafter referred to as control information), and block check characters (BCC). The control information is set by, for example, JIS 7-bit code, and the text start information (STX) and the text end information (ETX).
Etc. The BCC is a check code for detecting a data error in a text block (block containing control information), and is, for example, a CRC (Cyclic Redund).
ancy code).

【0005】制御情報には、STXやETX以外に、伝
送終了(EOT)、問合わせ(ENQ)、肯定応答(A
CK)、否定応答(NAK)等がある。各局は、これら
の制御情報により伝送制御手順を実行する。また、伝送
制御手順では、各種のタイマ値やリトライ値等の通信用
パラメータ情報があり、予め外部(ユーザ)からの指示
により設定される。例えば、データ転送フェーズにおい
て、相手局から否定応答(NAK)が送信された場合
に、設定されたリトライ値に応じた回数だけデータ転送
をリトライする。
In addition to STX and ETX, the control information includes transmission end (EOT), inquiry (ENQ), and affirmative response (A).
CK), negative acknowledgment (NAK), etc. Each station executes a transmission control procedure based on these control information. In the transmission control procedure, there are communication parameter information such as various timer values and retry values, which are set in advance by an instruction from the outside (user). For example, in the data transfer phase, when a negative response (NAK) is transmitted from the partner station, the data transfer is retried the number of times corresponding to the set retry value.

【0006】[0006]

【発明が解決しようとする課題】従来のデータ通信シス
テムでは、ベーシック手順等の伝送制御手順により、テ
キストデータに開始情報(STX)や終了情報(ET
X)等の制御情報を付加したブロック単位の送受信が行
なわれている。この開始情報(STX)や終了情報(E
TX)は、予めJIS7ビットコード等の規格により固
定的に設定されている。このため、そのような規格によ
るコードまたは予め決定された特定コードによる制御情
報をサポートしているデータ通信制御装置を使用してい
る場合のみ、各局間のデータ通信が可能となる。換言す
れば、従来のデータ通信制御装置には汎用性はなく、異
なるコードの制御情報をサポートしているデータ通信制
御装置を使用している局とは通信不能である。
In the conventional data communication system, start information (STX) and end information (ET) are added to text data by a transmission control procedure such as a basic procedure.
Transmission / reception is performed in block units to which control information such as X) is added. This start information (STX) and end information (E
TX) is fixedly set in advance by a standard such as JIS 7-bit code. Therefore, the data communication between the stations is possible only when the data communication control device supporting the control information by the code according to the standard or the predetermined specific code is used. In other words, the conventional data communication control device does not have general versatility and cannot communicate with a station using the data communication control device supporting the control information of different codes.

【0007】また、送受信されるデータのチェック処理
では、BCCによるテキストブロックのチェックが実行
されるだけである。このため、開始情報(STX)や終
了情報(ETX)等を除くテキストデータ部に異常のあ
るテキストブロックを受信した場合でも、BCCによる
チェック処理では正常なため肯定応答を送信する場合が
ある。この場合、肯定応答を受信した局では、送信した
情報を破棄してしまう危険がある。通常では、否定応答
を受信した場合には送信した情報は破棄されないため、
情報の復旧や解析を行なうことは容易である。
Further, in the process of checking the transmitted / received data, only the text block check by BCC is executed. For this reason, even when a text block having an abnormality in the text data part excluding the start information (STX) and the end information (ETX) is received, the check process by the BCC is normal, and therefore an affirmative response may be transmitted. In this case, the station that has received the positive response has a risk of discarding the transmitted information. Normally, when a negative response is received, the information sent is not discarded, so
It is easy to recover and analyze information.

【0008】本発明の目的は第1に、データに付加して
ブロックを構成するテキスト開始情報やテキスト終了情
報等の制御情報を任意に設定できるようにして、汎用性
の高いデータ通信制御装置を提供することにある。第2
に、データに付加された制御情報のチェック機能を備え
ることにより、送受信されるブロック単位のデータ全体
を確実にチェックできるデータ通信制御装置を提供する
ことにある。
The first object of the present invention is to provide a highly versatile data communication control device by making it possible to arbitrarily set control information such as text start information and text end information which are added to data to form a block. To provide. Second
Another object of the present invention is to provide a data communication control device capable of reliably checking the entire data in block units to be transmitted and received by providing a check function of the control information added to the data.

【0009】[0009]

【課題を解決するための手段】本発明の第1は、相手局
に対してブロック単位のデータを所定の伝送制御手順に
従って送受信する送信手段と受信手段を備えたデータ通
信制御装置において、そのデータの開始情報と終了情報
を含む制御情報を外部から任意に設定する制御情報設定
手段、ブロック単位のデータを送信する送信手段および
相手局から送信されたブロック単位のデータを受信する
受信手段を備えた装置である。
A first object of the present invention is to provide a data communication control device comprising a transmitting means and a receiving means for transmitting / receiving block-unit data to / from a partner station in accordance with a predetermined transmission control procedure. Control information setting means for arbitrarily setting control information including start information and end information from outside, a transmitting means for transmitting data in block units, and a receiving means for receiving data in block units transmitted from the partner station. It is a device.

【0010】本発明の第2は、相手局に対してブロック
単位のデータを所定の伝送制御手順に従って送受信する
データ通信制御装置において、そのデータの開始情報と
終了情報を含む制御情報を外部から任意に設定する制御
情報設定手段、ブロック単位のデータを送信する送信手
段および相手局から送信されたブロック単位のデータを
受信したときに、付加された制御情報に基づいてチェッ
ク処理を実行する受信手段を備えた装置である。
A second aspect of the present invention is a data communication control device for transmitting / receiving block-unit data to / from a partner station in accordance with a predetermined transmission control procedure, from outside the control information including start information and end information of the data. A control information setting means, a transmission means for transmitting data in block units, and a receiving means for executing a check process based on the added control information when receiving data in block units transmitted from the partner station. It is an equipped device.

【0011】[0011]

【作用】本発明の第1では、ブロック単位のデータを相
手局に送信するときに、制御情報設定手段はユーザ等の
指示により、データの開始情報と終了情報を含む制御情
報を任意に設定する。送信手段は、設定された制御情報
を付加したブロック単位のデータを相手局に送信する。
これにより、相手局がサポートしている制御情報に応じ
たブロック単位のデータを送信することができる。
According to the first aspect of the present invention, the control information setting means arbitrarily sets the control information including the start information and the end information of the data by the instruction of the user when transmitting the data in block units to the partner station. . The transmitting means transmits block-unit data to which the set control information is added to the partner station.
As a result, it is possible to transmit block-unit data according to the control information supported by the partner station.

【0012】本発明の第2では、ブロック単位のデータ
を相手局に送信するときに、制御情報設定手段はユーザ
等の指示により、データの開始情報と終了情報を含む制
御情報を任意に設定する。送信手段は、設定された制御
情報を付加したブロック単位のデータを相手局に送信す
る。一方、受信手段は相手局から送信されたブロック単
位のデータを受信すると共に、この受信データに付加さ
れた制御情報に基づいたチェック処理を実行する。これ
により、相手局がサポートしている制御情報に応じたブ
ロック単位のデータを送信することができると共に、制
御情報の異常をチェックすることができるため、データ
全体のチェックが可能となる。
In the second aspect of the present invention, when transmitting the data in block units to the partner station, the control information setting means arbitrarily sets the control information including the start information and the end information of the data according to an instruction from the user or the like. . The transmitting means transmits block-unit data to which the set control information is added to the partner station. On the other hand, the receiving means receives the data in block units transmitted from the partner station, and executes the checking process based on the control information added to the received data. As a result, it is possible to transmit data in block units according to the control information supported by the partner station, and it is possible to check the control information for an abnormality, so that it is possible to check the entire data.

【0013】[0013]

【実施例】以下図面を参照して本発明の実施例を説明す
る。図1は同実施例に係わるデータ通信システムを示す
ブロック図、図2は同実施例に係わる通信パラメータ情
報とデータの内容を説明するための概念図、図3と図4
は同実施例の動作を説明するためのフローチャート、図
5は同実施例の伝送制御手順を説明するための図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a data communication system according to the embodiment, FIG. 2 is a conceptual diagram for explaining communication parameter information and data contents according to the embodiment, and FIGS.
Is a flow chart for explaining the operation of the embodiment, and FIG. 5 is a diagram for explaining the transmission control procedure of the embodiment.

【0014】本システムは、図1に示すように、自局の
データ通信制御装置1と相手局とが通信回線3を介して
接続し、データの送受信を行なう。各局はコンピュータ
または端末装置である。同実施例では便宜的に2局間の
データ転送のみを想定する。さらに、同実施例では相手
局には、自局と同様のデータ通信制御装置1が設けられ
ていることを想定する。
In this system, as shown in FIG. 1, the data communication control device 1 of its own station and the partner station are connected via a communication line 3 to send and receive data. Each station is a computer or a terminal device. In this embodiment, for convenience, only data transfer between two stations is assumed. Further, in the present embodiment, it is assumed that the partner station is provided with the same data communication control device 1 as the own station.

【0015】データ通信制御装置1は、大別してアプリ
ケーションプログラムを実行するプロセッサ(CPU)
4と通信制御プロセッサ(CCP)5からなる。アプリ
ケーションプログラムは、CPU4により制御されるメ
モリ6に格納されており、通信開始実行前に通信制御プ
ロセッサ5に対して各種の通信用パラメータ情報を設定
する処理を行なうためのソフトウエアである。
The data communication control device 1 is roughly classified into a processor (CPU) that executes an application program.
4 and a communication control processor (CCP) 5. The application program is software stored in the memory 6 controlled by the CPU 4 and for performing processing of setting various communication parameter information to the communication control processor 5 before execution of communication start.

【0016】通信制御プロセッサ5は、CPU4から供
給されるテキストデータと通信用パラメータ情報に基づ
いて、相手局に対してブロック単位のデータを送信し、
また相手局から送信されたデータを受信してCPU4に
供給するデータ通信制御を実行する。通信制御プロセッ
サ5は、後述するように、CPU4から供給される通信
用パラメータ情報を記憶し、この通信用パラメータ情報
に含まれる制御情報を付加した伝送ブロック形式のデー
タを生成して、所定の伝送制御手順(ベーシック手順
等)によりブロック単位のデータ送受信を実行する。デ
ータ送受信では、モデム7により変復調処理がなされ
る。
The communication control processor 5 transmits block-unit data to the partner station based on the text data and communication parameter information supplied from the CPU 4,
It also executes data communication control for receiving the data transmitted from the partner station and supplying it to the CPU 4. As will be described later, the communication control processor 5 stores the communication parameter information supplied from the CPU 4, generates the data in the transmission block format to which the control information included in the communication parameter information is added, and performs the predetermined transmission. Data is transmitted and received in block units according to a control procedure (basic procedure, etc.). In data transmission / reception, modem 7 performs modulation / demodulation processing.

【0017】次に、同実施例の動作を説明する。 (送信モード)まず、同実施例では図3のステップS1
に示すように、CPU4はアプリケーションプログラム
により、通信用パラメータ情報の設定処理を実行する。
具体的には、CPU4は、パラメータ設定制御ブロック
からなるコマンドを外部(ユーザ)からの指示に応じて
出力する。即ち、例えばユーザが自局の入力装置(キー
ボード等)からパラメータ設定の指示を入力すると、C
PU4は設定処理を開始してコマンドを出力する。この
コマンドは、図2(A)に示すように、パラメータ情報
ブロック(同図(B)を参照)のサイズを示すブロック
サイズ、本ブロックがパラメータ設定制御ブロックであ
ることを示す識別情報およびパラメータ情報ブロックの
アドレスからなる。
Next, the operation of the embodiment will be described. (Transmission Mode) First, in the embodiment, step S1 in FIG.
As shown in, the CPU 4 executes the setting process of the communication parameter information by the application program.
Specifically, the CPU 4 outputs a command including a parameter setting control block according to an instruction from the outside (user). That is, for example, when the user inputs a parameter setting instruction from the input device (keyboard or the like) of the own station, C
PU4 starts the setting process and outputs a command. As shown in FIG. 2A, this command is a block size indicating the size of the parameter information block (see FIG. 2B), identification information indicating that this block is a parameter setting control block, and parameter information. It consists of a block address.

【0018】パラメータ情報ブロックは、図2(B)に
示すように、テキストデータの開始と終了を示す制御情
報(伝送制御キャラクタ)である開始情報(ST)と終
了情報(ET)、それぞれのバイト数および他のパラメ
ータ情報からなる。他のパラメータ情報とは例えば通信
速度やリトライ値等である。
As shown in FIG. 2B, the parameter information block includes start information (ST) and end information (ET) which are control information (transmission control character) indicating the start and end of text data, and each byte. It consists of a number and other parameter information. The other parameter information is, for example, a communication speed or a retry value.

【0019】通信制御プロセッサ5は、CPU4により
供給されたパラメータ情報ブロックを内部メモリに記憶
し、データ送信制御を開始する(ステップS2)。ここ
で、ベーシック手順等の伝送制御手順では、相手局との
論理的な送受信用経路を確立するためのデータリンクの
確立フェーズ(リンク確立処理)が実行される(ステッ
プS3)。具体的な手順としては、図5(A)に示すよ
うに、自局の通信制御プロセッサ5は相手局に対して、
リンク接続要求(ENQ)を送信する。相手局から肯定
応答(ACK)を受信すると、リンク確立通知を行なっ
てリンクが確立されることになる。
The communication control processor 5 stores the parameter information block supplied by the CPU 4 in the internal memory and starts the data transmission control (step S2). Here, in a transmission control procedure such as a basic procedure, a data link establishment phase (link establishment processing) for establishing a logical transmission / reception path with a partner station is executed (step S3). As a concrete procedure, as shown in FIG. 5A, the communication control processor 5 of the own station
Send a link connection request (ENQ). When an acknowledgment (ACK) is received from the partner station, a link establishment notification is given and the link is established.

【0020】リンクが確立されると、通信制御プロセッ
サ5はデータ送信処理を開始する(ステップS4のYE
S)。通信制御プロセッサ5は、設定されたパラメータ
情報ブロックから開始情報(ST)と終了情報(ET)
を内部メモリから読出し、伝送ブロック形式の送信デー
タを生成する(ステップS5)。伝送ブロック形式のデ
ータは、図2(C)に示すように、テキストデータ(ユ
ーザデータ)に開始情報(ST)と終了情報(ET)の
制御情報とブロック・チェック・キャラクタ(BCC)
が付加されたテキストブロックを単位としている。送信
される情報メッセージは、図2(D)に示すように、テ
キストブロックが複数ブロックとヘッダとから構成され
ている。ここで、各テキストブロックの終了情報(E
T)はブロックの最後を示す情報(JISではETB)
であり、最後のテキストブロックの終了情報(ET)は
テキストの最後を示す情報(JISではETX)であ
る。
When the link is established, the communication control processor 5 starts the data transmission process (YE in step S4).
S). The communication control processor 5 starts the start information (ST) and the end information (ET) from the set parameter information block.
Is read from the internal memory to generate transmission data in the transmission block format (step S5). As shown in FIG. 2C, the transmission block format data includes text data (user data), control information of start information (ST) and end information (ET), and block check character (BCC).
The unit is a text block to which is added. In the information message transmitted, as shown in FIG. 2D, a text block is composed of a plurality of blocks and a header. Here, the end information (E
T) is information indicating the end of block (ETB in JIS)
The end information (ET) of the last text block is information indicating the end of the text (ETX in JIS).

【0021】通信制御プロセッサ5は、図5(A)に示
すように、データの送信フェーズ(データ転送)により
生成したテキストブロックを相手局に送信する(ステッ
プS6)。相手局から正常にデータを受信したことを示
す肯定応答(ACK)が送信されると、通信制御プロセ
ッサ5はテキストブロックの終結まで送信する(ステッ
プS7のYES,S8のNO)。
As shown in FIG. 5A, the communication control processor 5 transmits the text block generated in the data transmission phase (data transfer) to the partner station (step S6). When an acknowledgment (ACK) indicating that data has been normally received is transmitted from the partner station, the communication control processor 5 transmits until the end of the text block (YES in step S7, NO in step S8).

【0022】ここで、相手局から否定応答(NAK)が
送信されると、通信制御プロセッサ5は所定のNAK処
理を実行する(ステップS7のNO,S9)。例えば設
定されたパラメータ情報ブロックのリトライ値に応じた
回数だけデータ送信をリトライし、肯定応答(ACK)
が得られない場合には所定の送信エラー処理を実行す
る。
Here, when the negative response (NAK) is transmitted from the partner station, the communication control processor 5 executes a predetermined NAK process (NO in step S7, S9). For example, data transmission is retried a number of times according to the retry value of the set parameter information block, and an acknowledgment (ACK) is sent.
If is not obtained, a predetermined transmission error process is executed.

【0023】通信制御プロセッサ5は、最後のテキスト
ブロックまで送信すると、図5(A)に示すように、通
信回線の終結またはデータ回線の切断(リンク切断)の
フェーズに移行する。即ち、通信制御プロセッサ5は伝
送終了(EOT)の制御情報を相手局に送信する(ステ
ップS8のYES)。 (受信モード)一方、受信モード(図4のステップS1
0)では、図5(B)に示すように、例えば相手局から
リンク接続要求(ENQ)によりリンクが確立される
と、通信制御プロセッサ5は受信要求を相手局に送信す
る。相手局は、要求されたデータ(テキストブロック)
を送信する(データ転送フェーズ)。
After transmitting up to the last text block, the communication control processor 5 shifts to a phase of terminating the communication line or disconnecting the data line (link disconnection) as shown in FIG. 5 (A). That is, the communication control processor 5 transmits the control information indicating the end of transmission (EOT) to the partner station (YES in step S8). (Reception mode) On the other hand, the reception mode (step S1 of FIG. 4)
In 0), as shown in FIG. 5B, for example, when a link is established from the partner station by a link connection request (ENQ), the communication control processor 5 transmits a reception request to the partner station. Partner station requested data (text block)
Is transmitted (data transfer phase).

【0024】通信制御プロセッサ5は、相手局から送信
されたテキストブロックを受信すると、BCCによるチ
ェック処理を実行する(ステップS11,S12)。こ
のチェック処理により異常を検出した場合には、通信制
御プロセッサ5は否定応答(NAK)を相手局に送信す
る(ステップS17)。相手局は、否定応答の受信に応
じて所定のNAK処理(リトライ処理等)を実行する。
Upon receiving the text block transmitted from the partner station, the communication control processor 5 executes a check process by BCC (steps S11 and S12). When an abnormality is detected by this check processing, the communication control processor 5 sends a negative response (NAK) to the partner station (step S17). The partner station executes a predetermined NAK process (retry process or the like) in response to the reception of the negative response.

【0025】ここで、本発明では、BCCによるチェッ
ク処理の結果が正常な場合でも、通信制御プロセッサ5
は受信したテキストブロックの制御情報のチェック処理
を実行する(ステップS14)。即ち、通信制御プロセ
ッサ5は、設定されたパラメータ情報ブロックから開始
情報(ST)と終了情報(ET)を内部メモリから読出
し、それぞれと受信したテキストブロックの開始情報
(ST)と終了情報(ET)とを比較する。比較結果に
よりそれぞれの制御情報が一致していれば正常であると
判定し、不一致であれば異常であると判定する。
Here, in the present invention, even if the result of the check processing by BCC is normal, the communication control processor 5
Executes the check processing of the control information of the received text block (step S14). That is, the communication control processor 5 reads the start information (ST) and the end information (ET) from the set parameter information block from the internal memory, and the start information (ST) and the end information (ET) of each received text block. Compare with. Based on the comparison result, it is determined that the control information is normal, and that the control information is abnormal, and the control information is abnormal.

【0026】BCCと制御情報の各チェック処理の結果
が正常な場合に、通信制御プロセッサ5は受信したテキ
ストブロックが正常であることを示す肯定応答(AC
K)を相手局に送信する(ステップS16)。制御情報
のチェック処理の結果が異常な場合には、通信制御プロ
セッサ5は否定応答(NAK)を相手局に送信する(ス
テップS17)。相手局は、否定応答の受信に応じて所
定のNAK処理(リトライ処理等)を実行する。
When the result of each check process of BCC and control information is normal, the communication control processor 5 acknowledges that the received text block is normal (AC).
K) is transmitted to the partner station (step S16). When the result of the control information check processing is abnormal, the communication control processor 5 transmits a negative response (NAK) to the partner station (step S17). The partner station executes a predetermined NAK process (retry process or the like) in response to the reception of the negative response.

【0027】通信制御プロセッサ5は、最後のテキスト
ブロックまで受信すると、図5(B)に示すように、通
信回線の終結またはデータ回線の切断(リンク切断)の
フェーズに移行する。即ち、相手局から伝送終了(EO
T)の制御情報を受信すると、通信終了となる(ステッ
プS18のYES)。
When the communication control processor 5 receives the last text block, it shifts to the phase of terminating the communication line or disconnecting the data line (link disconnection), as shown in FIG. 5B. That is, the transmission from the partner station ends (EO
When the control information of T) is received, the communication ends (YES in step S18).

【0028】同実施例では、第1に送受信するテキスト
ブロックの開始情報(ST)と終了情報(ET)は、通
信用パラメータ情報として任意に設定される。したがっ
て、テキストブロックを送信する場合に、相手局がサポ
ートしている制御情報に合わせて設定することが可能と
なる。これにより、例えばJIS規格のコードによる制
御情報を使用していない局のデータ通信制御装置に対し
て、JIS規格のコードを該当するコードの制御情報に
変更することによりデータ送受信の互換性を確保するこ
とができる。換言すれば、特殊なテキストフォーマット
の伝送ブロック形式を採用しているデータ通信制御装置
との通信接続が可能となる。
In this embodiment, the start information (ST) and end information (ET) of the first text block to be transmitted and received are arbitrarily set as communication parameter information. Therefore, when transmitting a text block, it is possible to set it according to the control information supported by the partner station. Thereby, for example, for the data communication control device of the station which does not use the control information according to the JIS standard code, the compatibility of data transmission / reception is ensured by changing the JIS standard code into the control information of the corresponding code. be able to. In other words, it is possible to establish a communication connection with a data communication control device that employs a special text format transmission block format.

【0029】第2に、BCCによるチェック処理だけで
なく、制御情報のチェック処理を実行する。これによ
り、制御情報の異常の場合に、データを送信した相手局
に対して肯定応答(ACK)を送信することなく、否定
応答(NAK)を送信することができる。したがって、
相手局側では、否定応答(NAK)を受信することによ
り、送信したデータを破棄することなく、所定のエラー
処理(データの復旧等)が実行されることになる。換言
すれば、制御情報に異常があるにもかかわらず、肯定応
答(ACK)を送信して、相手局側で送信したデータを
破棄してしまうような事態を防止することができる。
Second, not only the BCC check process but also the control information check process is executed. Accordingly, when the control information is abnormal, the negative acknowledgment (NAK) can be transmitted without transmitting the positive acknowledgment (ACK) to the partner station that transmitted the data. Therefore,
By receiving the negative response (NAK) on the partner station side, predetermined error processing (data recovery etc.) is executed without discarding the transmitted data. In other words, it is possible to prevent a situation in which a positive response (ACK) is transmitted and the data transmitted by the partner station is discarded even though the control information is abnormal.

【0030】[0030]

【発明の効果】以上詳述したように本発明によれば、第
1に所定の伝送制御手順により開始情報や終了情報等の
制御情報を付加したテキストブロックを送受信する場合
に、その制御情報を任意に設定することができる。した
がって、特定の制御情報を使用している局に対してデー
タ送受信の互換性を確保することができるため、結果的
に汎用性を高くすることができる。
As described in detail above, according to the present invention, first, when a text block to which control information such as start information and end information is added is transmitted and received by a predetermined transmission control procedure, the control information is transmitted. It can be set arbitrarily. Therefore, compatibility of data transmission / reception can be ensured for a station using specific control information, and as a result, versatility can be improved.

【0031】第2に、テキストブロックに付加された制
御情報のチェック機能を備えることにより、ブロック単
位のデータ全体を確実にチェックできる。したがって、
制御情報に異常のあるテキストブロックを受信した場合
でも、データの送信側に肯定応答を送信することなく、
確実に否定応答を送信することができる。これにより、
結果的に異常のあるデータを誤って破棄するような事態
を防止して、異常のあるデータに対する復旧や解析等を
確実に行なうことが可能となる。
Secondly, by providing the check function of the control information added to the text block, the entire data in block units can be surely checked. Therefore,
Even if a text block with abnormal control information is received, without sending an acknowledgment to the sender of the data,
It is possible to reliably send a negative response. This allows
As a result, it is possible to prevent a situation in which abnormal data is mistakenly discarded and to reliably perform recovery or analysis of abnormal data.

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

【図1】本発明の実施例に係わるデータ通信システムを
示すブロック図。
FIG. 1 is a block diagram showing a data communication system according to an embodiment of the present invention.

【図2】同実施例に係わる通信用パラメータ情報と送受
信データの内容を説明するための概念図。
FIG. 2 is a conceptual diagram for explaining the contents of communication parameter information and transmission / reception data according to the embodiment.

【図3】同実施例の動作を説明するためのフローチャー
ト。
FIG. 3 is a flowchart for explaining the operation of the embodiment.

【図4】同実施例の動作を説明するためのフローチャー
ト。
FIG. 4 is a flowchart for explaining the operation of the embodiment.

【図5】同実施例の伝送制御手順を説明するための図。FIG. 5 is a diagram for explaining a transmission control procedure of the embodiment.

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

1…データ通信制御装置、2…相手局、3…通信回線、
4…プロセッサ(CPU)、5…通信制御プロセッサ、
6…アプリケーションプログラム用メモリ、7…モデ
ム。
1 ... Data communication control device, 2 ... Partner station, 3 ... Communication line,
4 ... Processor (CPU), 5 ... Communication control processor,
6 ... Memory for application program, 7 ... Modem.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 相手局に対してブロック単位のデータを
所定の伝送制御手順に従って送受信するデータ通信制御
装置において、 外部からの指示に応じて前記ブロック単位のデータの開
始情報と終了情報を含む制御情報を設定する制御情報設
定手段と、 データ送信時に前記制御情報設定手段により設定された
前記制御情報を付加した前記ブロック単位のデータを前
記相手局に送信する送信手段と、 データ受信時に前記相手局から送信された前記制御情報
を付加された前記ブロック単位のデータを受信する受信
手段とを具備したことを特徴とするデータ通信制御装
置。
1. A data communication control device for transmitting / receiving block unit data to / from a partner station according to a predetermined transmission control procedure, including control including start information and end information of the block unit data in response to an instruction from the outside. Control information setting means for setting information, transmitting means for transmitting the block-unit data added with the control information set by the control information setting means to the partner station at the time of data transmission, and the partner station at the time of data reception A data communication control device, comprising: receiving means for receiving the block-unit data added with the control information transmitted from the device.
【請求項2】 相手局に対してブロック単位のデータを
所定の伝送制御手順に従って送受信するデータ通信制御
装置において、 外部からの指示に応じて前記ブロック単位のデータの開
始情報と終了情報を含む制御情報を設定する制御情報設
定手段と、 データ送信時に前記制御情報設定手段により設定された
前記制御情報を付加した前記ブロック単位のデータを前
記相手局に送信する送信手段と、 データ受信時に前記相手局から送信された前記ブロック
単位のデータを受信し、この受信データに付加された前
記制御情報に基づいて前記受信データのチェック処理を
実行する受信手段とを具備したことを特徴とするデータ
通信制御装置。
2. A data communication control device for transmitting / receiving block unit data to / from a partner station according to a predetermined transmission control procedure, including control including start information and end information of the block unit data in response to an instruction from the outside. Control information setting means for setting information, transmitting means for transmitting the block-unit data added with the control information set by the control information setting means to the partner station at the time of data transmission, and the partner station at the time of data reception A data communication control device, comprising: a receiving unit that receives the block-unit data transmitted from the device and executes a check process of the received data based on the control information added to the received data. .
【請求項3】 相手局に対してブロック単位のデータを
所定の伝送制御手順に従って送受信するデータ通信制御
装置において、 外部からの指示に応じて前記ブロック単位のデータの開
始情報と終了情報を含む制御情報を生成する制御情報生
成手段と、 この制御情報生成手段により生成された前記制御情報を
記憶する記憶手段と、 データ送信時に前記記憶手段に記憶された前記制御情報
を付加した前記ブロック単位のデータを前記相手局に送
信する送信手段と、 データ受信時に前記相手局から送信された前記ブロック
単位のデータを受信し、この受信データに付加されたチ
ェック情報に基づいたチェック処理を実行すると共に、
前記受信データに付加された制御情報と前記記憶手段に
記憶された前記制御情報との比較結果に基づいたチェッ
ク処理を実行する受信手段とを具備したことを特徴とす
るデータ通信制御装置。
3. A data communication control device for transmitting / receiving block-unit data to / from a partner station according to a predetermined transmission control procedure, including control including start information and end information of the block-unit data in response to an instruction from the outside. Control information generation means for generating information, storage means for storing the control information generated by the control information generation means, and data in block units to which the control information stored in the storage means at the time of data transmission is added And a means for transmitting to the other station, receiving the block unit data transmitted from the other station at the time of data reception, and performing a check process based on the check information added to the received data,
A data communication control device comprising: a receiving unit that executes a check process based on a comparison result of the control information added to the received data and the control information stored in the storage unit.
【請求項4】 相手局に対してブロック単位のデータを
所定の伝送制御手順に従って送受信するデータ通信制御
装置において、 外部からの指示に応じて前記ブロック単位のデータの開
始情報と終了情報を含む制御情報を設定するステップ
と、 データ受信時に前記相手局から送信された前記ブロック
単位のデータを受信するステップと、 受信された受信データに付加された制御情報と設定され
た前記制御情報とを比較するステップと、 この比較結果が不一致の場合に否定応答を前記相手局に
送信し、または前記比較結果が一致の場合に肯定応答を
前記相手局に送信するステップとからなることを特徴と
するデータ通信制御装置のデータ転送チェック方法。
4. A data communication control device for transmitting / receiving block-unit data to / from a partner station in accordance with a predetermined transmission control procedure, the control including start information and end information of the block-unit data in response to an instruction from the outside. The step of setting information, the step of receiving the data in block units transmitted from the partner station at the time of data reception, and the control information added to the received data received and the set control information are compared. And a step of transmitting a negative response to the partner station when the comparison result does not match, or a positive response to the partner station when the comparison result matches. Control device data transfer check method.
【請求項5】 相手局に対してブロック単位のデータを
所定の伝送制御手順に従って送受信するデータ通信制御
装置において、 外部からの指示に応じて前記ブロック単位のデータの開
始情報と終了情報を含む制御情報を設定するステップ
と、 データ受信時に前記相手局から送信された前記ブロック
単位のデータを受信するステップと、 受信された受信データに付加されたチェック情報に基づ
いたチェック処理を実行するステップと、 前記受信データに付加された制御情報と設定された前記
制御情報とを比較するステップと、 前記チェック情報に基づいたチェック処理によりエラー
検出をした場合または前記各制御情報の比較結果が不一
致の場合に否定応答を前記相手局に送信するステップと
からなることを特徴とするデータ通信制御装置のデータ
転送チェック方法。
5. A data communication control device for transmitting / receiving block-unit data to / from a partner station according to a predetermined transmission control procedure, control including start information and end information of the block-unit data in response to an instruction from the outside. Setting information, receiving the block unit data transmitted from the partner station at the time of data reception, and performing a check process based on the check information added to the received data received, A step of comparing the control information set with the control information added to the received data, and when an error is detected by a check process based on the check information or when the comparison result of the control information does not match. And a step of transmitting a negative response to the partner station. Over data transfer check method.
【請求項6】 複数の局間でブロック単位のデータを所
定の伝送制御手順に従って送受信するデータ通信システ
ムにおいて、 前記各局毎に、外部からの指示に応じて前記ブロック単
位のデータの開始情報と終了情報を含む制御情報を設定
する制御情報設定手段と、 データリンクが確立された前記各局間で送信側の局から
データ送信を行なう場合に、前記制御情報設定手段によ
り設定された前記制御情報を付加した前記ブロック単位
のデータを送信する送信手段と、 データリンクが確立された前記各局間で受信側の局が前
記送信手段により送信されたデータを受信し、前記制御
情報設定手段により設定された前記制御情報に基づいて
前記受信データをチェックする受信手段とを具備したこ
とを特徴とするデータ通信システム。
6. A data communication system for transmitting / receiving block unit data between a plurality of stations according to a predetermined transmission control procedure, wherein start information and end of the block unit data are transmitted to each station in response to an instruction from the outside. When data is transmitted from a transmitting side station between control information setting means for setting control information including information and each station where a data link is established, the control information set by the control information setting means is added. The transmitting means for transmitting the data in the block unit and the station on the receiving side between the stations having the data link established receive the data transmitted by the transmitting means and set by the control information setting means. A data communication system comprising: a receiving unit that checks the received data based on control information.
JP6168162A 1994-07-20 1994-07-20 Data communication controller and checking method for its data transfer Pending JPH0832645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6168162A JPH0832645A (en) 1994-07-20 1994-07-20 Data communication controller and checking method for its data transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6168162A JPH0832645A (en) 1994-07-20 1994-07-20 Data communication controller and checking method for its data transfer

Publications (1)

Publication Number Publication Date
JPH0832645A true JPH0832645A (en) 1996-02-02

Family

ID=15862962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6168162A Pending JPH0832645A (en) 1994-07-20 1994-07-20 Data communication controller and checking method for its data transfer

Country Status (1)

Country Link
JP (1) JPH0832645A (en)

Similar Documents

Publication Publication Date Title
US4507782A (en) Method and apparatus of packet switching
CN112383882B (en) Data transmission method in Bluetooth battery replacement and battery replacement system
US4947317A (en) Communication protocol for a three nodes system having dedicated connections and bit indicating function of exchanged message
JP2000513516A (en) Multiplex communication interface circuit and method
CN109167809B (en) Internet of things platform docking data transmission format processing method
JPH0832645A (en) Data communication controller and checking method for its data transfer
EP3764576A1 (en) System and method for implementing a hybrid automatic repeat request process
JPH06290130A (en) Data communication controller
JP3377420B2 (en) Communication processing device
JP2001177508A (en) Radio communication equipment
JP3454264B2 (en) Wireless communication system and wireless communication method
KR900004663B1 (en) Data communication interface circuit
JP3460502B2 (en) Serial transmission system
JPH08149153A (en) Virtual buffer control system in relay computer
JP2536385B2 (en) Data communication method
JP2518468B2 (en) Information processing device
JPH0897880A (en) Communication system by procedure applicable to hdlc
CN117714550A (en) Data transmission method, system, equipment and storage medium
CN114003936A (en) Method for downloading downtime data in online authorization manner
JPH06311144A (en) Communication control method
JPH07105107A (en) Downloading method
JPH05219023A (en) Transmitting device for data with error control code
CN115603901A (en) Key updating method, device, acquisition terminal equipment and storage medium
JP2000332847A (en) Protocol processing unit
KR20030018243A (en) Method for initializing atm switch network