JPH0457437A - Data transmission controller - Google Patents
Data transmission controllerInfo
- Publication number
- JPH0457437A JPH0457437A JP2169441A JP16944190A JPH0457437A JP H0457437 A JPH0457437 A JP H0457437A JP 2169441 A JP2169441 A JP 2169441A JP 16944190 A JP16944190 A JP 16944190A JP H0457437 A JPH0457437 A JP H0457437A
- Authority
- JP
- Japan
- Prior art keywords
- data
- command
- transmission
- byte
- control device
- 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
Links
Landscapes
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は、情報処理装置のデータの送受信の制御を行
うデータ伝送制御装置、特に情報処理装置からのフレー
ム及びコマンドの転送機構に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data transmission control device that controls the transmission and reception of data of an information processing device, and particularly to a mechanism for transferring frames and commands from the information processing device. .
[従来の技術]
第6図は、特開昭61−218248号公報「データ伝
送制御装置」に開示された装置の構成図である。[Prior Art] FIG. 6 is a configuration diagram of a device disclosed in Japanese Patent Application Laid-Open No. 61-218248 entitled “Data Transmission Control Device”.
同図においては、データ伝送制御装置(1)、このデー
タ伝送制御装置(1)を介して他の端末とデータ伝送を
行う情報処理装置(以下ホストと称す)(2)、伝送ラ
イン(3)、データのレベル変換を行うトランシーバ(
4)、送信フレームデータ受理手段(5)及び双方向デ
ータバス(7)が示されている。データ伝送制御装置(
1)には、ホスト(2)とハンドシェーク制御線によっ
て結ばれる端子が設けられている。このうち、端子(8
)には、出力バッファフル信号OBFが、端子(9)に
は入力バッファフル信号IBFが入力される。端子(1
0)からはアクルッジ信号ACKが、端子(11)から
はストローブ信号STBが、それぞれ出力され、端子(
12)にはホスト(2)から出力される送信データの1
バイト目に同期して出力される送信データ同期信号TS
YNが入力される。In the figure, a data transmission control device (1), an information processing device (hereinafter referred to as host) that performs data transmission with other terminals via this data transmission control device (1) (2), and a transmission line (3) are shown. , a transceiver that performs data level conversion (
4), transmit frame data receiving means (5) and bidirectional data bus (7) are shown. Data transmission control device (
1) is provided with a terminal connected to the host (2) by a handshake control line. Among these, the terminal (8
), the output buffer full signal OBF is input to the terminal (9), and the input buffer full signal IBF is input to the terminal (9). Terminal (1
The acknowledge signal ACK is output from the terminal (0), the strobe signal STB is output from the terminal (11), and the terminal (
12) contains 1 of the transmission data output from the host (2).
Transmission data synchronization signal TS output in synchronization with the first byte
YN is input.
送信フレームデータ受理手段(5)のフレーム同期判定
手段(5a)は、送信データ同期信号TSYN (12
)の状態を監視して送信フレームデータの1バイト目の
同期確立を行う。また、フレーム同期制御手段(5b)
は、同期確立後のデータ受理ハンドシェークを行う。The frame synchronization determination means (5a) of the transmission frame data receiving means (5) receives the transmission data synchronization signal TSYN (12
) to establish synchronization with the first byte of the transmission frame data. Also, frame synchronization control means (5b)
performs a data acceptance handshake after synchronization is established.
なお、(14)は送信端子Tx、(15)は受信端子R
xである。Note that (14) is the transmitting terminal Tx, and (15) is the receiving terminal R.
It is x.
第5図は、送信フレームデータのフォーマット説明図で
ある。この図のフレームは、優先コード(PR) 、送
信元アドレス(SA) 、送信先アドレス(DA)、制
御コード(CC)、バイトカウント(BC)、バイトカ
ウント(B C)で指定されるバイト数nのデータ(D
Tl) 〜(DTn)、及びパケット単位での誤りのチ
エツクのためのフレームチエツクコード(F CC)に
より構成される。FIG. 5 is an explanatory diagram of the format of transmission frame data. The frame in this figure consists of the number of bytes specified by the priority code (PR), source address (SA), destination address (DA), control code (CC), byte count (BC), and byte count (BC). n data (D
Tl) to (DTn), and a frame check code (FCC) for checking errors in packet units.
次に動作について説明する。第7図はホスト(2)が出
力したデータをデータ伝送制御装置(1)か入力する場
合の手順を示すタイミング図である。ホスト(2)がフ
レームの送信要求を発生すると、出力バッファフル信号
OBF及び送信データ同期信号TSYNがセットされる
。データ伝送制御装置(1)内のフレーム同期判定手段
(5a)は、出カバソファフル信号OBFがセットされ
たことを検知すると、これに応し送信データ同期信号T
SYNを調べる。すなわち、同期信号TSYNか出力さ
れていることの検知により、送信データの1バイト目で
あることを検知する。Next, the operation will be explained. FIG. 7 is a timing diagram showing the procedure when data output from the host (2) is input to the data transmission control device (1). When the host (2) issues a frame transmission request, an output buffer full signal OBF and a transmission data synchronization signal TSYN are set. When the frame synchronization determining means (5a) in the data transmission control device (1) detects that the output buffer full signal OBF is set, the frame synchronization determining means (5a) in the data transmission control device (1) responds to the transmission data synchronization signal T.
Check SYN. That is, by detecting that the synchronization signal TSYN is being output, it is detected that it is the first byte of the transmission data.
その後、データ伝送制御装置(1)内のフレーム同期制
御手段(5b)はアクルッジ信号ACKを出力する。ホ
スト(2)は、アクルッジ信号ACKが出力されるとこ
れに応し、送信データを出力し、信号OBF及びTSY
Nをリセットする。Thereafter, the frame synchronization control means (5b) in the data transmission control device (1) outputs an acknowledge signal ACK. When the acknowledge signal ACK is output, the host (2) outputs the transmission data in response to the output, and outputs the signals OBF and TSY.
Reset N.
フレーム同期制御手段(5b)は、OBFがリセットさ
れたことを確認してデータを入力し、アクルッジ信号A
CKをリセットする。ホスト(2)は、第2バイト目以
降、送信データ同期信号TsYNをリセットしてデータ
を出力する。ブタ伝送制御装置(1)内の送信フレーム
データ受理手段(5)は2バイト目以降であることを認
識してデータを入力する。送信フレームデータ受理手段
(5)は、データのバイト数を表すカウンタBCをデー
タバスから入力すると、そのデータの数の分だけデータ
の受理ハンドシェークを繰り返しデータの受理を終了す
る。データ受理ハンドシェークの途中でホスト(2)が
停電したなどの理由でホスト側と同期がずれてしまった
場合、フレーム同期判定手段(5a)は、送信データ同
期信号TSYNがセットされた時点で現在までの送信フ
レームデータを破棄し、再び1バイト目PRとして送信
フレームデータの受理を開始する。The frame synchronization control means (5b) inputs data after confirming that the OBF has been reset, and inputs the acknowledge signal A.
Reset CK. From the second byte onward, the host (2) resets the transmission data synchronization signal TsYN and outputs data. The transmission frame data receiving means (5) in the pig transmission control device (1) recognizes that the data is from the second byte onward and inputs the data. When the transmission frame data receiving means (5) receives a counter BC representing the number of bytes of data as input from the data bus, it repeats the data receiving handshake for the number of data bytes and ends the data receiving. If the host (2) loses synchronization with the host side due to a power outage or other reasons during the data reception handshake, the frame synchronization determination means (5a) determines the current state at the time the transmission data synchronization signal TSYN is set. The transmission frame data is discarded and the reception of the transmission frame data is started again as the first byte PR.
データ伝送制御装置(1)は、送信フレームデータをす
べて受理後、スタート・ストップビット・パリティの付
加等の処理を行い、パラレル・シリアル変換を行ってシ
リアルデータを生成し、伝送ライン(3)に対して送信
を開始する。After receiving all transmission frame data, the data transmission control device (1) performs processing such as adding start/stop bits and parity, performs parallel/serial conversion, generates serial data, and sends it to the transmission line (3). Start sending to.
[発明が解決しようとする課題]
従来のデータ伝送制御装置は、以上のように情報処理装
置からデータ伝送制御装置に対して送信フレームデータ
たけを転送する構成であり、送信フレームデータ以外の
情報をデータ伝送制御装置に伝達する要求が発生した場
合、これを行うことができなかった。[Problems to be Solved by the Invention] As described above, the conventional data transmission control device has a configuration in which only the transmission frame data is transferred from the information processing device to the data transmission control device, and information other than the transmission frame data is transferred. If a request occurred to be communicated to the data transmission controller, this could not be done.
この発明は、かかる課題を解決するためになされたもの
で、ホストからのコマンド転送要求に対して、送信デー
タのフォーマットを変更することなく、またホストから
送信データを受理中でもコマンドの受理を行うことので
きるデータ伝送制御装置を得ることを目的とする。This invention was made to solve this problem, and it is possible to accept a command transfer request from a host without changing the format of the transmitted data, and even when transmitting data is being received from the host. The purpose of this invention is to obtain a data transmission control device that can perform the following functions.
[課題を解決するための手段]
この発明にかかるデータ伝送制御装置は、ホストからの
送信データの1バイト目に同期する送信データ転送用同
期信号を検出し送信データの受理を行う送信フレームデ
ータ受理手段と、ホストからのコマンド転送時の1バイ
ト目のデータに同期するコマンド転送同期信号を検出し
てコマンド受理を行うコマンド受理手段とを有するもの
である。[Means for Solving the Problems] A data transmission control device according to the present invention detects a synchronization signal for transmission data transfer that is synchronized with the first byte of transmission data from a host, and receives transmission frame data. and command receiving means for detecting a command transfer synchronization signal synchronized with the first byte of data when transferring a command from the host and accepting the command.
[作用]
この発明によるデータ伝送制御装置によれば、コマンド
受理手段により、コマンド転送同期信号が監視され、こ
の同期信号がセットされた時にはコマンド受理が行われ
る。従って、ホスト(情報処理装置)から転送されるデ
ータをコマンドとして受理できるものとなる。[Operation] According to the data transmission control device according to the present invention, the command receiving means monitors the command transfer synchronization signal, and when the synchronization signal is set, the command is accepted. Therefore, data transferred from the host (information processing device) can be accepted as a command.
[実施例コ
次に図に示す実施例によってこの発明を更に詳細に説明
する。[Example] Next, the present invention will be explained in more detail with reference to an example shown in the drawings.
第1図はこの発明によるデータ伝送制御装置(1)の実
施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a data transmission control device (1) according to the present invention.
この実施例によるデータ伝送制御装置(1)には、送信
フレームデータ受理手段(5)の他に、コマンド受理手
段(6)が設けられている。このコマンド受理手段(6
)は、端子(13)に係るコマンド転送同期信号CMD
Sを監視して、ホスト(2)からのコマンドデータの受
理処理を行う。The data transmission control device (1) according to this embodiment is provided with a command receiving means (6) in addition to a transmission frame data receiving means (5). This command receiving means (6
) is the command transfer synchronization signal CMD related to the terminal (13).
The host (2) monitors the host (2) and processes command data from the host (2).
データ伝送制御装置(1)は例えばマイクロコンピュー
タとして構成される。この場合、送信フレームデータ受
理手段(5)及びコマンド受理手段(6)は、マイクロ
コンピュータに内蔵されたR Okiに記憶されている
プログラムとして実現される。The data transmission control device (1) is configured as, for example, a microcomputer. In this case, the transmission frame data receiving means (5) and the command receiving means (6) are realized as a program stored in R Oki built in the microcomputer.
次に動作について説明する。第2図はホストからの送信
フレームデータ及びコマンドデータの受理の手順を示す
タイミング図、第3図はコマンド受理手段及び送信デー
タ受理手段の動作を示すフローチャート、第4図はコマ
ンドのフォーマットを示す図である。Next, the operation will be explained. Fig. 2 is a timing diagram showing the procedure for receiving transmission frame data and command data from the host, Fig. 3 is a flowchart showing the operation of the command receiving means and sending data receiving means, and Fig. 4 is a diagram showing the command format. It is.
本実施例においてホスト(2)からデータ伝送制御装置
(1)へ転送されるコマンドは、バイト長が1〜5の可
変長で、バイト長の制御をコマンドの1バイト目(CO
MM)のビット0(bo)。In this embodiment, the command transferred from the host (2) to the data transmission control device (1) has a variable length of 1 to 5 bytes, and the byte length is controlled by the first byte (CO) of the command.
Bit 0 (bo) of MM).
1(bl)により行う。データ伝送制御装置(1)は、
まず送信フレームデータもしくはコマンドの転送時にホ
スト(2)から通知される出力バッファフル信号OBF
のチエツクを行う(第3図、Sl)。コマンド受理手段
(6)が出力バッファフル信号OBFの出力を検知する
と、次にコマンド転送同期信号CMDSが調べられコマ
ンドデータの1バイト目であるか否かが判定される(S
2)。1 (bl). The data transmission control device (1) is
First, the output buffer full signal OBF is notified from the host (2) when transmitting frame data or commands are transferred.
(Figure 3, Sl). When the command receiving means (6) detects the output of the output buffer full signal OBF, the command transfer synchronization signal CMDS is then checked to determine whether it is the first byte of command data (S
2).
ここてCMDSがホスト(2)から出力されていればコ
マンド受理ポインタをクリアしくS4)、コマンド受理
中フラグをONL、て、コマンド受理ハンドンエイク(
S5)に移行する。At this point, if CMDS is output from the host (2), clear the command acceptance pointer (S4), set the command acceptance flag to ONL, and execute command acceptance hand (S4).
Proceed to S5).
CMDS(13)が“High” (ホスト(2)から
信号が出力されていない)ならば、コマンド受理中フラ
グを調べ(S3) 、ONならコマンドの2バイト目以
降と判断し、コマンド受理ハンドシェーク処理を行う(
S5)。コマンド受理手段(6)は、コマンド受理ハン
ドシェーク後、コマンドをすべて受理したかをコマンド
受理ポインタ及びCOMIのバイトカウント部の比較に
より判断し、未終了であれば再びOBF信号待ちの処理
に戻り、コマンド受理が完了するまでこれを繰り返す(
S6)。次に、コマンド受理手段(6)は、コマンドを
すべて受は取った時点で送信フレームの受理途中であっ
たかを調べ、送信フレームデータ受理途中であった場合
は、データ受理処理を行う(S7)。If CMDS (13) is “High” (no signal is output from host (2)), check the command acceptance flag (S3), and if it is ON, determine that it is from the second byte of the command and perform command acceptance handshake processing. I do(
S5). After the command acceptance handshake, the command acceptance means (6) determines whether all the commands have been accepted by comparing the command acceptance pointer and the byte count section of COMI, and if the command has not been completed, returns to the process of waiting for the OBF signal and executes the command. Repeat this until the acceptance is complete (
S6). Next, the command receiving means (6) checks whether or not a transmission frame was being received at the time when all the commands were received, and if it was in the middle of receiving transmission frame data, it performs data acceptance processing (S7).
S3においてコマンド受理中でないと判断された場合は
、送信フレームデータ受理手段(5)の動作に移行し、
送信フレームデータ同期信号TSYNのチエツクが行わ
れる。この時TSYNが出力されていた場合は送信フレ
ームデータ受理カウンタをクリアし、送信データ受理中
フラグをONして送信フレームデータの受理を開始する
(S9)。TSYNがホスト(2)から出力されていな
い場合は、2バイト目以降の送信フレームの受理中と判
断しデータの受理を開始する(SlO)。If it is determined in S3 that the command is not being received, the process moves to the operation of the transmission frame data receiving means (5),
The transmission frame data synchronization signal TSYN is checked. If TSYN is being output at this time, the transmission frame data reception counter is cleared, the transmission data reception flag is turned ON, and reception of transmission frame data is started (S9). If TSYN is not output from the host (2), it is determined that the second byte and subsequent transmission frames are being received, and data reception is started (SlO).
送信フレームデータ受理の繰り返し回数は、フレームデ
ータ中に示されるバイトカウントBCにより決定され、
規定回数の送信データ受理を終了した時点で送信フレー
ムデータ受理を完了する(S 11)。The number of repetitions of transmitting frame data reception is determined by the byte count BC indicated in the frame data,
When the transmission data reception has been completed a specified number of times, the transmission frame data reception is completed (S11).
なお、上記81〜S7はこの発明にかかるコマンド受理
手段(6)により実現され、又S8〜S11は送信デー
タ受理手段(5)により実現されている。Note that steps 81 to S7 described above are realized by the command receiving means (6) according to the present invention, and steps S8 to S11 are realized by the transmitted data receiving means (5).
本実施例では、コマンドの受理を送信フレーム受理中に
優先して行うようにしているため、送信フレーム受理中
にコマンド受理要求があった場合、ホスト・データ伝送
制御装置間の信号は第2図のような動作をする。第2図
はホストが2バイトの送信フレームデータの転送後1バ
イトのコマンドの転送を行い、コマンド転送終了後再び
送信フレームデータの転送を3バイト目から行ったこと
を示している。In this embodiment, since command reception is prioritized during reception of a transmission frame, if a command reception request is made during reception of a transmission frame, the signal between the host and the data transmission control device is changed as shown in Figure 2. It behaves like. FIG. 2 shows that the host transfers a 1-byte command after transferring 2 bytes of transmit frame data, and then transfers the transmit frame data again starting from the 3rd byte after the command transfer is completed.
[発明の効果]
この発明は以上説明した通り、コマンドの1バイト目の
データに同期するコマンド転送同期信号を検出するコマ
ンド受理手段を備える構成により、送信フレームデータ
のフォーマットを変更することなく、かつデータバスを
共有してコマンド転送を行うことができる。[Effects of the Invention] As described above, the present invention has a configuration including a command receiving means that detects a command transfer synchronization signal that is synchronized with the first byte data of a command. Commands can be transferred by sharing the data bus.
また、送信フレームデータ受理途中にコマンド転送がな
されても、コマンド転送を優先して受理することができ
、随時コマンドを受は付けることができるデータ伝送制
御装置を得ることができる。Moreover, even if a command is transferred during reception of transmission frame data, it is possible to receive the command transfer with priority, and it is possible to obtain a data transmission control device that can accept and accept commands at any time.
第1図はこの発明の一実施例によるデータ伝送制御装置
のブロック構成図、第2図はこの発明の実施例のタイミ
ング図、第3図はこの発明の実施例による動作のフロー
チャート、第4図はこの発明の実施例によるコマンドフ
ォーマット図、第5図は従来のデータフォーマット図、
第6図は従来装置のブロック構成図、第7図は従来装置
のタイミング図である。
図において、(1)はデータ伝送制御装置、(2)は情
報処理装置、(3)は伝送ライン、(4)はトランシー
バ、(5)は送信フレームブタ受理手段、(6)はコマ
ンド受理手段、(7)は双方向データバス、(8)〜(
13)は端子、(14)は送信端子、(15)は受信端
子である。
なお、各図中同一符号は同一または相当部分を示す。
代理人 弁理士 吉 1)研 二
(外2名)
トデータ伝送制御装置
2:ホスト
3、伝送ライ/
4ニドラン/−バ
5:送信フレームデータ受理手段
6:コマンド受理手段
7、双方向データバス
実施例のブロック構成図
第1図
実施例のコマンドフォ
マント図
第4
図
従来のデータフォーマント図
第5図
1:デ
夕伝送制御装置
4:トランンーバ
第6
図FIG. 1 is a block configuration diagram of a data transmission control device according to an embodiment of the invention, FIG. 2 is a timing diagram of the embodiment of the invention, FIG. 3 is a flowchart of the operation according to the embodiment of the invention, and FIG. 4 is a command format diagram according to an embodiment of the present invention, FIG. 5 is a conventional data format diagram,
FIG. 6 is a block diagram of the conventional device, and FIG. 7 is a timing diagram of the conventional device. In the figure, (1) is a data transmission control device, (2) is an information processing device, (3) is a transmission line, (4) is a transceiver, (5) is a transmission frame reception means, and (6) is a command reception means. , (7) is a bidirectional data bus, (8) to (
13) is a terminal, (14) is a transmitting terminal, and (15) is a receiving terminal. Note that the same reference numerals in each figure indicate the same or corresponding parts. Agent: Patent attorney Yoshi 1) Kenji (2 others) Data transmission control device 2: Host 3, transmission driver/4 driver 5: Transmission frame data receiving means 6: Command receiving means 7, bidirectional data bus implementation FIG. 1: Command formant diagram of the embodiment. FIG. 4: Conventional data formant diagram. FIG. 5: Data transmission control device 4: Transmitter FIG. 6
Claims (1)
を介して複数の情報処理装置のデータの送受信の制御を
行うデータ伝送制御装置において、情報処理装置からの
送信データの第1バイト目に同期する送信データ転送同
期信号を検出し送信データの受理を行う送信フレームデ
ータ受理手段と、情報処理装置からのコマンド転送時の
第1バイト目のデータに同期するコマンド転送同期信号
を検出しコマンド受理を行うコマンド受理手段とを備え
ることを特徴とするデータ伝送制御装置。In a data transmission control device that is connected between an information processing device and a transmission line and controls data transmission and reception of multiple information processing devices via the transmission line, synchronization with the first byte of data sent from the information processing device is performed. a transmission frame data receiving means that detects a transmission data transfer synchronization signal to receive the transmission data and receives the transmission data; and a transmission frame data reception means that detects a command transmission synchronization signal that synchronizes with the first byte of data at the time of command transfer from the information processing device and accepts the command. 1. A data transmission control device comprising: command receiving means for executing a command.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2169441A JPH0457437A (en) | 1990-06-26 | 1990-06-26 | Data transmission controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2169441A JPH0457437A (en) | 1990-06-26 | 1990-06-26 | Data transmission controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0457437A true JPH0457437A (en) | 1992-02-25 |
Family
ID=15886666
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2169441A Pending JPH0457437A (en) | 1990-06-26 | 1990-06-26 | Data transmission controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0457437A (en) |
-
1990
- 1990-06-26 JP JP2169441A patent/JPH0457437A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4439859A (en) | Method and system for retransmitting incorrectly received numbered frames in a data transmission system | |
| JP2503086B2 (en) | Data link control method | |
| US5944797A (en) | Data mover hardware controlled processing in a commanding system and in a commanded system for controlling frame communications on a link | |
| EP0534529A1 (en) | Apparatus and method for burst data transfer | |
| EP0442053A2 (en) | Apparatus for high speed transfer of data | |
| JP2000151623A (en) | Packet communication system | |
| US5721891A (en) | Detection of N length bit serial communication stream | |
| JPH0457437A (en) | Data transmission controller | |
| US20070116066A1 (en) | Method and apparatus for packet error detection | |
| JPH0424676Y2 (en) | ||
| EP4530870A1 (en) | A serial peripheral interface communication system and method | |
| JPH0378066A (en) | Data processor | |
| JPH09326782A (en) | Serial communication method | |
| JPS6361356A (en) | Serial data transfer device | |
| JPS62125455A (en) | Communication control device | |
| JP3245552B2 (en) | Transfer control system | |
| JPH02250453A (en) | Data receiver | |
| JP2644558B2 (en) | Test apparatus and test method for communication device | |
| JPH0438618Y2 (en) | ||
| JPH11232243A (en) | Communication control device, method and communication control system | |
| JPH0353736A (en) | Reception buffer control system | |
| JPH02117244A (en) | Data transmission control equipment | |
| JPS6238637A (en) | Control system for transmission in multi-drop | |
| CN101997648A (en) | Method and device for improving efficiency of data packet transmission | |
| JPS5863248A (en) | Loop type data transmitting system |