JPH04156739A - Communication system - Google Patents

Communication system

Info

Publication number
JPH04156739A
JPH04156739A JP2282836A JP28283690A JPH04156739A JP H04156739 A JPH04156739 A JP H04156739A JP 2282836 A JP2282836 A JP 2282836A JP 28283690 A JP28283690 A JP 28283690A JP H04156739 A JPH04156739 A JP H04156739A
Authority
JP
Japan
Prior art keywords
address
identification number
microcomputer
communication frame
terminal device
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
JP2282836A
Other languages
Japanese (ja)
Other versions
JP2541356B2 (en
Inventor
Izumi Oshima
大島 泉
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2282836A priority Critical patent/JP2541356B2/en
Publication of JPH04156739A publication Critical patent/JPH04156739A/en
Application granted granted Critical
Publication of JP2541356B2 publication Critical patent/JP2541356B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To simplify a memory to store the address of each terminal equipment, and to attain the reduction of cost by distributing automatically the address after the application of power supply from a center controller to each terminal equipment. CONSTITUTION:Plural terminal equipments 11a to 11c are provided with a microcomputer 21 to control a transmitting and a receiving parts 22, 23, an address registering key 24, a volatile memory 25, and an identification number storage part 26 respectively. Besides, the center controller 10 is provided with the microcomputer 13 to control the transmitting and the receiving parts 14, 15 and a non-volatile memory 17, and the address after the application of the power supply is distributed from the controller 10 to the equipments 11a to 11c. Since the addresses of the equipments 11a to 11c can be distributed after the power supply is applied in this way, the non-volatile memory is made unnecessary, and in addition, since a fuse box for which a diffusion process is not increased can be incorporated as the identification number storage part 26 even in the case that the equipments 11a to 11c are made into an LSI, the cost can be suppressed low.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は複数の端末装置を伝送路を介してセンタ・コン
トローラから制御する通信システムに関し、特に複数の
端末装置のアドレスを自動的に設定する通信システムに
関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a communication system in which a plurality of terminal devices are controlled from a center controller via a transmission path, and in particular to a communication system that automatically sets addresses of a plurality of terminal devices. Regarding communication systems.

〔従来の技術〕 従来、伝送路を介して複数の端末装置に接続されるセン
タ・コントローラを含む通信システムは、センタ・コン
トローラが複数の端末装置を制御するために、各端末装
置にそれぞれ異なったアドレスを割り当てている。しか
も、センタ・コントローラからは端末装置ヘアドレスと
制御コードを通信フレームとして送信し、センタ・コン
トローラが送信した通信フレームのアドレスと一致した
アドレスが割り当てられた端末装置のみが制御コードを
受信し、その制御コードに応じた動作をするようになっ
ている。
[Prior Art] Conventionally, in a communication system including a center controller connected to multiple terminal devices via a transmission path, in order for the center controller to control the multiple terminal devices, each terminal device has a different Assigning an address. Moreover, the center controller sends an address and a control code to the terminal device as a communication frame, and only the terminal device that is assigned the address that matches the address in the communication frame sent by the center controller receives the control code. It operates according to the control code.

第10図はかかる従来の一例を示す通信システムのブロ
ック図である。
FIG. 10 is a block diagram of a communication system showing an example of such a conventional communication system.

第10図に示すように、この通信システムは、センタ・
コントローラ10と、複数の端末装置11a、、1 l
b、11cと、伝送FI@12とより構成され、センタ
・コントローラ10と複数の端末装置11a、llb、
llcは、伝送路12を介して接続されている。尚、こ
こでは、端末装置は3つのみを示しているが、これ以上
が接続されていてもよい。
As shown in Figure 10, this communication system
A controller 10 and a plurality of terminal devices 11a, 1 l
It consists of a center controller 10 and a plurality of terminal devices 11a, 11c, and a transmission FI@12.
llc is connected via a transmission line 12. Note that although only three terminal devices are shown here, more than three terminal devices may be connected.

まず、センタ・コントローラ10は、伝送路12からの
出力端子19および伝送路12への入力端子20に接続
された送受信部14および15と、マイクロコンピュー
タ13と、外部からマイクロコンピュータ13の動作を
操作する操作部16と、各端末装置11a〜llcのア
ドレスを記憶する不揮発性メモリ17とを有する。
First, the center controller 10 operates the transmitting/receiving sections 14 and 15 connected to the output terminal 19 from the transmission line 12 and the input terminal 20 to the transmission line 12, the microcomputer 13, and the operation of the microcomputer 13 from the outside. and a nonvolatile memory 17 that stores the addresses of each terminal device 11a to llc.

一方、端末装置11aは、伝送路12からの出力端子2
7および伝送路12への出力端子28に接続された送信
部22および受信部23と、マイクロコンピュータ21
と、マイクロコンピュータ21に接続されたアドレス登
録キー24およびアドレスを記憶する不揮発性メモリ3
6とを有する。また、端末装置11b、llcについて
も同一の構成である。
On the other hand, the terminal device 11a has an output terminal 2 from the transmission line 12.
7 and a transmitting section 22 and a receiving section 23 connected to an output terminal 28 to the transmission line 12, and a microcomputer 21.
, an address registration key 24 connected to the microcomputer 21 and a non-volatile memory 3 for storing addresses.
6. Furthermore, the terminal devices 11b and llc have the same configuration.

次に、各端末装置11aのアドレスを登録する動作につ
いて説明する。
Next, the operation of registering the address of each terminal device 11a will be explained.

端末装置11aのアドレス登録は、外部より端末装置1
1aのアドレス登録キー24を押すことによって行われ
る。端末装置11aはアドレス登録キー24が押される
と、不揮発性メモリ36に記憶しであるアドレスをクリ
アすると同時に、マイクロコンピュータ21に割り込み
を要求する。
The address registration of the terminal device 11a is performed from the outside to the terminal device 1.
This is done by pressing the address registration key 24 of 1a. When the address registration key 24 is pressed, the terminal device 11a clears the address stored in the nonvolatile memory 36 and requests an interrupt from the microcomputer 21 at the same time.

マイクロコンピュータ21はそのプログラムエリアにあ
る本来の送受信処理を行なうメインの処理ルーチンから
自動アドレス設定の処理ルーチンを実行する。また、マ
イクロコンピュータ21は、不揮発性メモリ36にある
クリアされたアドレスを含むアドレス登録要求の通信フ
レームを送信部22および伝送路12を介してセンタ・
コントローラ10に送信する。
The microcomputer 21 executes an automatic address setting processing routine from a main processing routine for performing original transmission/reception processing in its program area. Further, the microcomputer 21 sends a communication frame for an address registration request including the cleared address stored in the nonvolatile memory 36 to the center via the transmitter 22 and the transmission line 12.
The data is sent to the controller 10.

一方、センタ・コントローラ10は、端末装置11aか
らのアドレス登録要求の通信フレームを受信し、不揮発
性メモリ17に割り当てられていないアドレスを操作部
16より選定して不揮発性メモリ17に記憶させるとと
もに、端末装置fllaに対し送信部14を介してアド
レス配布の通信フレームを送信する。
On the other hand, the center controller 10 receives the communication frame requesting address registration from the terminal device 11a, selects an address that is not assigned to the nonvolatile memory 17 from the operation unit 16, and stores it in the nonvolatile memory 17. A communication frame for address distribution is transmitted to the terminal device fla via the transmitter 14.

更に、端末装置11aは、センタ・コントローラ10か
ら送信されたアドレスを不揮発性メモリ36に記憶し、
端末装置11aのアドレスとして使用する。
Furthermore, the terminal device 11a stores the address transmitted from the center controller 10 in the nonvolatile memory 36,
Used as the address of the terminal device 11a.

以上のアドレス登録の動作は他の端末装置11b、ll
cに対しても行い、全てのアドレスが設定される。
The above address registration operation is performed by other terminal devices 11b and ll.
This is also done for c, and all addresses are set.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の通信システムは、各端末装置にアドレス
を記憶するための不揮発性メモリを必要としている。し
かし、端末装置をLSI化する場合、不揮発性メモリで
あるEEPROM (電気的読み書き消去可能メモリ)
を内蔵させると、拡散工程が増えてしまい、コストが高
くなるという欠点がある。
The conventional communication systems described above require non-volatile memory for storing addresses in each terminal device. However, when converting a terminal device into an LSI, EEPROM (electrically readable and erasable memory), which is a non-volatile memory,
The drawback is that incorporating it increases the number of diffusion steps and increases the cost.

また、従来の通信システムは揮発性メモリを電池等でバ
ック・アップする場合にも、電池の寿命がきれた後の交
換等のメンテナンスの作業が増えてしまうという欠点が
ある。
Furthermore, even when the volatile memory is backed up by a battery or the like, conventional communication systems have the disadvantage that maintenance work such as replacement after the battery's life has expired increases.

本発明の目的は、各端末装置のアドレスを記憶するメモ
リを簡略化し、電源投入の毎にアドレスを自動設定でき
る通信システムを提供することにある。
An object of the present invention is to provide a communication system in which the memory for storing the address of each terminal device is simplified and the address can be automatically set each time the power is turned on.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の通信システムは、伝送路に接続された複数の端
末装置と、前記伝送路に接続され且つ前記複数の端末装
置を制御するセンタ・コントローラとからなる通信シス
テムにおいて、前記複数の端末装置は、前記伝送路の入
出力端子に接続される第一の送受信部と、アドレス登録
キーおよびアドレスを記憶する揮発性メモリと、固有の
識別番号を記憶するためにヒユーズROMで構成される
識別番号記憶部と、前記第一の送受信部、前記アドレス
登録キー、前記揮発性メモリおよび前記識別番号記憶部
を制御する第一のマイクロコンピュータとを備え、前記
センタ・コントローラは、前記伝送路の入出力端子に接
続される第二の送受信部と、前記複数の端末装置のアド
レスおよび識別番号を記憶する不揮発性メモリと、前記
第二の送受信部および前記不揮発性メモリを制御する第
二のマイクロコンピュータとを備え、前記センタ・コン
トローラから前記各端末装置に電源投入後のアドレスを
自動的に配布するように構成される。
The communication system of the present invention includes a plurality of terminal devices connected to a transmission path, and a center controller connected to the transmission path and controlling the plurality of terminal devices, wherein the plurality of terminal devices are , an identification number storage comprising a first transmitting/receiving unit connected to an input/output terminal of the transmission line, a volatile memory for storing an address registration key and an address, and a fuse ROM for storing a unique identification number. and a first microcomputer that controls the first transmitting/receiving unit, the address registration key, the volatile memory, and the identification number storage unit, and the center controller is configured to control input/output terminals of the transmission line. a second transmitting/receiving section connected to the terminal device, a nonvolatile memory storing addresses and identification numbers of the plurality of terminal devices, and a second microcomputer controlling the second transmitting/receiving section and the nonvolatile memory. and is configured to automatically distribute addresses from the center controller to each of the terminal devices after power is turned on.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明に用いるホームバスの制御ラインの通信
フレームのフォーマット図である。
FIG. 1 is a format diagram of a communication frame of a home bus control line used in the present invention.

第1図に示すように、本発明のホームバスの制御ライン
における通信フレームは、通信フレームの優先順位を示
す優先コード1と、通信フレームの送信元アドレスを表
わす自己アドレス2と、通信フレームの通信先アドレス
を表わす相手アドレス3と、通信フレームのデータ内容
を指定する制御コード4と、データフィールドのバイト
数を指定する電文長コード5と、通信フレームのデータ
部分となるデータフィールド6と、通信フレームの誤り
を検出するチエツクコード7と、ダミーコード8と、送
信先に通信フレームが届いたが否かを確認するためのア
クノリッジ・ビット9との各フィールドより構成される
。この通信フレームはセンタ・コントローラと端末装置
との間を伝送路を介して送受信される。
As shown in FIG. 1, a communication frame on the control line of the home bus of the present invention has a priority code 1 indicating the priority of the communication frame, a self address 2 indicating the source address of the communication frame, and a communication frame of the communication frame. A destination address 3 that represents the destination address, a control code 4 that specifies the data content of the communication frame, a message length code 5 that specifies the number of bytes of the data field, a data field 6 that is the data part of the communication frame, and a communication frame. The field consists of a check code 7 for detecting errors, a dummy code 8, and an acknowledge bit 9 for checking whether the communication frame has arrived at the destination. This communication frame is transmitted and received between the center controller and the terminal device via a transmission path.

第2図は本発明の第一の実施例を示す通信システムのブ
ロック図である。
FIG. 2 is a block diagram of a communication system showing a first embodiment of the present invention.

第2図に示すように、ががる通信システムはセンタ・コ
ントローラ10と、複数の端末装置11a、llb、l
lc (ここでは、3つの端末を代表して表わす)と、
伝送路12とがら構成され、センタ・コントローラ10
と複数の端末装置11a、llb、llcは伝送路12
を介して相互に接続されている。
As shown in FIG. 2, the Gagaru communication system includes a center controller 10, a plurality of terminal devices 11a, llb, l
lc (represented here as three terminals) and
It is composed of a transmission line 12 and a center controller 10.
and the plurality of terminal devices 11a, llb, llc are connected to the transmission path 12.
are interconnected through.

まず、センタ・コントローラ1oは、伝送路12からの
出力端子19に接続される受信部15と、伝送路13へ
の入力端子2oに接続される送信部14と、これら送受
信部14.15に接続されたマイクロコンピュータ13
と、外部よりマイクロコンピュータ13の動作を操作す
るための操作部16と、マイクロコンピュータ13に接
続され各端末装置11a、llb、llcのアドレスを
記憶している不揮発性メモリ17と、マイクロコンピュ
ータ13によって制御される表示部18とを有している
First, the center controller 1o has a receiving section 15 connected to the output terminal 19 from the transmission path 12, a transmitting section 14 connected to the input terminal 2o to the transmission path 13, and a transmitting section 14 connected to the transmitting/receiving section 14.15. microcomputer 13
, an operation unit 16 for controlling the operation of the microcomputer 13 from the outside, a non-volatile memory 17 connected to the microcomputer 13 and storing the addresses of each terminal device 11a, llb, llc, and the microcomputer 13. It has a display section 18 that is controlled.

一方、端末装置11aは、伝送路12からの出力端末2
7に接続される受信部23と、伝送路12への入力端子
28に接続される送信部22と、これら送受信部22.
23に接続されたマイクロコンピュータ21と、マイク
ロコンピュータ21に接続されたアドレス登録キー24
と、マイクロコンピュータ21に接続されアドレスを記
憶する揮発性メモリ25と、マイクロコンピュータ21
に接続され各端末装置11aに固有の識別番号を記憶し
た識別番号記憶部26とを有している。
On the other hand, the terminal device 11a is connected to the output terminal 2 from the transmission line 12.
7, a transmitting section 22 connected to an input terminal 28 to the transmission line 12, and these transmitting/receiving sections 22.
23 and an address registration key 24 connected to the microcomputer 21.
, a volatile memory 25 that is connected to the microcomputer 21 and stores addresses, and a volatile memory 25 that is connected to the microcomputer 21 and stores addresses;
The terminal device 11a has an identification number storage section 26 which is connected to the terminal device 11a and stores an identification number unique to each terminal device 11a.

上述した端末装置はllaについてであるが、11b、
llcも同様である。各端末装置11a。
The terminal device mentioned above is about lla, but 11b,
The same applies to llc. Each terminal device 11a.

11b、llcはLSI化され、しかも識別番号記憶部
26はヒユーズROMで構成している。すなわち、識別
番号は各端末装置毎に0より連続したシリアル番号を製
造時にヒユーズROMに書き込むことにより決められる
。この識別番号は通信システム内で各端末装置11a、
llb、llcを識別するために使用され、この識別番
号を利用することにより通信システム内で取り決められ
るアドレスを各端末装置11a、llb、llcに配布
する。
11b and llc are implemented as LSIs, and the identification number storage section 26 is constructed from a fuse ROM. That is, the identification number is determined for each terminal device by writing a consecutive serial number starting from 0 into the fuse ROM at the time of manufacture. This identification number is used for each terminal device 11a within the communication system.
This identification number is used to identify each terminal device 11a, llb, and llc, and by using this identification number, an address negotiated within the communication system is distributed to each terminal device 11a, llb, and llc.

次に、センタ・コントローラ10と各端末装置11a、
llb、llcの動作、特にアドレス登録動作およびア
ドレス配布動作について説明する。
Next, the center controller 10 and each terminal device 11a,
The operations of llb and llc, especially the address registration operation and address distribution operation, will be explained.

初めに、各端末装置11a、llb、llcのアドレス
を登録する方法について、第3図および第4図を参照し
て説明する。
First, a method of registering the addresses of each terminal device 11a, llb, llc will be explained with reference to FIGS. 3 and 4.

第3図は第2図において用いるアドレス登録要求の通信
フレームのフォーマット図であり、第4図は第2図にお
けるアドレスの割当処理ルーチンを示すフロー図である
FIG. 3 is a format diagram of a communication frame for an address registration request used in FIG. 2, and FIG. 4 is a flow diagram showing an address assignment processing routine in FIG. 2.

第3図に示すように、アドレス登録要求の通信フレーム
は、前述した第1図の通信フレームにおける自己アドレ
ス2を初期状態のアドレスの決つていないアドレス値、
例えば8ビツト構成のFFH29に設定し、相手アドレ
ス3をセンタ・コントローラ10のアドレス30に設定
し、同様に制御コード4およびデータフィールド6をそ
れぞれアドレス登録要求コード31および識別番号記憶
部26に記憶されている識別番号32に設定した構成に
なっている。
As shown in FIG. 3, in the communication frame for the address registration request, the self address 2 in the communication frame of FIG.
For example, the FFH 29 with an 8-bit configuration is set, the destination address 3 is set to the address 30 of the center controller 10, and the control code 4 and data field 6 are similarly stored in the address registration request code 31 and identification number storage section 26, respectively. The configuration is such that the identification number 32 is set.

従って、端末装置11aはアドレス登録キー24が押さ
れると、マイクロコンピュータ21のプログラムエリア
内で、通常の送受信制御ルーチンからアドレス登録要求
の処理ルーチンが呼び出される。これにより、マイクロ
コンピュータ21は、上述した第3図のアドレス登録要
求の通信フレームを生成し、送信部22を介してセンタ
・コントローラ10に送信する。
Therefore, when the address registration key 24 of the terminal device 11a is pressed, the address registration request processing routine is called from the normal transmission/reception control routine in the program area of the microcomputer 21. As a result, the microcomputer 21 generates the communication frame for the address registration request shown in FIG.

次に、第4図に示すように、センタ・コントローラ10
が各端末装置11a、llb、llcよリアドレス登録
要求の通信フレームを受信すると、マイクロコンピュー
タ13は、アドレス割り当ての処理を行なう。
Next, as shown in FIG.
When the microcomputer 13 receives a communication frame requesting rearaddress registration from each of the terminal devices 11a, llb, and llc, the microcomputer 13 performs address assignment processing.

まず、アドレス登録要求の通信フレームのデータフィー
ルド6に記入される識別番号32が不揮発性メモリ17
に記憶されているか否かを調べる。ここで、記憶されて
いないときには、不揮発性メモリ17に登録されていな
いアドレスを操作部16から設定し、不揮発性メモリ1
7に識別番号とそれに対応したアドレスを記憶するとと
もに、表示部18にアドレスの登録が成功したことを表
示させる。
First, the identification number 32 written in the data field 6 of the communication frame of the address registration request is stored in the nonvolatile memory 17.
Check whether it is stored in . Here, if the address is not stored in the non-volatile memory 17, an address that is not registered in the non-volatile memory 17 is set from the operation unit 16, and
7 stores the identification number and the corresponding address, and displays on the display section 18 that the address registration has been successful.

また、アドレス登録要求フレームの識別番号32が不揮
発性メモリ17に記憶されていたときには、通信システ
ムの中で既に識別番号32の同じ端末装置が存在するこ
とを意味するので、表示部18にエラーを表示させる。
Furthermore, when the identification number 32 of the address registration request frame is stored in the nonvolatile memory 17, it means that a terminal device with the same identification number 32 already exists in the communication system, so an error message is displayed on the display unit 18. Display.

この場合、端末装置を新たに識別番号の異なるものに変
換してアドレス登録キー24を押し、再度アドレス登録
の処理を行う。
In this case, the user converts the terminal device to a new one with a different identification number, presses the address registration key 24, and performs the address registration process again.

以上のアドレス登録の動作を全ての端末装置11a、l
lb、llcに対して行なうことにより、センタ・コン
トローラ10の不揮発性メモリ17には、全ての端末装
置の識別番号に対応したアドレステーブルが登録される
The above address registration operation is performed on all terminal devices 11a and 11a.
By performing this for lb and llc, address tables corresponding to the identification numbers of all terminal devices are registered in the nonvolatile memory 17 of the center controller 10.

次に、各端末装置11a、llb、llcのアドレスを
登録した後、通信システムの電源を投入した時に各端末
装置11a、llb、llcにアドレスを配布する動作
について第5図(a)。
Next, FIG. 5(a) shows the operation of distributing addresses to each terminal device 11a, llb, llc when the power of the communication system is turned on after registering the address of each terminal device 11a, llb, llc.

(b)および第6図を参照して説明する。This will be explained with reference to (b) and FIG.

第5図(a)、(b)はそれぞれ第2図における電源投
入時の端末装置およびセンタ・コントローラのアドレス
配布の処理ルーチンを示すフロー図であり、第6図は第
5図(a)、(b)において用いるアドレス配布の通信
フレームのフォーマット図である。
FIGS. 5(a) and 5(b) are flowcharts showing the processing routine for distributing addresses to the terminal device and center controller at power-on in FIG. 2, respectively, and FIG. FIG. 6 is a format diagram of a communication frame for address distribution used in (b).

第5図(a>に示すように、端末装置11aはアドレス
配布の通信フレームを受信し、識別番号が一致したか否
かを判断した後、一致していれば、アクノリッジビット
を送信し、アドレスを揮発性メモリ25に記憶する。も
し、識別番号が一致していなければ、処理を終了する。
As shown in FIG. 5 (a), the terminal device 11a receives the communication frame for address distribution, determines whether or not the identification numbers match, and if so, transmits an acknowledge bit and addresses the are stored in the volatile memory 25. If the identification numbers do not match, the process ends.

また、第5図(b)に示すように、センタ・コントロー
ラ10は端末装置11aから受信した識別番号が不揮発
性メモリ17に登録されているか否か判断し、登録され
ているときは、アドレス配布の通信フレームを端末装置
11aに送信する。
Further, as shown in FIG. 5(b), the center controller 10 determines whether or not the identification number received from the terminal device 11a is registered in the nonvolatile memory 17, and if it is registered, the center controller 10 distributes the address. The communication frame is transmitted to the terminal device 11a.

しかる後、端末装置11aからアクノリッジビットが返
送されてきたか否かを判断し、否であれば、不揮発性メ
モリ17からアドレスと識別番号を削除する。また、識
別番号が不揮発性メモリ17上に登録されていないとき
は、処理を終了する。
Thereafter, it is determined whether or not an acknowledge bit has been returned from the terminal device 11a, and if not, the address and identification number are deleted from the nonvolatile memory 17. Further, if the identification number is not registered on the non-volatile memory 17, the process ends.

一方、第6図に示すように、上述したアドレス配布の通
信フレームは、自己アドレス2をセンタコントローラの
アドレス30に設定し、相手アドレス3をアドレスの定
まっていないFFH29に設定し、制御コード4をアド
レス配布を表すコード33に設定し、データフィールド
6を識別番号とそれに対応した通信アドレス34を設定
した構成になっている。
On the other hand, as shown in FIG. 6, in the communication frame for address distribution described above, self address 2 is set to address 30 of the center controller, partner address 3 is set to FFH 29, which has no fixed address, and control code 4 is set to address 30 of the center controller. A code 33 indicating address distribution is set, and a data field 6 is set with an identification number and a communication address 34 corresponding to the identification number.

要するに、センタ・コントローラ10と複数の端末装置
11a、11b、llcの電源が一斉に投入されると、
マイクロコンピュータ13は不揮発性メモリ17にアド
レスが登録されているかを調べ、登録されていれば、前
述したアドレス配布の通信フレームを送信する。各端末
装置11a。
In short, when the center controller 10 and the plurality of terminal devices 11a, 11b, llc are powered on at the same time,
The microcomputer 13 checks whether an address is registered in the nonvolatile memory 17, and if it is registered, transmits the communication frame for address distribution described above. Each terminal device 11a.

11b、llcは、アドレス配布の通信フレームを受信
し、データ・フィールド6に記入された識別番号が自己
の識別番号と一致したか否かを調べ、一致した端末装置
はアクノリッジ・ビット9を送信する。センタ・コント
ローラ10は、端末装置よりアクノリッジ・ビット9が
返された場合には、再度不揮発性メモリ17に記憶され
ているか否かを調べ、またアクノリッジ・ビットが返さ
れなかった場合には、識別番号を有する端末装置が存在
しなかったとして、不揮発性メモリ17に記憶しである
識別番号とアドレスを削除する。この処理ルーチンは、
不揮発性メモリ17に登録されているすべてのアドレス
について行なわれる。
11b, LLC receives the address distribution communication frame, checks whether the identification number written in data field 6 matches its own identification number, and the terminal device that matches sends acknowledge bit 9. . When the acknowledge bit 9 is returned from the terminal device, the center controller 10 checks again whether it is stored in the non-volatile memory 17, and when the acknowledge bit is not returned, the center controller Assuming that there is no terminal device having the number, the identification number and address stored in the nonvolatile memory 17 are deleted. This processing routine is
This is performed for all addresses registered in the nonvolatile memory 17.

以上は電源を投入したときのアドレスの配布の動作であ
るが、前述したアドレス登録時の動作と合わせ行なうこ
とにより、各端末装置は自動的にアドレスの設定を行な
うことができる。
The above is the operation of distributing addresses when the power is turned on, but by performing this in conjunction with the operation at the time of address registration described above, each terminal device can automatically set an address.

また、各端末装置11a、llb、llcにおける識別
番号記憶部26をヒユーズROMで構成することにより
、端末装置をLSI化したときに、従来の拡散工程が増
えないため、不揮発性メモリであるEEPROMを内蔵
させる場合に比べてコストを安くすることができる。
In addition, by configuring the identification number storage section 26 in each terminal device 11a, llb, llc with a fuse ROM, when the terminal device is integrated into an LSI, the conventional diffusion process is not increased, so the EEPROM, which is a non-volatile memory, can be used. The cost can be reduced compared to the case where it is built-in.

以上に説明した本発明の第一の実施例は、通信システム
のセンタ・コントローラ10と、各端末装置11a、l
lb、llcの電源が同時に入る場合の例である。
The first embodiment of the present invention described above has a center controller 10 of a communication system, each terminal device 11a, l
This is an example in which the lb and llc are powered on at the same time.

次に、電源が同時に入らず、電源投入のタイミングが各
端末装置およびセンタ・コントローラによって異なる例
を第二の実施例として説明する。
Next, as a second embodiment, an example in which the power is not turned on at the same time and the timing of power-on differs depending on each terminal device and the center controller will be described.

まず、本発明の第二の実施例は、通信システムの構成を
表わすブロックは第2図の通りであり、また初期動作と
してセンタ・コントローラ10の不揮発性メモリ17に
アドレスを登録する手順は、第4図に示す通りである。
First, in the second embodiment of the present invention, the blocks representing the configuration of the communication system are as shown in FIG. As shown in Figure 4.

それ故、第二の実施例の構成及びセンタ・コントローラ
10にアドレスを登録する動作についての説明は省略し
、電源を投入した後に各端末装置11a、llb。
Therefore, a description of the configuration of the second embodiment and the operation of registering an address in the center controller 10 will be omitted.

11cにアドレスが配布される動作について以下に説明
する。
The operation of distributing addresses to 11c will be described below.

第7図は本発明の第二の実施例を説明するためのアドレ
スを配布する通信シーケンス図であり、第8図は本発明
の第二の実施例において各端末装置に記憶されているア
ドレス配布の処理ルーチンを示すフロー図であり、また
第9図は第8図において用いるアドレス配布要求の通信
フレームのフォーマット図である。
FIG. 7 is a communication sequence diagram for distributing addresses for explaining the second embodiment of the present invention, and FIG. 8 is a communication sequence diagram for distributing addresses stored in each terminal device in the second embodiment of the present invention. FIG. 9 is a flowchart showing the processing routine of FIG. 8, and FIG. 9 is a format diagram of a communication frame for an address distribution request used in FIG.

第7図乃至第9図に示すように、ここでは電源投入後の
端末装置11aのマイクロコンピュータ21のプログラ
ムエリアに記憶されている第8図のプログラムの動作を
第7図の通信シーケンスの動作および第9図のアドレス
配布要求の通信フレームを用いて説明する。
As shown in FIGS. 7 to 9, here, the operation of the program shown in FIG. 8 stored in the program area of the microcomputer 21 of the terminal device 11a after power-on is explained as well as the operation of the communication sequence shown in FIG. This will be explained using the address distribution request communication frame shown in FIG.

第8図において、端末装置11aは乱数を発生させラン
ダム時間処理を待ってから、第9図に示すアドレス配布
を要求する通信フレームをセンタ・コントローラ10に
送信する。このランダム時間処理を待つ理由は、同時に
電源を投入した他の端末装置からのアドレス配布を要求
する通信フレームと衝突しないようにするためである。
In FIG. 8, the terminal device 11a generates a random number, waits for random time processing, and then transmits a communication frame requesting address distribution as shown in FIG. 9 to the center controller 10. The reason for waiting for this random time processing is to avoid collision with communication frames requesting address distribution from other terminal devices that are powered on at the same time.

また、第9図のアドレス配布を要求する通信フレームは
、自己アドレス2をFF)(29に設定し、相手アドレ
ス3をセンタ・コントローラ10のアドレス30に設定
し、制御コード4をアドレス配布要求コード35に設定
し、データフィールド6を識別番号32に設定した構成
になっている。
In addition, in the communication frame requesting address distribution in FIG. 35, and the data field 6 is set to the identification number 32.

端末装置11aが第7図に示す通信シーケンスであった
場合は、他の端末装置11b、llcがらのアドレス配
布を要求する通信フレームと衝突しなかったため、正し
くセンタ・コントローラ10に送信される。従って、セ
ンタ・コントローラ10は、アクノリッジ・ビットを返
し、その後アドレス配布の通信フレームを送信し、端末
装置11aにアドレスを配布する。
When the terminal device 11a follows the communication sequence shown in FIG. 7, it is correctly transmitted to the center controller 10 because there is no collision with a communication frame requesting address distribution from other terminal devices 11b and llc. Therefore, the center controller 10 returns an acknowledge bit, then transmits a communication frame for address distribution, and distributes the address to the terminal device 11a.

また、第7図に示す端末装置11b、llcのように、
たまたまアドレス配布を要求する通信フレームが衝突し
た場合は、通信フレームが無効になり、センタ・コント
ローラ1oはアクノリッジピットを返さない。すると、
端末装置11b、11cは再びランダム時間を待った後
、アドレス配布を要求する通信フレームを送信する。
In addition, like the terminal devices 11b and llc shown in FIG.
If a communication frame requesting address distribution happens to collide, the communication frame becomes invalid and the center controller 1o does not return an acknowledge pit. Then,
After waiting for a random time again, the terminal devices 11b and 11c transmit a communication frame requesting address distribution.

以上のように、各端末装置11a、llb。As described above, each terminal device 11a, llb.

11cは電源を投入した後、個々にセンタ・コントロー
ラ10に対しアドレス配布を要求する通信フレームを送
信し、その通信フレームに応じてアドレスが配布される
。それ故、各端末装置11a、llb、llcはその電
源投入のタイミングに左右されずにアドレスの配布を受
けることができる。
11c individually transmits a communication frame requesting address distribution to the center controller 10 after being powered on, and addresses are distributed according to the communication frame. Therefore, each of the terminal devices 11a, llb, and llc can receive addresses regardless of the timing of power-on.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明の通信システムは、電源投
入後に各端末装置のアドレスを自動的に配布できるため
、各端末装置に設けていた不揮発性メモリを不要にでき
、しかも各端末装置をLSI化した場合にも、識別番号
記憶部として拡散工程の増えないヒユーズROMを内蔵
できるので、コストを低く押さえることができるという
効果がある。
As explained above, since the communication system of the present invention can automatically distribute the address of each terminal device after power is turned on, it is possible to eliminate the need for nonvolatile memory provided in each terminal device, and moreover, each terminal device can be Even in the case where the identification number storage section is changed to a fuse ROM that does not require an increase in the number of diffusion steps, the cost can be kept low.

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

第1図は本発明に用いるホームバスの制御ラインの通信
フレームのフォーマット図、第2図は本発明の第一の実
施例を示す通信システムのブロック図、第3図は第2図
において用いるアドレス登録要求の通信フレームのフォ
ーマット図、第4図は第2図におけるアドレスの割当処
理ルーチンを示すフロー図1、第5図(a)、(b)は
それぞれ第2図における電源投入時の端末装置およびセ
ンタ・コントローラのアドレス配布の処理ルーチンを示
すフロー図、第6図は第5図(a)。 (b)において用いるアドレス配布の通信フレームのフ
ォーマット図、第7図は本発明の第二の実施例を説明す
るための各端末装置のアドレスを配布する通信シーケン
ス図、第8図は本発明の第二の実施例において各端末装
置に記憶されたアドレス配布の処理ルーチンを示すフロ
ー図、第9図は第8図において用いるアドレス配布要求
の通信フレームのフォーマット図、第10図は従来の一
例を示す通信システムのブロック図である。 1・・・優先コード、2・・・自己アドレス、3・・・
相手アドレス、4・・・制御コード、5・・・電文長コ
ード、6・・・データフィールド、7・・・チエツクコ
ード、8・・・ダミー・コード、9・・・アクノリッジ
・ビット、10・・・センタ・コントローラ、lla、
llb。 11c・・・端末装置、12・・・伝送路、13.21
・・・マイクロコンピュータ、14.22・・・送信部
、15.23・・・受信部、16・・・操作部、17・
・・不揮発性メモリ、18・・・表示部、24・・、・
アドレス登録キー、25・・・揮発性メモリ、26・・
・識別番号記憶部、29・・・初期状態未定アドレス値
、30・・・センタコントローラ・アドレス、31・・
・アドレス登録コード、32・・・識別番号、33・・
・アドレス配布コード、34・・・識別番号および通信
アドレス、35・・・アドレス配布要求コード。
FIG. 1 is a format diagram of a communication frame of a home bus control line used in the present invention, FIG. 2 is a block diagram of a communication system showing the first embodiment of the present invention, and FIG. 3 is an address used in FIG. 2. FIG. 4 is a flowchart showing the address assignment processing routine in FIG. 2; FIG. FIG. 6 is a flowchart showing a processing routine for address distribution of the center controller, and FIG. 5(a). FIG. 7 is a communication sequence diagram for distributing the address of each terminal device to explain the second embodiment of the present invention, and FIG. 8 is a diagram of the format of the communication frame for address distribution used in (b). FIG. 9 is a flowchart showing a processing routine for address distribution stored in each terminal device in the second embodiment, FIG. 9 is a format diagram of a communication frame for an address distribution request used in FIG. 8, and FIG. 10 is a conventional example. 1 is a block diagram of a communication system shown in FIG. 1...Priority code, 2...Self address, 3...
Destination address, 4... Control code, 5... Message length code, 6... Data field, 7... Check code, 8... Dummy code, 9... Acknowledge bit, 10... ...Center controller, lla,
llb. 11c...Terminal device, 12...Transmission line, 13.21
...Microcomputer, 14.22...Transmission section, 15.23...Reception section, 16...Operation section, 17.
...Nonvolatile memory, 18...Display section, 24...
Address registration key, 25... Volatile memory, 26...
- Identification number storage unit, 29... Initial state undetermined address value, 30... Center controller address, 31...
・Address registration code, 32...Identification number, 33...
-Address distribution code, 34...Identification number and communication address, 35...Address distribution request code.

Claims (1)

【特許請求の範囲】 1、伝送路に接続された複数の端末装置と、前記伝送路
に接続され且つ前記複数の端末装置を制御するセンタ・
コントローラとからなる通信システムにおいて、前記複
数の端末装置は、前記伝送路の入出力端子に接続される
第一の送受信部と、アドレス登録キーおよびアドレスを
記憶する揮発性メモリと、固有の識別番号を記憶するた
めにヒューズROMで構成される識別番号記憶部と、前
記第一の送受信部、前記アドレス登録キー、前記揮発性
メモリおよび前記識別番号記憶部を制御する第一のマイ
クロコンピュータとを備え、前記センタ・コントローラ
は、前記伝送路の入出力端子に接続される第二の送受信
部と、前記複数の端末装置のアドレスおよび識別番号を
記憶する不揮発性メモリと、前記第二の送受信部および
前記不揮発性メモリを制御する第二のマイクロコンピュ
ータとを備え、前記センタ・コントローラから前記各端
末装置に電源投入後のアドレスを自動的に配布すること
を特徴とする通信システム。 2、前記各端末装置の第一のマイクロコンピュータのプ
ログラム・エリアは、前記アドレス登録キーが押された
ときに前記識別番号記憶部の識別番号を含んだアドレス
登録要求の通信フレームを送信する処理ルーチンを有し
、一方前記センタ・コントローラの第二のマイクロコン
ピュータのプログラムエリアは、前記アドレス登録要求
の通信フレームを受信した時に既に設定されていないア
ドレスを選定し且つ前記識別番号とともに前記不揮発性
メモリに記憶させる処理ルーチンを有することを特徴と
する請求項1記載の通信システム。 3、前記センタ・コントローラの第二のマイクロコンピ
ュータのプログラム・エリアは、電源投入時に前記不揮
発性メモリに記憶されているアドレスとそのアドレスに
対応した識別番号を含むアドレス配布の通信フレームを
送信する処理ルーチンおよびアドレス配布要求の通信フ
レームの識別番号に対応したアドレスを含むアドレス配
布の通信フレームを送信する処理ルーチンを有し、しか
も前記各端末装置のマイクロコンピュータのプログラム
・エリアは、前記識別番号記憶部の内容と一致した前記
アドレス配布の通信フレーム中のアドレスを前記揮発性
メモリに記憶させる処理ルーチンおよび電源投入時にラ
ンダム時間処理を待つルーチンと前記識別番号記憶部の
識別番号を含むアドレス配布要求の通信フレームを送信
する処理ルーチンとを有することを特徴とする請求項1
記載の通信フレーム。
[Claims] 1. A plurality of terminal devices connected to a transmission path, and a center connected to the transmission path and controlling the plurality of terminal devices.
In a communication system comprising a controller, each of the plurality of terminal devices includes a first transmitting/receiving section connected to an input/output terminal of the transmission path, a volatile memory storing an address registration key and an address, and a unique identification number. an identification number storage section configured with a fuse ROM to store the information, and a first microcomputer that controls the first transmitting/receiving section, the address registration key, the volatile memory, and the identification number storage section. , the center controller includes a second transmitting/receiving unit connected to an input/output terminal of the transmission path, a nonvolatile memory that stores addresses and identification numbers of the plurality of terminal devices, the second transmitting/receiving unit, and a second microcomputer that controls the nonvolatile memory, and an address is automatically distributed from the center controller to each of the terminal devices after power is turned on. 2. The program area of the first microcomputer of each terminal device includes a processing routine for transmitting an address registration request communication frame containing the identification number in the identification number storage unit when the address registration key is pressed. On the other hand, when the program area of the second microcomputer of the center controller receives the address registration request communication frame, the program area selects an address that has not already been set and stores it in the nonvolatile memory together with the identification number. 2. The communication system according to claim 1, further comprising a processing routine to be stored. 3. The program area of the second microcomputer of the center controller transmits an address distribution communication frame containing an address stored in the nonvolatile memory and an identification number corresponding to the address when the power is turned on. and a processing routine for transmitting an address distribution communication frame including an address corresponding to the identification number of the address distribution request communication frame, and a program area of the microcomputer of each terminal device is configured to include the identification number storage unit. A processing routine for storing in the volatile memory an address in the communication frame for the address distribution that matches the contents of the address distribution, a routine for waiting for random time processing when the power is turned on, and communication of an address distribution request including the identification number in the identification number storage unit. Claim 1, further comprising a processing routine for transmitting a frame.
Communication frame as described.
JP2282836A 1990-10-19 1990-10-19 Communications system Expired - Fee Related JP2541356B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2282836A JP2541356B2 (en) 1990-10-19 1990-10-19 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2282836A JP2541356B2 (en) 1990-10-19 1990-10-19 Communications system

Publications (2)

Publication Number Publication Date
JPH04156739A true JPH04156739A (en) 1992-05-29
JP2541356B2 JP2541356B2 (en) 1996-10-09

Family

ID=17657707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2282836A Expired - Fee Related JP2541356B2 (en) 1990-10-19 1990-10-19 Communications system

Country Status (1)

Country Link
JP (1) JP2541356B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994025906A1 (en) * 1993-04-27 1994-11-10 Gec Alsthom Limited Electronic control apparatus
JP2008067414A (en) * 2007-11-26 2008-03-21 Matsushita Electric Works Ltd Method for setting address in intercommunication system
JP2011125060A (en) * 2011-02-02 2011-06-23 Panasonic Electric Works Co Ltd Method for setting address in intercommunication system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01126846A (en) * 1987-11-12 1989-05-18 Matsushita Electric Ind Co Ltd Communication controller for home bus system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01126846A (en) * 1987-11-12 1989-05-18 Matsushita Electric Ind Co Ltd Communication controller for home bus system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994025906A1 (en) * 1993-04-27 1994-11-10 Gec Alsthom Limited Electronic control apparatus
US5672943A (en) * 1993-04-27 1997-09-30 Gec Alsthom Limited Electronic control apparatus
JP2008067414A (en) * 2007-11-26 2008-03-21 Matsushita Electric Works Ltd Method for setting address in intercommunication system
JP2011125060A (en) * 2011-02-02 2011-06-23 Panasonic Electric Works Co Ltd Method for setting address in intercommunication system

Also Published As

Publication number Publication date
JP2541356B2 (en) 1996-10-09

Similar Documents

Publication Publication Date Title
EP0381386A2 (en) Token passing communication network
JP3522882B2 (en) Protocol switching method
KR970029126A (en) Multiprocessor system
JPS609292B2 (en) Time interval length control method between data blocks
US6488127B2 (en) Elevator information communication system
JPH04156739A (en) Communication system
US6529505B1 (en) System for expanding a parameter encoding field in a message to allow additional parameters to be added while maintaining compatibility with existing parameter encodings
JP2001103119A (en) Network employing reduced quantity of connection identification codes
JPS5948418B2 (en) terminal control device
JP3137197B2 (en) Multiprocessor system
JPH0410658B2 (en)
US7529268B1 (en) Multi-point electronic control system protocol
JP2821299B2 (en) Access control method
JP2746961B2 (en) Facsimile communication system
JP2738314B2 (en) Switching system of N + 1 redundant circuit controller
JP2507540B2 (en) LAPD processing method
KR0146669B1 (en) Terminal state correcting method
JPS63180192A (en) Control of decentralized processing type vending machine
JPH10207829A (en) Bus controller
JPH1117728A (en) Transmitting method for electronic mail
JP2002082842A (en) Controller having main microprocessor and processor interface to bus transmitting/receiving unit
JPS6198050A (en) Transfer system for received data
KR100339199B1 (en) Method for controlling common control message using v5.2 common protocol in wll system
JPH0936887A (en) Stackable hub system
JPH07143133A (en) Multi-layer protocol processor for common use of memory

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070725

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20080725

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090725

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees