JPH01122239A - Communication controller - Google Patents

Communication controller

Info

Publication number
JPH01122239A
JPH01122239A JP62279192A JP27919287A JPH01122239A JP H01122239 A JPH01122239 A JP H01122239A JP 62279192 A JP62279192 A JP 62279192A JP 27919287 A JP27919287 A JP 27919287A JP H01122239 A JPH01122239 A JP H01122239A
Authority
JP
Japan
Prior art keywords
data
transmission
reception
loop test
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
Application number
JP62279192A
Other languages
Japanese (ja)
Inventor
Kazuhiko Maruyama
和彦 丸山
Yoshinori Tsujita
辻田 義範
Yoshiyuki Yugawa
湯川 奉行
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62279192A priority Critical patent/JPH01122239A/en
Publication of JPH01122239A publication Critical patent/JPH01122239A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To perform a transmission/reception loop test of high reliability in a communication controller by providing a FF for loop test execution and setting this FF at the time of executing the loop test on the transmission side. CONSTITUTION:At the time of the transmission/reception loop test where transmission data on a transmission data line 61 passes a driver 21 and is directly outputted to a reception data B line 60 through a receiver 22, a processing part 25 of the communication controller outputs a set signal to a set line 66 of a FF 68 for loop test execution to set this FF 68. When it is set, the turn-on condition of an AND gate 55 is established through an OR gate 65 and reception data passing the receiver 22 is outputted to the reception data B line 60 through the AND gate 55 and data is received by the processing part 25.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、通信制御装置に関し、ループテストを行うこ
とが可能な通信制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication control device, and more particularly, to a communication control device capable of performing a loop test.

〔従来の技術〕[Conventional technology]

従来のデータ通信システムにおいては、特公昭59−5
3573号公報に記載のようにセンタ・システムからの
信号に対する応答信号の返送を自動的に行う端末装置が
存在する。しかし端末装置の処理が高速になった場合の
センタ・システムでの前記応答信号の受信、および送信
と受信の処理を同時に行う送受信ループテストについて
は配慮されていなかった。
In the conventional data communication system,
As described in Japanese Patent No. 3573, there is a terminal device that automatically sends back a response signal in response to a signal from a center system. However, no consideration has been given to reception of the response signal in the center system when the processing speed of the terminal device becomes faster, and to a transmission/reception loop test in which transmission and reception processing are performed simultaneously.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のセンタシステムの半二重通信方式の通信制御装置
におい、では、受信キャラクタ変換部への通信回線から
の受信データの入力を、送信データの送信終了を検出後
ただちに許可することにより受信キャラクタ変換部が動
作する。それによって。
In the communication control device of the conventional half-duplex communication method of the center system, the input of the received data from the communication line to the received character conversion unit is permitted immediately after the completion of transmission of the transmitted data is detected, thereby converting the received character. section works. Thereby.

端末装置側に通信制御装置からの送信データが到達する
と同時に、通信制御装置は受信可能としていた。上記従
来技術は、通信制御装置において、送信と受信の処理を
同時に行う場合については配慮がされておらず、通信制
御装置内での送受信ループテストを行うことが出来ない
という問題点があった0本発明の目的は1通信制御装置
において。
As soon as the data sent from the communication control device reaches the terminal device side, the communication control device is enabled to receive the data. The above-mentioned conventional technology does not take into consideration the case where the communication control device performs transmission and reception processing at the same time, and there is a problem in that it is not possible to perform a transmission/reception loop test within the communication control device. An object of the present invention is to provide a communication control device.

送信と受信の処理を同時に可能とし、通信制御装置内で
の送受信ループテストを可能とする通信制御装置を提供
することにある。
It is an object of the present invention to provide a communication control device that enables simultaneous transmission and reception processing and enables a transmission/reception loop test within the communication control device.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、ループテスト実行用フリップ・フロップを
持たせ、送受信ループテストを実行時に、ループテスト
実行用フリップ・フロップを許可することにより、達成
することが出来る。
The above object can be achieved by providing a flip-flop for executing a loop test and permitting the flip-flop for executing a loop test when executing a transmit/receive loop test.

〔作用〕[Effect]

受信キャラクタ変換部へのプログラムからの受信開始起
動は、送信動作開始時に同時に行なうが、送信データの
送信終了を検出し受信入力を許可する回路をONする以
前に、ループテスト実行用フリップ・フロップの許可を
行っておき、前記ループテスト実行用フリップ・フロッ
プの出力が入力されているアンドゲートに受信データが
入力されることにより、受信キャラクタ変換部へ送信デ
ータの入力が行える。
The start of reception from the program to the reception character conversion section is performed at the same time as the start of the transmission operation, but before turning on the circuit that detects the end of transmission of transmission data and permits reception input, the flip-flop for loop test execution is activated. After permission is granted, the received data is input to the AND gate to which the output of the flip-flop for executing the loop test is input, so that the transmitted data can be input to the received character converter.

それによって、通信制御装置では送信が終了していなく
ても受信可能状態となっているので送受信ループテスト
時に受信キャラクタ変換部に送信データを取り込めなく
なるという誤動作が発生することはない。
As a result, the communication control device is in a state where it can receive data even if the transmission has not been completed, so that a malfunction in which the received character converter cannot receive the transmitted data during a transmission/reception loop test does not occur.

〔実施例〕〔Example〕

以下1本発明の一実施例を図面により説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第2図は、従来の半二重通信方式のデータ通信システム
の一例を示すブロック図である。
FIG. 2 is a block diagram showing an example of a conventional half-duplex data communication system.

同図において、1は中央処理装置、2は通信制御装置、
3は複数の端末装置、4は同軸ケーブルで構成される通
信回線、21はドライバー、22はレシーバ、23は送
信キャラクタ変換部、24は受信キャラクタ変換部、2
5は通信制御装置の処理部、31はドライバー、32は
レシーバ、33は送信キャラクタ変換部、34は受信キ
ャラクタ変換部、35は端末装置の処理部である。
In the figure, 1 is a central processing unit, 2 is a communication control unit,
3 is a plurality of terminal devices, 4 is a communication line composed of coaxial cables, 21 is a driver, 22 is a receiver, 23 is a transmitting character converter, 24 is a receiving character converter, 2
5 is a processing section of the communication control device, 31 is a driver, 32 is a receiver, 33 is a transmission character conversion section, 34 is a reception character conversion section, and 35 is a processing section of the terminal device.

通信制御装置2からのポーリング信号及びセレクティン
グ信号は、通信制御装置の処理部25でデータが作成さ
れ、送信キャラクタ変換部23でシリアルデータに変換
され、ドライバー21を経由して通信回線4へ送信され
る1通信回線4上のポーリング信号及び、セレクティン
グ信号は各端末装置3のレシーバ−32を経由して受信
キャラクタ変換部34に入力され、パラレルデータに変
換されて、端末装置の処理部35に転送される。
The polling signal and the selecting signal from the communication control device 2 are data created by the processing unit 25 of the communication control device, converted into serial data by the transmission character conversion unit 23, and transmitted to the communication line 4 via the driver 21. The polling signal and the selecting signal on one communication line 4 are inputted to the received character converter 34 via the receiver 32 of each terminal device 3, converted into parallel data, and then sent to the processor 35 of the terminal device. will be forwarded to.

端末装置の処理部35は、自局に対するポーリング信号
及びセレクティング信号だと判断すると応答データを作
成し、送信キャラクタ変換部33でシリアルデータに変
換し、ドライバ31を経由して通信回線4へ送信する0
通信回線4上の端末装置3からの応答信号は、通信制御
装置2のレシーバ−22を経由して受信キャラクタ変換
部24に入力され、パラレルデータに変換されて通信制
御装置の処理部25に転送される。
When the processing unit 35 of the terminal device determines that the signal is a polling signal and a selecting signal for its own station, it creates response data, converts it into serial data in the transmission character conversion unit 33, and transmits it to the communication line 4 via the driver 31. 0 to do
A response signal from the terminal device 3 on the communication line 4 is input to the reception character converter 24 via the receiver 22 of the communication control device 2, converted into parallel data, and transferred to the processing section 25 of the communication control device. be done.

