JPH04336727A - Automatic addressing method - Google Patents

Automatic addressing method

Info

Publication number
JPH04336727A
JPH04336727A JP3107803A JP10780391A JPH04336727A JP H04336727 A JPH04336727 A JP H04336727A JP 3107803 A JP3107803 A JP 3107803A JP 10780391 A JP10780391 A JP 10780391A JP H04336727 A JPH04336727 A JP H04336727A
Authority
JP
Japan
Prior art keywords
address
terminal
communication
communication line
attribute information
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.)
Pending
Application number
JP3107803A
Other languages
Japanese (ja)
Inventor
Shotaro Tanaka
祥太郎 田中
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 JP3107803A priority Critical patent/JPH04336727A/en
Publication of JPH04336727A publication Critical patent/JPH04336727A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain address setting without an error when the user manages an address of each terminal equipment by devising so that each terminal equipment sets automatically a communication address. CONSTITUTION:A terminal equipment comprising a communication control section 2a making communication via a communication line 1, a terminal attribute information section 4a storing terminal attribute information, a terminal management section 3b managing the communication control section 2a and the terminal section 5a, sends an address setting request packet having a communication line monitor time having a prescribed fixed time calculated based on the terminal attribute or having a start bit time and a destination address is used for a communication address to its own communication control section 2a when a negative reply in an address field of the packet is returned. That is, when the address on the communication line 1 of the terminal equipment connecting to the communication line 1 is set, it is not set by the user but set by each terminal equipment automatically. Thus, the address is set without error.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は通信回線を介して相互に
接続された端末機器において、各端末機器が電源立ち上
げ時に各端末機器の通信回線上の通信アドレス値を自動
的に設定する方法に関するものである。
[Industrial Application Field] The present invention is a method for automatically setting the communication address value on the communication line of each terminal device when the power is turned on in terminal devices mutually connected via a communication line. It is related to.

【0002】0002

【従来の技術】従来の通信網、例えばオーディオ、ビデ
オ機器間の情報通信を行うドメスティックデジタルバス
(D2B;Domestic Digital Bus
)(IEC TC(84)−(S)861、2 Dra
ft−Domestic Digital Bus(D
2B))における通信網構成の一例を図2に示す。各端
末機器は通信制御部とアドレス設定部及び端末部から構
成され、各端末機器は電源立ち上げ時にアドレス設定部
で設定されているアドレス値を各通信制御部に対して設
定し、通信制御部はこの設定されたアドレス値を通信回
線上に於ける端末機器の通信アドレスとして以降、端末
機器間の通信を行う。
2. Description of the Related Art Conventional communication networks, such as the Domestic Digital Bus (D2B), which communicates information between audio and video equipment,
) (IEC TC(84)-(S)861, 2 Dra
ft-Domestic Digital Bus (D
An example of the communication network configuration in 2B)) is shown in FIG. Each terminal device is composed of a communication control section, an address setting section, and a terminal section.When the power is turned on, each terminal device sets the address value set in the address setting section to each communication control section, and the communication control section uses this set address value as the communication address of the terminal equipment on the communication line, and thereafter performs communication between the terminal equipment.

【0003】0003

【発明が解決しようとする課題】しかしながら上記従来
の方法においては、例えば同じ種類の端末機器が複数台
通信回線に接続されている通信網構成の場合は、それら
端末機器を区別するための異なる通信アドレス値を設定
しなければならない。ところが通信網の構成が異なると
その設定値が異なるため結局ユーザーが管理を行わなけ
ればならない。このような場合ユーザーが誤った通信ア
ドレス値の設定を行うとシステムの動作が保証されず、
またユーザーがアドレスの管理を行う事自体が困難、と
いう問題点を有していた。
[Problems to be Solved by the Invention] However, in the above conventional method, for example, in the case of a communication network configuration in which multiple terminal devices of the same type are connected to a communication line, different communication methods are used to distinguish between the terminal devices. Address value must be set. However, since the setting values differ depending on the configuration of the communication network, the user must manage the settings. In such cases, if the user sets an incorrect communication address value, system operation cannot be guaranteed.
Another problem was that it was difficult for users to manage their addresses.

【0004】本発明は上記従来の問題点を解決するもの
で、自動的に各端末機器が通信アドレス値の設定を行う
事により、ユーザーが通信アドレス値の管理をしなくて
よい方法及びそれに用いられる装置を提供する事を目的
とする。
The present invention solves the above-mentioned conventional problems, and provides a method that eliminates the need for users to manage communication address values by automatically setting communication address values for each terminal device, and a method that can be used therefor. The purpose is to provide a device that can

【0005】[0005]

