JP3703603B2 - Virtual terminal - Google Patents

Virtual terminal Download PDF

Info

Publication number
JP3703603B2
JP3703603B2 JP09713797A JP9713797A JP3703603B2 JP 3703603 B2 JP3703603 B2 JP 3703603B2 JP 09713797 A JP09713797 A JP 09713797A JP 9713797 A JP9713797 A JP 9713797A JP 3703603 B2 JP3703603 B2 JP 3703603B2
Authority
JP
Japan
Prior art keywords
terminal
terminals
polling
data communication
polling signal
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
JP09713797A
Other languages
Japanese (ja)
Other versions
JPH10290244A (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 JP09713797A priority Critical patent/JP3703603B2/en
Publication of JPH10290244A publication Critical patent/JPH10290244A/en
Application granted granted Critical
Publication of JP3703603B2 publication Critical patent/JP3703603B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Communication Control (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ポーリング方式の通信に用いられる仮想端末に関するものであり、ホスト端末と従属端末とが区別されていないネットワークのデータ通信における通信手順に関するものである。
【0002】
特に、本発明は、リング又はバス構成のネットワークにPCなどの端末が接続されてポーリング方式によりデータ通信を行うLANなどのコンピュータネットワークでのデータ相互通信の場合や、伝送路上に接続された複数の端局と、各端局に監視装置や遠隔制御装置が接続されて通信ネットワークを構成してポーリング方式により端局のアラーム情報などの制御をする集中監視通信や遠隔制御通信を行う場合などに適用可能なデータ相互通信などに用いて好適である。
【0003】
【従来の技術】
通信のプロトコルの1つにベーシック手順によるポーリング方式がある。このポーリング方式による通信は、ポーリング権を取得するホスト端末もしくは従属端末がポーリング信号を複数の従属端末に送出して、従属端末が自端末宛のポーリング信号を受信した時に、送信メッセージを送信して、通信を行うものである。
【0004】
ホスト端末のみがポーリング権を取得して、集中管理する場合では、ホスト端末が故障した場合に従属端末間の通信が不能となる問題があり、ベーシック手順によるポーリング方式はホスト端末と従属端末とが区別されていないマルチ接続ネットワークを構成する。
【0005】
図7は従来のポーリング方式のネットワークの構成図である。
このポーリング方式のネットワークではデータ通信回線2にm個の端末4−#i(i=1〜m)が接続されている。各端末4−#iには、いずれもホスト端末となり得るようにネットワーク内の端末数nが設定されている。
【0006】
そして、ポーリング権を取得した端末4−#iが端末数nだけポーリング信号をデータ通信回線2に送出して、送信メッセージのある端末4−#jが自端末宛のポーリング信号を受信した時にメッセージをデータ通信回線2に送出するようにしている。
【0007】
図8は、ポーリング権を端末4−#1が取得しており、その端末4−#1に設定された端末数nがネットワーク内の端末数mよりも大の場合の、図7のデータ通信フローを示す図である。
【0008】
この図に示すように、端末4−#1は、図示しないが自端末4−#1(アドレスが1)のポーリング信号をデータ通信回線2に送出した後、端末4−#2、端末4−#3、…のアドレス#2,#3,…を順次ポーリング信号POL-2,POL-3 …に指定して、データ通信回線2に送出する。
【0009】
自端末宛のポーリング信号POL-i を受信した端末4−#iは、送信する情報がなければ、データリンクの開放を示すEOTを送出し、送信する情報があれば、送信先の端末を指定してメッセージをデータ通信回線2に送出する。
【0010】
例えば、端末4−#mは、端末4−#1に送信する情報があるので、情報TEXTをデータ通信回線2に送出して、情報TEXTを受信した端末4−#1は、ACK又はNACをデータ通信回線2に返す。
【0011】
ポーリング信号POL-i がi>mになると、このポーリング信号POL-i のアドレスiを有する端末が存在しないので、無応答となる。端末4−#1は、タイマにより一定の時間応答待ちをした後、再度、同じポーリング信号POL-i をデータ通信回線2に送出してリトライをする。
【0012】
そして、このポーリング信号POL-i の送出を一定の回数繰り返すとカウントアウトとなり、次のポーリング信号POL-(i+1) を送出する。このポーリング信号POL-(i+1) に対しても同じことが繰り返される。
【0013】
結局、端末4−#1は、(n−m)個のポーリング信号POL-i(i=(m+1)〜n)に対して、ポーリング信号がカウントアウトとなるまでポーリング信号の送出を行ない、通信が途絶えたことと同じ状態となる。その後、ポーリング信号POL-1,POL-2,…が再び送出されることになる。
【0014】
図9は、ポーリング権を端末4−#1が取得しており、その端末4−#1に設定された端末数nがネットワーク内の端末数mよりも小さい場合の図7のデータ通信フローを示す図である。
【0015】
この図に示すように、端末4−#1は、図示しないが自端末4−#1(アドレスが1)のポーリング信号をデータ通信回線2に送出した後、端末4−#2、端末4−#3、…のアドレス#2,#3,…を順次ポーリング信号POL-2,POL-3 …に設定して、データ通信回線2に送出して、通信を行う。
【0016】
端末4−#1は、設定数nに等しい数のポーリング信号POL-1 〜POL-n を送信した後は、アドレスが(n+1)〜mのポーリング信号は送出されずに、再び、ポーリング信号POL-1,POL-2 …が順次送出されることになる。
【0017】
そのため、端末4−#(n+1)〜端末4−#m宛のポーリング信号が送信されないことになり、これらの端末4−#(n+1)〜端末4−#mからは情報が送信できないことになる。
【0018】
【発明が解決しようとする課題】
このように、ホスト端末と従属端末の区別のない従来のポーリング方式によるデータ通信では、端末の増設などにより端末数を変更する場合には、全端末4−#i(i=1〜m)にネットワーク内の端末数mへの設定の変更を行わなければならなかった。この設定の変更は、端末の数が多いと、手間が掛かるという問題があった。
【0019】
本発明は、このような点に鑑みてなされたものであり、ホスト端末と従属端末の区別のないポーリング方式の通信において、端末の増加の際に設定する端末数を一箇所のみにして端末数の変更の手間を省くことのできる仮想端末を提供することを目的としている。
【0020】
【課題を解決するための手段】
図1は本発明の仮想端末の原理図である。
この図に示すように、データ通信回線10に複数の端末12−#i(i=1〜m)を接続してネットワークを構成し、該各端末12−#iに設定した設定値に基づいて1つの端末よりポーリング信号を送出してデータリンクを確立し、データ通信をするポーリング方式の通信に使用される仮想端末14は、ネットワークを構成する端末12−#i(i=1〜m)の総数mを記憶する記憶手段16と、データ通信回線10よりポーリング信号を受信する受信手段18と、データ通信回線10にデータリンク開放信号などの応答信号を送出する送出手段20と、受信手段18が受信したポーリング信号が示すアドレスが記憶手段16に記憶された端末の総数mを越えるか否かを判別して、該端末の総数mを越えた時、送出手段20に応答信号を送出するように指示する監視手段22とを具備する。
【0021】
このように構成したので、ポーリング権を取得している端末12−#iは、設定された端末数nに従って、アドレスをセットして、ポーリング信号をデータ通信回線10に順次送出する。
【0022】
受信端末は、自端末宛のポーリング信号を受信した時、送信メッセージがあればメッセージをデータ通信回線10に送信して、送信メッセージがなければ、EOTをデータ通信回線10に送信する。
【0023】
ここで、端末12−#iの設定端末数n>mの時は、該当する端末がないにもかかわらず、アドレスが(m+1)〜nまでのポーリング信号が端末12−#iより送出されることになる。
【0024】
受信手段18は、このポーリング信号を受信して、監視手段22に出力する。監視手段22は、ポーリング信号のアドレスを監視して、記憶手段16に記憶された端末の総数mと比較して、アドレスがmよりも大きい時は、送出手段20に対して、EOTを送出するように指示する。
【0025】
送出手段20は、監視手段22からの指示に従って、EOTをデータ通信回線10に送出する。端末12−#iは、送出手段20からのEOTを受信して次のアドレスのポーリング信号を送出する。
【0026】
結局、端末12−#iは、(n−m)個のアドレスを有しない端末に対してポーリング信号を送出することになるが、仮想端末14が代わりにEOTを端末12−#iに返すので、端末12−#iは次のポーリング信号を直ぐに送信することが可能となり、応答待ち時間が短縮される。
【0027】
さらに、データ通信回線10にポーリング信号を送出する機能を送出手段20に付加し、受信手段18が今回受信したポーリング信号が示すアドレスが以前受信したポーリング信号が示すアドレスに一致し、且つ、該一致する2つのポーリング信号を受信するまでの間に受信したポーリング信号の中で最大のアドレスが(記憶手段16に記憶された端末の総数m)よりも小さい時には、(該最大のアドレス+1)のアドレスから端末の総数mまでのアドレスを示すポーリング信号を順次送出するように送出手段20に指示する機能を監視手段22に付加することが望ましい。
【0028】
これにより、ポーリング権を取得してホスト端末となった端末12−#iから送出されるべきポーリング信号が送出されなければ、仮想端末14がポーリング権を取得して、ポーリング信号が送出されていない端末に対してポーリング信号を送出するので、全ての端末で通信が可能となる。
【0029】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態について説明する。
図2は、本発明の実施形態による仮想端末の構成図である。
【0030】
仮想端末34は、m個の端末32−#i(i=1〜m)がマルチポイント接続されたデータ通信回線30に接続されている。この仮想端末34は、伝送制御部36、監視部38、端末数テーブル40、及び受信テーブル42を具備する。
【0031】
伝送制御部36は、データ通信回線30より端末32−#iが送信したポーリング信号などを受信して、ポーリング信号ならば監視部38に出力して、監視部38からの指示に従って、ポーリング信号もしくはEOTをデータ通信回線30に送信するものである。
【0032】
監視部38は、伝送制御部36から出力された端末32−#iからのポーリング信号を監視して、該当する端末がないにも係わらずポーリング信号が送出された場合は、EOTを送出するように伝送制御部36に指示をし、ある端末にポーリング信号が送出されない場合には、ポーリング権を取得して、その端末にポーリング信号を送出するように伝送制御部36に指示をするものであり、例えば、プロセッサにより実現する。
【0033】
端末数テーブル40は、ネットワーク内の端末総数mを記憶するものであり、例えば、レジスタなどで構成し、この端末総数mは外部のディプスイッチなどによって端末32−#iが増設される毎に設定される。受信テーブル42は、データ通信回線30より受信したポーリング信号のアドレスを記憶するためのものである。
【0034】
各端末32−#iは、ホスト端末と従属端末との区別が無く、いずれもがホスト端末になり得るものであり、設定された端末数nに従って、その端末数n個分のポーリング信号をデータ通信回線30に送出してベーシック手順に従いデータリンクを確立してデータ通信を行うものである。
【0035】
図3は、図2の仮想端末の動作フローチャートである。
図4は、図3中のポーリング信号送出のフローチャートである。
図5及び図6は、図2のデータ通信フローチャートである。
【0036】
以下、これらの図を参照しつつ、図2の仮想端末の動作の説明をする。
(a) 端末数n>端末総数mの場合
端末32−#iはいずれもポーリング権を取得してホスト端末となり得るが、ここでは一例として、端末32−#1がホスト端末となっている場合を例に説明をする。
【0037】
例えば、各端末32−#iには設置する際に想定される端末の最大端末数を設定しておき、他端末の増設の際には全く既存の端末32−#iに設定した端末数を変更しない運用などが考えられる。
【0038】
図5に示すように、端末32−#1は、設定数nに従って、アドレス=j(j=1〜n)を示すポーリング信号POL-j を順次、データ通信回線30に送出する。このポーリング信号POL-j が端末32−#i(i=1〜m)及び仮想端末34で受信される。
【0039】
端末32−#jは、ポーリング信号POL-j のアドレスjが自身のアドレスに等しい場合、送出するべきメッセージがあれば、テキストTEXTをデータ通信回線30に送信して、メッセージがなければ、EOTをデータ通信回線30に送信する。
【0040】
図3中のステップS2において、仮想端末34の伝送制御部36は、ポーリング信号POL-j を受信すると、監視部38に、例えば、割り込み信号として出力する。
【0041】
ステップS4において、監視部38は、ポーリング信号POL-j 中のアドレスjを取り出す。ステップS6において、アドレスj>端末数テーブル44に設定された端末総数mであるか否かを判定して、否定判定の場合には、ステップS8に進み、肯定判定の場合には、ステップS12に進む。
【0042】
ステップS8において、アドレスjが受信テーブル42に登録されているか否かを判定して、登録されていなければ、ステップS10に進み、登録されていれば、ステップS16に進む。
【0043】
ステップS10において、アドレスjを受信テーブル42に登録して、終了する。図5に示すポーリングPOL-j(j=1 〜m)までは、ステップS2〜ステップS10の処理を行うことになる。
【0044】
受信テーブル42は、該当する端末にポーリング信号が送出されたか否かを監視するために、受信したポーリング信号POL-i のアドレスi を格納するためのものである。
【0045】
ステップS12において、受信テーブル42をクリアする。ステップS14において、端末32−#1が送出したポーリング信号POL-i のアドレスi は、ネットワーク内の端末数mよりも大であり、該当する端末が存在しないので、監視部38は伝送制御部36に対してEOT送出を指示して、伝送制御部36はEOTを送出する。
【0046】
これを端末32−#1が受信して、次のポーリング信号POL-(i+1) を送出して、仮想端末34側では、ステップS2〜ステップS14までの処理を行うことになる。
【0047】
これにより、図6において、端末32−#1が送出した(m+1)番目からn番目までのポーリング信号POL-i(i=(m+1) 〜n)に対しては、仮想端末34がEOTをデータ通信回線30に送信して応答することになり、端末32−#1は直ぐに次のポーリング信号が送出可能となる。
【0048】
(b) 端末数n<端末総数mの場合
例えば、端末32−#iの総数が予想されるべき最大数を越える場合が考えられるが、この場合は、端末数n<端末総数mとなる。
【0049】
ここでも一例として、端末32−#1がポーリング権を取得しておりホスト端末の場合であるとして、端末数n<端末総数mの場合を説明する。
図6に示すように、端末32−#1は、設定数nに従って、アドレスj(j=1〜n)を示すポーリング信号POL-j を順次、データ通信回線30に送出する。このポーリング信号POL-j が端末32−#i(i=1〜m)及び仮想端末34で受信される。
【0050】
端末32−#iは、ポーリング信号POL-j のアドレスjが自身のアドレスに等しい場合、送出するべきメッセージがあれば、テキストTEXTをデータ通信回線30に送信して、メッセージがなければ、EOTをデータ通信回線30に送信する。
【0051】
(a)の場合で説明したように、仮想端末34は、j=1〜mにおいて、図3中のステップS2〜ステップS10までの処理を行って、受信テーブル42にアドレスjを順次登録してゆく。
【0052】
図6に示すように、端末32−#1は、設定された端末数nに等しいポーリング信号POL-j(j=1 〜n)を送出すると、次にポーリング信号POL-1 を送出する。
このポーリング信号POL-1 は、仮想端末34で受信されて、仮想端末34は、図3中のステップS2〜ステップS6までの処理を経て、ステップS8に進む。ステップS8において、jが受信テーブル42に登録されているか否かを判定して、登録されていなければ、ステップS10に進み、登録されていれば、ステップS16に進む。
【0053】
ポーリング信号POL-1 は、既に、受信テーブル42に登録されているので、ステップS16に進むことになる。ステップS16において、受信テーブル42に登録されたポーリング信号の最大アドレスnがmに等しい否かを判定して、n≠mならば、ステップS20に進み、n=mならば、ステップS18に進む。
【0054】
本例では、このポーリング信号POL-1 を受信した時点では、端末32−#1に設定された端末数nはn<mなので、受信テーブル42には、アドレス1〜アドレスnまでのn個が登録されており、受信テーブル42に登録された最大アドレス=nとなるので、ステップS20に進むことになる。ステップ20において、図4中のステップS40以降のポーリング信号送出処理に進む。
【0055】
このポーリング信号送出処理において、仮想端末34はポーリング権を取得して、ホスト端末になる必要があり、このポーリング権の取得方法には様々なものが考えられるが、例えば、コンテンション方式により取得するものとする。
【0056】
コンテンション方式のポーリング権の取得方法は、ポーリング権を取得した端末がポーリング信号を送出して競合がないことを確認することにより取得することができる。ここでは、コンテンション方式によりポーリング権を取得するものとする。
【0057】
また、ポーリング信号は、送信されない端末32−#i(i=(n+1)〜m)に送出すればよいが、ここではポーリング権を取得してからは全ての端末32−#i(i=1〜m)に送出することにする。
【0058】
図4中のステップS40において、k=1に初期値を代入する。ステップS42において、監視部38はアドレス=kのポーリング信号POL-k を送出するように伝送制御部36に指示して、伝送制御部36はポーリング信号POL-k をデータ通信回線30に送出する。
【0059】
このポーリング信号POL-k がアドレスkの端末32−#kで受信されて、端末32−#kは送信メッセージがあれば、メッセージTEXTを送信して、送信メッセージが無ければ、EOTを返す。
【0060】
ステップS44において、他の端末32−#iからポーリング信号を受信したか否かを判定して、受信していなければ、ステップS46に進み、受信していれば、他の端末32−#iがポーリング権を取得したので、ステップS50に進む。
【0061】
ステップS46において、仮想端末34は、EOTを受信すると、kを一つインクリメントする。ステップS48において、k>mであるか否かを判別して、k>mでなければ、ステップS42に戻り、k>mならば、ステップS40に進む。
【0062】
これにより、図6に示すように、仮想端末34は、m個のポーリング信号POL-k (k=1〜m)を順次データ通信回線30に送出して、端末32−#kがこれを受信することになり、全ての端末32−i(i=1〜m)で通信可能となる。
【0063】
そして、仮想端末34は他の端末32−#iがポーリング権を取得するまでは、ホスト端末となって、ポーリング信号を順次送出する。
(c) 端末数n=端末総数mの場合
端末数n=mの場合は、端末32−#1が送出するポーリング信号POL-j(j=1 〜(n-1) については、図3中のステップS2〜ステップS10の処理を経て、受信テーブル42にアドレスj が登録されて、j=n で、ステップS2〜ステップS18の処理を経て、受信テーブル42がクリアされる。
【0064】
そのため、n=mの場合は、仮想端末34はデータ通信回線30に対してEOTもポーリング信号も送出することはない。
以上説明した実施形態によれば、ネツトワーク内の端末数の変更に対して仮想端末の設定を変更するだけでネットワークの再構築ができるため、端末数の変更毎に全端末の設定の変更を行う必要が無くなる。
【0065】
そして、実際の端末数mが予想される最大端末数nよりも少ない場合の応答待ち時間が少なくなり、実際の端末数mが予想される最大端末数nよりも大きい場合でも該当する端末の通信が可能となる。
【0066】
また、従来のネットワークに仮想端末34を用意するだけで上記のネットワークの再構築を実現することができる。
【0067】
【発明の効果】
以上説明したように、請求項1及び3記載の発明によれば、端末数mが予想される最大端末数nよりも少ない場合に仮想端末側で応答するので、応答待ち時間が少なくなるという効果がある。
【0068】
請求項2及び3記載の発明によれば、実際の端末数mが予想される最大端末数nよりも多い場合でも仮想端末側でポーリング信号を送出するので、全ての端末で通信が可能となり、通信データが消失するようなことがないという効果がある。
【図面の簡単な説明】
【図1】本発明の仮想端末の原理図である。
【図2】本発明の実施形態による仮想端末の構成図である。
【図3】図2の仮想端末のフローチャートである。
【図4】図3中のポーリング信号送出のフローチャートである。
【図5】図2のデータ通信フロー(1)である。
【図6】図2のデータ通信フロー(2)である。
【図7】従来のポーリング方式によるネットワークの構成図である。
【図8】図7のデータ通信フロー(1)である。
【図9】図7のデータ通信フロー(2)である。
【符号の説明】
10 データ通信回線
12−#i(i=1〜m) 端末
14 仮想端末
16 記憶手段
18 受信手段
20 送出手段
22 監視手段
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a virtual terminal used for polling communication and relates to a communication procedure in network data communication in which a host terminal and a subordinate terminal are not distinguished.
[0002]
In particular, the present invention relates to data mutual communication in a computer network such as a LAN in which a terminal such as a PC is connected to a ring or bus network and performs data communication by a polling method, or a plurality of terminals connected on a transmission line. Applicable to terminal stations and centralized monitoring communication or remote control communication where monitoring devices and remote control devices are connected to each terminal station to form a communication network and control alarm information of the terminal stations by polling method. It is suitable for use in possible data mutual communication.
[0003]
[Prior art]
One of the communication protocols is a polling method based on a basic procedure. In this polling method, a host terminal or subordinate terminal that acquires a polling right sends a polling signal to a plurality of subordinate terminals, and when the subordinate terminal receives a polling signal addressed to itself, it transmits a transmission message. , To communicate.
[0004]
In the case where only the host terminal acquires the polling right and performs centralized management, there is a problem that communication between subordinate terminals becomes impossible if the host terminal breaks down. Configure a multi-connection network that is not distinguished.
[0005]
FIG. 7 is a block diagram of a conventional polling network.
In this polling network, m terminals 4- # i (i = 1 to m) are connected to the data communication line 2. Each terminal 4- # i is set with the number n of terminals in the network so that any terminal can be a host terminal.
[0006]
Then, the terminal 4- # i that has acquired the polling right sends a polling signal to the data communication line 2 by the number n of terminals, and when the terminal 4- # j with the transmission message receives the polling signal addressed to its own terminal, the message Is sent to the data communication line 2.
[0007]
FIG. 8 shows the data communication of FIG. 7 when the terminal 4- # 1 has acquired the polling right and the number n of terminals set for the terminal 4- # 1 is larger than the number m of terminals in the network. It is a figure which shows a flow.
[0008]
As shown in this figure, the terminal 4- # 1 sends a polling signal of its own terminal 4- # 1 (address 1) to the data communication line 2, but is not shown, and then terminal 4- # 2, terminal 4- # 1. The addresses # 2, # 3,... Of # 3,... Are sequentially designated as polling signals POL-2, POL-3, and transmitted to the data communication line 2.
[0009]
The terminal 4- # i that has received the polling signal POL-i addressed to itself transmits an EOT indicating that the data link is released if there is no information to be transmitted, and if there is information to be transmitted, designates a destination terminal. The message is sent to the data communication line 2.
[0010]
For example, since the terminal 4- # m has information to be transmitted to the terminal 4- # 1, the terminal 4- # 1 that sends the information TEXT to the data communication line 2 and receives the information TEXT receives ACK or NAC. Return to data communication line 2.
[0011]
When the polling signal POL-i becomes i> m, there is no response because there is no terminal having the address i of the polling signal POL-i. The terminal 4- # 1 waits for a response for a predetermined time by the timer, and then sends the same polling signal POL-i to the data communication line 2 again to retry.
[0012]
When the transmission of the polling signal POL-i is repeated a certain number of times, it counts out and the next polling signal POL- (i + 1) is transmitted. The same is repeated for this polling signal POL- (i + 1).
[0013]
Eventually, terminal 4- # 1 transmits polling signals to (nm) polling signals POL-i (i = (m + 1) to n) until the polling signals are counted out, and communication is performed. Will be in the same state as it has stopped. Thereafter, polling signals POL-1, POL-2,... Are sent again.
[0014]
FIG. 9 shows the data communication flow of FIG. 7 when the terminal 4- # 1 has acquired the polling right and the number n of terminals set for the terminal 4- # 1 is smaller than the number m of terminals in the network. FIG.
[0015]
As shown in this figure, the terminal 4- # 1 sends a polling signal of its own terminal 4- # 1 (address 1) to the data communication line 2, but is not shown, and then terminal 4- # 2, terminal 4- # 1. The addresses # 2, # 3,... Of # 3,... Are sequentially set as polling signals POL-2, POL-3, and sent to the data communication line 2 for communication.
[0016]
After the terminal 4- # 1 transmits the number of polling signals POL-1 to POL-n equal to the set number n, the polling signals POL-1 to POL-n are not sent again and the polling signal POL is again transmitted. -1, POL-2 ... will be sent sequentially.
[0017]
Therefore, the polling signals addressed to the terminal 4-# (n + 1) to the terminal 4- # m are not transmitted, and information cannot be transmitted from the terminal 4-# (n + 1) to the terminal 4- # m. .
[0018]
[Problems to be solved by the invention]
As described above, in the data communication based on the conventional polling method in which there is no distinction between the host terminal and the subordinate terminal, when the number of terminals is changed due to the addition of terminals or the like, all terminals 4- # i (i = 1 to m) are used. The setting had to be changed to the number m of terminals in the network. This change of setting has a problem that it takes time and effort when the number of terminals is large.
[0019]
The present invention has been made in view of the above points, and in the polling method communication in which there is no distinction between the host terminal and the subordinate terminal, the number of terminals is set at only one place when the number of terminals is increased. It is an object of the present invention to provide a virtual terminal that can save the trouble of changing.
[0020]
[Means for Solving the Problems]
FIG. 1 is a principle diagram of a virtual terminal according to the present invention.
As shown in the figure, a network is configured by connecting a plurality of terminals 12- # i (i = 1 to m) to the data communication line 10, and based on the set values set in the terminals 12- # i. A virtual terminal 14 used for polling communication that transmits a polling signal from one terminal to establish a data link and performs data communication is used for terminals 12- # i (i = 1 to m) constituting the network. Storage means 16 for storing the total number m, receiving means 18 for receiving a polling signal from the data communication line 10, sending means 20 for sending a response signal such as a data link release signal to the data communication line 10, and receiving means 18 It is determined whether the address indicated by the received polling signal exceeds the total number m of terminals stored in the storage means 16, and when the total number m of terminals is exceeded, a response signal is sent to the sending means 20. Including a monitoring means 22 for instructing to.
[0021]
With this configuration, the terminal 12- # i that has acquired the polling right sets an address according to the set number of terminals n, and sequentially sends a polling signal to the data communication line 10.
[0022]
When the receiving terminal receives a polling signal addressed to itself, the receiving terminal transmits a message to the data communication line 10 if there is a transmission message, and transmits an EOT to the data communication line 10 if there is no transmission message.
[0023]
Here, when the set number of terminals 12- # i is n> m, a polling signal with addresses (m + 1) to n is transmitted from the terminal 12- # i even though there is no corresponding terminal. It will be.
[0024]
The receiving means 18 receives this polling signal and outputs it to the monitoring means 22. The monitoring means 22 monitors the address of the polling signal and compares it with the total number m of terminals stored in the storage means 16 and sends an EOT to the sending means 20 when the address is larger than m. To instruct.
[0025]
The sending unit 20 sends the EOT to the data communication line 10 in accordance with the instruction from the monitoring unit 22. The terminal 12- # i receives the EOT from the sending means 20 and sends a polling signal of the next address.
[0026]
Eventually, the terminal 12- # i sends a polling signal to a terminal that does not have (nm) addresses, but the virtual terminal 14 returns EOT to the terminal 12- # i instead. The terminal 12- # i can immediately transmit the next polling signal, and the response waiting time is shortened.
[0027]
Furthermore, a function for sending a polling signal to the data communication line 10 is added to the sending means 20, and the address indicated by the polling signal received by the receiving means 18 matches the address indicated by the previously received polling signal, and the match When the maximum address among the polling signals received until the two polling signals are received is smaller than (the total number m of terminals stored in the storage means 16), the address (the maximum address + 1) It is desirable to add a function to the monitoring means 22 to instruct the sending means 20 to sequentially send polling signals indicating addresses from to the total number m of terminals.
[0028]
Accordingly, if the polling signal to be transmitted from the terminal 12- # i that has acquired the polling right and becomes the host terminal is not transmitted, the virtual terminal 14 acquires the polling right and the polling signal is not transmitted. Since a polling signal is transmitted to the terminals, communication is possible in all terminals.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 2 is a block diagram of a virtual terminal according to an embodiment of the present invention.
[0030]
The virtual terminal 34 is connected to a data communication line 30 in which m terminals 32- # i (i = 1 to m) are multipoint-connected. The virtual terminal 34 includes a transmission control unit 36, a monitoring unit 38, a terminal number table 40, and a reception table 42.
[0031]
The transmission control unit 36 receives a polling signal or the like transmitted by the terminal 32- # i from the data communication line 30 and outputs the polling signal to the monitoring unit 38 if it is a polling signal. The EOT is transmitted to the data communication line 30.
[0032]
The monitoring unit 38 monitors the polling signal from the terminal 32- # i output from the transmission control unit 36. If the polling signal is transmitted even though there is no corresponding terminal, the monitoring unit 38 transmits EOT. If the polling signal is not sent to a certain terminal, the polling right is acquired and the transmission control unit 36 is instructed to send the polling signal to that terminal. For example, it is realized by a processor.
[0033]
The number-of-terminals table 40 stores the total number m of terminals in the network. For example, the number-of-terminals table 40 is configured by a register, and the total number m of terminals is set every time a terminal 32- # i is added by an external dip switch or the like. Is done. The reception table 42 is for storing the address of the polling signal received from the data communication line 30.
[0034]
Each terminal 32- # i has no distinction between a host terminal and a subordinate terminal, and any of them can be a host terminal. According to the set number of terminals n, polling signals for the number n of terminals are stored as data. Data is transmitted to the communication line 30 and data communication is established by establishing a data link according to the basic procedure.
[0035]
FIG. 3 is an operation flowchart of the virtual terminal of FIG.
FIG. 4 is a flowchart of polling signal transmission in FIG.
5 and 6 are data communication flowcharts of FIG.
[0036]
Hereinafter, the operation of the virtual terminal in FIG. 2 will be described with reference to these drawings.
(A) In the case where the number of terminals n> the total number m of terminals, all the terminals 32- # i can acquire a polling right and become host terminals, but here, as an example, the terminal 32- # 1 is a host terminal Will be described as an example.
[0037]
For example, the maximum number of terminals assumed at the time of installation is set for each terminal 32- # i, and the number of terminals set to the existing terminal 32- # i is completely set when another terminal is added. Operation that does not change is considered.
[0038]
As illustrated in FIG. 5, the terminal 32- # 1 sequentially transmits a polling signal POL-j indicating an address = j (j = 1 to n) to the data communication line 30 according to the set number n. This polling signal POL-j is received by the terminal 32-# i (i = 1 to m) and the virtual terminal 34.
[0039]
If the address j of the polling signal POL-j is equal to its own address, the terminal 32- # j sends the text TEXT to the data communication line 30 if there is a message to be sent, and if there is no message, EOT is sent. The data is transmitted to the data communication line 30.
[0040]
In step S2 in FIG. 3, when the transmission control unit 36 of the virtual terminal 34 receives the polling signal POL-j, it outputs it to the monitoring unit 38 as an interrupt signal, for example.
[0041]
In step S4, the monitoring unit 38 takes out the address j in the polling signal POL-j. In step S6, it is determined whether or not address j> the total number of terminals m set in the terminal number table 44. If the determination is negative, the process proceeds to step S8. If the determination is affirmative, the process proceeds to step S12. move on.
[0042]
In step S8, it is determined whether or not the address j is registered in the reception table 42. If it is not registered, the process proceeds to step S10, and if it is registered, the process proceeds to step S16.
[0043]
In step S10, the address j is registered in the reception table 42, and the process ends. Until the polling POL-j (j = 1 to m) shown in FIG. 5, the processing from step S2 to step S10 is performed.
[0044]
The reception table 42 is for storing the address i of the received polling signal POL-i in order to monitor whether or not the polling signal has been sent to the corresponding terminal.
[0045]
In step S12, the reception table 42 is cleared. In step S14, the address i of the polling signal POL-i sent from the terminal 32- # 1 is larger than the number m of terminals in the network, and there is no corresponding terminal. Is instructed to send EOT, and the transmission control unit 36 sends EOT.
[0046]
The terminal 32- # 1 receives this, sends the next polling signal POL- (i + 1), and performs the processing from step S2 to step S14 on the virtual terminal 34 side.
[0047]
Accordingly, in FIG. 6, the virtual terminal 34 performs EOT for the (m + 1) th to nth polling signals POL-i (i = (m + 1) to n) transmitted by the terminal 32- # 1. Is transmitted to the data communication line 30, and the terminal 32- # 1 can immediately send the next polling signal.
[0048]
(B) When the number of terminals n <the total number of terminals m For example, the total number of terminals 32- # i may exceed the maximum number to be expected. In this case, the number of terminals n <the total number of terminals m.
[0049]
Here, as an example, the case where the number of terminals n <the total number of terminals m is described assuming that the terminal 32- # 1 has acquired the polling right and is a host terminal.
As illustrated in FIG. 6, the terminal 32- # 1 sequentially transmits a polling signal POL-j indicating the address j (j = 1 to n) to the data communication line 30 according to the set number n. This polling signal POL-j is received by the terminal 32-# i (i = 1 to m) and the virtual terminal 34.
[0050]
If the address j of the polling signal POL-j is equal to its own address, the terminal 32- # i transmits the text TEXT to the data communication line 30 if there is a message to be sent, and if there is no message, EOT is transmitted. The data is transmitted to the data communication line 30.
[0051]
As described in the case of (a), the virtual terminal 34 performs the processing from step S2 to step S10 in FIG. 3 when j = 1 to m, and sequentially registers the address j in the reception table 42. go.
[0052]
As shown in FIG. 6, when the terminal 32- # 1 transmits a polling signal POL-j (j = 1 to n) equal to the set number of terminals n, it then transmits a polling signal POL-1.
The polling signal POL-1 is received by the virtual terminal 34, and the virtual terminal 34 goes through step S2 to step S6 in FIG. 3 and proceeds to step S8. In step S8, it is determined whether or not j is registered in the reception table 42. If it is not registered, the process proceeds to step S10. If it is registered, the process proceeds to step S16.
[0053]
Since the polling signal POL-1 is already registered in the reception table 42, the process proceeds to step S16. In step S16, it is determined whether or not the maximum address n of the polling signal registered in the reception table 42 is equal to m. If n ≠ m, the process proceeds to step S20, and if n = m, the process proceeds to step S18.
[0054]
In this example, when the polling signal POL-1 is received, the number n of terminals set in the terminal 32- # 1 is n <m, and therefore, the reception table 42 includes n addresses 1 to n. Since it is registered and the maximum address registered in the reception table 42 is n, the process proceeds to step S20. In step 20, the process proceeds to a polling signal transmission process after step S40 in FIG.
[0055]
In this polling signal transmission process, the virtual terminal 34 needs to acquire a polling right and become a host terminal. There are various methods for acquiring this polling right. For example, it is acquired by a contention method. Shall.
[0056]
The contention-type polling right acquisition method can be acquired by transmitting a polling signal and confirming that there is no contention by the terminal that has acquired the polling right. Here, it is assumed that the polling right is acquired by the contention method.
[0057]
In addition, the polling signal may be sent to the terminals 32- # i (i = (n + 1) to m) that are not transmitted, but here, after acquiring the polling right, all the terminals 32- # i (i = 1). ~ M).
[0058]
In step S40 in FIG. 4, an initial value is substituted for k = 1. In step S 42, the monitoring unit 38 instructs the transmission control unit 36 to send the polling signal POL-k with address = k, and the transmission control unit 36 sends the polling signal POL-k to the data communication line 30.
[0059]
When this polling signal POL-k is received by the terminal 32- # k at the address k, the terminal 32- # k transmits a message TEXT if there is a transmission message, and returns EOT if there is no transmission message.
[0060]
In step S44, it is determined whether or not a polling signal has been received from another terminal 32- # i. If not received, the process proceeds to step S46, and if received, the other terminal 32- # i Since the polling right has been acquired, the process proceeds to step S50.
[0061]
In step S46, when receiving the EOT, the virtual terminal 34 increments k by one. In step S48, it is determined whether or not k> m. If k> m, the process returns to step S42, and if k> m, the process proceeds to step S40.
[0062]
Thereby, as shown in FIG. 6, the virtual terminal 34 sequentially sends m polling signals POL-k (k = 1 to m) to the data communication line 30, and the terminal 32- # k receives them. Therefore, all the terminals 32-i (i = 1 to m) can communicate.
[0063]
The virtual terminal 34 then becomes a host terminal and sequentially sends out polling signals until the other terminal 32- # i acquires the polling right.
(C) When the number of terminals n = the total number of terminals m When the number of terminals n = m, the polling signals POL-j (j = 1 to (n-1) transmitted from the terminal 32- # 1 are shown in FIG. Through the processes of steps S2 to S10, the address j is registered in the reception table 42. When j = n, the reception table 42 is cleared through the processes of steps S2 to S18.
[0064]
Therefore, when n = m, the virtual terminal 34 does not send an EOT or a polling signal to the data communication line 30.
According to the embodiment described above, since the network can be reconstructed only by changing the setting of the virtual terminal in response to the change of the number of terminals in the network, the setting of all terminals is changed every time the number of terminals is changed. There is no need to do it.
[0065]
The response waiting time is reduced when the actual number of terminals m is less than the expected maximum number of terminals n, and even if the actual number of terminals m is greater than the expected maximum number of terminals n, the corresponding terminal communication Is possible.
[0066]
In addition, the network can be reconstructed simply by preparing the virtual terminal 34 in the conventional network.
[0067]
【The invention's effect】
As described above, according to the first and third aspects of the invention, when the number of terminals m is smaller than the expected maximum number of terminals n, the response is made on the virtual terminal side, so that the response waiting time is reduced. There is.
[0068]
According to the inventions of claims 2 and 3, since the polling signal is transmitted on the virtual terminal side even when the actual number of terminals m is larger than the expected maximum number of terminals n, it becomes possible to communicate with all terminals, There is an effect that communication data is not lost.
[Brief description of the drawings]
FIG. 1 is a principle diagram of a virtual terminal according to the present invention.
FIG. 2 is a configuration diagram of a virtual terminal according to an embodiment of the present invention.
FIG. 3 is a flowchart of the virtual terminal in FIG. 2;
4 is a flowchart of polling signal transmission in FIG. 3. FIG.
FIG. 5 is a data communication flow (1) of FIG.
6 is a data communication flow (2) of FIG.
FIG. 7 is a configuration diagram of a network according to a conventional polling method.
FIG. 8 is a data communication flow (1) of FIG.
FIG. 9 is a data communication flow (2) of FIG.
[Explanation of symbols]
10 data communication line 12- # i (i = 1 to m) terminal 14 virtual terminal 16 storage means 18 receiving means 20 sending means 22 monitoring means

Claims (3)

データ通信回線に複数の端末を接続してネットワークを構成し、該各端末に設定した設定値に基づいて1つの端末よりポーリング信号を送出してデータリンクを確立し、データ通信をするポーリング方式の通信に使用される仮想端末において、
前記ネットワークを構成する前記端末の総数mを記憶する記憶手段と、
前記データ通信回線より前記ポーリング信号を受信する受信手段と、
前記データ通信回線に応答信号を送出する送出手段と、
前記受信手段が受信したポーリング信号が示すアドレスが前記端末の総数mを越えるか否かを判別して、該端末の総数mを越えた時、前記送出手段に前記応答信号を送出するように指示する監視手段と、
を具備したことを特徴とする仮想端末。
A polling method in which a plurality of terminals are connected to a data communication line to form a network, a polling signal is transmitted from one terminal based on a set value set in each terminal, a data link is established, and data communication is performed. In the virtual terminal used for communication,
Storage means for storing the total number m of the terminals constituting the network;
Receiving means for receiving the polling signal from the data communication line;
Sending means for sending a response signal to the data communication line;
It is determined whether or not the address indicated by the polling signal received by the receiving means exceeds the total number m of the terminals, and when the total number m of the terminals is exceeded, the transmission means is instructed to send the response signal. Monitoring means to
A virtual terminal comprising:
データ通信回線に複数の端末を接続してネットワークを構成し、該各端末に設定した設定値に基づいて1つの端末よりポーリング信号を送出してデータリンクを確立し、データ通信をするポーリング方式の通信に使用される仮想端末において、
前記ネットワークを構成する前記端末の総数mを記憶する記憶手段と、
前記データ通信回線より前記ポーリング信号を受信する受信手段と、
前記データ通信回線にポーリング信号を送出する送出手段と、
前記受信手段が今回受信したポーリング信号が示すアドレスが以前受信したポーリング信号が示すアドレスに一致し、且つ、該一致する2つのポーリング信号を受信するまでの間に受信したポーリング信号の中で最大のアドレスが前記端末の総数mよりも小さい時には、少なくとも、(該最大のアドレス+1)のアドレスから前記端末の総数mまでのアドレスを示すポーリング信号を送出するように前記送出手段に指示する監視手段と、
を具備したことを特徴とする仮想端末。
A polling method in which a plurality of terminals are connected to a data communication line to form a network, a polling signal is transmitted from one terminal based on a set value set in each terminal, a data link is established, and data communication is performed. In the virtual terminal used for communication,
Storage means for storing the total number m of the terminals constituting the network;
Receiving means for receiving the polling signal from the data communication line;
Sending means for sending a polling signal to the data communication line;
The address indicated by the polling signal received this time by the receiving means coincides with the address indicated by the previously received polling signal, and the maximum of the polling signals received until the two matching polling signals are received. Monitoring means for instructing the sending means to send at least a polling signal indicating an address from the (maximum address + 1) address to the total number m of the terminals when the address is smaller than the total number m of the terminals; ,
A virtual terminal comprising:
データ通信回線に複数の端末を接続してネットワークを構成し、該各端末に設定した設定値に基づいて1つの端末よりポーリング信号を送出してデータリンクを確立し、データ通信をするポーリング方式の通信に使用される仮想端末において、
前記ネットワークを構成する前記端末の総数mを記憶する記憶手段と、
前記データ通信回線より前記ポーリング信号を受信する受信手段と、
前記データ通信回線にデータリンク開放信号を送出する第1送出手段と、
前記データ通信回線にポーリング信号を送出する第2送出手段と、
前記受信手段が受信した応答信号が示すアドレスが前記記憶手段に記憶された前記端末の総数mを越えるか否かを判別して、前記端末の総数mを越えた時、前記第1送出手段に応答信号を送出するように指示する第1監視手段と、
前記受信手段が今回受信したポーリング信号が示すアドレスが以前受信したポーリング信号が示すアドレスに一致し、且つ、該一致する2つのポーリング信号を受信するまでの間に受信したポーリング信号の中で最大のアドレスが前記端末の総数mよりも小さい時には、少なくとも、(該最大のアドレス+1)のアドレスから前記端末の総数mまでのアドレスを示すポーリング信号を順次送出するように前記第2送出手段に指示する第2監視手段と、
を具備したことを特徴とする仮想端末。
A polling method in which a plurality of terminals are connected to a data communication line to form a network, a polling signal is transmitted from one terminal based on a set value set in each terminal, a data link is established, and data communication is performed. In the virtual terminal used for communication,
Storage means for storing the total number m of the terminals constituting the network;
Receiving means for receiving the polling signal from the data communication line;
First sending means for sending a data link release signal to the data communication line;
Second sending means for sending a polling signal to the data communication line;
It is determined whether the address indicated by the response signal received by the receiving means exceeds the total number m of the terminals stored in the storage means, and when the total number m of the terminals is exceeded, the first sending means First monitoring means for instructing to send a response signal;
The address indicated by the polling signal received this time by the receiving means coincides with the address indicated by the previously received polling signal, and the maximum of the polling signals received until the two matching polling signals are received. When the address is smaller than the total number m of the terminals, the second transmission means is instructed to sequentially transmit at least a polling signal indicating addresses from the (maximum address + 1) address to the total number m of the terminals. A second monitoring means;
A virtual terminal comprising:
JP09713797A 1997-04-15 1997-04-15 Virtual terminal Expired - Fee Related JP3703603B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09713797A JP3703603B2 (en) 1997-04-15 1997-04-15 Virtual terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09713797A JP3703603B2 (en) 1997-04-15 1997-04-15 Virtual terminal

Publications (2)

Publication Number Publication Date
JPH10290244A JPH10290244A (en) 1998-10-27
JP3703603B2 true JP3703603B2 (en) 2005-10-05

Family

ID=14184190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09713797A Expired - Fee Related JP3703603B2 (en) 1997-04-15 1997-04-15 Virtual terminal

Country Status (1)

Country Link
JP (1) JP3703603B2 (en)

Also Published As

Publication number Publication date
JPH10290244A (en) 1998-10-27

Similar Documents

Publication Publication Date Title
JPS62239641A (en) Multiple address communication system
JPS62100044A (en) Communication apparatus and communication method
JPH02228854A (en) Data communication system and data communication method
KR20000005265A (en) Multiplex communication interface circuit and method
JP3703603B2 (en) Virtual terminal
JPS61177047A (en) Centralized control system for terminal
JPH09326810A (en) Connection changeover method on occurrence of fault
JPH0473178B2 (en)
JP3200293B2 (en) Broadcast communication method in ring type LAN
JPS61227443A (en) Transmitter
JPS5811146B2 (en) Communication method using polling emulator
JP3067160B2 (en) Communication control device
JPS63197142A (en) Polling system
JP3241612B2 (en) Data collection system
JP2688094B2 (en) Polling communication method
JPH10248095A (en) Installation management system
JPH0522343A (en) Packet communication system
JPS62171349A (en) Communication control equipment
JPH02217039A (en) Poling/selecting control procedure system
JPH05143491A (en) Device health check system
JP2694412B2 (en) Data transmission system
JP3121423B2 (en) Network system
JPS63299627A (en) Multiple address communicating method
JPS63263940A (en) Network management system
JPH04258053A (en) Token bus type communication system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050708

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050719

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050720

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees