JP2713133B2 - Polling data collection method - Google Patents
Polling data collection methodInfo
- Publication number
- JP2713133B2 JP2713133B2 JP5346045A JP34604593A JP2713133B2 JP 2713133 B2 JP2713133 B2 JP 2713133B2 JP 5346045 A JP5346045 A JP 5346045A JP 34604593 A JP34604593 A JP 34604593A JP 2713133 B2 JP2713133 B2 JP 2713133B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- monitored
- station
- group
- polling
- 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 - Lifetime
Links
- 238000013480 data collection Methods 0.000 title claims description 44
- 238000000034 method Methods 0.000 title claims description 20
- 238000012544 monitoring process Methods 0.000 claims description 33
- 238000004891 communication Methods 0.000 claims description 26
- 238000012545 processing Methods 0.000 description 15
- 230000005540 biological transmission Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Alarm Systems (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、監視局と複数の被監視
局がバス状ネットワークで接続され、監視局から被監視
局へポーリングして被監視局からのデータをバス状ネッ
トワークを介して監視局で収集するポーリング式データ
収集方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitoring station and a plurality of monitored stations connected by a bus network, polling from the monitoring station to the monitored station, and transmitting data from the monitored station via the bus network. The present invention relates to a polling data collection method for collecting data at a monitoring station.
【0002】[0002]
【従来の技術】従来の一般的なポーリング式データ収集
方式では、監視局で監視すべき全ての被監視局に対し
て、その状態に関係なく同一のポーリングを行っていた
ため、次のような問題があった。2. Description of the Related Art In a conventional general polling type data collection method, the same polling is performed for all monitored stations to be monitored by the monitoring station regardless of the state thereof. was there.
【0003】システムとして予め設定した最大数の被監
視局に対するデータ収集の所要時間は、正常な(データ
通信可能な)被監視局にかかるデータ収集時間と、異常
又は該当無しの(データ通信不能な)被監視局にかかる
データ収集時間との合計で決まる。監視局からのポーリ
ングに対し、被監視局から正常な応答が無かった場合、
監視局は一般にポーリング信号を複数回繰り返し送出す
る。従って、通信不能な被監視局の数が増えると、デー
タ収集に要する時間が非常に長くなる。The time required for data collection for a maximum number of monitored stations set in advance as a system includes a data collection time for a normal (data communication enabled) monitored station and an abnormal or non-applicable (data communication disabled) time. ) Determined by the sum of the data collection time required for the monitored station. When there is no normal response from the monitored station to the polling from the monitoring station,
The monitoring station generally sends out a polling signal a plurality of times. Therefore, when the number of monitored stations that cannot communicate increases, the time required for data collection becomes extremely long.
【0004】このような問題を解決するため、従来から
種々の方式が提案されている。例えば、特開昭64−3
4036号公報には、被監視局がデータ通信可能である
かデータ通信不能であるかを検出し、データ通信不能で
ある場合には、監視局から通常のポーリング信号と異な
るポーリング情報を送出し、データ通信不能な被監視局
に対して、ポーリング信号を受信可能な状態であるか否
かの応答信号を返送させ、その応答内容に応じてデータ
収集のためのポーリング動作を行うことで、監視局での
データ収集に要する時間の短縮化を図った監視制御方式
が開示されている。[0004] In order to solve such a problem, various systems have been conventionally proposed. For example, JP-A-64-3
Japanese Patent No. 4036 discloses that the monitored station detects whether data communication is possible or data communication is not possible, and when data communication is not possible, polling information different from a normal polling signal is sent from the monitoring station, A response signal indicating whether or not a polling signal can be received is sent back to the monitored station that cannot communicate data, and a polling operation for data collection is performed in accordance with the response content. Discloses a monitoring control method for reducing the time required for data collection in a computer.
【0005】また、特開平3−108838号公報に
は、送信要求のある全ての子局(被監視局)に対して一
括してポーリングを行うことで、データ収集効率の向上
を図ったポーリングセレクティングシステムが開示され
ている。すなわち、このシステムでは、親局(監視局)
から、ループ状に接続された全ての子局に対して一斉に
ポーリングを行うための一斉ポーリングフレームを送出
する。この時点で送信要求が存在する子局は、一斉ポー
リングフレーム中の自局のタイムスロット位置に自局ノ
ードのアドレスを挿入する。一方、この時点で送信要求
が存在しない子局は一斉ポーリングフレームを単に中継
する。このようにして一斉ポーリングフレームが全ての
子局を巡って再び親局へ戻ると、親局は、送信要求が存
在する子局のノードアドレスを収集し、その全ての子局
に対して送信要求順位の情報を含むポーリング信号を新
たに送出する。このポーリング信号を子局が受信する
と、その受信した子局は、ポーリング信号に含まれる送
信要求順位の情報を記憶し、ネットワーク中のキャリア
検出信号がオフになり次第、送信要求順位に従って親局
へ順次データを送信する。Japanese Patent Laid-Open Publication No. Hei 3-1088838 discloses a polling selector for improving data collection efficiency by polling all slave stations (monitored stations) that have requested transmission at once. A pointing system is disclosed. That is, in this system, the master station (monitoring station)
, A simultaneous polling frame for simultaneously polling all slave stations connected in a loop is transmitted. At this time, the slave station for which the transmission request exists inserts the address of its own node into its own time slot position in the simultaneous polling frame. On the other hand, a slave station having no transmission request at this point simply relays the simultaneous polling frame. In this way, when the simultaneous polling frame goes around all the slave stations and returns to the master station again, the master station collects the node addresses of the slave stations for which the transmission request exists, and sends the transmission request to all the slave stations. A polling signal including rank information is newly transmitted. When the slave station receives the polling signal, the slave station receives the information of the transmission request order included in the polling signal, and sends the information to the master station according to the transmission request order as soon as the carrier detection signal in the network is turned off. Transmit data sequentially.
【0006】更に、特開平2−65337号公報には、
通信要求を持たない従局(被監視局)にはポーリングを
行わないことで、通信時間の短縮化を図ったチャンネル
アクセス方式が開示されている。すなわち、この方式で
は、主局(監視局)に、書換え可能なポーリングテーブ
ルと、従局番号割当手段を備える一方、各従局(被監視
局)に従局番号要求手段を備える。従局において通信要
求が発生すると、従局番号要求手段により主局に対して
従局番号の割当てを要求し、その要求に応じて主局の従
局番号割当手段で従局番号を割当てるとともに、その従
局番号をポーリングテーブルに書き込む。そして、この
書き込まれた従局番号に該当する従局に対してのみポー
リングを行う。Further, Japanese Patent Application Laid-Open No. 2-65337 discloses that
A channel access method is disclosed in which polling is not performed for a slave station (monitored station) having no communication request, thereby shortening the communication time. That is, in this system, the master station (monitoring station) is provided with a rewritable polling table and slave station number assigning means, while each slave station (monitored station) is provided with a slave number requesting means. When a communication request occurs in the slave station, the slave station number requesting means requests the master station to assign a slave station number, and in response to the request, the slave station number assigning means of the master station assigns the slave station number and polls the slave station number. Write to the table. Then, polling is performed only for the slave station corresponding to the written slave station number.
【0007】[0007]
【発明が解決しようとする課題】しかしながら、特開昭
64−34036号公報に開示された監視制御方式で
は、ポーリング周期毎に、通信不能な被監視局の全てに
対して、ポーリング信号を受信可能な状態である否かの
応答信号を返送させる必要があるので、通信不能な被監
視局の数が増加すると、データ収集に要する時間が長く
なるという欠点がある。However, in the supervisory control system disclosed in Japanese Patent Application Laid-Open No. 64-34036, a polling signal can be received at every polling cycle to all the unmonitored stations that cannot communicate. Since it is necessary to return a response signal indicating whether or not the communication is in a normal state, if the number of unmonitored monitored stations increases, the time required for data collection becomes longer.
【0008】また、特開平3−108838号公報に開
示されたポーリングセレクティングシステムでは、全て
の被監視局に対して一斉ポーリングフレームを送り、送
信要求のある被監視局のアドレスを収集した後、データ
収集のためのポーリングを行うため、アドレスを収集す
るための時間を余計に要する欠点がある。In the polling selecting system disclosed in Japanese Patent Application Laid-Open No. 3-1088838, a polling frame is sent to all monitored stations at the same time, and after the addresses of the monitored stations having transmission requests are collected, Since polling for data collection is performed, there is a disadvantage in that extra time is required to collect addresses.
【0009】更に、特開平2−65337号公報に開示
されたチャンネルアクセス方式では、従局(被監視局)
が主局に対して従局番号の割当てを要求し、その要求に
応じて主局が従局番号を割当てるという処理が必要にな
り、処理が複雑化する欠点がある。Further, in the channel access system disclosed in Japanese Patent Application Laid-Open No. 2-65337, a slave station (monitored station)
Requires a master station to assign a slave station number, and the master station needs to assign a slave station number in response to the request, which disadvantageously complicates the processing.
【0010】本発明の目的は、上記のような従来の欠点
に鑑み、複数の被監視局のデータを監視局において効率
良く収集できるとともに、その収集に要する時間を短縮
化でき、かつ処理も簡単なポーリング式データ収集方式
を提供することにある。SUMMARY OF THE INVENTION In view of the above-mentioned drawbacks of the prior art, it is an object of the present invention to efficiently collect data of a plurality of monitored stations in a monitoring station, to shorten the time required for the collection, and to simplify the processing. Another object of the present invention is to provide a simple polling data collection method.
【0011】[0011]
【課題を解決するための手段】このような目的を達成す
るため、本発明は、監視局と複数の被監視局がバス状ネ
ットワークで接続され、監視局から被監視局へポーリン
グして被監視局からのデータをバス状ネットワークを介
して監視局で収集するポーリング式データ収集方式にお
いて、監視局に次のような手段を備えたことを特徴とす
る。 データ通信可能な被監視局の識別子を第1グループ
として記憶するための書換え可能な第1の記憶テーブ
ル。 データ通信不能な被監視局の識別子を第2グループ
として記憶するための書換え可能な第2の記憶テーブ
ル。 これら第1及び第2の記憶テーブルに記憶された識
別子を参照し、1回のポーリングシーケンスにおいて、
第1グループに属する全ての被監視局と、第2グループ
の被監視局の中から順次選択した1つの被監視局とに対
してデータ要求を送出するデータ要求手段。 第1及び第2の記憶テーブルに記憶されている識別
子に基づいて、データ要求手段でデータ要求を送出すべ
き被監視局の順位を各ポーリングシーケンス毎に決定
し、第2グループ中から選択した1つの被監視局の順位
は、第1グループの最後の被監視局の次とするデータ要
求順位決定手段。 データ要求を送出した被監視局からデータが正常に
受信できたか否かを判断する受信判断手段。 その判断結果に基づいて、第1グループの被監視局
の中で正常に受信できなかった被監視局については、そ
の識別子を第2の記憶テーブルに書き換え、第2グルー
プの被監視局で正常に受信できた被監視局については、
その識別子を第1の記憶テーブルに書き換える書換手
段。In order to achieve the above object, according to the present invention, a monitoring station and a plurality of monitored stations are connected by a bus network, and the monitoring station polls the monitored station to monitor the monitored station. In a polling-type data collection method in which data from a station is collected by a monitoring station via a bus network, the monitoring station is provided with the following means. A rewritable first storage table for storing identifiers of monitored stations capable of data communication as a first group. A rewritable second storage table for storing, as a second group, identifiers of monitored stations that cannot perform data communication. With reference to the identifiers stored in the first and second storage tables, in one polling sequence,
Data request means for sending data requests to all monitored stations belonging to the first group and one monitored station sequentially selected from the monitored stations in the second group. Based on the identifiers stored in the first and second storage tables, the data requesting means determines the order of monitored stations to which a data request should be sent for each polling sequence, and selects one of the stations selected from the second group. A data request ranking determining means that sets the rank of the monitored stations next to the last monitored station of the first group. Reception determining means for determining whether data has been normally received from the monitored station that has transmitted the data request. Based on the determination result, for the monitored station of the first group that could not be normally received, the identifier is rewritten into the second storage table, and the monitored station of the second group is normally operated. For the monitored station that could be received,
Rewriting means for rewriting the identifier in the first storage table;
【0012】[0012]
【作用】本発明によると、複数の被監視局のうち、デー
タ通信を正常に行える通信可能な被監視局は第1グルー
プ、バス状ネットワークに接続されていない等の理由で
データ通信ができない通信不能な被監視局は第2グルー
プに分類される。監視局は、1回のポーリングシーケン
スにおいて、まず第1グループに属する全ての被監視局
に対してデータ要求を順次行ってデータを収集した後、
続いて第2グループに属する被監視局の中の第1順位の
1つの被監視局に対してデータ要求を行う。この1つの
被監視局からデータを正常に受信できれば、この被監視
局を第1グループに移動してこれからのデータを収集す
る。しかし、正常に受信できなければ、第2グループに
残したままとする。そして、次のポーリングシーケンス
において、再び第1グループの全ての被監視局に対して
データ要求を順次行った後、第2グループの中の次順位
の1つの被監視局に対してデータ要求を行う。つまり、
通信不能な第2グループの被監視局に対しては、1回の
ポーリングシーケンスにつき1つの被監視局についてだ
けデータ要求して正常にデータ通信できる否かを判断
し、またそのデータ要求する被監視局をポーリングシー
ケンス毎に順次移行させる。一方、第1グループの被監
視局に対してデータ要求をしたが、その中のある被監視
局からデータを正常に受信できなかったときは、当該被
監視局を第2グループに移動してから、第1グループの
中の次順位の被監視局に対してデータ要求をする。According to the present invention, among the plurality of monitored stations, the monitored stations capable of performing normal data communication are those that cannot perform data communication because they are not connected to the first group or the bus network. The disabled monitored station is classified into the second group. In one polling sequence, the monitoring station first collects data by sequentially making data requests to all monitored stations belonging to the first group,
Subsequently, a data request is made to one of the monitored stations belonging to the second group in the first order. If data can be normally received from the one monitored station, the monitored station is moved to the first group and data to be collected is collected. However, if it cannot be received normally, it is left in the second group. Then, in the next polling sequence, the data request is sequentially made again to all the monitored stations in the first group, and then the data request is made to the next monitored one station in the second group. . That is,
For the monitored station of the second group that cannot communicate, a data request is made for only one monitored station per polling sequence to determine whether normal data communication can be performed. The stations are shifted sequentially in each polling sequence. On the other hand, when a data request is made to the monitored station in the first group, but data cannot be normally received from a monitored station in the first group, the monitored station is moved to the second group, Make a data request to the next monitored station in the first group.
【0013】従って、1回のポーリングシーケンス当た
りの所要時間は、通信可能な第1グループの全ての被監
視局に対してデータ要求する時間及びそのデータ収集に
要する時間に、通信不能な第2グループの中の1つの被
監視局に対するデータ要求時間を加えた時間で済み、通
信不能な第2グループの中の他の被監視局に対してまで
もデータ要求を行ってしまうような無駄を省くことがで
きる。また、第2グループの被監視局に対しては、1回
のポーリングシーケンスにつき1つの被監視局に対して
のみデータ要求するが、そのデータ要求する被監視局を
順次移行させるので、通信可能な第1グループの全ての
被監視局については全てデータ収集できるのは勿論のこ
と、第2グループの被監視局も正常にデータ通信できる
ようになれば、その被監視局に対するポーリングの順番
が回ってきたときに、これからのデータを収集できる。Accordingly, the time required for one polling sequence is determined by the time required for data request and the time required for data collection for all monitored stations in the communicable first group, and the time required for data collection. The time required to add the data request time to one monitored station in the second group is sufficient, and the waste of making a data request to another monitored station in the uncommunicable second group is eliminated. Can be. Also, for the monitored stations in the second group, only one monitored station is requested for data in one polling sequence, but the monitored stations requesting the data are sequentially shifted, so that communication is possible. Not only can all the monitored stations of the first group collect data, but if the monitored stations of the second group can also perform normal data communication, the order of polling for the monitored stations will start. Data can be gathered at the time.
【0014】[0014]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0015】図2は、本発明によるデータ収集方式が適
用される通信系を示す。この通信系では、バス状ネット
ワーク1上に、1つの監視局(ノード0)2とN個の被
監視局(ノード1からノードN)3とが接続され、これ
ら監視局2とN個の被監視局3にはそれぞれ個別のアド
レス(識別子)が割当てられている。FIG. 2 shows a communication system to which the data collection method according to the present invention is applied. In this communication system, one monitoring station (node 0) 2 and N monitored stations (node 1 to node N) 3 are connected on a bus-like network 1, and these monitoring stations 2 and N monitored stations are connected. The monitoring station 3 is assigned an individual address (identifier).
【0016】図1に示すように、監視局2には、第1及
び第2の記憶テーブル4及び5と、書換手段6とデータ
要求順位決定手段7とデータ要求手段8と受信判断手段
9とが備えられている。As shown in FIG. 1, the monitoring station 2 includes first and second storage tables 4 and 5, a rewriting means 6, a data request order determining means 7, a data request means 8, a reception determining means 9, Is provided.
【0017】第1の記憶テーブル4は、データ通信可能
な被監視局3の識別子を第1グループAとして記憶する
ためのものであり、第2の記憶テーブル5は、データ通
信不能な被監視局の識別子を第2グループBとして記憶
するためのものである。これら記憶テーブル4・5は、
図3に示すように識別子をそれぞれノード順に記憶す
る。The first storage table 4 stores the identifiers of the monitored stations 3 capable of data communication as a first group A, and the second storage table 5 stores the identifiers of the monitored stations 3 not capable of data communication. Is stored as the second group B. These storage tables 4 and 5 are:
As shown in FIG. 3, the identifiers are stored in node order.
【0018】データ要求順位決定手段7は、第1の記憶
テーブル4に記憶された識別子に基づいて、第1グルー
プAの全ての被監視局3に対するデータ要求順位を決定
するとともに、第2の記憶テーブル5に記憶された識別
子に基づいて、第2グループBの被監視局3の中から順
次1つずつ選択してデータ要求を行うデータ要求順位を
決定する。この場合、第2グループの中の選択した1つ
の被監視局3に対するデータ要求は、第1グループの中
の最終順位の被監視局の後になるように決められる。デ
ータ要求手段8は、データ要求順位決定手段7で決定さ
れたデータ要求順位に従った順序で被監視局3に対しデ
ータ要求を送出する。The data request rank determining means 7 determines the data request rank for all the monitored stations 3 of the first group A based on the identifier stored in the first storage table 4, and stores the data request rank in the second storage table. On the basis of the identifiers stored in the table 5, the data request rankings for sequentially selecting one of the monitored stations 3 of the second group B one by one and making a data request are determined. In this case, the data request for one selected monitored station 3 in the second group is determined to be after the last monitored station in the first group. The data request unit 8 sends out data requests to the monitored station 3 in the order according to the data request order determined by the data request order determination unit 7.
【0019】受信判定手段9は、データ要求を送出した
被監視局3からのデータが、監視局2に正常に受信でき
たか否かを判断する。書換手段6は、受信判定手段9の
判断結果に基づいて第1及び第2の記憶テーブル4・5
内の識別子を書き換える。The reception judging means 9 judges whether or not the data from the monitored station 3 which has transmitted the data request has been normally received by the monitoring station 2. The rewriting means 6 performs the first and second storage tables 4 and 5 based on the judgment result of the reception judgment means 9.
Rewrite the identifier in.
【0020】次に、監視局2によって行われるデータ収
集動作について図6及び図7を参照して説明する。図6
において、まず監視局2は、そのデータ要求順位決定手
段7により第2グループBの中の最初のノードを処理中
ノードbとした後(ステップS1)、第1グループAの
全ての被監視局に対してデータ要求してそれからのデー
タを収集する(ステップS2)。Next, the data collection operation performed by the monitoring station 2 will be described with reference to FIGS. FIG.
First, the monitoring station 2 sets the first node in the second group B to the processing node b by the data request rank determining means 7 (step S1), and then sends it to all the monitored stations in the first group A. Then, a data request is made to collect data from the data request (step S2).
【0021】このステップS2でのデータ収集処理を図
7にサブルーチンにして示す。同図において、監視局2
は、データ要求順位決定手段7により第1グループAの
中の第1順位のノードを処理中ノードaとした後(ステ
ップS11)、この処理中ノードaに対してデータ要求
手段8によってデータ要求する(ステップS12)。そ
して、この処理中ノードaからデータを正常に受信でき
たか否かを受信判断手段9で判断し(ステップS1
3)、正常に受信できた場合はステップS15に進み、
処理中ノードaは第1グループAの中の最後のノードで
あるか否かをデータ要求順位決定手段7によって判断す
る。最後のノードでなければ次のステップS16に進
み、第1グループAの次順位のノードをデータ要求順位
決定手段7により処理中データaとしてから、ステップ
S12に戻り、同じ動作を繰り返す。The data collection processing in step S2 is shown as a subroutine in FIG. In the figure, monitoring station 2
Sets the first-ranked node in the first group A to the processing node a by the data request rank determination means 7 (step S11), and then requests the data from the processing node a by the data request means 8. (Step S12). Then, the reception judging means 9 judges whether or not the data has been normally received from the processing node a (step S1).
3) If the reception was successful, proceed to step S15,
The data requesting node determining unit 7 determines whether the processing node a is the last node in the first group A or not. If it is not the last node, the process proceeds to the next step S16, where the next-ranked node of the first group A is processed data a by the data request rank determining means 7, and returns to step S12 to repeat the same operation.
【0022】一方、図7のステップ13において正常に
受信できなくてタイムアウトとなった場合には、ステッ
プS14に進み、処理中ノードaを第1グループAから
削除して第2グループBに追加する。すなわち、書換手
段6によって第1の記憶テーブル4と第2の記憶テーブ
ル5との間の識別子の書換えを行う。図4及び図5はそ
の書換え動作の模式図で、処理中ノードaの識別子が例
えばnのとき、図4は、この識別子nが削除されてその
記憶該当部分が空きになることを示し、また図5は、空
きになっていた記憶該当部分に識別子nが記憶されるこ
とを示す。On the other hand, if it is determined in step 13 in FIG. 7 that the reception has failed and the timeout has occurred, the process proceeds to step S14, where the node a being processed is deleted from the first group A and added to the second group B. . That is, the identifier between the first storage table 4 and the second storage table 5 is rewritten by the rewriting means 6. 4 and 5 are schematic diagrams of the rewriting operation. When the identifier of the node a being processed is, for example, n, FIG. 4 shows that the identifier n is deleted and the storage corresponding portion becomes empty, and FIG. 5 shows that the identifier n is stored in the empty storage portion.
【0023】第1グループAの最終順位の被監視局3か
らのデータ収集が終了すると、次にグループBの被監視
局3に対する処理を行う。すなわち、図6のステップS
2からステップS3に移行し、データ要求手段8により
処理中データbに対してデータ要求する。そして、この
処理中ノードbからデータを正常に受信できたか否かを
受信判断手段9で判断し(ステップS13)、正常に受
信できなくてタイムアウトになった場合はステップS6
に進み、処理中ノードbは第2グループBの中の最後の
ノードであるか否かをデータ要求順位決定手段7におい
て判断する。最後のノードでなければ次のステップS7
に進み、第2グループBの次順位のノードをデータ要求
順位決定手段7により処理中データbとしてから、ステ
ップS2に戻り、図7に示す処理を再び行う。When the data collection from the monitored station 3 of the last rank of the first group A is completed, the processing for the monitored station 3 of the group B is performed next. That is, step S in FIG.
The process proceeds from step 2 to step S3, and the data requesting unit 8 requests data for the data-in-process b. Then, the reception determining means 9 determines whether or not the data has been normally received from the node b during the processing (step S13).
The data request ranking determining means 7 determines whether the processing node b is the last node in the second group B or not. If it is not the last node, the next step S7
The data request rank determining means 7 determines the next-ranked node of the second group B as the data-in-process b, and returns to step S2 to perform the processing shown in FIG. 7 again.
【0024】一方、図6のステップ4において正常に受
信できた場合には、ステップS5に進み、書換手段6に
よって第2の記憶テーブル5と第1の記憶テーブル4と
の間の識別子の書換えを行い、処理中ノードbを第2グ
ループBから削除して第1グループAに追加する。On the other hand, if it is determined in step 4 of FIG. 6 that the reception was successful, the process proceeds to step S5, where the rewriting means 6 rewrites the identifier between the second storage table 5 and the first storage table 4. Then, the in-process node b is deleted from the second group B and added to the first group A.
【0025】図8に、図6及び図7に示した処理の具体
例をタイミングチャートにして示す。この場合、1つの
監視局2により6つの被監視局3が監視され、これら6
つのノード(被監視局)に識別子(アドレス)として1
〜6の数値がそれぞれ割当てられているものとして、図
8について解説する。FIG. 8 is a timing chart showing a specific example of the processing shown in FIGS. In this case, one monitored station 2 monitors six monitored stations 3, and these six monitored stations 3 are monitored.
One node (monitored station) has an identifier (address) of 1
FIG. 8 will be described assuming that the numerical values of 6 are respectively assigned.
【0026】最初に、第1グループAにはノード1・2
の2つが属し、第2グループBにはノード3・4・5・
6の4つが属しているとすると、第1回目のポーリング
シーケンスSp1では、第1グループAのノード1に対
するデータ要求及びそれからのデータ収集、ノード2に
対するデータ要求及びそれからのデータ収集を順次正常
に行った後、第2グループBの最初のノード3に対して
データ要求したところ、このノード3から正常にデータ
を受信できなくてタイムアウトになったことを示す。First, the first group A includes nodes 1 and 2
And the second group B has nodes 3, 4, 5, and
6 belong to the first polling sequence Sp1, the data request to the node 1 of the first group A and the data collection therefrom, the data request to the node 2 and the data collection therefrom are sequentially and normally performed. After that, when a data request is made to the first node 3 of the second group B, it indicates that data cannot be normally received from this node 3 and a timeout has occurred.
【0027】第2回目のポーリングシーケンスSp2で
は、第1グループAのノード1に対するデータ要求及び
それからのデータ収集、ノード2に対するデータ要求及
びそれからのデータ収集を順次正常に行った後、第2グ
ループBの次のノード4に対してデータ要求したとこ
ろ、このノード4から正常にデータ収集できたので、こ
のノード4を第2グループBから第1グループAへ移動
したことを示す。In the second polling sequence Sp2, the data request to the node 1 of the first group A and the data collection therefrom, the data request to the node 2 and the data collection therefrom are sequentially and normally performed. When the data is requested from the next node 4, the data has been normally collected from this node 4, indicating that the node 4 has been moved from the second group B to the first group A.
【0028】第3回目のポーリングシーケンスSp3で
は、第1グループAのノード1に対するデータ要求及び
それからのデータ収集、ノード2に対するデータ要求及
びそれからのデータ収集、上記のように第1グループA
に移動されたノード4に対するデータ要求及びそれから
のデータ収集を順次正常に行った後、第2グループBの
ノード5に対してデータ要求したところ、このノード5
から正常にデータを受信できなくてタイムアウトになっ
たことを示す。In the third polling sequence Sp3, in the first group A, a data request to the node 1 and data collection therefrom, a data request to the node 2 and data collection therefrom, and as described above, the first group A
After the data request for the node 4 moved to the group 4 and the data collection from the node 4 were sequentially and normally performed, the data request was made to the node 5 of the second group B.
Indicates that timeout has occurred because data could not be received normally from.
【0029】第4回目のポーリングシーケンスSp4で
は、第1グループAのノード1に対するデータ要求及び
それからのデータ収集、ノード2に対するデータ要求及
びそれからのデータ収集、ノード4に対するデータ要求
及びそれからのデータ収集を順次正常に行った後、第2
グループBの最後のノード6に対してデータ要求したと
ころ、このノード6から正常にデータを受信できなくて
タイムアウトになったことを示す。In the fourth polling sequence Sp4, a data request to the node 1 of the first group A and data collection therefrom, a data request to the node 2 and data collection therefrom, a data request to the node 4 and data collection therefrom are performed. After the normal operation in sequence, the second
When a data request is made to the last node 6 of the group B, it indicates that data cannot be normally received from this node 6 and a timeout has occurred.
【0030】第5回目のポーリングシーケンスSp5で
は、第1グループAのノード1に対するデータ要求及び
それからのデータ収集、ノード2に対するデータ要求及
びそれからのデータ収集、ノード4に対するデータ要求
及びそれからのデータ収集を順次正常に行った後、第2
グループBの最初のノード3に対して再びデータ要求し
たところ、このノード3から正常にデータを受信できな
くてタイムアウトになったことを示す。In the fifth polling sequence Sp5, a data request to the node 1 of the first group A and data collection therefrom, a data request to the node 2 and data collection therefrom, a data request to the node 4 and data collection therefrom are performed. After the normal operation in sequence, the second
When a data request is again made to the first node 3 of the group B, it indicates that data cannot be normally received from this node 3 and a timeout has occurred.
【0031】第6回目のポーリングシーケンスSp6で
は、第1グループAのノード1に対するデータ要求及び
それからのデータ収集は正常にできたが、ノード2から
正常にデータを受信できなくてタイムアウトになったの
で、このノード2を第1グループAから第2グループB
へ移動してから、次いでノード4に対するデータ要求及
びそれからのデータ収集を正常に行い、この後、第2グ
ループBのノード5に対してデータ要求したところ、こ
のノード5から正常にデータを受信できなくてタイムア
ウトになったことを示す。In the sixth polling sequence Sp6, the data request to the node 1 of the first group A and the data collection therefrom were normally performed, but the data could not be normally received from the node 2 and a timeout occurred. From the first group A to the second group B
Then, the data request to the node 4 and the data collection therefrom are normally performed. After that, the data request is made to the node 5 of the second group B, and the data can be normally received from the node 5. Indicates that a timeout has occurred.
【0032】第7回目のポーリングシーケンスSp7で
は、第1グループAのノード1に対するデータ要求及び
それからのデータ収集、ノード4に対するデータ要求及
びそれからのデータ収集を順次正常に行った後、第2グ
ループBの最後のノード6に対してデータ要求したとこ
ろ、このノード6から正常にデータを受信できなくてタ
イムアウトになったことを示す。In the seventh polling sequence Sp7, the data request to the node 1 of the first group A and the data collection therefrom, the data request to the node 4 and the data collection therefrom are sequentially and normally performed, and then the second group B This indicates that when a data request was made to the last node 6, data could not be normally received from this node 6 and a timeout occurred.
【0033】[0033]
【発明の効果】以上の説明から明らかなように、本発明
によれば次のような効果がある。 複数の被監視局のうち、データ通信を正常に行える
通信可能な被監視局は第1グループ、バス状ネットワー
クに接続されていない等の理由でデータ通信ができない
通信不能な被監視局は第2グループに分類し、1回のポ
ーリングシーケンス毎に、第1グループに属する全ての
被監視局に対してデータ要求を順次行ってデータを収集
した後、続いて第2グループに属する被監視局の中の1
つの被監視局に対してデータ要求を行い、そして第2グ
ループの中のデータ要求する被監視局をポーリングシー
ケンス毎に順次移行させるので、データ収集の所要時間
を短縮できる。 通信可能な第1グループの全ての被監視局について
は、データ長に関係なく全てデータ収集できるのは勿論
のこと、第2グループの被監視局に対しては、1回のポ
ーリングシーケンスにつき1つの被監視局に対してのみ
データ要求するが、そのデータ要求する被監視局を順次
移行させるので、第2グループの被監視局も正常にデー
タ通信できるようになれば、その被監視局に対するポー
リングの順番が回ってきたときに、これからのデータを
収集できる。 全体として処理が簡単であるとともに、複数の被監
視局のデータを監視局において効率良く収集できる。As apparent from the above description, the present invention has the following effects. Among the plurality of monitored stations, the monitored stations capable of performing normal data communication are the first group, and the non-communicable monitored stations that cannot perform the data communication because they are not connected to the bus network are the second group. After classifying the data into groups and collecting data by sequentially making data requests to all the monitored stations belonging to the first group for each polling sequence, the monitored stations belonging to the second group are then Of 1
Since a data request is made to one monitored station and the monitored stations in the second group that request data are sequentially shifted in each polling sequence, the time required for data collection can be reduced. For all the monitored stations in the first group with which communication is possible, all data can be collected regardless of the data length, and for the monitored stations in the second group, one data is collected per polling sequence. Although the data request is made only to the monitored station, the monitored stations requesting the data are sequentially shifted. If the monitored stations in the second group can also perform data communication normally, polling of the monitored station is performed. When the turn comes, you can collect data from now on. The processing is simple as a whole, and data of a plurality of monitored stations can be efficiently collected at the monitoring station.
【図1】本発明のポーリング式データ収集方式における
監視局の要部の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a main part of a monitoring station in a polling data collection method of the present invention.
【図2】本発明のデータ収集方式が適用される通信系の
ブロック図である。FIG. 2 is a block diagram of a communication system to which the data collection method of the present invention is applied.
【図3】図1中の記憶テーブル内での識別子の記憶態様
を示す模式図である。FIG. 3 is a schematic diagram illustrating a storage mode of an identifier in a storage table in FIG. 1;
【図4】同記憶テーブルにおける識別子の削除の仕方を
示す模式図である。FIG. 4 is a schematic diagram showing how to delete an identifier in the storage table.
【図5】同記憶テーブルにおける識別子の追加の仕方を
示す模式図である。FIG. 5 is a schematic diagram showing how to add an identifier in the storage table.
【図6】監視局によるデータ収集動作の流れを示すフロ
ーチャートである。FIG. 6 is a flowchart showing a flow of a data collection operation by the monitoring station.
【図7】図6中に示した第1グループデータ収集処理を
サブルーチンにして具体的に示すフローチャートであ
る。7 is a flowchart specifically showing a first group data collection process shown in FIG. 6 as a subroutine.
【図8】図6及び図7に示した処理の具体例を図解した
タイミングチャートである。FIG. 8 is a timing chart illustrating a specific example of the processing shown in FIGS. 6 and 7;
1 バス状ネットワーク 2 監視局 3 被監視局 4 第1の記憶テーブル 5 第2の記憶テーブル 6 書換手段 7 データ要求順位決定手段 8 データ要求手段 9 受信判断手段 REFERENCE SIGNS LIST 1 bus-like network 2 monitoring station 3 monitored station 4 first storage table 5 second storage table 6 rewriting means 7 data request order determination means 8 data request means 9 reception determination means
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04Q 9/00 311 G06F 15/74 320B ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification number Agency reference number FI Technical display location H04Q 9/00 311 G06F 15/74 320B
Claims (1)
ワークで接続され、監視局から被監視局へポーリングし
て被監視局からのデータをバス状ネットワークを介して
監視局で収集するポーリング式データ収集方式におい
て、前記監視局に、 データ通信可能な被監視局の識別子を第1グループとし
て記憶するための書換え可能な第1の記憶テーブルと、 データ通信不能な被監視局の識別子を第2グループとし
て記憶するための書換え可能な第2の記憶テーブルと、 これら第1及び第2の記憶テーブルに記憶された識別子
を参照し、1回のポーリングシーケンスにおいて、前記
第1グループに属する全ての被監視局と、前記第2グル
ープの被監視局の中から順次選択した1つの被監視局と
に対してデータ要求を送出するデータ要求手段と、 前記第1及び第2の記憶テーブルに記憶されている識別
子に基づいて、前記データ要求手段でデータ要求を送出
すべき被監視局の順位を各ポーリングシーケンス毎に決
定し、第2グループ中から選択した1つの被監視局の順
位は、第1グループの最後の被監視局の次とするデータ
要求順位決定手段と、 データ要求を送出した被監視局からデータが正常に受信
できたか否かを判断する受信判断手段と、 その判断結果に基づいて、第1グループの被監視局の中
で正常に受信できなかった被監視局については、その識
別子を第2の記憶テーブルに書き換え、第2グループの
被監視局で正常に受信できた被監視局については、その
識別子を第1の記憶テーブルに書き換える書換手段と、 を備えたことを特徴とするポーリング式データ収集方
式。A monitoring station and a plurality of monitored stations are connected by a bus-like network, and polling is performed by the monitoring station to the monitored station and data from the monitored station is collected by the monitoring station via the bus-like network. In the formula data collection method, a rewritable first storage table for storing an identifier of a monitored station capable of data communication as a first group in the monitoring station, and an identifier of a monitored station unable to communicate data in a first group. With reference to the rewritable second storage table for storing as two groups, and the identifiers stored in the first and second storage tables, all the data belonging to the first group are referred to in one polling sequence. Data request means for sending a data request to a monitored station and one monitored station sequentially selected from the monitored stations in the second group; Based on the identifiers stored in the first and second storage tables, the data requesting means determines the order of monitored stations to which a data request should be sent for each polling sequence, and selects from the second group. The order of one monitored station is determined by the data request ranking determining means next to the last monitored station in the first group, and whether or not data has been normally received from the monitored station that has sent the data request. The receiving determination means, and, based on the determination result, for the monitored station of the first group that could not be received normally, the identifier is rewritten into the second storage table, and the monitored station of the second group is rewritten. Rewriting means for rewriting an identifier of a monitored station that has been normally received by the monitoring station into a first storage table; and a polling data collection method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5346045A JP2713133B2 (en) | 1993-01-21 | 1993-12-24 | Polling data collection method |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP837193 | 1993-01-21 | ||
| JP5-8371 | 1993-01-21 | ||
| JP5346045A JP2713133B2 (en) | 1993-01-21 | 1993-12-24 | Polling data collection method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06276203A JPH06276203A (en) | 1994-09-30 |
| JP2713133B2 true JP2713133B2 (en) | 1998-02-16 |
Family
ID=26342882
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5346045A Expired - Lifetime JP2713133B2 (en) | 1993-01-21 | 1993-12-24 | Polling data collection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2713133B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2770809B2 (en) * | 1995-12-22 | 1998-07-02 | 日本電気株式会社 | Polling data collection method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04248726A (en) * | 1991-02-05 | 1992-09-04 | Nec Corp | Polling system |
-
1993
- 1993-12-24 JP JP5346045A patent/JP2713133B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06276203A (en) | 1994-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3516344B2 (en) | Multiple data processing method for distributed processing system | |
| EP0777948B1 (en) | Duplicate message detection method and apparatus | |
| US5802303A (en) | Monitor data collecting method for parallel computer system | |
| US5644754A (en) | Bus controller and electronic device in a system in which several electronic devices are networked | |
| JPH0512161A (en) | Method of detecting message identifier in data transmission network of elevator system | |
| JPH08123763A (en) | Memory assigning system for distributed processing system | |
| KR100257413B1 (en) | Address management for remote terminals in digital loop transmission systems | |
| US5463763A (en) | Apparatus and method for supervising multiprocessor communications using messages transmitted between processors in a circular fashion | |
| JPH10307779A (en) | State information management method and communication system | |
| US6912712B1 (en) | Real time control system for multitasking digital signal processor using ready queue | |
| JPH07183905A (en) | Remote monitor system | |
| JP2713133B2 (en) | Polling data collection method | |
| CA2285802A1 (en) | A method and apparatus for dynamically determining an address uniquely identifying a hardware component on a common bus | |
| JP2003008600A (en) | Data collection system and method | |
| CN113949628B (en) | Device automatic adding method and system | |
| JP2770809B2 (en) | Polling data collection method | |
| CN114465984B (en) | Address allocation method, system, device and computer readable storage medium based on transmission path | |
| JP3246409B2 (en) | Fault monitoring method | |
| JP4619726B2 (en) | Method for requesting information relating to network subscriber station and network subscriber station performing the method | |
| EP0609714A1 (en) | Polling type data collection system | |
| JP2529775B2 (en) | Transmission line selection method | |
| JPH08181705A (en) | LAN broadcast frame processing method and apparatus | |
| JPH07222267A (en) | State information collecting system and state managing system | |
| JPH0927989A (en) | Polling system | |
| CN119211371A (en) | A communication method and device based on MCTP |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071031 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081031 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091031 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091031 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101031 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111031 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121031 Year of fee payment: 15 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131031 Year of fee payment: 16 |
|
| EXPY | Cancellation because of completion of term |