JPH02186861A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH02186861A
JPH02186861A JP1006670A JP667089A JPH02186861A JP H02186861 A JPH02186861 A JP H02186861A JP 1006670 A JP1006670 A JP 1006670A JP 667089 A JP667089 A JP 667089A JP H02186861 A JPH02186861 A JP H02186861A
Authority
JP
Japan
Prior art keywords
data
communication
host computer
terminal device
terminal equipment
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
JP1006670A
Other languages
Japanese (ja)
Inventor
Masayuki Mori
雅之 森
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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP1006670A priority Critical patent/JPH02186861A/en
Publication of JPH02186861A publication Critical patent/JPH02186861A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently perform communication by using a character synchronizing system when specific terminal equipment is selected by a host computer, and using a stepping synchronizing system after establishing a data link obtained as a result. CONSTITUTION:When polling is performed by selecting terminal equipment with a specific address, for example, the terminal equipment 10, by the host computer 1 that is a control station, the character synchronizing system which takes synchronization with a certain decided bit pattern of communication data is used, and an interruption processing is performed at the terminal equipment 10 side by detecting a specific bit pattern decided at every terminal equipment in a hardware manner. And after the data link is established by performing the polling, data communication is performed at every data regardless of the direction of transmission/reception data by the steeping synchronizing system in which the synchronization is taken by a start bit and a stop bit. In such a way, the data communication can efficiently be performed by reducing a load in the communication.

Description

【発明の詳細な説明】 [産業上の利用分野1 この発明は、制御局であるホストコンピュータと従属局
である2つ以上の端末装置との間でデータのやりとりを
行うデータ通信装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field 1] The present invention relates to a data communication device that exchanges data between a host computer that is a control station and two or more terminal devices that are dependent stations. be.

