JPS6365731A - Polling system - Google Patents
Polling systemInfo
- Publication number
- JPS6365731A JPS6365731A JP20924486A JP20924486A JPS6365731A JP S6365731 A JPS6365731 A JP S6365731A JP 20924486 A JP20924486 A JP 20924486A JP 20924486 A JP20924486 A JP 20924486A JP S6365731 A JPS6365731 A JP S6365731A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- station
- slave station
- request
- slave
- 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
- 238000000034 method Methods 0.000 claims description 8
- 238000013480 data collection Methods 0.000 abstract description 4
- 238000012545 processing Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、シリアルバスを用いたシステムのポーリング
方式に関し、特に子局から親局に出すリクエスト信号に
重み付けをして親局での要求元識別を容易にするもので
ある。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a polling method for a system using a serial bus, and in particular, the present invention weights a request signal sent from a slave station to a master station to It facilitates identification.
シリアルバスを用いたシステムのポーリング方式では、
送信データのある子局から親局に対しリクエスト信号を
出してデータ収集を要求することがある。しかし、該リ
クエスト信号はH(ハイ)、L(ロー)2値のためどの
子局からのものか判別できない。このため、親局は順番
に各子局にポーリングをかけてデータを収集する必要が
あり、優先度の低い子局からのデータ収集に時間がかか
る欠点がある。In the system polling method using a serial bus,
A slave station that has data to send may send a request signal to the master station to request data collection. However, since the request signal has two values of H (high) and L (low), it is impossible to determine which slave station it is from. For this reason, the master station must collect data by polling each slave station in turn, which has the disadvantage that it takes time to collect data from slave stations with lower priority.
本発明は、子局から親局に対し送出するリクエスト信号
に子局別に異なる重み付けをすることで、リクエスト信
号を出した子局を容易に識別できるようにするものであ
る。The present invention makes it possible to easily identify the slave station that has issued the request signal by weighting the request signal sent from the slave station to the master station differently for each slave station.
本発明は、親局と複数の子局との間をシリアルバスで接
続し、子局から親局に対しリクエストバスを通してリク
エスト信号を送信するシステムのポーリング方式におい
て、各子局は該リクエストバスに子局別に重み付けされ
た電流を流して該リクエスト信号とすることを特徴とす
るものである。The present invention provides a polling method for a system in which a master station and a plurality of slave stations are connected via a serial bus, and the slave stations transmit request signals to the master station through the request bus. This is characterized in that a weighted current is applied to each slave station to generate the request signal.
各子局が送出するリクエスト信号に子局固有の重み付け
がされていれば、これを受信した親局はどの子局がポー
リング要求したがを迅速且つ容易に認識することができ
る。このため、リクエスト信号を出していない子局をも
ポーリング対象とした従来方式に比べてデータ収集時間
が著しく短縮される。If the request signal sent by each slave station is weighted uniquely to the slave station, the master station receiving the request signal can quickly and easily recognize which slave station has requested polling. Therefore, data collection time is significantly shortened compared to the conventional method in which slave stations that do not issue request signals are also polled.
第1図は本発明の一実施例を示すシステム構成図で、0
は親局、1〜nは子局、RX−BUS。FIG. 1 is a system configuration diagram showing an embodiment of the present invention.
is the master station, 1 to n are slave stations, and RX-BUS.
TX−BUS、REQ−Busはシリアルバスである。TX-BUS and REQ-Bus are serial buses.
RX−BUSは親局0でデータ受信する際に使用し、T
X−BUSは親局0からデータ送信する際に使用する。RX-BUS is used when receiving data at master station 0, and T
X-BUS is used when transmitting data from master station 0.
これらのバスはカレントループ方式であるため、送受端
はカレント・インターフェイス(INF)10で構成さ
れる。親局0はこのカレントINFIOと、シリアルバ
スのデータの送受を行う直列I10 (入出力)ポート
11と、通信を制御するCPU (1チンプのマイクロ
コンピュータ)12と、子局からのリクエスト信号(電
流値工)をデジタル値に変換する変換113と、入力用
の並列110ポート14からなる。子局1(i=1〜n
)は同様のカレントINFIOとCPU12の他に、カ
レントrNF10との間が直列、CPU12の間が並列
でデータ処理する直並列I10ポート15を備え、更に
リクエストバスREQ−BUSに対してはトランジスタ
Triをオンしたとき電流1=V/Riを流す重み付は
抵抗Riを接続しである。各子局の抵抗R1,R2゜・
・・・・・Rnは例えば次の様に設定される。Since these buses are of the current loop type, the transmitting and receiving ends are configured with a current interface (INF) 10. The master station 0 connects this current INFIO, a serial I10 (input/output) port 11 that sends and receives serial bus data, a CPU (1-chip microcomputer) 12 that controls communication, and a request signal (current It consists of a converter 113 that converts a value (value, input, etc.) into a digital value, and a parallel 110 port 14 for input. Slave station 1 (i=1~n
) is equipped with a series/parallel I10 port 15 that processes data in series with the current rNF10 and in parallel with the CPU 12, in addition to the similar current INFIO and CPU12, and also has a transistor Tri for the request bus REQ-BUS. Weighting that causes a current 1=V/Ri to flow when turned on is done by connecting a resistor Ri. Resistance R1, R2゜ of each slave station
...Rn is set as follows, for example.
R+=R/n
R2=R/(n−1)
RnたR
従って、トランジスタTr+をオンにすればI=nV/
R
となり、またトランジスタTr2をオンにすれば1=
(n−1)V/R
となる。以下、同様でトランジスタTrnをオンにすれ
ば
I=V/R
となる。■は親局00pJにある電源の電圧で、該電源
から抵抗Ri、)ランジスタTriを通してアースに電
流Iが流れる。R+=R/n R2=R/(n-1) RntaR Therefore, if transistor Tr+ is turned on, I=nV/
R, and if transistor Tr2 is turned on, 1=
(n-1)V/R. Similarly, if the transistor Trn is turned on, I=V/R. (2) is the voltage of the power supply at the master station 00 pJ, and a current I flows from the power supply to the ground through the resistor Ri and the transistor Tri.
親局OのCPU12は変換器13からのデジタル値を並
列I10ポート14を通して取り込み、第2図のような
ポーリング処理をする。そして、リクエスト信号を出し
た子局が判別したらTX−BUSを通してその子局にポ
ーリングをかけ、核子局からのデータをRX−BUSを
通して受信する。The CPU 12 of the master station O takes in the digital value from the converter 13 through the parallel I10 port 14 and performs polling processing as shown in FIG. When the slave station that issued the request signal is determined, the slave station is polled through the TX-BUS, and data from the core slave station is received through the RX-BUS.
尚、同時に2以上の子局がリクエスト信号を出すことが
考えられるが、その場合は抵抗値の小さい子局が優先権
を持つようにプログラムを組んである。例えばトランジ
スタT r + r T r 2が同時にオンすると電
流IはnV/Rよりも大きくなるので抵抗値の小さい子
局l側に対しポーリングをかける。従って、子局2は自
局にポーリングがかかるまでトランジスタTr2をオン
にし続ければよく、この間にトランジスタTr3以下が
オンになってもトランジスタTr+がオフすれば1=(
n−1)V/R以上になるので、次は子局2にポーリン
グがかかる。It is conceivable that two or more slave stations may issue request signals at the same time, but in that case, the program is designed so that the slave station with the smaller resistance value has priority. For example, if the transistors T r + r T r 2 are turned on at the same time, the current I becomes larger than nV/R, so polling is applied to the slave station l side having a smaller resistance value. Therefore, slave station 2 only has to keep transistor Tr2 on until it is polled, and even if transistors Tr3 and below turn on during this time, if transistor Tr+ turns off, 1=(
n-1) Since it becomes more than V/R, the slave station 2 is polled next.
以上述べたように本発明によれば、シリアルバスを用い
たシステムのポーリング方式において、各子局が出すリ
クエスト信号に子局側の重み付けをしたので、親局によ
る要求元の判別を迅速に行うことができ、データ収集時
間を短縮できる利点がある。As described above, according to the present invention, in the polling method of a system using a serial bus, the request signal issued by each slave station is weighted on the slave station side, so that the master station can quickly determine the request source. This has the advantage of shortening data collection time.
第1図は本発明の一実施例を示すシステム構成図、第2
図は親局のポーリング処理を示すフローチャートである
。
図中、Oは親局、1〜nは子局、RX−BUS。
TX−BUSはデータ送受信用のシリアルバス、REQ
−BUSはリクエストバス、R+−Rnは重み付は抵抗
、Tr+”Trnはリクエスト用トランジスタである。Fig. 1 is a system configuration diagram showing one embodiment of the present invention;
The figure is a flowchart showing the polling process of the master station. In the figure, O is a master station, 1 to n are slave stations, and RX-BUS. TX-BUS is a serial bus for transmitting and receiving data, REQ
-BUS is a request bus, R+-Rn is a weighted resistance, and Tr+"Trn is a request transistor.
Claims (1)
から親局に対しリクエストバスを通してリクエスト信号
を送信するシステムのポーリング方式において、各子局
は該リクエストバスに子局別に重み付けされた電流を流
して該リクエスト信号とすることを特徴とするポーリン
グ方式。In the polling method of a system in which a master station and multiple slave stations are connected via a serial bus, and the slave stations transmit request signals to the master station through the request bus, each slave station weights the request bus for each slave station. A polling method is characterized in that a current is passed through and used as the request signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP20924486A JPS6365731A (en) | 1986-09-05 | 1986-09-05 | Polling system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP20924486A JPS6365731A (en) | 1986-09-05 | 1986-09-05 | Polling system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6365731A true JPS6365731A (en) | 1988-03-24 |
Family
ID=16569746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP20924486A Pending JPS6365731A (en) | 1986-09-05 | 1986-09-05 | Polling system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6365731A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0578925A (en) * | 1991-09-19 | 1993-03-30 | Murata Mach Ltd | Communication control method |
CN104298176A (en) * | 2013-07-08 | 2015-01-21 | 海尔集团公司 | Smart switch, host registration method thereof and smart control network |
JP2019016909A (en) * | 2017-07-06 | 2019-01-31 | 富士ゼロックス株式会社 | Slave device, communication device, and image forming apparatus |
-
1986
- 1986-09-05 JP JP20924486A patent/JPS6365731A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0578925A (en) * | 1991-09-19 | 1993-03-30 | Murata Mach Ltd | Communication control method |
CN104298176A (en) * | 2013-07-08 | 2015-01-21 | 海尔集团公司 | Smart switch, host registration method thereof and smart control network |
JP2019016909A (en) * | 2017-07-06 | 2019-01-31 | 富士ゼロックス株式会社 | Slave device, communication device, and image forming apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0535668A (en) | Signal processor | |
JPS6365731A (en) | Polling system | |
KR20000005265A (en) | Multiplex communication interface circuit and method | |
US6940311B2 (en) | Data transmission system | |
JPS6479850A (en) | Effective using method for bus | |
JPS63310031A (en) | Error detection system | |
JPH0227461A (en) | Data transfer controller | |
JPH05324545A (en) | Bus controller | |
JPH01185757A (en) | Data transfer equipment | |
JPS60218941A (en) | Data transmission equipment | |
JP2550273Y2 (en) | Communication device | |
JPH0377458A (en) | Communication system | |
JPS60126943A (en) | Data communication system | |
JPH08288979A (en) | Interface changeover method and its device for data transfer device | |
JPS61123969A (en) | Microprocessor | |
JPH03265250A (en) | Communication controller | |
JPS57123750A (en) | Signal transmitting and receiving device | |
JPH03156556A (en) | Intra-system serial interface system | |
JPH02242457A (en) | Terminal connecting system | |
JPH03191643A (en) | Communication control system between cpus | |
JPS58168350A (en) | Line connecting system | |
JPS60236548A (en) | Setting system of modem control information | |
JPH06131296A (en) | Bus arbitration system | |
JPH03251946A (en) | Input/output control method for information processing system | |
JPS58156253A (en) | Start-stop type data transmitter |