JP3280852B2 - Polling communication method - Google Patents

Polling communication method

Info

Publication number
JP3280852B2
JP3280852B2 JP16347896A JP16347896A JP3280852B2 JP 3280852 B2 JP3280852 B2 JP 3280852B2 JP 16347896 A JP16347896 A JP 16347896A JP 16347896 A JP16347896 A JP 16347896A JP 3280852 B2 JP3280852 B2 JP 3280852B2
Authority
JP
Japan
Prior art keywords
data
slave
master
data packet
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.)
Expired - Fee Related
Application number
JP16347896A
Other languages
Japanese (ja)
Other versions
JPH09130382A (en
Inventor
鍾 瓔 李
眞 榮 梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は通信方法に係り、特
にポーリング時間を減らせるポーリング通信方法に関す
る。
[0001] 1. Field of the Invention [0002] 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 for communication between a device (hereinafter, a master) requesting polling and a plurality of devices (hereinafter, slaves) responding to polling. That is, each slave has its own unique address number, and has the right to transmit and receive data when receiving its own address data from the master according to a predetermined protocol. Master, Figure 1
As shown in (1), polling is sequentially performed with each slave in a predetermined order. In FIG. 1, M indicates a master and Sn indicates an n-th slave. T indicates the time it takes for the master to poll one slave.

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

【0004】[0004]

【発明が解決しょうとする課題】本発明の目的は通信線
路上のノイズ源の発生を減らし、通信待機時間が短く、
柔軟性と拡張性の優秀であるポーリング通信方法を提供
することにある。
SUMMARY OF THE INVENTION An object of the present invention is to reduce the occurrence of noise sources on a communication line, 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 or more masters and a number of slaves, the master starts a conflict. A first step of transmitting a data packet including information to be notified to the plurality of slaves, and when the slave has data to be transmitted, after receiving the information indicating the start of the conflict, at least the type of data and transmission / reception of data are performed. A second step of transmitting own preamble data if there is no data received from another slave or the like during a predetermined delay time according to the priority given by one of the frequencies, and a step in which the master receives the preamble data. A third step of retransmitting the preamble data, wherein the slave transmits its transmitted preamble data If the result of comparison between the received preamble data is the same, seen including a fourth step of transmitting a data packet to be transmitted to the master, the
The data packet sent from master to slave is
Whether reception at the slave is set for each data item
And said that you are.

【0006】[0006]

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

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

【0008】マスターとスレーブは両方このような送受
信回路を有するが、マスターの送信周波数はスレーブの
受信周波数として設定され、マスターの受信周波数はス
レーブの送信周波数として設定されるべきである。この
際、変復調部20はASK (振幅シフトキーイング)また
はFSK (周波数シフトキーイング)モデムを使用して構
成しうる。ところが、マスターとスレーブが遠く離れて
いる時、ASK モデムを利用する場合には伝送を成功させ
るためにASK 変調信号の大きさを大きく設定すべきであ
る。このように伝送する信号の大きさが大きくなると、
入力フィルターでは所望しない周波数帯域のノイズの充
分な除去ができなくなる。結局2つの相異なる周波数を
使用してASK モデムを利用する場合1つの周波数を使用
することと同一の現象が現れる。従って、FSK モデムを
利用すれば、ASK モデムと異なってマスターとスレーブ
が遠く離れている場合にも、伝送信号の大きさを大きく
設定する必要はなくノイズにさらに強くなる。
[0008] Although both the master and the slave have such a transmitting and receiving circuit, the transmitting frequency of the master should be set as the receiving frequency of the slave, and the receiving frequency of the master should be set as the transmitting frequency of the slave. In this case, the modem unit 20 may be configured using an ASK (amplitude shift keying) or FSK (frequency shift keying) modem. However, when the ASK modem is used when the master and the slave are far apart, the size of the ASK modulation signal should be set large 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. As a result, when using an ASK modem using two different frequencies, the same phenomenon as when 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, the transmission signal does not need to be set large, and the transmission signal is more resistant to noise.

【0009】図3は本発明の実施例によるポーリング通
信方法を図式的に説明するための図面であり、図4はマ
スターとスレーブ間に送受信されるデータの波形図であ
る。まず、マスター50からスレーブ60にデータ送信
する方法を図3及び図4を参照して説明する。マスター
50が送信するデータがある場合、マスター50はデー
タパケットAをスレーブ60に伝送する。この際、デー
タパケットA は少なくともマスターの送信データである
ことを知らせる情報と伝送しようとするスレーブの固有
アドレスを含む(1)。
FIG. 3 is a diagram schematically illustrating 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. If 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 indicating that the data is transmission data of the master and a unique address of a slave to be transmitted (1).

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

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

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

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

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

【0015】図6で、PRE はマスターから送信されるデ
ータパケットには存在するが、スレーブから送信される
データパケットには存在しないプリアンブルデータを示
し、CCは制御コードを示し、DA/SAは受信処アドレスと
送信処アドレスを示すものでマスターアドレスは既に決
められて省略できるのでスレーブの送信データパケット
の場合には受信処のマスターアドレスDA(宛先アドレ
ス)は省略してスレーブアドレスSA(ソースアドレス)
が記録され、マスター送信データパケットの場合にはス
レーブSAが記録され、この際、送信源のマスターアドレ
スDAは省略する。また、Inf は送信しようとする情報を
示し、BCはInf フィールドのバイトの数を示し、FCC は
フレームチェックコードを示すものであって受信端のエ
ラーチェックに利用される。
In FIG. 6, PRE indicates preamble data which is present in a data packet transmitted from the master but does not exist in a 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 processing address. In the case of a slave transmission data packet, the master address DA (destination address) of the reception processing is omitted and the slave address SA (source address) is omitted.
Is recorded, and in the case of the master transmission data packet, the slave SA is recorded, and at this time, the master address DA of the transmission source is omitted. Inf indicates information to be transmitted, BC indicates the number of bytes in the Inf field, and FCC indicates a 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, SP
Shows stop bit, b 0 ~b 7 data bits, P is a parity bit respectively. One character is composed of a total of 11 bits. 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 a reception mode. To explain this, the receiving side can determine whether data can be received by designating the receiving mode using P. That is, when the reception mode is 1, reception is enabled only when the parity bit of the reception character is 1, and when the reception mode is 0, reception is enabled 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 transmits a data packet a indicating the start of the conflict, and the data packet a is set to the parity bit P = 1 since the data packet a should be received by all slaves. At this time, the reception mode of each slave should be set to 1. Next, after a certain slave of the data packet to be transmitted waits for a given random delay time, it 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 originally intended. Next, the master transmits the preamble data c, and the parity bit P of the preamble data c is set to 0. Therefore, only the slave that transmitted the preamble data b has the reception mode of 0, so that data reception is possible. Next, 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, the data packet f has the parity bit P set to 1 because PRE, CC and DA / SA should be received by all slaves.
And the parity bit P is set to 0 since BC, Inf and FCC only need to be received by the corresponding slave. That is, each slave sets the reception mode to 0 only when the DA / SA is the same as its own address, and sets BC, Inf and FCC.
Is received. Therefore, unnecessary reception operations can be reduced, and communication efficiency can be improved.

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

【0020】また、送受信されるデータの性質によりデ
ータに優先順位を与える。例えば、次の表に示されたよ
うにデータの種類を非常データ、一般データ、ネット管
理データで分類した場合その優先順位は次のようであ
る。
Further, priority is given to data according to the nature of data to be transmitted and received. For example, as shown in the following table, when the types of data are classified into emergency data, general data, and net management data, the priorities are 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 according to the priority of data to be transmitted, and the random delay time is made different according to the priority randomly assigned by each slave. The delay range of each data is adjusted differently to prevent mutual collision. At this time, if the number of slaves is 9, the range of the randomly generated delay time is (0-8) × 3UT (unit time), and if there are four types of data, (0-3) × 3UT. Become. In addition, if the delay time according to the type of data is determined uniformly regardless of the number of times of data transmission, this is one factor of the delay of the transmission time.
In general, general data has a large number of data transmissions and a relatively small number of network management data. Therefore, when transmitting a data packet indicating the start of contention from the master to reduce the minimum communication period, if information on the type of data is included, only data of the corresponding type can be transmitted and received. That is, when the master sends a data packet including information indicating emergency data as information on the type of data along with information indicating the start of contention,
Only slaves trying to send emergency data participate in the conflict, and slaves trying to send other types of data are excluded from the conflict.

【0023】前述したようにマスターはデータの種類と
送受信回数により伸縮的に用いて送信時間を減らせる。
図10、図11及び図12、図13は前述した本発明に
よるポーリング通信方法の一実施例による各マスター及
びスレーブのポーリング通信のフローチャートを示した
ものである。
As described above, the master can extend and reduce the transmission time depending on the type of data and the number of times of transmission / reception.
FIG. 10, FIG. 11, FIG. 12, and FIG. 13 show flowcharts of polling communication between each master and slave according to one embodiment of the above-described 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, if there is transmission data, a data packet is transmitted. At this time, the data packet
PRE, CC, DA / SA are set to the parity bit P = 1 of each character so that they are received by all slaves, and then BC, Inf, and FCC are parity bits of each character since only the corresponding slave needs to be received. P = 0 is set. Next, in step 120, if the master receives a reception acknowledgment indicating normal reception, the transmission is completed, or the data packet is retransmitted. In step 130, if there is no transmission data in step 100, the master transmits a data packet including information indicating the start of contention. In step 140, it is determined whether the preamble data PRE can be received from the slave. In this case, the same preamble data PRE is retransmitted to the slave. Next, in step 160, a data packet from the slave is received. In step 170, it is determined whether a reception error has occurred. In step 180, a reception response ACK is transmitted in the case of normal reception, or in step 190, a reception error is detected. Transmit the 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
段階を反復する。
Referring to FIGS. 12 and 13, first, at step 200, each slave sets the reception mode to 1, and at step 210, the 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 not, in step 230, CC and DA / SA in the data packet are received. At this time, since all the reception modes are set to 1 in step 240, whether or not reception is possible is determined according to the setting state of the parity bit P. Each slave sets its reception mode to 0 at step 250 if the DA / SA and its own address are the same, and waits for the next reception. If the address is different, the process is repeated from step 200. Next, at step 260, only the slave is changed from the master to BC or Inf according to the setting state of the parity bit P.
, FCC is received, and in step 270, a ACK reception response ACK or a 290 step reception error message NAK is transmitted to the master depending on whether or not normal reception is possible. At this time, 30
In step 0, if 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 order, it is determined in step 320 whether there is received data. At step 330, if there is no received data during the PLT, the preamble data PRE is transmitted.
In step 0, if the preamble data PRE identical to the transmitted preamble data PRE is received, in step 350, the remaining CC, BC, Inf, and FCC of the data packet are transmitted. If a reception response ACK indicating 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 reduces the polling waiting time by giving priority to each slave according to the type of data and competing with different delay times. In addition, there is an advantage that the generation of noise sources on the communication line is reduced by providing only the slave having data to be transmitted to the polling communication, and the hardware can be easily expanded through a change in the master program 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 illustrating 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 data packets transmitted and 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. 6;

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

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

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

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

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

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

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

10 マイクロプロセッサ 20 変復調部 30 送信周波数設定部 40 受信周波数設定部 50 マスター 60 スレーブ DESCRIPTION OF SYMBOLS 10 Microprocessor 20 Modulation / demodulation part 30 Transmission frequency setting part 40 Receiving frequency setting part 50 Master 60 Slave

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭57−188161(JP,A) 特開 昭56−47147(JP,A) 特開 平8−70307(JP,A) 特開 平5−63722(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 12/28 - 12/46 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-57-188161 (JP, A) JP-A-56-47147 (JP, A) JP-A-8-70307 (JP, A) JP-A 5- 63722 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) H04L 12/28-12/46

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 少なくとも1つ以上のマスターと多数の
スレーブ間にポーリング通信を行うためのポーリング通
信方法において、 前記マスターが競合のスタートを知らせる情報を含むデ
ータパケットを前記多数のスレーブに伝送する第1段階
と、 前記スレーブは送信しようとするデータがある時、前記
競合のスタートを知らせる情報を受信後、少なくともデ
ータの種類,データの送受信頻度の一方により与えられ
た優先順位による所定の遅延時間の間、他のスレーブ等
から受信されるデータがなければ自分のプリアンブルデ
ータを伝送する第2段階と、 前記マスターが前記プリアンブルデータを受信し、これ
を再伝送する第3段階と、 前記スレーブは自分の伝送したプリアンブルデータと受
信されたプリアンブルデータとの比較結果が同一であれ
ば、送信しようとするデータパケットを前記マスターに
伝送する第4段階とを含み、 前記マスターからスレーブに送信されるデータパケット
は、前記スレーブでの受信可否がデータ項目毎に設定さ
れている ことを特徴とするポーリング通信方法。
1. A polling communication method for performing polling communication between at least one or more masters and a plurality of slaves, the master transmitting a data packet including information indicating a start of contention to the plurality of slaves. The first step is that, when there is data to be transmitted, the slave receives information notifying the start of the contention, and after a predetermined delay time according to a priority given by at least one of data type and data transmission / reception frequency. A second step of transmitting its own preamble data if there is no data received from another slave or the like; a third step of receiving the preamble data by the master and retransmitting it; The comparison result between the transmitted preamble data and the received preamble data is the same If, viewed contains a fourth step of transmitting a data packet to be transmitted to the master, the data packet transmitted from the master to the slave
Indicates whether reception at the slave is enabled or disabled for each data item.
Polling communication method characterized by being performed .
【請求項2】 前記マスターがスレーブに送信しようと
するデータパケットがある場合、少なくとも自分の送信
であることを知らせる情報と受信アドレスを含むデータ
パケットを伝送し、前記受信アドレスと同一の固有アド
レスを有するスレーブが前記データパケットを受信する
段階をさらに含むことを特徴とする請求項1に記載のポ
ーリング通信方法。
2. When the master has a data packet to be transmitted to the slave, the master transmits at least a data packet including a reception address and information indicating the transmission of the data packet, and transmits the same unique address as the reception address. 2. The polling communication method according to claim 1, further comprising receiving the data packet by a slave having the same.
【請求項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 the information data, and a frame check code.
【請求項4】 前記データパケットの各キャラクタにパ
リティビットを含み、各パリティビットは本来のエラー
チェックビット及び受信の可否を決定するビットとして
各々利用されることを特徴とする請求項3に記載のポー
リング通信方法。
4. The data packet according to claim 3, wherein each character of the data packet includes a parity bit, and each parity bit is used as an original error check bit and a bit for determining whether or not reception is possible. Polling communication method.
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
KR1019950030087A KR0165440B1 (en) 1995-09-14 1995-09-14 Polling communication method
KR30087/1995 1995-09-14

Publications (2)

Publication Number Publication Date
JPH09130382A JPH09130382A (en) 1997-05-16
JP3280852B2 true 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
CN110995615A (en) * 2019-12-02 2020-04-10 德阳瑞能电力科技有限公司 Communication method for multilateral master-slave switching

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8217805B2 (en) * 2009-09-01 2012-07-10 Harris Corporation Address stripping in a meter reading wireless mesh network and associated system
KR101840558B1 (en) 2016-08-17 2018-03-20 엘지전자 주식회사 Electronic device and communication method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995615A (en) * 2019-12-02 2020-04-10 德阳瑞能电力科技有限公司 Communication method for multilateral master-slave switching
CN110995615B (en) * 2019-12-02 2023-05-05 德阳瑞能电力科技有限公司 Communication method for multilateral master-slave switching

Also Published As

Publication number Publication date
KR970019243A (en) 1997-04-30
JPH09130382A (en) 1997-05-16
KR0165440B1 (en) 1999-02-01

Similar Documents

Publication Publication Date Title
CA1265257A (en) Local area network with carrier sense collision avoidance
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
EP1770910B1 (en) Method and system for reliabe data transmission in wireless networks
JP3767904B2 (en) Data communication with highly efficient polling procedures
US4430651A (en) Expandable and contractible local area network system
US5572546A (en) Data communications system with multilink protocol
EP0632620A2 (en) Backoff time evaluation method for ethernet
US5383185A (en) Method and apparatus for data collision detection in a multi-processor communication system
GB2351884A (en) Data transmission method
JPH0620203B2 (en) Data communication method and communication system
JP2873514B2 (en) Multiplex transmission method
EP0885535B1 (en) Use of energy bursts for wireless networks
JP4220208B2 (en) Deterministic fieldbus and method of managing such a bus
JP3280852B2 (en) Polling communication method
JP2873515B2 (en) Multiplex transmission method
JP3217397B2 (en) Data transmission method of communication control device
JP3337907B2 (en) Multiplex transmission system
JP3609701B2 (en) Error data notification method and notification system in unidirectional serial data communication system
JP2752742B2 (en) Packet transmission device
KR102055504B1 (en) Discovery and bus arbitration method for nodes connected on a data bus and a device for said method
WO1991009366A1 (en) Method and apparatus for dispersed end-entity flow control in computer networks
JPH05284187A (en) Communication method for household wireless communication network
JPS6366462B2 (en)
JPH0722431B2 (en) Multiplex communication system
JPS62183638A (en) Multiple address communication control system in local area network

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