[発明の概要1 この発明は、ホストコンピュータからRS422I/F
の信号線上にマルチドロップ接続された2つ以上の端末
装置を、ホストコンピュータからのポーリング/セレク
ティング方式を使用してデータ通信を行うデータ通信装
置において、制御局であるホストコンピュータから特定
のアドレスの端末装置を選択してポーリングする時は、
通信データのある決められたビットパターンで同期をと
るキャラクタ同期方式を使用し、その結果得られたデー
タリンク確立後のデータ通信においては、スタートビッ
トとストップビットで同期をとる調歩同期式を使用する
ことにより、ホストコンピュータおよび端末装置の処理
負荷を減らしてブタ通信を行うものである。
[Summary of the Invention 1 This invention provides an RS422 I/F from a host computer.
A data communication device that uses a polling/selecting method from a host computer to perform data communication between two or more terminal devices that are multi-drop connected on a signal line. When selecting and polling a terminal device,
A character synchronization method is used to synchronize communication data using a certain fixed bit pattern, and after the resulting data link is established, an asynchronous method is used to synchronize the start bit and stop bit. This allows pig communications to be performed while reducing the processing load on the host computer and terminal device.

〔従来の技術〕[Conventional technology]

従来、ポーリング/セレクテイング方式によるデータ通
信システムにおいては、調歩同期式により、予め通信デ
ータのうち特定の値を端末装置を選択するためのアドレ
ス用コードに各端末装置ごとに決めておき、データリン
ク確立前の端末装置は絶λず受信データを監視し、自分
のアドレスコードを検出するとデータリンクを確立して
データ通信を行う方式と、キャラクタ同期式により、あ
らかじめ各端末装置ごとに決められた特定のビットパタ
ーンをハードウェア的に検出し、データリンクを確立後
1ビットずつ時分割でデータ通信を行う方式があった。
Conventionally, in a data communication system using a polling/selecting method, a specific value of communication data is determined in advance for each terminal device as an address code for selecting the terminal device using an asynchronous method, and the data link is Before the terminal device is established, it constantly monitors the received data, and when it detects its own address code, it establishes a data link and performs data communication, and the character synchronization method allows the terminal device to communicate with the specified information predetermined for each terminal device. There was a method in which the bit pattern of the data was detected using hardware, and after establishing a data link, data communication was performed bit by bit in a time-sharing manner.

〔発明が解決しようとする課題1 しかし、従来の調歩同期式においては、データリンク確
立前の端末装置は絶えず受信データ内に自分のアドレス
コードがあるか否かを監視しているための受信処理に負
荷をとられ、端末装置での他の処理能力が落ちる欠点が
あり、またキャラクタ同期式においては、データリンク
確立後に時分割で連続してデータ通信が行われるため、
送信側は時分割の時間内につぎの送信データをセットす
る必要があり、受信側も時分割の時間内につぎの受信デ
ータを読み込む必要があり、時間内に処理できないと同
期がとれなくなり送受信不能となったり、データの送受
信の方向が変わるたびに、キャラクタ同期用のビットパ
ターンでデータリンクを確立する必要があり、数バイト
程度のデータがホストコンピュータと端末装置の間を何
度も往復した場合、通信効率が落ちる欠点があった。
[Problem to be Solved by the Invention 1] However, in the conventional asynchronous system, the terminal device constantly monitors whether or not the received data contains its own address code before establishing the data link. This has the drawback that the processing capacity of other terminal devices is reduced due to the load on the terminal device.Also, in the character synchronous method, data communication is performed continuously in a time-sharing manner after the data link is established.
The sending side needs to set the next transmission data within the time-sharing time, and the receiving side also needs to read the next received data within the time-sharing time, and if it cannot be processed within the time, synchronization will be lost and transmission and reception will be delayed. Each time the host computer becomes unavailable or the direction of data transmission and reception changes, it is necessary to establish a data link using a bit pattern for character synchronization, and several bytes of data are sent back and forth between the host computer and the terminal device many times. In this case, there was a drawback that communication efficiency decreased.

そこで、この発明においては、従来のこのような欠点を
解決するため、ホストコンピュータからポーリングされ
ていない端末装置は、通信処理以外の処理に専念でき、
ポーリングされデータリンクが確立したホストコンピュ
ータと端末装置の間のデータ通信はデータの送受信の方
向に関係な(効率よくできることを目的としている。
Therefore, in this invention, in order to solve these conventional drawbacks, the terminal device that is not polled by the host computer can concentrate on processing other than communication processing,
Data communication between the host computer and the terminal device, which has been polled and a data link has been established, is related to the direction of data transmission and reception (the purpose is to be efficient).

[課題を解決するための手段] 上記問題を解決するために、この発明は、制御局である
ホストコンピュータから特定のアドレスの端末装置を選
択してポーリングする時は、通信データのある決められ
たビットパターンで同期をとるキャラクタ同期方式を使
用し、端末装置側では各端末装置ごとに決められた特定
のビットパターンをハードウェア的に検出し割り込み処
理することとし、上記ポーリングによってデータリンク
が確立した後は、スタートビットとストップビットで同
期をとる調歩同期方式により、1データごとに送受信デ
ータの方向に関係なくデータ通信を効率良く行うもので
ある。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides that when a host computer serving as a control station selects and polls a terminal device with a specific address, Using a character synchronization method that synchronizes using bit patterns, the terminal device side detects a specific bit pattern determined for each terminal device using hardware and processes an interrupt, and the data link is established by the above polling. After that, data communication is efficiently carried out for each piece of data, regardless of the direction of the transmitted and received data, using the start-stop synchronization method that synchronizes with a start bit and a stop bit.

〔作用1 上記のような通信システムにおいては、ホストコンピュ
ータからポーリングされるまえの端末装置は、通信処理
以外の処理に専念できるために処理能力が増すばかりで
なく、ホストコンピュータのポーリングによってデータ
リンクが確立したホストコンピュータと端末装置のデー
タ通信は調歩同期式により数バイト程度のデータがホス
トコンピュータと端末装置の間を何度も往復してもデー
タの方向が変わるごとにデータリンクを確立する必要が
なく、通信負荷を軽くしデータ通信を効率良く行久るの
である。
[Effect 1] In the communication system described above, the terminal device before being polled by the host computer not only has increased processing capacity because it can concentrate on processing other than communication processing, but also the data link is The established data communication between the host computer and the terminal device is an asynchronous method, so even if several bytes of data are sent back and forth between the host computer and the terminal device many times, it is necessary to establish a data link each time the direction of the data changes. This reduces the communication load and makes data communication more efficient.

[実施例] 以下、この発明の実施例を、図面にもとづいて説明する
。第二図に示す本発明のブロック図において、ホストコ
ンピュータlは、CPU2と通信コントローラ3・RS
4221/F4で構成され、CPU2と通信コントロー
ラ3の間はパラレルのデータ線5で結ばれている。端末
装置AIOは、CPUAIIと通信コントローラA12
、RS422I/F13で構成され、CPUIIと通信
コントローラ12の間はパラレルのデータ線14及び割
り込み制御線15で結ばれている。端末装置AはR34
22信号線上21にマルチドロップ接続され、R342
2信号線上21には端末装置AIO・端末装置820な
ど2つ以上の端末装置が接続されている1通信コントロ
ーラ3と通信コントローラA12は、パラレルのデータ
線5とパラレルのデータ線14のパラレル信号な調歩同
期式またはキャラクタ同期式のシリアル信号に変換する
もので、調歩同期モード・キャラクタ同期モードの設定
は各々CPU2またはCPUAl1からパラレルのデー
タ線5または、パラレルのデータ線14を介して行われ
る0通信コントローラA12はキャラクタ同期モードの
受信時においては、あらかじめCPUAIIにより設定
されたキャラクタ同期用のビットパターンをハードウェ
ア的に検出し、割り込み制御#!15でCPUAl1に
信号を出力できる。
[Example] Hereinafter, an example of the present invention will be described based on the drawings. In the block diagram of the present invention shown in FIG. 2, a host computer 1 includes a CPU 2 and a communication controller 3/RS.
4221/F4, and the CPU 2 and communication controller 3 are connected by a parallel data line 5. The terminal device AIO is connected to the CPU AII and the communication controller A12.
, RS422 I/F 13, and the CPU II and communication controller 12 are connected by a parallel data line 14 and an interrupt control line 15. Terminal device A is R34
Multi-drop connected to 21 on 22 signal line, R342
Two or more terminal devices such as the terminal device AIO and the terminal device 820 are connected to the signal line 21. The communication controller 3 and the communication controller A12 are connected to the parallel data line 5 and the parallel data line 14. It converts into an asynchronous or character synchronous serial signal, and the setting of the asynchronous mode and character synchronous mode is carried out by 0 communication from the CPU2 or CPUAl1 via the parallel data line 5 or the parallel data line 14, respectively. When receiving the character synchronization mode, the controller A12 hardware-wise detects the bit pattern for character synchronization set in advance by the CPU A II, and issues an interrupt control #! 15 can output a signal to CPUAl1.

以上本発明の構成において、その動作を第1図のフロー
チャート図で説明する。ホストコンピュータlの通信コ
ントローラ3と端末装置10の通信コントローラAI2
を各々キャラクタ同期モードに設定し31.32.ホス
トコンピュータlからポーリング33によりキャラクタ
同期用のビットパターン34を送信する6通信コントロ
ーラ3でシリアルに変換されR3422I/F4からR
3422信号線21を経由し端末装置AIOのR342
2I/F13で受信されたキャラクタ同期用のとットバ
クーンは通信コントローラA12でハードウェア的に検
出され1通信コントローラA12は割り込み制御11i
115をONしてCPUAl1に伝^られる。CPUA
l 1では1割り込み制御線15がONになると割込発
生35が起こり、この時点でデータリンクが確立36が
なされる。データリンクの確立後、ホストコンピュータ
lの通信コントローラ3と端末装置10の通信コントロ
ーラA12を各々調歩同期式に設定し37.38、コマ
ンド39・応答40・問いかけ41・要求42などのデ
ータ通信43を行う、ブタ通信43が終了したら、ホス
トコンピュータlと端末装置AIOの各々の回線終了処
理44゜45を行い1回線終了をホストコンピュータ1
から送信し端末装置AIOから了解47を送信し回線を
閉じて終了する。
The operation of the configuration of the present invention will be described with reference to the flowchart shown in FIG. Communication controller 3 of host computer 1 and communication controller AI 2 of terminal device 10
Set each to character synchronization mode, 31.32. A bit pattern 34 for character synchronization is transmitted from the host computer 1 by polling 33.It is converted into serial data by the communication controller 3 and sent from R3422I/F4 to R.
R342 of the terminal device AIO via the 3422 signal line 21
The character synchronization data received by the 2 I/F 13 is detected by the communication controller A12 in terms of hardware, and the 1 communication controller A12 uses the interrupt control 11i.
115 is turned on and the information is transmitted to CPUAl1. CPUA
In l1, when the 1 interrupt control line 15 is turned on, an interrupt occurs 35, and at this point a data link is established 36. After establishing the data link, the communication controller 3 of the host computer 1 and the communication controller A 12 of the terminal device 10 are each set to a start-stop synchronization type (37, 38), and data communications 43 such as commands 39, responses 40, inquiries 41, and requests 42 are performed. When the pig communication 43 is completed, the host computer 1 and the terminal device AIO each perform line termination processing 44 and 45, and one line is terminated by the host computer 1.
The terminal device AIO sends an acknowledgment 47, closes the line, and ends the process.

[発明の効果] この発明は、以上説明したように、ホストコンビエータ
とマルチドロップ接続された複数の端末装置で構成され
たデータ通信システムにおいて、ホストコンピュータか
ら特定の端末装置を選択する時はキャラクタ同期式を使
用し、その結果得られたデータリンク確立後は調歩同期
式を使用することにより、ホストコンピュータおよび端
末装置の処理負荷を減らし1通信を効率良く行うのに効
果がある。
[Effects of the Invention] As explained above, in a data communication system configured with a plurality of terminal devices connected to a host combinator in a multi-drop manner, when a specific terminal device is selected from a host computer, the present invention uses a character By using the synchronous method and, after establishing the resulting data link, using the start-stop synchronization method, it is effective to reduce the processing load on the host computer and the terminal device and to perform one communication efficiently.

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

第1図は、この発明にかかるデータ通信装置の処理手順
の動作を示すフローチャート図、第2図は、本発明のデ
ータ通信装置の構成を示すブロック図である。 ・ホストコンピュータ ・端末装置A ・ポーリング ・データリンクの確立 ・データ通信 以 上 チー1通18′8Jの処理今゛喝の動ITとホオフロー
千τ−ト第1図
FIG. 1 is a flowchart showing the operation of a processing procedure of a data communication device according to the present invention, and FIG. 2 is a block diagram showing the configuration of the data communication device according to the present invention.・Host computer ・Terminal device A ・Polling ・Data link establishment ・Data communication 18'8J process

Claims (1)

【特許請求の範囲】[Claims] ホストコンピュータと、RS422I/Fを使用し、前
記ホストコンピュータの送受信データを伝達する信号線
と、該信号線上にマルチドロップ接続され、各々が固有
のアドレスを持つ、2つ以上の端末装置からなり、ホス
トコンピュータから端末装置の特定のアドレスを選択し
てポーリングする第一の状態と、その結果得られたデー
タリンク確立後の第二の状態をもつポーリング/セレク
ティング方式を使用したデータ通信制御システムにおい
て、前記第一の状態ではキャラクタ同期方式を使用し、
前記第二の状態では調歩同期方式でデータ通信すること
を特徴とするデータ通信装置。
Consisting of a host computer, a signal line that uses RS422 I/F to transmit data sent and received by the host computer, and two or more terminal devices that are multi-drop connected to the signal line and each have a unique address, In a data communication control system using a polling/selecting method having a first state in which a host computer selects and polls a specific address of a terminal device, and a second state obtained as a result after establishing a data link. , the character synchronization method is used in the first state,
A data communication device characterized in that data communication is performed using an asynchronous method in the second state.
JP1006670A 1989-01-13 1989-01-13 Data communication equipment Pending JPH02186861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1006670A JPH02186861A (en) 1989-01-13 1989-01-13 Data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1006670A JPH02186861A (en) 1989-01-13 1989-01-13 Data communication equipment

Publications (1)

Publication Number Publication Date
JPH02186861A true JPH02186861A (en) 1990-07-23

Family

ID=11644812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1006670A Pending JPH02186861A (en) 1989-01-13 1989-01-13 Data communication equipment

Country Status (1)

Country Link
JP (1) JPH02186861A (en)

Similar Documents

Publication Publication Date Title
US4769807A (en) Loop back control system
JPS62100044A (en) Communication apparatus and communication method
GB2198018A (en) Simultaneous data communication
JPH02186861A (en) Data communication equipment
JPH0473178B2 (en)
JPS59161956A (en) Transmission controller
JP3301590B2 (en) Protocol state synchronization system
JPH0630506B2 (en) Serial communication device
JPH054040Y2 (en)
JPS63283250A (en) Method for communication data in data transmission system
JPH02217039A (en) Poling/selecting control procedure system
JPH02288442A (en) Plural protocol controller
JPH05282225A (en) Intra-terminal data communication equipment
JP2656977B2 (en) Connection switching method between data processing program and terminal
JPH01217659A (en) I/o interruption control system
JPH0418652A (en) Data communication system
JP2564499B2 (en) Transmission data flow control method
JPS59205848A (en) Priority control system
JPH0687560B2 (en) Information simultaneous notification method
JPS61186046A (en) System for controlling terminal equipment connection
JPH03250938A (en) Polling control system
JPH025668A (en) Line cut-off system for public communication line
JPS59132257A (en) System for transferring common bus information
JPS61269443A (en) Polling controlling system
JPH0582617B2 (en)