第2図の様に構成されたデータ通信システムにおいては
、前記のデータ転送方法により、通信制御装置2より順
番に端末装置3を走査してデータ転送を制御するホーリ
ングセレフティング方式が採用される。
In the data communication system configured as shown in FIG. 2, the above-described data transfer method employs a holing selective method in which the communication control device 2 sequentially scans the terminal devices 3 to control data transfer.

半二重通信方式の通信制御装置では、通信制御装置2か
ら端末装置3ヘデータを伝送しているときには、端末装
置3から通信制御装置2へはデータの伝送はできない。
In a half-duplex communication control device, when data is being transmitted from the communication control device 2 to the terminal device 3, data cannot be transmitted from the terminal device 3 to the communication control device 2.

逆に端末装置3から通信制御装置2ヘデータを伝送して
いるときには、通信制御装置!2から端末袋2置3へは
データの伝送はできない。
Conversely, when data is being transmitted from the terminal device 3 to the communication control device 2, the communication control device! Data cannot be transmitted from terminal bag 2 to terminal bag 2 and 3.

第1図は、従来の通信制御装置に本発明を採用した場合
の具体例を示すブロック図である。
FIG. 1 is a block diagram showing a specific example in which the present invention is applied to a conventional communication control device.

4は同軸ケーブルで構成される通信回線、21はドライ
バー、22はレシーバ、23は送信キャラクタ変換部、
24は受信キャラクタ変換部、25は通信制御装置の処
理部、56は送信終了判定回路、54は受信許可用スリ
ップ・フロップ、55はアンドゲート、60は受信デー
タ(B)線。
4 is a communication line composed of a coaxial cable, 21 is a driver, 22 is a receiver, 23 is a transmission character converter,
24 is a reception character converter, 25 is a processing unit of the communication control device, 56 is a transmission end determination circuit, 54 is a slip flop for reception permission, 55 is an AND gate, and 60 is a reception data (B) line.

61は送信キャラクタ変換部23からのシリアルな出力
データである送信データ線でドライバー21に入力する
と共に、送信終了判定回路56の入力となる。
A transmission data line 61 is serial output data from the transmission character converter 23 and is input to the driver 21 and also serves as an input to the transmission end determination circuit 56.

62はアンドゲート55を経由して受信キャラクタ変換
部24へ入力する通信回線4からの受信データ(A)線
、63は通信制御装置の処理部25から出力され、送信
終了判定回路56と受信許可用フリップ・フロップ54
に入力され、各々を起動する起動信号線、64は通信制
御装置の処理部25より出力される送信クロック信号線
、68はループテスト実行用フリップ・フロップ、66
はループテスト実行用フリップ・フロップをセットする
ループテスト実行用フリップ・フロップセット線、67
はループテスト実行用フリップ・フロップ68をリセッ
トするループテスト実行用フリップ・フロップリセット
線、65はオアゲートである。以下、第1図の動作説明
を行う、送信動作を行なう場合1通信制御装置の処理部
25上のプログラムは送信データをメモリ上にセットし
、送信キャラクタ変換部23に起動をかける。送信キャ
ラクタ変換部23はメモリ上の送信データをDMA転送
で持ってきてシリアルなデータに変換すると供にHDL
C手順(JIS−C6363)で定義しである送信フォ
ーマットに必要なパターンである開始フラグシーケンス
、フレーム検査シーケンス、終結フラグシーケンスを作
成して送信する。受信動作を行なう場合、通信制御装置
の処理部25上のプログラムは受信データをセットする
エリアをメモリ上に準備し、受信キャラクタ変換部24
に起動をかける。受信キャラクタ変換部24は受信デー
タを監視し、開始フラグシーケンスを検出すると、受信
データをパラレルなデータに変換し、DMA転送でメモ
リに転送する、そして、終結フラグシーケンスを検出す
ると受信動作を終了する。
62 is the received data (A) line from the communication line 4 which is input to the received character converter 24 via the AND gate 55, and 63 is output from the processing unit 25 of the communication control device, and is sent to the transmission end determination circuit 56 and the reception permission line. flip flop 54
64 is a transmission clock signal line outputted from the processing unit 25 of the communication control device, 68 is a flip-flop for loop test execution, 66
is a flip-flop set line for loop test execution that sets a flip-flop for loop test execution, 67
is a loop test execution flip-flop reset line for resetting the loop test execution flip-flop 68, and 65 is an OR gate. The operation of FIG. 1 will be explained below. When performing a transmission operation, the program on the processing section 25 of the communication control device 1 sets transmission data on the memory and activates the transmission character conversion section 23. The transmission character converter 23 fetches the transmission data on the memory by DMA transfer, converts it into serial data, and converts it into HDL.
A start flag sequence, a frame check sequence, and an end flag sequence, which are patterns required for a transmission format defined by C procedure (JIS-C6363), are created and transmitted. When performing a reception operation, the program on the processing unit 25 of the communication control device prepares an area in the memory to set reception data, and
Activate. The reception character converter 24 monitors the reception data, and when it detects a start flag sequence, converts the reception data into parallel data and transfers it to the memory by DMA transfer, and when it detects an end flag sequence, it ends the reception operation. .

送信データ線61上の送信データがドライバー21を経
由しそのデータが直接レシーバ−22を経由して受信デ
ータ(B)線60に出力する送受信ループテスト時には
、通信制御装置の処理部25がループテスト実行用フリ
ップ・フロップセット線66にセット信号を出力して、
ループテスト実行用フリップ・フロップ68をセットす
る。
During a transmission/reception loop test in which the transmission data on the transmission data line 61 passes through the driver 21 and the data directly passes through the receiver 22 and is output to the reception data (B) line 60, the processing unit 25 of the communication control device performs the loop test. Output a set signal to the execution flip-flop set line 66,
Flip-flop 68 for loop test execution is set.

ループテスト実行用スリップ・フロップ68がセットさ
れると、オアゲート65を経由してアンドゲート55の
オン条件が成立し、このアンドゲート55にレシーバ2
2を経由した、受信データが受信データ(B)線60に
出力されて処理部25においてデータが受信される。
When the loop test execution slip flop 68 is set, the ON condition of the AND gate 55 is established via the OR gate 65, and the AND gate 55 is connected to the receiver 2.
2, the received data is output to the received data (B) line 60 and is received by the processing unit 25.

以上述べたように送受信ループテスト時には、ループテ
スト実行用フリップ・フロップ68をセットすることに
より処理部25において常時受信可能となる。
As described above, during the transmission/reception loop test, by setting the loop test execution flip-flop 68, the processing section 25 can always receive signals.

本実施例によれば、送信データがドライバー21を経由
し、そのデータが直接レシーバ−22を経由して受信デ
ータ(B)線60に転送する送受信ループテストを実行
可能とすることが出来る。
According to this embodiment, it is possible to perform a transmission/reception loop test in which transmission data passes through the driver 21 and the data is directly transferred to the reception data (B) line 60 via the receiver 22.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、送信と受信の処理が同時に可能な半二
重通信方式の通信制御装置を安価に提供することが出来
るので1通信制御装置内での信頼性の高い送受信ループ
テストが可能となった。
According to the present invention, it is possible to provide a half-duplex communication control device that can perform transmission and reception processing simultaneously at a low cost, making it possible to conduct a highly reliable transmission/reception loop test within one communication control device. became.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明が適用された通信制御装置の一実施例を
示すブロック図、第2図は従来の半二重通信方式のデー
タ通信システムの一例を示すブロック図である。 23・・・送信キャラクタ変換部、24・・・受信キャ
ラクタ変換部、25・・・処理部、68・・・ループテ
スト実行用フリップ・フロップ。
FIG. 1 is a block diagram showing an embodiment of a communication control device to which the present invention is applied, and FIG. 2 is a block diagram showing an example of a conventional half-duplex data communication system. 23... Transmission character converter, 24... Receive character converter, 25... Processing unit, 68... Flip-flop for loop test execution.

Claims (1)

【特許請求の範囲】[Claims] 1、1本の通信回線に複数の装置が分岐形環状形に接続
されているデータ通信システムで用いられ、装置内のパ
ラレルなデータを通信回線上のシリアルなデータに変換
する送信キャラクタ変換部と通信回線上のシリアルなデ
ータを装置内のパラレルなデータに変換する受信キャラ
クタ変換部とデータ送信終了後ただちに受信可能状態と
するために送信終了判定回路と受信データ切り換え回路
を設けた半二重通信方式の通信制御装置において、ルー
プテスト実行用フリップ・フロップを設け、前記受信デ
ータ切り換え回路と論理和をとるゲートを置き、ループ
テスト時には、前記、ループテスト実行用フリップ・フ
ロップを許可することにより、常時、処理部で、テスト
データの受信を可能としたことを特徴とする通信制御装
置。
1. A transmission character conversion unit used in a data communication system in which multiple devices are connected in a branched ring shape to one communication line, and converts parallel data in the devices to serial data on the communication line. Half-duplex communication is equipped with a reception character conversion unit that converts serial data on the communication line into parallel data within the device, and a transmission completion determination circuit and reception data switching circuit to enable reception immediately after data transmission is completed. In the communication control device according to the method, a flip-flop for executing a loop test is provided, a gate is placed to take an OR with the received data switching circuit, and the flip-flop for executing the loop test is enabled during the loop test, A communication control device characterized in that a processing section is capable of receiving test data at all times.
JP62279192A 1987-11-06 1987-11-06 Communication controller Pending JPH01122239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62279192A JPH01122239A (en) 1987-11-06 1987-11-06 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62279192A JPH01122239A (en) 1987-11-06 1987-11-06 Communication controller

Publications (1)

Publication Number Publication Date
JPH01122239A true JPH01122239A (en) 1989-05-15

Family

ID=17607716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62279192A Pending JPH01122239A (en) 1987-11-06 1987-11-06 Communication controller

Country Status (1)

Country Link
JP (1) JPH01122239A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4857512A (en) * 1971-11-18 1973-08-13
JPS6238632A (en) * 1985-08-13 1987-02-19 Omron Tateisi Electronics Co Optical fiber communication method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4857512A (en) * 1971-11-18 1973-08-13
JPS6238632A (en) * 1985-08-13 1987-02-19 Omron Tateisi Electronics Co Optical fiber communication method

Similar Documents

Publication Publication Date Title
JPS6453253A (en) External apparatus connected to digital data processing system
US4355354A (en) Interface apparatus for coupling a minicomputer to a microcomputer for the transfer of data between them and method for using same
JPH01122239A (en) Communication controller
JPS60236340A (en) Communication system
JPS586639A (en) Data transmitter
JPS59168736A (en) Multi-drop transmission system
JPS62249542A (en) Data transfer system
JP2692255B2 (en) Multi-drop communication method
JPH06232879A (en) Token detection control network
JP2530611B2 (en) Communication control device
JPS63288317A (en) Printer
JPS62237830A (en) Communication control equipment
JPS61282940A (en) Control program inspection system using event table
JPH0377458A (en) Communication system
JPS63202154A (en) Serial communication system
JPH04336726A (en) Data transmitter
JPS62190957A (en) Data transmitter and receiver
JPH04236538A (en) Data transmission system
JPH0214647A (en) Communication controller
JPS63215133A (en) Communication control equipment
JPH03252244A (en) Transmission equipment
JPH07118692B2 (en) Data repeater
JPH03181248A (en) Polling system for transmission of data
JPH04268901A (en) Communication equipment
JPS61112454A (en) Data transmission method