JPS6074847A - General polling system - Google Patents

General polling system

Info

Publication number
JPS6074847A
JPS6074847A JP18195083A JP18195083A JPS6074847A JP S6074847 A JPS6074847 A JP S6074847A JP 18195083 A JP18195083 A JP 18195083A JP 18195083 A JP18195083 A JP 18195083A JP S6074847 A JPS6074847 A JP S6074847A
Authority
JP
Japan
Prior art keywords
data
polling
station
circuit
stations
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
JP18195083A
Other languages
Japanese (ja)
Inventor
Yasuhiro Futaoka
二岡 康浩
Masanori Sakuragi
桜木 正典
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 JP18195083A priority Critical patent/JPS6074847A/en
Publication of JPS6074847A publication Critical patent/JPS6074847A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/22Handling requests for interconnection or transfer for access to input/output bus using successive scanning, e.g. polling

Abstract

PURPOSE:To shorten the polling time by generating just one polling instruction of a host controller, to perform the transfer of data among all stations just with the polling of one time. CONSTITUTION:An instruction circuit 7 has polling instructions to all stations under the control of a processing controller 1 and applies them to an S/P converting circuit 6. This instruction is sent one bit by one bit to a serial data generating circuit 9 from the circuit 6, then to all stations via a driver 11 and a connection terminal 12. A buffer memory 2 is connected to the controller 1, and a serial data detecting circuit 8 connected to a receiver 10 is connected to the memory 2 via an S/P converting circuit 5. The output of the circuit 8 is connected to the controller 1 via a tail word detecting circuit 4. Then the data transfer is performed among all stations just with the polling of one time. In such a way, the polling time is shortened.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明はホストコントローラに複数のステーションがい
もづる式に接続されていて、ポーリング後ホストコント
ローラとステーション間を接続するシリアルインタフェ
ース上ニデータの転送が行なわれる様なシステムにおけ
る効率的なポーリングの方式に関するものである。
Detailed Description of the Invention (1) Technical Field of the Invention In the present invention, a plurality of stations are connected to a host controller in a serial manner, and after polling, data is transferred over a serial interface connecting the host controller and the stations. This paper is about an efficient polling method in various systems.

(2)従来技術と問題点 従来、前述の様なシステムにおいて、ポーリング方式で
データの転送を行なう場合には、各ステーションからの
応答がシリアルインタフェース上でぶつかシ合わない様
にするたベホストコントローラハ、複数のステーション
の内の1台に対してのみポーリングを行なへ該ステーシ
ョンからの応答を受信した後、更に次のステーションに
対してボーりングを行なうと言う様に各ステーションご
とに別個にポーリングを行なっていた。
(2) Prior art and problems Conventionally, in the system described above, when data is transferred using the polling method, there is a host system that prevents responses from each station from colliding on the serial interface. The controller polls only one of the multiple stations, and after receiving a response from that station, polls the next station. Polling was performed separately.

この様な方式においては、ホストコントローラは該ホス
トコントローラに接続されているステーションの台数の
数のポーリング命令を発行しなければならず、また、そ
の応答のための時間が必要であるので、全ステーション
を一巡するポーリングに長時間を要すると云う欠点があ
った。また、そのためにそれぞれのステーションへのポ
ーリング頻度が制約を受けたシ、データ転送の効率が良
くないと云う欠点があった。
In this type of system, the host controller must issue polling commands for the number of stations connected to the host controller, and since time is required for the response, all stations The drawback is that it takes a long time to complete one round of polling. Furthermore, this has the disadvantage that the frequency of polling each station is restricted and the efficiency of data transfer is not good.

(3)発明の目的 本発明は上記従来の欠点に鑑み、ホストコントローラが
ポーリング命令t−1回発行することによシ、該ホスト
コントローラが擁する全ステーションからの応答を可能
とすることによシ、ポーリングに要する時間を短縮せし
めて、データ転送の効率を向上させる方式を提供するこ
とを目的としている。
(3) Purpose of the Invention In view of the above-mentioned conventional drawbacks, the present invention provides a system in which a host controller issues a polling command t-1 times to enable responses from all stations owned by the host controller. The purpose of this invention is to provide a method that reduces the time required for polling and improves the efficiency of data transfer.