【課題を解決するための手段】(1)この目的を達成す
るために、本発明は通信回線を介して通信を行う通信制
御部と、端末属性情報を格納する端末属性情報部と、通
信制御部及び端末部を管理する端末管理部と、通信制御
部、端末管理部及び通信回線を介して他の端末機器と情
報交換を行う端末部を備えた端末機器を用い、各端末機
器が電源立ち上げ時に、端末管理部が属性情報管理部か
ら属性情報を読み出し、この属性情報を含むアドレス設
定要求を通信制御部に対して行う。アドレス設定要求を
受けた通信制御部はそこに含まれる属性情報から、ある
一定時間値を計算する。そして通信回線に対してこの計
算したある一定時間の間、通信回線上を監視して、通信
を開始できるかどうかを監視する。監視中に通信回線上
に他の通信制御部の通信が行われなければ、監視終了後
、通信回線上にアドレス設定要求パケットを送信する。 このアドレス設定要求パケットのアドレスフィールド部
で否定応答が発生した場合、このアドレスフィールド部
で出力した相手アドレスデータを端末機器の通信回線上
の通信アドレス値とし、またアドレスフィールド部で肯
定応答が発生した場合、アドレスデータをインクリメン
トした新たな相手アドレスデータにより、再度アドレス
設定要求パケットを送信し、アドレスフィールド部で否
定応答が発生するまで繰り返し行う事により、端末機器
の通信アドレス値が設定される。監視中、他の通信が行
われているのを検出した場合はその通信が終了するまで
待って、再度アドレス設定要求パケットの送信を開始す
る。 (2)この目的を達成するために、本発明は通信回線を
介して通信を行う通信制御部と、端末属性情報を格納す
る端末属性情報部と、通信制御部及び端末部を管理する
端末管理部と、通信制御部、端末管理部及び通信回線を
介して他の端末機器と情報交換を行う端末部を備えた端
末機器を用い、各端末機器が電源立ち上げ時に、端末管
理部が属性情報管理部から属性情報を読み出し、この属
性情報を含むアドレス設定要求を通信制御部に対して行
う。アドレス設定要求を受けた通信制御部はそこに含ま
れる属性情報から、ある一定時間値を計算する。この一
定時間値を有するスタートビットを持つアドレス設定要
求パケットを送信しスタートビット出力終了後、通信回
線に続いてパケットデータ出力可能ならば引続きパケッ
ト送信動作を行う。このアドレス設定要求パケットのア
ドレスフィールド部で否定応答が発生した場合、このア
ドレスフィールド部で出力した相手アドレスデータを端
末機器の通信回線上の通信アドレス値とし、またアドレ
スフィールド部で肯定応答が発生した場合、アドレスデ
ータをインクリメントした新たな相手アドレスデータに
より、再度アドレス設定要求パケットを送信し、アドレ
スフィールド部で否定応答が発生するまで繰り返し行う
事により、端末機器の通信アドレス値が設定される。ス
タートビット出力終了後、引き続いてパケットデータが
出力できなければ、一旦送信動作を中断し、再び通信回
線にアドレス設定要求パケットが送信可能になるまで待
って、再びスタートビットからの送信を繰り返す。
[Means for Solving the Problems] (1) In order to achieve this object, the present invention provides a communication control unit that communicates via a communication line, a terminal attribute information unit that stores terminal attribute information, and a communication control unit that performs communication via a communication line. Each terminal device is equipped with a terminal management section that manages the terminal section and terminal section, a communication control section, a terminal management section, and a terminal section that exchanges information with other terminal devices via a communication line. At the time of activation, the terminal management section reads attribute information from the attribute information management section and issues an address setting request including this attribute information to the communication control section. The communication control unit that receives the address setting request calculates a certain fixed time value from the attribute information included therein. Then, the communication line is monitored for the calculated certain period of time to see if communication can be started. If no other communication control unit communicates on the communication line during monitoring, an address setting request packet is transmitted on the communication line after monitoring is completed. If a negative response occurs in the address field of this address setting request packet, the other party's address data output in this address field will be used as the communication address value on the communication line of the terminal device, and a positive response will occur in the address field. In this case, the communication address value of the terminal device is set by transmitting the address setting request packet again using new partner address data obtained by incrementing the address data, and repeating the process until a negative response is generated in the address field. During monitoring, if it detects that another communication is occurring, it waits until that communication is completed and then starts sending the address setting request packet again. (2) In order to achieve this object, the present invention includes a communication control unit that communicates via a communication line, a terminal attribute information unit that stores terminal attribute information, and a terminal management unit that manages the communication control unit and the terminal unit. When each terminal device turns on the power, the terminal management section collects the attribute information. The attribute information is read from the management section, and an address setting request including this attribute information is made to the communication control section. The communication control unit that receives the address setting request calculates a certain fixed time value from the attribute information included therein. After transmitting an address setting request packet having a start bit having this predetermined time value and finishing outputting the start bit, if it is possible to output packet data through the communication line, the packet transmission operation continues. If a negative response occurs in the address field of this address setting request packet, the other party's address data output in this address field will be used as the communication address value on the communication line of the terminal device, and a positive response will occur in the address field. In this case, the communication address value of the terminal device is set by transmitting the address setting request packet again using new partner address data obtained by incrementing the address data, and repeating the process until a negative response is generated in the address field. If no packet data can be output after the output of the start bit is finished, the transmission operation is temporarily interrupted, the system waits until the address setting request packet can be transmitted to the communication line again, and the transmission from the start bit is repeated again.

【0006】[0006]

