JPH0693686B2 - Address automatic setting method - Google Patents
Address automatic setting methodInfo
- Publication number
- JPH0693686B2 JPH0693686B2 JP19898189A JP19898189A JPH0693686B2 JP H0693686 B2 JPH0693686 B2 JP H0693686B2 JP 19898189 A JP19898189 A JP 19898189A JP 19898189 A JP19898189 A JP 19898189A JP H0693686 B2 JPH0693686 B2 JP H0693686B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- communication control
- control device
- self
- communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 26
- 230000005540 biological transmission Effects 0.000 claims description 12
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
Landscapes
- Small-Scale Networks (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、共通線を用いたマルチドロップ型の通信制御
システムにおける自己アドレス自動設定方式に関する。TECHNICAL FIELD 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の状態を読み取る方式である。
この方法は、設定そのものは比較的簡単であるが、同一
通信システム内における全ての通信制御装置のアドレス
を事前に知っておくことが必要である。また誤操作によ
り同一アドレスの重複設定等の問題があり、システム設
置時や通信制御装置の追加時には、十分気を付ける事が
必要であった。2. Description of the Related Art Conventionally, there have been a manual type and an automatic type as an address setting method in such a communication control system. In the case of the manual type, as shown in FIG. 4, it is manually set by hardware, for example, by the address setting unit 41 by a dip switch, and when the power is turned on or when necessary, the communication control device 42 is used.
Is a method of reading the state of the address setting unit 41.
In this method, the setting itself is relatively simple, but it is necessary to know the addresses of all communication control devices in the same communication system in advance. In addition, there is a problem such as duplicate setting of the same address due to erroneous operation, and it is necessary to be careful when installing the system or adding a communication control device.
次に、従来の自動設定方式について説明する。第5図に
おいて、今自己アドレスを設定しようとする通信制御装
置を通信制御装置51とすると、通信制御装置51は、自分
のとり得る値例えば「A」を、自分の仮アドレスとし
て、適当な構成(あらかじめ決められた自己アドレス設
定時に使用するデータ構成を有するパケット)のパケッ
ト中で、その値を相手アドレスとして伝送媒体上に送出
する。この場合、自己アドレスも先程の値と同じ、即ち
パケット中では、自己アドレスと相手アドレスが同じ値
のパケットとなる。このような構成のパケットを、同一
伝送媒体上に接続された残りの通信制御装置52〜5nが受
信する。もし、通信制御装置52〜5n中に自己アドレスが
通信制御装置51と同じ「A」が存在した場合、通信制御
装置52〜5nの中の1台が肯定応答を戻す。通信制御装置
51は、この肯定応答を受信すると、すでに同一アドレス
を有する通信制御装置が存在していることを認識し、続
いて、前回と異なるアドレス「B」に対し同一の手順を
繰返す。通信制御装置51は、上記した手順を否定応答
(無応答)があるまで繰返す。はじめて否定応答があっ
た場合には、その時使用したアドレス値は、その通信制
御システム内には存在していない事であり、この時の値
を持って自己アドレスとする。この方式は、自分が取り
得るアドレス範囲が狭い場合には、かなり有効である
が、アドレス範囲が広い場合には、同一手順の繰返しが
非常に多くなり、設定までに時間を要する欠点がある。Next, a conventional automatic setting method will be described. In FIG. 5, assuming that the communication control device which is about to set its own address is the communication control device 51, the communication control device 51 uses a value that it can take, for example, "A", as its temporary address and an appropriate configuration. In a packet of (a packet having a data structure used at the time of setting a predetermined self address), that value is transmitted as the partner address onto the transmission medium. In this case, the self address is the same as the previous value, that is, the self address and the partner address are the same in the packet. The remaining communication control devices 52 to 5n connected on the same transmission medium receive the packet having such a configuration. If an "A" having the same address as the communication control device 51 exists in the communication control devices 52-5n, one of the communication control devices 52-5n returns a positive response. Communication control device
Upon receiving this acknowledgment, 51 recognizes that a communication control device having the same address already exists, and then repeats the same procedure for the address "B" different from the previous time. The communication control device 51 repeats the above-described procedure until there is a negative response (no response). When there is a negative response for the first time, the address value used at that time does not exist in the communication control system, and the value at this time is used as the self-address. This method is quite effective when the address range that can be taken is narrow, but when the address range is wide, the same procedure is repeated too often, and there is a drawback that it takes time to set.
発明が解決しようとする課題 従来例で述べた如く、自己アドレス設定の為に同一手順
を繰返し実行する為、多くの時間が必要であった。Problems to be Solved by the Invention As described in the conventional example, a lot of time is required because the same procedure is repeatedly executed for self-address setting.
課題を解決するための手段 前記した課題を解決する為、本発明の自己アドレス設定
方式は、自己アドレスを設定しようとする通信制御装置
は、一斉同報コマンドにて、同一の伝送媒体に接続され
た他の通信制御装置の全てに対し応答信号を要求し、前
記他の通信制御装置は、前記一斉同報コマンドを受信す
ると、あらかじめ決められたパケットフォーマットで応
答信号を競合制御を行ないながら返送し、前記自己アド
レスを設定しようとする通信制御装置は、前記他の通信
制御装置からの勝ち残った最初の応答信号中に含まれる
相手アドレスに基ずき、自己アドレスを決定する。Means for Solving the Problems In order to solve the above-mentioned problems, in the self-address setting method of the present invention, the communication control device which attempts to set the self-address is connected to the same transmission medium by the simultaneous broadcast command. Requesting a response signal to all the other communication control devices, and when the other communication control device receives the broadcast command, the other communication control device returns a response signal in a predetermined packet format while performing contention control. The communication control device that intends to set the self-address determines the self-address based on the partner address contained in the first remaining unanswered response signal from the other communication control device.
作用 一斉同報コマンド、及び競合制御の原理により、一回の
手順で、自己アドレスを設定することができる。Action The self-address can be set in a single procedure by the simultaneous broadcast command and the principle of contention control.
実施例 図を用いて、競合制御のルールが、小さいアドレス値の
方が勝ち残る場合の本発明になる自己アドレス設定方式
について説明する。第1図は、一斉同報パケットの1例
について示したものである。パケットの先頭部にこのパ
ケットがが同報であるというパケット識別部11を有し、
自己アドレス部12、相手アドレス部13及びデータ部14で
構成される。この時の自己アドレス部は、あらかじめ決
められたアドレス体系の最大値を取り相手アドレス部13
は、適当なダミーの値で良い。データ部14には、自己ア
ドレス設定用パケットである事を示す情報を含んでい
る。第2図は、一斉同報パケットに対する応答信号パケ
ットの1例を示している。パケットの先頭には、一斉同
報パケットと同様にパケット識別部21を有するが、応答
信号パケットの場合は、全て同じとなる。自己アドレス
部22には、それぞれの通信制御装置のアドレスn,n+1・
・・・・・が、相手アドレス部23には、一斉同報パケットを
送信した通信制御装置のアドレスが、データ部24には、
このパケットが自己アドレス設定用の一斉同報パケット
に対する応答信号パケットであるという情報を含んでい
る。次に、自己アドレス設定手順について説明する。Example A self-address setting method according to the present invention in which a rule of contention control has a smaller address value and wins will be described with reference to the drawings. FIG. 1 shows an example of a broadcast packet. At the head of the packet, has a packet identification unit 11 that this packet is broadcast,
It is composed of a self address section 12, a partner address section 13 and a data section 14. At this time, the self address part takes the maximum value of the predetermined address system and the partner address part 13
Is an appropriate dummy value. The data section 14 includes information indicating that the packet is a self-address setting packet. FIG. 2 shows an example of a response signal packet for a broadcast packet. The packet identification section 21 is provided at the head of the packet, as in the broadcast packet, but the response signal packets are all the same. The self-address section 22 has addresses n, n + 1.
..., the address of the communication control device that transmitted the broadcast packet is stored in the partner address part 23, and the data part 24 is stored in the data part 24.
It contains information that this packet is a response signal packet to the broadcast packet for self address setting. Next, the self-address setting procedure will be described.
第3図において自己アドレスを設定しようとする通信制
御装置31は、第1図で示された一斉同報パケットを伝送
媒体30上に送出する。伝送媒体30に接続された自己アド
レスとしてそれぞれn,n+1・・・・・・を有する通信制御装
置3m,3m+1・・・・・・・は、この一斉同報パケットを受信す
ると、第2図で示したパケットフォーマットで応答信号
を返そうとする。競合制御ルールが、小さいアドレス値
が勝ち残る場合、伝送媒体上へのアドレス値送出は、MS
Bから行なわれ、「0」が「1」よりも強い。伝送媒体
上で競合が発生した場合には、「1」を送出した通信制
御装置は、それ以後のアドレス値送出を停止する。この
為、一番小さいアドレスを有する通信制御装置が勝ち残
ることになる。従って、この場合、アドレス値nを有す
る通信制御装置mが勝ち残ることになる。最終時には、
通信制御装置1は、通信制御装置mからの応答信号パケ
ットを受信し、そのアドレスがnであることを知る。競
合制御のルールから、前記伝送媒体に接続された通信制
御装置のアドレスは、全てnより大きい値であることか
ら、通信制御装置31は、自己アドレスとして(n−1)
を採用すれば、唯一のアドレス値を設定することでき
る。勿論、競合制御のルールが大きいアドレス値の方が
勝ち残る場合についても同様に考える事ができ、この場
合には、自己アドレス値として(n+1)とすることに
より、唯一のアドレスとなる。また同報パケットの識別
方法は、この例の如く、パケットに識別子を設けること
でも可能であるし、特別の相手アドレスを同報パケット
を定義することも可能である。In FIG. 3, the communication control device 31 which attempts to set its own address sends the broadcast packet shown in FIG. 1 onto the transmission medium 30. When the communication control devices 3m, 3m + 1 ..., Which are connected to the transmission medium 30 and have n, n + 1 ... Attempts to return a response signal in the indicated packet format. If the contention control rule is such that a small address value wins, the transmission of the address value on the transmission medium is
Performed from B, "0" is stronger than "1". When contention occurs on the transmission medium, the communication control device that has sent "1" stops the subsequent sending of the address value. Therefore, the communication control device having the smallest address will win. Therefore, in this case, the communication control device m having the address value n will win. At the end,
The communication control device 1 receives the response signal packet from the communication control device m and knows that its address is n. According to the rule of contention control, since the addresses of the communication control devices connected to the transmission medium are all values larger than n, the communication control device 31 uses (n-1) as its own address.
If you use, you can set only one address value. Of course, the same consideration can be applied to the case where an address value having a larger contention control rule is more likely to win. In this case, the self address value is set to (n + 1) so that the address becomes a unique address. Further, the method of identifying the broadcast packet can be provided by providing an identifier to the packet as in this example, or the broadcast packet can be defined with a special partner address.
発明の効果 以上述べた如く、本発明になる自己アドレス設定方式を
用いれば、一回の手順で自己アドレスを設定することが
可能であり、システムへの通信制御装置の追加が容易に
行なえる。EFFECTS OF THE INVENTION As described above, if the self-address setting method according to the present invention is used, the self-address can be set in a single procedure, and the communication control device can be easily added to the system.
第1図は本発明の自己アドレス自動設定方式における一
斉同報コマンドパケットの1例を示すフォーマット図、
第2図は一斉同報コマンドパケットに対する応答信号パ
ケットの1例を示すフォーマット図、第3図自動アドレ
ス設定手順を説明する為のシステム構成図、第4図は従
来例における自己アドレス手動設定方式を説明するため
のブロック図、第5図は従来例における自己アドレス自
動設定方式を説明するためのシステム構成図である。 11,21……パケット識別部、12,22……自己アドレス部、
13,23……相手アドレス部、14,24……データ部、31,3m,
3m+1……通信制御装置。FIG. 1 is a format diagram showing an example of a broadcast command packet in the self-address automatic setting method of the present invention,
2 is a format diagram showing an example of a response signal packet for a broadcast command packet, FIG. 3 is a system configuration diagram for explaining the automatic address setting procedure, and FIG. 4 is a self address manual setting method in the conventional example. FIG. 5 is a block diagram for explaining, and FIG. 5 is a system configuration diagram for explaining a self-address automatic setting method in a conventional example. 11,21 …… Packet identification part, 12,22 …… Self address part,
13,23 …… Partner address part, 14,24 …… Data part, 31,3m,
3m + 1 …… Communication control device.
Claims (2)
有するマルチドロップ型のネットワークで、かつCSMA/C
D方式による通信プロトコルを使用した通信制御システ
ムにおいて、前記通信制御装置は、他の通信制御装置と
の送受信を制御する通信制御部と、通信制御システムの
通信ルールを選択する通信設定部と、通信ルール設定部
に設定された情報と、前記通信制御部からの他の通信制
御装置のアドレスから自己アドレスを演算する為のアド
レス処理設定部と、その演算結果を格納しておく為のア
ドレス格納部とを備えており、ある特定の通信制御装置
が、一斉同報コマンドにて、同一の伝送媒体に接続され
た他の通信制御装置の全てに対し応答信号を要求し、前
記他の通信制御装置は、前記一斉同報コマンドを受信す
ると、あらかじめ決められたパケットフォーマットで、
応答信号を競合制御を行ないながら返送し、前記特定の
通信制御装置は、前記他の通信制御装置からの勝ち残っ
た最初の応答信号中に含まれる相手アドレス情報を通信
制御部を介して、アドレス処理設定部で演算を行ない、
前記相手アドレス情報と、前記通信ルール設定部で選択
した情報に基き自己アドレスを決定し、その情報をアド
レス格納部に記憶することを特徴とする自己アドレス設
定方式。1. A multi-drop type network in which a plurality of communication control devices share the same transmission medium, and CSMA / C
In a communication control system using a communication protocol according to the D method, the communication control device, a communication control unit for controlling transmission and reception with another communication control device, a communication setting unit for selecting a communication rule of the communication control system, communication An address processing setting unit for calculating the self address from the information set in the rule setting unit, the address of the other communication control device from the communication control unit, and an address storage unit for storing the calculation result. A specific communication control device requests a response signal to all other communication control devices connected to the same transmission medium by a broadcast command, and the other communication control device When receiving the broadcast command, the
The response signal is returned while performing contention control, and the specific communication control device performs address processing on the other party address information contained in the first remaining response signal from the other communication control device via the communication control unit. The setting section calculates
A self-address setting method characterized in that a self-address is determined based on the partner address information and information selected by the communication rule setting unit, and the information is stored in an address storage unit.
ールとしてアドレス値が大きい方が勝ち残る場合は、+
1を、アドレス値が小さい方が勝ち残る場合には、−1
を、前記他の通信制御装置からの勝ち残った最初の応答
信号中に含まれる相手アドレスに加算あるいは減算した
アドレスを、自己アドレスとすることを特徴とする自己
アドレス設定方式。2. A specific communication control device, as a rule of the contention control method, if a larger address value wins, +
1 if the smaller address value survives, -1
Is a self-address setting method in which the address obtained by adding or subtracting to the other party address included in the first remaining unanswered response signal from the other communication control device is used as the self-address.
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 JPH0362755A (en) | 1991-03-18 |
| JPH0693686B2 true 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) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2844036B2 (en) * | 1992-10-20 | 1999-01-06 | 三菱電機株式会社 | Communication control device |
-
1989
- 1989-07-31 JP JP19898189A patent/JPH0693686B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0362755A (en) | 1991-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4410889A (en) | System and method for synchronizing variable-length messages in a local area network data communication system | |
| US4430651A (en) | Expandable and contractible local area network system | |
| US4423414A (en) | System and method for name-lookup in a local area network data communication system | |
| JP3461850B2 (en) | Data exchange method and data communication device in data processing device | |
| JPH0693686B2 (en) | Address automatic setting method | |
| JP3134823B2 (en) | Automatic setting method of IP address in TCP / IP network | |
| US20220141153A1 (en) | Server communication method, broadband access server, and system | |
| KR0165440B1 (en) | Polling communication method | |
| WO2004071027A1 (en) | Methods and systems for non-disruptive physical address resolution | |
| US6816888B2 (en) | Communication process and system with service access points and groups of references where participant addresses are used to access a particular reference | |
| JPS6113839A (en) | Data transmission control method | |
| JP3414486B2 (en) | Node communication device | |
| JPH04336727A (en) | Automatic addressing method | |
| JPH03127531A (en) | Address setting method | |
| JP2543105B2 (en) | Communication control device | |
| JP3703603B2 (en) | Virtual terminal | |
| JPH0418652A (en) | data communication system | |
| CN120711537A (en) | Data transmission method, device, electronic device and storage medium | |
| JPS60132433A (en) | Automatic adapting system of baud rate | |
| JPH05143491A (en) | Device health check system | |
| JPH02217039A (en) | Poling/selecting control procedure system | |
| JPS62299139A (en) | Multiple address communication system | |
| JPH0528541B2 (en) | ||
| JPH022252A (en) | Communication network control method | |
| JPS61171376U (en) |