(4)発明の構成 そして、この目的は本発明によれば、特許請求の範囲に
記載のとおシ、ホストコントローラに複数のステーショ
ンをいもづる式に接続してポーリングによシデータの転
送を行なうシステムにおいて、ホストコントローラに各
ステーションごとに対応する領域を有するバックアメモ
リを設けると共に、ステーションに該ステーションを経
由して接続されている他のステーションの伝送データを
記憶することの出来るバッファメモリを設け、各ステー
ションに同時にポーリングを行なって、一連のデータご
とにステーションのアドレスを付してデータ転送を行な
うことを特徴とする一斉ポーリング方式により達成され
る。
(4) Structure of the Invention According to the present invention, the object is to provide a system in which a plurality of stations are connected to a host controller in an interlocking manner and data is transferred by polling. The host controller is provided with a backup memory having an area corresponding to each station, and each station is provided with a buffer memory capable of storing transmission data of other stations connected via the station. This is achieved by a simultaneous polling method, which is characterized in that polling is performed simultaneously, and a station address is assigned to each series of data to transfer the data.

(5)発明の実施例 第1図は本発明の1実施例のホストコントローラのブロ
ック図であって、1はプロセッサ、2はバックアメモリ
、3はカウンタ、4はテールワード検出回路、5.6は
S/P変換回路、7は命令回路、8はシリアルデータ検
出回路、9はシリアルデータ発生回路、10はレシーバ
、11はドライバ、12はステーションへの接続端子を
表わしている。
(5) Embodiment of the invention FIG. 1 is a block diagram of a host controller according to an embodiment of the invention, in which 1 is a processor, 2 is a backup memory, 3 is a counter, 4 is a tail word detection circuit, and 5.6 10 represents an S/P conversion circuit, 7 a command circuit, 8 a serial data detection circuit, 9 a serial data generation circuit, 10 a receiver, 11 a driver, and 12 a connection terminal to the station.

第2図は、本発明の1実施例のステーションのブロック
図であって、13はコントロール回路、14.15はS
/P変換回路、16はシリアルデータ発生回路、17は
シリアルデータ検出回路、18はドライバ、19はレシ
ーバ、20はスイッチ、21はホストコントローラまた
は前段のステーションへの接続端子、22は後段のステ
ーションへの接続端子、23はバッファメモリ、24は
バッファメモリ・リード・カウンタ、25はバッファメ
モリ自ライト・カウンタ、26はテールワード検出回路
、27は転送路BUSY検出回路、28〜30はセレク
タを表わしている。
FIG. 2 is a block diagram of a station according to an embodiment of the present invention, in which 13 is a control circuit, 14.15 is an S
/P conversion circuit, 16 is a serial data generation circuit, 17 is a serial data detection circuit, 18 is a driver, 19 is a receiver, 20 is a switch, 21 is a connection terminal to a host controller or a previous station, 22 is to a subsequent station 23 is a buffer memory, 24 is a buffer memory read counter, 25 is a buffer memory own write counter, 26 is a tail word detection circuit, 27 is a transfer path BUSY detection circuit, and 28 to 30 are selectors. There is.

ポーリングに際して、ホストコントローラでは第1図の
プロセッサlの制御により、命令回路7が全ステーショ
ンに対するポーリング命令を用意してP/S変換回路6
へ送る。
At the time of polling, in the host controller, under the control of the processor l shown in FIG.
send to

該P/S変換回路6は、この命令を1ビツトづつシリア
ルデータ発生回路9に送シ込み、転送用に成形されたデ
ータとしてドライバ11、接続端子12f、経てステー
ションに向けて送出される。
The P/S conversion circuit 6 sends this command bit by bit to the serial data generation circuit 9, and the data is sent out as data shaped for transfer to the station via the driver 11, the connection terminal 12f.

ステーション側では該データを第2図のスイッチ20を
閉じて後段のステーションへ送ると共に、レシーバ19
で受信しシリアルデータ検出回路17で″1#、 @I
 6 #を判定して、S/P変換回路15へ送り込む。
On the station side, the data is sent to the subsequent station by closing the switch 20 in FIG.
The serial data detection circuit 17 receives “1#, @I
6 Determine # and send it to the S/P conversion circuit 15.

該s/P変換回路15では送られてくる1ビツトづつの
データを蓄積して、1ワードになるとコントロール回路
1sへ送ル。コントロール00路13はそれがポーリン
グ命令であることを識別すると転送路BUSY検出回路
27によシ、他のステーションが転送路を使用中である
か否かを調べ、空いていればP/S変換回路14へ応答
データを送シ、セレクタ28をP/S変換回路14側に
切夛替える。P/S変換回路14は応答データを1ビツ
トづつシリアルデータ発生回路16に送シ込み、それが
転送用に成形されたデータとしてドライバ18、接続端
子21を経由してホストコントローラに向けて送出され
る。このとき、コントロール回路13はスイッチ20を
開いて、七レクタ30をバッファメモリ・ライト・カウ
ンタ25側に切シ替えると共にセレクタ29をシリアル
データ検出回路17側に切シ替えて、後段のステーショ
ンから送信されて来たデータを1ビツトづつバッファメ
モリ23に記憶する。
The S/P conversion circuit 15 accumulates the data sent one bit at a time, and when it becomes one word, sends it to the control circuit 1s. When control 00 path 13 identifies that it is a polling command, it sends a transfer path BUSY detection circuit 27 to check whether another station is using the transfer path, and if it is free, P/S conversion is performed. The response data is sent to the circuit 14, and the selector 28 is switched to the P/S conversion circuit 14 side. The P/S conversion circuit 14 sends response data bit by bit to the serial data generation circuit 16, and the data is sent to the host controller via the driver 18 and connection terminal 21 as data shaped for transfer. Ru. At this time, the control circuit 13 opens the switch 20, switches the seventh receiver 30 to the buffer memory write counter 25 side, and switches the selector 29 to the serial data detection circuit 17 side, and transmits data from the subsequent station. The received data is stored in the buffer memory 23 bit by bit.

コントロール回路13は応答データをすべて送信し終る
とバックアメモリ・ライト・カウンタ25を見て、それ
が″O”でなければ後段のステーションからのデータの
送信があったものと見なし、セレクタ30をバッファメ
モリ・リード・カウンタ24側に、セレクタ28と29
Qシリアルデ一タ発生回路16側に切シ替えて、バック
アメモリ23の内容を1番地から順にホストコントロー
ラに送信する。該送信中に後段のステーションからの送
信データがあれば、その都度、セレクタ29およびao
2切夛替えて送信データをバッファメモリ23に記憶す
る。バッファメモリ23の内容の送出に当っては、バッ
ファメモリeリード・カウンタ24とバッファメモリ・
ライト・カウンタ25の値が同じになり、かつ転送路が
使用中でなければ、コントロール回路13がスイッチ2
0を閉じて、後段のステーションから送られてくるデー
タを直接ホストコントローラに向けて送シ出す(この場
合ハ該データをバッファメモリ23に記憶しない)。
When the control circuit 13 has finished transmitting all the response data, it checks the backup memory write counter 25, and if it is not "O", it assumes that data has been transmitted from the subsequent station, and sets the selector 30 to the buffer memory. Selectors 28 and 29 are placed on the memory read counter 24 side.
The switch is switched to the Q serial data generation circuit 16 side, and the contents of the backup memory 23 are sequentially transmitted to the host controller starting from address 1. If there is transmission data from a subsequent station during the transmission, the selector 29 and the ao
The transmission data is stored in the buffer memory 23 in duplicate. When sending out the contents of the buffer memory 23, the buffer memory e-read counter 24 and the buffer memory
If the values of the write counter 25 become the same and the transfer path is not in use, the control circuit 13
0 is closed and the data sent from the subsequent station is sent directly to the host controller (in this case, the data is not stored in the buffer memory 23).

コントロール回路13が応答データを返送しようとした
とき、他のステーションがホストコントローラにデータ
を送信中であると、転送路BUSY検出回路によシ転送
路が使用中であることが検出される。この様なときは、
送信終了を示すテールワードがテールワード検出回路2
6によって検出されるまでデータの送出を保留する。
When the control circuit 13 attempts to return response data, if another station is transmitting data to the host controller, the transfer path BUSY detection circuit detects that the transfer path is in use. In times like this,
The tail word indicating the end of transmission is detected by the tail word detection circuit 2.
Data transmission is suspended until detected by 6.

一方、ホストコントローラ側ではポーリング命令を送出
したあとカウンタをクリアしてステーションからのデー
タを受け入れられる状態にする。そして、いづれかのス
テーションからデータが送られて来るとレシーバ10で
受信してシリアルデータ検出回路8で′1”、0#を判
定し、これts/P変換回路5によって1ワードのパラ
レルデータに組み立てる。
On the other hand, on the host controller side, after sending out a polling command, the counter is cleared to make it ready to accept data from the station. When data is sent from one of the stations, the receiver 10 receives it, the serial data detection circuit 8 determines '1' and 0#, and the ts/P conversion circuit 5 assembles it into one word of parallel data. .

該パラレルデータはステーションアドレス部とカウンタ
3の値をアドレスとしてバッファメモリ2に書き込まれ
る(カウンタ3内には各ステーションにそれぞれ対応す
るカウンタを持っている)。更にステーションからのデ
ータはカウンタ3をカウントアツプして次々とバッファ
メモリ2に書き込まれる。そしてステーションからテー
ルワードが送られてくると、それがテールワード検出回
路4で検出されプロセッサ1に通知される。これにより
プロセッサ1は該ステーションからの一連のデータ全バ
ッファメモリ2から読み出して処理を行なう。
The parallel data is written into the buffer memory 2 using the station address field and the value of the counter 3 as an address (the counter 3 has a counter corresponding to each station). Further, the data from the station is counted up by the counter 3 and written into the buffer memory 2 one after another. When a tail word is sent from the station, it is detected by the tail word detection circuit 4 and notified to the processor 1. As a result, the processor 1 reads out a series of data from the station from the buffer memory 2 and processes the data.

各データはステーションアドレス部持っているのでホス
トコントローラはこれにより各ステーションのデータ分
ごとにバッファメモリ上で管理するので、ステーション
ごとにポーリング命令を発行する必要は無い。
Since each data has a station address section, the host controller manages each station's data in the buffer memory, so there is no need to issue a polling command for each station.

(6) 発明の効果 以上詳細に説明したように本発明の方式によレバ、ホス
トコントローラに複数のステーションをシリアルインタ
フェースによシいもづる式に接続してポーリング方式に
よシデータの転送を行なうシステムにおいて、1回のポ
ーリングで全ステーションとの間のデータの転送を行な
うことが出来るのでポーリングに要する時間が短縮され
て効率的に転送路を使用することが出来るから効果は大
である。
(6) Effects of the Invention As explained in detail above, in a system according to the present invention, in which a plurality of stations are connected to a lever, a host controller, and a serial interface in a serial interface, and data is transferred by a polling method. Since data can be transferred to and from all stations by one polling, the time required for polling is shortened and the transfer path can be used efficiently, which is very effective.

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

第1図は本発明の1実施のホストコントローラのブロッ
ク図、第2図は本発明の1実施例のステーションのブロ
ック図である。
FIG. 1 is a block diagram of a host controller according to one embodiment of the present invention, and FIG. 2 is a block diagram of a station according to one embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims] ホストコントローラに複数のステーションをいもづる式
に接続してポーリングによりi−タの転送を行なうシス
テムに2いて、ホストコントローラに各ステーションご
とに対応する領域を有するバックアメモリを設けると共
に、ステーションに該ステーションを経由して接続され
ている他のステーションの伝送データを記憶することの
出来るバッファメモリを設け、各ステーションに同時に
ポーリングを行なって、一連のデータごとにステーショ
ンのアドレスを付してデータ転送を行なうことを特徴と
する一斉ポーリング方式。
In a system in which a plurality of stations are connected to a host controller in a chain and data is transferred by polling, the host controller is provided with a backup memory having an area corresponding to each station, and the station is connected to the station via the station. A buffer memory capable of storing transmission data from other stations connected to the station is provided, and each station is polled simultaneously, and each data set is assigned a station address and data is transferred. Features simultaneous polling method.
JP18195083A 1983-09-30 1983-09-30 General polling system Pending JPS6074847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18195083A JPS6074847A (en) 1983-09-30 1983-09-30 General polling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18195083A JPS6074847A (en) 1983-09-30 1983-09-30 General polling system

Publications (1)

Publication Number Publication Date
JPS6074847A true JPS6074847A (en) 1985-04-27

Family

ID=16109707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18195083A Pending JPS6074847A (en) 1983-09-30 1983-09-30 General polling system

Country Status (1)

Country Link
JP (1) JPS6074847A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62249542A (en) * 1986-04-23 1987-10-30 Nec Corp Data transfer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62249542A (en) * 1986-04-23 1987-10-30 Nec Corp Data transfer system

Similar Documents

Publication Publication Date Title
US3961139A (en) Time division multiplexed loop communication system with dynamic allocation of channels
US4583089A (en) Distributed computer control system with variable monitor timers
JPS6074847A (en) General polling system
JPH027212B2 (en)
JPH0311142B2 (en)
JPS581235A (en) Transfer system for communication bus data
JPS6267946A (en) Data transfer system
JPH0234518B2 (en)
JPH077767A (en) Device to connect device to transmission channel
JPS60114050A (en) Monitor device of data reception
JPH0576821B2 (en)
JPS59207763A (en) Loop type full duplex communication system of data transmission line
JPS5935538B2 (en) Transmission control method
JPH0214647A (en) Communication controller
JPH04268660A (en) Data transfer repeating system
JPH0294941A (en) Communication control equipment
JPH0736739A (en) Data processor
JPS61142839A (en) Data transmission controller
JPH01234962A (en) Bus control system
JPH063924B2 (en) Polling control method
JPH0120461B2 (en)
JPH08163666A (en) Information gathering circuit
JPS59119439A (en) Buffer busy avoiding system
JPH05153135A (en) Multi-address communication responding circuit
JPH05344138A (en) Data transmission controller