【作用】本発明は上記構成により、通信回線に接続され
た端末機器の、通信回線上のアドレス値を設定する際に
、ユーザーが設定するのではなく各端末機器が各々自動
的に行う事により、誤りなくアドレス値の設定を行え、
実用上、効果的である。
[Operation] With the above configuration, when setting the address value on the communication line of the terminal equipment connected to the communication line, the present invention does not require the user to set it, but each terminal equipment automatically performs the setting. , you can set address values without errors,
Practically effective.

【0007】[0007]

【実施例】【Example】

(実施例1)以下本発明の一実施例について、図面を参
照しながら説明する。
(Embodiment 1) An embodiment of the present invention will be described below with reference to the drawings.

【0008】図1は本発明の一実施例における通信網構
成を示す。通信回線1を介して端末機器8、端末機器9
、端末機器10が接続される。各端末機器は、例えば端
末機器8において、通信回線を介して通信を行う通信制
御部2aと、端末属性情報を格納する端末属性情報部4
aと、通信制御部2a及び端末部5aを管理する端末管
理部3aと、端末管理部3a、通信制御部2aおよび通
信回線1を介して情報の交換を行う端末部5aから構成
される。端末機器9、端末機器10についても同様の構
成を有する。ここで端末機器8について説明する。
FIG. 1 shows a communication network configuration in an embodiment of the present invention. Terminal device 8 and terminal device 9 via communication line 1
, the terminal device 10 is connected. Each terminal device, for example, in the terminal device 8, includes a communication control unit 2a that communicates via a communication line, and a terminal attribute information unit 4 that stores terminal attribute information.
a, a terminal management section 3a that manages the communication control section 2a and the terminal section 5a, and a terminal section 5a that exchanges information via the terminal management section 3a, the communication control section 2a, and the communication line 1. The terminal equipment 9 and the terminal equipment 10 also have similar configurations. Here, the terminal device 8 will be explained.

【0009】端末機器8の電源立ち上げ時に端末管理部
3aが端末属性情報部4aからその端末機器で固有に決
定される属性情報、例えばその端末機器の製造番号など
を読み出す。この属性情報を含むアドレス設定要求を通
信制御部2aに対して送信する。このアドレス設定要求
を受信した通信制御部2aはアドレス設定要求に含まれ
る属性情報から、ある一定の監視時間値を計算する。こ
の時の監視時間値をT1とする。
[0009] When powering up the terminal device 8, the terminal management section 3a reads out attribute information uniquely determined by the terminal device, such as the serial number of the terminal device, from the terminal attribute information section 4a. An address setting request including this attribute information is transmitted to the communication control unit 2a. The communication control unit 2a that receives this address setting request calculates a certain monitoring time value from the attribute information included in the address setting request. The monitoring time value at this time is assumed to be T1.

【0010】ここで通信制御部が通信回線に対して送信
するパケットのフォーマットを図5に示す。通信パケッ
トはスタートビットフィールド、アドレスフィールド、
コントロールフィールド、データーフィールドから構成
される。スタートビットフィールドはある一定のバス監
視時間を含みこの期間にバス上に他の通信が行われてい
ない、即ちバスのlow入力が検出されなければ自らあ
る一定時間のlow出力を行い、パケットの開始を通知
する。続くアドレスフィールドは送信元の通信制御部の
アドレスを示すマスターアドレス、送信先の通信制御部
のアドレスを示すスレーブアドレス、および送信先の通
信制御部からの、このアドレスフィールドまでの送信内
容に対する肯定、否定応答を行うACK/NACKビッ
トから構成される。マスターアドレス及びスレーブアド
レスのデータ構造を図8に示す。マスターアドレス、ス
レーブアドレスは各々12ビットのデータで構成され、
最初の4ビットは、このアドレスをもつ通信制御部のサ
ービスタイプを示し、例えばB’0001’はAV機器
のサービスを行う通信制御部であることを示す。続く5
ビットのデバイスタイプはこの通信制御部の機器種別を
示し、例えばTV,VTR等の機器であることを示す。 最後の3ビットのデバイスNoは同じ機器が複数存在す
る場合の機器のナンバーを示す。続くコントロールフィ
ールドは、この送信されるパケットの属性を示し、デー
タフィールドは送信を行うデータ内容を示す。コントロ
ールフィールド、データフィールドとも各データ毎にA
CK/NACKビットが存在し、データフィールドでは
、各データバイト毎にデータの途中か最後かを示すCo
nt/EODビットが存在する。
FIG. 5 shows the format of a packet transmitted by the communication control unit to the communication line. A communication packet has a start bit field, an address field,
It consists of a control field and a data field. The start bit field includes a certain bus monitoring time, and if no other communication is taking place on the bus during this period, that is, if a low input on the bus is not detected, it will output a low signal for a certain period of time and start a packet. Notify. The following address field is a master address indicating the address of the communication control unit of the transmission source, a slave address indicating the address of the communication control unit of the transmission destination, and an affirmation of the transmission contents up to this address field from the communication control unit of the transmission destination. It consists of ACK/NACK bits for negative acknowledgment. FIG. 8 shows the data structure of the master address and slave address. The master address and slave address each consist of 12 bits of data,
The first four bits indicate the service type of the communication control unit having this address; for example, B'0001' indicates that the communication control unit provides services for AV equipment. Continuing 5
The device type of the bit indicates the device type of this communication control unit, and indicates that it is a device such as a TV or a VTR. The last 3-bit device number indicates the number of the device when there is a plurality of the same devices. The following control field indicates the attributes of the packet to be transmitted, and the data field indicates the content of the data to be transmitted. A for each data for both control field and data field
There is a CK/NACK bit, and in the data field, there is a CO indicating whether the data is in the middle or at the end for each data byte.
nt/EOD bit is present.

【0011】ここで、各通信制御部が通信回線にアドレ
ス設定要求パケットを送信する場合の手順を図3、図6
で説明する。各通信制御部2a、2b、2cは図6の手
順で通信回線上にアドレス設定要求パケットを送信する
。即ち通信回線入力がある一定時間Tnの間Highか
どうかを監視する。Tn間Highであればスレーブア
ドレスにおいて、デバイスタイプを特定のデータ、デバ
イスNo=0のデータを有するアドレス設定要求パケッ
トを通信回線上に送信する。このアドレス設定要求パケ
ットを送信して、アドレスフィールドで肯定応答(AC
K)が返答された場合、指定されたスレーブアドレス値
のデバイスアドレスを有する他の通信制御部が通信回線
上に存在すると判断し、スレーブアドレス値のデバイス
Noをインクリメントし再度アドレス設定要求パケット
を送信する。ここでアドレスフィールドで否定応答(N
ACK)が返答された場合、同一のアドレス値を有する
通信制御部が通信回線上に存在しない、と判断し、その
スレーブアドレス値を自通信制御部のデバイスアドレス
として登録する。アドレス設定要求パケットを繰り返し
送信する際に、最大8回送信して、なおアドレスフィー
ルドで否定応答が返答されない場合、設定できるアドレ
ス値が存在しないと判断し、それ以降通信制御部は通信
動作を停止する。
Here, the procedure when each communication control unit transmits an address setting request packet to the communication line is shown in FIGS. 3 and 6.
I will explain. Each communication control section 2a, 2b, 2c transmits an address setting request packet onto the communication line according to the procedure shown in FIG. That is, it monitors whether the communication line input is High for a certain period of time Tn. If the Tn interval is High, an address setting request packet having specific data for the device type and data for the device number=0 is transmitted on the communication line at the slave address. This address configuration request packet is sent with an acknowledgment (AC) in the address field.
K), it is determined that another communication control unit with the device address of the specified slave address value exists on the communication line, the device number of the slave address value is incremented, and the address setting request packet is sent again. do. Here, in the address field, negative response (N
ACK), it is determined that there is no communication control unit with the same address value on the communication line, and the slave address value is registered as the device address of its own communication control unit. When repeatedly sending an address setting request packet, if no negative response is received in the address field after sending it up to 8 times, it is determined that there is no address value that can be set, and the communication control unit stops communication operations from then on. do.

【0012】各通信制御部2a、2b、2cは上記処理
を行うが、実際の通信回線上への送信動作の様子を図3
で説明する。端末機器8の出力、即ち通信制御部2aの
出力はT1の通信回線監視時間後アドレス設定要求パケ
ットを送信する。この時端末機器9の通信制御部2b、
端末機器10の通信制御部2cも同時にこのアドレス設
定処理を行っていたとする。端末機器9の通信制御部2
bは監視時間T2間通信回線上に他の通信が行われない
かを監視している。この時T1<T2とすると、通信制
御部2bはT2監視時間中に、通信制御部2aのアドレ
ス設定要求パケットのスタートビットのlow出力を検
出して、このパケットが送信され終わるまで、一旦自ら
のアドレス設定要求パケットの送信動作を中断する。通
信回線上に送信可能である事を検出すると、再度T2時
間通信回線を監視し、この時間中通信回線で他の通信制
御部の通信が行われなければ、自らのアドレス設定要求
パケットを送信する。端末機器10の出力、即ち通信制
御部2cにおいても、T3の監視時間で、自らのアドレ
ス設定要求パケットを通信回線上に送信する処理を行う
。この時T1<T2<T3とすると、端末機器8、端末
機器9のアドレス設定要求が通信回線上に送信された後
で、始めて端末機器10のアドレス設定要求が送信され
ることになる。図3ではアドレス設定要求パケットが一
回の送信で自デバイスアドレスを獲得できた場合を示し
ている。
Each of the communication control units 2a, 2b, and 2c performs the above processing, and the actual transmission operation on the communication line is shown in FIG.
I will explain. The output of the terminal device 8, that is, the output of the communication control section 2a, transmits an address setting request packet after the communication line monitoring time of T1. At this time, the communication control unit 2b of the terminal device 9,
It is assumed that the communication control unit 2c of the terminal device 10 is also performing this address setting process at the same time. Communication control unit 2 of terminal device 9
b monitors whether any other communication is performed on the communication line during the monitoring time T2. If T1<T2 at this time, the communication control unit 2b detects the low output of the start bit of the address setting request packet of the communication control unit 2a during the T2 monitoring time, and temporarily outputs its own signal until this packet is sent. Interrupts the sending operation of address setting request packets. When it detects that it can send on the communication line, it monitors the communication line again for T2 time, and if no other communication control unit communicates on the communication line during this time, it sends its own address setting request packet. . The output of the terminal device 10, that is, the communication control unit 2c also performs a process of transmitting its own address setting request packet onto the communication line during the monitoring time of T3. At this time, if T1<T2<T3, then the address setting request for the terminal device 10 will be sent only after the address setting requests for the terminal devices 8 and 9 are sent on the communication line. FIG. 3 shows a case where the address setting request packet is able to acquire its own device address by transmitting it once.

【0013】(実施例2)以下本発明の第2の実施例に
ついて、図面を参照しながら説明する。
(Embodiment 2) A second embodiment of the present invention will be described below with reference to the drawings.

【0014】図1は本発明の一実施例における通信網構
成を示す。通信回線1を介して端末機器8、端末機器9
、端末機器10が接続される。各端末機器は、例えば端
末機器8において、通信制御部2a、端末管理部3a、
端末属性情報部4a、端末部5aから構成される。 端末機器9、端末機器10についても同様の構成を有す
る。
FIG. 1 shows a communication network configuration in one embodiment of the present invention. Terminal device 8 and terminal device 9 via communication line 1
, the terminal device 10 is connected. For example, in the terminal device 8, each terminal device includes a communication control section 2a, a terminal management section 3a,
It is composed of a terminal attribute information section 4a and a terminal section 5a. The terminal equipment 9 and the terminal equipment 10 also have similar configurations.

【0015】ここで端末機器8について説明する。端末
機器8の電源立ち上げ時に端末管理部3aが端末属性情
報部4aからその端末機器で固有に決定される属性情報
、例えばその端末機器の製造番号などを読み出す。この
属性情報を含むアドレス設定要求を通信制御部2aに対
して送信する。このアドレス設定要求を受信した通信制
御部2aはアドレス設定要求に含まれる属性情報から、
ある一定の監視時間値を計算する。この時の監視時間値
をT1とする。
The terminal equipment 8 will now be explained. When powering up the terminal device 8, the terminal management section 3a reads out attribute information uniquely determined by the terminal device, such as the serial number of the terminal device, from the terminal attribute information section 4a. An address setting request including this attribute information is transmitted to the communication control unit 2a. Upon receiving this address setting request, the communication control unit 2a performs the following from the attribute information included in the address setting request.
Calculate a certain monitoring time value. The monitoring time value at this time is assumed to be T1.

【0016】ここで通信制御部が通信回線に対して送信
するパケットのフォーマットを図5に示す。通信パケッ
トはスタートビットフィールド、アドレスフィールド、
コントロールフィールド、データーフィールドから構成
される。スタートビットフィールドはある一定の通信回
線の監視時間を含みこの期間に通信回線上に他の通信が
行われていない、即ち通信回線からのlow入力が検出
されなければ自らある一定時間のlow出力を行い、パ
ケットの開始を通知する。続くアドレスフィールドは送
信元の通信制御部のアドレスを示すマスターアドレス、
送信先の通信制御部のアドレスを示すスレーブアドレス
、および送信先の通信制御部からの、このアドレスフィ
ールドまでの送信内容に対する肯定、否定応答を行うA
CK/NACKビットから構成される。マスターアドレ
ス及びスレーブアドレスのデータ構造を図8に示す。 マスターアドレス、スレーブアドレスは各々12ビット
のデータで構成され、最初の4ビットは、このアドレス
をもつ通信制御部のサービスタイプを示し、例えばB’
0001’はAV機器のサービスを行う通信制御部であ
ることを示す。続く5ビットのデバイスタイプはこの通
信制御部の機器種別を示し、例えばTV,VTR等の機
器であることを示す。最後の3ビットのデバイスNoは
同じ機器が複数存在する場合の機器のナンバーを示す。 続くコントロールフィールドは、この送信されるパケッ
トの属性を示し、データフィールドは送信を行うデータ
内容を示す。コントロールフィールド、データフィール
ドとも各データ毎にACK/NACKビットが存在し、
データフィールドでは、各データバイト毎にデータの途
中か最後かを示すCont/EODビットが存在する。
FIG. 5 shows the format of a packet transmitted by the communication control unit to the communication line. A communication packet has a start bit field, an address field,
It consists of a control field and a data field. The start bit field includes a certain period of time for monitoring the communication line, and if no other communication is being performed on the communication line during this period, that is, if no low input from the communication line is detected, the start bit field automatically outputs a low level for a certain period of time. to signal the start of a packet. The following address field is the master address indicating the address of the communication control unit of the sender,
Slave address indicating the address of the communication control unit at the destination, and A that makes an affirmative or negative response to the transmission contents up to this address field from the communication control unit at the destination.
Consists of CK/NACK bits. FIG. 8 shows the data structure of the master address and slave address. The master address and slave address each consist of 12 bits of data, and the first 4 bits indicate the service type of the communication control unit having this address, for example B'.
0001' indicates a communication control unit that provides services for AV equipment. The following 5-bit device type indicates the device type of this communication control unit, and indicates that it is a device such as a TV or VTR. The last 3-bit device number indicates the number of the device when there is a plurality of the same devices. The following control field indicates the attributes of the packet to be transmitted, and the data field indicates the content of the data to be transmitted. There is an ACK/NACK bit for each data in both the control field and data field.
In the data field, there is a Cont/EOD bit for each data byte, which indicates whether it is in the middle or at the end of the data.

【0017】ここで、各通信制御部が通信回線にアドレ
ス設定要求パケットを送信する場合の手順を図4、図7
で説明する。各通信制御部2a、2b、2cは図7の手
順で通信回線上にアドレス設定要求パケットを送信する
。即ちまず通信回線に送信を行えるかを判断し、送信可
能であれば通信回線にlow出力を行う。この時のlo
w出力期間は通信制御部2a、2b、2cでそれぞれT
1、T2、T3とする。この時T1<T2<T3とする
。各通信制御部は各low出力期間後にHighを出力
する。この時の通信回線の入力を検出して、もしlow
を検出した場合は、他の通信制御部がスタートビットを
出力していると判断し、一旦送信を中断する。図4にお
いて端末機器8及び端末機器9の出力で、最初のスター
トビット区間T1、T2送信時に、端末機器10のスタ
ートビット区間T3が一番長いとすると各T1、T2出
力後に通信回線入力はlowを検出することになり、端
末機器8、端末機器9の通信制御部2a、2bは一旦送
信動作を中断する。即ち端末機器10のアドレス設定要
求パケットが勝ち残る。この時、アドレス設定要求パケ
ットのスレーブアドレスにおいて、デバイスタイプを特
定のデータ、デバイスNo=0のデータを有するパケッ
トをバス上に送信する。このアドレス設定要求パケット
を送信して、アドレスフィールドで肯定応答(ACK)
が返答された場合、指定されたスレーブアドレス値のデ
バイスアドレスを有する他の通信制御部が通信回線上に
存在すると判断し、スレーブアドレス値のデバイスNo
をインクリメントし再度アドレス設定要求パケットを送
信する。ここでアドレスフィールドで否定応答(NAC
K)が返答された場合、同一のアドレス値を有する通信
制御部が通信回線上に存在しない、と判断し、そのスレ
ーブアドレス値を自通信制御部のデバイスアドレスとし
て登録する。アドレス設定要求パケットを繰り返し送信
する際に、最大8回送信して、なおアドレスフィールド
で否定応答が返答されない場合、設定できるアドレス値
が存在しないと判断し、それ以降通信制御部は通信動作
を停止する。引続き端末機器9のアドレス設定要求パケ
ットが勝ち残り、端末機器9のアドレスが決定される。 最後に端末機器8のアドレスもまた同様に決定される。
Here, the procedure when each communication control unit transmits an address setting request packet to the communication line is shown in FIGS. 4 and 7.
I will explain. Each communication control section 2a, 2b, 2c transmits an address setting request packet onto the communication line according to the procedure shown in FIG. That is, first, it is determined whether transmission can be performed on the communication line, and if transmission is possible, a low output is performed on the communication line. lo at this time
The w output period is T for the communication control units 2a, 2b, and 2c, respectively.
1, T2, and T3. At this time, T1<T2<T3. Each communication control unit outputs High after each low output period. Detect the input of the communication line at this time, and if it is low
If detected, it is determined that another communication control unit is outputting a start bit, and transmission is temporarily interrupted. In FIG. 4, when transmitting the first start bit sections T1 and T2 in the outputs of the terminal devices 8 and 9, if the start bit section T3 of the terminal device 10 is the longest, the communication line input becomes low after each output of T1 and T2. As a result, the communication control units 2a and 2b of the terminal equipment 8 and the terminal equipment 9 temporarily interrupt the transmission operation. That is, the address setting request packet of the terminal device 10 survives. At this time, in the slave address of the address setting request packet, a packet having specific data of the device type and data of device number=0 is transmitted onto the bus. Send this address setting request packet and receive an acknowledgment (ACK) in the address field.
is returned, it is determined that another communication control unit having the device address of the specified slave address value exists on the communication line, and the device number of the slave address value is determined.
is incremented and sends the address setting request packet again. Here, in the address field Negative Acknowledgment (NAC)
If K) is returned, it is determined that there is no communication control section with the same address value on the communication line, and the slave address value is registered as the device address of the own communication control section. When repeatedly sending an address setting request packet, if no negative response is received in the address field after sending it up to 8 times, it is determined that there is no address value that can be set, and the communication control unit stops communication operations from then on. do. Subsequently, the address setting request packet for the terminal device 9 survives, and the address of the terminal device 9 is determined. Finally, the address of the terminal device 8 is also determined in the same way.

【0018】[0018]

【発明の効果】以上のように本発明は各端末機器におけ
る端末属性情報部からある特定の属性情報を読み出し、
この情報から各端末機器固有の時間情報を計算し、この
時間をもつ通信回線監視時間、あるいはスタートビット
区間を有するアドレス設定要求パケットを送信しする。 このアドレス設定要求パケットのアドレスフィールドに
おいて否定応答が返答されるまでアドレス値のデバイス
Noをインクリメントして最終的に、自端末機器のアド
レス値を決定することにより、ユーザーが設定する事な
く自動的に端末機器のアドレス値を決定できる方法及び
その装置を実現するものである。
[Effects of the Invention] As described above, the present invention reads certain attribute information from the terminal attribute information section of each terminal device,
From this information, time information unique to each terminal device is calculated, and a communication line monitoring time having this time or an address setting request packet having a start bit section is transmitted. By incrementing the device number of the address value until a negative response is returned in the address field of this address setting request packet and finally determining the address value of the own terminal device, the device number can be automatically set without the user having to make any settings. A method and apparatus for determining the address value of a terminal device are provided.

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

【図1】本発明の第1、第2の実施例における通信網及
び端末機器の構成図
FIG. 1 is a configuration diagram of a communication network and terminal equipment in the first and second embodiments of the present invention.

【図2】従来の技術における通信網及び端末機器の構成
[Figure 2] Configuration diagram of a communication network and terminal equipment in conventional technology

【図3】本発明の第1の実施例における送信回線上のア
ドレス設定要求パケットの送信の状態図
FIG. 3 is a state diagram of transmission of an address setting request packet on a transmission line in the first embodiment of the present invention.

【図4】本発明
の第1の実施例における送信回線上のアドレス設定要求
パケットの送信の状態図
FIG. 4 is a state diagram of transmission of an address setting request packet on a transmission line in the first embodiment of the present invention.

【図5】本発明のアドレス設定
要求パケットのフォーマット図
[Figure 5] Format diagram of address setting request packet of the present invention

【図6】本発明の第1の実施例の通信制御部における処
理内容手順図
[Fig. 6] Processing content procedure diagram in the communication control unit of the first embodiment of the present invention.

【図7】本発明の第2の実施例の通信制御部における処
理内容手順図
[Fig. 7] Processing content procedure diagram in the communication control unit according to the second embodiment of the present invention.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  通信回線を介して通信を行う通信制御
部と、端末属性情報を格納する端末属性情報部と、前記
通信制御部及び端末部を管理する端末管理部と、前記端
末管理部、前記通信制御部および前記通信回線を介して
情報の交換を行う前記端末部とを備えた端末機器が複数
個、前記通信回線に接続されている通信系において、前
記端末機器の電源立ち上げ時に前記端末管理部が前記属
性情報管理部から属性情報を読み出し、前記属性情報を
含むアドレス設定要求を前記通信制御部に対して行い、
前記アドレス設定要求を受信した前記通信制御部は前記
属性情報に基づいたある固有の通信回線監視時間後、前
記通信回線にパケット送信が可能になるまで待って前記
通信回線に対してアドレス設定要求パケットの送信を行
い、前記アドレス設定要求パケットのアドレスフィール
ド部で否定応答が発生した場合、前記アドレスフィール
ド部で出力した相手アドレスデータを前記端末機器の前
記通信回線上の通信アドレス値とし、また前記アドレス
フィールド部で肯定応答が発生した場合、前記相手アド
レスデータをインクリメントした新たなアドレスデータ
で再度前記アドレス設定要求パケットを送信し、前記ア
ドレスフィールド部で否定応答が発生するまで繰り返す
ことにより前記端末機器の前記通信回線上における通信
アドレス値を決定する自動アドレス設定方法。
1. A communication control unit that communicates via a communication line, a terminal attribute information unit that stores terminal attribute information, a terminal management unit that manages the communication control unit and the terminal unit, and the terminal management unit, In a communication system in which a plurality of terminal devices each including the communication control unit and the terminal unit that exchanges information via the communication line are connected to the communication line, when the power of the terminal device is turned on, the a terminal management unit reads attribute information from the attribute information management unit, and issues an address setting request including the attribute information to the communication control unit;
Upon receiving the address setting request, the communication control unit waits until it becomes possible to send a packet to the communication line after a certain specific communication line monitoring time based on the attribute information, and sends an address setting request packet to the communication line. If a negative response occurs in the address field of the address setting request packet, the destination address data output in the address field is set as the communication address value on the communication line of the terminal device, and the address When a positive response occurs in the field section, the address setting request packet is sent again using new address data obtained by incrementing the destination address data, and the process is repeated until a negative response is generated in the address field section. An automatic address setting method for determining a communication address value on the communication line.
【請求項2】  通信回線を介して通信を行う通信制御
部と、端末属性情報を格納する端末属性情報部と、通信
制御部及び端末部を管理する端末管理部と、前記端末管
理部、前記通信制御部および前記通信回線を介して情報
の交換を行う機能を有する前記端末部とを備えた端末機
器が複数個、前記通信回線に接続されている通信系にお
いて、前記端末機器の電源立ち上げ時に前記端末管理部
が前記属性情報管理部から属性情報を読み出し、前記属
性情報を含むアドレス設定要求を前記通信制御部に対し
て行い、前記アドレス設定要求を受信した前記通信制御
部は前記属性情報に基づいたある固有時間のスタートビ
ット長を有するアドレス設定要求パケットを前記通信回
線に送信し、前記スタートビットが正常に前記通信回線
上に出力され、前記アドレス設定要求パケットのアドレ
スフィールド部で否定応答が発生した場合、前記アドレ
スフィールド部で出力した相手アドレスデータを前記端
末機器の前記通信回線上の通信アドレス値とし、また前
記アドレスフィールド部で肯定応答が発生した場合、前
記相手アドレスデータをインクリメントした新たな相手
アドレスデータで再度前記アドレス設定要求パケットを
送信し、前記アドレスフィールド部で否定応答が発生す
るまで繰り返すことにより前記端末機器の前記通信回線
上における通信アドレス値を決定する自動アドレス設定
方法。
2. A communication control unit that communicates via a communication line, a terminal attribute information unit that stores terminal attribute information, a terminal management unit that manages the communication control unit and the terminal unit, the terminal management unit, and the terminal attribute information unit that stores terminal attribute information. In a communication system in which a plurality of terminal devices each including a communication control unit and the terminal unit having a function of exchanging information via the communication line are connected to the communication line, turning on the power of the terminal device At times, the terminal management section reads out attribute information from the attribute information management section, makes an address setting request including the attribute information to the communication control section, and upon receiving the address setting request, the communication control section reads out the attribute information. An address setting request packet having a start bit length of a certain specific time based on the above is transmitted to the communication line, the start bit is normally output on the communication line, and a negative response is received in the address field part of the address setting request packet. occurs, the destination address data output in the address field section is set as the communication address value on the communication line of the terminal device, and when an affirmative response occurs in the address field section, the destination address data is incremented. An automatic address setting method that determines a communication address value of the terminal device on the communication line by transmitting the address setting request packet again with new destination address data and repeating the process until a negative response is generated in the address field.
JP3107803A 1991-05-14 1991-05-14 Automatic addressing method Pending JPH04336727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3107803A JPH04336727A (en) 1991-05-14 1991-05-14 Automatic addressing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3107803A JPH04336727A (en) 1991-05-14 1991-05-14 Automatic addressing method

Publications (1)

Publication Number Publication Date
JPH04336727A true JPH04336727A (en) 1992-11-24

Family

ID=14468432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3107803A Pending JPH04336727A (en) 1991-05-14 1991-05-14 Automatic addressing method

Country Status (1)

Country Link
JP (1) JPH04336727A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002054678A1 (en) * 2000-12-27 2002-07-11 Matsushita Electric Industrial Co., Ltd. Identification code management system for home network
JP2011028725A (en) * 2009-06-26 2011-02-10 Renesas Electronics Corp Semiconductor device and serial interface circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002054678A1 (en) * 2000-12-27 2002-07-11 Matsushita Electric Industrial Co., Ltd. Identification code management system for home network
JP2011028725A (en) * 2009-06-26 2011-02-10 Renesas Electronics Corp Semiconductor device and serial interface circuit
US8601187B2 (en) 2009-06-26 2013-12-03 Renesas Electronics Corporation Semiconductor device and serial interface circuit

Similar Documents

Publication Publication Date Title
US7194564B2 (en) Method and apparatus for preventing loops in a full-duplex bus
US5187708A (en) Communication device for layered protocols
JPS62100044A (en) Communication apparatus and communication method
JPH04502991A (en) Local area network with dynamically selectable multioperability
JPH09219717A (en) Multiplex physical medium dependent-type auto-negotiation system and its method
JP2001306428A (en) Network apparatus, network system, communication method, and recording medium
JP3293779B2 (en) Signal processing device and control method thereof
JP2006018538A (en) System for recording and reproducing information coming via network and information recording and reproducing device
US6272114B1 (en) Data processing apparatus/method and electronic apparatus with such apparatus/method
JPH05219077A (en) Multiple station bus system and station using such system
US5548725A (en) System for transmitting command and/or data in a single packet and automatically reporting status a predetermined time after receiving a command
KR100311707B1 (en) Data communication system, data communication method, data communication apparatus, and digital interface
JPH11275122A (en) Data transmitter
JPH04336727A (en) Automatic addressing method
JP3727589B2 (en) Method and system for controlling and exchanging data relating to multimedia equipment and equipment suitable for this method and system
EP0884685B1 (en) Transmission right managing method and communication system
TWI220612B (en) Network physical layer apparatus with smart cable analyzing function and application device thereof
JP4200133B2 (en) Data link layer device for serial communication bus
JP4611974B2 (en) Method for transferring an IEEE 1394 bus reinitialization message and apparatus for performing such a method
JPH11284642A (en) Data transmission system, polling method, and polling frequency setting method
JP2000106564A (en) Information transmission device and information transmission system
JPH0553953A (en) Network connection processing device
JPS63246055A (en) Packet transmitter-receiver
JPS59153352A (en) Bus access system
JPH10290246A (en) Communication equipment and communication method