[go: up one dir, main page]

JPH09130382A - Polling communication method - Google Patents

Polling communication method

Info

Publication number
JPH09130382A
JPH09130382A JP16347896A JP16347896A JPH09130382A JP H09130382 A JPH09130382 A JP H09130382A JP 16347896 A JP16347896 A JP 16347896A JP 16347896 A JP16347896 A JP 16347896A JP H09130382 A JPH09130382 A JP H09130382A
Authority
JP
Japan
Prior art keywords
data
slave
master
transmitted
reception
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.)
Granted
Application number
JP16347896A
Other languages
Japanese (ja)
Other versions
JP3280852B2 (en
Inventor
Shoei Ri
鍾 瓔 李
Shinei Ryo
眞 榮 梁
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.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics Co 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 Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Publication of JPH09130382A publication Critical patent/JPH09130382A/en
Application granted granted Critical
Publication of JP3280852B2 publication Critical patent/JP3280852B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • H04L7/041Speed or phase control by synchronisation signals using special codes as synchronising signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce a polling wait time by placing priority depending on kinds of each slave and data and causing contention through different delay times. SOLUTION: In the case of sending data from a slave 60 to a master 50, the master 50 sends a data packet C including information to inform start of contention to the slave 60. The slave 60 having data to be sent to the master 50 monitors its own reception port while awaiting a transmission opportunity for a prescribed delay time depending on the priority generated in itself at random. Then only a slave having no data to receive its own reception port generates at random its own preamble data D for the delay time generated in itself at random and sends the data to the master 50 and the master 50 sends the same preamble data E. The slave 60 compares the received preamble data E with the preamble data D sent by itself and sends a data packet F going to be sent when they are identical to each other.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は通信方法に係り、特
にポーリング時間を減らせるポーリング通信方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication method, and more particularly to a polling communication method capable of reducing polling time.

【0002】[0002]

【従来の技術】従来はポーリングを要求する1つに機器
(以下、マスター)とポーリングに応答する多数に機器
(以下、スレーブ)間に通信を行うために主に個別ポー
リング方式が使用された。即ち、各スレーブは自分自信
の固有アドレス番号を有し、決められたプロトコルによ
りマスターから自分自信のアドレスデータが受信される
場合、データの送受信権限を有する。マスターは、図1
に示されたように、決められた順序の通り各スレーブと
順次にポーリングを行う。図1において、M はマスタ
ー、Snはn 番目のスレーブを示す。T はマスターが1つ
のスレーブをポーリングするのにかかる時間を示す。
2. Description of the Related Art Conventionally, an individual polling method has been mainly used to communicate between one device (hereinafter, master) that requests polling and a large number of devices (hereinafter, slaves) that respond to polling. That is, each slave has its own unique address number, and has the right to transmit / receive data when its own address data is received from the master according to a predetermined protocol. Master is Figure 1
As shown in, polling is sequentially performed with each slave in the determined order. In FIG. 1, M is the master and Sn is the nth slave. T indicates the time it takes for the master to poll one slave.

【0003】このような個別ポーリング通信方式でマス
ターはポーリングしようとするスレーブのアドレスを送
信し、各スレーブはこれを受信して自分のアドレスが受
信された場合のみデータを受信しうる送信権限を与えら
れる。この際、1つのマスターに連結されているスレー
ブの個数が多い場合には全体ポーリング時間も増加して
データ伝送時間が増加される。またポーリングを行う通
信機器の個数がプログラム的に固定されていて柔軟性と
拡張性が足りなく、各スレーブでは送信しようとするデ
ータがない場合にもマスターのポーリング信号に応答す
べきなので、データ伝送路上には多くのポーリング信号
と応答信号が存在することにより他の情報チャンネルに
対するノイズ源が増加される短所がある。
In such an individual polling communication method, the master transmits the address of the slave to be polled, and each slave receives the address and gives the transmission right to receive the data only when its own address is received. To be At this time, when the number of slaves connected to one master is large, the total polling time also increases and the data transmission time increases. In addition, since the number of communication devices that perform polling is fixed programmatically and lacks flexibility and expandability, each slave should respond to the master polling signal even when there is no data to send, so data transmission The presence of many polling signals and response signals on the road has a disadvantage of increasing noise sources for other information channels.

【0004】[0004]

【発明が解決しょうとする課題】本発明の目的は通信線
路上のノイズ源の発生を減らし、通信待機時間が短く、
柔軟性と拡張性の優秀であるポーリング通信方法を提供
することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to reduce the generation of noise sources on a communication line and shorten the communication standby time.
It is to provide a polling communication method which is excellent in flexibility and expandability.

【0005】[0005]

【発明を解決するための手段】前述した本発明の目的を
達成するために少なくとも1つ以上のマスターと多数の
スレーブ間にポーリング通信を行うためのポーリング通
信方法において、前記マスターが競合のスタートを知ら
せる情報を含むデータパケットを前記多数のスレーブに
伝送する第1段階と、前記スレーブは送信しようとする
データがある時、前記競合のスタートを知らせる情報に
従って自ら無作為で与えられた優先順位による所定の遅
延時間の間他のスレーブ等から受信されるデータがなけ
れば自分のプリアンブルデータを伝送する第2段階と、
前記マスターが前記プリアンブルデータを受信し、これ
を再伝送する第3段階と、前記スレーブは自分の伝送し
たプリアンブルデータと受信されたプリアンブルデータ
とを比較して同一であると送信しようとするデータパケ
ットを前記マスターに伝送する第4段階とを含むことを
特徴とする。
In order to achieve the above-mentioned object of the present invention, in a polling communication method for performing polling communication between at least one master and a large number of slaves, the master starts a conflict. The first step of transmitting a data packet including information to notify the plurality of slaves, and when the slave has data to be transmitted, the slave randomly determines a predetermined priority according to the information to notify the start of the conflict. If there is no data received from other slaves during the delay time of, the second stage of transmitting its own preamble data,
The third step in which the master receives the preamble data and retransmits the preamble data, and the slave compares the preamble data transmitted by itself with the received preamble data and tries to transmit the same data packet. Is transmitted to the master.

【0006】[0006]

【発明の実施の形態】図2はマスターと各スレーブの送
受信回路を説明するための概略図である。図2におい
て、部材番号10はマイクロプロセッサ、20は変復調
部、30は送信周波数設定部、40は受信周波数設定部
を各々示す。マスターとスレーブが送受信する周波数が
相異なってマスターが送信するデータはスレーブのみ受
信でき、スレーブが送信するデータはマスターのみ受信
しうる半二重通信方式に例を挙げて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 is a schematic diagram for explaining a transmitting / receiving circuit of a master and each slave. In FIG. 2, member number 10 is a microprocessor, 20 is a modulation / demodulation unit, 30 is a transmission frequency setting unit, and 40 is a reception frequency setting unit. A half-duplex communication system in which data transmitted by the master can be received only by the slave and data transmitted by the slave can be received only by the master because the frequencies transmitted and received by the master and the slave are different from each other will be described as an example.

【0007】マイクロプロセッサ10が送信しようとす
るデータは送信ポートTXを通して変復調部20に入力さ
れ、変復調部20は送信周波数設定部30により設定さ
れた送信周波数でこのデータを変調した後伝送路上に出
力する。一方、他の通信機器から伝送路を通して入力さ
れるデータは変復調部20に入力され、変復調部20は
入力されたデータを受信周波数設定部40により設定さ
れた受信周波数に復調し、復調されたデータをマイクロ
プロセッサ10の受信ポートRXに出力する。
Data to be transmitted by the microprocessor 10 is input to the modulation / demodulation unit 20 through the transmission port TX, and the modulation / demodulation unit 20 modulates this data at the transmission frequency set by the transmission frequency setting unit 30 and then outputs it on the transmission line. To do. On the other hand, data input from another communication device through the transmission path is input to the modulation / demodulation unit 20, and the modulation / demodulation unit 20 demodulates the input data to the reception frequency set by the reception frequency setting unit 40 and demodulated data. Is output to the reception port RX of the microprocessor 10.

【0008】マスターとスレーブは両方このような送受
信回路を有するが、マスターの送信周波数はスレーブの
受信周波数として設定され、マスターの受信周波数はス
レーブの送信周波数として設定されるべきである。この
際、変復調部20はASK (振幅シフトキーイング)また
はFSK (周波数シフトキーイング)モデムを使用して構
成しうる。ところが、マスターとスレーブが遠く離れて
いる時、ASK モデムを利用する場合には伝送を成功させ
るためにASK 変調信号の大きさを大きく設定すべきであ
る。このように伝送する信号の大きさが大きくなると、
入力フィルターでは所望しない周波数帯域のノイズの充
分な除去ができなくなる。結局2つの相異なる周波数を
使用してASK モデムを利用する場合1つの周波数を使用
することと同一の現象が現れる。従って、FSK モデムを
利用すれば、ASK モデムと異なってマスターとスレーブ
が遠く離れている場合にも、伝送信号の大きさを大きく
設定する必要はなくノイズにさらに強くなる。
Both the master and the slave have such a transceiver circuit, but the transmission frequency of the master should be set as the reception frequency of the slave, and the reception frequency of the master should be set as the transmission frequency of the slave. At this time, the modulation / demodulation unit 20 may be configured using an ASK (amplitude shift keying) or FSK (frequency shift keying) modem. However, when the master and slave are far apart, when using the ASK modem, the size of the ASK modulated signal should be set large in order to make the transmission successful. When the size of the transmitted signal increases,
The input filter cannot sufficiently remove noise in an undesired frequency band. After all, when using an ASK modem using two different frequencies, the same phenomenon as using one frequency appears. Therefore, if the FSK modem is used, unlike the ASK modem, even when the master and the slave are far apart, it is not necessary to set the transmission signal size to be large, and the FSK modem is more resistant to noise.

【0009】図3は本発明の実施例によるポーリング通
信方法を図式的に説明するための図面であり、図4はマ
スターとスレーブ間に送受信されるデータの波形図であ
る。まず、マスター50からスレーブ60にデータ送信
する方法を図3及び図4を参照して説明する。マスター
50が送信するデータがある場合、マスター50はデー
タパケットAをスレーブ60に伝送する。この際、デー
タパケットA は少なくともマスターの送信データである
ことを知らせる情報と伝送しようとするスレーブの固有
アドレスを含む(1)。
FIG. 3 is a diagram for schematically explaining a polling communication method according to an embodiment of the present invention, and FIG. 4 is a waveform diagram of data transmitted and received between a master and a slave. First, a method of transmitting data from the master 50 to the slave 60 will be described with reference to FIGS. 3 and 4. When there is data to be transmitted by the master 50, the master 50 transmits the data packet A to the slave 60. At this time, the data packet A includes at least information notifying that it is the transmission data of the master and the unique address of the slave to be transmitted (1).

【0010】スレーブ60の中受信されたアドレスが自
分の固有アドレスに該当するスレーブは正常受信の場合
には所定の時間内にACK 受信応答Bをマスター50に送
信し(2)、受信エラーが発生する場合には受信エラー
を知らせるNAK メッセージBをマスター50に送信する
(2)。マスター50は受信エラーを知らせるメッセー
ジが受信された場合或は応答のない場合にはデータパケ
ットA を再伝送する(1)の過程から再び始める。
In the case where the received address in the slave 60 corresponds to its own unique address, in the case of normal reception, the ACK reception response B is transmitted to the master 50 within a predetermined time (2), and a reception error occurs. If so, NAK message B indicating a reception error is transmitted to the master 50 (2). The master 50 restarts from the process (1) of retransmitting the data packet A when a message indicating a reception error is received or no response is received.

【0011】次いで、スレーブ60からマスター50に
データ送信する方法を図3及び図5を参照して説明すれ
ば次のようである。マスター50が競合の始めを知らせ
る情報を含むデータパケットC をスレーブ60に送信す
る(3)。スレーブ60はマスター50に送信するデー
タがある場合、自ら無作為で発生する優先順位による所
定の遅延時間の間送信機会を待ちながら自分の受信ポー
トを監視する。この際、所定の遅延時間の間自分の受信
ポートRXに受信されるデータがあれば、自分より優先順
位の高い他のスレーブが送信権限を得たことを意味する
ので自分は送信を次の機会に延期して受信状態として残
る。この際、遅延時間は優先順位が高いと遅延時間は相
対的に少なく、優先順位が低いと遅延時間は相対的に長
くなる。従って、優先順位が高いスレーブが優先的に送
信に与えられる。
A method of transmitting data from the slave 60 to the master 50 will be described below with reference to FIGS. 3 and 5. The master 50 sends a data packet C containing information indicating the beginning of the conflict to the slave 60 (3). When there is data to be transmitted to the master 50, the slave 60 monitors its receiving port while waiting for a transmission opportunity for a predetermined delay time due to the randomly generated priority. At this time, if there is data to be received at the receiving port RX of itself for a predetermined delay time, it means that another slave with a higher priority than itself has acquired the transmission right. It is postponed to and remains as a reception state. In this case, the delay time has a relatively small delay time when the priority is high, and the delay time is relatively long when the priority is low. Therefore, slaves with higher priority are given priority for transmission.

【0012】自ら無作為で発生した遅延時間の間自分の
受信ポートに受信されるデータのないスレーブのみが自
分のプリアンブルデータD を無作為で発生してマスター
50に送信する(4)。マスター50は所定の時間内に
プリアンブルデータD が受信されると同一のプリアンブ
ルデータE をまた送信する。この際、所定の時間内にプ
リアンブルデータD の受信がなければ前記(3)の過程
から再び行う(5)。
Only the slave that has no data received by its receiving port during the randomly generated delay time randomly generates its own preamble data D and transmits it to the master 50 (4). When the master 50 receives the preamble data D within a predetermined time, the master 50 also transmits the same preamble data E. At this time, if the preamble data D is not received within a predetermined time, the process is repeated from the above step (3) (5).

【0013】スレーブ60の中プリアンブルデータD を
送信したスレーブは受信されたプリアンブルデータE と
自分が送信したプリアンブルデータD を比較して同一で
あると送信権限を得たことを意味するので送信しようと
するデータパケットF を伝送する(6)。もし、プリア
ンブルデータD を送信した後、受信されたデータE が同
一でなければ自分の送信を次の機会に延期して受信状態
で残る(6)。
The slave transmitting the preamble data D in the slave 60 compares the received preamble data E with the preamble data D transmitted by itself, and if the slave preamble data D is the same, it means that the slave is authorized to transmit. The data packet F to be transmitted is transmitted (6). If, after transmitting the preamble data D, the received data E is not the same, it defers its transmission to the next opportunity and remains in the reception state (6).

【0014】マスター50はスレーブからのデータパケ
ットF を正常受信した場合ACK 受信応答G をし、受信エ
ラーが発生した場合には再伝送のため受信エラーを知ら
せるNAK メッセージG を伝送する(7)。マスターとス
レーブの間に送受信されるデータパケットのフォーマッ
トを図6及び図7を参照して説明すれば次のようであ
る。
The master 50 transmits an ACK reception response G when the data packet F from the slave is normally received, and transmits a NAK message G for notifying the reception error for retransmission when a reception error occurs (7). The format of the data packet transmitted / received between the master and the slave will be described below with reference to FIGS. 6 and 7.

【0015】図6で、PRE はマスターから送信されるデ
ータパケットには存在するが、スレーブから送信される
データパケットには存在しないプリアンブルデータを示
し、CCは制御コードを示し、DA/SAは受信処アドレスと
送信処アドレスを示すものでマスターアドレスは既に決
められて省略できるのでスレーブの送信データパケット
の場合には受信処のマスターアドレスDA(宛先アドレ
ス)は省略してスレーブアドレスSA(ソースアドレス)
が記録され、マスター送信データパケットの場合にはス
レーブSAが記録され、この際、送信源のマスターアドレ
スDAは省略する。また、Inf は送信しようとする情報を
示し、BCはInf フィールドのバイトの数を示し、FCC は
フレームチェックコードを示すものであって受信端のエ
ラーチェックに利用される。
In FIG. 6, PRE indicates preamble data that is present in the data packet transmitted from the master but not present in the data packet transmitted from the slave, CC indicates a control code, and DA / SA indicates reception. The master address has already been determined and can be omitted because it indicates the processing address and the transmission address, so in the case of a transmission data packet of a slave, the master address DA (destination address) of the reception process is omitted and the slave address SA (source address)
Is recorded, and in the case of the master transmission data packet, the slave SA is recorded. At this time, the master address DA of the transmission source is omitted. Inf indicates the information to be transmitted, BC indicates the number of bytes in the Inf field, and FCC indicates the frame check code, which is used for error checking at the receiving end.

【0016】図7はデータパケットで1つのキャラクタ
の構成を示したものであって、STはスタートビット、SP
は停止ビット、b0〜b7はデータビット、P はパリティビ
ットを各々示す。1つのキャラクタは総11ビットで構
成される。この際、P はエラー検出のための偶数或は奇
数パリティビットで使用され、また受信モードを決定す
るためのビットとしても使用できる。これを説明すれ
ば、P を利用して受信側では受信モードを指定すること
によりデータの受信の可否を決定しうる。即ち、受信モ
ードが1の場合受信キャラクタのパリティビットが1の
場合のみ受信できるようにし、受信モードが0の場合に
はパリティビットに係らず受信できるようにする。
FIG. 7 shows the structure of one character in a data packet, where ST is a start bit and SP.
Is a stop bit, b 0 to b 7 are data bits, and P is a parity bit. One character consists of 11 bits in total. At this time, P is used as an even or odd parity bit for error detection, and can also be used as a bit for determining the reception mode. Explaining this, the reception side can use P to specify the reception mode to determine whether data can be received. That is, when the reception mode is 1, the reception can be performed only when the parity bit of the received character is 1, and when the reception mode is 0, the reception can be performed regardless of the parity bit.

【0017】これを図8に基づき詳しく説明すれば次の
ようである。図8において、マスターは競合のスタート
を知らせるデータパケットaを送信し、データパケット
aは全てのスレーブに受信されるべきであるので、パリ
ティビットP =1に設定される。この際、各スレーブの
受信モードは1に設定された状態にあるべきである。次
いで、送信するデータパケットのあるスレーブが自ら与
えられた無作為の遅延時間の間待った後、プリアンブル
データbを送信し、受信モードを0に設定して次の受信
を待つ。この際、プリアンブルデータbはマスターのみ
が受信するのでパリティビットP は本来の通りエラー検
出のためのパリティビットとして利用する。次いで、マ
スターがプリアンブルデータcを送信し、このプリアン
ブルデータcのパリティビットP は0に設定される。従
って、プリアンブルデータbを送信したスレーブのみ受
信モードが0であるのでデータ受信が可能になる。次い
で、送信しようとするデータパケットdは前記スレーブ
からマスターに送信され、マスターは受信応答eを送信
する。この際、受信応答eは前記スレーブのみ受信する
必要があるので、パリティビットP は0に設定される。
This will be described in detail with reference to FIG. In FIG. 8, the master sends a data packet a signaling the start of a conflict, and since the data packet a should be received by all slaves, the parity bit P = 1 is set. At this time, the reception mode of each slave should be set to 1. Next, the slave having the data packet to be transmitted waits for the given random delay time, then transmits the preamble data b, sets the reception mode to 0, and waits for the next reception. At this time, since only the master receives the preamble data b, the parity bit P is used as a parity bit for error detection as it is. Next, the master transmits the preamble data c, and the parity bit P of this preamble data c is set to 0. Therefore, since only the slave that has transmitted the preamble data b has the reception mode of 0, data reception is possible. Then, the data packet d to be transmitted is transmitted from the slave to the master, and the master transmits a reception response e. At this time, since the reception response e needs to be received only by the slave, the parity bit P is set to 0.

【0018】次いで、マスターからスレーブに送信しょ
うとするデータパケットがある場合、マスターはデータ
パケットfを送信する。この際、データパケットfは図
9に示されたように、PRE 、CC及びDA/SAは全てのスレ
ーブで受信されるべきであるのでパリティビットP を1
に設定し、BC、Inf 及びFCC は該当スレーブのみ受信さ
れれば良いのでパリティビットP は0に設定される。即
ち、各スレーブはDA/SAを自分のアドレスと比べて同一
の場合のみ受信モードを0に設定してBC、Inf及びFCC
を受信される。従って、不要の受信動作を減らせるので
通信効率を高めうる。
Next, when there is a data packet to be transmitted from the master to the slave, the master transmits the data packet f. At this time, as shown in FIG. 9, in the data packet f, PRE, CC and DA / SA should be received by all the slaves, so that the parity bit P is set to 1
, BC, Inf, and FCC need only be received by the corresponding slave, so the parity bit P is set to 0. That is, each slave sets the receive mode to 0 only when DA / SA is the same as its own address, and BC, Inf, and FCC are set.
To be received. Therefore, unnecessary reception operations can be reduced and communication efficiency can be improved.

【0019】各スレーブの優先順位による遅延時間をさ
らに詳しく説明する。ポーリング通信を行う時発生され
るデータの衝突に因した送信時間の遅延問題を解決する
ために、優先順位により競合を行うことになる。即ち、
各スレーブは優先順位により自ら与えられた遅延時間の
間優先順位の先立つ他のスレーブからの送信データがな
ければ送信権限を得る。この際、遅延時間はマスターか
らの競合のスタートを知らせるデータが各スレーブに受
信された後自分のプリアンブルデータを送信するまでの
時間を示すものであって、データの衝突を防ぐためであ
る。
The delay time depending on the priority of each slave will be described in more detail. In order to solve the problem of delay in transmission time due to data collision that occurs when polling communication is performed, contention will be performed according to priority. That is,
Each slave obtains the transmission right during the delay time given by itself unless there is data to be transmitted from other slaves having priorities. At this time, the delay time indicates the time from the reception of the data indicating the start of contention from the master to the transmission of its own preamble data by each slave, and is for preventing data collision.

【0020】また、送受信されるデータの性質によりデ
ータに優先順位を与える。例えば、次の表に示されたよ
うにデータの種類を非常データ、一般データ、ネット管
理データで分類した場合その優先順位は次のようであ
る。
Further, the data is given a priority according to the nature of the data to be transmitted and received. For example, when the data types are classified into emergency data, general data, and net management data as shown in the following table, the priority order is as follows.

【0021】[0021]

【表1】 [Table 1]

【0022】前記表でわかるように送信しようとするデ
ータの優先順位により基本遅延時間を異にし、各スレー
ブにより無作為で与えられた優先順位によりランダム遅
延時間を異にする。相互衝突を防ぐために各データの遅
延範囲は相異なるように調節する。この際、スレーブの
個数が9つの場合、無作為で発生された遅延時間の範囲
は(0〜8)×3UT(ユニットタイム)であり、データ
が4種類の場合(0〜3)×3UTとなる。また、データ
の送信回数と関係なくデータの種類による遅延時間を画
一的に決定すると送信時間の遅延の1つの要因となる。
一般的に一般データはデータ送信の回数が多く、ネット
管理データの回数は比較的少ない。従って、通信最少周
期を減らすために、マスターから競合のスタートを知ら
せるデータパケットを送信する時、データの種類に対す
る情報を含ませると該当種類のデータのみを送受信しう
る。即ち、マスターが競合のスタートを知らせる情報と
共にデータの種類に対する情報として非常データを示す
情報を含むデータパケットを送信することになる場合、
非常データを送信しようとするスレーブのみが競合に参
与し、他の種類のデータを送信しようとするスレーブは
競合から除外される。
As can be seen from the above table, the basic delay time is made different depending on the priority order of the data to be transmitted, and the random delay time is made different according to the priority order given randomly by each slave. In order to prevent mutual collision, the delay range of each data is adjusted differently. At this time, when the number of slaves is 9, the range of the randomly generated delay time is (0 to 8) x 3UT (unit time), and when there are 4 types of data, it is (0 to 3) x 3UT. Become. Further, if the delay time according to the type of data is uniformly determined regardless of the number of times of data transmission, it becomes one factor of the delay of the transmission time.
Generally, general data has a large number of data transmissions and relatively small number of net management data. Therefore, in order to reduce the minimum communication period, when the data packet indicating the start of competition is transmitted from the master, if the information about the data type is included, only the data of the corresponding type can be transmitted and received. That is, when the master sends a data packet including information indicating the start of conflict and information indicating emergency data as information for the type of data,
Only slaves that try to send emergency data participate in the race, slaves that try to send other types of data are excluded from the race.

【0023】前述したようにマスターはデータの種類と
送受信回数により伸縮的に用いて送信時間を減らせる。
図10、図11及び図12、図13は前述した本発明に
よるポーリング通信方法の一実施例による各マスター及
びスレーブのポーリング通信のフローチャートを示した
ものである。
As described above, the master can flexibly use the data depending on the type of data and the number of transmissions and receptions to reduce the transmission time.
10, 11 and 12 and 13 are flowcharts of polling communication of each master and slave according to an embodiment of the polling communication method according to the present invention.

【0024】図10及び図11において、100段階で
はマスターがスレーブに送信しようとする送信データが
あるかを決定する。110段階では送信データがあれば
データパケットを伝送する。この際、データパケットで
PRE 、CC、DA/SAは全てのスレーブで受信されるように
各キャラクタのパリティビットP =1に設定され、次い
でBC、Inf 、FCC は該当スレーブのみ受信されれば良い
ので各キャラクタのパリティビットP =0に設定され
る。次いで、120段階ではマスターが正常受信を知ら
せる受信応答ACK を受信すれば送信が完了され、それと
もデータパケットを再伝送することになる。130段階
では前記100段階で送信データがなければマスターは
競合のスタートを知らせる情報を含むデータパケットを
伝送し、140段階ではスレーブからプリアンブルデー
タPRE の受信の可否を判断し、150段階では受信され
た場合同一のプリアンブルデータPRE をスレーブに再伝
送する。次いで、160段階ではスレーブからのデータ
パケットを受信され、170段階では受信エラーが発生
したかの可否を判断し、180段階では正常受信の場合
受信応答ACK を伝送し、それとも190段階で受信エラ
ーを知らせるメッセージNAK を伝送する。
In FIGS. 10 and 11, in step 100, the master determines whether there is transmission data to be transmitted to the slave. In step 110, a data packet is transmitted if there is transmission data. At this time, in the data packet
PRE, CC, DA / SA are set to parity bit P = 1 for each character so that they are received by all slaves, and BC, Inf, and FCC need only receive the corresponding slaves, so parity bit for each character. P is set to 0. Then, in step 120, if the master receives a reception response ACK indicating a normal reception, the transmission is completed or the data packet is retransmitted. In step 130, if there is no data to be transmitted in step 100, the master transmits a data packet including information indicating the start of contention, step 140 determines whether preamble data PRE can be received from the slave, and step 150 receives the preamble data PRE. Case Retransmit the same preamble data PRE to the slave. Next, in step 160, the data packet from the slave is received, in step 170, it is determined whether or not a reception error occurs, and in step 180, a reception response ACK is transmitted in the case of normal reception, or in step 190, the reception error is transmitted. Carry message NAK to inform.

【0025】図12及び図13において、まず200段
階で各スレーブは受信モードを1に設定し、210段階
ではプリアンブルデータPRE を受信される。この際、2
20段階ではプリアンブルデータPRE が競合のスタート
を知らせる情報を含むかを判断し、含まないと230段
階でデータパケットの中CC、DA/SAを受信される。この
際、240段階で全ての受信モードが1に設定されてい
るのでパリティビットP の設定状態により受信の可否が
決定される。各スレーブはDA/SAと自分のアドレスを比
べて同一であると250段階で受信モードを0に設定し
て次の受信を待機する。アドレスが違うと200段階か
らまた行う。次いで260段階ではパリティビットP の
設定状態により該当スレーブのみマスターからBC、Inf
、FCC を受信され、270段階では正常受信可否によ
り各々280段階受信応答ACK 或は290段階受信エラ
ーメッセージNAK をマスターに送信する。この際、30
0段階では前記220段階で競合のスタートを知らせる
情報を含む場合、各スレーブはマスターに送信しようと
する送信データがあるか判断し、310段階で送信デー
タがあれば各スレーブにより無作為で与えられた優先順
位による遅延時間PLTの間、320段階で受信データが
あるかを判断する。330段階ではPLT の間受信データ
のない場合にはプリアンブルデータPRE を送信し、34
0段階では送信したプリアンブルデータPRE と同一であ
るプリアンブルデータPRE が受信されれば350段階で
データパケットのうち残りCC、BC、Inf 、FCC を送信す
る。マスターから正常受信を知らせる受信応答ACK が受
信されれば送信が完了され、受信されないと前記350
段階を反復する。
In FIGS. 12 and 13, first, in step 200, each slave sets the reception mode to 1, and in step 210, preamble data PRE is received. At this time, 2
In step 20, it is determined whether the preamble data PRE includes information indicating the start of contention. If it does not include it, CC and DA / SA in the data packet are received in step 230. At this time, since all the reception modes are set to 1 in step 240, whether the reception is possible or not is determined by the setting state of the parity bit P. Each slave compares its own address with that of DA / SA, and sets the reception mode to 0 in step 250 and waits for the next reception. If the address is different, it starts again from step 200. Next, in step 260, depending on the setting state of the parity bit P, only the corresponding slave is BC, Inf from the master.
, FCC is received, and in step 270, 280-step reception response ACK or 290-step reception error message NAK is transmitted to the master depending on whether normal reception is possible or not. At this time, 30
In step 0, if the information indicating the start of contention is included in step 220, each slave determines whether there is transmission data to be transmitted to the master, and if there is transmission data in step 310, it is randomly given by each slave. During the delay time PLT according to the priority, it is determined in step 320 whether there is received data. In step 330, if there is no received data during PLT, preamble data PRE is transmitted, and
In step 0, if the preamble data PRE that is the same as the transmitted preamble data PRE is received, the remaining CC, BC, Inf and FCC of the data packet are transmitted in step 350. If the reception response ACK indicating the normal reception is received from the master, the transmission is completed.
Repeat the steps.

【0026】[0026]

【発明の効果】前述のように本発明によるポーリング通
信方法は各スレーブと、データの種類により優先順位を
与えてこれによる遅延時間を異にして競合させることに
よりポーリング待機時間が減らせる。また、送信しよう
とするデータのあるスレーブのみポーリング通信に与え
るようにして通信線路上のノイズ源の発生を減らし、ハ
ードウェアの変更時マスターのプログラムの変更を通し
て容易に拡張しうる利点がある。
As described above, the polling communication method according to the present invention can reduce the polling waiting time by giving priority to each slave according to the type of data and competing for different delay times due to the priorities. Further, by giving only slaves having data to be transmitted to polling communication, the generation of noise sources on the communication line is reduced, and there is an advantage that it can be easily expanded by changing the program of the master when the hardware is changed.

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

【図1】従来の個別ポーリング通信方法を示す図であ
る。
FIG. 1 is a diagram showing a conventional individual polling communication method.

【図2】マスター及びスレーブの送受信回路部の構成ブ
ロック図である。
FIG. 2 is a configuration block diagram of a transmission / reception circuit unit of a master and a slave.

【図3】本発明によるポーリング通信方法の一実施例を
図式的に示す図である。
FIG. 3 is a diagram schematically showing an embodiment of a polling communication method according to the present invention.

【図4】マスターとスレーブ間に送受信されるデータの
波形図である。
FIG. 4 is a waveform diagram of data transmitted and received between a master and a slave.

【図5】マスターとスレーブ間に送受信されるデータの
波形図である。
FIG. 5 is a waveform diagram of data transmitted and received between a master and a slave.

【図6】マスターとスレーブ間に送受信されるデータパ
ケットを示す図である。
FIG. 6 is a diagram showing a data packet transmitted / received between a master and a slave.

【図7】図6のデータパケットの各キャラクタの構成を
説明するための図である。
FIG. 7 is a diagram for explaining a configuration of each character of the data packet of FIG.

【図8】図7の各キャラクタ内のパリティビットの設定
状態による送受信動作を説明するための図である。
8 is a diagram for explaining a transmission / reception operation depending on a setting state of a parity bit in each character of FIG. 7.

【図9】図7の各キャラクタ内のパリティビットの設定
状態による送受信動作を説明するための図である。
9 is a diagram for explaining a transmission / reception operation depending on a setting state of a parity bit in each character of FIG. 7.

【図10】本発明によるポーリング通信方法の一実施例
を説明するためのフローチャートである
FIG. 10 is a flowchart illustrating an embodiment of a polling communication method according to the present invention.

【図11】図10に続くフローチャートである。11 is a flowchart following FIG.

【図12】本発明によるポーリング通信方法の一実施例
を説明するためのフローチャートである
FIG. 12 is a flowchart for explaining an embodiment of a polling communication method according to the present invention.

【図13】図12に続くフローチャートである。FIG. 13 is a flowchart following FIG.

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

10 マイクロプロセッサ 20 変復調部 30 送信周波数設定部 40 受信周波数設定部 50 マスター 60 スレーブ 10 microprocessor 20 modulation / demodulation unit 30 transmission frequency setting unit 40 reception frequency setting unit 50 master 60 slave

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも1つ以上のマスターと多数の
スレーブ間にポーリング通信を行うためのポーリング通
信方法において、 前記マスターが競合のスタートを知らせる情報を含むデ
ータパケットを前記多数のスレーブに伝送する第1段階
と、 前記スレーブは送信しようとするデータがある時、前記
競合のスタートを知らせる情報に従って自ら無作為で与
えられた優先順位による所定の遅延時間の間他のスレー
ブ等から受信されるデータがなければ自分のプリアンブ
ルデータを伝送する第2段階と、 前記マスターが前記プリアンブルデータを受信し、これ
を再伝送する第3段階と、 前記スレーブは自分の伝送したプリアンブルデータと受
信されたプリアンブルデータとを比較して同一であると
送信しようとするデータパケットを前記マスターに伝送
する第4段階とを含むことを特徴とするポーリング通信
方法。
1. A polling communication method for performing polling communication between at least one master and a plurality of slaves, wherein the master transmits a data packet including information indicating the start of contention to the plurality of slaves. 1 step, when there is data to be transmitted by the slave, data received from other slaves etc. during a predetermined delay time according to a priority given randomly according to the information indicating the start of the contention. Otherwise, the second step of transmitting its own preamble data, the third step of receiving the preamble data by the master and retransmitting the preamble data, and the slave transmitting the preamble data of its own and the received preamble data. Data packets that are to be transmitted if they are the same. Polling communication method characterized by comprising a fourth step of transmitting to over.
【請求項2】 前記マスターがスレーブに送信しようと
するデータパケットがある場合、少なくとも自分の送信
であることを知らせる情報と受信アドレスを含むデータ
パケットを伝送し、前記受信アドレスと同一の固有アド
レスを有するスレーブが前記データパケットを受信する
段階をさらに含むことを特徴とする請求項1に記載のポ
ーリング通信方法。
2. When the master has a data packet to be transmitted to the slave, it transmits a data packet including at least information notifying that it is its own transmission and a reception address, and uses the same unique address as the reception address. The polling communication method according to claim 1, further comprising the step of: a slave having the data packet.
【請求項3】 前記データパケットは少なくとも制御コ
ード、送受信アドレス、情報データ、情報データのバイ
トの数、フレームチェックコードを含むことを特徴とす
る請求項1または2に記載のポーリング通信方法。
3. The polling communication method according to claim 1, wherein the data packet includes at least a control code, a transmission / reception address, information data, the number of bytes of information data, and a frame check code.
【請求項4】 前記データパケットの各キャラクタにパ
リティビットを含み、各パリティビットは本来のエラー
チェックビット及び受信の可否を決定するビットとして
各々利用されることを特徴とする請求項3に記載のポー
リング通信方法。
4. A parity bit is included in each character of the data packet, and each parity bit is used as an original error check bit and a bit that determines whether reception is possible or not. Polling communication method.
【請求項5】 前記2段階で前記優先順位はデータの種
類により与えられ、その優先順位で基本遅延時間を決定
することを特徴とする請求項1に記載のポーリング通信
方法。
5. The polling communication method according to claim 1, wherein the priority is given in accordance with the type of data in the two steps, and the basic delay time is determined by the priority.
JP16347896A 1995-09-14 1996-06-24 Polling communication method Expired - Fee Related JP3280852B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR30087/1995 1995-09-14
KR1019950030087A KR0165440B1 (en) 1995-09-14 1995-09-14 Polling communication method

Publications (2)

Publication Number Publication Date
JPH09130382A true JPH09130382A (en) 1997-05-16
JP3280852B2 JP3280852B2 (en) 2002-05-13

Family

ID=19426851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16347896A Expired - Fee Related JP3280852B2 (en) 1995-09-14 1996-06-24 Polling communication method

Country Status (2)

Country Link
JP (1) JP3280852B2 (en)
KR (1) KR0165440B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013503588A (en) * 2009-09-01 2013-01-31 ハリス コーポレイション Address stripping and related systems in meter reading wireless mesh networks

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101840558B1 (en) 2016-08-17 2018-03-20 엘지전자 주식회사 Electronic device and communication method thereof
CN110995615B (en) * 2019-12-02 2023-05-05 德阳瑞能电力科技有限公司 Communication method for multilateral master-slave switching

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013503588A (en) * 2009-09-01 2013-01-31 ハリス コーポレイション Address stripping and related systems in meter reading wireless mesh networks

Also Published As

Publication number Publication date
KR0165440B1 (en) 1999-02-01
JP3280852B2 (en) 2002-05-13
KR970019243A (en) 1997-04-30

Similar Documents

Publication Publication Date Title
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
US4430651A (en) Expandable and contractible local area network system
US5572546A (en) Data communications system with multilink protocol
US5914796A (en) Communication protocol for half-duplex traffic
CA1265257A (en) Local area network with carrier sense collision avoidance
JPS5836049A (en) Station in communication network
EP0885535B1 (en) Use of energy bursts for wireless networks
JP3280852B2 (en) Polling communication method
JP2873515B2 (en) Multiplex transmission method
JP3110137B2 (en) Communication method in home wireless communication network
JP3217397B2 (en) Data transmission method of communication control device
JP2752742B2 (en) Packet transmission device
JPH11252134A (en) Broadcast communication system
WO1991009366A1 (en) Method and apparatus for dispersed end-entity flow control in computer networks
JP3337907B2 (en) Multiplex transmission system
JP3609701B2 (en) Error data notification method and notification system in unidirectional serial data communication system
CN1080055C (en) Data communications system with multilining protocol
JP2003258814A (en) Control station for performing data retransmission
JP2005094429A (en) Radio communication apparatus
CA1208736A (en) System and method for name-lookup in a local area network data communication system
JPS62183638A (en) Broadcast communication control method in local area network
JPS59140746A (en) Data transfer system
JPS6245246A (en) Communication control equipment
JPS6366462B2 (en)
JPH02121543A (en) Data transmitting device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080222

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090222

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees