JPH0832604A - Polling method for multi-drop connection data communication system - Google Patents

Polling method for multi-drop connection data communication system

Info

Publication number
JPH0832604A
JPH0832604A JP15972494A JP15972494A JPH0832604A JP H0832604 A JPH0832604 A JP H0832604A JP 15972494 A JP15972494 A JP 15972494A JP 15972494 A JP15972494 A JP 15972494A JP H0832604 A JPH0832604 A JP H0832604A
Authority
JP
Japan
Prior art keywords
data
station
master station
slave
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.)
Pending
Application number
JP15972494A
Other languages
Japanese (ja)
Inventor
Ryoichi Okamoto
良一 岡本
Yukio Makita
幸雄 槇田
Kazuhiko Sugino
一彦 杉野
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP15972494A priority Critical patent/JPH0832604A/en
Publication of JPH0832604A publication Critical patent/JPH0832604A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To permit a master station only to once transmit a synchronizing signal and a command so as to collect data of all slave stations by permitting the master station to put all ID of the slave stations whose data are to be collected in the command transmitted by polling in the order of data collection. CONSTITUTION:A data communication system consists of the master station M and the plural slave stations S1-S3, which are connected to a common communication line in a multi-drop form, and the master station M collects data of all the slave stations S1-S3 by polling. A period from time when the master station M once transmits at least a data communication request CMD to all the slave stations S1-S3 to time when the respective slave stations S1-S3 sequentially finish transmitting at least self station data D1-D3 consisting of the generated data of the self stations and station numbers is set to be the one cycle of data collection. Since data for n-stations can be collected by one synchronizing signal SYN and one command CMD, communication time required for collecting data for n-stations can be shortened.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば複数の自動販売
機の1つを親局(メイン局ともいう)、その他を子局と
して、この各局を専用の通信線にマルチドロップ状に接
続し、この各局の発生する売上等のデータを親局が子局
にポーリングを行って収集するデータ通信システムにお
いて、特にデータ収集時間を短縮し得るようにしたポー
リング方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention uses, for example, one of a plurality of vending machines as a master station (also called a main station) and the other as slave stations, and connects these stations to a dedicated communication line in a multi-drop manner. In a data communication system in which a master station polls a slave station for data such as sales generated by each station, the present invention relates to a polling method capable of shortening the data collection time.

【0002】なお、以下各図において同一の符号は同一
もしくは相当部分を示す。
In the following drawings, the same reference numerals indicate the same or corresponding parts.

【0003】[0003]

【従来の技術】図6はこの種のマルチドロップ接続のデ
ータ通信システムの構成例を示す。このシステムは各局
に共通の専用通信線Lにシステム全体を管理する親局M
と、子局S(S1,S2,S3・・・)が接続されてい
る。図5は図6のようなデータ通信システムでの従来の
ポーリングにおいて、親局Mが送信するコマンドCMD
の構成例を示す。図5において、1はこの図5の信号が
ポーリングのコマンドCMDであることを示す接頭デー
タ(CMDデータ)、2は送信先の子局Sを指定するI
D、3はこのポーリングデータのブロック数である。
2. Description of the Related Art FIG. 6 shows an example of the configuration of a data communication system of this kind of multi-drop connection. This system is a master station M that manages the entire system on a dedicated communication line L common to each station.
And the slave stations S (S1, S2, S3 ...) Are connected. FIG. 5 shows a command CMD transmitted by the master station M in the conventional polling in the data communication system as shown in FIG.
A configuration example of is shown. In FIG. 5, 1 is prefix data (CMD data) indicating that the signal of FIG. 5 is a polling command CMD, and 2 is I for designating a slave station S of a transmission destination.
D and 3 are the number of blocks of this polling data.

【0004】図4は図6のシステムにおける従来のポー
リングの交信シーケンスを示す。即ち、親局Mが送信す
る実線矢印の同期信号(SYN信号)により、全ての子
局S1〜S3が受信待ちとなり、次に親局Mが送信する
点線矢印のコマンド(CMD)を全ての子局Sが受信す
る。子局は図5に示したようなコマンドCMDの内容を
チェックし、送信先ID2が自局宛てであれば、一点鎖
線矢印のように親局Mへデータを送信する。自局宛てで
なければデータを送信せず、次の同期信号待ちとなる。
FIG. 4 shows a conventional polling communication sequence in the system of FIG. That is, all the slave stations S1 to S3 wait for reception by the synchronization signal (SYN signal) of the solid arrow transmitted by the master station M, and the command (CMD) of the dotted arrow transmitted by the master station M next is transmitted to all the slave stations. Station S receives. The slave station checks the contents of the command CMD as shown in FIG. 5, and if the transmission destination ID2 is addressed to itself, transmits the data to the master station M as indicated by the one-dot chain line arrow. If it is not addressed to itself, it does not transmit data and waits for the next synchronization signal.

【0005】上記の一連の通信で1局分のデータ通信が
終了し、子局がn局ある場合は、n局数分この通信が繰
り返されることになる。
When the data communication for one station is completed by the above series of communications and there are n slave stations, this communication is repeated for the number of n stations.

【0006】[0006]

【発明が解決しようとする課題】しかしながら上述のよ
うなデータ収集方法では、親局が子局1局分のデータを
収集するのに、同期信号とコマンドを、そのつど発行し
収集している為に、システム全体のデータ収集を行うの
に時間がかかりすぎるという問題があった。そこで本発
明は、この問題を解消できるマルチドロップ接続データ
通信システムのポーリング方法を提供することを課題と
する。
However, in the data collecting method as described above, the master station collects the data for one slave station by issuing the sync signal and the command each time and collecting them. In addition, there was a problem that it took too much time to collect data for the entire system. Therefore, it is an object of the present invention to provide a polling method for a multi-drop connection data communication system that can solve this problem.

【0007】[0007]

【課題を解決するための手段】前記の課題を解決するた
めに請求項1のポーリング方法では、共通の通信線(専
用通信線Lなど)にマルチドロップ状に接続された親局
(Mなど)と複数の子局(S1〜S3など)からなり、
親局がポーリングにより全子局のデータを収集するデー
タ通信システムにおいて、親局が少なくともデータ送信
要求(コマンドCMDなど)を全子局に向けて一度送信
したのち、これに応じて各子局が順番に、少なくとも自
局の発生データと局番からなる自局データ(D1〜D3
など)を親局に送信し終るまでを、データ収集の1サイ
クルとする。
In order to solve the above-mentioned problems, in the polling method according to claim 1, a master station (such as M) connected in a multi-drop manner to a common communication line (such as a dedicated communication line L). And multiple slave stations (S1 to S3, etc.),
In a data communication system in which the master station collects data of all slave stations by polling, after the master station at least once transmits a data transmission request (command CMD, etc.) to all slave stations, each slave station responds to the request. In order, the local station data (D1 to D3) including at least the local station generated data and station number
Etc.) is sent to the master station until the end of one cycle of data collection.

【0008】また、請求項2のポーリング方法では、請
求項1に記載のポーリング方法において、子局に親局へ
のデータ送信の前記順番を予め設定するようにする。ま
た、請求項3のポーリング方法では、請求項1に記載の
ポーリング方法において、親局が送信する前記データ送
信要求に子局のデータ送信の前記順番を(データ取得対
象の子局ID2−1,〜,2−nなどとして)附加する
ようにする。
Further, in the polling method according to the second aspect, in the polling method according to the first aspect, the order of data transmission to the master station is preset in the slave station. Further, in the polling method according to claim 3, in the polling method according to claim 1, the order of data transmission of the slave station is added to the data transmission request transmitted by the master station (slave station ID 2-1 of data acquisition target). ~, 2-n, etc.).

【0009】また、請求項4のポーリング方法では、請
求項1ないし3のいずれかに記載のポーリング方法にお
いて、子局は親局へ送信する前記自局データを当該のデ
ータ収集サイクル内でデータ未送信の他の子局にも送信
するものであるようにする。
Further, in the polling method according to claim 4, in the polling method according to any one of claims 1 to 3, the slave station transmits the self station data to be transmitted to the master station in the data collection cycle. It should be transmitted to other slave stations of transmission.

【0010】[0010]

【作用】子局がn局あるとき、親局が従来はn局回の同
期信号及びコマンドを発行してデータ収集していたの
を、本発明では1回の同期信号及びコマンドで、n局分
のデータを収集できるようにして、n局分のデータ収集
に要する通信時間を短縮する。
In the present invention, when there are n slave stations, the master station conventionally issues n sync signals and commands to collect data. Minute data can be collected to shorten the communication time required to collect data for n stations.

【0011】[0011]

【実施例】以下図1ないし図3に基づいて本発明の実施
例を説明する。図3は本発明のポーリングにおいて親局
が送信するコマンドCMDの構成例を示す。同図は図5
に対し子局1局のみを指定していた送信先ID2が、全
ての子局をその送信順に指定するID2−1,〜,2−
nに置換わり、かつデータを取得したい子局の数4(こ
の例では値“n”)が附加されている。
Embodiments of the present invention will be described below with reference to FIGS. FIG. 3 shows a configuration example of the command CMD transmitted by the master station in the polling of the present invention. The same figure is shown in FIG.
On the other hand, the transmission destination ID2 that has designated only one slave station is ID2-1, ..., 2- that designates all slave stations in the transmission order.
The number 4 (in this example, the value “n”) of the slave stations that are to be replaced with n and want to acquire data is added.

【0012】但し、各子局に予め送信の順番を設定する
ようにすれば、CMDデータ1の意味を“全子局へのデ
ータ送信要求”に置換えることで、各子局ID2−1,
〜,2−nを省略することができる。図1は図6のデー
タ通信システムにおける本発明のポーリングのタイムチ
ャートを示し、図2は同じくポーリングの交信シーケン
スを示す。次にこの図1,図2に従って本発明のポーリ
ングの流れを説明する。先ず従来と同様に、親局Mは同
期信号(SYN)を送信し、全ての子局S(S1〜S
3)を親局Mに振り向かした後、図3のコマンドCMD
を送信する。全ての子局S1〜S3はこのコマンドCM
Dを受信して、自局のメモリ内に記憶しておき、親局M
にデータを送信する順番を認識する。
However, if the order of transmission is set in advance for each slave station, the meaning of the CMD data 1 is replaced with "request for data transmission to all slave stations", so that each slave station ID 2-1 and
~, 2-n can be omitted. FIG. 1 shows a polling time chart of the present invention in the data communication system of FIG. 6, and FIG. 2 also shows a polling communication sequence. Next, the flow of polling according to the present invention will be described with reference to FIGS. First, as in the conventional case, the master station M transmits a synchronization signal (SYN), and all the slave stations S (S1 to S) are transmitted.
3) is turned to the master station M, and then the command CMD in FIG.
Send All slave stations S1 to S3 use this command CM
D is received and stored in the memory of its own station, and the master station M
Recognize the order of sending data to.

【0013】本例では、親局Mに送信する順番が下記の
ような場合で説明する。 1番目にデータを取得する子局ID(図3の2−1):
子局S1 2番目にデータを取得する子局ID(図3の2−2):
子局S2 3番目にデータを取得する子局ID(図3の2−n,但
しn=3):子局S3 コマンドCMDの内容の“1番目にデータを取得する子
局ID”に該当する子局S1は、コマンドCMDの受信
が終了次第、自局のデータD1を親局M及び子局S2,
S3に対して送信する。そしてこの子局S1は、次の同
期信号SYN待ちとなる。
In this example, the case where the order of transmission to the master station M is as follows will be described. Slave station ID that first obtains data (2-1 in FIG. 3):
Slave station S1 Slave station ID that obtains the second data (2-2 in FIG. 3):
Slave station S2 Slave station ID for third data acquisition (2-n in FIG. 3, where n = 3): Slave station S3 Corresponds to “slave station ID for first data acquisition” of the command CMD. Upon reception of the command CMD, the slave station S1 transfers its own data D1 to the master station M and the slave station S2.
Send to S3. Then, the slave station S1 waits for the next synchronization signal SYN.

【0014】コマンドCMDの内容の“2番目にデータ
を取得する子局ID”に該当する子局S2は、データD
1の受信が終了次第、自局のデータD2を親局M及び子
局S3に対して送信する。そしてこの子局S2は、次の
同期信号SYN待ちとなる。コマンドCMDの内容の
“3番目にデータを取得する子局ID”に該当する子局
S3は、データD2の受信が終了次第、自局のデータD
3を親局Mに送信する。そしてこの子局S3は、次の同
期信号SYN待ちとなる。
The slave station S2 corresponding to the "second slave station ID for acquiring data" of the contents of the command CMD is the data D
As soon as the reception of 1 is completed, the data D2 of its own station is transmitted to the master station M and the slave station S3. Then, the slave station S2 waits for the next synchronization signal SYN. The slave station S3 corresponding to the “third slave station ID for acquiring data” in the content of the command CMD receives the data D of its own station as soon as the reception of the data D2 is completed.
3 is transmitted to the master station M. Then, the slave station S3 waits for the next synchronization signal SYN.

【0015】親局Mは子局S3からのデータD3の受信
を終了すると、一連のポーリング(つまりポーリングの
1サイクル)が終了したと認識して、次サイクルのポー
リングを行い、以上のような流れを繰り返す。
When the master station M finishes receiving the data D3 from the slave station S3, it recognizes that a series of polling (that is, one polling cycle) is finished and performs polling for the next cycle. repeat.

【0016】[0016]

【発明の効果】本発明によれば、親局がポーリングで送
信するコマンドCMD内にデータ収集を行いたい子局の
IDの全てを、データ収集の順番に入れるようにしたの
で、親局は1回の同期信号及びコマンドを送信するのみ
で全ての子局のデータが収集できる。
According to the present invention, since all the IDs of the slave stations for which data collection is desired are put in the command CMD transmitted by the master station in polling, in the order of data collection, the master station is The data of all the slave stations can be collected only by transmitting the synchronization signal and the command for the number of times.

【0017】このように本発明を用いれば、最短の時間
でデータ収集ができるという効果が得られる。
As described above, according to the present invention, the effect that data can be collected in the shortest time can be obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例としてのポーリングのタイム
チャート
FIG. 1 is a time chart of polling according to an embodiment of the present invention.

【図2】図1に対応する交信シーケンスを示す図FIG. 2 is a diagram showing a communication sequence corresponding to FIG.

【図3】本発明の実施例としてのポーリングのコマンド
の構成図
FIG. 3 is a block diagram of a polling command as an embodiment of the present invention.

【図4】図2に対応する従来の交信シーケンスを示す図FIG. 4 is a diagram showing a conventional communication sequence corresponding to FIG.

【図5】従来のポーリングのコマンドの構成例を示す図FIG. 5 is a diagram showing a configuration example of a conventional polling command.

【図6】マルチドロップ接続データ通信システムの構成
例を示す図
FIG. 6 is a diagram showing a configuration example of a multi-drop connection data communication system.

【符号の説明】[Explanation of symbols]

M 親局 S(S1〜S3) 子局 L 専用通信線 SYN 同期信号 CMD コマンド D1 子局S1の送信データ D2 子局S2の送信データ D3 子局S3の送信データ 1 CMDデータ 2−1 1番目にデータを取得する局ID 2−2 2番目にデータを取得する局ID 2−n n番目にデータを取得する局ID 3 ポーリングデータブロック数 4 データを取得したい局数 M Master station S (S1 to S3) Slave station L Dedicated communication line SYN Sync signal CMD command D1 Transmit data of slave station S1 D2 Transmit data of slave station S2 D3 Transmit data of slave station 1 CMD data 2-1 First Station ID that acquires data 2-2 Station ID that acquires data second 2-n Station ID that acquires data second n 3 Number of polling data blocks 4 Number of stations that want to acquire data

───────────────────────────────────────────────────── フロントページの続き (72)発明者 杉野 一彦 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuhiko Sugino 1-1 Tanabe Nitta, Kawasaki-ku, Kawasaki-shi, Kanagawa Fuji Electric Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】共通の通信線にマルチドロップ状に接続さ
れた親局と複数の子局からなり、親局がポーリングによ
り全子局のデータを収集するデータ通信システムにおい
て、 親局が少なくともデータ送信要求を全子局に向けて一度
送信したのち、これに応じて各子局が順番に、少なくと
も自局の発生データと局番からなる自局データを親局に
送信し終るまでを、データ収集の1サイクルとしたこと
を特徴とするマルチドロップ接続データ通信システムの
ポーリング方法。
1. A data communication system comprising a master station and a plurality of slave stations connected to a common communication line in a multi-drop manner, wherein the master station collects data of all slave stations by polling. After sending a transmission request to all slave stations once, each slave station collects data in response to this, at least until it finishes transmitting its own station data consisting of its own station data and station number to the master station. The method for polling a multi-drop connection data communication system is characterized in that
【請求項2】請求項1に記載のポーリング方法におい
て、 子局に親局へのデータ送信の前記順番を予め設定するよ
うにしたことを特徴とするマルチドロップ接続データ通
信システムのポーリング方法。
2. The polling method according to claim 1, wherein the order of data transmission to the master station is preset in the slave station.
【請求項3】請求項1に記載のポーリング方法におい
て、 親局が送信する前記データ送信要求に子局のデータ送信
の前記順番を附加するようにしたことを特徴とするマル
チドロップ接続データ通信システムのポーリング方法。
3. The multi-drop connection data communication system according to claim 1, wherein the data transmission request transmitted from the master station is added with the order of data transmission from the slave station. Polling method.
【請求項4】請求項1ないし3のいずれかに記載のポー
リング方法において、 子局は親局へ送信する前記自局データを当該のデータ収
集サイクル内でデータ未送信の他の子局にも送信するも
のであることを特徴とするマルチドロップ接続データ通
信システムのポーリング方法。
4. The polling method according to claim 1, wherein the slave station transmits the local station data to be transmitted to the master station to other slave stations which have not yet transmitted the data within the relevant data collection cycle. A polling method for a multi-drop connection data communication system, characterized in that the data is transmitted.
JP15972494A 1994-07-12 1994-07-12 Polling method for multi-drop connection data communication system Pending JPH0832604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15972494A JPH0832604A (en) 1994-07-12 1994-07-12 Polling method for multi-drop connection data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15972494A JPH0832604A (en) 1994-07-12 1994-07-12 Polling method for multi-drop connection data communication system

Publications (1)

Publication Number Publication Date
JPH0832604A true JPH0832604A (en) 1996-02-02

Family

ID=15699898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15972494A Pending JPH0832604A (en) 1994-07-12 1994-07-12 Polling method for multi-drop connection data communication system

Country Status (1)

Country Link
JP (1) JPH0832604A (en)

Similar Documents

Publication Publication Date Title
JPH0824298B2 (en) CSMA communication system
JPS634379B2 (en)
CN100452685C (en) Internal signaling method to support clock synchronization of nodes connected via a wireless local area network
JPH0832604A (en) Polling method for multi-drop connection data communication system
JPS61100046A (en) Loop transmission method
JPS5941337B2 (en) Synchronous line connection method
JPH0644763B2 (en) Data transfer method
JP3184497B2 (en) Asynchronous data communication method, asynchronous data communication device, and asynchronous data communication system
JPH0730576A (en) Transmission system
JP3269530B2 (en) Serial communication system and serial communication method
JPS6384228A (en) Data transmission system between master station and plural slave stations
JPS589620B2 (en) Peer communication system
JP2754818B2 (en) Collection data transfer method
JPS6384334A (en) Data transmission system
JPS62132444A (en) Radio communication system provided with centralized control function
CN114650509A (en) Method, device and system for bidirectional communication of Bluetooth broadcast
JPS6358498B2 (en)
JPS5817750A (en) Data collection system
JP2750934B2 (en) Communication method in multi-connection
JP2725713B2 (en) Signal transmission method
JPH0748733B2 (en) Selective broadcast communication method
JP3178316B2 (en) Communication control system
JPH0380735A (en) Communication control system
JPH08106571A (en) Broadcast method for radio type data collection system
JPS63135037A (en) Establishing method for data link