JP2890982B2 - Data transmission control method - Google Patents

Data transmission control method

Info

Publication number
JP2890982B2
JP2890982B2 JP4165156A JP16515692A JP2890982B2 JP 2890982 B2 JP2890982 B2 JP 2890982B2 JP 4165156 A JP4165156 A JP 4165156A JP 16515692 A JP16515692 A JP 16515692A JP 2890982 B2 JP2890982 B2 JP 2890982B2
Authority
JP
Japan
Prior art keywords
transmission
flag
data
signal
communication circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP4165156A
Other languages
Japanese (ja)
Other versions
JPH066416A (en
Inventor
徹 島樋
秀紀 南口
貴志 小野寺
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4165156A priority Critical patent/JP2890982B2/en
Publication of JPH066416A publication Critical patent/JPH066416A/en
Application granted granted Critical
Publication of JP2890982B2 publication Critical patent/JP2890982B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、HDLC方式のフレー
ム構成でデータ送信を行う際に情報フレームの前後に所
定数のフラグパターンを付加するデータ送信制御方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission control system for adding a predetermined number of flag patterns before and after an information frame when data is transmitted in an HDLC frame configuration.

【0002】[0002]

【従来の技術】図4に本発明が対象とするHDLC方式
のデータ通信に用いるフレームフォーマットを示す。
2. Description of the Related Art FIG. 4 shows a frame format used for HDLC data communication which is the object of the present invention.

【0003】図に示すように、HDLC(High-level D
ata Link Control )伝送手順に基づいた送信フレームを
ネットワークに送出する場合には、情報フレームの前後
に“01111110”からなる8ビットのフラグパターンを
所定回数付加して送信することによって受信側で情報フ
レームの区切りを認識するようになっている。
As shown in the figure, HDLC (High-level D
(ata Link Control) When transmitting a transmission frame based on the transmission procedure to the network, an 8-bit flag pattern consisting of "01111110" is added a predetermined number of times before and after the information frame and transmitted. Is recognized.

【0004】1対1のHDLC通信では、無通信時には
このフラグパターンを常時送出しておいても特に問題は
ない。しかし、一つの伝送路を複数のデータ送出元が共
有する1対多のLAN等の通信ネットワークにおいてH
DLC通信を行う場合には、無通信時にフラグパターン
を常時送出しておくと、複数の送出元からのデータが衝
突してしまう。 そこで、LANではフラグパターンの
伝送路への送出を常時は行わず、送信情報の前後にシス
テムに固有の所定数のフラグパターンを付与し、情報フ
レームと付与されたフラグ部以外ではバスを駆動しない
ようにしている。
[0004] In one-to-one HDLC communication, there is no particular problem even if this flag pattern is constantly transmitted when there is no communication. However, in a communication network such as a one-to-many LAN in which one transmission path is shared by a plurality of data transmission sources, H
In the case of performing DLC communication, if a flag pattern is constantly transmitted during non-communication, data from a plurality of transmission sources will collide. Therefore, in the LAN, the flag pattern is not always transmitted to the transmission path, a predetermined number of flag patterns specific to the system are added before and after the transmission information, and the bus is not driven except for the information frame and the added flag portion. Like that.

【0005】図5に従来のデータ送信制御方式を示す。
プロセッサ1は通信回路2を介して伝送路4にデータを
送出する。通信回路2は、プロセッサ1に制御されて送
信フレームを作成して、送信ドライバ3を介して伝送路
4に送信データを送出する。
FIG. 5 shows a conventional data transmission control system.
The processor 1 sends data to the transmission path 4 via the communication circuit 2. The communication circuit 2 creates a transmission frame under the control of the processor 1 and sends out transmission data to the transmission line 4 via the transmission driver 3.

【0006】通信回路2はフラグパターン生成部21、送
信ゲート22、データバッファ23、フレーム作成部24、制
御部25とを有する。フラグパターン生成部21は、HDL
C手順のフラグパターンを繰り返して常時生成してい
る。そして無通信時には送信ゲート22は、制御部25から
の制御によりこのフラグパターンを常時送出している
が、送信要求信号RTS がノンアクティブであるため、送
信ドライバ3が非動作状態にあるので、フラグパターン
は伝送路4 へは送出されない。
The communication circuit 2 has a flag pattern generator 21, a transmission gate 22, a data buffer 23, a frame generator 24, and a controller 25. The flag pattern generation unit 21
The flag pattern of the procedure C is repeatedly generated at all times. When there is no communication, the transmission gate 22 always sends this flag pattern under the control of the control unit 25. However, since the transmission request signal RTS is inactive, the transmission driver 3 is in an inactive state. The pattern is not transmitted to the transmission line 4.

【0007】プロセッサ1が送信動作を開始すると所定
の送信開始信号TSが制御部25に送られるので、制御部25
は送信要求信号RTS をアクティブとする。RTS がアクテ
ィブになると、送信ドライバ3が動作状態となり、フラ
グパターンが伝送路4に送出される。プロセッサ1は、
送信開始信号TSを送出したあとフラグパターン送出時間
分待機する。例えば25個のフラグパターンのフラグ送
出時間が経過すると、プロセッサ1はデータバッファ23
に送信データを転送して書き込む。データバッファ23へ
の送信データの書込が開始すると、制御部25は送信ゲー
ト22を制御してフラグパターンの送出を停止し、代わり
にデータバッファ23の送信データを用いてフレーム生成
部24で生成された情報フレームが送出されるように送信
ゲート22を切り替える。
When the processor 1 starts the transmission operation, a predetermined transmission start signal TS is sent to the control unit 25.
Activates the transmission request signal RTS. When the RTS is activated, the transmission driver 3 is activated, and the flag pattern is transmitted to the transmission line 4. Processor 1
After transmitting the transmission start signal TS, it waits for the flag pattern transmission time. For example, when the flag sending time of 25 flag patterns elapses, the processor 1 sets the data buffer 23
Transfer and write the transmission data to When the writing of the transmission data to the data buffer 23 starts, the control unit 25 controls the transmission gate 22 to stop the transmission of the flag pattern, and generates the flag pattern using the transmission data of the data buffer 23 in the frame generation unit 24 instead. The transmission gate 22 is switched so that the transmitted information frame is transmitted.

【0008】これにより、伝送路4には所定数のフラグ
パターン送出後に情報フレームが送出される。また情報
フレームの後側でも、同様に、データ送出後プロセッサ
1 が所定数のフラグパターン送出時間を待ち合わせた後
制御部25に通知するので、制御部25はRTS 信号をノン
アクティブにして送信ドライバ3の動作を停止させるこ
とにより後方フラグの数を規定する。
As a result, an information frame is transmitted to the transmission line 4 after a predetermined number of flag patterns have been transmitted. Similarly, after the data frame, the processor
Since 1 waits for a predetermined number of flag pattern transmission times and then notifies the control unit 25, the control unit 25 deactivates the RTS signal and stops the operation of the transmission driver 3, thereby defining the number of rear flags.

【0009】[0009]

【発明が解決しようとする課題】上記の如く従来技術で
は、プロセッサのプログラムをループさせることによっ
てフラグパターン送出時間を計測する等のソフトウエア
処理により付加するフラグパターン数を制御していた。
As described above, in the prior art, the number of flag patterns to be added is controlled by software processing such as measuring a flag pattern transmission time by looping a program of a processor.

【0010】しかし、プロサッサがフラグパターン送出
時間部待機しているあいだに、プロサッセに別の割込み
処理が入ると待ち合わせループが中断するので、割込み
処理にかかった時間分だけフラグ送出時間の計測にずれ
が生じる。するとプロセッサからデータバッファ23への
データ書込の開始時間が遅れるので、実際に伝送路へ送
出されるフラグパターン数に誤差が生ずる。このため、
所定のプロトコルを満足しなくり、受信側では情報フレ
ームを認識することが不可能になるという問題が生じ
る。また、プロサッセは待機時間の間は、他の処理を行
えないのでソフトウエアの負担が大きいという問題もあ
った。
However, while the processor waits for the flag pattern transmission time section, if another interrupt processing enters the processor, the waiting loop is interrupted, so that the measurement of the flag transmission time is shifted by the time required for the interrupt processing. Occurs. Then, since the start time of data writing from the processor to the data buffer 23 is delayed, an error occurs in the number of flag patterns actually transmitted to the transmission path. For this reason,
There is a problem that the predetermined protocol is not satisfied, and the receiving side cannot recognize the information frame. Further, during the standby time, the prossess cannot perform other processing, so that there is a problem that the load on software is large.

【0011】本発明はこれらの問題に鑑みて創出された
もので、プロセッサに負担をかけることなく、情報フレ
ームの前後に所定数のフラグパターンを正確に付加でき
るようにすることを目的とする。
The present invention has been made in view of these problems, and has as its object to enable a predetermined number of flag patterns to be accurately added before and after an information frame without burdening a processor.

【0012】[0012]

【課題を解決するための手段】図1は、本発明のデータ
送信制御方式の原理図である。上記問題点は、図1に示
す如く、情報フレームの前後にそれぞれn個、m個のフ
ラグパターンを付加して伝送路4に送出するHDLC方
式通信におけるデータ送信制御方式であって、フラグパ
ターンを常時送出しており、送信許可信号CTS がアクテ
ィブのときにプロセッサ1からの送信データを情報フレ
ームにのせて送出し、またプロサッサ1 からの送信開始
信号TSにより送信要求信号RTS を出力する通信回路2
と、送信要求信号RTS がアクティブのときに通信回路2
からの送出信号を伝送路4に送出する送信ドライバと、
通信回路2からの送出信号を調べてフラグパターンを検
出して計数し、送信要求信号RTS アクティブ後のフラグ
パターン検出数が所定数nに達したら送信許可信号CTS
をアクティブとし、該送信許可信号CTS アクティブ後の
フラグパターン検出数が第二の所定数mに達したら前記
送信要求信号RTS をノンアクティブにするフラグ数制御
部5と、を有することを特徴とする本発明のデータ送信
制御方式により解決される。
FIG. 1 is a diagram showing the principle of a data transmission control system according to the present invention. The above problem is a data transmission control method in HDLC communication in which n and m flag patterns are added before and after an information frame and transmitted to the transmission path 4 as shown in FIG. A communication circuit 2 for transmitting the transmission data from the processor 1 in an information frame when the transmission permission signal CTS is active, and outputting a transmission request signal RTS in response to the transmission start signal TS from the processor 1
And the communication circuit 2 when the transmission request signal RTS is active.
A transmission driver for transmitting a transmission signal from the transmission line 4 to the transmission line 4;
The transmission signal from the communication circuit 2 is checked to detect and count the flag pattern. When the number of flag patterns detected after the activation of the transmission request signal RTS reaches a predetermined number n, the transmission permission signal CTS
And a flag number control unit 5 that deactivates the transmission request signal RTS when the number of flag patterns detected after the activation of the transmission permission signal CTS reaches a second predetermined number m. The problem is solved by the data transmission control method of the present invention.

【0013】[0013]

【作用】プロセッサ1は、データ送信時に、送信データ
と送信開始信号とを同時に通信回路2に送る。通信回路
2は、送信要求信号RTS をアクティブにして、送信ドラ
イバ3を動作状態とするので、通信回路2が常時送出し
ているフラグパターンが伝送路4へ送出される。フラグ
数制御部5は通信回路2から送信バッファ3に送出され
ている信号を監視してフラグパターンの有無を常時検出
しており、送信要求信号RTS がアクティブ後、即ち、送
信ドライバ3動作開始後のフラグパターン数を計数し、
予め規定されている前方フラグ数nに達したら、送信許
可信号CTSを通信回路2に出力する。通信回路2は、直
ちに送出信号をフラグパターンから送信データに切替
え、プロサセサ1からの送信データが情報フレームとし
て伝送路に送出される。情報フレームの送出が終了する
と、通信回路2はフラグパターンの送出が再度開始す
る。フラグ数制御部5は、送信許可信号CTS アクティブ
後にフラグ数の計数を開始するが、HDLC規約により
情報フレームにはフラグパターンは含まれないので、情
報フレーム送出中にはフラグ制御部5はフラグパターン
を検出せず、情報フレーム後のフラグパターン数を計数
することになり、この計数値が予め規定された後方フラ
グ数mに達したら、送信要求信号RTS をノンアクティブ
とし、送信ドライバ3から伝送路4へのフラグパターン
の送出を停止させる。
When transmitting data, the processor sends the transmission data and the transmission start signal to the communication circuit at the same time. Since the communication circuit 2 activates the transmission request signal RTS and puts the transmission driver 3 into an operating state, the flag pattern which the communication circuit 2 always transmits is transmitted to the transmission line 4. The flag number control unit 5 monitors the signal sent from the communication circuit 2 to the transmission buffer 3 to constantly detect the presence / absence of a flag pattern. After the transmission request signal RTS is activated, that is, after the operation of the transmission driver 3 starts. Count the number of flag patterns,
When the number of forward flags reaches a predetermined number n, the transmission permission signal CTS is output to the communication circuit 2. The communication circuit 2 immediately switches the transmission signal from the flag pattern to the transmission data, and the transmission data from the processor 1 is transmitted to the transmission line as an information frame. When the transmission of the information frame ends, the communication circuit 2 starts transmitting the flag pattern again. The flag number control unit 5 starts counting the number of flags after the transmission permission signal CTS is activated. However, since the information frame does not include the flag pattern according to the HDLC standard, the flag control unit 5 sets the flag pattern during transmission of the information frame. Is detected and the number of flag patterns after the information frame is counted. When the counted value reaches a predetermined number m of rear flags, the transmission request signal RTS is set to non-active, and the transmission driver 3 Then, the transmission of the flag pattern to No. 4 is stopped.

【0014】以上により、情報フレームの前後に所定数
のフラグパターンが付加さたものが伝送路4に送出され
る。この際に、プロセッサは、データ送信開始時に、送
信開始信号TSと送信データとを一括して通信回路に送出
するだけでよく、それ以後の送信制御処理は通信回路と
フラグ付加制御部のハードウエアで自動的に行われるの
で、プロセッサはフラグパターン送出時間分、待機する
必要がない。従って、従来技術の如くプロセッサの割込
み処理によるフラグパターン数に誤差が生じることがな
く、またプロセッサの負荷が軽減される。
As described above, an information frame to which a predetermined number of flag patterns are added before and after the information frame is transmitted to the transmission line 4. At this time, the processor only has to transmit the transmission start signal TS and the transmission data to the communication circuit at once when the data transmission starts, and the subsequent transmission control processing is performed by the hardware of the communication circuit and the flag addition control unit. The processor does not need to wait for the flag pattern transmission time. Therefore, unlike the prior art, no error occurs in the number of flag patterns due to the interrupt process of the processor, and the load on the processor is reduced.

【0015】[0015]

【実施例】以下添付図により本発明の実施例を説明す
る。なお全図を通じて同一符号は同一対象物を表す。図
2は本発明の実施例構成図、図3は実施例の動作タイム
チャートである。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. Note that the same reference numerals denote the same objects throughout the drawings. FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is an operation time chart of the embodiment.

【0016】図2において、1はプロセッサ、2は通信
回路、3は送信ドライバ、4は伝送路、5はフラグ数制
御部である。プロセッサ1は、送信すべきデータを生成
して、送信開始信号TSとともに通信回路に送出する。
In FIG. 2, 1 is a processor, 2 is a communication circuit, 3 is a transmission driver, 4 is a transmission line, and 5 is a flag number control unit. The processor 1 generates data to be transmitted and sends it to the communication circuit together with the transmission start signal TS.

【0017】通信回路2は、プロセッサ1に制御されて
送信フレームを作成して送信ドライバ3を介して伝送路
4に送信データを送出する。送信ドライバ3は、送信イ
ネーブル信号SEN により動作し、通信回路2からの送出
データ信号を伝送路4に送出する。
The communication circuit 2 creates a transmission frame under the control of the processor 1 and sends out transmission data to the transmission line 4 via the transmission driver 3. The transmission driver 3 operates according to the transmission enable signal SEN, and transmits a transmission data signal from the communication circuit 2 to the transmission line 4.

【0018】通信回路2はフラグパターン生成部21、送
信ゲート22、データバッファ23、制御部25、フレーム作
成部24とを有する。フラグパターン生成部21は、HDL
C手順のフラグパターンを繰り返して常時生成してい
る。送信ゲート22は例えば2:1 セレクタからなり、選択
制御信号Sの制御により、送信出力TXD から送出する送
出信号としてフレーム作成部25からの情報フレームかフ
ラグパターン生成部21からのフラグパターンの何れか一
方を選択する。
The communication circuit 2 has a flag pattern generator 21, a transmission gate 22, a data buffer 23, a controller 25, and a frame generator 24. The flag pattern generation unit 21
The flag pattern of the procedure C is repeatedly generated at all times. The transmission gate 22 is composed of, for example, a 2: 1 selector, and is controlled by the selection control signal S to transmit either an information frame from the frame generator 25 or a flag pattern from the flag pattern generator 21 as a transmission signal transmitted from the transmission output TXD. Select one.

【0019】データバッファ23はプロサッセ1から転送
されてくる情報フレーム作成に必要なデータを一時保持
する。フレーム作成部24はデータバッファ23が保持する
データを用いてHDLC規約に従って情報フレームを作
成する。制御部25は、プロサッサ1からの送信開始信号
TSより送信要求信号RTS をアクティブする。また、制御
部25は、切替制御信号Sを送信許可信号CTS によりアク
ティブに、フレーム作成部24からのデータ終了信号DED
にによりノンアクティブにして、送信ゲート22を制御す
る。
The data buffer 23 temporarily holds data necessary for creating an information frame transferred from the processor 1. The frame creating unit 24 creates an information frame using the data held in the data buffer 23 according to the HDLC standard. The control unit 25 transmits a transmission start signal from the processor 1
Activate the transmission request signal RTS from the TS. Further, the control unit 25 activates the switching control signal S by the transmission permission signal CTS, and outputs the data end signal DED from the frame creation unit 24.
And the transmission gate 22 is controlled.

【0020】フラグ数制御部5は、フラグ検出部51、n
進カウンタ52、m進カウンタ53、三つのANDゲート5
4、55、56、二つのフリップフロップ57,58、二つのイン
バータ59a,59b からなる。
The flag number control unit 5 includes a flag detection unit 51, n
Binary counter 52, m-ary counter 53, three AND gates 5
4, 55, 56, two flip-flops 57, 58, and two inverters 59a, 59b.

【0021】通信回路2からの送信要求信号RTS は、A
NDゲート56を介してフリップフロップ57のセット端子
に入力する。フリップフロップ57のQ出力は、送信イネ
ーブル信号SEN として送信ドライバ3を制御する。
The transmission request signal RTS from the communication circuit 2 is A
The signal is input to the set terminal of the flip-flop 57 via the ND gate 56. The Q output of the flip-flop 57 controls the transmission driver 3 as a transmission enable signal SEN.

【0022】フラグ検出部51は、通信回路2から送信ド
ライバ3へ送出される送出信号を常時監視しており、送
出信号にHDLC方式のフラグパターン“011111
10”を検出すると検出パルスを出す。検出パルスは送
信要求信号RTS で開くANDゲート54を介してn進カウ
ンタ52に、また送信許可信号CTS で開くANDゲート55
を介してm進カウンタ53に入力している。n進カウンタ
52は送信要求信号RTSがアクティブの時に、フラグ検出
パルスを計数し計数値がnに達した時に“1”を出力す
る。フリップフロップ58は、このn到達信号によりセッ
トされ送信許可信号CTS を生成する。m進カウンタ53
は、送信許可信号CTS がアクティブの時にフラグ検出パ
ルスを計数し、該計数値がmに達すると“1”を出力す
る。このm到達信号はフリップフロップ57のリセット入
力に加えられ、送信イネーブル信号SEN をノンアクティ
ブとする。
The flag detection unit 51 constantly monitors a transmission signal transmitted from the communication circuit 2 to the transmission driver 3, and includes a flag pattern "011111" of the HDLC system in the transmission signal.
When 10 "is detected, a detection pulse is issued. The detection pulse is supplied to the n-ary counter 52 via an AND gate 54 opened by the transmission request signal RTS, and an AND gate 55 opened by the transmission permission signal CTS.
Is input to the m-ary counter 53 via the. n-ary counter
52 counts flag detection pulses when the transmission request signal RTS is active, and outputs "1" when the count value reaches n. The flip-flop 58 generates a transmission permission signal CTS set by the n arrival signal. m-ary counter 53
Counts flag detection pulses when the transmission permission signal CTS is active, and outputs "1" when the count reaches m. This m arrival signal is applied to the reset input of the flip-flop 57 to make the transmission enable signal SEN non-active.

【0023】以上の構成を有するデータ送信制御方式の
動作を、図3の動作タイムチャートを共に用いて説明す
る。データ送信を行おうとするプロセッサ1は、送信デ
ータと送信開始信号TSとを同時に通信回路2に送る。通
信回路2は、送信要求信号RTS をアクティブにする。こ
のときはまだm進カウンタの出力が“0”なのでフリッ
プフロップ57は、リセットからセット状態に変化して送
信イネーブル信号SEN をアクティブとするので送信ドラ
イバ3が動作状態となる。これにより、通信回路2が常
時送出しているフラグパターンが伝送路4へ送出され
る。一方、フラグ検出部51は、通信回路2から送信ドラ
イバ3に送出されている送出信号からフラグパターンを
検出するたびにフラグ検出パルスを出力している。n進
カウンタ52は送信要求信号RTS アクティブによりフラグ
検出パルスの計数を開始し予め規定されている前方フラ
グ数nに達したら、フリップフロップ58をセットして、
送信許可信号CTS を通信回路2に出力する。通信回路2
は、直ちに送出信号TXD をフラグパターンから情報フレ
ームに切替えるので、プロサッサからの送信データが情
報フレームとして伝送路4に送出される。情報フレーム
の送出が終了すると、通信回路2ではフラグパターンの
送出が再度開始する。HDLC規約により情報フレーム
にはフラグパターンは含まれないので、フラグ検出部51
は情報フレーム送出中にはフラグパターンを検出しな
い。送信許可信号CTS により計数を開始したm進カウン
タ53はフラグパターン送出再開後のフラグ検出パルスを
計数し、後方フラグ数mに達すると“1”を出力し、A
NDゲート56を閉じて送信要求信号を抑止するとともに
フリップフロップ57をリセットする。これにより、送信
イネーブル信号SEN がノンアクティブとなり送信ドライ
バ3は動作を停止し、伝送路4へのフラグパターンの送
出が停止する。
The operation of the data transmission control system having the above configuration will be described with reference to the operation time chart of FIG. The processor 1 that intends to transmit data transmits the transmission data and the transmission start signal TS to the communication circuit 2 at the same time. The communication circuit 2 activates the transmission request signal RTS. At this time, since the output of the m-ary counter is still "0", the flip-flop 57 changes from the reset state to the set state and activates the transmission enable signal SEN, so that the transmission driver 3 is activated. As a result, the flag pattern which the communication circuit 2 always sends is sent to the transmission line 4. On the other hand, the flag detection section 51 outputs a flag detection pulse every time a flag pattern is detected from a transmission signal transmitted from the communication circuit 2 to the transmission driver 3. The n-ary counter 52 starts counting flag detection pulses in response to the transmission request signal RTS active, and when the number of forward flags reaches a predetermined number n, sets the flip-flop 58,
A transmission permission signal CTS is output to the communication circuit 2. Communication circuit 2
Immediately changes the transmission signal TXD from the flag pattern to the information frame, so that the transmission data from the processor is transmitted to the transmission line 4 as an information frame. When the transmission of the information frame ends, the communication circuit 2 starts transmitting the flag pattern again. Since the information frame does not include the flag pattern according to the HDLC standard, the flag detection unit 51
Does not detect the flag pattern during transmission of the information frame. The m-ary counter 53, which has started counting by the transmission permission signal CTS, counts flag detection pulses after restarting the transmission of the flag pattern, and outputs "1" when the number m of rearward flags is reached.
The ND gate 56 is closed to suppress the transmission request signal and reset the flip-flop 57. As a result, the transmission enable signal SEN becomes non-active, the transmission driver 3 stops operating, and the transmission of the flag pattern to the transmission line 4 stops.

【0024】以上の動作により、情報フレームの前後に
所定数のフラグパターンが付加さたれたたものが伝送路
に送出される。
By the above operation, the information frame with a predetermined number of flag patterns added before and after the information frame is transmitted to the transmission line.

【0025】[0025]

【発明の効果】以上説明した如く、本発明によれば、H
DLC方式のデータ送信において、プロセッサは、デー
タ送信開始時に送信開始信号TSと送信データとを一括し
て通信回路に送出するだけでよく、それ以後の送信制御
処理は通信回路とフラグ数制御部のハードウエアで自動
的に行われるので、プロセッサはフラグパターン送出時
間分、待機する必要がない。従って、従来技術の如くプ
ロセッサの割込み処理によるフラグパターン数に誤差が
生じることがなく、またプロセッサの負荷が軽減される
という効果がある。
As described above, according to the present invention, H
In the data transmission of the DLC system, the processor only needs to transmit the transmission start signal TS and the transmission data collectively to the communication circuit at the start of data transmission, and the subsequent transmission control processing is performed by the communication circuit and the flag number control unit. Since the processing is automatically performed by hardware, the processor does not need to wait for the flag pattern transmission time. Therefore, there is an effect that an error does not occur in the number of flag patterns due to the interrupt processing of the processor unlike the related art, and the load on the processor is reduced.

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

【図1】本発明のデータ送信制御方式の原理図FIG. 1 is a principle diagram of a data transmission control method according to the present invention.

【図2】本発明の実施例構成図FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】実施例の動作タイムチャートFIG. 3 is an operation time chart of the embodiment.

【図4】本発明が対象とするHDLC方式のデータ通信
に用いるフレームフォーマット
FIG. 4 is a frame format used for HDLC data communication according to the present invention;

【図5】従来のデータ送信制御方式を示す図FIG. 5 is a diagram showing a conventional data transmission control method.

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

1…プロセッサ、2…通信回路、21…フラグパターン生
成部、22…送信ゲート、23…データバッファ、24…フレ
ーム作成部、25…制御部、3…送信ドライバ、4…伝送
路、5…フラグ数制御部、51…フラグ検出部、52…n進
カウンタ、53…m進カウンタ
DESCRIPTION OF SYMBOLS 1 ... Processor, 2 ... Communication circuit, 21 ... Flag pattern generation part, 22 ... Transmission gate, 23 ... Data buffer, 24 ... Frame creation part, 25 ... Control part, 3 ... Transmission driver, 4 ... Transmission path, 5 ... Flag Numerical control unit, 51 ... flag detection unit, 52 ... n-ary counter, 53 ... m-ary counter

フロントページの続き (72)発明者 小野寺 貴志 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 平3−196736(JP,A) 特開 平8−51469(JP,A) (58)調査した分野(Int.Cl.6,DB名) H04L 29/10 H04L 29/08 Continuation of the front page (72) Inventor Takashi Onodera 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (56) References JP-A-3-196736 (JP, A) JP-A-8-51469 (JP, A) (58) Field surveyed (Int. Cl. 6 , DB name) H04L 29/10 H04L 29/08

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 情報フレームの前後にそれぞれn個、m
個のフラグパターンを付加して伝送路(4) に送出するH
DLC方式通信におけるデータ送信制御方式であって、 フラグパターンを常時送出しており、送信許可信号(CT
S) がアクティブのときにプロセッサ(1) からの送信デ
ータを情報フレームにのせて送出し、またプロサッサ
(1) からの送信開始信号TSにより送信要求信号(RTS) を
出力する通信回路(2) と、 送信要求信号(RTS) がアクティブのときに通信回路(2)
からの送出信号を伝送路(4) に送出する送信ドライバ
(3) と、 通信回路(2) からの送出信号を調べてフラグパターンを
検出して計数し、送信要求信号(RTS) アクティブ後のフ
ラグパターン検出数が所定数nに達したら送信許可信号
(CTS) をアクティブとし、該送信許可信号(CTS) アクテ
ィブ後のフラグパターン検出数が第二の所定数mに達し
たら前記送信要求信号(RTS) をノンアクティブにするフ
ラグ数制御部(5) と、 を有することを特徴とするデータ送信制御方式。
1. An information frame, n and m respectively before and after an information frame.
H to be transmitted to the transmission line (4) after adding
This is a data transmission control method in DLC communication, in which a flag pattern is constantly transmitted and a transmission permission signal (CT
When (S) is active, the transmission data from the processor (1) is sent in an information frame and transmitted.
A communication circuit (2) that outputs a transmission request signal (RTS) based on the transmission start signal TS from (1), and a communication circuit (2) when the transmission request signal (RTS) is active
Driver that sends outgoing signals from the transmission line (4)
(3) Check the transmission signal from the communication circuit (2) and detect and count the flag pattern.When the number of flag patterns detected after the activation of the transmission request signal (RTS) reaches the predetermined number n, the transmission permission signal
(CTS) is activated, and when the number of flag patterns detected after the activation of the transmission permission signal (CTS) reaches a second predetermined number m, the flag number control unit (5) that deactivates the transmission request signal (RTS). A data transmission control method, comprising:
JP4165156A 1992-06-24 1992-06-24 Data transmission control method Expired - Fee Related JP2890982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4165156A JP2890982B2 (en) 1992-06-24 1992-06-24 Data transmission control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4165156A JP2890982B2 (en) 1992-06-24 1992-06-24 Data transmission control method

Publications (2)

Publication Number Publication Date
JPH066416A JPH066416A (en) 1994-01-14
JP2890982B2 true JP2890982B2 (en) 1999-05-17

Family

ID=15806941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4165156A Expired - Fee Related JP2890982B2 (en) 1992-06-24 1992-06-24 Data transmission control method

Country Status (1)

Country Link
JP (1) JP2890982B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3276895B2 (en) * 1997-01-14 2002-04-22 矢崎総業株式会社 Transmission device, reception device, communication device, communication method, and communication system
JP4612640B2 (en) * 2007-01-15 2011-01-12 Necアクセステクニカ株式会社 Data communication system and data communication method

Also Published As

Publication number Publication date
JPH066416A (en) 1994-01-14

Similar Documents

Publication Publication Date Title
JPH0728290B2 (en) Confidential equipment for data transmission
US4488232A (en) Self-adjusting, distributed control, access method for a multiplexed single-signal data bus
JP3377798B2 (en) IEEE488 interface and message processing method
EP0196870B1 (en) Interface circuit for transmitting and receiving data
JP2890982B2 (en) Data transmission control method
EP0076401B1 (en) Self adjusting, distributed control, access method for a multiplexed single signal data bus
JPH09500992A (en) Scalar interrupt-recognition system
GB1571375A (en) Programme switching monitor
US6178177B1 (en) Data-processing network having non-deterministic access, but having deterministic access time
JP2767990B2 (en) Microprocessor control method
JPH0851469A (en) Data transmission control system
JP2919057B2 (en) Non-response monitoring method in multi-job system
EP0288191B1 (en) Method and apparatus for data transfer handshake pipelining
JP2590775B2 (en) Double loop transmission system
JPH0358217B2 (en)
JP3260515B2 (en) Interface circuit for multiple port storage device
JPH0546535A (en) Data transfer interface device
JPH0318958A (en) Multiprocessor system
JPH0414339A (en) Terminal equipment
SU1043715A1 (en) Device for transmitting information in circular communication channel
SU1444792A1 (en) Arrangement for data exchange between processor and users
JPS6134659A (en) Variable priority selecting circuit
JPH10334053A (en) Computer system
JPH04236538A (en) Data transmission system
JPS6117425B2 (en)

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990126

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

Free format text: PAYMENT UNTIL: 20080226

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090226

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090226

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100226

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees