JPH0362755A - Address automatic setting method - Google Patents

Address automatic setting method

Info

Publication number
JPH0362755A
JPH0362755A JP1198981A JP19898189A JPH0362755A JP H0362755 A JPH0362755 A JP H0362755A JP 1198981 A JP1198981 A JP 1198981A JP 19898189 A JP19898189 A JP 19898189A JP H0362755 A JPH0362755 A JP H0362755A
Authority
JP
Japan
Prior art keywords
address
self
communication control
control device
value
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
JP1198981A
Other languages
Japanese (ja)
Other versions
JPH0693686B2 (en
Inventor
Akimasa Yamamoto
山本 暎正
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP19898189A priority Critical patent/JPH0693686B2/en
Publication of JPH0362755A publication Critical patent/JPH0362755A/en
Publication of JPH0693686B2 publication Critical patent/JPH0693686B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To set its own address with one procedure depending on a multiple address command and principles of contention control. CONSTITUTION:A communication controller 31 going to set its own address sends a multiple address packet to a transmission medium 30. Upon the receipt of the multiple address packet, communication controllers 3m, 3m+1... connecting to the transmission medium 30 are going to return a reply signal. Then a communication controller having the least address survives. The communication controller 1 receives a reply signal packet from the communication controller (m) to recognize the address to be (n) and the communication controller 31 adopts (n-1) as its own address.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は 共通線を用いたマルチドロップ型の通信制御
システムにおける自己アドレス自動設定方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a self-address automatic setting method in a multi-drop type communication control system using a common line.

従来の技術 従来 このような通信制御システムにおけるアドレス設
定方式としては、 手動式と自動式かあった 手動式の
場合は第4図に示した如く、ハードウェア、例えばデイ
ツプスイッチ等によるアドレス設定部41により手動で
設定し 電源オン時にあるいは、 必要な時に通信制御
装置42がこのアドレス設定部41の状態を読み取る方
式である。この方法は 設定そのものは比較的簡単であ
る力交 同一通信システム内における全ての通信制御装
置のアドレスを事前に知っておくことが必要である。ま
た誤操作により同一アドレスの重複設定等の間匙があり
、システム設置時や通信制御装置の追加時には 十分気
を付ける事が必要であつ丸次に 従来の自動設定方式に
一ついで説明する。
Conventional Technology Conventionally, there are two types of address setting methods in such communication control systems: manual and automatic. In the case of manual, as shown in Figure 4, an address setting section using hardware, such as a dip switch, is used. 41, and the communication control device 42 reads the state of the address setting section 41 when the power is turned on or when necessary. This method is relatively simple to set up. It is necessary to know the addresses of all communication control devices in the same communication system in advance. In addition, due to incorrect operations, duplicate settings of the same address can occur, so it is necessary to be very careful when installing a system or adding a communication control device.

第5図において、今自己アドレスを設定しようとする通
信制御装置を通信制all装置;〕1とすると、通信制
御装置51は、 自分のとり得る値例えば’AJを、 
自分の仮アドレスとして、適ijiな構y& (あらか
じめ決められた自己アドレス設定時に使用するデータ構
成を有するパケット)のバ17− 、、 l甲で、その
値を相手アドレスどしで伝J媒体ヒに送出する。この場
合、 自己アドレスも先程の値と同じ、即ちパケット中
では、 自己アドレスと相手アドレスが同じ値のパケッ
トとなる。このような構成のパケットを、同一伝送媒体
)I J、:接続された残りの通信制御装置52〜5n
が受信する。もし 通信制御装置52〜5n中に自己ア
ト1ノスか通信制御装置51と同じ「A」が存在した場
合、通信制御装置52〜5nの中の1台が肯定応答を戻
机 通信制御装置51ば。
In FIG. 5, if the communication control device that is about to set its own address is communication control all device;
As your own temporary address, send a packet with an appropriate structure & (a packet with a predetermined data structure used when setting your own address), and transmit that value to the other party's address on the media. Send to. In this case, the self address is also the same value as before, that is, in the packet, the self address and the destination address have the same value. A packet having such a configuration is transmitted to the remaining communication control devices 52 to 5n connected to the same transmission medium.
is received. If one of the communication control devices 52 to 5n contains a self-attachment number or the same “A” as the communication control device 51, one of the communication control devices 52 to 5n returns an affirmative response. .

この肯定応答を受信すると、すでに同一アト1ノスを有
する通信制御装置が存在していることを認識し 続いて
、前回と異なるアドレス「B」に対し同一の手順を繰返
す。通信制御装置5]i上 上記した手順を否定応答(
無応答)があるまで繰返づ−。
When this acknowledgment is received, it recognizes that a communication control device with the same At1nos already exists, and then repeats the same procedure for address "B", which is different from the previous one. Communication control device 5]
Repeat until there is no response.

はじめて否定応答があった場合には、 その時使用した
アドレス値は その通信制御システム内には存在してい
ない事であり、この時の値を持って自己アドレスとする
。 この方式は、 自分が取り得るアドレス範囲が狭い
場合にば かなり有効である力\ アドレス範囲が広い
場合にil  同−千111Mの繰返しが非常に多くな
り、設定までに時間を要する欠点がある。
When a negative response is received for the first time, the address value used at that time does not exist within the communication control system, and the value at that time is used as the self-address. This method is quite effective when the available address range is narrow, but when the address range is wide, the disadvantage is that it requires a lot of repetition, and it takes time to set up.

発明が解決しようとする課題 従来例で述べた如く、自己アドレス設定の為に同一手順
を繰返し実行する為 多くの時間が必要であつ1.:。
Problems to be Solved by the Invention As mentioned in the conventional example, it takes a lot of time to repeatedly execute the same procedure for setting the self address. :.

課題を解決するための手段 前記した課題を解決するA 本発明の自己アドレス設定
方式は、 自己アトlメスを設定しようとする通信制御
装置は、−・斉同軸コマンドにて、同一の伝送媒体に接
続された他の通信制御装置の全てに対し応答信号を要求
し 前記他の通信制御装置(上 前記一斉同報コマンド
を受信すると、あらかじめ決められたパケットフォーマ
ットで応答信号を競合制御を行ないながら返送し 前記
自己アドレスを設定しようとする通信制御装置は 前記
他の通信制御装置からの勝ち残った最初の応答信号中に
含まれる相手アドレスに基ずき、 自己アドレスを決定
する。
Means for Solving the Problems A. The self-address setting method of the present invention solves the above-mentioned problems. A communication control device that attempts to set a self-address address can communicate with the same transmission medium using a simultaneous coaxial command. Requests a response signal from all other connected communication control devices, and sends back a response signal in a predetermined packet format while controlling contention. The communication control device attempting to set its own address determines its own address based on the other party's address included in the first surviving response signal from the other communication control device.

イ乍用 一斉同報コマンド、及び競合制御の原理により、−回の
手順で、自己アドレスを設定することかできる。
By using the simultaneous broadcast command and the principle of contention control, it is possible to set the own address in - steps.

実施例 図を用いて、競合制御のルール力\ 小さいアドレス値
の方が勝ち残る場合の本発明になる自己アドレス設定方
式について説明する。第1図は斉同報パケットの1例に
ついて示したものである。
The self-address setting method according to the present invention in the case where the smaller address value survives will be described with reference to embodiment diagrams. FIG. 1 shows an example of a simultaneous broadcast packet.

パケットの先頭部にこのパケットか同報であるというパ
ケット識別部11を有し 自己アドレス部12゜相手ア
ドレス部13及びデータ部14で構成される。
It has a packet identification section 11 at the head of the packet that indicates that this packet is a broadcast, and is composed of a self address section 12, a destination address section 13, and a data section 14.

この時の自己アドレス部は、 あらかじめ決められたア
ドレス体系の最大値を取り相手アドレス部13は、 適
当なダミーの値で良い。データ部14には自己アドレス
設定用パケットである事を示す情報を含んでいる。第2
図は、 一斉同報パケットに対する応答信号パケットの
1例を示している。パケットの先頭には、 一斉同報パ
ケットと同様にパケット識別部21を有する力上 応答
信号パケットの場合は、 全て同じとなる。自己アドレ
ス部22には、それぞれの通信制御装置のアドレスn、
n+1・・・・・・カニ相手アドレス部23には、 一
斉同報パケットを送信した通信制御装置のアドレスバ 
データ部24には、このパケットが自己アドレス設定用
の一斉同報パケットに対する応答信号パケットであると
いう情報を含んでいる。次に 自己アドレス設定手順に
ついて説明する。
At this time, the self address field may be the maximum value of the predetermined address system, and the partner address field 13 may be an appropriate dummy value. The data portion 14 includes information indicating that the packet is a self-address setting packet. Second
The figure shows an example of a response signal packet to a simultaneous broadcast packet. In the case of a force response signal packet, which has a packet identification section 21 at the beginning of the packet, similar to a simultaneous broadcast packet, all of them are the same. The self-address section 22 contains the address n of each communication control device,
n+1...The crab destination address field 23 contains the address bar of the communication control device that sent the broadcast packet.
The data portion 24 includes information that this packet is a response signal packet to a self-address setting broadcast packet. Next, the self-address setting procedure will be explained.

第3図において自己アドレスを設定しようとする通信制
御装置311よ 第1図で示された一斉回報パケットを
伝送媒体30上に送出する。伝送媒体30に接続され自
己アドレスとしてそれぞれn 、 n +]・・・・・
・を有する通信制御装置3 m 、 3 m−1−]・
・・・・・・は、 この一斉同報パケットを受信すると
、第2図で示したパケットフォーマット そうとする。競合制御ルール力\ 小さいアドレス値が
勝ち残る場合、伝送媒体」二へのアト1ノス値送出は、
 MSBから行なわれ 「01が「1−1よりも強い。
In FIG. 3, the communication control device 311 attempting to set its own address sends out the broadcast packet shown in FIG. 1 onto the transmission medium 30. connected to the transmission medium 30 and used as self-addresses n, n+]...
・Communication control device 3 m, 3 m-1-]・
..., when receiving this simultaneous broadcast packet, attempts to format the packet as shown in Figure 2. Conflict control rule force \ If the smaller address value survives, sending the at1nos value to the transmission medium ``2'' is
Starting from the MSB, ``01 is stronger than ``1-1.''

伝送媒体」二で競合が発生した場合には「1」を送出し
た通信制御装置は、 それ洩後のアドレス値送出を停止
する。このl\ 一番小さいアドレスを有する通信制御
装置か勝ち残ることになる。従って、この場合、アドレ
ス値nを有する通信制御装置mが勝ち残ることになる。
If a conflict occurs on transmission medium 2, the communication control device that sent out 1 stops sending address values after that. The communication control device with the smallest address will survive. Therefore, in this case, the communication control device m having the address value n will survive.

最終11.Jに+,1.。Final 11. + to J, 1. .

通信制御装置1は、 通信制御装置fflからの応答信
号パケットを受信し そのアドレスかnであることを知
る。競合制御のルールから、前記伝送媒体に接続された
通信制御装置のアドレスは、 全てnより大きい値であ
ることから、通信制御製置31(友自己アドレスとして
(n−1.)を採用4′れtic  onニーのアドレ
ス値を設定することができる。勿論、競合制御のルール
が大きいアドレス値の方が勝ち残る場合についても同様
に考える事ができ、この場合には、 自己アドレス値と
して(n+1)とすることにより、唯一のアドレスとな
る。また同報パケットの識別方法は、 この例の如く、
パケットに識別子を設けることでも可能であるし 特別
の相手アドレスを同報パケットを定義することも可能で
ある。
The communication control device 1 receives the response signal packet from the communication control device ffl and learns that the address is n. According to the rules of contention control, the addresses of the communication control devices connected to the transmission medium are all larger than n. It is possible to set the address value of the tic on knee.Of course, the same can be considered in the case where the address value with the larger contention control rule wins, and in this case, (n+1) is set as the own address value. By doing this, it becomes a unique address.Also, the method for identifying broadcast packets is as shown in this example.
This is possible by providing an identifier in the packet, and it is also possible to define a broadcast packet with a special destination address.

発明の効果 以上述べた如く、本発明になる自己アドレス設定方式を
用いれは −回の手順で自己アドレスを設定することが
可能であり、 システムへの通信制御装置の追加が容易
に行なえる。
Effects of the Invention As described above, using the self-address setting method of the present invention, it is possible to set the self-address in - steps, and a communication control device can be easily added to the system.

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

第1図は本発明の自己アドレス自動設定方式における一
斉同報コマンドパケットの1例を示すフォーマット阻 
 第2図は一斉回報コマンドパケットに対する応答信号
パケットの]例を示すフォーマット図、第3図自動アド
レス設定手順を説明する為の/ステム構成刷 第4図は
従来例における自己アドレス手動設定方式を説明するた
めのブロックは 第5図は従来例における自己アドレス
自動設定方式を説明するためのシステム構成図である。
FIG. 1 shows a format block diagram showing an example of a simultaneous broadcast command packet in the self-address automatic setting method of the present invention.
Fig. 2 is a format diagram showing an example of a response signal packet to a broadcast command packet, Fig. 3 is a /stem configuration diagram for explaining the automatic address setting procedure Fig. 4 is an illustration of a conventional self-address manual setting method FIG. 5 is a system configuration diagram for explaining a self-address automatic setting method in a conventional example.

Claims (7)

【特許請求の範囲】[Claims] (1)複数の通信制御装置が同一の伝送媒体を共有する
マルチドロップ型のネットワークで、かつCSMA/C
D方式による通信プロトコルを使用した通信制御システ
ムにおいて、ある特定の通信制御装置が、一斉同報コマ
ンドにて、同一の伝送媒体に接続された他の通信制御装
置の全てに対し応答信号を要求し、前記他の通信制御装
置は前記一斉同報コマンドを受信すると、あらかじめ決
められたパケットフォーマットで、応答信号を競合制御
を行ないながら返送し前記特定の通信制御装置は、前記
他の通信制御装置からの勝ち残った最初の応答信号中に
含まれる相手アドレスに基ずき、自己アドレスを決める
ことを特徴とする自己アドレス自動設定方式。
(1) A multi-drop network in which multiple communication control devices share the same transmission medium, and CSMA/C
In a communication control system using a communication protocol based on the D method, a specific communication control device requests response signals from all other communication control devices connected to the same transmission medium using a simultaneous broadcast command. , when the other communication control device receives the simultaneous broadcast command, it returns a response signal in a predetermined packet format while performing competition control, and the specific communication control device receives the response signal from the other communication control device. A self-address automatic setting method characterized in that the self-address is determined based on the other party's address contained in the first response signal that survives.
(2)通信制御装置が電源オンされた時に、自己アドレ
スを自動的に設定することを特徴とする特許請求の範囲
第1項記載の自己アドレス自動設定方式。
(2) The self-address automatic setting method according to claim 1, wherein the self-address is automatically set when the communication control device is powered on.
(3)通信制御装置が、電源オンされたイニシャル時に
は、あらかじめ決められたアドレス体系の最大値あるい
は最小値をデフォルト値として自己アドレスとすること
を特徴とする特許請求の範囲第1項記載の自己アドレス
自動設定方式。
(3) When the communication control device is initially turned on, the communication control device uses the maximum value or the minimum value of a predetermined address system as a default value as its own address. Address automatic setting method.
(4)競合制御にて、ルールとして小さい値のアドレス
値を有するパケットの方が勝ち残る場合には、イニシャ
ルの自己アドレス値としてあらかじめ決められたアドレ
ス体系の最大値を、一方、大きい値のアドレス値を有す
るパケットの方が勝ち残る場合には、イニシャルの自己
アドレス値として、あらかじめ決められたアドレス体系
の最小値を自己アドレスのデフォルト値とすることを特
徴とする、特許請求の範囲第3項記載の自己アドレス自
動設定方式。
(4) In competition control, if the packet with the smaller address value survives as a rule, the maximum value of the predetermined address system is set as the initial self-address value, while the larger address value Claim 3, characterized in that, if a packet having . Self-address automatic setting method.
(5)競合制御にて、ルールとして小さい値のアドレス
値を有するパケットの方が勝ち残る場合には、前記他の
通信制御装置からの勝ち残った最初の応答信号中に含ま
れるアドレス値より1だけ小さい値を自己アドレスとし
、ルールとして、大きい値のアドレス値を有するパケッ
トの方が勝ち残る場合には、前記他の通信制御装置から
の勝ち残った最初の応答信号中に含まれるアドレスより
1だけ大きい値を自己アドレスとすることを特徴とする
特許請求の範囲第1項記載の自己アドレス自動設定方式
。
(5) In competition control, if a packet with a smaller address value survives as a rule, the address value is 1 smaller than the address value included in the winning first response signal from the other communication control device. value as the self-address, and as a rule, if a packet with a larger address value survives, the value is 1 larger than the address included in the winning first response signal from the other communication control device. The self-address automatic setting method according to claim 1, characterized in that the self-address is a self-address.
(6)特定の通信制御装置からの一斉同報コマンドを受
信し、これに対する応答信号を返送するに際し、競合制
御で負けて自分の応答信号の送出ができなかった場合に
は、その後の、応答信号の再送信を中止することを特徴
とする特許請求の範囲第1項記載の自己アドレス自動設
定方式。
(6) When receiving a simultaneous broadcast command from a specific communication control device and sending back a response signal in response, if you are unable to send your own response signal due to competitive control, the subsequent response The self-address automatic setting method according to claim 1, characterized in that retransmission of the signal is stopped.
(7)決定された自己アドレスを相手先アドレスとして
伝送パケットを構成し、この伝送パケットを、通信制御
装置から伝送媒体上に送出し、この時あらかじめ決めら
れたプロトコルに従がったAck信号を受信するかしな
いかを複数回実行し、Ack信号を受信しなかった場合
には、前記アドレスを自己アドレスとして採用し、Ac
k信号を受信した場合には、再度、自己アドレスの決定
手順を実行することを特徴とする、特許請求の範囲第1
項記載の自己アドレス設定方式。
(7) Construct a transmission packet using the determined self address as the destination address, send this transmission packet from the communication control device onto the transmission medium, and at this time send an Ack signal according to a predetermined protocol. If the Ack signal is not received after determining whether or not to receive the signal multiple times, the address is adopted as the own address and the Ack signal is not received.
Claim 1, characterized in that when the k signal is received, the self-address determination procedure is executed again.
Self-address setting method described in section.
JP19898189A 1989-07-31 1989-07-31 Address automatic setting method Expired - Lifetime JPH0693686B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19898189A JPH0693686B2 (en) 1989-07-31 1989-07-31 Address automatic setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19898189A JPH0693686B2 (en) 1989-07-31 1989-07-31 Address automatic setting method

Publications (2)

Publication Number Publication Date
JPH0362755A true JPH0362755A (en) 1991-03-18
JPH0693686B2 JPH0693686B2 (en) 1994-11-16

Family

ID=16400135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19898189A Expired - Lifetime JPH0693686B2 (en) 1989-07-31 1989-07-31 Address automatic setting method

Country Status (1)

Country Link
JP (1) JPH0693686B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06132961A (en) * 1992-10-20 1994-05-13 Mitsubishi Electric Corp Communication control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06132961A (en) * 1992-10-20 1994-05-13 Mitsubishi Electric Corp Communication control device

Also Published As

Publication number Publication date
JPH0693686B2 (en) 1994-11-16

Similar Documents

Publication Publication Date Title
JPH02261237A (en) Electronic equipment with communication function
US6608571B1 (en) System and method for communicating over a one-wire bus
JPH02228854A (en) Data communication system and data communication method
CN110278196B (en) Multi-destination burst protocol
KR0165440B1 (en) Polling communication method
JPH01289339A (en) Communication controller
JPH0693686B2 (en) Address automatic setting method
KR100539518B1 (en) method for arbitrating Asynchronous Packet in bus system
JPH0856391A (en) Transmission equipment
JPH11215132A (en) Information processing apparatus and method, and providing medium
JPH07202842A (en) Data transmission equipment
JPH022252A (en) Communication network control method
JPS585061A (en) Multidrop transmission system
JPH05128053A (en) Gateway
JPH022246A (en) Communication network control method
JPS6215953A (en) Data transmission control method
JPH04336727A (en) Automatic addressing method
JPS59127450A (en) Transmission control system
JPH06112961A (en) Bus address duplication detection method
JPH04320128A (en) Communication system
JPH02217039A (en) Poling/selecting control procedure system
JPS63214040A (en) Terminal status management method
JPH05235958A (en) Transmission controller in lan
JPS6018038A (en) Data transfer system
JPS62176236A (en) Method for preventing transmission error at reply packet transmission