JPH0738582A - Terminal address setting method - Google Patents

Terminal address setting method

Info

Publication number
JPH0738582A
JPH0738582A JP5158360A JP15836093A JPH0738582A JP H0738582 A JPH0738582 A JP H0738582A JP 5158360 A JP5158360 A JP 5158360A JP 15836093 A JP15836093 A JP 15836093A JP H0738582 A JPH0738582 A JP H0738582A
Authority
JP
Japan
Prior art keywords
address
terminal device
setting request
terminal
address setting
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.)
Withdrawn
Application number
JP5158360A
Other languages
Japanese (ja)
Inventor
Kazuo Okada
一穂 岡田
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 Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP5158360A priority Critical patent/JPH0738582A/en
Publication of JPH0738582A publication Critical patent/JPH0738582A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To automatically set the address of each terminal equipment at a network to which plural terminal equipments are connected. CONSTITUTION:When address setting request signals are simultaneously outputted from plural terminal equipments 1, the collision of address setting request signals is detected by an address request overlap detection part 15 provided at the terminal equipment 1, the address setting request signal is outputted again after the lapse of waiting time T set for each terminal equipment 1 at random and afterwards, a managing terminal equipment 2 receives the first outputted address setting request signal of the terming equipment 1, extracts an idle address number with an address table 24 and reports this address number to that terminal equipment 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネットワーク上の端末
装置のアドレスを自動的に設定する端末アドレス設定方
法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a terminal address setting method for automatically setting an address of a terminal device on a network.

【0002】[0002]

【従来の技術】従来、複数の端末装置とこれらの端末装
置のアドレスを管理する管理端末装置を有してなるネッ
トワークにおいて、各端末装置のアドレスを設定する場
合、端末装置に具備されたディップスイッチ等によりハ
ードウェア的に設定するか、予めROM等に記憶してお
くか、外部からアドレスを入力しRAM上に記憶する等
の方法が用いられていた。
2. Description of the Related Art Conventionally, in a network having a plurality of terminal devices and a management terminal device for managing the addresses of these terminal devices, when setting the address of each terminal device, a dip switch provided in the terminal device. For example, a method of setting by hardware, pre-storing in a ROM or the like, or externally inputting an address and storing it in the RAM has been used.

【0003】ところが、これらの方法は、端末装置毎に
人為的に設定する必要があり、特に、大規模なネットワ
ークでは、アドレス設定に多大の労力がかかるととも
に、人為的な設定ミス等の起こる可能性もあるという問
題があった。
However, in these methods, it is necessary to artificially set each terminal device, and particularly in a large-scale network, a great deal of labor is required for address setting, and an artificial setting error or the like may occur. There was a problem that there is also a sex.

【0004】そこで、特開平3−245633号公報で
は、端末装置と端末制御装置(管理端末装置)およびホ
スト処理装置からなるシステムにおいて、端末装置がホ
スト接続の要求を出した時、端末制御装置が端末装置の
アドレスを決定し、端末装置にこのアドレスを通知する
ことにより、自動的に端末装置のアドレスを設定する方
法が記載されている。
Therefore, in Japanese Patent Laid-Open No. 3-245633, in a system including a terminal device, a terminal control device (management terminal device) and a host processing device, when the terminal device issues a request for host connection, the terminal control device There is described a method of automatically setting the address of the terminal device by determining the address of the terminal device and notifying the terminal device of this address.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うなアドレス設定方法では、複数の端末装置から同時に
ホスト接続要求信号が出された場合、信号の衝突が起こ
り、アドレス設定ができないという問題点があった。
本発明は、上記の点に鑑みてなしたものであり、その目
的とするところは、複数の端末装置が接続されたネット
ワークにおいて、各端末装置のアドレスを自動的に設定
することのできる端末アドレス設定方法を提供すること
にある。
However, such an address setting method has a problem in that when a plurality of terminal devices simultaneously issue host connection request signals, signal collision occurs and address setting cannot be performed. It was
The present invention has been made in view of the above points, and an object thereof is to provide a terminal address capable of automatically setting an address of each terminal device in a network to which a plurality of terminal devices are connected. To provide a setting method.

【0006】[0006]

【課題を解決するための手段】本発明は、自己のアドレ
スを記憶しておくアドレスレジスタを有する端末装置
と、端末装置のアドレスを管理するアドレステーブルを
有する管理端末装置とを伝送路を介して接続してなるネ
ットワークの端末アドレス設定方法であって、前記端末
装置に、複数の端末装置から同時にアドレス設定要求信
号が出力されたことを検出するアドレス要求重複検出部
を付加し、アドレス設定すべき端末装置に対し、一旦同
一のアドレスを設定し、複数の端末装置から同時にアド
レス設定要求信号が出力された場合に、各端末装置で
は、アドレス要求重複検出部によりアドレス設定要求信
号の衝突を検出し、各端末装置毎にランダムに設定され
た所定時間の後に再度アドレス設定要求信号を出力し、
管理端末装置では、前記アドレス設定要求信号を受け
て、アドレステーブルにより空きアドレス番号を抽出
し、アドレス設定要求信号を出力した端末装置に前記ア
ドレス番号を通知するようにしたことを特徴とするもの
である。
According to the present invention, a terminal device having an address register for storing its own address and a management terminal device having an address table for managing the address of the terminal device are provided via a transmission line. A method for setting a terminal address of a network to be connected, wherein an address request duplication detection unit for detecting that address setting request signals are simultaneously output from a plurality of terminal devices should be added to the terminal device. When the same address is once set to the terminal device and the address setting request signal is output from a plurality of terminal devices at the same time, the address request duplication detecting unit detects the collision of the address setting request signal in each terminal device. , The address setting request signal is output again after a predetermined time set randomly for each terminal device,
The management terminal device receives the address setting request signal, extracts an empty address number from the address table, and notifies the address number to the terminal device that outputs the address setting request signal. is there.

【0007】[0007]

【作用】本発明の端末アドレス設定方法にあっては、複
数の端末装置から同時にアドレス設定要求信号が出され
た場合には、端末装置に設けたアドレス要求重複検出部
により、アドレス設定要求信号の衝突を検出し、各端末
装置毎にランダムに設定された待ち時間の後に再度アド
レス設定要求信号を出力し、管理端末装置では、その後
最もはやく出力されたれた端末装置のアドレス設定要求
信号を受信し、アドレステーブルにより空きアドレス番
号を抽出し、このアドレス番号を前記端末装置に通知す
るのである。
In the terminal address setting method of the present invention, when the address setting request signals are simultaneously issued from a plurality of terminal devices, the address request duplication detecting unit provided in the terminal devices detects the address setting request signals. After detecting a collision, the address setting request signal is output again after a waiting time randomly set for each terminal device, and the management terminal device receives the address setting request signal of the terminal device that is output most quickly thereafter. A free address number is extracted from the address table, and this address number is notified to the terminal device.

【0008】[0008]

【実施例】以下、本発明の一実施例を図面に基づき説明
する。図1は、本発明の一実施例に係るネットワークを
示すブロック図である。1は端末装置で、入出力制御部
11、送受信バッファ12、処理部13、アドレスレジ
スタ14およびアドレス要求重複検出部15を有してな
る。入出力制御部11はデータの送受信を制御するもの
であり、送受信バッファ12は入出力制御部11と後述
の処理部13との間のデータの受け渡しを行うものであ
る。処理部13は端末装置1内の各部を制御するもので
あり、自己のアドレスを設定するためのアドレス要求信
号を生成し送受信バッファ12に送ったり、アドレス要
求信号を出したことを後述のアドレス要求重複検出部に
知らせたりするものである。アドレスレジスタ14は自
己のアドレスを記憶しておくものであり、処理装置13
からの命令により初期段階では、一旦、一定の初期アド
レスが設定され、その後、管理端末装置2からの通知に
より、実際のアドレスが設定されるのである。アドレス
要求重複検出部15は、伝送路3上での複数の端末装置
1からのアドレス設定要求信号の衝突を検出するもので
あり、処理部13からの信号により自端末装置1からア
ドレス設定要求信号が送出されたことを認識しており、
そのアドレス設定要求信号が他の端末装置1からのアド
レス設定要求信号と伝送路3上で衝突したことを検出
し、この検出結果を入出力制御部11に知らせるのであ
る。入出力制御部11では、ランダムに設定された待ち
時間Tの後に再度アドレス設定要求信号を送出する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a network according to an embodiment of the present invention. A terminal device 1 includes an input / output control unit 11, a transmission / reception buffer 12, a processing unit 13, an address register 14, and an address request duplication detection unit 15. The input / output control unit 11 controls transmission / reception of data, and the transmission / reception buffer 12 exchanges data between the input / output control unit 11 and a processing unit 13 described later. The processing unit 13 controls each unit in the terminal device 1. The processing unit 13 generates an address request signal for setting its own address and sends it to the transmission / reception buffer 12. It notifies the duplication detection section. The address register 14 stores its own address.
In the initial stage, a constant initial address is once set by the command from, and then the actual address is set by the notification from the management terminal device 2. The address request duplication detection unit 15 detects a collision of address setting request signals from a plurality of terminal devices 1 on the transmission path 3, and a signal from the processing unit 13 causes the address setting request signal from the terminal device 1 itself. Is aware that
It is detected that the address setting request signal collides with the address setting request signal from another terminal device 1 on the transmission path 3, and the input / output control unit 11 is notified of the detection result. The input / output control unit 11 again sends the address setting request signal after the waiting time T randomly set.

【0009】2は伝送路3に接続された複数の端末装置
1のアドレス等を管理する管理端末装置であり、入出力
制御部21、送受信バッファ22、処理部23およびア
ドレステーブル24を有してなる。入出力制御部21は
データの送受信を行うものであり、送受信バッファ22
は入出力制御部21と後述の処理部23との間のデータ
の受け渡しを行うものである。処理部23は管理端末装
置2内の各部を制御するものであり、アドレステーブル
24は管理している各端末装置1のアドレス番号を記憶
しておくものである。処理部23では、端末装置1から
のアドレス設定要求信号を受信すると、アドレステーブ
ル24を検索し、空きアドレス番号を得て、端末装置1
の端末アドレス番号とし、アドレステーブル24にこの
端末アドレス番号を書き込むとともに、端末装置1に対
して、この端末アドレス番号を通知する。 次に、本実
施例の動作を、図2に示したフローチャートに基づき説
明する。まず、システムの電源投入時、管理端末装置2
はアドレステーブル24を初期化するとともに、自己の
アドレスをアドレス0と設定する。全ての端末装置1の
アドレスレジスタ14には初期アドレスとして、同一の
アドレス番号、例えばアドレス1が設定される。各端末
装置1は、アドレス0の管理端末装置2に対して、アド
レス設定要求信号を送出する。複数の端末装置1が同時
にアドレス設定要求信号を送出すると、伝送線路3上で
信号の衝突が発生する。各端末装置1では、アドレス要
求重複検出部15により、この衝突を検出た場合は、入
出力制御部11からランダムに設定された待ち時間Tの
後、アドレス設定要求信号の再送を行う。待ち時間Tの
最も短かった端末装置1からのアドレス設定要求信号が
端末管理装置2で受信されることになる。もし、再度、
伝送線路3上で信号の衝突が起こった場合は、上記の動
作を繰り返すのである。他の端末装置1は、伝送線路3
上にデータがあるか否かを検出し、すでにデータがある
場合は、再度待ち時間Tの後にアドレス設定要求信号を
送出することになる。
Reference numeral 2 is a management terminal device for managing addresses and the like of a plurality of terminal devices 1 connected to the transmission line 3, and has an input / output control unit 21, a transmission / reception buffer 22, a processing unit 23 and an address table 24. Become. The input / output control unit 21 transmits and receives data, and the transmission / reception buffer 22
Is for exchanging data between the input / output control unit 21 and a processing unit 23 described later. The processing unit 23 controls each unit in the management terminal device 2, and the address table 24 stores the address number of each managed terminal device 1. Upon receiving the address setting request signal from the terminal device 1, the processing unit 23 searches the address table 24 to obtain a vacant address number, and then the terminal device 1
This terminal address number is written in the address table 24, and the terminal device 1 is notified of this terminal address number. Next, the operation of this embodiment will be described based on the flow chart shown in FIG. First, when the system is turned on, the management terminal device 2
Initializes the address table 24 and sets its address to address 0. The same address number, for example, address 1 is set as the initial address in the address registers 14 of all the terminal devices 1. Each terminal device 1 sends an address setting request signal to the management terminal device 2 with address 0. When a plurality of terminal devices 1 send out address setting request signals at the same time, signal collision occurs on the transmission line 3. In each terminal device 1, when the address request duplication detection unit 15 detects this collision, the address setting request signal is retransmitted after a waiting time T randomly set by the input / output control unit 11. The address setting request signal from the terminal device 1 having the shortest waiting time T is received by the terminal management device 2. If again,
When a signal collision occurs on the transmission line 3, the above operation is repeated. The other terminal device 1 has a transmission line 3
It is detected whether or not there is data above, and if there is data already, the address setting request signal is sent again after the waiting time T.

【0010】管理端末装置2では、端末装置1からのア
ドレス設定要求信号を受信すると、アドレステーブル2
4を検索し、空きアドレス番号を抽出し、このアドレス
番号をアドレステーブル24に書き込むとともに、初期
アドレス1を有する端末装置1に対して、このアドレス
番号を送信する。
Upon receiving the address setting request signal from the terminal device 1, the management terminal device 2 receives the address table 2
4 is searched, an empty address number is extracted, this address number is written in the address table 24, and this address number is transmitted to the terminal device 1 having the initial address 1.

【0011】端末装置1では、管理端末装置2からの信
号を受信し、送られてきたアドレス番号を自己のアドレ
スとして、アドレスレジスタ14に書き込む。以後は、
このアドレス番号を自己のアドレス番号として用いるこ
とになる。
The terminal device 1 receives the signal from the management terminal device 2, and writes the received address number in the address register 14 as its own address. After that,
This address number will be used as its own address number.

【0012】以上の動作を繰り返して行えば、自動的に
全ての端末装置1にアドレス番号を設定することができ
るのである。
By repeating the above operation, the address numbers can be automatically set in all the terminal devices 1.

【0013】ここで、待ち時間Tを、管理端末装置2が
ある端末装置1からのアドレス設定要求信号を受信して
からアドレス番号をその端末装置に送信するまでの時間
よりも長くなるように設定しておけば、ある端末装置1
がアドレス設定要求を行ってからアドレスが設定される
までに、他の端末装置1からアドレス設定要求信号が出
されることはなくなる。
Here, the waiting time T is set to be longer than the time from when the management terminal device 2 receives an address setting request signal from a certain terminal device 1 to when the address number is transmitted to that terminal device. If so, a certain terminal device 1
The address setting request signal will not be issued from another terminal device 1 after the address setting request is made by the user until the address is set.

【0014】[0014]

【発明の効果】以上のように、本発明の端末アドレス設
定方法によれば、複数の端末装置から同時にアドレス設
定要求信号が出された場合には、端末装置に設けたアド
レス要求重複検出部により、アドレス設定要求信号の衝
突を検出し、各端末装置毎にランダムに設定された待ち
時間の後に再度アドレス設定要求信号を出力し、管理端
末装置では、その後最もはやく出力されたれた端末装置
のアドレス設定要求信号を受信し、アドレステーブルに
より空きアドレス番号を抽出し、このアドレス番号を前
記端末装置に通知するようにしたので、複数の端末装置
が接続されたネットワークにおいて、各端末装置のアド
レスを自動的に設定することのできる端末アドレス設定
方法が提供できた。
As described above, according to the terminal address setting method of the present invention, when the address setting request signals are simultaneously issued from a plurality of terminal devices, the address request duplication detecting section provided in the terminal devices. , The address setting request signal collision is detected, the address setting request signal is output again after a waiting time set randomly for each terminal device, and the management terminal device outputs the address of the terminal device that is output most quickly thereafter. By receiving the setting request signal, extracting an empty address number from the address table, and notifying this address number to the terminal device, in the network where a plurality of terminal devices are connected, the address of each terminal device is automatically A terminal address setting method that can be set manually is provided.

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

【図1】本発明の一実施例に係るネットワークを示すブ
ロック図である。
FIG. 1 is a block diagram illustrating a network according to an exemplary embodiment of the present invention.

【図2】同上の動作を示すフローチャートである。FIG. 2 is a flowchart showing an operation of the above.

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

1 端末装置 2 管理端末装置 3 伝送路 11 入出力制御部 12 送受信バッファ 13 処理部 14 アドレスレジスタ 15 アドレス要求重複検出部 21 入出力制御部 22 送受信バッファ 23 処理部 24 アドレステーブル T 待ち時間 1 terminal device 2 management terminal device 3 transmission line 11 input / output control unit 12 transmission / reception buffer 13 processing unit 14 address register 15 address request duplication detection unit 21 input / output control unit 22 transmission / reception buffer 23 processing unit 24 address table T waiting time

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 自己のアドレスを記憶しておくアドレス
レジスタを有する端末装置と、端末装置のアドレスを管
理するアドレステーブルを有する管理端末装置とを伝送
路を介して接続してなるネットワークの端末アドレス設
定方法であって、前記端末装置に、複数の端末装置から
同時にアドレス設定要求信号が出力されたことを検出す
るアドレス要求重複検出部を付加し、アドレス設定すべ
き端末装置に対し、一旦同一のアドレスを設定し、複数
の端末装置から同時にアドレス設定要求信号が出力され
た場合に、各端末装置では、アドレス要求重複検出部に
よりアドレス設定要求信号の衝突を検出し、各端末装置
毎にランダムに設定された所定時間の後に再度アドレス
設定要求信号を出力し、管理端末装置では、前記アドレ
ス設定要求信号を受けて、アドレステーブルにより空き
アドレス番号を抽出し、アドレス設定要求信号を出力し
た端末装置に前記アドレス番号を通知するようにしたこ
とを特徴とする端末アドレス設定方法。
1. A terminal address of a network in which a terminal device having an address register for storing its own address and a management terminal device having an address table for managing the address of the terminal device are connected via a transmission line. In the setting method, an address request duplication detection unit that detects that address setting request signals are simultaneously output from a plurality of terminal devices is added to the terminal device, and the same terminal device is temporarily set to the address setting device. When the address is set and the address setting request signals are simultaneously output from a plurality of terminal devices, each terminal device detects the collision of the address setting request signals by the address request duplication detection unit, and randomly selects each terminal device. The address setting request signal is output again after the set predetermined time, and the management terminal device receives the address setting request signal. A terminal address setting method is characterized in that a vacant address number is extracted from the address table and the terminal number that has output the address setting request signal is notified of the address number.
JP5158360A 1993-06-29 1993-06-29 Terminal address setting method Withdrawn JPH0738582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5158360A JPH0738582A (en) 1993-06-29 1993-06-29 Terminal address setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5158360A JPH0738582A (en) 1993-06-29 1993-06-29 Terminal address setting method

Publications (1)

Publication Number Publication Date
JPH0738582A true JPH0738582A (en) 1995-02-07

Family

ID=15669978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5158360A Withdrawn JPH0738582A (en) 1993-06-29 1993-06-29 Terminal address setting method

Country Status (1)

Country Link
JP (1) JPH0738582A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352773B2 (en) 2002-07-29 2008-04-01 Kabushiki Kaisha Toshiba Relay apparatus and network relay method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352773B2 (en) 2002-07-29 2008-04-01 Kabushiki Kaisha Toshiba Relay apparatus and network relay method

Similar Documents

Publication Publication Date Title
US20060126523A1 (en) Monitoring control system and method
US20050021753A1 (en) System and method for implementing RMII Ethernet reset
US4418384A (en) Communication subsystem with an automatic abort transmission upon transmit underrun
US6339812B1 (en) Method and apparatus for handling invalidation requests to processors not present in a computer system
KR960006388A (en) Clients, Servers, Systems and Control Methods
JPH0738582A (en) Terminal address setting method
US4379340A (en) Communications subsystem idle link state detector
JPH02230356A (en) Bus extension device for information processor
JPH0431454B2 (en)
KR950009583B1 (en) Method and device to acknowledge collision of data in msx computer network
JP3011051B2 (en) Overload test equipment for centralized maintenance management system
JPH02272843A (en) Data transmission equipment
JP2586341B2 (en) Bus test method for communication between processors
JPH045301B2 (en)
JP2747248B2 (en) Communication data division transmission method and apparatus
JPS6281852A (en) Communication terminal equipment
JPH06236336A (en) Terminal equipment
JPH0442633A (en) Line control system
JPH07129205A (en) Method for communication between programmable controller and monitor device
JP2002185486A (en) Simple terminal apparatus and connection diagnostic method
JPH04123547A (en) Terminal address registration device in network
KR20000043347A (en) Data input/output device
JPH07264217A (en) Polling system
JP2002026911A (en) Multiplex transmission system and master unit and terminal used for the system
JPH11122249A (en) Remote control system and remote control method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000905